/* Sign-up, pricing, schedule editor, messages, and My page pickers. */

/* ---------- Portal extras ---------- */
.side .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.msg { padding: 16px 0; border-top: 1px solid var(--line); }
.msg.first { border-top: 0; padding-top: 0; }
.msg-body { white-space: pre-line; margin: 10px 0 12px; }
.slugbox { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.slugbox input { border: 0; border-radius: 0; min-width: 0; }
.slugbox span { display: flex; align-items: center; padding: 0 12px; background: var(--ground); color: var(--muted); font: 500 14px var(--font); white-space: nowrap; }
.nav a.login-link { display: inline; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; margin-top: 6px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .ticks { margin: 12px 0 18px; gap: 8px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Schedule editor (built for phones first) ---------- */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch.sm { width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, var(--surface)); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch.sm i::after { width: 20px; height: 20px; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch.sm input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 500; margin: 0; }
.sched-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.presets { flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--soft); }
.days { display: grid; }
.dayrow { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.dayrow:first-child { border-top: 0; }
.dayname { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; cursor: pointer; font-size: 15px; }
.dayname .short { display: none; }
.ranges { display: grid; gap: 8px; }
.range { display: flex; align-items: center; gap: 8px; }
.range select { width: auto; min-width: 118px; flex: 1 1 0; max-width: 150px; }
.range .to { color: var(--muted); font-size: 14px; }
.range.bad select { border-color: var(--bad); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--bad); border-color: var(--bad); }
.day-actions { flex-wrap: wrap; gap: 4px 16px; }
.link-btn { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--accent); font: 700 14px var(--font); cursor: pointer; }
.off-note { display: none; min-height: 44px; align-items: center; }
.js .dayrow.off .range, .js .dayrow.off .day-actions { display: none; }
.js .dayrow.off .off-note { display: flex; }
.js-only { display: none; }
.js .js-only { display: flex; }
.js .icon-btn.js-only { display: inline-block; }
.seg-field { border: 0; padding: 0; margin: 0 0 16px; }
.seg-field legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px;
  padding: 12px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .dayrow { grid-template-columns: 1fr; gap: 6px; }
  .dayname .long { display: none; }
  .dayname .short { display: inline; }
  .range select { min-width: 0; max-width: none; }
  .savebar { margin-left: -8px; margin-right: -8px; border-radius: 14px 14px 0 0; flex-wrap: wrap; row-gap: 8px; }
  .savebar > * { min-width: 0; }
  .savebar > :last-child { margin-left: auto; flex-wrap: wrap; }     /* the buttons drop below the line, never off screen */
  .savebar .btn { flex: none; }
}

/* ---------- My page: look pickers ---------- */
.pick { border: 0; padding: 0; margin: 0 0 22px; }
.pick legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.swatches, .fontcards, .logocards, .modecards { display: grid; gap: 10px; }
.swatches { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.fontcards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.logocards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.modecards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.swatch-card, .font-card, .logo-card, .mode-card { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.swatch-card input, .font-card input, .logo-card input, .mode-card input { position: absolute; opacity: 0; }
.swatch-card:has(input:checked), .font-card:has(input:checked), .logo-card:has(input:checked), .mode-card:has(input:checked) {
  border: 2px solid var(--ink); padding: 11px; }
.swatch-card:has(input:focus-visible), .font-card:has(input:focus-visible), .logo-card:has(input:focus-visible), .mode-card:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.swatch-chip { height: 36px; border-radius: 8px; position: relative; overflow: hidden; }
.swatch-chip i { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; }
.fc-head { font-size: 20px; font-weight: 700; line-height: 1.2; }
.fc-body { font-size: 13px; font-weight: 400; color: var(--muted); }
.lc-preview { min-height: 44px; display: flex; align-items: center; }
.mode-card b { font-size: 15px; }

/* Phone: the portal menu becomes one swipeable row instead of a tall block. */
@media (max-width: 900px) {
  .side { flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 10px 12px; scrollbar-width: none;
    position: sticky; top: var(--ea-stick, 0px); z-index: 8; }
  .side::-webkit-scrollbar { display: none; }
  .side .brand { flex: none; margin: 0 8px 0 0; }
  .side .brand { font-size: 0; gap: 0; }
  .side a.item { flex: none; white-space: nowrap; min-height: 40px; padding: 0 12px; }
  .side .who { flex: none; margin-left: 8px; }
  .side .who > div { display: none; }
  .savebar { bottom: 0; }
}

/* Therapist logo: name with credential underneath */
.plogo-stack { display: inline-flex; flex-direction: column; line-height: 1.1; color: var(--ink); }
.plogo-stack b { font-family: var(--head-font, var(--font)); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.plogo-stack small { margin-top: 4px; font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Clients and billing ---------- */
.tbl { overflow-x: auto; margin-top: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
/* Column names for screen readers only, on short tables that read fine without a visible header row. */
table.data thead.sr-head th { padding: 0; border: 0; height: 0; }
table.data td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data a { font-weight: 700; text-decoration: none; }
table.data input[type=text] { min-height: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.balance-box { display: flex; flex-direction: column; align-items: flex-end; gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 18px; }
.balance-box b { font-size: 26px; font-variant-numeric: tabular-nums; }
.balance-box b.owes { color: var(--bad); }
.ledger-sum { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; margin-top: 14px; font-size: 14px; color: var(--muted); }
.ledger-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.claim-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2::after { content: "  +"; content: "  +" / ""; color: var(--muted); }
details.card[open] > summary h2::after { content: "  \2212"; content: "  \2212" / ""; }

/* ---------- Calendar and notes ---------- */
.weeknav { display: flex; flex-wrap: wrap; gap: 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.wday { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.wday.today { border: 2px solid var(--accent); padding: 9px; }
.wday h2 { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.wday h2 span:first-child { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.appt { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; border-left: 0; }
.appt:hover { outline: 2px solid var(--accent); }
.appt .t { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.appt .small { color: var(--muted); font-size: 12px; }
.appt.consult { background: var(--warn-soft); }
.appt.consult .t { color: var(--warn); }
.appt.st-cancelled, .appt.st-no_show { background: var(--ground); }
/* The client confirmed (ph/appt_confirm.py): its own color and a small "Confirmed", day and night. */
.appt.confirmed, .mappt.confirmed { background: var(--ok-soft); box-shadow: inset 0 0 0 1px var(--ok); }
.appt.confirmed[style*="--who"], .mappt.confirmed[style*="--who"] { box-shadow: inset 3px 0 0 var(--who), inset 0 0 0 1px var(--ok); }
.appt .cnote, .mappt .cnote, .drow .cnote, .cp-confirmed { color: var(--ok); font-weight: 700; }
.drow.confirmed .dtime b { color: var(--ok); }
.mdots i.confirmed { background: var(--ok); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
/* The prep brief on the calendar (static/prep-pop.js): loaded when asked for, for the treating clinician only. */
.prep-pop { position: absolute; z-index: 40; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.prep-pop .prep-card { margin: 0; border: 0; box-shadow: none; }
.prep-pop .prep-list > div { grid-template-columns: 1fr; gap: 2px; }
.s-prep .prep-card { margin: 8px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.s-prep .prep-card h2 { display: none; }
.s-prep .prep-list > div { grid-template-columns: 1fr; gap: 2px; }
.prep-pop .pp-open { display: block; padding: 0 16px 14px; font-weight: 700; }
/* Dimmed with the muted color, not opacity, so the words keep 4.5:1 in day and night. */
.appt.st-cancelled, .appt.st-no_show, .appt.st-cancelled :not(.btn, .btn *), .appt.st-no_show :not(.btn, .btn *), .mappt.st-cancelled, .mappt.st-no_show,
.mappt.st-cancelled :not(.btn, .btn *), .mappt.st-no_show :not(.btn, .btn *), .drow.st-cancelled, .drow.st-no_show, .drow.st-cancelled :not(.btn, .btn *), .drow.st-no_show :not(.btn, .btn *) { color: var(--muted) !important; }
.appt.st-cancelled b { text-decoration: line-through; }
.appt .flags { color: var(--ink); }
/* Blocked time and time off (ph/time_blocks.py): a plain, dashed card in the page's own tokens, day and night. */
.appt.block, .mappt.block { background: var(--ground); border: 1px dashed var(--line); color: var(--ink); }
.appt.block:hover, .mappt.block:hover { outline: 0; }
.appt.block .t, .mappt.block .t { color: var(--ink); }
.drow.block .dtime b { color: var(--ink); }
.blocks-list { list-style: none; margin: 8px 0 0; padding: 0; }
.blocks-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.blocks-list li:first-child { border-top: 0; }
/* Session prep brief (templates/_session_prep.html) and the note check (templates/_note_check.html). */
.prep-list { margin: 10px 0 0; display: grid; gap: 10px; }
.prep-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.prep-list dt { font-weight: 700; color: var(--ink); }
.prep-list dd { margin: 0; color: var(--ink); }
.prep-list ul, .note-check ul { margin: 4px 0 0; padding-left: 18px; }
.prep-list .prep-warn { border-left: 3px solid var(--warn); padding-left: 9px; }
@media (max-width: 640px) { .prep-list > div { grid-template-columns: 1fr; gap: 2px; } }
.note-check { border-left: 4px solid var(--warn); }
.note-check li + li { margin-top: 6px; }
.wday .free { margin: 0; }
@media (max-width: 1100px) { .week { grid-template-columns: 1fr; } .wday { min-height: 0; } }
.note-form textarea { min-height: 120px; }
.note-read section + section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.note-read h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.note-read p { white-space: pre-line; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn[disabled] { opacity: 1; background: var(--soft); color: var(--muted); border: 1px dashed var(--line); cursor: not-allowed; filter: none; }

/* ---------- Intake forms ---------- */
.intake .card + .card { margin-top: 16px; }
.intake h3.sub { font-size: 15px; margin: 18px 0 10px; }
.doc { white-space: pre-line; background: var(--ground); border-radius: 10px; padding: 14px 16px; margin-top: 12px; font-size: 15px; max-height: 260px; overflow: auto; }
.qitem { padding-top: 10px; border-top: 1px solid var(--line); }
.qitem legend { font-weight: 600; font-size: 15px; line-height: 1.4; }
.qitem .seg span { min-height: 44px; font-size: 14px; padding: 0 12px; }

/* ---------- Homepage: privacy promise ---------- */
.band.trust { background: var(--deep); color: #EEF3EA; }
.band.trust .eyebrow { color: #B9D3AE; }
.trust-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.trust h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; margin: 14px 0 16px; color: #fff; text-wrap: balance; }
.trust p { color: #C9D6C3; font-size: 17px; max-width: 60ch; }
.trust p + p { margin-top: 12px; }
.trust .sources { font-size: 13px; margin-top: 18px; color: #9FB096; }
.trust .sources a { color: #B9D3AE; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promises li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; color: #C9D6C3; font-size: 15px; }
.promises b { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
/* A bold term inside the text (e.g. "professional will") stays in the sentence. */
.promises li > b ~ b { display: inline; font-size: inherit; margin: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Account: export and professional will ---------- */
.link-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); margin: 0; }
.link-card:hover { border-color: var(--accent); }
.link-card + .link-card { margin-top: 0; }
.steps-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }

/* ---------- Notes: previous note, plan suggestions, measures ---------- */
.prev-note summary { cursor: pointer; list-style: none; }
.prev-note summary::-webkit-details-marker { display: none; }
.prev-note { background: var(--ground); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest form { max-width: 100%; }
.sugg { max-width: 100%; white-space: normal; }
.sugg { text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px;
  font: 500 14px/1.4 var(--font); cursor: pointer; max-width: 100%; }
.sugg:hover { border-color: var(--accent); background: var(--soft); }
.sugg.used { color: var(--muted); text-decoration: line-through; }
.sugg.used::before { content: "\2713  "; color: var(--accent); font-weight: 800; }
.plan-help h3.sub { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.measures-entry .mrow { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 10px; }
.seg.tight { gap: 6px; }
.seg.tight span { min-width: 44px; min-height: 44px; padding: 0 8px; justify-content: center; font-variant-numeric: tabular-nums; }
.anchors { display: flex; justify-content: space-between; margin-top: 4px; }

/* ---------- Progress charts ---------- */
.charts { display: grid; gap: 14px; margin-top: 10px; }
.chartbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chartbox.retired { color: var(--muted); border-style: dashed; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.mchart { width: 100%; height: auto; display: block; margin-top: 6px; }
.mchart .g { stroke: var(--line); stroke-width: 1; }
.mchart path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mchart circle { fill: var(--accent); }
.mchart text { fill: var(--muted); font: 600 11px var(--font); }

/* ---------- Session view: video beside or over the note ---------- */
.shell.compact { grid-template-columns: 1fr; }
.shell.compact .side { display: none; }
.shell.compact .main { max-width: none; padding: 0; }
.splitview { --vw: 45%; display: grid; grid-template-columns: var(--vw) 10px 1fr; height: 100vh; }
.splitview .vpane { display: flex; flex-direction: column; background: #10150F; min-width: 0; }
.vbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; background: #1C2419; color: #EEF3EA; }
.vbar .vbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.vbar .chip { min-height: 32px; background: transparent; color: #EEF3EA; border-color: rgba(255,255,255,.25); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.vpane iframe { flex: 1; width: 100%; border: 0; background: #10150F; }
.vhelp { padding: 8px 10px; color: #9FB096; margin: 0; }
.vhelp a, .vhelp b { color: #C9D6C3; }
.divider { cursor: col-resize; background: var(--line); position: relative; touch-action: none; }
.divider::after { content: ""; position: absolute; top: 50%; left: 3px; width: 4px; height: 44px; margin-top: -22px; border-radius: 4px; background: var(--muted); }
.divider:focus-visible { outline: 3px solid var(--accent); }
.splitview.dragging { user-select: none; }
.splitview.dragging iframe { pointer-events: none; }
.npane { overflow: auto; padding: 24px 28px 48px; min-width: 0; grid-column: 3; grid-row: 1; }
.splitview.corner { grid-template-columns: 0 0 1fr; }
.splitview.corner .divider { display: none; }
.splitview.corner .vpane { position: fixed; right: 20px; bottom: 20px; width: 440px; height: 340px; z-index: 30; border-radius: 14px;
  overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); resize: both; min-width: 240px; min-height: 180px; }
.splitview.corner .vbar { cursor: move; }
.splitview.corner .vhelp { display: none; }
@media (max-width: 1100px) {
  .splitview, .splitview.sbs { grid-template-columns: 0 0 1fr; }
  .splitview .divider { display: none; }
  .splitview .vpane { position: fixed; right: 12px; bottom: 12px; width: 300px; height: 240px; z-index: 30; border-radius: 14px; overflow: hidden; }
}

/* ---------- My website: openable sections ---------- */
details.openable > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.openable > summary::-webkit-details-marker { display: none; }
details.openable > summary > span { display: grid; gap: 4px; }
details.openable > summary::after { content: "+"; font: 700 22px/1 var(--font); color: var(--accent); flex: none; }
details.openable[open] > summary::after { content: "\2212"; }
.openable-body { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 4px; }
.openable-body .card { border: 0; border-radius: 0; padding: 18px 0 0; background: none; }
.openable-body .card + .card { margin-top: 10px; border-top: 1px solid var(--line); }
.openable-body .cols { margin-top: 0; }

/* ---------- AI assistant ---------- */
.ai-card { border-left: 4px solid var(--accent); }
.sugg.ai { border-style: dashed; }
.ai-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; max-width: 440px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.ai-dialog::backdrop { background: rgba(20, 26, 18, .45); }
.ai-dialog p { margin: 10px 0 18px; line-height: 1.5; }
.ai-dialog form { text-align: right; }

/* ---------- Settings pages ---------- */
.secrow { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 0; display: grid;
  grid-template-columns: 70px 1fr 1.4fr auto; gap: 10px; align-items: end; }
.secrow .field { margin-bottom: 8px; }
.secrow .check.req { margin-bottom: 18px; }
details.wording { border-top: 1px solid var(--line); padding: 10px 0; }
details.wording summary { cursor: pointer; }
@media (max-width: 700px) { .secrow { grid-template-columns: 64px 1fr; } .secrow .field:nth-of-type(3) { grid-column: 1 / -1; } }

/* ---------- Portal menu (design 1B): light colored icons, current page tinted with a bar ---------- */
.side a.item { justify-content: flex-start; gap: 10px; position: relative; }
.side a.item .count { margin-left: auto; }
.ico { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--c); }
.side a.item.on { background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: var(--ink); }
.side a.item.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--c, var(--accent)); }
.side .who { padding: 10px 0 0; }
.gear { position: relative; width: 100%; }
.gear > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 6px 8px 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.gear > summary::-webkit-details-marker { display: none; }
.gear > summary:hover, .gear[open] > summary, .gear.on > summary { background: var(--ground); }
.gear > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gear .who-text { flex: 1; min-width: 0; text-align: left; }
.gear .who-text b { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.gear .who-text span { display: block; }
.gear-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 40; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; display: grid; }
.gear-menu a, .gear-menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 9px; font: 600 14px var(--font);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.gear-menu a:hover, .gear-menu button:hover { background: var(--ground); }
.gear-menu form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
@media (max-width: 900px) {
  .side .who { padding: 0; width: auto; }
  .gear { width: auto; }
  .gear > summary { border: 0; padding: 4px; min-width: 44px; justify-content: center; }
  .gear .who-text { display: none; }
  .side a.item.on::before { left: 10px; right: 10px; top: auto; bottom: 2px; width: auto; height: 3px; }
  /* Phone: settings open as a sheet from the bottom of the screen. */
  .gear-menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 18px 18px 0 0; padding: 10px 10px 18px;
    box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
  .gear-menu a, .gear-menu button { padding: 14px 14px; font-size: 16px; }
}

/* ---------- Intake: new clients table, reminder settings ---------- */
.intake-table tr.urgent td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.intake-table .due { color: var(--bad); font-weight: 700; }
.numrows { display: grid; gap: 8px; margin: 10px 0 6px; }
.numrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.numrow input { width: 72px; min-height: 40px; text-align: center; }

/* ---------- Calendar: weekly / daily toggle, day list, mini month ---------- */
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.viewtoggle a { padding: 7px 14px; border-radius: 999px; font: 700 13px var(--font); color: var(--muted); text-decoration: none; }
.viewtoggle a.on { background: var(--accent); color: var(--accent-ink); }
.dayview { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; margin-bottom: 20px; }
.daylist { display: grid; gap: 0; padding: 8px 20px; container-type: inline-size; }
.drow { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.drow:first-child { border-top: 0; }
.drow.consult .dtime b { color: var(--warn); }
.dtime b { display: block; font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dtime span { font-size: 12px; color: var(--muted); }
.dwho b { display: block; }
.dwho a { color: var(--ink); text-decoration: none; }
.dacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dacts form { display: inline; }
/* A narrow day list (a tablet beside the menu, about 1000px): the buttons drop below the name, so the
   name and status never wrap a word to a line. */
@container (max-width: 520px) {
  .drow { grid-template-columns: 70px minmax(0, 1fr); }
  .dacts { grid-column: 1 / -1; justify-content: flex-start; }
}
.minimonth { padding: 16px; }
.mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mm-head a { text-decoration: none; font-size: 20px; padding: 0 8px; color: var(--accent); }
.minimonth table { width: 100%; border-collapse: collapse; text-align: center; }
.minimonth th { font: 700 11px var(--font); color: var(--muted); padding: 4px 0; }
.minimonth td { padding: 2px; }
.minimonth td a { display: grid; place-items: center; height: 32px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font: 600 13px var(--font); position: relative; }
.minimonth td a.out { color: var(--muted); }
.minimonth td a.busy::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.minimonth td a.today { box-shadow: inset 0 0 0 2px var(--accent); }
.minimonth td a.focus { background: var(--accent); color: var(--accent-ink); }
.minimonth td a.focus::after { background: var(--surface); }
.minimonth td a:hover { background: var(--soft); }
@media (max-width: 900px) {
  .dayview { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 70px 1fr; }
  .dacts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Calendar: month grid (Mon-Sun like the week); phones get dots and a day list ---------- */
.monthview { margin-bottom: 20px; }
.mgrid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.mgrid th { font: 700 12px var(--font); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding: 4px 0; }
.mgrid th abbr { text-decoration: none; }
.mday { vertical-align: top; height: 118px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; overflow: hidden; }
.mday.out { background: var(--ground); }
.mday.out .mnum { color: var(--muted); font-weight: 400; }
.mday.today { border: 2px solid var(--accent); padding: 5px; }
.mnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; font: 700 13px var(--font); color: var(--ink); text-decoration: none; }
.mnum:hover { background: var(--soft); }
.mday.today .mnum { background: var(--accent); color: var(--accent-ink); }
.mtoday { font: 700 11px var(--font); color: var(--accent); margin-left: 4px; }
.mlist-cell { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.mappt { display: block; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mappt:hover { outline: 2px solid var(--accent); }
.mappt .t { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.mappt b { font-weight: 600; }
.mappt.consult { background: var(--warn-soft); }
.mappt.consult .t { color: var(--warn); }
.mappt.st-cancelled, .mappt.st-no_show { background: var(--ground); }
.mappt.st-cancelled b, .mappt.st-cancelled .t { text-decoration: line-through; }
.mappt[style*="--who"] { box-shadow: inset 3px 0 0 var(--who); }
.mmore { display: inline-block; margin-top: 2px; font: 700 12px var(--font); color: var(--accent); text-decoration: none; }
.mmore:hover { text-decoration: underline; }
.mpick { display: none; }
.mlist { display: none; }
.mlist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.mlist-head h2 { font-size: 16px; margin: 0; }
.mlist .appt + .appt { margin-top: 8px; }
@media (max-width: 700px) {
  .mgrid { border-spacing: 2px; }
  .mgrid th { font-size: 11px; letter-spacing: 0; }
  .mday { height: 52px; padding: 0; border-radius: 8px; }
  .mday.today { padding: 0; }
  .mday .mnum, .mday .mtoday, .mday .mlist-cell, .mday .mmore { display: none; }
  .mpick { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; height: 100%; padding-top: 6px;
    color: var(--ink); text-decoration: none; font: 700 13px var(--font); }
  .mday.out .mpick { color: var(--muted); }
  .mday.focus { background: var(--soft); border-color: var(--accent); }
  .mday.today .mpick-num { color: var(--accent); }
  .mdots { display: flex; gap: 3px; }
  .mdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .mdots i.consult { background: var(--warn); }
  .mdots i.st-cancelled, .mdots i.st-no_show { background: color-mix(in srgb, var(--ink) 36%, var(--surface)); }
  .mdots i.block { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
  .mcount { font: 700 10px var(--font); color: var(--muted); }
  .mlist { display: block; margin-top: 12px; }
}

/* ---------- Time zones ---------- */
.tzpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
.tzpick select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.ctime { color: var(--accent); font-weight: 700; }

/* ---------- Client portal ---------- */
.cp-top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cp-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cp-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.cp-nav a.on { background: var(--soft); color: var(--accent); }
.cp-nav form { display: inline; margin-left: 6px; }
.cp-main { padding-top: 28px; padding-bottom: 48px; }
.cp-main h1 { font-size: 28px; font-weight: 800; }
.cp-main .card { margin-top: 18px; }
.cp-narrow { max-width: 460px; margin: 0 auto; }
.cp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.cp-grid .card + .card { margin-top: 18px; }
.cp-sess { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cp-sess:first-of-type { border-top: 0; }
.cp-cancel { margin: -4px 0 8px; }
.cp-where { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.cp-where .mode-card { display: grid; gap: 2px; }
.cp-where .mode-card.blocked { background: var(--ground); border-style: dashed; }   /* full-contrast text, still clearly set apart */
.cp-join { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr svg { width: 220px; height: 220px; max-width: 100%; }
.cp-thread { display: grid; gap: 10px; }
.cp-thread.mini { max-height: 320px; overflow: auto; margin-top: 8px; }
.cp-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--ground); min-width: 0; overflow-wrap: anywhere; }
.cp-msg p { margin: 0 0 4px; white-space: pre-wrap; }
.cp-msg.me { justify-self: end; background: var(--soft); }
.checkin-card { border-left: 4px solid var(--accent); font-size: 15px; }
.checkin-card.missing { border-left-color: var(--warn); }
.sesshours { display: grid; gap: 6px; }
.shrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shrow .check { min-width: 130px; }
.shrow select { width: auto; min-height: 38px; }
@media (max-width: 760px) { .cp-grid, .cp-join { grid-template-columns: 1fr; } .cp-msg { max-width: 95%; } }

/* ---------- Two-step sign-in ---------- */
.twostep { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.twostep .card + .card { margin-top: 0; }
.recovery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
  font: 600 16px/1.4 ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 760px) { .twostep { grid-template-columns: 1fr; } }

.passkey-choice { border-left: 4px solid var(--accent); }

/* ---------- Intake at a glance ---------- */
.scorechips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.scorechip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 13px; border: 1px solid transparent; }
.scorechips.small .scorechip { font-size: 12px; padding: 2px 7px; }
.lv-ok   { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: color-mix(in srgb, var(--ok) 53%, var(--ink)); border-color: color-mix(in srgb, var(--ok) 28%, var(--surface)); }
.lv-mild { background: color-mix(in srgb, var(--warn-line) 25%, var(--surface)); color: color-mix(in srgb, var(--warn) 79%, var(--ink)); border-color: color-mix(in srgb, var(--warn-line) 59%, var(--surface)); }
.lv-mod  { background: color-mix(in srgb, var(--warn-line) 31%, var(--surface)); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); border-color: color-mix(in srgb, var(--warn-line) 62%, var(--surface)); }
.lv-high { background: color-mix(in srgb, var(--bad-line) 56%, var(--surface)); color: color-mix(in srgb, var(--danger) 73%, var(--ink)); border-color: color-mix(in srgb, var(--danger) 38%, var(--surface)); }
.legend .scorechip { font-size: 11px; padding: 1px 7px; }
.openable-mini { border-top: 1px solid var(--line); padding: 10px 0; }
.openable-mini summary { cursor: pointer; }
.openable-mini.inner { border: 0; padding: 4px 0 4px 12px; }
.intake-card > summary { cursor: pointer; list-style: none; }
.intake-card > summary::-webkit-details-marker { display: none; }
.firstflag { color: var(--accent); font-weight: 700; }
/* New clients */
.nc-list { display: grid; gap: 14px; }
.nc { margin: 0 !important; }
.nc.urgent { box-shadow: inset 4px 0 0 var(--bad); }
.nc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.nc-head a { color: var(--ink); text-decoration: none; font-size: 17px; }
.nc-steps { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-top: 12px; }
.nc-step { display: grid; gap: 6px; align-content: start; }
.nc-send { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nc-send select { width: auto; min-height: 38px; }
.nc-suggest { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bubble input { position: absolute; opacity: 0; }
.bubble span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent);
  font: 600 13px var(--font); cursor: pointer; background: var(--surface); }
.bubble input:checked + span { background: var(--accent); color: var(--accent-ink); border-style: solid; }
.bubble input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.due { color: var(--bad); font-weight: 700; }
@media (max-width: 900px) { .nc-steps { grid-template-columns: 1fr; } }
/* Form-set wizard */
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.setgrid .card { margin: 0; }
.starter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: var(--ea-stick, 0px); z-index: 5;
  background: var(--ground); padding: 8px 0; }
.stepper a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font: 600 13px var(--font); }
.wstep { scroll-margin-top: calc(70px + var(--ea-stick, 0px)); }
.pickrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.pickrow.doc { display: grid; gap: 6px; }
.pickrow input[type=checkbox], .qcard input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.qcard { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.qcard span span { display: block; }
.qcard:has(input:checked) { border-color: var(--accent); background: var(--soft); }

/* ---------- Admin ---------- */
.admin h1 { font-size: 28px; font-weight: 800; }
.admin-stats { grid-template-columns: repeat(4, 1fr); margin: 16px 0; }
.admin-table select { width: auto; min-height: 34px; padding: 2px 8px; }
.kindform { display: inline; }
@media (max-width: 800px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
.splitview.corner .vbar .chip, .splitview .vpane[style] .vbar .chip { min-height: 28px; padding: 0 10px; font-size: 12px; }
@media (max-width: 1100px) { .vbar .chip { min-height: 28px; padding: 0 10px; font-size: 12px; } }
/* Pricing: what's in, what's not, what's coming */
.plan .unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .pnote { font-size: 14px; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 8px 12px; margin: 8px 0 2px; }
.plan h4 { font: 700 12px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; }
.plan .ticks { font-size: 15px; }
.ticks.nots li { font-weight: 500; color: var(--muted); }
.ticks.nots li::before { content: "\2715"; background: color-mix(in srgb, var(--bad-line) 34%, var(--surface)); color: color-mix(in srgb, var(--danger) 93%, var(--surface)); }
.ticks.soon li { font-weight: 500; }
.ticks.soon li::before { content: "\2026"; background: var(--warn-soft); color: var(--warn); }
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.addon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.addon b { font-size: 17px; }
.addon .p { float: right; font-weight: 800; color: var(--accent); }
@media (max-width: 700px) { .addons { grid-template-columns: 1fr; } }

/* Group practices */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.team-table td { vertical-align: top; }
.member-edit { display: inline-block; text-align: left; }
.member-menu { display: grid; gap: 12px; margin-top: 10px; padding: 14px; background: var(--ground); border-radius: 12px; min-width: 260px; }
.member-menu form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatches input:checked + i { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.swatches input:focus-visible + i { outline: 3px solid var(--accent); }
.btn.danger { color: color-mix(in srgb, var(--danger) 93%, var(--surface)); border-color: var(--bad-line); }
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip-check input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); }
.whobar { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.whobar a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.whobar a.on { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.appt[style*="--who"], .drow[style*="--who"] { box-shadow: inset 4px 0 0 var(--who); }
.appt .who { font-weight: 700; color: var(--who, inherit); }
.team-grid { display: grid; gap: 18px; margin-top: 14px; }
.team-card { display: flex; gap: 16px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); }
.team-card:first-child { border-top: 0; padding-top: 0; }
.team-card h3 { font-size: 18px; }
.team-card h3 small { font-weight: 600; color: var(--muted); font-size: 15px; }
.team-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.team-bio summary { margin-top: 6px; }
.who-pick, .type-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.who-pick .chip, .type-pick .chip { text-decoration: none; }
.who-pick .chip.on, .type-pick .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) { .team-card { flex-direction: column; } }

/* Session view (video + note) */
.session { display: flex; flex-direction: column; height: 100vh; }
.session .grow { flex-grow: 1; }
.sbar { flex: none; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 8px 20px; box-sizing: border-box; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sb-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); }
.sb-icon:hover { background: var(--ground); }
.sb-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-who a { color: inherit; text-decoration: none; font-size: 16px; }
.sb-who span { font-size: 13px; font-weight: 600; color: var(--muted); }
.sb-switch { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; font: 700 13px var(--font); color: var(--ink); cursor: pointer; text-decoration: none; }
.sb-switch-text { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.sb-switch-text small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sw { width: 40px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 23%, var(--surface)); position: relative; display: block; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); }
.sb-switch[aria-pressed="true"] .sw { background: var(--accent); }
.sb-switch[aria-pressed="true"] .sw i { left: 19px; }
.sb-sep { width: 1px; height: 28px; background: var(--line); }
.session .splitview { height: auto; flex: 1; min-height: 0; }
.session .vpane { position: relative; padding: 14px; box-sizing: border-box; }
.session .vpane iframe { border-radius: 14px; }
.vctl { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; z-index: 2; }
.vbtn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vbtn:hover { background: rgba(0,0,0,.78); }
.vbtn:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.splitview.sbs .vbtn[data-layout="side"], .splitview.corner .vbtn[data-layout="corner"] { display: none; }
.session .splitview.corner .vpane { padding: 0; width: 380px; height: 260px; }
.session .splitview.corner .vpane iframe { border-radius: 0; }
.session .splitview.corner .vctl { top: 10px; right: 10px; }
.session .npane { padding: 18px 24px 40px; }
.ncols, .ncol-a, .ncol-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.session .splitview.corner .npane { padding-bottom: 300px; }
.session .splitview.corner .ncols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.session .splitview.corner .ncol-b { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
details.s-card > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; }
details.s-card > summary::-webkit-details-marker { display: none; }
.s-link { font-size: 13px; font-weight: 700; color: var(--accent); }
.s-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-objs { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.s-objs li + li { margin-top: 4px; }
.s-line { margin: 0; }
.s-measure { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.s-mlabel { font-size: 14px; font-weight: 800; }
.s-scale { display: flex; gap: 4px; flex-wrap: wrap; }
.s-scale label { position: relative; }
.s-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-scale span { display: flex; align-items: center; justify-content: center; min-width: 30px; height: 32px; padding: 0 4px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 700 13px var(--font); cursor: pointer; }
.s-scale label.was span { border-style: dashed; border-color: color-mix(in srgb, var(--ink) 50%, var(--surface)); }
.s-scale input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.s-scale input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.s-menu { position: relative; }
.s-dots { list-style: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.s-dots::-webkit-details-marker { display: none; }
.s-dots:hover, .s-menu[open] .s-dots { background: color-mix(in srgb, var(--ink) 7%, var(--surface)); color: var(--ink); }
.s-pop { position: absolute; right: 0; top: 38px; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(28,36,25,.18); padding: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.s-chart svg { width: 100%; height: auto; }
.s-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-rename > summary { list-style: none; }
.s-rename > summary::-webkit-details-marker { display: none; }
.s-lock { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.s-sec { display: flex; flex-direction: column; gap: 6px; }
.s-sec textarea, #ai #quick_notes { width: 100%; box-sizing: border-box; }
.s-suggest { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); color: var(--accent); font: 700 12px var(--font); cursor: pointer; }
.s-suggest:hover { background: var(--soft); }
.session .btn svg { vertical-align: -3px; margin-right: 4px; }
/* The measure menu opens under its whole row, so it never runs off the screen. */
.s-menu { position: static; }
.s-pop { top: calc(100% + 6px); right: 0; }
.s-link { text-decoration: none; }

/* Homepage: the interactive session view demo (a fixed 1280x760 stage, scaled to fit). */
.demo-frame { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(28,36,25,.14); overflow: hidden; background: var(--ground); }
.demo-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 760px; transform-origin: 0 0; text-align: left; }
.demo .session { height: 100%; }
.demo .splitview, .demo .splitview.sbs { grid-template-columns: var(--vw, 46%) 10px 1fr; }
.demo .splitview.sbs .divider { display: block; }
.demo .splitview.sbs .vpane { position: relative; right: auto; bottom: auto; width: auto; height: auto; border-radius: 0; box-shadow: none; overflow: visible; z-index: auto; }
.demo .splitview.corner { grid-template-columns: 0 0 1fr; }
.demo .splitview.corner .vpane { position: absolute; right: 18px; bottom: 18px; width: 340px; height: 230px; padding: 0; z-index: 30; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 36px rgba(16,21,15,.35); }
.demo .vpane { display: flex; }
.demo-feed { position: relative; flex: 1; border-radius: 14px; overflow: hidden; background: #2A3327; user-select: none; }
.demo .splitview.corner .demo-feed { border-radius: 0; cursor: move; }
.demo-feed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
.demo-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.demo-self { position: absolute; right: 12px; bottom: 12px; width: 22%; aspect-ratio: 4 / 3; border-radius: 10px; background: radial-gradient(120% 90% at 50% 30%, #8a7a62 0%, #5b4f3e 70%); border: 2px solid rgba(255,255,255,.4); }
.demo-self { overflow: hidden; }
.demo-self img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.demo-self span { z-index: 1; }
.demo-self span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.demo .npane { overflow: auto; }
.demo .s-chart { width: 100%; height: auto; }
.demo-toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1C2419; color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.demo-try { text-align: center; margin: 0 0 14px; }
.demo-fallback { display: none; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
/* Too small to use: show the picture instead. */
/* Phones: the session demo plays zoomed-in clips that follow the action, picked with
   buttons; it's watch-only there. */
.demo-fallback { display: none !important; }
.demo-frame.cam .demo-stage { transition: transform .45s ease; pointer-events: none; }
.demo-clips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.demo-clips[hidden] { display: none; }
.demo-clips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--font);
  padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.demo-clips button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Demo: only the size button that makes sense right now (big video: shrink; small: enlarge). */
.demo .splitview.sbs .vbtn[data-demo-layout="side"], .demo .splitview.corner .vbtn[data-demo-layout="corner"] { display: none; }

/* A client's pronouns next to their name. */
.pronouns { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; vertical-align: middle; white-space: nowrap; }
h1 .pronouns { font-size: 14px; }
.slugrow { display: flex; align-items: center; gap: 6px; }
.slugrow input { flex: 1; min-width: 0; }
.send-setup { margin-top: 16px; }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.send-grid form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.send-grid .field { width: 100%; }
.label-like { font-weight: 700; font-size: 14px; }
.send-buttons { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
@media (max-width: 640px) { .send-grid { grid-template-columns: 1fr; } }

/* Marketing nav: the way in for clients who land here by mistake. */
.nav a.client-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--info-line) 23%, var(--surface)); color: var(--info); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav a.client-link:hover { background: color-mix(in srgb, var(--info-line) 37%, var(--surface)); }

/* A previous therapist's records, blended into this practice's own. */
.pill.old { background: color-mix(in srgb, var(--info) 10%, var(--surface)); color: color-mix(in srgb, var(--info) 55%, var(--muted)); }
.list li.oldrec a { color: color-mix(in srgb, var(--info) 55%, var(--muted)); }
.mchart circle.old { fill: color-mix(in srgb, var(--info) 63%, var(--surface)); }
.mchart path.old { stroke: color-mix(in srgb, var(--info) 63%, var(--surface)); stroke-dasharray: 5 4; }
.oldkey { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--info) 63%, var(--surface)); vertical-align: middle; margin-right: 2px; }
.oldrec-card { border-left: 4px solid color-mix(in srgb, var(--info) 63%, var(--surface)); }

/* Self-playing demos (static/tour.js) */
.tour-host { position: relative; }
.tour-cursor { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; opacity: 0;
  transition: opacity .3s; will-change: transform; }
.tour-cursor.on { opacity: 1; }
.tour-cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.tour-cursor i { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(70,102,60,.35); transform: scale(0); opacity: 0; }
.tour-cursor.press i { animation: tour-press .45s ease-out; }
.tour-cursor.hold svg { transform: scale(.9); transform-origin: 4px 2px; }
@keyframes tour-press { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.tour-caption { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); z-index: 41; max-width: min(92%, 560px);
  background: rgba(30,42,36,.92); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center;
  padding: 9px 16px; border-radius: 999px; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.tour-caption.on { opacity: 1; transform: translate(-50%, 0); }
.tour-replay { position: absolute; right: 12px; top: 12px; z-index: 42; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 13px var(--font); padding: 7px 12px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tour-replay:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .tour-caption { font-size: 12px; bottom: 8px; padding: 7px 12px; border-radius: 14px; } }

/* Home page tour demos (_custom_demo, _intake_demo, _measure_demo) */
.tdemo { display: grid; gap: 18px; background: var(--ground); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; min-height: 380px; text-align: left; }
.tpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ttitle { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.tlabel { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.tlabel:first-child { margin-top: 0; }
.tsmall { font-size: 13px; color: var(--muted); font-weight: 500; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 10px 16px;
  font: 700 14px var(--font); color: var(--accent-ink); background: var(--accent); cursor: pointer; }
.tbtn.sm { padding: 7px 13px; font-size: 13px; }
.tbtn.ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.trowline { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.grow { flex: 1; }
.tdemo input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: 500 14px var(--font); margin-top: 6px; }
@keyframes tflash { from { box-shadow: 0 0 0 4px rgba(70,102,60,.35); } to { box-shadow: 0 0 0 0 rgba(70,102,60,0); } }
.flash { animation: tflash 1.2s ease-out; }

/* customization */
.tcustom { grid-template-columns: 260px 1fr; }
.tswatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tswatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.tswatch.on { box-shadow: 0 0 0 2px var(--ink, #1C2419); }
.tchips { display: flex; gap: 6px; flex-wrap: wrap; }
.tchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; font: 600 13px var(--font); cursor: pointer; }
.tchip.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.tswitch { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tprev { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-family: var(--t-font), var(--font);
  transition: background .4s; border-top: 6px solid var(--t-accent); }
.tcard .tbtn { background: var(--t-accent); font-family: var(--t-font), var(--font); transition: background .4s; margin-top: 12px; }
.turl { font-size: 11px; color: var(--muted); margin-bottom: 12px; font-family: var(--font); }
.tbrand { display: flex; align-items: center; gap: 9px; }
.tlogo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--t-accent); color: #fff;
  font-weight: 700; font-size: 13px; transition: background .4s, border-radius .4s; }
.tcustom[data-logo=square] .tlogo { border-radius: 28%; }
.tcustom[data-logo=none] .tlogo { display: none; }
.tname { font-size: 15px; }
.thead { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 14px 0 6px; color: var(--t-accent); transition: color .4s; }
.tslots { display: flex; gap: 6px; margin-top: 8px; }
.tslots span { border: 1px solid var(--t-accent); color: var(--t-accent); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.thi { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.tpron { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--t-soft); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.no-pron .tpron { display: none; }
.tnext { background: var(--t-soft); border-radius: 12px; padding: 10px 12px; margin-top: 8px; display: grid; gap: 2px; transition: background .4s; }
.tnext small { font-size: 11px; color: var(--muted); }
.tnext b { font-size: 14px; }
.tnext .tbtn { margin-top: 6px; justify-self: start; }

/* intake */
.tintake { grid-template-columns: 330px 1fr; }
.tforms { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tcheck { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.tcheck small { color: var(--muted); font-weight: 500; }
.tcheck.mine { margin-top: 6px; color: var(--accent); }
.tadd { display: flex; gap: 6px; align-items: center; margin: 10px 0; }
.tadd input { margin-top: 0 !important; }
.tintake #in-send { width: 100%; margin-top: 12px; }
.trow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; margin-top: 10px; border-left: 4px solid var(--line); flex-wrap: wrap; }
.trow.urgent { border-left-color: var(--danger); }
.trow small { display: block; color: var(--muted); font-size: 12px; }
.ttags { display: flex; gap: 6px; flex-wrap: wrap; }
.ttag { font: 700 12px var(--font); border-radius: 999px; padding: 5px 10px; border: 0; }
.ttag.warn { background: color-mix(in srgb, var(--warn-line) 21%, var(--surface)); color: color-mix(in srgb, var(--warn) 84%, var(--ink)); }
.ttag.bad { background: color-mix(in srgb, var(--bad-line) 38%, var(--surface)); color: color-mix(in srgb, var(--danger) 74%, var(--ink)); cursor: pointer; }
.ttag.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: color-mix(in srgb, var(--accent) 54%, var(--ink)); }

/* measures */
.tmeasure { grid-template-columns: 1fr 250px; align-items: start; }
.tchartbox .mc-svg { width: 100%; height: auto; display: block; margin: 6px 0; }
.tphone { background: #1C2419; border-radius: 30px; padding: 10px; }
.tphone-in { background: var(--surface); border-radius: 22px; padding: 16px 14px; min-height: 330px; }
.tphone .mc-svg { width: 100%; height: auto; display: block; }
.tnote { background: var(--soft); border-radius: 12px; padding: 9px 11px; font-size: 13px; font-weight: 600; margin-top: 8px; }

@media (max-width: 860px) {
  .tcustom, .tintake, .tmeasure { grid-template-columns: 1fr; }
  .tprev { grid-template-columns: 1fr; }
  .tphone { max-width: 300px; margin: 0 auto; }
}
.mbc { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px; margin: 26px 0; }
.mbc-num { font-size: 38px; font-weight: 800; line-height: 1; color: var(--accent); white-space: nowrap; }
.mbc-num small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.mbc p { margin: 0; }
.cite { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.cite a { color: inherit; }
@media (max-width: 640px) { .mbc { grid-template-columns: 1fr; } }
.tour-ticks { margin-top: 18px; }

/* note template designer demo */
.ttemplate { grid-template-columns: 1.1fr 1fr; }
.tsecs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tsec { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); }
.tsec-main { flex: 1; min-width: 0; }
.tsec-main input { margin: 0 !important; padding: 5px 8px !important; font-weight: 700 !important; }
.tsec-main small { display: block; font-size: 12px; color: var(--muted); margin: 3px 2px 0; }
.treq { font-size: 12px; font-weight: 600; display: flex; gap: 4px; align-items: center; white-space: nowrap; cursor: pointer; }
.tup { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-weight: 700; }
.tup:disabled { color: var(--muted); border-style: dashed; cursor: default; }
.tadd2 { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 6px; margin-top: 10px; align-items: center; }
.tadd2 input { margin: 0 !important; }
.tps { border-top: 1px solid var(--line); padding: 10px 0; }
.tps:first-child { border-top: 0; padding-top: 0; }
.tps .trowline { margin-top: 0; }
.tps .tsmall { font-size: 12px; }
.tarea { height: 38px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; background: var(--surface); }
.tai { font: 700 11px var(--font); color: var(--accent); background: var(--soft); border-radius: 999px; padding: 4px 9px; }
.treqpill { font: 700 11px var(--font); color: color-mix(in srgb, var(--warn) 84%, var(--ink)); background: color-mix(in srgb, var(--warn-line) 21%, var(--surface)); border-radius: 999px; padding: 3px 8px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.level h3 { font-size: 15px; margin-bottom: 8px; }
.level ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--ink); }
@media (max-width: 860px) { .ttemplate, .levels { grid-template-columns: 1fr; } .tadd2 { grid-template-columns: 1fr; } }

/* Emergency panel in the session view */
.em-btn { background: #B3261E !important; color: #fff !important; gap: 6px; }
.em-btn:hover { background: #8C1D18 !important; }
.em-dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); max-height: 90vh; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.em-dialog::backdrop { background: rgba(20,20,20,.45); }
.em { padding: 18px 20px; display: grid; gap: 14px; }
.em-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; color: color-mix(in srgb, var(--danger) 74%, var(--ink)); }
.em-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.em section { border-top: 1px solid var(--line); padding-top: 12px; }
.em-label { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.em-warn { color: color-mix(in srgb, var(--danger) 74%, var(--ink)); }
.em-addr { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.em-big { font-size: 22px; font-weight: 800; }
.em-tel { font-weight: 800; color: color-mix(in srgb, var(--danger) 74%, var(--ink)); }
.em-steps p { margin: 0 0 8px; }
.em-save form { margin-top: 10px; }
.attest { margin: 14px 0 6px; align-items: flex-start; font-weight: 600; }

/* Send the plan to the client's portal */
.s-send { background: var(--surface); border: 1px solid var(--line); }
.sp-dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sp-dialog::backdrop { background: rgba(20,20,20,.4); }
.sp { padding: 20px 22px; display: grid; gap: 8px; }
.sp textarea { width: 100%; }
.sp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cp-file { display: block; margin-top: 6px; font-weight: 600; }

/* Emergency panel in the home page demo (same look as the app's) */
.demo-em { position: absolute; top: 70px; right: 24px; width: 460px; max-height: 660px; overflow: auto; z-index: 30;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }

.mbc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 8px; }
.mbc-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.mbc-stat .mbc-num { font-size: 34px; margin-bottom: 10px; white-space: normal; }
.mbc-stat p { margin: 0; font-size: 15px; }
.mbc2 + .cite { margin-bottom: 26px; }
@media (max-width: 760px) { .mbc2 { grid-template-columns: 1fr; } }

.em-svc { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.em-svc p { margin: 2px 0; }
.em-stale { color: color-mix(in srgb, var(--danger) 74%, var(--ink)); }
.em-fs { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.em-fs legend { font-weight: 700; font-size: 13px; padding: 0 4px; }

/* Transcription consent, asked each session */
.sb-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font);
  color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.sb-chip.on { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.sb-chip.rec-btn.live { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--bad-line) 15%, var(--surface)); font-variant-numeric: tabular-nums; }
.tc-dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.tc-dialog::backdrop { background: rgba(20,20,20,.5); }
/* The "Still there?" warning before an automatic sign-out (static/idle.js). Theme colors, so night mode follows. */
.idle-warn { border: 0; border-radius: 20px; padding: 26px 28px; width: min(420px, 94vw); text-align: center;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.idle-warn::backdrop { background: rgba(20,20,20,.5); }
.idle-warn h2 { font-size: 21px; margin: 0 0 8px; }
.idle-warn p { margin: 0 0 8px; }
.idle-warn-clock { font: 800 32px/1.1 var(--font); font-variant-numeric: tabular-nums; color: var(--accent); }
.idle-warn .btn { margin-top: 6px; }
.tc { padding: 26px 28px; display: grid; gap: 12px; text-align: center; }
.tc h2 { font-size: 21px; line-height: 1.3; }
.tc-yn { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.tc-yn .btn { min-width: 120px; font-size: 16px; }

.demo-tc { position: absolute; inset: 0; z-index: 31; background: rgba(20,20,20,.45); display: grid; place-items: center; }
.demo-tc[hidden] { display: none; }
.demo-tc .tc { background: var(--surface); border-radius: 20px; width: 520px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
/* Phones (the camera view, a narrower stage): the consent question and the emergency panel sit over the note
   column, small enough that the camera shows each whole, with the note beside it uncut. */
.demo-frame.cam .demo-tc { justify-items: end; padding-right: 22px; }
.demo-frame.cam .demo-tc .tc { width: 370px; padding: 22px; }
.demo-frame.cam .demo-em { right: 16px; width: 390px; }
/* ...and the top bar in rows that each fall wholly over the video (the name) or the note column (Emergency and
   the AI transcription chip, then Sign and lock), so the camera never cuts a button in half. */
.demo-frame.cam .sbar .grow { order: 1; flex-basis: 100%; height: 0; }
.demo-frame.cam .sbar #demo-status, .demo-frame.cam .sbar .sb-sep, .demo-frame.cam .sbar [data-demo-toast="Draft saved."] { display: none; }
.demo-frame.cam .sbar #demo-em { order: 2; margin-left: auto; }
.demo-frame.cam .sbar .sb-chip { order: 3; }
.demo-frame.cam .sbar::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
.demo-frame.cam .sbar #demo-sign { order: 4; margin-left: auto; }

/* Client portal demo */
.tportaldemo { grid-template-columns: 1fr 260px; align-items: start; }
.tplan { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; margin-top: 6px; background: var(--surface); }
.pd-confirm { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: grid; gap: 8px; }
.pd-confirm[hidden] { display: none; }
.pd-file, .pd-att { font-size: 13px; font-weight: 700; color: var(--accent); }
.pd-card { background: var(--soft); border-radius: 12px; padding: 9px 11px; margin-top: 8px; display: grid; gap: 3px; }
.pd-card small { font-size: 11px; color: var(--muted); }
.pd-card b { font-size: 13px; }
.pd-card .tbtn { justify-self: start; margin-top: 2px; }
.pd-card p { font-size: 12.5px; line-height: 1.45; margin: 2px 0; }
.pd-msg { background: var(--surface); border: 2px solid var(--accent); }
.pd-msg[hidden] { display: none; }
.pd-spark { width: 100%; height: 24px; color: var(--accent); }
/* Group practice demo */
.tgroup { grid-template-columns: 1fr 280px; align-items: start; }
.gd-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.gd-col { display: grid; gap: 6px; }
.gd-col > b { font-size: 13px; border-left: 4px solid var(--c); padding-left: 7px; }
.gd-slot { text-align: left; border: 1px dashed var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; font: 600 13px var(--font);
  color: var(--muted); cursor: pointer; }
.gd-slot span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.gd-slot.taken { border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--ink); cursor: default; }
.gd-tools { flex-wrap: wrap; margin-top: 14px; }
.gd-msg { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 8px; }
.gd-msg.bad { color: color-mix(in srgb, var(--danger) 74%, var(--ink)); }
.gd-who { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.gd-who b { display: block; }
.gd-site { margin-top: 14px; background: var(--soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; }
.gd-site small { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) { .tportaldemo, .tgroup { grid-template-columns: 1fr; } .gd-cols { grid-template-columns: 1fr; } }

/* Marketing header on phones: two compact rows, brand and Start free on top, the two
   logins below. */
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; height: auto;
    row-gap: 4px; column-gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .topbar .nav { display: contents; }
  .topbar .brand { grid-column: 1; grid-row: 1; font-size: 17px; }
  .topbar .nav .btn { grid-column: 2; grid-row: 1; justify-self: end; min-height: 36px; padding: 0 14px; font-size: 14px; }
  .topbar .nav a.login-link { grid-column: 1; grid-row: 2; font-size: 14px; justify-self: start; }
  .topbar .nav a.client-link { grid-column: 2; grid-row: 2; min-height: 30px; padding: 0 11px; font-size: 13px; justify-self: end; }
}

/* Behavioral health / Medical switch under the logo (Claude Design artboard 7) */
.brandstack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fieldswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); border-radius: 11px; padding: 3px; }
.fieldswitch a { text-align: center; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; color: color-mix(in srgb, var(--ink) 78%, var(--surface));
  text-decoration: none; white-space: nowrap; min-height: 32px; box-sizing: border-box; }
.fieldswitch a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
/* The medical site: blue where the behavioral health site is green */
body.med { --accent: #2D5B8C; --soft: #E4EDF7; --ground: #F5F7FA; --line: #D3DAE3; }
body.med .brand-mark { background: #2D5B8C; }
/* The medical site's blue, at night (static/app.css has the rest of the night tokens). */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) body.med { --accent: #93B8E8; --accent-ink: #0B1626; --soft: #1C2638; --ground: #11151B; --surface: #181E27; --line: #2B3442; }
}
@media screen {
  :root[data-theme="night"] body.med { --accent: #93B8E8; --accent-ink: #0B1626; --soft: #1C2638; --ground: #11151B; --surface: #181E27; --line: #2B3442; }
}
@media (max-width: 600px) { .fieldswitch a { font-size: 12px; padding: 7px 8px; } }
/* Medical site: a still picture of the visit coding screen */
.mdemo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 18px; max-width: 760px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.mdemo-q { display: grid; gap: 8px; }
.mdemo-q > b { font-size: 15px; }
.mdemo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mdemo-tiles span { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 15px; display: grid; gap: 2px; }
.mdemo-tiles span.on { border: 2px solid var(--accent); background: var(--soft); }
.mdemo small { font-weight: 400; font-size: 13px; color: var(--muted); display: block; }
.mdemo-line { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.mdemo-line.bad { border: 2px solid var(--warn-line); background: color-mix(in srgb, var(--warn-line) 10%, var(--surface)); }
.mdemo-line.bad small { color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
.mdemo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mdemo-chips span { border: 1px solid var(--info-line); background: color-mix(in srgb, var(--info-line) 12%, var(--surface)); color: color-mix(in srgb, var(--info) 72%, var(--ink)); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.mdemo-result { border: 2px solid var(--accent); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.mdemo-result small { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.mdemo-result b { font-size: 19px; }
.mdemo-result span { font-size: 13px; color: var(--muted); }
.mdemo-how span { border-color: var(--line); background: var(--surface); color: var(--ink); }
.mdemo-how span.on { border: 2px solid var(--accent); background: var(--soft); color: var(--ink); }
@media (max-width: 600px) { .mdemo-tiles { grid-template-columns: 1fr; } .mdemo-tiles.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .topbar .brandstack { grid-column: 1; grid-row: 1; gap: 6px; }
  .topbar .nav .btn { align-self: start; margin-top: 4px; }
}

/* Grid children may shrink below their content width (stops a 6px sideways scroll on phones) */
.tdemo > * { min-width: 0; }
.tsec-main input { min-width: 0; width: 100%; box-sizing: border-box; }

/* Pricing calculator (Claude Design artboard 12) */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 28px; }
.calc-main { display: grid; gap: 18px; min-width: 0; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.calc-card legend { font-weight: 800; font-size: 17px; padding: 0 6px; }
.calc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-seg label { position: relative; cursor: pointer; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-seg span { display: inline-block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; font-weight: 600; }
.calc-seg input:checked + span { border: 2px solid var(--accent); background: var(--soft); padding: 9px 13px; }
.calc-seg input:focus-visible + span, .calc-tile input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.calc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.calc-row input { width: 90px; font: 600 16px var(--font); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.calc-slider { display: grid; gap: 8px; font-size: 15px; }
.calc-slider input { width: 100%; accent-color: var(--accent); }
.calc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.calc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.calc-check small, .calc-tile small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.calc-tile .tile-line { display: block; margin-top: 6px; }
.calc-tile .tile-price { color: var(--ink); font-weight: 600; }
/* A long tile folds its details (pricing: Insurance billing). Above the tile's invisible checkbox, so opening it
   doesn't tick the add-on. */
.calc-tile .tile-more { position: relative; z-index: 1; margin-top: 6px; cursor: auto; }
.calc-tile .tile-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer;
  color: var(--accent); font-weight: 700; list-style: none; }
.calc-tile .tile-more > summary::-webkit-details-marker { display: none; }
.calc-tile .tile-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.calc-tile .tile-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.calc-tile .tile-more > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.calc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.calc-tile { position: relative; cursor: pointer; }
.calc-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-tile > span, .calc-tile > label > span { display: block; height: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.calc-tile.on > span, .calc-tile.on > label > span { border: 2px solid var(--accent); background: var(--soft); padding: 11px 13px; }
.calc-tile.on b::before { content: "✓ "; color: var(--accent); }
.calc-total { position: sticky; top: calc(20px + var(--ea-stick, 0px)); background: var(--surface); border: 2px solid var(--accent); border-radius: 20px; padding: 22px; display: grid; gap: 10px; }
.calc-big { font-size: 44px; line-height: 1; }
.calc-big small { font-size: 18px; font-weight: 500; color: var(--muted); }
.calc-lines { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 10px; }
.calc-after { background: var(--soft); border-radius: 10px; padding: 8px 10px; margin: 0; font-weight: 600; }
.calc-once { margin: 0; font-weight: 600; }
.calc-total .btn { justify-content: center; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-total { position: static; order: -1; } }

.calc-note { gap: 6px; }

.calc-counts { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.calc-counts:not(:has(> :not([hidden]))) { display: none; }
.calc-free { margin: 0; background: var(--soft); border-radius: 10px; padding: 8px 12px; font-weight: 600; color: var(--accent); justify-self: start; }
.calc-cred { display: grid; gap: 12px; }
.calc-deal { margin: 0; background: var(--soft); border-radius: 10px; padding: 10px 12px; }

.calc-counts[hidden] { display: none; }
/* Pay-as-you-go items: a compact card each, the detail folded under "More about ..." */
.calc-payg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.calc-payg-h { margin: 0; }
.calc-payg-opts span { font-weight: 500; font-size: 14.5px; }
.calc-more summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.calc-more p { margin: 6px 0 0; color: var(--muted); }
.calc-payg-sum { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.calc-payg-sum p { margin: 0; }
.tip { position: relative; display: inline-flex; padding: 0; background: var(--surface); font-family: inherit; line-height: 1; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
       border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; cursor: help; margin-left: 4px; vertical-align: middle; }
.tip-box { font-style: normal; display: none; position: absolute; z-index: 5; bottom: calc(100% + 8px); right: -10px; width: min(300px, 80vw); background: #1D2420; color: #fff;
           font-size: 13.5px; font-weight: 400; line-height: 1.45; padding: 10px 12px; border-radius: 10px; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.tip:hover .tip-box, .tip:focus .tip-box, .tip.open .tip-box { display: block; }

/* ---- Client app (the portal on a phone): tab bar, Today, worksheets, journal, sharing, plan ---- */
.cp-tabs { display: none; }
@media (max-width: 720px) {
  .cp-nav > a { display: none; }
  .cp-has-tabs { padding-bottom: 96px; }
  .cp-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .cp-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px;
    padding: 4px 2px; text-align: center; line-height: 1.15;
    color: var(--muted); text-decoration: none; font: 600 12px var(--font); }
  .cp-tabs a.on { color: var(--accent); font-weight: 800; }
  .cp-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cp-tabs svg circle { fill: currentColor; }
  .cp-tabs .count { display: inline-grid; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; place-items: center; }
}
.app-stack { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.app-hero { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.app-hero .kicker { font-size: 14px; font-weight: 600; opacity: .92; }
.app-hero .big { font-size: 22px; font-weight: 800; line-height: 1.25; }
.app-hero .btn { align-self: flex-start; background: var(--surface); color: var(--accent); border-color: var(--surface); }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-card h2 { margin: 0; font-size: 17px; }
.app-card h2.sm { font-size: 15px; color: var(--muted); }
.app-row { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; min-height: 52px; }
.app-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.app-row .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-row .grow { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-row small { color: var(--muted); font-size: 13px; }
.app-bar { height: 6px; border-radius: 999px; background: var(--line); display: block; overflow: hidden; }
.app-bar > span { display: block; height: 6px; border-radius: 999px; background: var(--accent); }
.app-moods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.app-moods button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
.app-moods button:hover { border-color: var(--accent); }
.app-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.app-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.app-link .grow { flex: 1; }
.app-link svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.app-steps span { height: 6px; border-radius: 999px; background: var(--line); }
.app-steps span.on { background: var(--accent); }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.app-chips label { position: relative; }
.app-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.app-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.app-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app-chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.app-pct { display: flex; align-items: center; gap: 12px; }
.app-pct input[type=range] { flex: 1; accent-color: var(--accent); height: 32px; min-height: 0; padding: 0; border: 0; }
.app-pct output { font-weight: 800; color: var(--accent); min-width: 48px; text-align: right; }
.app-lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.app-lock svg, .app-private svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-private { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-head h1 { margin: 0; }
.app-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-tile { background: var(--ground); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.app-tile small { color: var(--muted); font-size: 13px; }
.app-tile b { font-size: 22px; }
.app-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.app-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.app-legend i.bar { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.app-switches { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.app-switches li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.app-switches li:last-child { border-bottom: 0; }
.app-switches .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.app-switches small { color: var(--muted); font-size: 13px; }
.app-switches input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.app-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.app-seg a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.app-seg a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.app-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn-line) 15%, var(--surface)); color: color-mix(in srgb, var(--warn) 56%, var(--ink)); font-size: 14px; line-height: 1.45; margin: 0; }
.app-988 { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px; border-radius: 18px; background: #8E2F23; color: #fff; text-decoration: none; }
.app-988 b { font-size: 18px; display: block; }
.app-988 small { font-size: 13px; opacity: .92; }
.app-988 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-plan p { margin: 0; white-space: pre-line; }
.app-people a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.app-people a:last-child { border-bottom: 0; }
.app-people .call { color: var(--accent); font-weight: 700; }
.app-dl { margin: 0; display: grid; gap: 10px; }
.app-dl dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.app-dl dd { margin: 0; white-space: pre-line; }
.cp-week text { font-family: var(--font); }
.app-primary { width: 100%; min-height: 52px; font-size: 17px; border-radius: 16px; }

/* The client app by kind of care (ph/client_care.py): home program, practice, nutrition,
   medications, evaluation, a child's progress. */
.care-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.care-week > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.care-week .dot { width: 36px; height: 36px; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--surface); }
.care-week .dot.on { background: var(--accent); border: 0; color: var(--accent-ink); }
.care-week .today { color: var(--ink); font-weight: 800; }
.care-week .today .dot:not(.on) { border: 2px solid var(--accent); color: var(--ink); }
.care-list { display: flex; flex-direction: column; }
.care-list > * { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.care-list > *:last-child { border-bottom: 0; }
.care-list .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.care-list small { color: var(--muted); font-size: 13px; }
.care-list .how { color: var(--ink); font-size: 14px; white-space: pre-line; }
.care-list input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--accent); flex: none; margin: 0; }
.care-tick { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-height: 44px; cursor: pointer; }
.care-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.care-pick label { position: relative; }
.care-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.care-pick span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); font-weight: 700; font-size: 16px; }
.care-pick input:checked + span { background: var(--soft); border: 2px solid var(--accent); }
.care-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.care-band { background: var(--soft); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.care-band .lbl { font-size: 13px; font-weight: 700; color: var(--accent); }
.care-band b { font-size: 16px; }
.care-band small { font-size: 13px; color: var(--muted); }
.care-count { display: flex; align-items: center; gap: 8px; }
.care-count button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); font: 700 20px var(--font); color: var(--ink); cursor: pointer; }
.care-count input { width: 64px; min-height: 44px; text-align: center; font-size: 18px; font-weight: 700; padding: 0 4px; }
.care-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.care-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.care-steps .n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); font-weight: 700; background: var(--surface); }
.care-steps .done .n { background: var(--accent); border: 0; color: var(--accent-ink); }
.care-steps .next { background: var(--soft); border-radius: 14px; padding: 12px; margin: 0 -12px; }
.care-steps .next .n { border: 3px solid var(--accent); color: var(--accent); font-weight: 800; }
.care-steps .grow { display: flex; flex-direction: column; gap: 2px; }
.care-steps small { color: var(--muted); font-size: 13px; }
.care-steps .tag { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.care-goal svg.aba-graph { display: block; }
.care-goal .aba-graph .ax { stroke: var(--line); }
.care-goal .aba-graph .goal { stroke: var(--muted); stroke-dasharray: 4 4; }
.care-goal .aba-graph .phase { stroke: var(--line); stroke-dasharray: 3 3; }
.care-goal .aba-graph .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.care-goal .aba-graph circle { fill: var(--accent); }
.care-goal .aba-graph .lb { font-size: 11px; fill: var(--muted); font-family: var(--font); }

/* Marketing nav at every width: the section links sit in a row only on wide screens; narrower,
   they're under a "Menu" (details/summary), and below 900px the two logins move in there too. */
.nav a.link, .nav a.client-link, .nav .btn { white-space: nowrap; }
.navmenu { position: relative; display: block; }
.navmenu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink); }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary::after { content: "\25BE"; font-size: 12px; color: var(--muted); }
.navmenu[open] > summary { background: var(--soft); border-color: var(--accent); }
.navmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; max-height: calc(100vh - 90px); overflow-y: auto; display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 20; }
.navmenu-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.navmenu-panel a:hover, .navmenu-panel a:focus-visible { background: var(--soft); }
.navmenu-logins { display: none; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
@media (max-width: 1399px) {
  .nav { gap: 14px; }
  .nav a.nav-wide { display: none; }
}
@media (max-width: 899px) {
  .nav a.login-link { display: none; }
  .navmenu-logins { display: grid; gap: 2px; }
}

/* Plans made together (ph/plans.py): the editor (both sides), the client's wallet card, screen sharing. */
.pe { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.pe input:not([type=hidden]), .pe select, .pe textarea, .pe-titles input:not([type=radio]):not([type=hidden]) {
  font-family: inherit; font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); box-sizing: border-box; }
.pe-default { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.pe-sec { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pe-head { display: flex; align-items: center; gap: 10px; }
.pe-num { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.pe .pe-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; }
.pe-sec textarea { width: 100%; box-sizing: border-box; font-size: 17px; line-height: 1.5; min-height: 96px; }
.pe-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pe-people { display: flex; flex-direction: column; gap: 8px; }
.pe-person { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.pe-person + .pe-person { border-top: 1px dashed var(--line); padding-top: 8px; }
.pe-person.pe-bad { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 6px; }
.pe-bad-msg { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.pe-person label, .pe-addrow label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.pe-person input, .pe-addrow input, .pe-addrow select { width: 100%; box-sizing: border-box; }
.pe-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pe-by { margin: 0; font-size: 13px; color: var(--muted); }
.pe-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.pe-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 600 14px var(--font); cursor: pointer; }
.pe-btn:hover:not([disabled]) { border-color: var(--accent); }
.pe-btn[disabled] { color: var(--muted); background: var(--soft); border-style: dashed; cursor: default; }
.pe-rm { color: var(--bad); }
.pe-add legend { font-weight: 700; padding: 0 4px; }
.pe-addrow { display: grid; grid-template-columns: 1fr 160px auto; gap: 10px; align-items: end; }
.pe-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; background: var(--ground); border-top: 1px solid var(--line); }
.pe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pe-side { display: flex; flex-direction: column; gap: 14px; }
.pe-side .card { margin: 0; }
.pe-versions { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.pe-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 900px; }
.pe-kinds .card { margin: 0; }
.pe-history summary { cursor: pointer; min-height: 28px; }
.pe-history ul { margin: 10px 0 0; display: grid; gap: 6px; }
.pe-wallet { display: flex; gap: 14px; align-items: center; }
.pe-pass { width: 96px; height: 120px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); padding: 10px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.pe-pass span { font-size: 10px; font-weight: 700; opacity: .85; }
.pe-pass b { font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.pe-titles { display: flex; flex-direction: column; gap: 8px; }
.pe-titles .btn { align-self: flex-start; }
.pe-focus { max-width: 820px; margin: 0 auto; padding: 20px 16px 0; }
.pe-focus .pe { max-width: none; }
.pe-focus .pe-sec textarea { font-size: 19px; }
.pe-focus-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pe-988 { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #8E2F23; color: #fff; }
@media (max-width: 900px) { .pe-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .pe-person { grid-template-columns: 1fr 1fr; }
  .pe-person > div:first-child { grid-column: 1 / -1; }
  .pe-addrow { grid-template-columns: 1fr; }
  .pe-sec { padding: 12px; }
  .pe .pe-title { font-size: 17px; }
}

/* Homes: the four promises in the hero, efficiency, and "Easy to switch" (2026-11-20) */
.hero-promises h1 { font-size: clamp(34px, 4.8vw, 56px); text-wrap: balance; }
.hero-promises h1 em { display: block; }
.promise-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hero-promises .hero-grid { grid-template-columns: 1fr; }
.pp { padding: 0; }
.pp-link, .pp-link:hover, .pp-link:focus, .pp-link * { text-decoration: none !important; }
.pp-link { display: block; height: 100%; box-sizing: border-box; padding: 18px; color: inherit; text-decoration: none; border-radius: 16px; transition: border-color .15s, transform .15s; }
.pp:has(.pp-link:hover), .pp:has(.pp-link:focus-visible) { border-color: var(--accent); }
.pp-link:hover { transform: translateY(-1px); }
.pp-more { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pp-link:hover .pp-more, .pp-link:focus-visible .pp-more { color: var(--accent); opacity: 1; }
@media (max-width: 1000px) { .promise-points { grid-template-columns: 1fr 1fr; } }
.pp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.pp-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.pp-ico svg { width: 22px; height: 22px; }
.pp b { display: block; font-size: 17px; margin-bottom: 4px; }
.pp p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 600px) {
  .promise-points { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 20px; }
  .pp { scroll-snap-align: start; }
  .pp-link { padding: 16px; }
}
.eff-grid { align-items: start; }
.eff-grid h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 14px; text-wrap: balance; }
.eff-lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.eff-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.eff-list li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; }
.eff-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.eff-list b { color: var(--ink); font-size: 16px; }
.switch-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.switch-grid h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 8px 0 8px; }
.switch-grid p { color: var(--muted); max-width: 62ch; }
.switch-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.switch-ico svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .switch-grid { grid-template-columns: 1fr; gap: 14px; } .switch-grid .btn { justify-self: start; } }

.hero-promises .lead-2 { margin-top: -6px; font-weight: 600; }

/* Pricing: an add-on that isn't open yet. */
.calc-tile.is-soon { cursor: default; }
.calc-tile.is-soon .soon-label { display: block; position: relative; }
.calc-tile.is-soon input { display: none; }
.soon-join { margin-top: 10px; }
.soon-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--accent);
  font-style: normal; font-size: 12px; font-weight: 700; vertical-align: middle; }

/* ===== UX boards B (2026-11-21): Credentialing stepper, Dashboard setup bar, Calendar phone toolbar ===== */
/* Credentialing: one step open, finished steps folded to a line each, the rest as one muted line. */
.cstep-head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; }
.cstep-head h1 { font-size: 28px; font-weight: 800; margin: 0; }
.wiz-top .eyebrow { margin: 0; }
.cstep-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.cstep-done { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.cstep-done + .cstep-done { border-top: 1px solid var(--line); }
.cstep-what { min-width: 0; overflow-wrap: anywhere; }
.cstep-tick { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font: 800 13px var(--font); }
.cstep-done.todo .cstep-tick { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.wiz-card.cstep-open { border: 2px solid var(--accent); }
.cstep-title { display: flex; gap: 12px; align-items: center; }
.cstep-title h2 { margin: 0; font-size: 22px; }
.cstep-num { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font: 800 14px var(--font); }
.cstep-title .cstep-num { color: var(--accent); }
.cstep-rest { display: flex; gap: 10px; align-items: center; margin: 0; }
.cstep-rest a { color: var(--muted); }
.cred-later { border-top: 1px solid var(--line); padding-top: 14px; }
.cred-later > summary { cursor: pointer; }
.cred-later[open] > summary { margin-bottom: 18px; }
.cred-later > section + section { margin-top: 22px; }
/* Today: once setup has started it is one thin bar (the whole bar is the link). */
.setup-bar { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.setup-bar:hover { border-color: var(--accent); }
.setup-bar-text { font-size: 15px; }
.setup-bar-next { color: var(--accent); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.setup-bar .setup-meter { height: 4px; margin: 0; }
.setup-bar-chips { margin-bottom: 20px; }
/* Calendar: the phone toolbar and the small links under the schedule (hidden on desktop). */
.calbar, .calfoot { display: none; }
.calbar-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calbar-date .calbar-title { font-family: var(--head-font, var(--font)); line-height: 1.15; letter-spacing: -.02em;
  font-size: 24px; font-weight: 800; text-align: center; min-width: 0; }
.calbar-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; font: 700 22px/1 var(--font); text-decoration: none; color: var(--accent); }
.calbar-today { justify-self: center; font-weight: 700; }
.calbar-row { display: flex; gap: 10px; align-items: center; }
.calseg { flex: 1; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); min-width: 0; }
.calseg a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 999px; font: 700 14px var(--font); color: var(--muted); text-decoration: none; }
.calseg a.on { background: var(--accent); color: var(--accent-ink); }
.calbar-row .btn { flex: none; }
.calfoot { flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 4px 0 22px; }
.calfoot-tz > summary { cursor: pointer; list-style: none; }
.calfoot-tz > summary::-webkit-details-marker { display: none; }
.calfoot-link, .calfoot a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.calfoot-tz[open] { flex-basis: 100%; }
@media (max-width: 720px) {
  .dash-pub { background: none; border: 0; min-height: 0; padding: 0; font-weight: 600; text-decoration: underline; }
  .setup-bar-chips, .setup-card .setup-chips { display: none; }
  .setup-bar { margin-bottom: 18px; }
  .main > header.calhead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
  .main > header.calhead > nav, .main > header.calhead > div > :not(h1) { display: none; }
  .calbar { display: grid; gap: 10px; margin-bottom: 18px; }
  .calfoot { display: flex; }
  .cal-settings-card { display: none; }   /* the link under the schedule replaces it on a phone */
}
/* ===== end UX boards B ===== */

/* "The rest of the practice, handled": the two services we do for you, highlighted above the rest. */
.features-hi { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.feature-hi { border: 2px solid var(--accent); background: var(--soft); }
.feature-hi h3 { font-size: 21px; }
.feature-hi .hi-tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700; color: var(--accent-ink) !important; }
@media (max-width: 720px) { .features-hi { grid-template-columns: 1fr; } }

/* ===== Marketing: "Easy to switch" expanded and the pull-quote question (Claude Design artboards 11-12, 2026-11-21) ===== */
/* Easy to switch (templates/_migration.html): what comes over, how it works, how long, and the system picker. */
.switch-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; margin-top: 36px; }
.switch-info { display: grid; gap: 28px; min-width: 0; }
.switch-more h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.switch-checks, .switch-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.switch-checks li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; }
.switch-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.switch-checks b { color: var(--ink); }
.switch-steps { gap: 12px; }
.switch-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 15px; }
.switch-steps b { display: block; color: var(--ink); font-size: 16px; }
.switch-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 14px var(--font); }
.switch-time { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.switch-time svg { width: 22px; height: 22px; color: var(--accent); }
.switch-time p { font-size: 14px; margin-top: 2px; }
.switch-demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
  display: grid; gap: 14px; min-width: 0; }
.switch-demo h3 { margin: 0; font-size: 17px; }
.switch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switch-pick select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 600 16px var(--font); color: var(--ink); }
.switch-systems { display: grid; gap: 8px; }
.switch-sys { border: 1px solid var(--line); border-radius: 12px; background: var(--ground); }
.switch-sys > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; }
.switch-sys[open] > summary { border-bottom: 1px solid var(--line); }
.is-picker .switch-sys > summary { display: none; }
.is-picker .switch-sys[open] > summary { border: 0; }
.switch-how { padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.switch-how p { margin: 0; color: var(--ink); }
.switch-demo .switch-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.switch-how .switch-k + p { margin-bottom: 6px; }
.switch-how .switch-gap { background: color-mix(in srgb, var(--warn-line) 15%, var(--surface)); color: color-mix(in srgb, var(--warn) 69%, var(--ink)); border-radius: 10px; padding: 8px 12px; }
.switch-leaving { margin-top: 10px; background: var(--soft, color-mix(in srgb, var(--ink) 7%, var(--surface))); border-left: 4px solid var(--accent, var(--pine)); border-radius: 10px; padding: 12px 14px; }
.switch-leaving p { margin: 0 0 6px; }
.switch-leaving .switch-leaving-t { font-weight: 700; color: var(--ink, inherit); }
.switch-leaving a { font-weight: 600; }
.switch-across { display: grid; gap: 8px; }
.switch-across .small { color: var(--muted); margin: 0; }
.switch-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.switch-chips li { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.switch-invite { display: flex; gap: 10px; align-items: center; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--accent); }
.switch-invite svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 900px) { .switch-more { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; } .switch-demo { order: -1; } }
@media (max-width: 480px) { .switch-demo { padding: 16px; } }

/* Pull-quote question: right of "What sets us apart" (#apart on the homes) and before "What we promise" (privacy.html). */
.apart-side { display: grid; gap: 22px; min-width: 0; }
.pull-q { margin: 0; }
.pull-q-mark { display: block; height: 34px; font: 800 72px/.75 var(--font); color: #B9D3AE; }
.pull-q .pull-q-text { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: #fff; text-wrap: balance; max-width: none; }
.pull-q .pull-q-ans { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(185, 211, 174, .35); color: #B9D3AE; font-size: 16px; font-weight: 600; }
.pull-q-card { background: var(--deep); border-radius: 18px; padding: 26px 28px; margin: 32px 0 0; }
.pull-q-card .pull-q-text { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 480px) { .pull-q-card { padding: 22px 20px; } }
/* ===== end marketing: easy to switch and pull quote ===== */

/* ===== Fidelity pass (2026-11-21): make the portal match the approved Claude Design boards 1-10 =====
   Shared patterns from the boards: Manrope (loaded by portal.html), a grey track behind tabs,
   a page head with the action at the right, cards that group rows, a flat Save bar along the bottom. */
/* Fields the base styles missed (date pickers, web addresses, search boxes) */
:where(input[type=date], input[type=datetime-local], input[type=month], input[type=url], input[type=search]) {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: 500 15px/1.4 var(--font); }
:where(input[type=date]) { max-width: 240px; }
/* File pickers look like the boards' small ghost button ("Change photo") */
.main input[type=file] { font: 500 14px/1.4 var(--font); color: var(--muted); max-width: 100%; }
.main input[type=file]::file-selector-button { min-height: 36px; padding: 0 14px; margin-right: 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 700 14px var(--font); cursor: pointer; }
.main input[type=file]::file-selector-button:hover { background: var(--soft); }
/* Page head: title on the left, the action on the right (it wraps under on a phone) */
.main > header { align-items: center; }
.main > header > div:first-child { flex: 1 1 360px; min-width: 0; }
.main > header h1 { font-size: 28px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.ux-lede { font-size: 15px; }
.cred-eyebrow { margin: 0 0 8px; }
/* Tabs and segmented controls: white pill on a grey track, full width like the boards */
.tabs, .ux-tabs { background: color-mix(in srgb, var(--ink) 11%, var(--surface)); }
.ux-tabs, .ub-tabs { display: flex; width: 100%; }
.tabs a { color: color-mix(in srgb, var(--ink) 80%, var(--surface)); }
.calseg { background: color-mix(in srgb, var(--ink) 11%, var(--surface)); border: 0; padding: 4px; }
.calseg a { color: color-mix(in srgb, var(--ink) 80%, var(--surface)); }
.calseg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22,33,31,.12); }
/* Plain pills carry a hairline, as on the boards ("Hidden", "Booking off") */
.pill.plain { border: 1px solid var(--line); padding: 3px 9px; }

/* Board 1, My profile: one wide card, small round photo with a ghost button, Save row under a rule */
.ux-narrow { max-width: none; }
.ux-photo { align-items: center; gap: 18px; }
.ux-photo .avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.ux-photo label { margin-bottom: 8px; }
form.card > .ux-actions:last-child, section.card > .ux-actions:last-child { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }

/* Board 2, Calendar settings: number settings sit side by side with the label above */
.ux-sec .numrows { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 16px; margin: 12px 0 10px; }
.ux-sec .numrow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 6px; margin: 0; }
.ux-sec .numrow > span:first-child { font-weight: 700; font-size: 14px; }
.ux-sec .numrow > span:last-child { display: flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--font); color: var(--muted); }
.ux-sec .numrow input { width: 96px; flex: none; text-align: left; min-height: 44px; color: var(--ink); }
/* One Save bar that runs along the bottom of the page (schedule, billing settings, team) */
.ux-savebar, .ub-savebar { border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); backdrop-filter: none;
  margin: 24px 0 0; padding: 14px 22px; box-shadow: 0 -6px 20px rgba(22,33,31,.06); }
.ub-savebar.dirty { border-top-color: var(--accent); }
@media (max-width: 900px) {
  .ux-savebar, .ub-savebar { margin-left: -16px; margin-right: -16px; padding: 12px 16px; border-radius: 0; }
}

/* Board 3, Credentialing: the stepper is one readable column */
.cred:has(> .wiz-card.cstep-open) { max-width: 720px; }
.wiz { max-width: 720px; }

/* Board 4, Today on a phone: the public-page link beside the greeting; sessions as time | who | Open */
.dash-pub-my { display: none; }
.dash-sess .req { align-items: center; }
@media (max-width: 720px) {
  .main > header.dash-head { flex-wrap: nowrap; align-items: flex-end; }
  .main > header.dash-head > div:first-child { flex: 1 1 auto; }
  .main > header.dash-head h1 { font-size: 26px; }
  .dash-pub { white-space: nowrap; margin-bottom: 4px; font-size: 14px; }
  .dash-pub-view { display: none; }
  .dash-pub-my { display: inline; }
  .dash-sess .req { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .dash-sess .req .when b { font-size: 15px; }
  .dash-sess .req .acts { justify-content: flex-end; }
}

/* Board 6, My website: a page preview with an address bar, then the sections as rows of one card */
.ux-mock { padding: 0; gap: 0; overflow: hidden; background: var(--surface); }
.ux-mock .ux-host { margin: 0; padding: 9px 16px; background: var(--ground); border-bottom: 1px solid var(--line); font-size: 13px; }
.ux-mock-who { padding: 22px; }
.ux-mock-who .avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.ux-mock-book { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--ground); }
.ux-preview-note { margin-top: 14px; }
.ux-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; min-width: 0; }
.ux-group > .card { border: 0; border-radius: 0; margin: 0; padding: 14px 22px; background: transparent; min-height: 62px; }
.ux-group > .card + .card { border-top: 1px solid color-mix(in srgb, var(--ink) 7%, var(--surface)); margin-top: 0; }
.ux-group > details.card > summary { min-height: 34px; }
.ux-group .ux-sec > summary > span:first-child, .ux-group .ux-row > span { display: block; }
.ux-group .ux-sec b { font-size: 16px; }
.ux-group .ux-sec b + .muted::before { content: "· "; }
.ux-group .ux-row { align-items: center; }
.ux-group > .ux-adv-h { margin: 0; padding: 18px 22px 14px; font-size: 16px; letter-spacing: -.01em; text-transform: none; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.ux-group > .ux-adv-h + .card { border-top: 0; }
.ux-adv .ux-sec b { font-weight: 500; }
.ux-adv .ux-act { border: 0; background: none; padding: 0; min-height: 36px; color: var(--accent); font-weight: 500; text-decoration: underline; }

/* Board 8, Billing: client names in claim rows read as names, not links, until you point at them */
.ub-claim .ub-grow > a[href^="/app/clients/"] { text-decoration: none; }
.ub-claim .ub-grow > a[href^="/app/clients/"]:hover { text-decoration: underline; }
/* "Request us to call the insurance about this denial": a roomy two-line button that wraps instead of squeezing */
.btn.dc-btn { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 48px; height: auto; padding: 8px 18px; border-radius: 16px; text-align: left; white-space: normal; line-height: 1.25; max-width: 100%; }
.dc-btn-main { font: 700 14px/1.25 var(--font); }
.dc-btn-sub { font: 500 12.5px/1.3 var(--font); opacity: .88; }
.dc-cell { min-width: 240px; }
.dc-next { margin-top: 10px; }
.ub-acts .dc-btn { flex: 0 1 auto; }

/* Board 9, Team: plain column names and a plain "Change" link */
table.data.team-table th { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.member-edit > summary { list-style: none; text-decoration: underline; font-weight: 500; }
.member-edit > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
  /* Denied claims on a phone: each claim is a block (no sideways scrolling); the call button gets the full width */
  .dc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dc-table, .dc-table tbody { display: block; }
  .dc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  .dc-table tr:first-child { border-top: 0; padding-top: 4px; }
  .dc-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .dc-table td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
  .dc-table .dc-cell { grid-column: 1 / -1; min-width: 0; margin-top: 4px; }
  .btn.dc-btn { width: 100%; }
  /* My website preview on a phone: photo above the name so the text keeps its width */
  .ux-mock-who { flex-direction: column; align-items: flex-start; padding: 18px; }
  .ux-mock-who .avatar.lg { width: 56px; height: 56px; font-size: 22px; }
  .ux-group > .card { padding: 14px 16px; }
  /* Claims tabs stay one row on a phone and scroll if they must */
  .ub-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .ub-tabs::-webkit-scrollbar { display: none; }
  .ub-tabs a { flex: none; padding: 0 10px; white-space: nowrap; }
}
/* Today, around a session (ph/today.py): "Session starting now" on top, with one big Join; "Notes to finish" */
.now-card { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 18px;
  border-color: color-mix(in srgb, var(--accent) 29%, var(--surface)); border-left: 4px solid var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 60%); }
.now-main { flex: 1 1 320px; min-width: 0; }
.now-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; }
.now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(70,102,60,.16); flex: none; }
.now-who { font-size: 22px; margin: 8px 0 4px; }
.now-who a { color: var(--ink); text-decoration: none; }
.now-who a:hover { text-decoration: underline; }
.now-when { margin: 0; color: var(--muted); font-size: 15px; }
.now-when b { color: var(--ink); }
.now-status { margin: 10px 0 0; }
.now-in { background: var(--accent); color: var(--accent-ink); }
.now-where { margin: 6px 0 0; overflow-wrap: anywhere; }
.now-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.now-act form { display: contents; }
.btn.now-btn { min-height: 52px; min-width: 168px; padding: 0 32px; font-size: 17px; }
.finish-card .sched-head .pill { margin-left: auto; }
/* Pre-written quick notes that can't be edited: a small lock beside the label, its meaning in the tooltip */
.jot-lock { display: inline-flex; vertical-align: -1px; margin-left: 4px; color: var(--muted); cursor: help; }
.finish-list .req .when span { color: var(--muted); }
@media (max-width: 720px) {
  .now-card { padding: 18px 16px; gap: 14px; }
  .now-who { font-size: 20px; }
  .now-act { align-items: stretch; text-align: center; width: 100%; }
  .btn.now-btn { width: 100%; }
  .finish-list .req { grid-template-columns: 74px minmax(0, 1fr); }
  .finish-list .req .acts { grid-column: 1 / -1; justify-content: stretch; }
  .finish-list .req .acts .btn, .finish-list .req .acts form, .finish-list .req .acts button { width: 100%; }
}
/* ===== end fidelity pass ===== */

/* "Prefer to hire someone to do it all?" under credentialing (home and pricing) */
.cred-tip { margin-top: 14px; background: var(--soft, color-mix(in srgb, var(--ink) 7%, var(--surface))); border-radius: 12px; padding: 12px 16px; }
.cred-tip summary { cursor: pointer; font-weight: 700; color: var(--accent, var(--pine)); }
.cred-tip p { margin: 8px 0; }
.cred-tip ul { margin: 6px 0; padding-left: 20px; }
.cred-tip li { margin: 3px 0; }
.switch-leaving .switch-stay { background: color-mix(in srgb, var(--warn-line) 21%, var(--surface)); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.calc-steps { margin: 4px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.calc-sub { font-size: 15px; margin: 14px 0 4px; }
.calc-leaving { background: color-mix(in srgb, var(--warn-line) 21%, var(--surface)); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; }

/* ---------- Night mode switch (templates/_theme_pick.html, ph/daynight.py) ---------- */
.theme-pick fieldset { border: 0; margin: 0; padding: 6px 12px 8px; min-width: 0; }
.theme-pick legend { font: 700 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; }
.theme-opts { display: flex; gap: 3px; background: var(--ground); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.theme-opt { flex: 1 1 0; position: relative; margin: 0; font-weight: 600; font-size: 13px; min-width: 0; }
.theme-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.theme-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 4px 6px;
  border-radius: 8px; color: var(--muted); line-height: 1.2; }
.theme-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.theme-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.theme-pick.theme-js .theme-save { display: none; }
.theme-pick .theme-save { margin: 0 12px 8px; width: auto; }
.theme-note { margin: 0 12px 6px; }
/* Marketing site: floating switch, bottom-left (templates/_theme_float.html). */
.theme-float { position: fixed; left: 16px; bottom: 16px; z-index: 60; }
.theme-float > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.theme-float > summary::-webkit-details-marker { display: none; }
.theme-float > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.theme-float-panel { position: absolute; left: 0; bottom: 54px; width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.22); padding: 4px 0; }
@media print { .theme-float { display: none; } }
.gear-menu .theme-pick, .adm-account .theme-pick { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.app-card .theme-pick fieldset { padding: 0; }
/* Client portal on a computer: Screen colors in the top bar (templates/portal_base.html). Phones have it under More. */
.cp-theme { position: relative; }
.cp-theme > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  min-height: 40px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.cp-theme > summary::-webkit-details-marker { display: none; }
.cp-theme > summary:hover, .cp-theme[open] > summary { background: var(--soft); }
.cp-theme > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.cp-theme-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.22); padding: 4px 0; }
@media (max-width: 720px) { .cp-theme { display: none; } }
@media print { .cp-theme { display: none; } }

/* ===== UX pass 2026-11 #2, Today (board TodayAfter): Next up, Waiting on you, one-line requests ===== */
.next-card { border-left-color: var(--accent); }
.next-card .now-act .small { color: var(--accent); font-weight: 600; }
.wait-row { margin: 0 0 18px; }
.wait-row .eyebrow { margin: 0 0 8px; }
.wait-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wait-tile { display: flex; flex-direction: column; gap: 2px; min-height: 72px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.wait-tile:hover, .wait-tile:focus-visible { border-color: var(--accent); }
.wait-tile b { font: 800 24px/1.1 var(--font); color: var(--accent); }
.wait-tile span { font-weight: 600; font-size: 15px; }
.wait-tile.wait-claims b { color: var(--bad); }
.wait-none { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--ink); font-weight: 600; }
.req-more { margin-top: 4px; }
.req-more > summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.req.req-line { grid-template-columns: 110px minmax(0, 1fr); gap: 6px 16px; }
.req-line .acts { grid-column: 2; justify-content: flex-start; align-items: center; }
.req-cant { background: none; border: 0; padding: 0 4px; min-height: 36px; font: 500 14px var(--font); color: var(--muted); text-decoration: underline; cursor: pointer; }
.req-cant:hover { color: var(--bad); }
@media (max-width: 720px) {
  .wait-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req.req-line { grid-template-columns: 1fr; }
  .req-line .acts { grid-column: 1; }
}

/* ===== UX pass 2026-11 #1, after the note is signed (board SessionDone) and Finish session ===== */
.done-card { border-left: 4px solid var(--accent); }
.done-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.done-steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.done-steps li > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font: 800 13px var(--font); background: var(--soft); color: var(--accent); }
.done-steps .done-todo > span:first-child { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.done-steps .done-fix > span:first-child { background: var(--bad-soft); color: var(--bad); }
.done-steps li > span:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.done-back { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
@media (max-width: 720px) {
  .done-steps li .btn { width: 100%; }
  .done-back .btn { width: 100%; }
}

/* ===== UX pass 2026-11 #3, client intake in short parts (static/intake-steps.js) ===== */
.isteps { margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.isteps-label { margin: 0 0 8px; font-weight: 700; }
.isteps-meter { height: 6px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.isteps-meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .2s; }
.isteps-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.isteps-list li.on { color: var(--ink); font-weight: 700; }
.isteps-list li.done::before { content: "✓ "; color: var(--accent); }
.isteps-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 18px; }
.isteps-nav .btn:not(.ghost):only-child { margin-left: auto; }
.ipart h2:focus { outline: none; }
.intake-next { margin-top: 16px; }
.intake-next-list { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
@media (max-width: 720px) {
  .isteps-list { display: none; }
  .isteps-nav .btn { flex: 1 1 0; }
}

/* UX pass 2026-11, client app To do: each row ends in a button that says the action (Pay, Read, Fill out) */
.app-row .app-row-act { flex: none; pointer-events: none; white-space: nowrap; }
/* The logo with the switch under it is taller than the 68px bar, so on wider screens the bar grows to fit
   (the switch used to hang over the bar's bottom line). */
@media (min-width: 601px) {
  .topbar .wrap:has(.brandstack) { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
}

/* Links from the marketing pages to the public guides (templates/_guide_link.html): a small line under a
   section or inside a card, in the link color, wrapping on phones. */
.guide-more { margin: 14px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.feature .guide-more, .calc-more .guide-more, .switch-how .guide-more { margin-top: 10px; font-size: 13px; }
a.guide-link { font-weight: 600; text-decoration: none; }
a.guide-link:hover, a.guide-link:focus-visible { text-decoration: underline; }
.guide-sep { color: var(--muted); }
/* Menu groups that open in place (Effie 2026-11-28: the behavioral health menu was too long). */
.navmenu-sub > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.navmenu-sub > summary::-webkit-details-marker { display: none; }
.navmenu-sub > summary::after { content: "\25BE"; font-size: 12px; color: var(--muted); transition: transform .15s; }
.navmenu-sub[open] > summary::after { transform: rotate(180deg); }
.navmenu-sub > summary:hover, .navmenu-sub > summary:focus-visible { background: var(--soft); }
.navmenu-subpanel { display: grid; gap: 2px; margin: 0 0 4px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.navmenu-subpanel a { font-size: 14px; padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .navmenu-sub > summary::after { transition: none; } }

/* ===== Client portal on a computer (2026-11-29, Claude Design "Client portal desktop layout") =====
   Phones keep one column and the tab bar. From 768px the portal uses the page's 1120px column:
   Today in two columns (what's next | quick things), the plan beside its wallet card, My details two across.
   Every grid keeps the phone's reading order, so focus order matches what's on screen. */
.cp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.cp-skip:focus { top: 12px; }
.cp-main:focus, .shell > .main:focus { outline: none; }
.cp-main .app-row.app-card { flex-direction: row; }   /* "Need help?": text on the left, the arrow at the right */
.cp-dash, .cp-dash-main, .cp-dash-side, .cp-cols, .cp-col-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 768px) {
  .cp-main .app-stack { max-width: 760px; }
  .cp-main .app-stack.cp-today, .cp-main .app-stack.app-plan:has(.cp-cols) { max-width: none; gap: 18px; }
  .cp-main .app-stack.cp-wide { max-width: 960px; }
  .cp-dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .cp-dash-main, .cp-dash-side { gap: 18px; }
  .cp-today .app-hero { padding: 24px 26px; gap: 12px; }
  .cp-today .app-hero .big { font-size: 26px; line-height: 1.2; }
  .cp-today .app-card { padding: 18px 20px; }
  .cp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
  .cp-col-side { position: sticky; top: 16px; }
  .cp-main > .cp-thread { max-width: 880px; }
  .cp-main > h1 + p.muted.small { max-width: 880px; }
}
@media (min-width: 1100px) {
  .cp-cols { grid-template-columns: minmax(0, 1fr) 360px; }
  .cp-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; align-items: start; }
  .cp-progress > h2, .cp-progress > p { grid-column: 1 / -1; }
  .cp-acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
  .cp-acct > .card { margin: 0; }
  .cp-acct > #details { grid-column: 1 / -1; }
}
/* Short screens: a sticky wallet card taller than the window would hide its own bottom. */
@media (max-height: 700px) { .cp-col-side { position: static; } }

/* Phone layout (antigravity-phone-layout-2026-12-01 #17): the habit's name keeps room beside the - 0 + counter. */
.care-list > * { flex-wrap: wrap; }
.care-list .grow { flex: 1 1 160px; }
