/* OneJump UI styles (from the prototype), shared by every page. */
* { box-sizing: border-box; }
html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :focus-visible { outline-color: var(--volt); } }
svg.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-stretch: 118%; font-weight: 800; letter-spacing: -.025em; }
.h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: 1.25rem; font-stretch: 108%; font-weight: 750; letter-spacing: -.01em; }
.h3 { font-size: 1.02rem; font-weight: 700; }
.eyebrow { font-size: .72rem; font-weight: 700; font-stretch: 90%; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.num { font-variant-numeric: tabular-nums; }
.big-num { font-size: 1.9rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.05; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- layout ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.s4 { gap: 4px; } .stack.s8 { gap: 8px; } .stack.s16 { gap: 16px; } .stack.s24 { gap: 24px; } .stack.s32 { gap: 32px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hide-sm { } @media (max-width: 760px) { .hide-sm { display: none !important; } }
.show-sm { display: none !important; } @media (max-width: 760px) { .show-sm { display: initial !important; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.pad { padding: 20px; } .pad-sm { padding: 14px 16px; } .pad-lg { padding: 28px; }
@media (max-width: 560px) { .pad { padding: 16px; } .pad-lg { padding: 20px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head .h3 { display: flex; align-items: center; gap: 8px; }
.plain { background: transparent; }
.sep { height: 1px; background: var(--line); border: 0; margin: 0; }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .92rem; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.assist { background: var(--assist); border-color: var(--assist); color: var(--on-assist); }
.btn.assist:hover { background: var(--volt-deep); border-color: var(--volt-deep); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn.danger { color: var(--crit); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .84rem; }
.btn.xs { height: 26px; padding: 0 10px; font-size: .78rem; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm svg, .btn.xs svg { width: 15px; height: 15px; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:root[data-theme="dark"] .link { color: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link { color: var(--volt); } }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .82rem; font-weight: 650; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .95rem; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--info-tint); }
.input.sm { min-height: 34px; padding: 5px 9px; font-size: .88rem; }
.hint { font-size: .8rem; color: var(--faint); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 38px; border-radius: 999px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; text-align: left; font-weight: 650; }
.choice small { font-weight: 450; color: var(--muted); font-size: .8rem; }
.choice:hover { border-color: var(--ink); }
.choice.on { border-color: var(--ink); background: var(--assist-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.toggle { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); cursor: pointer; transition: background .15s; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: transform .15s; }
.toggle.on { background: var(--green); border-color: var(--green); }
:root[data-theme="dark"] .toggle.on { background: var(--volt); border-color: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle.on { background: var(--volt); border-color: var(--volt); } }
.toggle.on::after { transform: translateX(18px); }
input[type=range] { width: 100%; accent-color: var(--green); }

/* ---------- chips & pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.crit { background: var(--crit-tint); color: var(--crit); }
.pill.info { background: var(--info-tint); color: var(--info); }
.pill.assist { background: var(--assist-tint); color: var(--assist-ink); }
.pill.outline { background: transparent; border: 1px solid var(--line-strong); }
.stage { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: .64rem; font-weight: 750; letter-spacing: .05em; border: 1px solid currentColor; opacity: .85; }
.stage.mvp { color: var(--good); } .stage.v2 { color: var(--warn); } .stage.future { color: var(--faint); }
body.no-stage .stage { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip .count { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.chip.on .count { background: rgba(255,255,255,.16); color: inherit; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); font-size: .76rem; font-weight: 600; color: var(--muted); }

/* ---------- avatar ---------- */
.av { --s: 36px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: calc(var(--s) * .36); color: #12281F; letter-spacing: .01em; position: relative; }
.av.lg { --s: 64px; } .av.md { --s: 44px; } .av.sm { --s: 28px; } .av.xs { --s: 22px; font-size: 9px; }
.av .ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--crit); }
.av .ring.warn { border-color: var(--warn); }

/* ---------- the Assist mark (the logo's jump arc) ---------- */
.arc { width: 18px; height: 18px; flex: none; }
.arc path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.arc circle { fill: currentColor; }
.assist-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--assist); color: var(--on-assist); font-size: .75rem; font-weight: 750; letter-spacing: .01em; }
.assist-badge .arc { width: 15px; height: 15px; }
.assist-card { border: 1px solid var(--assist-line); background: linear-gradient(var(--assist-soft), var(--assist-soft)), var(--surface); border-radius: var(--r-lg); }
.assist-text { color: var(--assist-ink); }
.thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.thinking .arc path { stroke-dasharray: 30; animation: arcdraw 1.1s ease-in-out infinite; }
@keyframes arcdraw { 0% { stroke-dashoffset: 30; } 60%, 100% { stroke-dashoffset: 0; } }
.skel { border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.3s linear infinite; height: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .thinking .arc path, .skel { animation: none; } }

/* ---------- severity stripe rows ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; } .li.click:hover { background: var(--surface-2); }
@media (max-width: 560px) { .li { padding: 12px 16px; } }
.sev { position: relative; }
.sev::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); }
.sev.crit::before { background: var(--crit); } .sev.warn::before { background: var(--warn); } .sev.good::before { background: var(--good); } .sev.assist::before { background: var(--volt-deep); }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.kpi { padding: 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .delta { font-size: .8rem; font-weight: 650; }
.delta.up { color: var(--good); } .delta.down { color: var(--crit); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.r, .t th.r { text-align: right; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--surface-2); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 12px; background: none; border: 0; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: .92rem; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-3); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 650; font-size: .84rem; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- app shell (trainer + admin) ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100%; }
.rail { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; }
.rail .brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 18px; }
.rail .brand svg.wordmark { height: 24px; width: auto; color: var(--bone); }
.rail .brand .ws { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-muted); }
.rail .biz { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 14px; border-radius: 12px; background: var(--rail-2); }
.rail .biz .logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--volt); color: var(--deep); font-weight: 800; font-size: .8rem; font-stretch: 110%; }
.rail .group-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rail-muted); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--rail-ink); font-weight: 600; font-size: .92rem; cursor: pointer; text-align: left; opacity: .82; }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.06); opacity: 1; }
.nav-item.on { background: rgba(214,255,61,.13); opacity: 1; color: #fff; }
.nav-item.on svg { color: var(--volt); }
.nav-item .badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--volt); color: var(--deep); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.nav-item .stage { margin-left: auto; color: var(--rail-muted); }
.nav-item .badge + .stage { margin-left: 6px; }
.rail .foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rail .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.rail .me:hover { background: rgba(255,255,255,.05); }
.rail .saved { padding: 12px; border-radius: 12px; border: 1px solid rgba(214,255,61,.22); background: rgba(214,255,61,.06); font-size: .82rem; color: var(--rail-muted); }
.rail .saved b { color: var(--volt); font-size: 1.15rem; display: block; font-stretch: 110%; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: .72rem; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; }
.content { padding: 28px; padding-bottom: 96px; max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); border: 2px solid var(--bg); }
.mobile-only { display: none; }
.tabbar { display: none; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  body.rail-open .rail { transform: none; box-shadow: var(--shadow-2); }
  body.rail-open .rail-scrim { display: block; }
  .mobile-only { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 110px; }
}
.rail-scrim { display: none; position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
@media (max-width: 640px) {
  .topbar .search { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; font-size: .68rem; font-weight: 650; color: var(--muted); cursor: pointer; position: relative; }
  .tabbar button svg { width: 22px; height: 22px; }
  .tabbar button.on { color: var(--ink); }
  .tabbar button .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--crit); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
}

/* ---------- Today queue ---------- */
.q-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; }
.q-item:first-child { border-top: 0; }
.q-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); }
.q-icon svg { width: 20px; height: 20px; }
.q-icon.crit { background: var(--crit-tint); color: var(--crit); }
.q-icon.warn { background: var(--warn-tint); color: var(--warn); }
.q-icon.assist { background: var(--assist-tint); color: var(--assist-ink); }
.q-icon.good { background: var(--good-tint); color: var(--good); }
.q-actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.q-draft { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--assist-line); font-size: .9rem; }
.q-done { opacity: .55; }
@media (max-width: 640px) { .q-actions { grid-column: 1 / -1; } }

/* ---------- client cards ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cc { display: flex; flex-direction: column; gap: 14px; padding: 18px; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; }
.cc:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cc .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .84rem; }
.cc .meta dt { color: var(--faint); font-size: .74rem; font-weight: 600; }
.cc .meta dd { margin: 0; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--green); }
:root[data-theme="dark"] .bar > i { background: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar > i { background: var(--volt); } }
.bar.warn > i { background: var(--warn); } .bar.crit > i { background: var(--crit); }

/* ---------- client profile ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; }
.stat { padding: 14px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.photo { aspect-ratio: 3/4; max-width: 100%; border-radius: var(--r-md); background: var(--surface-3); display: grid; place-items: end start; padding: 10px; position: relative; overflow: hidden; }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--stone); }
.photo span { position: relative; font-size: .76rem; font-weight: 700; background: var(--surface); padding: 2px 8px; border-radius: 6px; }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.lib-list { max-height: 560px; overflow-y: auto; }
.lib-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); cursor: grab; }
.lib-item:hover { background: var(--surface-2); }
.thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--muted); }
.thumb svg { width: 18px; height: 18px; }
.block { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.block.dragging { opacity: .4; }
.block.over { box-shadow: 0 -3px 0 var(--green) inset; }
.block-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.block-head .grip { cursor: grab; color: var(--faint); display: grid; }
.block-letter { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .8rem; flex: none; }
.group-box { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.group-label { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 4px; }
.sets { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sets th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 6px 6px; text-align: left; }
.sets td { padding: 4px 6px; border-top: 1px solid var(--line); }
.sets input { width: 100%; min-width: 52px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px 6px; }
.sets input:hover { border-color: var(--line-strong); }
.sets input:focus { outline: none; border-color: var(--green); background: var(--surface); }

/* ---------- messaging ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 236px); min-height: 520px; overflow: hidden; }
.inbox .threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line); }
.thread:hover { background: var(--surface-2); }
.thread.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.thread .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 6px; flex: none; }
:root[data-theme="dark"] .thread .unread { background: var(--volt); }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo .msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(560px, 82%); padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.bubble.them { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--primary); color: var(--on-primary); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .time { display: block; font-size: .7rem; opacity: .6; margin-top: 4px; }
.day-sep { align-self: center; font-size: .72rem; font-weight: 700; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.assist-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.assist-bar::-webkit-scrollbar { display: none; }
.assist-bar .chip { height: 30px; font-size: .8rem; padding: 0 11px; border-color: var(--assist-line); background: var(--assist-soft); }
.assist-bar .chip:hover { background: var(--assist-tint); border-color: var(--assist-ink); }
.ctx-pane { border-left: 1px solid var(--line); padding: 18px; overflow-y: auto; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .inbox .threads { border-right: 0; max-height: none; }
  .inbox.has-thread .threads { display: none; }
  .inbox:not(.has-thread) .convo { display: none; }
  .convo .msgs { max-height: 55dvh; }
}

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 860px; }
.cal .col-head { padding: 10px 8px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cal .col-head.today .dn { background: var(--primary); color: var(--on-primary); }
.cal .dn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 750; font-size: 1rem; }
.cal .hour { height: 52px; font-size: .7rem; color: var(--faint); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.cal .day { position: relative; border-left: 1px solid var(--line); }
.cal .slot { height: 52px; border-top: 1px solid var(--line); }
.cal .slot.avail { background: var(--assist-soft); }
.cal .slot:hover { background: var(--surface-2); cursor: copy; }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 5px 8px; font-size: .76rem; line-height: 1.25; cursor: pointer; overflow: hidden; border-left: 3px solid var(--green); background: var(--info-tint); color: var(--ink); }
.ev b { display: block; font-size: .8rem; }
.ev.video { border-left-color: var(--volt-deep); background: var(--assist-tint); }
.ev.consult { border-left-color: var(--warn); background: var(--warn-tint); }
.ev.cancelled { opacity: .5; text-decoration: line-through; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.kcol.over { border-color: var(--green); background: var(--assist-soft); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: grab; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--faint); font-size: 11px; font-family: var(--f-ui); }
.chart .grid-l { stroke: var(--chart-grid); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--chart-1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line2 { fill: none; stroke: var(--chart-2); stroke-width: 2; stroke-dasharray: 4 4; }
.chart .area { fill: var(--chart-1); opacity: .10; }
.chart .bar-a { fill: var(--chart-1); }
.chart .bar-b { fill: var(--chart-2); }
.chart .bar-neg { fill: var(--crit); opacity: .8; }
.chart .end { fill: var(--chart-1); stroke: var(--surface); stroke-width: 3; }
.chart .end-label { fill: var(--ink); font-weight: 700; font-size: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.spark { width: 100%; height: 36px; display: block; }
.spark path.l { fill: none; stroke: var(--chart-1); stroke-width: 2; }
.spark path.a { fill: var(--chart-1); opacity: .1; }

/* ---------- modal / drawer / toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); flex-wrap: wrap; }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; animation: slidein .2s ease-out; padding-top: env(safe-area-inset-top, 0px); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; border-radius: 14px; background: var(--deep); color: var(--bone); box-shadow: var(--shadow-2); font-size: .9rem; font-weight: 550; animation: up .2s ease-out; }
.toast .arc { color: var(--volt); }
.toast button { background: none; border: 0; color: var(--volt); font-weight: 750; cursor: pointer; padding: 2px 4px; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 640px) { .toasts { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- chat (assist) ---------- */
.chat { display: flex; flex-direction: column; gap: 16px; }
.chat .q { align-self: flex-end; max-width: 85%; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-weight: 550; }
.chat .a { display: flex; gap: 12px; align-items: flex-start; }
.chat .a .who { width: 30px; height: 30px; border-radius: 50%; background: var(--assist); color: var(--on-assist); display: grid; place-items: center; flex: none; }
.chat .a .who .arc { width: 17px; height: 17px; }
.chat .a .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.trace { display: flex; gap: 6px; flex-wrap: wrap; }
.trace span { font-size: .72rem; font-weight: 650; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.suggest button:hover { border-color: var(--ink); }

/* ---------- upsell / empty ---------- */
.upsell { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--assist-line); background: var(--assist-soft); flex-wrap: wrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--muted); }
.empty .arc { width: 40px; height: 40px; color: var(--volt-deep); }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 750; color: var(--assist-ink); background: var(--assist-tint); padding: 2px 7px; border-radius: 6px; }

/* ---------- public pages ---------- */
.pub { min-height: 100%; background: var(--bg); }
.pub-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: var(--deep); color: var(--bone); }
.pub-nav svg.wordmark { height: 24px; width: auto; color: var(--bone); }
.pub-nav .links { display: flex; gap: 24px; font-size: .9rem; font-weight: 600; }
.pub-nav .links a { text-decoration: none; opacity: .8; cursor: pointer; } .pub-nav .links a:hover { opacity: 1; }
@media (max-width: 860px) { .pub-nav .links { display: none; } }
.hero { background: var(--deep); color: var(--bone); padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 48px) 0; overflow: hidden; }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
@media (max-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); line-height: .98; font-stretch: 122%; font-weight: 850; letter-spacing: -.035em; }
.hero h1 .jump { position: relative; display: inline-block; }
.hero h1 .jump-line { display: inline-block; padding-top: .34em; }
.hero h1 .jump svg { position: absolute; left: 2%; width: 92%; top: -0.36em; height: .62em; overflow: visible; }
.hero h1 .jump svg path { fill: none; stroke: var(--volt); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; animation: heroarc 1.1s .3s cubic-bezier(.6,0,.2,1) backwards; }
.hero h1 .jump svg circle { fill: var(--volt); }
@keyframes heroarc { from { stroke-dashoffset: 600; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .jump svg path { animation: none; } }
.hero .lede { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: rgba(244,246,241,.78); max-width: 34em; margin-top: 22px; line-height: 1.55; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .btn.assist { color: var(--deep); }
.hero .btn.outline-light { background: transparent; color: var(--bone); border-color: rgba(244,246,241,.35); }
.hero .btn.outline-light:hover { border-color: var(--bone); background: rgba(255,255,255,.06); }
.hero .fine { margin-top: 14px; font-size: .84rem; color: rgba(244,246,241,.55); }
.hero-shot { border-radius: 18px 18px 0 0; background: #F4F6F1; color: #12281F; padding: 18px; box-shadow: 0 -20px 60px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
.section { padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); }
.section-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.section h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-stretch: 116%; font-weight: 820; letter-spacing: -.03em; line-height: 1.04; max-width: 18em; }
.section .kicker { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
:root[data-theme="dark"] .section .kicker { color: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section .kicker { color: var(--volt); } }
.section.dark { background: var(--deep); color: var(--bone); }
.section.dark .kicker { color: var(--volt); }
.section.dark .muted { color: rgba(244,246,241,.68); }
.promise { padding: 24px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.promise .n { font-size: .8rem; font-weight: 750; color: var(--muted); letter-spacing: .06em; }
.week-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.week-chart > div { padding: 22px; }
.week-chart > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .week-chart { grid-template-columns: minmax(0, 1fr); } .week-chart > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.hours-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: .86rem; padding: 5px 0; }
.hours-row .b { height: 10px; border-radius: 5px; background: var(--stone); }
.hours-row .b.after { background: var(--green); }
:root[data-theme="dark"] .hours-row .b.after { background: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hours-row .b.after { background: var(--volt); } }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.price.feature { background: var(--deep); color: var(--bone); border-color: var(--deep); position: relative; }
.price.feature .muted { color: rgba(244,246,241,.68); }
.price .amt { font-size: 2.6rem; font-weight: 850; font-stretch: 116%; letter-spacing: -.03em; line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.price li { display: flex; gap: 8px; align-items: flex-start; }
.price li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--green); }
.price.feature li svg { color: var(--volt); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.footer { background: var(--deep); color: rgba(244,246,241,.7); padding: 36px clamp(16px, 4vw, 48px); }
.footer svg.wordmark { height: 22px; width: auto; color: var(--bone); }

/* auth & onboarding */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .side { background: var(--deep); color: var(--bone); padding: 40px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth .side svg.wordmark { height: 26px; width: auto; color: var(--bone); }
.auth .form { display: grid; place-items: center; padding: 40px 16px; }
.auth .form > div { width: min(420px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth .side { padding: 28px 20px; } .auth .side .quote { display: none; } }
.onb { min-height: 100%; display: flex; flex-direction: column; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
.onb-top svg.wordmark { height: 22px; width: auto; color: var(--ink); }
.progress { height: 4px; background: var(--surface-3); }
.progress i { display: block; height: 100%; background: var(--volt-deep); transition: width .3s; }
.onb-body { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px 120px; display: flex; flex-direction: column; gap: 24px; }
.onb-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 28px; display: flex; gap: 18px; align-items: center; background: var(--surface); flex-wrap: wrap; }
.config-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.config-list { list-style: none; margin: 0; padding: 0; }
.config-list li svg { width: 20px; height: 20px; flex: none; color: var(--good); margin-top: 1px; }

/* booking page */
.booking-hero { background: var(--deep); color: var(--bone); padding: 40px clamp(16px, 4vw, 48px); }
.urlbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-3); font-size: .84rem; color: var(--muted); max-width: 100%; overflow: hidden; }
.urlbar b { color: var(--ink); font-weight: 650; }

/* ---------- client phone app ---------- */
.phone-stage { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 50% -10%, var(--surface-3), var(--bg)); }
.phone-notes { display: flex; flex-direction: column; gap: 14px; max-width: 320px; justify-self: end; }
.phone-notes.r { justify-self: start; }
.phone { width: 390px; height: 800px; border-radius: 48px; padding: 12px; background: #0B1A13; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45), inset 0 0 0 2px #26392F; }
.screen { --c-accent: #D6FF3D; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.screen .status { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: .8rem; font-weight: 700; }
.screen .scroll { flex: 1; overflow-y: auto; padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.screen .ctabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 8px 6px 22px; }
.screen .ctabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 650; color: var(--muted); cursor: pointer; }
.screen .ctabbar button svg { width: 23px; height: 23px; }
.screen .ctabbar button.on { color: var(--ink); }
.today-card { background: var(--deep); color: var(--bone); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.today-card .btn.assist { color: var(--deep); }
.set-row { display: grid; grid-template-columns: 34px 1fr 1fr 44px; gap: 8px; align-items: center; }
.set-row input { width: 100%; height: 40px; text-align: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; font-size: 1rem; }
.check { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: transparent; }
.check svg { width: 20px; height: 20px; }
.check.on { background: var(--volt); border-color: var(--volt); color: var(--deep); }
.rate { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rate button { height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .84rem; cursor: pointer; padding: 0; }
.rate button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
@media (max-width: 1100px) { .phone-notes { display: none; } .phone-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
@media (max-width: 460px) {
  .phone-stage { padding: 0; display: block; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
  .screen { border-radius: 0; }
  .screen .status { display: none; }
  .screen .ctabbar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}


/* ---------- additions for the real app (not in the prototype) ---------- */
a.btn, a.nav-item, a.li, a.chip, a.thread { text-decoration: none; color: inherit; }
a.btn.primary { color: var(--on-primary); }
a.btn.assist { color: var(--on-assist); }
.nav-item { text-decoration: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: .68rem; font-weight: 650; color: var(--muted); position: relative; text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--ink); }
.tabbar a .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--crit); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.field-error { color: var(--crit); font-size: .8rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--crit) !important; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.boot .arc { width: 44px; height: 44px; color: var(--volt-deep); }
#view:focus { outline: none; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-tint); font-size: .9rem; }
.notice.warn { background: var(--warn-tint); }
.notice.crit { background: var(--crit-tint); }
.testmode { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--warn); background: var(--warn-tint); padding: 3px 8px; border-radius: 6px; }
.kbd-hint { font-size: .72rem; color: var(--faint); }
.seg button[disabled] { opacity: .5; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo span { z-index: 1; }

/* client app (installable web app): full screen on phones, a centred column on bigger screens */
body.client-app { background: var(--bg); }
.capp { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; background: radial-gradient(1200px 600px at 50% -10%, var(--surface-3), var(--bg)); }
.capp .screen { max-width: 520px; height: auto; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.capp .screen .scroll { padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 110px; overflow: visible; }
.capp .ctabbar { position: fixed; bottom: 0; left: 50%; translate: -50% 0; width: min(520px, 100%); z-index: 20; grid-template-columns: repeat(5, 1fr) !important; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
.capp .ctabbar a { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 650; color: var(--muted); text-decoration: none; padding-top: 2px; }
.capp .ctabbar a svg { width: 23px; height: 23px; }
.capp .ctabbar a.on { color: var(--ink); }
.capp .ctabbar a .dot { position: absolute; }
.rest-banner { position: sticky; top: 8px; z-index: 5; }
.howto { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--muted); }
@media (min-width: 560px) { .capp .screen { margin: 0; } }

a.card, a.li, a.tab, a.photo, a.cc { color: inherit; text-decoration: none; }
@media (max-width: 1100px) { .ci-split.has-detail .ci-list { display: none; } .ci-split:not(.has-detail) .ci-detail { display: none; } }
.risk-tags { margin-top: 8px; }
.ci-split { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .ci-split { grid-template-columns: minmax(0, 1fr); } }
.convo, .convo .msgs { min-height: 0; }
/* Client app: the coach's accent color (Pro) replaces volt for buttons and highlights. */
.capp { --volt: var(--client-accent, #D6FF3D); }
.capp .brand-row { display: flex; align-items: center; gap: 8px; }
.capp .brand-row img, .capp .brand-row .av { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
body.in-workout .capp .ctabbar { display: none; }
body.in-workout .capp .screen .scroll { padding-bottom: 40px; }
.rest-banner { position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 5; padding: 12px 16px; flex-direction: row; align-items: center; gap: 12px; }
.capp .bubble { max-width: 85%; }
.cchat { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); background: var(--bg); padding-top: 8px; }
.capp .rate button { min-height: 40px; }
.slider-val { min-width: 54px; text-align: right; }

/* ---------- voice (from the prototype) ---------- */
.voice-orb { width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 0; cursor: pointer; border: 2px solid var(--assist-line); background: radial-gradient(circle at 50% 42%, var(--assist-tint), transparent 70%), var(--surface); transition: transform .2s, border-color .2s; color: inherit; }
.voice-orb:hover { transform: scale(1.02); }
.voice-orb .arc { width: 66px; height: 66px; color: var(--assist-ink); }
/* Listening: the orb glows and swells with your voice (--lvl, 0–1, set from the mic level), with a slow aura turning around it */
.voice-orb { position: relative; isolation: isolate; }
.voice-orb.listening { border-color: var(--volt-deep); transform: scale(calc(1 + var(--lvl, 0) * .08)); transition: transform .08s linear, box-shadow .08s linear;
  box-shadow: 0 0 calc(22px + var(--lvl, 0) * 60px) calc(2px + var(--lvl, 0) * 18px) rgba(214, 255, 61, calc(.45 + var(--lvl, 0) * .5)), inset 0 0 calc(14px + var(--lvl, 0) * 30px) rgba(214, 255, 61, .55); }
.voice-orb.listening::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, rgba(214, 255, 61, 0), rgba(214, 255, 61, .75), rgba(180, 222, 32, 0), rgba(214, 255, 61, .55), rgba(214, 255, 61, 0)); filter: blur(10px); opacity: calc(.55 + var(--lvl, 0) * .45); animation: orbaura 3.2s linear infinite; }
.voice-orb.listening .arc { filter: drop-shadow(0 0 calc(4px + var(--lvl, 0) * 10px) rgba(214, 255, 61, .9)); }
.wave.live { visibility: hidden; }
@keyframes orbaura { to { transform: rotate(360deg); } }
.voice-orb.thinking .arc path { stroke-dasharray: 30; animation: arcdraw 1.1s ease-in-out infinite; }
.voice-orb.speaking { border-color: var(--volt-deep); animation: orbspeak .55s ease-in-out infinite alternate; }
.voice-orb[disabled] { cursor: default; opacity: .6; }
@keyframes orbpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,255,61,.5); } 50% { box-shadow: 0 0 0 20px rgba(214,255,61,0); } }
@keyframes orbspeak { from { transform: scale(1); } to { transform: scale(1.05); } }
.wave { display: flex; gap: 4px; align-items: center; justify-content: center; height: 30px; }
.wave i { width: 4px; height: 5px; border-radius: 2px; background: var(--assist-ink); opacity: .5; transition: height .08s; }
.wave.on i { opacity: 1; animation: wave .9s ease-in-out infinite; }
.wave.live i { opacity: 1; animation: none; }
.wave.on i:nth-child(2) { animation-delay: .1s; } .wave.on i:nth-child(3) { animation-delay: .2s; } .wave.on i:nth-child(4) { animation-delay: .3s; } .wave.on i:nth-child(5) { animation-delay: .4s; } .wave.on i:nth-child(6) { animation-delay: .3s; } .wave.on i:nth-child(7) { animation-delay: .2s; } .wave.on i:nth-child(8) { animation-delay: .1s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 26px; } }
.voice-said { font-size: 1.15rem; font-weight: 650; min-height: 1.6em; }
.rec-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--crit); font-weight: 700; font-size: .85rem; }
.rec-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--crit); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mic-live { background: var(--crit-tint) !important; color: var(--crit) !important; border-color: var(--crit) !important; }
.no-sr [data-dictate], .no-rec [data-needs-rec] { display: none !important; }
.proposal { border: 1px solid var(--assist-line); background: var(--assist-soft); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.proposal .q-draft { margin: 0; white-space: pre-wrap; }
.client-link { font-weight: 650; color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.audio-note { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.audio-note audio { width: 100%; height: 36px; }
.bubble .assist-sum { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .voice-orb, .voice-orb.listening, .voice-orb.listening::before, .voice-orb.speaking, .wave.on i, .rec-dot::before { animation: none !important; } .wave.on i { height: 16px; } }

/* ---------- nutrition ---------- */
.macro { display: flex; flex-direction: column; gap: 6px; }
.macro .bar i { background: var(--green); }
.macro.over .bar i { background: var(--muted); }
:root[data-theme="dark"] .macro:not(.over) .bar i, :root[data-theme="dark"] .streak-dots i.on { background: var(--volt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .macro:not(.over) .bar i, :root:not([data-theme="light"]) .streak-dots i.on { background: var(--volt); } }
.meal-group { display: flex; flex-direction: column; gap: 8px; }
.food-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.food-row img, .food-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.habit-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.habit-row .check { flex: none; }
.habit-row.on { border-color: var(--green); }
.streak-dots { display: flex; gap: 4px; }
.streak-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.streak-dots i.on { background: var(--green); }
.log-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.log-options button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font: inherit; font-weight: 650; font-size: .85rem; cursor: pointer; color: inherit; position: relative; }
.log-options button:hover { border-color: var(--ink); }
.log-options button[aria-disabled="true"] { opacity: .65; }
.log-options .lock { position: absolute; top: 6px; right: 6px; }
.portion-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.portion-chips button { min-width: 44px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: inherit; }
.portion-chips button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.review-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.review-item.needs-check { border-color: var(--warn); }
.scan-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .scan-line { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.credit { font-size: .72rem; color: var(--faint); }
.credit a { color: inherit; }
.target-warn { border: 1px solid var(--warn); background: var(--warn-tint); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.day-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }

/* Voice notes */
.bubble.voice { min-width: min(280px, 82%); display: flex; flex-direction: column; gap: 6px; }
.vnote { display: flex; align-items: center; gap: 10px; }
.vnote-play { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--volt); color: var(--deep); flex: none; }
.vnote-play:focus-visible { outline: 3px solid var(--assist-ink); outline-offset: 2px; }
.vnote-play .ico { width: 16px; height: 16px; }
.vnote-bars { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; height: 22px; }
.vnote-bars i { width: 3px; border-radius: 2px; background: currentColor; opacity: .35; flex: none; }
.vnote-bars i.on { opacity: 1; }
.vnote-len { opacity: .8; font-variant-numeric: tabular-nums; }
.vnote-text { font-size: .9rem; }
.vnote-sum { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; padding: 6px 8px; border-radius: 8px; background: var(--assist-tint); color: var(--assist-ink); }
.vnote-sum .arc { flex: none; }
.vnote-flag { font-size: .78rem; font-weight: 700; color: var(--crit); }
form.recording > :not(.vnote-rec) { display: none !important; }
.vnote-rec { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.vnote-rec .wave { height: 26px; }
.vnote-rec .rec-dot.stopped::before { animation: none; opacity: .4; }
.set-flash { animation: setflash 1.2s ease-out; }
@keyframes setflash { from { background: var(--volt); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .set-flash { animation: none; } }

/* Morning briefing */
.brief-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg, 16px); background: var(--assist-tint); color: var(--ink); border: 1px solid var(--line); }
.brief-banner > .ico { color: var(--assist-ink); flex: none; }
.brief-lines { margin: 0; padding-left: 20px; }
.brief-lines li { transition: font-weight .1s; }
.brief-lines li.on { font-weight: 700; color: var(--ink); }

/* Ask Assist window: smaller logo button and a scrolling conversation */
.voice-orb.small { width: 104px; height: 104px; }
.voice-orb.small .arc { width: 48px; height: 48px; }
.talk-thread { width: 100%; max-height: min(44vh, 420px); overflow-y: auto; text-align: left; overscroll-behavior: contain; }
.talk .voice-said { font-size: 1rem; }
/* EN | ES switch on public pages */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-switch button { border: 0; background: none; font: inherit; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.answer-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* Business charts: one hue; the highlighted column/point is full strength, values show on hover or focus */
.chart .hit { fill: transparent; }
.chart .col { fill: var(--chart-1); opacity: .32; transition: opacity .15s; }
.chart .bar-g.sel .col, .chart .bar-g:hover .col, .chart .bar-g:focus .col { opacity: 1; }
.chart .bar-v { fill: var(--ink); font-weight: 700; font-size: 12px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.chart .bar-g:hover .bar-v, .chart .bar-g:focus .bar-v, .chart .bar-g.sel .bar-v, .chart .pt-g:hover .bar-v, .chart .pt-g:focus .bar-v, .chart .pt-g.sel .bar-v { opacity: 1; }
.chart .bar-g:focus, .chart .pt-g:focus { outline: none; }
.chart .pt { fill: var(--chart-1); stroke: var(--surface); stroke-width: 3; opacity: 0; transition: opacity .15s; }
.chart .pt-g.sel .pt, .chart .pt-g:hover .pt, .chart .pt-g:focus .pt { opacity: 1; }
.chart:hover .pt-g.sel:not(:hover) .bar-v { opacity: .35; }
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; } }
.pkg-row .bar { height: 10px; }

/* ---------- Business page (insightCharts.js) ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ins-grid > .span2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: minmax(0, 1fr); } }
.kpis .kpi:nth-child(4n+1) { border-left: 0; }
.kpis .kpi:nth-child(n+5) { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .kpis .kpi:nth-child(odd) { border-left: 0; } .kpis .kpi:nth-child(even) { border-left: 1px solid var(--line); } }
.big-num.up { color: var(--good); } .big-num.down { color: var(--crit); }
.ul-plain { list-style: none; padding: 0; margin: 0; }
.ti { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--surface-3); color: var(--ink); }
.ti svg { width: 15px; height: 15px; }
.ti.good { background: var(--good-tint); color: var(--good); } .ti.warn { background: var(--warn-tint); color: var(--warn); }
.ti.crit { background: var(--crit-tint); color: var(--crit); } .ti.info { background: var(--info-tint); color: var(--info); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.mini-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.mini-kpis b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.stack-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--surface); }
.stack-bar i { display: block; height: 100%; }
.stack-bar i.crit { background: var(--crit); } .stack-bar i.warn { background: var(--warn); } .stack-bar i.good { background: var(--good); }
.bar.two { position: relative; height: 10px; background: var(--surface-3); }
.bar.two > i { position: absolute; left: 0; top: 0; background: var(--chart-1); opacity: .3; }
.bar.two > b { position: absolute; left: 0; top: 0; height: 100%; border-radius: 6px; background: var(--chart-1); }
.link-row { padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.link-row:hover, .link-row:focus-visible { background: var(--surface-2); }
.breakdown th[scope="row"] { font-weight: 400; text-align: left; }
.breakdown tfoot th, .breakdown tfoot td { font-weight: 800; border-top: 2px solid var(--line-strong); }
/* legend swatches */
.lgd { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.lgd-i { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 3px; --c: var(--chart-1); }
.sw.c3 { --c: var(--chart-3); } .sw.neg { --c: var(--chart-neg); } .sw.ref { --c: var(--chart-ref); }
.sw.line { height: 0; border-top: 2.5px solid var(--c); border-radius: 0; }
.sw.dash { height: 0; border-top: 2.5px dashed var(--c); border-radius: 0; }
.sw.ref { height: 0; border-top: 2px dashed var(--c); border-radius: 0; }
.sw.band { background: var(--c); opacity: .18; }
.sw.box { background: var(--c); }
.sw.box.soft { opacity: .3; }
.sw.hatch { background: repeating-linear-gradient(45deg, var(--c) 0 2px, transparent 2px 5px); outline: 1px solid var(--c); outline-offset: -1px; }
.sw.outline { border: 1.5px dashed var(--muted); background: transparent; }
/* marks */
.chart.ins .fc-band { fill: var(--chart-1); opacity: .14; }
.chart.ins .fc-line { fill: none; stroke: var(--chart-1); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linecap: round; }
.chart.ins .ref-line { fill: none; stroke: var(--chart-ref); stroke-width: 2; stroke-dasharray: 3 4; }
.chart.ins .today-l { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.chart.ins .fc-end { fill: var(--surface); stroke: var(--chart-1); stroke-width: 2.5; }
.chart.ins .end-sub { fill: var(--muted); font-size: 10px; }
.chart.ins .strong-t { fill: var(--ink); font-weight: 700; }
.chart.ins .col-hatch { fill: url(#hatch-fc); }
.chart.ins .hatch-bg { fill: var(--chart-1); opacity: .12; }
.chart.ins .hatch-l { stroke: var(--chart-1); stroke-width: 2; opacity: .7; }
.chart.ins .bar-g.sel .bar-v { opacity: 1; }
.chart.ins .zero-l { stroke: var(--line-strong); stroke-width: 1; }
.chart.ins .gain { fill: var(--chart-1); }
.chart.ins .loss { fill: var(--chart-neg); }
.chart.ins .proj { fill: none; stroke: var(--chart-1); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart.ins .proj.neg { stroke: var(--chart-neg); }
.chart.ins .v-up, .chart.ins .v-down { fill: var(--ink); font-weight: 700; font-size: 11px; }
.chart.ins .line3 { fill: none; stroke: var(--chart-3); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart.ins .so-far { stroke-dasharray: 4 4; }
.chart.ins .dot { stroke: var(--surface); stroke-width: 2; }
.chart.ins .dot.line { fill: var(--chart-1); } .chart.ins .dot.line3 { fill: var(--chart-3); }
.chart.ins .line-t { fill: var(--ink); } .chart.ins .line3-t { fill: var(--chart-3); }
/* hover: crosshair, point and tooltip */
.chart.ins .cross { stroke: var(--line-strong); stroke-width: 1; opacity: 0; pointer-events: none; }
.chart.ins .day-g .pt, .chart.ins .fc-end, .chart.ins .end, .chart.ins .dot { pointer-events: none; }
.chart.ins .day-g .pt { opacity: 0; }
.chart.ins .tip { opacity: 0; pointer-events: none; transition: opacity .12s; }
.chart.ins .tip rect { fill: var(--chart-tip); }
.chart.ins .tip text { fill: var(--chart-tip-ink); font-size: 11.5px; }
.chart.ins .tip .tip-h { font-weight: 700; }
.chart.ins .day-g:hover .tip, .chart.ins .day-g:focus .tip, .chart.ins .day-g:hover .cross, .chart.ins .day-g:focus .cross, .chart.ins .day-g:hover .pt, .chart.ins .day-g:focus .pt { opacity: 1; }
.chart.ins .day-g:focus { outline: none; }
.chart.ins .day-g:hover { cursor: crosshair; }
.breakdown td, .breakdown th { padding: 10px 8px; }
.breakdown td:first-child, .breakdown th:first-child { padding-left: 0; white-space: normal; }
.breakdown td:last-child, .breakdown th:last-child { padding-right: 0; }
.breakdown tfoot td { font-weight: 800; border-top: 2px solid var(--line-strong); border-bottom: 0; }
.chart.ins .col { opacity: .8; }
.chart.ins .bar-g:hover .col, .chart.ins .bar-g:focus .col, .chart.ins .bar-g.sel .col { opacity: 1; }
.span2 .mini-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .span2 .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* HQ sits inside a public-page .section, whose big h2 must not reach card titles. */
.section .card h2.h3 { font-size: 1.02rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; line-height: 1.15; max-width: none; display: flex; align-items: center; gap: 8px; }
.ins-card h2.h3 { display: flex; align-items: center; gap: 8px; }
