/*
 * Portal styles. RULE: no hex codes, font names, or partner checks in this file.
 * Every value that could differ per partner is a var(--…) set by theme.js.
 * Neutral rgba() shadows/overlays are fine.
 */
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); letter-spacing: var(--body-tracking);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- type helpers ---------- */
.label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: var(--label-transform); letter-spacing: var(--label-tracking); color: var(--mute); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text2); }
.faint { color: var(--mute); }
.ok-t { color: var(--ok-deep); } .warn-t { color: var(--warn); } .flag-t { color: var(--flag); } .brand-t { color: var(--brand-text); }
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.num { font-family: var(--font-display); font-weight: var(--accent-weight); letter-spacing: -0.03em; line-height: 1; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius-pill); white-space: nowrap; line-height: 1.2; }
.badge.ok { background: var(--ok-soft); color: var(--ok-deep); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.flag { background: var(--flag-soft); color: var(--flag); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge.neutral { background: var(--surface2); color: var(--text2); }
.badge.solid { background: var(--brand); color: var(--brand-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-control); padding: 9px 15px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--mute); }
.btn.pri { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { color: var(--brand-text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.link.mono { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sb { background: var(--sidebar-bg); color: var(--sidebar-text); border-right: 1px solid var(--sidebar-line);
      position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 16px 14px; z-index: 20; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 11px 4px; min-height: 40px; }
.logo img { display: block; width: auto; }
.logo .wm { font-family: var(--font-body); font-size: 23px; letter-spacing: -0.03em; color: var(--sidebar-active-text); }
.logo .txt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: var(--display-tracking); color: var(--brand-text); }
.powered { padding: 0 11px; font-size: 10.5px; color: var(--sidebar-label); }
.sb .label { color: var(--sidebar-label); padding: 0 11px; margin: 22px 0 6px; }
.nav { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-control); font-size: 14px; line-height: 14px; }
.nav .grp { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: var(--label-transform); letter-spacing: var(--label-tracking); color: var(--sidebar-label); padding: 0 11px; margin: 16px 0 5px; }
.nav a:hover { background: var(--sidebar-active-bg); }
.nav a.on { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: 500; }
.nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; background: var(--brand); color: var(--brand-ink); border-radius: 9px; padding: 1px 6px; }
.sb .me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--sidebar-line); margin-top: 10px; }
.sb .me p { font-size: 13px; font-weight: 500; color: var(--sidebar-active-text); line-height: 1.25; }
.sb .me small { font-size: 11px; color: var(--sidebar-label); }
.sb .me .out { margin-left: auto; color: var(--sidebar-label); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--sidebar-active-bg); display: grid; place-items: center; font-weight: 600; font-size: 12.5px; color: var(--sidebar-active-text); flex-shrink: 0; overflow: hidden; }
.av.lg { width: 64px; height: 64px; font-size: 20px; }
.av.surface { background: var(--surface2); color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.main > .top { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 36px; border-bottom: 1px solid var(--line); font-size: 12px; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.crumb { color: var(--mute); display: flex; align-items: center; gap: 10px; } .crumb b { color: var(--text); font-weight: 400; }
.main > .top .tools { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--text2); background: var(--surface); position: relative; }
.iconbtn .pip { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--surface); }
.menu-btn { display: none; }
.sb-shade { display: none; }
.content { padding: 36px 36px 130px; max-width: 1240px; width: 100%; }

/* ---------- page header ---------- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: var(--label-transform); letter-spacing: var(--label-tracking); color: var(--brand-text); background: var(--brand-soft); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 14px; }
h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 46px; line-height: 1.02; }
h1 em, h2 em { font-style: var(--accent-style); font-weight: var(--accent-weight); color: var(--accent-text); }
.ph .sub { color: var(--text2); font-size: 14.5px; margin-top: 8px; max-width: 640px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.sec:first-child { margin-top: 0; }
h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--section-size); line-height: 1.2; }
h3 { font-family: var(--font-display); font-size: var(--card-title-size); font-weight: var(--card-title-weight); letter-spacing: var(--display-tracking); color: var(--brand-deep); line-height: 1.2; }
h4 { font-size: 14.5px; font-weight: 700; line-height: 1.3; }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(20,28,20,.05); }
.card.pad { padding: 22px; } .card.pad-lg { padding: 28px; }
.card.hover { transition: box-shadow .2s, border-color .2s; } .card.hover:hover { box-shadow: 0 1px 2px rgba(20,28,20,.04), 0 10px 30px -16px rgba(20,28,20,.28); }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.ico.ok { background: var(--ok-soft); color: var(--ok-deep); } .ico.warn { background: var(--warn-soft); color: var(--warn); } .ico.flag { background: var(--flag-soft); color: var(--flag); } .ico.neutral { background: var(--surface2); color: var(--text2); }
.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)); }
.g-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-x { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* ---------- stat tiles ---------- */
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone, var(--line)); }
.stat .label { display: flex; align-items: center; gap: 6px; }
.stat .v { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.stat .v strong { font-family: var(--font-display); font-weight: var(--accent-weight); font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.stat .v span { color: var(--text2); font-size: 13px; }
.stat .v strong.sm { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.stat .s { margin-top: 6px; font-size: 12px; color: var(--text2); }
.tone-ok { --tone: var(--ok); } .tone-warn { --tone: var(--warn); } .tone-flag { --tone: var(--flag); } .tone-brand { --tone: var(--brand); } .tone-neutral { --tone: var(--mute); }

/* ---------- tabs / chips ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: calc(var(--radius-control) + 3px); flex-wrap: wrap; }
.tabs button { padding: 7px 14px; border-radius: var(--radius-control); font-size: 13px; font-weight: 500; color: var(--text2); display: inline-flex; gap: 7px; align-items: center; }
.tabs button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 500; display: inline-flex; gap: 7px; align-items: center; }
.chips button .c { font-family: var(--font-mono); font-size: 10.5px; color: var(--mute); }
.chips button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips button.on .c { color: inherit; opacity: .75; }

/* ---------- lists & tables ---------- */
.list { list-style: none; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .t { font-weight: 600; font-size: 13.5px; } .list .s { font-size: 12px; color: var(--text2); }
.list .r { margin-left: auto; text-align: right; display: flex; align-items: center; gap: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: var(--label-transform); letter-spacing: var(--label-tracking); color: var(--mute); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface2); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text2); }
/* A page behind a launch switch that's off (UI.soonGate): the outline of a page, blurred and out of reach, under one card */
.soon { position: relative; min-height: 470px; }
.soon-under { display: grid; gap: 14px; filter: blur(3px); opacity: .6; pointer-events: none; user-select: none; }
.soon-under i { display: block; height: 10px; border-radius: 5px; background: var(--surface2); margin: 12px 0; }
.soon-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; }
.soon-days b { height: 66px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.soon-cols { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 14px; }
.soon-blk { padding: 18px 22px; min-height: 150px; }
.soon-card { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); width: min(500px, calc(100% - 32px)); padding: 30px 30px 26px; display: grid; justify-items: center; gap: 10px; text-align: center; box-shadow: 0 1px 2px rgba(20,28,20,.05), 0 28px 60px -20px rgba(20,28,20,.35); }
.soon-card h2 { font-size: calc(var(--section-size) * 1.25); margin-top: 4px; }
.soon-card p { color: var(--text2); font-size: 13.5px; line-height: 1.55; max-width: 400px; }
.soon-acts { margin-top: 8px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 860px) { .soon-cols { grid-template-columns: 1fr; } .soon-days { gap: 4px; } .soon-days b { height: 48px; } .soon-card { top: 28px; padding: 24px 18px 20px; } .soon-acts .btn { flex: 1 1 auto; } }
.empty .ico { margin: 0 auto 14px; width: 44px; height: 44px; border-radius: 50%; }
.empty h4 { color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 13px; max-width: 340px; margin: 0 auto 16px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text2); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-control); padding: 10px 12px; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 90px; resize: vertical; border-radius: min(var(--radius-control), 12px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.toggle { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex-shrink: 0; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: var(--brand); } .toggle.on::after { left: 19px; }

/* ---------- data viz pieces ---------- */
.bar { height: 6px; border-radius: 9px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.bar.warn > i { background: var(--warn); } .bar.flag > i { background: var(--flag); } .bar.brand > i { background: var(--brand); }
.range { position: relative; height: 8px; border-radius: 9px; background: var(--flag-soft); margin: 14px 0 6px; }
.range .opt { position: absolute; top: 0; bottom: 0; background: var(--ok-soft); border-left: 2px solid var(--ok); border-right: 2px solid var(--ok); }
.range .pin { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--tone, var(--ok)); transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.range-l { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--mute); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { font-family: var(--font-mono); font-size: 10px; fill: var(--mute); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ---------- biological age stats (app/body3d.js) ---------- */
.bio-sys { list-style: none; padding: 0; }
.bio-sys li { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(80px, 1.3fr) 30px 30px; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bio-sys li:last-child { border-bottom: 0; }
.bio-sys .n { font-weight: 500; }
.bio-sys .dv { position: relative; height: 8px; border-radius: 9px; background: var(--surface2); }
.bio-sys .dv .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--mute); }
.bio-sys .dv .b { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.bio-sys .a { font-size: 18px; text-align: right; } .bio-sys .d { font-size: 11px; text-align: right; }
.bio-sys .note { grid-column: 1 / -1; font-size: 11.5px; color: var(--mute); margin-top: -2px; }
.bio-scale { margin-top: 18px; }
.bio-scale .track { position: relative; height: 8px; border-radius: 9px; background: var(--surface2); }
.bio-scale .gap { position: absolute; top: 0; bottom: 0; background: var(--ok-soft); border-radius: 9px; }
.bio-scale .pin { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.bio-scale .ticks { position: relative; height: 18px; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--mute); }
.bio-scale .ticks span { position: absolute; transform: translateX(-50%); }
.bio-scale .legend { margin-top: 4px; }

/* ---------- media ---------- */
.thumb { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--mute); }
.thumb.whole { background-size: contain; background-color: var(--surface); background-origin: content-box; padding: 3px; }   /* a product shot: show all of it */
.thumb.lg { width: 58px; height: 58px; }
.media { aspect-ratio: 4/3; border-radius: calc(var(--radius-card) - 4px); background: var(--surface2) center/cover no-repeat; display: grid; place-items: center; color: var(--mute); overflow: hidden; }
.media svg.i { width: 34px; height: 34px; stroke-width: 1.2; }

/* ---------- AI bar + drawer ---------- */
.ai { position: fixed; left: 268px; right: 0; bottom: 18px; padding: 0 36px; pointer-events: none; z-index: 30; }
.ai-bar { pointer-events: auto; max-width: 1240px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: var(--ai-border) solid var(--brand); border-radius: 12px; padding: 12px 16px;
          box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.ai-bar .spark { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.ai-bar .spark svg { width: 14px; height: 14px; }
.ai-bar input { flex: 1; border: 0; outline: 0; background: none; font-weight: 500; color: var(--text); min-width: 0; }
.ai-bar input::placeholder { color: var(--mute); }
.ai-bar .send { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.ai-bar .send svg { width: 14px; height: 14px; }
.ai-panel { pointer-events: auto; max-width: 1240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 24px 60px rgba(26,25,22,.18); display: none; flex-direction: column; max-height: min(76vh, 760px); }
.ai.open .ai-panel { display: flex; }
.ai-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ai-panel header b { font-size: 14px; } .ai-panel header small { color: var(--mute); font-size: 11.5px; }
.ai-msgs { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 11px; font-weight: 600; margin-bottom: 3px; opacity: .7; }
.msg .when { display: block; font-size: 10.5px; margin-top: 4px; opacity: .6; font-family: var(--font-mono); }
/* an answer from the assistant: a stack of blocks (app/ai.js). Used in the drawer and on the trainer's Ask AI page */
.ans { align-self: stretch; display: flex; flex-direction: column; gap: 12px; max-width: 880px; font-size: 13.5px; line-height: 1.55; }
.ans h4 { font-size: 15px; letter-spacing: -0.01em; margin: 2px 0 0; } .ans .label { display: block; }
.ans p { margin: 0 0 8px; } .ans p:last-child { margin-bottom: 0; } .ans ul { margin: 6px 0; padding-left: 18px; } .ans li { margin: 3px 0; }
.ab-intro { font-size: 14.5px; }
.ab-text h4 { margin-bottom: 4px; }
.ab-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; background: var(--surface); }
.ab-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.ab-col { border-radius: var(--radius-control); padding: 12px 14px; background: var(--ok-soft); } .ab-col.warn { background: var(--warn-soft); }
.ab-colh { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: var(--label-transform); letter-spacing: var(--label-tracking); color: var(--ok-deep); margin-bottom: 4px; } .ab-col.warn .ab-colh { color: var(--warn); }
.ab-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); } .ab-colh + .ab-row { border-top: 0; }
.ab-row b { font-size: 13px; } .ab-row span { display: block; font-size: 11.5px; color: var(--text2); } .ab-row em, .ab-mkv em, .ab-chip em, .ab-items em { font-style: normal; font-size: 12.5px; white-space: nowrap; }
.ab-mk { margin-top: 8px; } .ab-mkr { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); } .ab-mkr:first-child { border-top: 0; }
.ab-mkn b { font-size: 13px; } .ab-mkn span { display: block; font-size: 11.5px; color: var(--mute); } .ab-mkv { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 150px; } .ab-mkv small { color: var(--mute); font-size: 11px; }
.ab-prih, .ab-phh { display: flex; align-items: center; gap: 12px; }
.ab-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex-shrink: 0; } .ab-num.sm { width: 26px; height: 26px; font-size: 12.5px; }
.ab-sec { margin-top: 14px; } .ab-sec > p { font-size: 12.5px; margin-top: 8px; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .ab-chip { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 10px; font-size: 12px; background: var(--surface2); } .ab-chip b { font-weight: 600; }
.ans ul.ab-list, .ans ul.ab-items { list-style: none; padding: 0; margin: 6px 0 0; } .ab-list li { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; margin: 0; } .ab-list li > svg { margin-top: 3px; flex-shrink: 0; color: var(--ok-deep); } .ab-list li.warn > svg { color: var(--warn); }
.ab-list.big li { padding: 8px 0; border-top: 1px solid var(--line); } .ab-list.big li:first-child { border-top: 0; } .ab-list.big span { color: var(--text2); font-size: 12.5px; } .ab-list.big b { color: var(--text); font-size: 13.5px; }
.ab-badge { min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-text); font-size: 11.5px; font-weight: 600; flex-shrink: 0; margin-top: 1px; }
.ab-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.ab-phase { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 14px; background: var(--surface2); display: flex; flex-direction: column; } .ab-phase > p { font-size: 12.5px; margin: 8px 0 4px; } .ab-phh b { display: block; font-size: 14px; }
.ab-items li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 9px; align-items: center; padding: 7px 0; margin: 0; border-top: 1px solid var(--line); font-size: 12.5px; } .ab-items .ico { width: 26px; height: 26px; border-radius: 7px; background: var(--surface); grid-row: span 2; align-self: start; } .ab-items em { grid-column: 2; color: var(--mute); font-size: 11px; }
.ab-retest { display: flex; gap: 7px; align-items: center; margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 600; color: var(--brand-text); }
.ab-call { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-left: 3px solid var(--brand); border-radius: var(--radius-control); background: var(--brand-soft); font-size: 13px; } .ab-call > svg { margin-top: 3px; flex-shrink: 0; color: var(--brand-text); }
.ab-call.warn { border-left-color: var(--flag); background: var(--flag-soft); } .ab-call.warn > svg { color: var(--flag); }
.ab-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-chart svg.chart { width: 100%; height: auto; margin-top: 8px; } .ab-chart > p { font-size: 11.5px; margin-top: 4px; }
.ab-shop > p.muted { font-size: 12.5px; margin-top: 2px; } .ab-shop > p.faint { display: flex; gap: 6px; align-items: center; font-size: 11.5px; margin-top: 10px; }
.ab-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.ab-prod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px; background: var(--surface); }
.ab-pic { width: 96px; height: 96px; border-radius: var(--radius-control); background: var(--surface2); display: grid; place-items: center; overflow: hidden; color: var(--mute); } .ab-pic img { width: 100%; height: 100%; object-fit: cover; } .ab-pic.whole img { object-fit: contain; padding: 6px; }
.ab-pb { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ab-pb b { font-size: 13.5px; line-height: 1.3; } .ab-pb em { font-style: normal; font-size: 12px; color: var(--text2); } .ab-pb p { font-size: 12.5px; color: var(--text2); margin: 4px 0 0; } .ab-pb .ab-acts { margin-top: auto; padding-top: 10px; }
.ab-prod.meal { grid-template-columns: 110px minmax(0, 1fr); } .ab-prod.meal .ab-pic { width: 110px; height: 110px; }
.ab-more > div, .ab-start > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ab-more .badge, .ab-start .badge { padding: 7px 11px; font-size: 12px; text-align: left; white-space: normal; } .ab-start p { font-size: 13px; }
.ab-status, .ab-foot { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--mute); } .ab-foot svg { color: var(--ok-deep); flex-shrink: 0; } .ab-foot { align-items: flex-start; line-height: 1.6; }
@media (max-width: 860px) { .ab-prods { grid-template-columns: 1fr; } .ab-prod, .ab-prod.meal { grid-template-columns: 76px minmax(0, 1fr); } .ab-pic, .ab-prod.meal .ab-pic { width: 76px; height: 76px; } .ab-mkr { grid-template-columns: minmax(0, 1fr) auto; } .ab-spark { display: none; } .ab-mkv { min-width: 0; } .ab-card { padding: 14px; } .ai-panel { max-height: min(70vh, 640px); } }
.ai-panel footer { padding: 10px 18px; font-size: 11px; color: var(--mute); border-top: 1px solid var(--line); }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,20,20,.45); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius-card); width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal .body { padding: 18px 22px 22px; }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 70; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: var(--sidebar-bg); color: var(--sidebar-active-text); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .box { width: min(400px, 100%); }

/* ---------- phone chrome: logo header + bottom tab bar ---------- */
.mlogo, .mnav, .statusbar { display: none; }
.dcrumb { display: inline-flex; align-items: center; gap: 10px; }
.mlogo { align-items: center; gap: 7px; }
.mlogo img { display: block; width: auto; }
.mlogo .wm { font-family: var(--font-body); font-size: 19px; letter-spacing: -0.03em; color: var(--text); }
.mlogo small { font-size: 9.5px; color: var(--mute); margin-left: 4px; white-space: nowrap; }
.mlogo .txt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 19px; color: var(--brand-text); }
.mnav a, .mnav button { flex: 1; display: grid; justify-items: center; gap: 3px; font-size: 10.5px; color: var(--mute); padding: 8px 0 6px; }
.mnav a.on { color: var(--brand-text); font-weight: 600; }
.mnav svg.i { width: 21px; height: 21px; }

/* screenshot mode (?shot=1) */
body.shot #console { display: none !important; }
@media (max-width: 860px) { body.shot .statusbar { display: flex; } }
body.shot .statusbar { justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; height: 47px; padding: 14px 30px 0 38px; z-index: 90; background: var(--bg); color: var(--text); font: 600 16px/1 -apple-system, system-ui, sans-serif; letter-spacing: -0.2px; }
body.shot .statusbar span { display: flex; gap: 6px; align-items: center; }
body.shot .statusbar svg { fill: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sb { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  body.nav-open .sb { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .menu-btn { display: grid; }
  .ai { left: 0; padding: 0 12px; bottom: 76px; }
  .ai-bar { padding: 9px 12px; }
  .mlogo { display: flex; } .dcrumb { display: none; }
  .menu-btn { display: grid; flex-shrink: 0; }
  .sb-shade { display: block; position: fixed; inset: 0; z-index: 38; background: rgba(20,20,20,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .sb-shade { opacity: 1; pointer-events: auto; }
  .mlogo img { max-height: 44px; } .mlogo small { display: none; }
  .main > .top .crumb { min-width: 0; } .main > .top .tools { flex-shrink: 0; }
  .main > .top { height: 58px; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: 14px; }
  body.shot .main > .top { top: 47px; } body.shot .content { padding-top: 71px; }
  body.shot #full { padding-top: 47px; }
  .content { padding: 24px 16px 190px; } .main > .top { padding: 0 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .ph { margin-bottom: 20px; gap: 14px; } .ph .sub { font-size: 13.5px; }
  .ph .acts { width: 100%; } .ph .acts > .btn { flex: 1 1 auto; }
  .sec { margin: 28px 0 12px; }
  .card.pad-lg { padding: 20px; }
  .g3:has(> .stat), .g4:has(> .stat) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat { padding: 14px 15px; } .stat .v strong { font-size: 28px; } .stat .v strong.sm { font-size: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex-shrink: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs button { flex-shrink: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
}

/* ---------- nutrition program component (app/nutrition/) ---------- */
.small { font-size: 12.5px; }
.tabs a.tab { padding: 7px 14px; border-radius: var(--radius-control); font-size: 13px; font-weight: 500; color: var(--text2); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs a.tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.grid > *, .stack > * { min-width: 0; }
.bar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.list .grow { min-width: 0; flex: 1; }
.form-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.bar.ok > i { background: var(--ok); }
.ico.round { border-radius: 50%; }
.nt .g-main { align-items: start; }
.nt-dash-f { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.nt .stat::before { display: none; }
.nt .stat { display: flex; flex-direction: column; }
.nt .stat .f { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.todo { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--mute); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: background .15s, border-color .15s; }
.todo .ck:hover { border-color: var(--text); }
.todo.done .ck { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.todo.done .t { color: var(--mute); text-decoration: line-through; }
.todo .t { font-weight: 600; font-size: 13.5px; } .todo .s { font-size: 12.5px; color: var(--text2); }
.todo .go { margin-left: auto; color: var(--mute); }
.phases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.phases li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line); flex-wrap: wrap; }
.phases li:last-child { border-right: 0; }
.phases .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--mute); flex-shrink: 0; }
.phases li.done .n { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.phases li.now .n { border: 2px solid var(--brand); color: var(--brand-text); font-weight: 700; }
.phases b { display: block; font-size: 14px; line-height: 1.2; } .phases small { font-size: 11.5px; color: var(--mute); }
.phases li.next b { color: var(--text2); font-weight: 500; }
.phases .bar { flex-basis: 100%; height: 4px; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; }
.pick input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 1020px) { .nt .g-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .phases li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; }
  .phases small { font-size: 10.5px; } .phases b { font-size: 13px; }
  .phases .bar { flex: none; width: 100%; }
  .nt-dash-f { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nt .g2:has(> .stat) { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .nt .stat .f > svg { display: none; } .nt .stat .f > .btn { flex: 1; }
}

/* ---------- role switcher (top bar): Super Admin · Admin · Trainer · Client/Member ---------- */
.rolesw { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.rolesw .seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface2); border-radius: calc(var(--radius-control) + 3px); }
.rolesw .seg button { padding: 5px 11px; border-radius: var(--radius-control); font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.rolesw .seg button:hover { color: var(--text); }
.rolesw .seg button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.rolesw .select { display: none; width: auto; padding: 6px 8px; font-size: 12.5px; font-weight: 600; }
body[data-access]:not([data-access="patient"]) .tools .iconbtn { display: none; }   /* notifications and settings belong to the member */
@media (max-width: 1100px) { .rolesw .label { display: none; } }
@media (max-width: 860px) { .rolesw .seg { display: none; } .rolesw .select { display: block; } }

/* ---------- share-with-your-trainer card (bottom of a member's shareable pages) ---------- */
.sh-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; margin-top: 28px; border-left: 3px solid var(--brand); }
.sh-foot.shared { border-left-color: var(--ok); }
.sh-foot .grow { flex: 1; min-width: 240px; } .sh-foot h4 { font-size: 15px; } .sh-foot p { font-size: 13px; margin-top: 3px; max-width: 620px; }
.sh-foot > .link { flex-basis: 100%; margin-left: 50px; }
@media (max-width: 860px) { .sh-foot { padding: 18px; } .sh-foot .row-x { width: 100%; } .sh-foot .row-x .btn { flex: 1; } .sh-foot > .link { margin-left: 0; } }

/* ---------- narrow browser windows: keep the top bar on one line ---------- */
@media (max-width: 1240px) { .rolesw .seg button { padding: 5px 8px; } }
@media (max-width: 1020px) and (min-width: 861px) { .app { grid-template-columns: 232px 1fr; } .ai { left: 232px; } .content { padding-left: 24px; padding-right: 24px; } .main > .top { padding: 0 24px; } .dcrumb > span { display: none; } }
@media (max-width: 480px) { .tools > .iconbtn { display: none; } .mlogo img { max-height: 38px; } }

/* ---------- nutrition pages on a phone: one bottom tab, so a switcher across the top ---------- */
.nt-nav { display: none; }
@media (max-width: 860px) {
  .nt-nav { display: flex; gap: 6px; overflow-x: auto; margin: -8px -16px 18px; padding: 0 16px 2px; scrollbar-width: none; }
  .nt-nav::-webkit-scrollbar { display: none; }
  .nt-nav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text2); }
  .nt-nav a.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
  .mnav a span, .mnav button span { white-space: nowrap; }
}
@media (max-width: 400px) { .mnav a, .mnav button { font-size: 9.5px; letter-spacing: -0.01em; } }

/* ---------- "Have recent bloodwork?": the way in to Bloodwork Review (app/labs/), shown on other pages ---------- */
.lr-promo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; border-left: 3px solid var(--brand); color: inherit; transition: box-shadow .2s, border-color .2s; }
.lr-promo:hover { box-shadow: 0 1px 2px rgba(20,28,20,.04), 0 10px 30px -16px rgba(20,28,20,.28); }
.lr-promo .ico { width: 44px; height: 44px; border-radius: 50%; }
.lr-promo .grow { flex: 1; min-width: 240px; }
.lr-promo h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: calc(var(--card-title-size) * .82); }
.lr-promo p { font-size: 13px; color: var(--text2); margin-top: 3px; max-width: 680px; }
@media (max-width: 860px) { .lr-promo { padding: 18px; } .lr-promo .btn { width: 100%; } }

/* ApexAI "targets" card: numbers from the server's nutrition calculator */
.ab-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ab-tile { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ab-tile b { font-size: 20px; line-height: 1.15; color: var(--brand); font-variant-numeric: tabular-nums; }
.ab-tile span { font-size: 12px; font-weight: 600; }
.ab-tile small { font-size: 11px; color: var(--text2); }
.ab-trend { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--text2); }
.ab-note { margin: 8px 0 0; font-size: 12px; color: var(--text2); }
@media (max-width: 860px) { .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sandbox banner (real sign-in on the sandbox only; app/app.js) */
.sbx-banner { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text2); background: var(--warn-soft, #FFF6E5); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 8px 12px; margin-bottom: 16px; }
.sbx-banner a { color: var(--brand-text); font-weight: 600; }

/* ---------- a signed-in patient's own data (app/live/, mockup v2): drawn with the portal's existing parts ---------- */
/* next-best actions (UI.actRow / actNote / actX, app/ui.js): a task row is the dashboard's .dash-task; a note is the shop's
   kit note (app/pages/shop.js .sh-kitnote); the × is a small icon button */
.act-row { align-items: flex-start; } .act-row > i { margin-top: 2px; }
.act-b { min-width: 0; flex: 1; } .act-t { color: var(--text); }
.act-tl { font-size: 12px; color: var(--text2); margin-top: 2px; } .act-tl .link.mono { font-size: 11.5px; }
.act-x { width: 24px; height: 24px; border-radius: 7px; margin-left: 4px; color: var(--mute); flex-shrink: 0; }
.act-note { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
/* a file named in a message or a list: the chip My Cases draws (app/pages/cases.js .cs-file) */
.file-chip { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; padding: 6px 9px; border-radius: 8px; background: rgba(127,127,127,.14); }
/* a slim notice at the top of a page (Chat's, app/pages/chat.js), for any page: the care-essentials sex banner */
.ct-banner { display: flex; gap: 10px; align-items: center; padding: 11px 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--text2); background: var(--warn-soft); border: 1px solid var(--line); border-radius: var(--radius-card); }
.ct-banner svg { color: var(--warn); }
/* unread care-team messages on a phone: the bell is hidden there, so the Chat tab carries the dot */
.mnav a { position: relative; }
.mnav a.dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 5px); width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--surface); }
