:root {
  --ink: #1c1915;
  --pine: #1e3a34;
  --ember: #c65a2e;
  --copper: #a86432;
  --paper: #f3eee4;
  --card: #fffaf3;
  --line: #e2d8c8;
  --mist: #d5e3e4;
  --muted: #5e564c;
  --danger: #8c2f1b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #f6d7c4 0%, transparent 55%),
    var(--paper);
  min-height: 100vh;
}
a { color: var(--pine); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 0.98; margin: 0.2rem 0 0.8rem; }
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--muted); }
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; position: sticky; top: 0; background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 2;
}
.bar nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.bar a { text-decoration: none; font-weight: 680; }
.brand { display: flex; gap: 0.7rem; align-items: center; color: inherit; }
.brand small { display: block; font-weight: 400; color: var(--muted); }
.mark {
  width: 2rem; height: 2rem; border-radius: 0.45rem;
  background: conic-gradient(from 200deg, var(--ember), var(--pine) 55%, var(--copper));
}
.mark.pine { background: linear-gradient(160deg, var(--pine), #0f241f 70%); box-shadow: inset 0 0 0 4px #e7b089; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 680; color: var(--copper); }
.hero { display: grid; gap: 1.5rem; padding: 2.5rem 1.25rem 1rem; max-width: 1100px; margin: 0 auto; }
.hero-actions, .button { display: inline-flex; }
.hero-actions { gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.button, button, .talk {
  background: var(--pine); color: white; border: 0; border-radius: 999px;
  padding: 0.75rem 1.1rem; font: inherit; font-weight: 680; text-decoration: none; cursor: pointer;
}
.button.ghost { background: transparent; color: var(--pine); border: 1px solid var(--pine); }
.catalog, .split, .grid3, .desk { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 2rem; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.v-card, .split article, .grid3 article, .job, .sms, .console, .danger {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1rem 1.1rem;
}
.v-card.live { border-color: var(--ember); box-shadow: 0 12px 30px rgba(198, 90, 46, 0.08); }
.v-card.soon { opacity: 0.86; }
.soon-pill, .tag, .pill {
  display: inline-block; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.8rem; font-weight: 680;
}
.soon-pill, .tag { background: var(--mist); color: var(--pine); }
.pill { background: var(--line); }
.pill.booked, .pill.rescheduled { background: #d9eadf; }
.pill.escalated, .pill.transferred { background: #f6d7c4; }
.pill.text_back { background: var(--mist); }
.pill.cancelled, .pill.off_topic, .pill.slot_unavailable { background: #f3d6d0; }
.split, .grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.hvac-hero { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.banner, footer { padding: 0.8rem 1.25rem; color: var(--muted); font-size: 0.92rem; }
.banner { background: #f6e1d4; color: var(--danger); }
.facts { padding-left: 1.1rem; }
.console[data-state="live"] { outline: 2px solid var(--ember); }
.console[data-state="limited"] { outline: 2px solid var(--danger); }
.talk { width: 100%; justify-content: center; display: flex; align-items: center; gap: 0.6rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #f2c1a5; }
.console[data-state="live"] .dot { background: #fff; }
.meter { height: 0.35rem; background: var(--line); border-radius: 99px; margin: 0.8rem 0; }
.meter span { display: block; height: 100%; width: 0; background: var(--ember); border-radius: 99px; }
.transcript { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; }
.transcript li { margin: 0.45rem 0; }
.transcript b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }
.danger h2 { margin-top: 0; color: var(--danger); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.kpis article { background: var(--pine); color: white; border-radius: 1rem; padding: 0.9rem 1rem; }
.kpis span { display: block; opacity: 0.8; font-size: 0.85rem; }
.kpis strong { font-family: Fraunces, Georgia, serif; font-size: 2rem; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.tabs a { text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: white; }
.tabs a.active { background: var(--ink); color: white; border-color: var(--ink); }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.job.urgent { border-color: var(--ember); }
.job.emergency { border-color: var(--danger); }
.muted, .planned { color: var(--muted); }
.page-head, .missed { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.missed, .sms-list { display: grid; gap: 0.8rem; }
.missed { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; margin-bottom: 1rem; }
label { font-weight: 680; }
input { font: inherit; padding: 0.55rem 0.7rem; border-radius: 0.6rem; border: 1px solid var(--line); min-width: 12rem; }
.table-wrap { overflow-x: auto; background: white; border-radius: 1rem; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.transcript-block, pre { white-space: pre-wrap; background: #1c1915; color: #f3eee4; padding: 1rem; border-radius: 0.8rem; overflow: auto; }
.notice { background: #d9eadf; padding: 0.7rem 0.9rem; border-radius: 0.7rem; }
.empty { color: var(--muted); }
@media (max-width: 900px) {
  .catalog, .grid3, .kanban, .kpis { grid-template-columns: 1fr 1fr; }
  .hvac-hero, .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .catalog, .grid3, .kanban, .kpis { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 2.3rem; }
}
body.theme-clinic {
  --ink: #142226;
  --pine: #0e4d5c;
  --ember: #c46b4a;
  --copper: #8a5340;
  --paper: #f4f7f6;
  --card: #ffffff;
  --line: #d5e2e4;
  --mist: #d7ebe8;
  --muted: #4d5c60;
  --danger: #8f2d2d;
  background: radial-gradient(1000px 420px at 100% -10%, #d7ebe8 0%, transparent 55%), var(--paper);
}
body.theme-clinic .bar { background: rgba(244, 247, 246, 0.94); }
body.theme-clinic .banner { background: #f8e6e1; color: var(--danger); }
body.theme-clinic .mark.clinic-mark { background: linear-gradient(160deg, #0e4d5c, #16343c); box-shadow: inset 0 0 0 4px #f0c7b4; }
.clinic-board { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .clinic-board { grid-template-columns: 1fr; } }
body.theme-fintech {
  --ink: #102033;
  --pine: #12304f;
  --ember: #b5812a;
  --copper: #8c6230;
  --paper: #f7f4ee;
  --card: #fffdf8;
  --line: #e4dccb;
  --mist: #e7eef6;
  --muted: #5c6570;
  --danger: #8d2f2f;
  background: radial-gradient(1000px 420px at 0% -10%, #e7eef6 0%, transparent 50%), var(--paper);
}
body.theme-fintech .bar { background: rgba(247, 244, 238, 0.94); }
body.theme-fintech .banner { background: #f3e4c4; color: #6a4a12; }
body.theme-fintech .mark.fintech-mark { background: linear-gradient(160deg, #12304f, #0c1c30); box-shadow: inset 0 0 0 4px #e2b15a; }
