/* ═════════════════════════════════════════════════════════════
   GlowApp design system v3 — linked last on every screen, so it has the final word.
   One typeface (Google Sans), a calm warm-paper ground, crisp white cards with one hairline,
   ink for text, gold only for the main action, four checked colours for charts.
   Reasons: a busy salon owner glances at the screen between clients, so hierarchy has to
   read in a second — big clear numbers, quiet labels, one loud thing per block.
═════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/GoogleSans-var.woff2") format("woff2");
}

:root {
  --f-head: "Google Sans", "Segoe UI", Arial, sans-serif;
  --f-latin: "Google Sans", "Segoe UI", sans-serif;
  --r-in: 14px; --r-card: 20px; --r-big: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="light"] {
  --paper: #F4F1EB;          /* the ground: warm paper, never pure white */
  --surface: #FFFEFB;        /* cards */
  --surface-2: #F8F5EF;      /* wells, tracks, hover */
  --line: rgba(27, 21, 53, 0.085);
  --line-2: rgba(27, 21, 53, 0.055);
  --t1: #1B1535;             /* text */
  --t2: #4F4966;             /* secondary text, 8:1 */
  --t3: #6E6884;             /* quiet text, 5:1 */
  --pearl: var(--t1); --pearl-soft: var(--t2); --pearl-dim: var(--t3);
  --gold: #8A6A2C; --gold-ink: #8A6A2C; --gold-text: #8A6A2C; --focus: #6A55B8;
  --glass-edge: var(--line);
  --sh-1: 0 1px 2px rgba(27, 21, 53, 0.05), 0 4px 14px -8px rgba(27, 21, 53, 0.12);
  --sh-2: 0 1px 2px rgba(27, 21, 53, 0.05), 0 18px 40px -22px rgba(27, 21, 53, 0.28);
  --ink-deep: var(--paper);
}

/* ── one typeface everywhere ── */
html, body, button, input, select, textarea, .gnav a, body.shell .gside, .gs-brand, .ob-brand, .dr-brand {
  font-family: var(--f-head) !important;
}
body { font-size: 1rem; line-height: 1.5; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
.gs-brand, .ob-brand, .dr-brand { letter-spacing: 0.32em !important; font-weight: 500; }
input, select, textarea { font-size: max(16px, 1em); }

/* ── the ground: calm paper, one faint light at the top, nothing that competes with the data ── */
html[data-theme="light"] body { background: var(--paper); color: var(--t1); }
html[data-theme="light"] .sky {
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(201, 163, 224, 0.09), transparent 70%),
    linear-gradient(180deg, #F7F4EE 0%, var(--paper) 40%) !important;
}
html[data-theme="light"] .grain { opacity: 0.02; }

/* ── type scale: page 28 · section 17 · body 15–16 · note 12–13 ── */
.top-title { font-weight: 600 !important; letter-spacing: -0.015em; }
body.shell .top-title { font-size: 1.75rem !important; }
.kpi-n, .rev-big, .ch-big, .mbn, .bd-num, .tile .tn { font-weight: 500 !important; letter-spacing: -0.02em; }
b, strong { font-weight: 600; }

/* ── header: the floating pill, quieter and sharper ── */
html[data-theme="light"] .top-bar, html[data-theme="light"] .hb-top {
  background: rgba(255, 254, 251, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line-2); box-shadow: var(--sh-1);
}
html[data-theme="light"] .icon-btn, html[data-theme="light"] .hb-btn { color: var(--t2); transition: background 0.2s, color 0.2s; }
@media (hover: hover) { html[data-theme="light"] .icon-btn:hover, html[data-theme="light"] .hb-btn:hover { background: var(--surface-2); color: var(--t1); } }
.bar-orn svg { opacity: 0.55; }

/* ── content column on a computer: centred, never wider than the eye can follow ── */
@media (min-width: 1024px) {
  body.shell .app { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
  body.shell .top-bar, body.shell .hb-top { margin: 16px 0 10px; padding: 14px 22px; }
  html[data-theme="light"] body.shell { background: var(--paper); }
}
@media (min-width: 1600px) { body.shell .app { max-width: 1320px; } }

/* ── section heads: ink, weight instead of colour; a hairline runs to the edge ── */
html[data-theme="light"] .section-head h2, html[data-theme="light"] .sec, html[data-theme="light"] .sec-label {
  color: var(--t1); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em; text-transform: none;
}
html[data-theme="light"] .sec-row h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.section-head { padding-top: 26px; padding-bottom: 12px; }
.section-head h2::after, .sec::after, .sec-label::after {
  background: var(--line) !important; -webkit-mask: none !important; mask: none !important; animation: none !important; opacity: 1;
}
.section-head h2::before, .sec::before, .sec-label::before, .sec-row h2::before {
  width: 8px !important; height: 8px !important;
  background: linear-gradient(135deg, #E9D9A6, #C9A35A) !important; box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.16) !important;
}
html[data-theme="light"] .sec-row a, html[data-theme="light"] .cal-link, html[data-theme="light"] .section-head a { color: var(--gold-ink); font-weight: 500; }

/* ── cards: one surface, one hairline, one soft shadow ── */
html[data-theme="light"] .glass {
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--sh-1);
}
html[data-theme="light"] .ap-box { background: var(--surface); border-color: var(--line-2); box-shadow: var(--sh-1); }
html[data-theme="light"] .note { background: var(--surface); border-color: var(--line); }

/* ── stat cards: label, a big clear number, the line of the last weeks, context underneath ── */
html[data-theme="light"] .kpi {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--sh-1); padding: 16px 16px 14px;
}
html[data-theme="light"] .kpi::after { display: none; }
.kpi-l { font-size: 0.84rem !important; font-weight: 500; color: var(--t2) !important; }
.kpi-n { font-size: 1.85rem !important; line-height: 1.05 !important; margin-top: 6px !important; font-variant-numeric: normal !important; }
.kpi-sub { font-size: 0.76rem !important; color: var(--t3) !important; }
.kpi-ic { border-radius: 11px !important; }
.kpi-trend { font-size: 0.74rem !important; font-weight: 600 !important; padding: 3px 8px !important; }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; width: 100%; }
.kpi-row .kpi-n { flex: none; }
.kpi-spark { position: relative; flex: 1 1 auto; max-width: 112px; min-width: 56px; height: 30px; margin-bottom: 3px; }
.kpi-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kpi-spark i { position: absolute; inset-inline-end: -3px; width: 7px; height: 7px; border-radius: 50%; translate: 0 -50%; box-shadow: 0 0 0 2px var(--surface, #fff); }
html[data-theme="light"] .kpi.primary .kpi-spark i { box-shadow: 0 0 0 2px #241C4A; }
@media (hover: hover) {
  html[data-theme="light"] a.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line); }
}
html[data-theme="light"] .kpi.primary { background: linear-gradient(150deg, #2D245C 0%, #1B1535 75%); border-color: transparent; box-shadow: 0 18px 36px -20px rgba(27, 21, 53, 0.7); }
html[data-theme="light"] .kpi.primary .kpi-l { color: rgba(244, 238, 226, 0.82) !important; }
html[data-theme="light"] .kpi.primary .kpi-sub { color: rgba(244, 238, 226, 0.72) !important; }
html[data-theme="light"] .kpi.rose .kpi-n { color: #A23A5C; }
@media (min-width: 768px) {
  .kpi-grid:not(.c3) .kpi { padding: 14px 15px 13px !important; border-radius: 18px !important; }
  .kpi-grid:not(.c3) .kpi-n { font-size: 1.6rem !important; }
}
@media (min-width: 1024px) { body.shell .kpi-grid:not(.c3) { gap: 14px; } }

/* ── period switches: a sunken track with a lifted white thumb ── */
html[data-theme="light"] .seg, html[data-theme="light"] .period {
  background: #ECE7DE; border: 0; border-radius: 14px; padding: 4px; box-shadow: inset 0 1px 2px rgba(27, 21, 53, 0.06);
}
html[data-theme="light"] .seg button, html[data-theme="light"] .period button { color: var(--t2); font-weight: 500; border-radius: 10px; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
html[data-theme="light"] .seg button.on, html[data-theme="light"] .period button.on {
  background: var(--surface); color: var(--t1); font-weight: 600;
  box-shadow: 0 1px 2px rgba(27, 21, 53, 0.08), 0 4px 12px -6px rgba(27, 21, 53, 0.25);
}
@media (hover: hover) { html[data-theme="light"] .seg button:not(.on):hover, html[data-theme="light"] .period button:not(.on):hover { color: var(--t1); background: rgba(255, 255, 255, 0.45); } }
@media (min-width: 1024px) {
  body.shell .seg, body.shell .period { max-width: 520px; margin-inline-start: 16px; }
}

/* ── buttons ── */
.btn { font-weight: 600; letter-spacing: 0; }
html[data-theme="light"] .btn-glass { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="light"] .btn-gold { color: #1B1535; background: linear-gradient(180deg, #F2E3B6 0%, #E2C27F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 2px rgba(138, 106, 44, 0.25), 0 10px 22px -12px rgba(138, 106, 44, 0.6); }
:focus-visible { outline: 2px solid var(--focus, #6A55B8) !important; outline-offset: 2px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none !important; }

/* ── fields ── */
html[data-theme="light"] .fld input, html[data-theme="light"] .fld select, html[data-theme="light"] .fld textarea { background: var(--surface); border-color: var(--line); border-radius: 12px; }
html[data-theme="light"] .fld input:focus, html[data-theme="light"] .fld select:focus, html[data-theme="light"] .fld textarea:focus { border-color: #6A55B8; box-shadow: 0 0 0 4px rgba(106, 85, 184, 0.14); }

/* ── lists ── */
html[data-theme="light"] .row-link { border-top-color: var(--line-2); }
@media (hover: hover) { html[data-theme="light"] .row-link:hover { background: var(--surface-2); } }

/* ── side menu: paper column, quiet groups, the current page is an ink pill ── */
@media (min-width: 1024px) {
  html[data-theme="light"] body.shell .gside {
    background: #FBF9F5; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-inline-end: 1px solid var(--line-2); box-shadow: none; padding: 22px 14px 14px;
  }
  html[data-theme="light"] .gs-brand { font-size: 0.98rem; padding: 4px 10px 10px; animation: none; background: none; -webkit-text-fill-color: #8A6A2C; color: #8A6A2C; }
  .gs-group { font-size: 0.7rem !important; font-weight: 600; letter-spacing: 0.06em !important; color: var(--t3) !important; padding: 20px 12px 6px !important; }
  html[data-theme="light"] .gs-link { min-height: 40px; color: var(--t2); font-size: 0.92rem; font-weight: 500; border-radius: 11px; }
  html[data-theme="light"] .gs-link svg { color: var(--t3); }
  html[data-theme="light"] .gs-link:hover:not(.on) { background: #F1ECE3; color: var(--t1); }
  html[data-theme="light"] .gs-link.on { background: #1B1535; color: #FBF8F2; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(27, 21, 53, 0.6); }
  html[data-theme="light"] .gs-link.on svg { color: #E9D9A6; }
  html[data-theme="light"] .gs-link.on .gs-badge { box-shadow: 0 0 0 2px #1B1535; }
  html[data-theme="light"] .gs-user { border-top-color: var(--line-2); }
}

/* ── phone tabs: the ink pill stays ── */
html[data-theme="light"] .gnav a { font-weight: 500; }

/* ── home: appointments read like a clean agenda ── */
html[data-theme="light"] .ap-time span { font-weight: 600; letter-spacing: -0.01em; }
html[data-theme="light"] .ap-name { font-weight: 600; }
html[data-theme="light"] .greet .gn { font-weight: 600; letter-spacing: -0.02em; font-size: 1.65rem; }
html[data-theme="light"] .greet .gt { color: var(--t3); }
@media (min-width: 1024px) {
  body.shell .qa { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); color: var(--t1) !important; font-weight: 500; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
  body.shell .qa:hover { background: var(--surface) !important; transform: translateY(-2px); box-shadow: var(--sh-2); }
}

/* ═════════ charts ═════════ */
.gc { position: relative; }
.gc svg { display: block; overflow: visible; }
.gc-grid { stroke: rgba(27, 21, 53, 0.07); stroke-width: 1; shape-rendering: crispEdges; }
.gc-grid.base { stroke: rgba(27, 21, 53, 0.16); }
.gc-ax { fill: var(--t3, #6E6884); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--f-head); }
.gc-val { fill: var(--t1, #1B1535); font-size: 11.5px; font-weight: 600; font-family: var(--f-head); }
.gc-line { fill: none; stroke: #6A55B8; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.gc-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gc-draw 1.4s var(--ease) 0.15s forwards; }
.gc-prev { fill: none; stroke: rgba(27, 21, 53, 0.28); stroke-width: 1.5; stroke-dasharray: 4 4; }
.gc-wash { animation: gc-fade 1.2s ease 0.5s both; }
.gc-end { fill: #6A55B8; stroke: var(--surface, #fff); stroke-width: 2.5; }
.gc-xline { stroke: rgba(27, 21, 53, 0.22); stroke-width: 1; }
.gc-dot { fill: #6A55B8; stroke: var(--surface, #fff); stroke-width: 2.5; }
.gc-dot.prev { fill: #9A95AA; }
.gc-cross { transition: opacity 0.15s; pointer-events: none; }
.gc-hit { cursor: crosshair; }
@keyframes gc-draw { to { stroke-dashoffset: 0; } }
@keyframes gc-fade { from { opacity: 0; } }
.gc-legend { display: flex; gap: 18px; justify-content: flex-start; font-size: 0.78rem; color: var(--t2); margin-top: 10px; }
.gc-legend span, .gc-tip span { display: inline-flex; align-items: center; gap: 7px; }
.gc-legend i, .gc-tip i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.gc-legend i.dash, .gc-tip i.dash { background: repeating-linear-gradient(90deg, #9A95AA 0 4px, transparent 4px 7px); }
.gc-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 112px; padding: 9px 12px; border-radius: 12px;
  background: #1B1535; color: #FBF8F2; font-size: 0.8rem; line-height: 1.5; box-shadow: 0 14px 30px -12px rgba(27, 21, 53, 0.55);
  display: flex; flex-direction: column; gap: 1px; opacity: 0; translate: 0 4px; transition: opacity 0.15s, translate 0.15s;
}
.gc-tip.on { opacity: 1; translate: 0 0; }
.gc-tip b { font-weight: 500; color: rgba(251, 248, 242, 0.7); font-size: 0.72rem; }
.gc-tip span { font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; justify-content: flex-end; }
.gc-tip span.p { color: rgba(251, 248, 242, 0.72); font-weight: 500; }
.gc-cols .gc-col path { transition: fill-opacity 0.2s; transform-box: fill-box; transform-origin: bottom; }
.gc-cols .gc-col.hot path { fill-opacity: 1; }
.gc-cols.grow .gc-col path { animation: gc-grow 0.9s var(--ease) both; animation-delay: var(--d); }
@keyframes gc-grow { from { transform: scaleY(0.02); } }
.gc-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.gc-ring { position: relative; flex: none; }
.gc-ring svg { width: 100%; height: 100%; }
.gc-track { fill: none; stroke: #EFEAE1; }
.gc-seg { fill: none; transition: opacity 0.2s; cursor: pointer; }
.gc-donut.grow .gc-seg { animation: gc-fade 0.8s ease both; animation-delay: var(--d); }
.gc-seg.dim, .gc-keys li.dim { opacity: 0.3; }
.gc-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.gc-mid b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--t1); direction: ltr; }
.gc-mid small { font-size: 0.74rem; color: var(--t3); margin-top: 2px; max-width: 80%; line-height: 1.25; }
.gc-keys { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.gc-keys li { display: grid; grid-template-columns: 10px 1fr auto 42px; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; font-size: 0.88rem; transition: opacity 0.2s, background 0.2s; cursor: default; }
.gc-keys li:hover { background: var(--surface-2, #F8F5EF); }
.gc-keys li i { width: 10px; height: 10px; border-radius: 3px; }
.gc-keys .k { color: var(--t1); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-keys .v { color: var(--t1); font-weight: 600; direction: ltr; font-variant-numeric: tabular-nums; }
.gc-keys .p { color: var(--t3); font-size: 0.78rem; text-align: end; font-variant-numeric: tabular-nums; }

/* ── motion stays gentle and stops when asked ── */
html[data-motion="reduce"] .gc *, html[data-motion="reduce"] .gc { animation: none !important; stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) { .gc *, .gc { animation: none !important; } .gc-line { stroke-dashoffset: 0 !important; } }
html.shot .gc-line { animation: none; stroke-dashoffset: 0; }

/* ── split bar + keyed cards (payment methods) ── */
.gc-split { display: flex; gap: 2px; height: 12px; margin: 0 16px 12px; border-radius: 7px; overflow: hidden; background: #EFEAE1; }
.gc-split i { min-width: 6px; transform-origin: right; animation: gc-split 1s var(--ease) both; }
.gc-split i:first-child { border-start-start-radius: 7px; border-end-start-radius: 7px; }
@keyframes gc-split { from { transform: scaleX(0); } }
.gc-keyed svg { color: var(--c) !important; }
.gc-meter { display: block; height: 4px; border-radius: 3px; background: #EFEAE1; margin-top: 10px; overflow: hidden; }
.gc-meter i { display: block; height: 100%; border-radius: 3px; background: var(--c); animation: gc-meter 1.1s var(--ease) .2s both; }
@keyframes gc-meter { from { width: 0; } }
@media (min-width: 1024px) { body.shell .gc-split { margin-inline: 16px; } }
html[data-motion="reduce"] .gc-split i, html[data-motion="reduce"] .gc-meter i { animation: none; }

/* ── big money figures in ink (gold is for actions), inline "glass" links become real cards ── */
html[data-theme="light"] .rev-big, html[data-theme="light"] .ch-big { color: var(--t1) !important; }
html[data-theme="light"] [style*="background:var(--glass)"] { background: var(--surface) !important; border-color: var(--line-2) !important; box-shadow: var(--sh-1); }
@media (hover: hover) { html[data-theme="light"] a[style*="background:var(--glass)"]:hover { box-shadow: var(--sh-2); transform: translateY(-1px); } }
html[data-theme="light"] a[style*="background:var(--glass)"] { transition: box-shadow .25s, transform .25s var(--ease); }
@media (max-width: 480px) { .seg button, .period button { white-space: nowrap; font-size: 0.82rem !important; padding-inline: 4px !important; } }

/* ═════════ round 2 (user): all text in deep navy, a stronger gold, no decorative drawings ═════════ */
html[data-theme="light"] {
  --t1: #1A2350;            /* deep navy — every text */
  --t2: #2E3A6B;            /* navy, secondary */
  --t3: #4F5A86;            /* navy, quiet (5.6:1) */
  --pearl: var(--t1); --pearl-soft: var(--t2); --pearl-dim: var(--t3);
  --ink: #1A2350;
  --gold-strong: #C08A2B;   /* the accent: richer, warmer, used for icons, marks, buttons */
  --gold-soft: #F4E6C4;
  --gold: #B07A1F; --gold-ink: #1A2350; --gold-text: #1A2350; --gold-warm: #E2B65C;
  --focus: #C08A2B;
}
html[data-theme="light"] body, html[data-theme="light"] .top-title, html[data-theme="light"] .kpi-n,
html[data-theme="light"] .section-head h2, html[data-theme="light"] .sec, html[data-theme="light"] .sec-label, html[data-theme="light"] .sec-row h2 { color: var(--t1); }
/* links that were gold text are navy now, with a gold arrow/underline doing the accent */
html[data-theme="light"] .sec-row a, html[data-theme="light"] .cal-link, html[data-theme="light"] .section-head a, html[data-theme="light"] .expand,
html[data-theme="light"] .prof-amt, html[data-theme="light"] .tx-amt, html[data-theme="light"] .mention, html[data-theme="light"] .ther-chip.on { color: var(--t1) !important; }
html[data-theme="light"] .sec-row a svg, html[data-theme="light"] .cal-link svg, html[data-theme="light"] .expand .ar { color: var(--gold-strong); }

/* no decorative drawings in the headers or corners */
.bar-orn, .glow-orn { display: none !important; }

/* gold, stronger */
html[data-theme="light"] .btn-gold, html[data-theme="light"] .fab, html[data-theme="light"] .al-go, html[data-theme="light"] .cbtn.send {
  color: #1A2350; background: linear-gradient(180deg, #F2D58A 0%, #D9A845 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 2px rgba(150, 100, 20, 0.3), 0 12px 24px -12px rgba(176, 122, 31, 0.75);
}
.section-head h2::before, .sec::before, .sec-label::before, .sec-row h2::before {
  background: linear-gradient(135deg, #F2D58A, #C08A2B) !important; box-shadow: 0 0 0 3px rgba(192, 138, 43, 0.2) !important;
}
html[data-theme="light"] .kpi-ic { color: #A8761C !important; background: var(--gold-soft) !important; }
html[data-theme="light"] .kpi.rose .kpi-ic { color: #B23E62 !important; background: #F7E1E7 !important; }
html[data-theme="light"] .qa .qi, html[data-theme="light"] .qa:nth-child(n) .qi { color: #B07A1F !important; }
@media (min-width: 1024px) {
  html[data-theme="light"] .gs-link.on { background: #1A2350; }
  html[data-theme="light"] .gs-link.on svg { color: #F2D58A; }
  html[data-theme="light"] .gs-link svg { color: #B07A1F; }
}
html[data-theme="light"] .gnav { background: linear-gradient(180deg, #24306A 0%, #1A2350 100%) !important; }
html[data-theme="light"] .gnav a.on .gi { background: linear-gradient(180deg, #F2D58A, #D9A845) !important; color: #1A2350 !important; box-shadow: 0 0 14px rgba(242, 213, 138, 0.5) !important; }
html[data-theme="light"] .seg button.on, html[data-theme="light"] .period button.on { box-shadow: inset 0 -2px 0 #D9A845, 0 1px 2px rgba(26, 35, 80, 0.08), 0 4px 12px -6px rgba(26, 35, 80, 0.25); }
html[data-theme="light"] .avatar, html[data-theme="light"] .hb-avatar { background: var(--gold-soft) !important; color: #1A2350 !important; border-color: rgba(192, 138, 43, 0.45) !important; }

/* the highlighted stat card is a stat card like the others */
html[data-theme="light"] .kpi.primary { background: var(--surface) !important; border: 1px solid var(--line-2) !important; box-shadow: var(--sh-1) !important; color: var(--t1); }
html[data-theme="light"] .kpi.primary::before { display: none; }
html[data-theme="light"] .kpi.primary .kpi-n { color: var(--t1) !important; }
html[data-theme="light"] .kpi.primary .kpi-l { color: var(--t2) !important; }
html[data-theme="light"] .kpi.primary .kpi-sub { color: var(--t3) !important; }
html[data-theme="light"] .kpi.primary .kpi-trend { color: #1E6B3C !important; background: rgba(46, 138, 87, 0.12) !important; }

/* the real logo in the side menu */
.gs-brand img { display: block; width: 168px; height: auto; margin: 2px 6px 4px; }
.dr-brand img, .ob-brand img { display: block; height: 34px; width: auto; }
.ob-brand img { height: 46px; margin: 0 auto; }

/* ── home on a computer: the agenda column with the therapist picker beside it ── */
@media (min-width: 1024px) {
  .agenda { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; padding: 18px 16px 4px; }
  .agenda .ag-side { grid-column: 1; } .agenda .ag-main { grid-column: 2 / span 3; } .agenda .ag-next { grid-column: 5; }
  .ag-side { align-self: stretch; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
  .ag-side .ther-filter { flex-direction: column; gap: 4px; overflow: visible; padding: 0; }
  .ag-side .ther-chip { width: 100%; padding: 10px 12px; border-radius: 13px; font-size: .92rem; font-weight: 500; color: var(--t2); transition: background .2s, color .2s; }
  .ag-side .ther-chip .ta { width: 30px; height: 30px; font-size: .78rem; opacity: 1; }
  .ag-side .ther-chip:hover { background: var(--surface-2); color: var(--t1); }
  html[data-theme="light"] .ag-side .ther-chip.on { background: #1A2350; color: #FBF8F2 !important; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(26, 35, 80, .6); }
  .ag-side .ther-chip.on::after { display: none; }
  .ag-side .cal-link { justify-content: center; margin-top: auto; padding: 11px 8px; border-top: 1px solid var(--line-2); border-radius: 0 0 12px 12px; font-weight: 600; }
  .ag-main .ap-list { padding: 0; }
  .ag-main .overlap-note { padding: 0 2px 10px; }
  .ag-main .ap { gap: 8px; }
  .ag-main .ap-time { width: 66px; }
  .ag-main .ap-status { width: 96px; }
}
/* the logo's pale gold deepened a little so it reads on paper */
.gs-brand img, .dr-brand img, .ob-brand img { filter: brightness(0.56) saturate(2.6) contrast(1.3); }

/* ── home on a computer: the free column — next appointment and the day hour by hour ── */
@media (min-width: 1024px) {
  .ag-next { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .nx-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; text-decoration: none; color: #FBF8F2;
    background: radial-gradient(120% 90% at 0% 100%, rgba(217,168,69,.4), transparent 60%), linear-gradient(160deg, #26316B 0%, #1A2350 70%);
    box-shadow: 0 18px 34px -20px rgba(26,35,80,.75); transition: transform .3s var(--ease), box-shadow .3s; }
  .nx-card:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -20px rgba(26,35,80,.85); }
  .nx-lbl { font-size: .78rem; font-weight: 600; color: #F2D58A; letter-spacing: .02em; }
  .nx-in { font-size: .9rem; color: rgba(251,248,242,.8); }
  .nx-in b { font-size: 2.3rem; font-weight: 600; color: #FBF8F2; letter-spacing: -.03em; margin-inline-end: 4px; line-height: 1; }
  .nx-who { display: flex; align-items: center; gap: 10px; }
  .nx-who b { display: block; font-size: .95rem; font-weight: 600; }
  .nx-who small { font-size: .76rem; color: rgba(251,248,242,.75); }
  .nx-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; color: #1A2350; box-shadow: 0 0 0 2px rgba(242,213,138,.6); }
  .nx-meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(251,248,242,.14); font-size: .78rem; color: rgba(251,248,242,.85); }
  .nx-meta span:first-child { direction: ltr; font-weight: 600; color: #FBF8F2; }
  .nx-meta i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
  .nx-day { flex: 1; min-height: 170px; padding: 14px 14px 14px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
  .nx-rail { position: relative; height: 100%; margin-inline-start: 30px; border-inline-start: 1px solid var(--line); }
  .nx-h { position: absolute; inset-inline-start: -30px; translate: 0 -50%; font-size: .68rem; color: var(--t3); font-variant-numeric: tabular-nums; }
  .nx-h::after { content: ""; position: absolute; inset-inline-start: 26px; top: 50%; width: 120px; border-top: 1px dashed rgba(26,35,80,.08); }
  .nx-b { position: absolute; inset-inline-start: calc(6px + var(--k) * 23%); width: 21%; min-height: 6px; border-radius: 5px; box-shadow: 0 2px 6px -3px rgba(26,35,80,.5); }
  .nx-b.done { opacity: .45; }
  .nx-now { position: absolute; inset-inline: -4px 0; height: 0; border-top: 2px solid #C24D6E; z-index: 2; }
  .nx-now::before { content: ""; position: absolute; inset-inline-start: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #C24D6E; }
  .nx-now em { position: absolute; inset-inline-end: 0; top: -18px; font-style: normal; font-size: .64rem; font-weight: 600; color: #C24D6E; }
}

/* ═════════ round 6 (user): calendar, clients, WhatsApp, shifts, blocks, orders and suppliers,
   packages, vouchers, club and the booking page join the v3 language ═════════ */
/* shared: every list item is its own card, the icon sits in a soft gold disc */
html[data-theme="light"] :is(.blk, .sup-card, .vch-list > *, .pend-list > *, .track-card, .sup-block, .tmpl-list, .sent-list, .benefits, .lst, .live-card) {
  background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-card) !important;
  box-shadow: var(--sh-1) !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-theme="light"] :is(.blk, .sup-card, .vch-list > *, .pend-list > *, .pkg-list > *, .cl-row) { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) {
  html[data-theme="light"] :is(.blk, .sup-card, .vch-list > *, .pkg-list > *, .cl-row):hover { transform: translateY(-2px); box-shadow: var(--sh-2) !important; }
}
html[data-theme="light"] :is(.blk-ic, .vch-ic, .sup-av, .ben-ic) {
  background: var(--gold-soft) !important; color: var(--gold-strong) !important; border: 0 !important; border-radius: 14px !important;
}
html[data-theme="light"] :is(.blk-t, .sup-name, .vch-title, .pkg-name, .tmpl-name, .ben-text b) { color: var(--t1) !important; font-weight: 600; }
html[data-theme="light"] :is(.blk-s, .blk-who, .sup-note, .sup-contact, .vch-sub, .pkg-meta, .tmpl-body, .sl-msg) { color: var(--t3) !important; }

/* filters: the same sunken track as the period switches */
html[data-theme="light"] .cl-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-top: 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
html[data-theme="light"] .cl-filters button { border: 0 !important; background: transparent !important; color: var(--t2) !important; padding: 8px 14px; border-radius: 999px; font-weight: 500; white-space: nowrap; box-shadow: none !important; }
html[data-theme="light"] .cl-filters button.on { background: var(--surface) !important; color: var(--t1) !important; box-shadow: var(--sh-1) !important; }
html[data-theme="light"] .search { background: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-1); border-radius: 16px !important; }
html[data-theme="light"] .count-line { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--t3) !important; display: flex; align-items: center; gap: 8px; }
html[data-theme="light"] .count-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-strong); }

/* ── clients: a directory of cards ── */
html[data-theme="light"] .cl-row { background: var(--surface); border: 1px solid var(--line-2) !important; border-radius: 18px; box-shadow: var(--sh-1); margin: 0 16px 10px; padding: 12px 14px !important; }
html[data-theme="light"] .cl-row .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold-soft); }
@media (min-width: 1024px) {
  body.shell .search-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  body.shell .search-wrap .search { flex: 1 1 320px; max-width: 460px; }
  body.shell .search-wrap .cl-filters { margin-top: 0; }
  body.shell .cl-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 12px !important; }
  body.shell .cl-list .cl-row { margin: 0; }
}

/* ── calendar: a white timeline on paper, appointment cards with a coloured spine ── */
html[data-theme="light"] .date-strip-wrap { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--sh-1); margin: 10px 16px 6px; padding-block: 12px; }
html[data-theme="light"] .day-pill { border-radius: 14px; }
html[data-theme="light"] :is(.day-pill.on, .day-pill.active, .day-pill.sel, .day-pill[aria-selected="true"], .day-pill[aria-current]) { background: var(--t1) !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(26, 35, 80, .6); }
html[data-theme="light"] :is(.day-pill.on, .day-pill.active, .day-pill.sel, .day-pill[aria-selected="true"], .day-pill[aria-current]) * { color: #fff !important; }
html[data-theme="light"] :is(.timeline, .week-grid, .mo-grid) { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--sh-1); }
html[data-theme="light"] .hour-label { color: var(--t3) !important; font-variant-numeric: tabular-nums; font-size: .74rem; }
html[data-theme="light"] .hour-row { border-top-color: var(--line-2) !important; }
html[data-theme="light"] .appt-block { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-inline-start: 4px solid #6A55B8 !important; border-radius: 12px !important; box-shadow: var(--sh-1) !important; color: var(--t1); }
html[data-theme="light"] .appt-block.s-confirmed { border-inline-start-color: var(--gold-strong) !important; background: linear-gradient(90deg, var(--surface), #FBF5E7) !important; }
html[data-theme="light"] .appt-block.s-arrived { border-inline-start-color: #2F9E6A !important; }
html[data-theme="light"] .appt-block .ab-name { color: var(--t1) !important; font-weight: 600; }
html[data-theme="light"] .appt-block :is(.ab-time, .ab-treat) { color: var(--t3) !important; }
html[data-theme="light"] .now-line { background: #D06A80 !important; box-shadow: none !important; }
html[data-theme="light"] .now-dot { background: #D06A80 !important; }
@media (min-width: 1024px) {
  body.shell :is(.day-view, .week-view, .month-view, .date-strip-wrap) { max-width: 980px; margin-inline: auto; }
}

/* ── WhatsApp: messages waiting for you, then templates, then what was sent ── */
html[data-theme="light"] .pend-list > * { margin: 0 16px 12px; padding: 16px !important; }
html[data-theme="light"] :is(.pend-type, .mode-tag, .sl-type) { background: var(--gold-soft) !important; color: #7A5414 !important; border: 0 !important; border-radius: 999px; font-weight: 600; }
html[data-theme="light"] .pend-msg { background: #E7F6EC !important; border: 0 !important; border-radius: 14px 14px 4px 14px !important; color: var(--t1) !important; }
html[data-theme="light"] .send-all { background: #1F9D57 !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; box-shadow: 0 10px 22px -12px rgba(31, 157, 87, .7) !important; }
html[data-theme="light"] .tmpl-row { border-top-color: var(--line-2) !important; }
@media (min-width: 1024px) {
  body.shell .pend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-inline: 16px; }
  body.shell .pend-list > * { margin: 0; }
}

/* ── shifts: a clean grid, the week reads as rows of soft pills ── */
html[data-theme="light"] :is(.grid, .wk, .dv, .mo) { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-card) !important; box-shadow: var(--sh-1) !important; }
html[data-theme="light"] .cell { border-radius: 10px !important; }
html[data-theme="light"] :is(.cell:not(.off), .dv-bar:not(.dv-off)) { background: linear-gradient(180deg, #EEE9FA, #E3DCF6) !important; color: #3E2F86 !important; border: 0 !important; }
html[data-theme="light"] :is(.cell.off, .dv-off) { background: repeating-linear-gradient(135deg, var(--paper) 0 6px, #ECE7DD 6px 7px) !important; color: var(--t3) !important; }
html[data-theme="light"] .pend-banner { background: var(--gold-soft) !important; border: 1px solid #E8D3A0 !important; color: var(--t1) !important; border-radius: 16px !important; }
html[data-theme="light"] :is(.wk-name, .rl) { color: var(--t1) !important; font-weight: 600; }

/* ── blocks and vacations: a spine of colour per kind ── */
html[data-theme="light"] .blk { position: relative; overflow: hidden; margin: 0 16px 12px; padding: 14px 16px !important; }
html[data-theme="light"] .blk::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-strong); }
html[data-theme="light"] :is(.blk.k-vac, .blk.k-vacation)::before { background: #0E98B0; }
html[data-theme="light"] .blk.k-holiday::before { background: #D06A80; }
html[data-theme="light"] .blk.k-break::before { background: #6A55B8; }
@media (min-width: 1024px) {
  body.shell :is(.blk-list, .sup-list, .vch-list, .pkg-list) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 14px !important; padding-inline: 16px; }
  body.shell :is(.blk-list, .sup-list, .vch-list, .pkg-list) > * { margin: 0 !important; }
}

/* ── orders and suppliers ── */
html[data-theme="light"] .track-card { padding: 16px !important; position: relative; overflow: hidden; }
html[data-theme="light"] .track-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--gold-strong); }
html[data-theme="light"] .track-card.late-tc::after { background: #D06A80; }
html[data-theme="light"] .track-card.got-tc::after { background: #2F9E6A; }
html[data-theme="light"] .track-card.approved-tc::after { background: #6A55B8; }
html[data-theme="light"] .track-name { color: var(--t1) !important; font-weight: 600; }
html[data-theme="light"] :is(.track-sub, .track-meta) { color: var(--t3) !important; }
html[data-theme="light"] .sup-block-head { border-bottom: 1px solid var(--line-2); padding-bottom: 10px; font-weight: 600; color: var(--t1); }
html[data-theme="light"] .ord-item { border-top-color: var(--line-2) !important; }
html[data-theme="light"] .sup-card { margin: 0 16px 12px; padding: 16px !important; }
html[data-theme="light"] .sup-btn { border-radius: 999px !important; font-weight: 600; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--t1) !important; }
html[data-theme="light"] .sup-btn.sb-wa { background: #E7F6EC !important; border-color: #BFE5CC !important; color: #17663C !important; }
@media (min-width: 1024px) {
  body.shell .track-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-inline: 16px; }
  body.shell .track-list > * { margin: 0 !important; }
}

/* ── packages: ticket cards with a warm band on top ── */
html[data-theme="light"] .pkg-list > * { margin: 0 16px 14px; padding: 18px !important; position: relative; overflow: hidden; background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-card) !important; box-shadow: var(--sh-1) !important; }
html[data-theme="light"] .pkg-list > *::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 64px; background: linear-gradient(120deg, #F8EFD9, #FFFEFB 70%); z-index: 0; }
html[data-theme="light"] .pkg-list > * > * { position: relative; z-index: 1; }
html[data-theme="light"] .pkg-price { color: var(--t1) !important; font-weight: 700; font-size: 1.5rem; }
html[data-theme="light"] .pkg-per { color: var(--t3) !important; }
html[data-theme="light"] :is(.pkg-gift-tag, .pkg-club, .pkg-online) { background: var(--gold-soft) !important; color: #7A5414 !important; border: 0 !important; border-radius: 999px !important; font-weight: 600; }

/* ── vouchers: an ink total, cards like gift cards ── */
html[data-theme="light"] .total-bar { background: var(--t1) !important; color: #fff !important; border-radius: var(--r-card) !important; box-shadow: 0 18px 36px -22px rgba(26, 35, 80, .7) !important; border: 0 !important; }
html[data-theme="light"] .total-bar * { color: inherit !important; }
html[data-theme="light"] .vch-list > * { margin: 0 16px 12px; padding: 14px 16px !important; }
html[data-theme="light"] .vch-bal { color: var(--t1) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .vch-state { border-radius: 999px !important; font-weight: 600; }

/* ── club: an ink membership card ── */
html[data-theme="light"] .club-hero { background: radial-gradient(120% 140% at 100% 0%, #2B3A7A 0%, #1A2350 55%, #121A3E 100%) !important; border: 0 !important; border-radius: var(--r-big) !important; color: #fff !important; box-shadow: 0 24px 48px -26px rgba(26, 35, 80, .8) !important; position: relative; overflow: hidden; }
html[data-theme="light"] .club-hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; top: -90px; border: 1px solid rgba(242, 213, 138, .35); box-shadow: 0 0 0 36px rgba(242, 213, 138, .06); pointer-events: none; }
html[data-theme="light"] .club-hero * { color: #fff !important; }
html[data-theme="light"] .club-hero .ch-count { color: #F2D58A !important; }
html[data-theme="light"] .ben-row { border-top-color: var(--line-2) !important; }
html[data-theme="light"] .join { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: 16px !important; box-shadow: var(--sh-1); }
html[data-theme="light"] .join.on { border-color: var(--gold-strong) !important; box-shadow: 0 0 0 3px var(--gold-soft), var(--sh-1) !important; }
@media (min-width: 1024px) {
  body.shell .join-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ── booking page: a live preview with a warm header, the link in a dashed slot ── */
html[data-theme="light"] .live-card { overflow: hidden; }
html[data-theme="light"] .live-top { background: linear-gradient(120deg, #F8EFD9, #FFFEFB); border-bottom: 1px solid var(--line-2); }
html[data-theme="light"] .url { background: var(--paper) !important; border: 1px dashed var(--line) !important; border-radius: 12px !important; color: var(--t1) !important; }
html[data-theme="light"] .opt { border-top-color: var(--line-2) !important; }
