/* Here Home Care Caregiver Portal.

   BRAND (from the Here Home Care Brand Guidelines, Aug 9, 2025)
   Teal #184E49 is the logo color and the main color. Bronze #A2885D is the "HOME CARE" color and the quiet accent. Cream #F4EFE4 is the base.
   Accents: terracotta #A6594C, sage #6E8677, taupe #9E8B74, gold #D4A24F. Nothing outside this palette is used for color; tints and shades are mixes of these.
   Type follows the logo lockup. The serif of the "Here" logotype becomes the display face (Newsreader, close to the Tiempos/Canela family the guide names),
   the spaced capitals of "HOME CARE" become the label and interface face (Montserrat, named in the guide), and Open Sans (named in the guide) carries the reading text.
   Signature shape: the house-pin from the logo mark. It marks "you are here": the next step on the route, the current course on the learning path.
   Voice: warm, calm, trustworthy, present, personal, reassuring. Light theme only. */
@font-face { font-family: 'Newsreader'; font-weight: 200 800; font-style: normal; font-display: swap; src: url(../fonts/newsreader-opsz.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 200 800; font-style: italic; font-display: swap; src: url(../fonts/newsreader-opsz-italic.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(../fonts/montserrat-wght.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 300 800; font-style: normal; font-display: swap; src: url(../fonts/open-sans-wght.woff2) format('woff2'); }
:root {
  color-scheme: light;
  /* brand colors */
  --teal: #184E49; --teal-deep: #0F3A36;
  --bronze: #A2885D; --bronze-ink: #6F5731;
  --cream: #F4EFE4; --paper: #FEF8F2;
  --terracotta: #A6594C; --sage: #6E8677; --taupe: #9E8B74; --gold-brand: #D4A24F;
  /* ground and surfaces */
  --bg: #F4EFE4; --ground-2: #EBE4D3; --ground-3: #DDD4BE;
  --surface: #FEF9F3; --surface-2: #F0EADB; --surface-3: #E3DAC6; --faint: #F9F4EA;
  --ink: #15302D; --ink-2: #3C5350; --ink-3: #566B68;
  --line: #E1DBCB; --line-2: #CFC8B4;
  /* teal system */
  --primary: #184E49; --primary-2: #113F3B; --deep: #0F3A36; --on-primary: #FEF9F3; --link: #184E49;
  --wash: #E3EAE3; --mist: #EDF0E7; --teal-line: #BCCBC2;
  /* gold: the one warm highlight */
  --gold: #D4A24F; --gold-2: #C3903C; --gold-wash: #F6E8C9; --gold-line: #E3C68C; --gold-ink: #6B4A12; --gold-soft: #E9C57F;
  /* sage: progress and done */
  --sage-wash: #E2E9E2; --sage-ink: #3E5848;
  /* semantic */
  --ok: #3E5848; --ok-wash: #E2E9E2;
  --warn: #7A5314; --warn-wash: #F6E8C9; --warn-line: #E3C68C;
  --bad: #8E4639; --bad-wash: #F3E2DD;
  --alert: #8E4639; --alert-wash: #F3E2DD; --alert-solid: #A6594C; --clay: #A6594C;
  --now: #8E4639; --now-wash: #F3E2DD;
  /* paper (certificate) */
  --paper-bg: #FFFFFF; --paper-ink: #15302D; --paper-teal: #184E49; --paper-gold: #D4A24F; --paper-mute: #566B68;
  --ring: 0 0 0 1px rgba(15, 58, 54, .07);
  --shadow-sm: 0 1px 2px rgba(15, 58, 54, .06), 0 2px 8px -2px rgba(15, 58, 54, .08);
  --shadow: 0 0 0 1px rgba(15, 58, 54, .06), 0 14px 34px -20px rgba(15, 58, 54, .35);
  --shadow-lift: 0 0 0 1px rgba(15, 58, 54, .08), 0 22px 44px -22px rgba(15, 58, 54, .5);
  --shadow-lg: 0 24px 60px rgba(10, 36, 33, .3);
  --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --pill: 999px;
  --head-h: 68px;
  --f-display: 'Newsreader', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* accent aliases kept for older rules */
  --ac: #184E49; --ac-solid: #184E49; --on-ac: #FEF9F3; --ac-ink: #184E49; --ac-t: #E3EAE3; --ac-t2: #EDF0E7; --ac-d: #0F3A36;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
a { color: var(--link); }
img { max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-brand); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
details { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.16em; }
.i.u { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pin { display: block; width: 1em; height: 1.44em; fill: currentColor; flex: none; }
.empty { color: var(--ink-2); padding: 1.25rem 0; }
.empty.small { padding: .25rem 0; }
.err { color: var(--bad); font-weight: 600; min-height: 1.4em; }
/* the small spaced capitals of the HOME CARE lockup: used for a few labels, never for sentences */
.cap { font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; }

/* ---------- headings ---------- */
h1, h2 { font-weight: 500; line-height: 1.15; text-wrap: balance; color: var(--ink); }
h1, .sect-h h2, .phase-h h2 { font-family: var(--f-display); font-optical-sizing: auto; }
.f-lining, h1, h2, .cal-title, .gl-total b, .req-d b, .take li::before { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
h2, h3 { font-family: var(--f-ui); font-weight: 600; }
.link { color: var(--link); font-family: var(--f-ui); font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; border-bottom: 1.5px solid color-mix(in srgb, var(--bronze) 55%, transparent); transition: border-color .15s, gap .15s; }
.link:hover { border-bottom-color: var(--primary); }
.crumb { padding-top: 1.5rem; }
.bh { font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; }

/* Page title block: a large serif title and one calm sentence. (The short bronze bar that used to sit above the title was removed Oct 19, 2026, CEO: it looked random.) */
.pagehead { display: grid; gap: .5rem; padding-block: 2rem 1rem; }
.pagehead.tight { padding-block: .75rem; }
.pagehead h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); color: var(--teal-deep); letter-spacing: -.018em; line-height: 1.05; }
.pagehead p { color: var(--ink-2); max-width: 60ch; font-size: 1.05rem; }
.banner { display: block; padding-block: 2.4rem .5rem; margin-bottom: 1.25rem; }
.bn-ic { display: none; }
.bn-t { display: grid; gap: .5rem; }
.banner .bn-k { font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: var(--bronze-ink); }
.bn-act { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
@media (min-width: 700px) { .banner { padding-block: 3rem .75rem; margin-bottom: 1.5rem; } }

/* ---------- shell ---------- */
.app { min-height: 100vh; }
.shell { min-width: 0; }
.rail { display: none; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); box-shadow: 0 1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: .4rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; margin-right: .5rem; }
.logo-img { display: block; height: auto; width: auto; max-width: none; }
.logo-img.hdr { height: 42px; aspect-ratio: 951 / 267; }
.logo-img.onb { height: 88px; aspect-ratio: 1128 / 484; }
.wm { display: inline-flex; align-items: baseline; gap: .4rem; color: var(--primary); }
.wm-h { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.wm-s { font-family: var(--f-ui); font-weight: 600; font-size: .62rem; letter-spacing: .2em; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(24, 78, 73, .08); color: var(--ink); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.copied { color: var(--ok); }
.bell .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--bg); }
.askbtn, .callbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 .85rem; border-radius: var(--pill); font-family: var(--f-ui); font-weight: 600; font-size: .85rem; transition: background .15s, transform .15s; }
.askbtn { color: var(--primary); background: rgba(24, 78, 73, .08); }
.askbtn:hover, .askbtn[aria-current="page"] { background: rgba(24, 78, 73, .15); }
.callbtn { background: var(--terracotta); color: var(--paper); }
.callbtn:hover { background: #944B3F; }
.askbtn span, .callbtn span { display: none; }
.cmd { display: none; }
.me-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .65rem 0 .3rem; border-radius: var(--pill); font-family: var(--f-ui); font-weight: 600; font-size: .85rem; color: var(--ink); transition: background .15s; }
.me-btn:hover, .me-btn[aria-current="page"] { background: rgba(24, 78, 73, .08); }
.me-name { display: none; }
.bell { display: none; }
.main { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); outline: none; min-width: 0; }
.main > .gut { max-width: 1140px; margin-inline: auto; }
.nv-i { display: grid; place-items: center; flex: none; }
/* phone: a floating dock */
.tabbar { position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 25; border-radius: 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(15, 58, 54, .45); }
.tabbar-in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0 .25rem; }
.tabbar .nv { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; padding: .5rem 0 .4rem; min-height: 62px; font-family: var(--f-ui); font-size: .62rem; font-weight: 600; color: var(--ink-3); text-decoration: none; min-width: 0; }
.tabbar .nv > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar .nv-i { width: 44px; height: 30px; border-radius: var(--pill); color: var(--ink-3); transition: background .2s, color .2s; }
.tabbar .nv .i { width: 1.2rem; height: 1.2rem; }
.tabbar .nv[aria-current="page"] { color: var(--primary); }
.tabbar .nv[aria-current="page"] .nv-i { background: var(--primary); color: var(--paper); }
.l-short { display: none; }
@media (max-width: 429px) { .tabbar .bp429 .l-full { display: none; } .tabbar .bp429 .l-short { display: inline; } }
@media (max-width: 359px) { .tabbar .bp359 .l-full { display: none; } .tabbar .bp359 .l-short { display: inline; } .topbar-in { gap: .15rem; } .brand { margin-right: 0; } .callbtn, .askbtn { padding: 0; width: 40px; min-width: 40px; } .me-btn { padding: 0; min-width: 40px; justify-content: center; } }
body.in-lesson { overflow: hidden; }
@media (min-width: 480px) { .bell { display: inline-grid; } }
@media (min-width: 600px) { .callbtn span { display: inline; } .me-name { display: inline; } .tabbar .nv { font-size: .68rem; } }
@media (min-width: 900px) {
  .topbar-in { min-height: var(--head-h); gap: .6rem; }
  .shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); align-items: start; }
  /* The left menu is its own deep-teal panel, edge to edge under the header, so it reads as the app's frame and not as part of the page. */
  .rail { display: block; position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--head-h)); overflow: auto; padding: 1.5rem 1rem 1.5rem 1.1rem; background: var(--teal-deep); color: var(--paper); box-shadow: 6px 0 22px -14px rgba(15, 58, 54, .6); scrollbar-width: thin; scrollbar-color: rgba(254, 249, 243, .28) transparent; }
  .rail-nav { display: grid; gap: .25rem; }
  .rail-more { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(254, 249, 243, .18); }
  .rail-h { padding: 0 .95rem .5rem; font-family: var(--f-ui); font-weight: 600; font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-soft); }
  .rail .nv { position: relative; display: flex; align-items: center; gap: .8rem; padding: .35rem .85rem .35rem .45rem; border-radius: 18px; font-family: var(--f-ui); font-weight: 600; font-size: .9rem; color: rgba(254, 249, 243, .88); text-decoration: none; min-height: 52px; transition: background .15s, color .15s, box-shadow .15s; }
  .rail .nv-i { width: 38px; height: 38px; border-radius: 13px; color: var(--gold-soft); font-size: 1.1rem; transition: background .2s, color .2s; }
  .rail .nv:hover { background: rgba(254, 249, 243, .09); color: var(--paper); }
  .rail .nv[aria-current="page"] { background: var(--surface); color: var(--primary); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
  .rail .nv[aria-current="page"] .nv-i { background: var(--primary); color: var(--paper); }
  .rail :focus-visible { outline-color: var(--gold); }
  .tabbar { display: none; }
  .main { padding-bottom: 5rem; }
  .brand { margin-right: 1rem; }
  .cmd { display: flex; align-items: center; gap: .65rem; flex: 1; max-width: 460px; min-height: 46px; padding: 0 .55rem 0 1.1rem; border-radius: var(--pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); color: var(--ink-3); font-family: var(--f-ui); font-weight: 500; font-size: .88rem; text-align: left; transition: box-shadow .15s, color .15s; }
  .cmd:hover { color: var(--ink); box-shadow: 0 0 0 1.5px var(--teal-line), var(--shadow-sm); }
  .cmd .i { color: var(--primary); }
  .cmd kbd { margin-left: auto; font: 600 .68rem/1 var(--f-ui); letter-spacing: .06em; color: var(--ink-3); background: var(--ground-2); padding: .4rem .6rem; border-radius: var(--pill); }
  .askbtn { display: none; }
}

/* ---------- buttons, chips, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.5rem; border-radius: var(--pill); font-family: var(--f-ui); font-weight: 600; font-size: .92rem; letter-spacing: .005em; text-align: center; border: 1.5px solid transparent; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .i { transition: transform .18s; }
.btn:hover .i.u:last-child { transform: translateX(2px); }
.btn.primary, .btn.ac { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not(:disabled), .btn.ac:hover:not(:disabled) { background: var(--primary-2); box-shadow: 0 10px 22px -10px rgba(15, 58, 54, .7); }
.btn.gold { background: var(--gold); color: var(--teal-deep); }
.btn.gold:hover:not(:disabled) { background: #DDB064; box-shadow: 0 10px 24px -10px rgba(212, 162, 79, .85); }
.btn.ghost { border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); background: transparent; }
.btn.ghost:hover { background: var(--wash); border-color: var(--primary); }
.btn.quiet { background: rgba(24, 78, 73, .09); color: var(--primary); }
.btn.quiet:hover { background: rgba(24, 78, 73, .16); }
.btn.danger { background: var(--alert-solid); color: var(--paper); }
.btn.sm { min-height: 42px; padding: 0 1.1rem; font-size: .84rem; }
.btn.block { display: flex; width: 100%; }
.chip { display: inline-flex; align-items: center; padding: .2rem .75rem; border-radius: var(--pill); font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .01em; background: var(--ground-2); color: var(--ink-2); white-space: nowrap; flex: none; }
.chip.ok { background: var(--sage-wash); color: var(--sage-ink); }
.chip.gold { background: var(--gold-wash); color: var(--gold-ink); }
.chip.warn { background: var(--warn-wash); color: var(--warn); }
.chip.bad { background: var(--bad-wash); color: var(--bad); }
.chip.info { background: var(--wash); color: var(--primary); }
.chip.neutral { background: var(--ground-2); color: var(--ink-2); }
.tag { display: inline-flex; padding: .2rem .75rem; border-radius: var(--pill); background: var(--wash); color: var(--primary); font-family: var(--f-ui); font-size: .72rem; font-weight: 600; }
.tag.soft { background: var(--ground-2); color: var(--ink-2); }
.fld { display: grid; gap: .45rem; margin-block: 1rem; }
.fld > span { font-family: var(--f-ui); font-weight: 600; font-size: .85rem; }
.fld input[type="text"], .fld input[type="date"], .fld input[type="search"], .fld input[type="tel"], .fld input[type="email"], .fld input[type="time"], .fld input[type="number"], .fld input[type="url"], .fld select { min-height: 50px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s; }
.fld select { padding-right: 2.4rem; }
.fld input:focus, .fld select:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; }
.toolbar { display: grid; gap: .5rem; margin-block: .25rem .9rem; }
.search { position: relative; display: block; }
.search .i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; }
.search input { width: 100%; min-height: 52px; padding: 0 1.1rem 0 2.9rem; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; }
.search.big input { min-height: 60px; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
/* tabs: a soft pill track with a raised selected pill */
.tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; padding: 4px; margin-block: .5rem 1.75rem; background: var(--ground-2); border-radius: var(--pill); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: .5rem; flex: none; min-height: 44px; padding: 0 1.2rem; border-radius: var(--pill); font-family: var(--f-ui); font-weight: 600; font-size: .86rem; color: var(--ink-2); transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tabs button .i { color: var(--primary); }
.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1.05rem 1.25rem; border-radius: var(--r-lg); background: var(--mist); color: var(--ink); margin-block: .25rem 1.25rem; }
.notice .i { margin-top: .22rem; color: var(--primary); }
.notice.warn { background: var(--warn-wash); }
.notice.warn .i { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.fchip { flex: none; min-height: 42px; padding: 0 1.1rem; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--f-ui); font-weight: 600; font-size: .82rem; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.fchip:hover { border-color: var(--primary); color: var(--primary); }
.fchip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--paper); }
.fchip[aria-pressed="true"] .i { color: var(--gold-soft); }
.chip-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--pill); background: var(--surface); border: 1.5px solid var(--line-2); font-family: var(--f-ui); font-weight: 600; font-size: .84rem; transition: background .15s, border-color .15s; }
.chip-btn .i { color: var(--primary); }
.chip-btn:hover { background: var(--wash); border-color: var(--primary); }
.form-act { display: flex; gap: .75rem; margin-top: 1rem; }

/* ---------- surfaces: open sections, calm panels, the occasional card ---------- */
.sect { margin-bottom: 3rem; }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sect-h h2 { font-weight: 500; font-size: clamp(1.55rem, 1.3rem + .9vw, 2.05rem); color: var(--teal-deep); line-height: 1.15; letter-spacing: -.012em; }
.sect-h > .muted, .sect-h > small, .sect-h > .link { white-space: nowrap; flex: none; }
.panel { background: var(--ground-2); border-radius: var(--r-xl); padding: 1.6rem 1.4rem .6rem; margin-bottom: 1.5rem; }
.panel .sect { margin-bottom: 1.9rem; }
.panel .sect-h h2 { font-size: 1.45rem; }
.card { background: var(--surface); border-radius: var(--r-xl); padding: 1.5rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card.tint { background: var(--mist); box-shadow: none; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-h h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; color: var(--teal-deep); display: flex; align-items: center; gap: .6rem; letter-spacing: -.01em; }
.card-h h2 .hic { display: inline-grid; place-items: center; background: none; color: var(--primary); font-size: 1.05rem; flex: none; }
.card-h > .muted, .card-h > small { white-space: nowrap; flex: none; }
.card-h > div { min-width: 0; }
.rows { display: grid; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows.card { padding-block: .4rem; }
.row { display: flex; align-items: center; gap: .95rem; min-height: 70px; padding: .8rem .8rem; margin-inline: -.8rem; width: calc(100% + 1.6rem); border-radius: var(--r-lg); text-align: left; transition: background .15s; }
button.row:hover { background: rgba(24, 78, 73, .05); }
.row.soon { opacity: .8; }
.row-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.row-t strong { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.row-t small { color: var(--ink-3); font-size: .875rem; }
.row-t small.st { color: var(--ink-2); font-size: .84rem; }
.tile-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--wash); color: var(--primary); flex: none; font-size: 1.1rem; }
.tile-ic.lg { width: 50px; height: 50px; font-size: 1.25rem; }
.tile-ic.xl { width: 62px; height: 62px; font-size: 1.55rem; border-radius: 20px; }
.chev { color: var(--ink-3); width: 1rem; height: 1rem; flex: none; transition: transform .15s, color .15s; }
button:hover > .chev { transform: translateX(2px); color: var(--primary); }
.bar { display: block; height: 8px; border-radius: var(--pill); background: var(--ground-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: var(--pill); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.bar.thin { height: 6px; margin-top: .4rem; max-width: 320px; }
.ring { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--ground-3); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--sage); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--f-ui); font-weight: 700; font-size: calc(var(--s) * .27); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring-t small { font-size: .5em; font-weight: 500; color: var(--ink-3); }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--primary); font-family: var(--f-ui); font-weight: 700; font-size: .85rem; flex: none; letter-spacing: .03em; }
.av.sm { width: 36px; height: 36px; font-size: .75rem; }
.av.lg { width: 72px; height: 72px; font-size: 1.4rem; }
/* picture frames: soft rounded rectangles (course covers and lesson art) */
.arch-frame { display: block; flex: none; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--gold-wash); line-height: 0; }
.arch-frame svg.art { display: block; width: 100%; height: 100%; aspect-ratio: auto; }

/* ---------- Home ---------- */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.stat { display: grid; align-content: start; gap: .1rem; padding: .95rem 1rem; border-radius: var(--r-lg); background: var(--ground-2); min-width: 0; }
.stat-l { color: var(--ink-3); font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.stat strong { font-size: clamp(1.1rem, 4.6vw, 1.6rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.cols { display: grid; gap: 0 2.75rem; }
.col-main, .col-side { min-width: 0; }

/* the welcome band: a photograph from the brand library fading into the teal */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: 1.25rem; margin-bottom: 2.75rem; border-radius: var(--r-2xl); color: var(--paper);
  background: radial-gradient(120% 140% at 85% 0%, #1F6159 0%, rgba(31, 97, 89, 0) 55%), linear-gradient(135deg, #0F3A36 0%, #184E49 70%, #1B5852 100%); }
.hero-ph { position: relative; height: 190px; z-index: -1; margin-bottom: -70px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 28%; display: block; animation: heroDrift 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroDrift { from { transform: scale(1.07); opacity: .6; } to { transform: none; opacity: 1; } }
.hero-in { display: grid; gap: 1.6rem; padding: 0 1.4rem 1.6rem; }
.hero-t { min-width: 0; }
.hero-date { color: var(--gold-soft); margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; }
.hero-date .pin { width: .7rem; height: 1.02rem; color: var(--gold); }
.hero-t h1 { color: var(--paper); font-weight: 450; font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.6rem); letter-spacing: -.025em; line-height: 1.04; }
.hero-line { color: rgba(254, 249, 243, .8); margin-top: .85rem; font-size: 1.02rem; }
.next { display: grid; gap: .35rem; padding: 1.15rem 1.3rem 1.25rem; border-radius: 24px; background: rgba(254, 249, 243, .09); box-shadow: inset 0 0 0 1px rgba(254, 249, 243, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.next-k { color: var(--gold-soft); font-family: var(--f-ui); font-weight: 600; font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; }
.next h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); color: var(--paper); line-height: 1.18; letter-spacing: -.01em; }
.next-s { color: rgba(254, 249, 243, .84); max-width: 54ch; font-size: .98rem; }
.next-act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: .9rem; }
.next-f { color: rgba(254, 249, 243, .72); font-size: .88rem; }
.next.calm h2 { color: var(--paper); }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 440px; }
  .hero-ph { position: absolute; inset: 0 0 0 auto; width: 56%; height: auto; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
  .hero-ph img { object-position: 52% 30%; }
  .hero-in { grid-column: 1; align-content: center; padding: 3rem 0 3rem 3.1rem; gap: 2rem; }
  .next { max-width: 480px; }
}
@media (max-width: 480px) { .hero-t h1 { font-size: 2.35rem; } }

/* "On a shift?": the widgets, as large tactile tiles */
.bigacts { display: grid; gap: .9rem; }
.bigact { position: relative; display: flex; align-items: center; gap: 1.05rem; width: 100%; padding: 1.2rem 1.3rem 1.2rem 1.15rem; min-height: 96px; border-radius: var(--r-xl); background: var(--wash); text-align: left; transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s; }
.bigact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.bigact:active { transform: scale(.99); }
.bigact .ba-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); color: var(--primary); font-size: 1.35rem; flex: none; box-shadow: var(--shadow-sm); }
.bigact .row-t strong { font-size: 1.02rem; }
.bigact .row-t small { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.bigact .ba-go { margin-left: auto; color: var(--teal-deep); opacity: .45; flex: none; transition: transform .2s, opacity .2s; }
.bigact:hover .ba-go { opacity: 1; transform: translateX(3px); }
.bigact.t-teal { background: var(--wash); }
.bigact.t-clay { background: var(--alert-wash); }
.bigact.t-clay .ba-ic { color: var(--terracotta); }
.bigact.t-gold { background: var(--gold-wash); }
.bigact.t-gold .ba-ic { color: var(--gold-ink); }
.bigact.t-sand { background: var(--ground-2); }
/* Ask: a command bar with common situations underneath */
.askcard { display: grid; gap: 1rem; padding: 1.35rem 1.3rem 1.3rem; border-radius: var(--r-xl); background: var(--wash); }
.askcard h3 { font-family: var(--f-ui); font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.askcard h3 .ba-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); font-size: 1.1rem; flex: none; }
.askbar { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: 0 1.2rem; border-radius: var(--pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); color: var(--ink-3); font-size: .98rem; text-align: left; transition: box-shadow .18s, transform .18s; }
.askbar:hover { box-shadow: 0 0 0 1.5px var(--teal-line), var(--shadow); transform: translateY(-1px); }
.askbar .i { color: var(--primary); font-size: 1.1rem; }
.askchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.askchips button { min-height: 40px; padding: 0 1rem; border-radius: var(--pill); background: rgba(254, 249, 243, .75); box-shadow: inset 0 0 0 1px rgba(24, 78, 73, .14); font-family: var(--f-ui); font-weight: 600; font-size: .78rem; color: var(--primary); transition: background .15s, box-shadow .15s; }
.askchips button:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--primary); }
.shiftgrid { display: grid; gap: .9rem; }
@media (min-width: 700px) {
  .bigacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shiftgrid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .shiftgrid .bigact { align-self: stretch; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1.1rem; padding: 1.3rem; }
  .shiftgrid .bigact .ba-go { position: absolute; top: 1.3rem; right: 1.3rem; }
}

/* the route: where you are in onboarding, marked by the house-pin */
.routecard { padding: 1.5rem 1.4rem 1.2rem; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.route { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding-top: 2.2rem; }
.route-track, .route-fill { position: absolute; top: calc(2.2rem + 21px - 2px); left: calc(50% / var(--n)); height: 4px; border-radius: 4px; }
.route-track { right: calc(50% / var(--n)); background: color-mix(in srgb, var(--teal) 13%, var(--ground-2)); }
.route-fill { width: calc((100% - 100% / var(--n)) * var(--p)); background: linear-gradient(90deg, var(--teal), var(--sage)); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.rt { position: relative; display: grid; justify-items: center; gap: .5rem; text-align: center; min-width: 0; }
.rt-b { position: relative; z-index: 1; display: grid; border-radius: 50%; }
.rt-n { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-weight: 700; font-size: .9rem; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-3); font-variant-numeric: lining-nums; transition: transform .2s, box-shadow .2s, background .2s; }
.rt-n .i { width: 1.1rem; height: 1.1rem; }
.rt-b:hover .rt-n { transform: translateY(-2px); }
.rt.done .rt-n { background: var(--primary); color: var(--on-primary); box-shadow: 0 3px 8px -2px rgba(15, 58, 54, .45); }
.rt.cur .rt-n { background: var(--gold); color: var(--teal-deep); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 28%, transparent), 0 8px 16px -6px rgba(195, 144, 60, .8); }
.rt.cur .rt-n::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: rtPing 2.6s ease-out infinite; pointer-events: none; }
@keyframes rtPing { 0% { transform: scale(.88); opacity: .75; } 75%, 100% { transform: scale(1.5); opacity: 0; } }
.rt-pin { position: absolute; top: -2.2rem; left: 50%; width: 1.2rem; translate: -50% 0; color: var(--primary); filter: drop-shadow(0 3px 3px rgba(15, 58, 54, .25)); animation: pinBob 2.6s ease-in-out infinite; }
.rt-pin .pin { width: 100%; height: auto; aspect-ratio: 147 / 210; }
@keyframes pinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.rt-l { font-family: var(--f-ui); font-weight: 600; font-size: .72rem; line-height: 1.25; color: var(--ink-3); }
.rt.done .rt-l { color: var(--ink-2); }
.rt.cur .rt-l { color: var(--teal-deep); font-weight: 700; }
.rt-s { font-size: .7rem; color: var(--ink-3); line-height: 1.2; }
.rt-now { display: none; margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); text-align: center; font: 600 .86rem/1.4 var(--f-ui); color: var(--ink-2); }
.rt-now b { color: var(--teal-deep); }
@media (max-width: 459px) { .rt-l, .rt-s { display: none; } .rt-now { display: block; } .route { padding-top: 2rem; } .rt-pin { top: -2rem; } }
@media (prefers-reduced-motion: reduce) { .rt.cur .rt-n::after, .rt-pin { animation: none; } .route-fill, .rc-bar i, .og-bar i { transition: none; } }
/* the onboarding card on Home: a soft teal wash with a warm corner, the overall progress, then the route */
.onb-route { position: relative; overflow: hidden; padding: 1.3rem 1.3rem 1.2rem; background: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 60%), linear-gradient(180deg, var(--wash) 0%, var(--surface) 70%); }
.rc-top { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .55rem .8rem; margin-bottom: 1.05rem; }
.rc-top strong { font: 500 2.2rem/1 var(--f-display); letter-spacing: -.02em; color: var(--teal-deep); font-variant-numeric: lining-nums; }
.rc-top span { font: 600 .86rem/1.3 var(--f-ui); color: var(--ink-2); }
.rc-top .rc-bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--teal) 12%, var(--ground-2)); }
.rc-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--teal), var(--sage) 65%, var(--gold)); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.stats3 { display: grid; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stat3 { display: grid; align-content: start; gap: .45rem; text-align: left; width: 100%; padding: .1rem 0; }
.stat3 .st-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .75rem; }
.stat3 strong { font-family: var(--f-ui); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .55rem; }
.stat3 strong .i { color: var(--primary); }
.stat3 .st-v { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat3 .bar { height: 6px; }
.stat3 .st-note { color: var(--warn); font-size: .8rem; font-weight: 600; }
@media (min-width: 640px) { .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .routecard { padding: 1.7rem 1.9rem 1.5rem; } }
.person-row { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .2rem 0 .6rem; text-align: left; }
.newsrow { display: grid; gap: .4rem; width: 100%; padding: .1rem 0 .5rem; text-align: left; }
.newsrow-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.newsrow time { color: var(--ink-3); font-size: .85rem; }
.newsrow strong { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; line-height: 1.4; }
/* a brand moment: the mission, with a photograph */
.mission { position: relative; overflow: hidden; margin: 0 0 1.5rem; border-radius: var(--r-xl); min-height: 320px; display: grid; align-content: end; padding: 1.5rem; color: var(--paper); isolation: isolate; background: var(--teal); }
.mission img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mission img { object-position: 50% 20%; }
.mission::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 58, 54, 0) 40%, rgba(15, 58, 54, .92) 100%); }
.mission p { font-family: var(--f-display); font-weight: 450; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.mission small { display: block; margin-top: .5rem; color: var(--gold-soft); }
@media (min-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .glance { gap: 1rem; }
}

/* phone: keep titles readable by moving a status chip under the text */
@media (max-width: 560px) {
  .row:has(> .chip) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .8rem; row-gap: .3rem; align-items: center; }
  .row:has(> .chip) > :first-child { grid-column: 1; grid-row: 1 / span 2; }
  .row:has(> .chip) > .row-t { grid-column: 2; grid-row: 1; }
  .row:has(> .chip) > .chip { grid-column: 2; grid-row: 2; justify-self: start; }
  .row:has(> .chip) > :last-child:not(.chip) { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- Training: the learning path ---------- */
.resume { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: .3rem; margin-bottom: 1.5rem; padding: 1.5rem 1.4rem 1.5rem; border-radius: var(--r-2xl); color: var(--paper); background: radial-gradient(120% 140% at 90% 0%, #1F6159 0%, rgba(31, 97, 89, 0) 55%), linear-gradient(135deg, #0F3A36 0%, #184E49 75%); }
.resume-ph { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); opacity: .9; display: none; }
.resume-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.resume-t { display: grid; gap: .3rem; min-width: 0; max-width: 520px; }
.resume h2 { font-family: var(--f-display); font-weight: 500; color: var(--paper); font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); line-height: 1.12; letter-spacing: -.015em; }
.resume.calm { padding: 1.7rem 1.5rem; }
@media (min-width: 760px) { .resume { padding: 2.2rem 2.4rem; min-height: 230px; align-content: center; } .resume-ph { display: block; } }
.path-note { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 2.5rem; color: var(--ink-2); max-width: 70ch; }
.path-note .i { margin-top: .3rem; color: var(--primary); }
.phase { margin-bottom: 3rem; }
.phase-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.phase-h h2 { font-weight: 500; font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem); color: var(--teal-deep); letter-spacing: -.015em; }
.phase-h p { color: var(--ink-2); margin-top: .25rem; }
.phase-n { font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-ink); white-space: nowrap; padding-bottom: .4rem; }
.path { display: grid; gap: 1rem; }
.pi { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; align-items: start; }
.pi:not(:last-child)::before { content: ""; position: absolute; left: 19px; width: 3px; background: var(--ground-3); border-radius: 3px; z-index: 0; }
.pi.built:not(:last-child)::before { top: calc(1.6rem + 20px); height: calc(100% - 1.6rem - 20px + 1rem + 40px); }
.pi.soon:not(:last-child)::before { top: 50%; height: calc(50% + 1rem + 44px); background-image: linear-gradient(var(--ground-3) 60%, transparent 0); background-size: 3px 9px; background-color: transparent; }
.pi.is-done:not(:last-child)::before { background: var(--sage); background-image: none; }
.node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-weight: 700; font-size: .85rem; background: var(--bg); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); font-variant-numeric: lining-nums; }
.pi.built .node { margin-top: 1.6rem; }
.pi.soon .node { align-self: center; box-shadow: inset 0 0 0 2px var(--line-2); border-style: dashed; color: var(--ink-3); }
.pi.is-done .node { background: var(--sage); box-shadow: none; color: var(--paper); }
.pi.is-cur .node { background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 38%, transparent); color: var(--gold-soft); }
.pi.is-cur .node .pin { width: 15px; color: var(--gold-soft); }
.pc { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.1rem; width: 100%; padding: 1rem; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); text-align: left; transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pi.is-cur .pc { box-shadow: 0 0 0 2px var(--gold), 0 18px 36px -22px rgba(15, 58, 54, .45); }
.pc-art { width: 100%; align-self: start; }
.pc-b { display: grid; gap: .3rem; align-content: start; min-width: 0; padding: .2rem .25rem .1rem 0; }
.pc-meta { color: var(--ink-3); font-size: .82rem; }
.pc-t { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); line-height: 1.15; letter-spacing: -.012em; color: var(--teal-deep); }
.pc-t .tag { font-family: var(--f-ui); vertical-align: .2em; margin-left: .4rem; }
.pc-why { color: var(--ink-2); font-size: .95rem; }
.pc-foot { display: flex; align-items: center; gap: .6rem .85rem; margin-top: .75rem; flex-wrap: wrap; }
.pc-foot .bar.thin { margin-top: 0; min-width: 70px; max-width: 200px; }
.ps { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .9rem 1.2rem; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1.5px var(--line-2); background: color-mix(in srgb, var(--surface) 45%, transparent); text-align: left; transition: background .15s, box-shadow .15s; }
.ps:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--taupe); }
.ps-t { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.ps-t strong { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.ps-t small { color: var(--ink-3); font-size: .875rem; line-height: 1.45; }
.status { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--ink-3); }
.status.done { color: var(--sage-ink); }
.status.current { color: var(--primary); }
@media (min-width: 700px) {
  .pc { grid-template-columns: 120px minmax(0, 1fr); gap: 1.6rem; padding: 1.2rem 1.5rem 1.2rem 1.2rem; }
  .pi { gap: 1.4rem; }
  .ps { padding: 1.05rem 1.5rem; }
}
@media (max-width: 420px) { .pc { grid-template-columns: 72px minmax(0, 1fr); gap: .85rem; padding: .8rem; } .pi { gap: .7rem; grid-template-columns: 34px minmax(0, 1fr); } .node { width: 34px; height: 34px; } .pi:not(:last-child)::before { left: 15.5px; } .pi.built .node { margin-top: 1.3rem; } .ps { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; row-gap: .45rem; padding: .85rem .95rem; } .ps .ps-t { grid-column: 1; } .ps .chev { grid-column: 2; grid-row: 1; align-self: center; } .ps .chip { grid-column: 1; grid-row: 2; justify-self: start; } }
.soonlist { margin-top: 1rem; }
.soonlist > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-family: var(--f-ui); font-weight: 600; color: var(--primary); min-height: 44px; list-style: none; }
.soonlist > summary::-webkit-details-marker { display: none; }
.soonlist[open] > summary .chev { transform: rotate(180deg); }
.stack > .card + .card { margin-top: 0; }
.guides-intro { margin-bottom: .75rem; }
.teaser summary { cursor: pointer; font-weight: 600; color: var(--link); min-height: 36px; display: flex; align-items: center; }
.teaser ul { display: grid; gap: .3rem; padding: .25rem 0 .25rem 1.1rem; list-style: disc; color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: .875rem; }
.blurb { color: var(--ink-2); font-size: .95rem; max-width: 72ch; }

/* course page */
.c-hero { display: grid; gap: 1.5rem; padding-block: .75rem 2.5rem; align-items: end; }
.c-hero-t { display: grid; gap: .6rem; min-width: 0; align-content: end; }
.c-pos { color: var(--bronze-ink); font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.c-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); color: var(--teal-deep); letter-spacing: -.02em; line-height: 1.05; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.c-prog { display: flex; align-items: center; gap: .8rem; max-width: 380px; margin-top: .6rem; }
.c-prog .bar { flex: 1; }
.c-prog b { font-family: var(--f-ui); font-variant-numeric: tabular-nums; color: var(--teal-deep); }
.c-act { margin-top: .9rem; }
.c-arch { width: 130px; order: -1; border-radius: 26px; box-shadow: var(--shadow); }
.soon-art { background: var(--ground-2); display: grid; place-items: center; color: var(--primary); box-shadow: none; }
.soon-ic { font-size: 2.2rem; opacity: .6; line-height: 1; }
@media (min-width: 760px) { .c-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 3.5rem; } .c-arch { width: 100%; order: 0; border-radius: 32px; } }
.mods .row { min-height: 82px; }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-2); font-family: var(--f-ui); font-weight: 700; flex: none; font-size: .88rem; background: transparent; }
.num.cur { background: var(--primary); color: var(--gold-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 38%, transparent); }
.num.done { background: var(--sage); box-shadow: none; color: var(--paper); }
.mthumb { display: none; width: 140px; flex: none; border-radius: 16px; overflow: hidden; line-height: 0; }
.mthumb svg.art { display: block; width: 100%; height: auto; aspect-ratio: 800 / 320; }
@media (min-width: 640px) { .mthumb { display: block; } }
.src summary { cursor: pointer; font-family: var(--f-ui); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.src ul { display: grid; gap: .4rem; padding: .25rem 0 .75rem 1.1rem; list-style: disc; }
.src a { overflow-wrap: anywhere; }
.prose p + p { margin-top: .85rem; }
.prose { max-width: 68ch; }


/* ---------- Lesson player ---------- */
.player { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); }
.pl-head { background: var(--surface); box-shadow: 0 1px 0 var(--line); padding-top: env(safe-area-inset-top, 0px); }
.pl-head-in { display: flex; align-items: center; gap: .5rem; min-height: 60px; max-width: 760px; margin-inline: auto; width: 100%; }
.pl-title { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.pl-title span { font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-title strong { font-family: var(--f-ui); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-count { font-family: var(--f-ui); font-size: .85rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pl-bar { height: 5px; background: var(--ground-3); }
.pl-bar i { display: block; height: 100%; background: var(--gold); border-radius: 0 5px 5px 0; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.pl-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; outline: none; }
.pl-body > .gut { max-width: 800px; margin-inline: auto; }
.lcard { max-width: 728px; margin: 1rem auto 1.5rem; padding: 1.35rem; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); display: grid; gap: 1.1rem; animation: cardIn .25s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pl-foot { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pl-foot-in { display: flex; gap: .75rem; padding-block: .75rem; max-width: 760px; margin-inline: auto; width: 100%; }
@media (min-width: 700px) { .lcard { padding: 2.25rem 2.5rem; margin-top: 2rem; } }
.lk { color: var(--bronze-ink); font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.lh { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); line-height: 1.1; letter-spacing: -.018em; color: var(--teal-deep); }
.lh2 { font-family: var(--f-ui); font-size: 1.1rem; }
.lq { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.4; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.lcard .note { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); background: var(--surface-2); padding: .75rem 1rem; border-radius: var(--r); font-size: .95rem; }
.lcard .note .i { margin-top: .2rem; color: var(--primary); }
.lcard .note.center { justify-content: center; text-align: left; }
.intro-ico { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--wash); color: var(--primary); font-size: 1.6rem; }
.sec-head { display: flex; align-items: center; gap: .85rem; }
.sec-ico { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--wash); color: var(--primary); flex: none; font-size: 1.2rem; }
.tick { display: grid; gap: .7rem; }
.tick li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.tick .i { color: var(--primary); margin-top: .2rem; width: 1.25rem; height: 1.25rem; }
.short { padding: 1rem 1.2rem; background: var(--mist); border-radius: var(--r-lg); display: grid; gap: .5rem; }
.short ul { display: grid; gap: .4rem; padding-left: 1.1rem; list-style: disc; }
.short li::marker { color: var(--primary); }
.lcard .prose { font-size: 1.04rem; line-height: 1.7; }
.stepper { display: grid; gap: .85rem; counter-reset: s; }
.stepper li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.sn { width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.sn::before { counter-increment: s; content: counter(s); }
.callout { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .8rem; padding: 1.05rem 1.2rem; border-radius: var(--r-lg); background: var(--mist); }
.callout > .i { margin-top: .15rem; width: 1.3rem; height: 1.3rem; color: var(--primary); }
.callout p { margin-top: .2rem; }
.callout.tip { background: var(--warn-wash); }
.callout.tip > .i { color: var(--warn); }
.callout.warn { background: var(--alert-wash); }
.callout.warn > .i { color: var(--alert); }
.situation { padding: 1.05rem 1.2rem; background: var(--mist); border-left: 5px solid var(--primary); border-radius: 6px var(--r-lg) var(--r-lg) 6px; display: grid; gap: .6rem; }
.tbl { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.tbl-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.tbl-row > div { padding: .75rem .95rem; border-top: 1px solid var(--line); }
.tbl-row:first-child > div { border-top: 0; }
.tbl-head > div { background: var(--primary); color: #fff; font-weight: 700; border-top: 0 !important; }
.tbl-row:nth-child(even):not(.tbl-head) { background: var(--faint); }
@media (max-width: 640px) {
  .tbl { border: 0; gap: .6rem; }
  .tbl-head { display: none; }
  .tbl-row { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface) !important; }
  .tbl-row > div { border-top: 1px solid var(--line); }
  .tbl-row > div:first-child { border-top: 0; font-weight: 600; background: var(--faint); }
  .tbl-row > div::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
}
.opts { display: grid; gap: .7rem; }
.opt { display: flex; align-items: flex-start; gap: .85rem; width: 100%; min-height: 60px; padding: .85rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); text-align: left; transition: border-color .12s, background .12s; }
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--mist); }
.ol { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.ot { flex: 1; min-width: 0; padding-top: .15rem; }
.oi { width: 1.3rem; height: 1.3rem; margin-top: .25rem; }
.opt.sel { border: 2px solid var(--primary); background: var(--wash); padding: calc(.85rem - .5px) calc(1.1rem - .5px); }
.opt.sel .ol { background: var(--primary); border-color: var(--primary); color: #fff; }
.opt.right { border: 2px solid var(--ok); background: var(--ok-wash); }
.opt.right .ol { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.right .oi { color: var(--ok); }
.opt.wrong { border: 2px solid var(--bad); background: var(--bad-wash); }
.opt.wrong .ol { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.wrong .oi { color: var(--bad); }
.opt:disabled { cursor: default; }
.feedback { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; padding: 1.05rem 1.2rem; border-radius: var(--r-lg); animation: cardIn .22s ease-out; }
.feedback.ok { background: var(--ok-wash); color: var(--ink); }
.feedback.ok > .i { color: var(--ok); }
.feedback.no { background: var(--warn-wash); }
.feedback.no > .i { color: var(--warn); }
.feedback > .i { width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.feedback p { margin-top: .2rem; }
.take { display: grid; gap: .7rem; counter-reset: t; }
.take li { counter-increment: t; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .9rem 1.1rem; background: var(--mist); border-radius: var(--r-lg); font-weight: 500; }
.take li::before { content: counter(t); font-weight: 600; font-size: 1.6rem; color: var(--primary); line-height: 1; font-family: var(--f-display); }
.qblocks { display: grid; gap: .9rem; }
.qb { padding: 1.05rem 1.2rem; background: var(--mist); border-radius: var(--r-lg); display: grid; gap: .5rem; }
.qb h2 { font-size: 1.05rem; }
.qb ul { display: grid; gap: .35rem; padding-left: 1.1rem; list-style: disc; }
.res { display: grid; place-items: center; padding-top: .5rem; }
.res .ring-fg { stroke: var(--ok); }
.res.fail .ring-fg { stroke: var(--warn); }
.review { border: 1px solid var(--line); border-radius: var(--r); padding: .25rem 1rem; }
.review summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rv { padding: .75rem 0; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.rv-a { color: var(--ok); font-weight: 600; display: flex; gap: .5rem; }
.res-cta { display: grid; gap: .7rem; }
.res-cta.left { display: flex; flex-wrap: wrap; margin-top: 1rem; }
#listen-btn { justify-self: start; }

/* ---------- Team ---------- */
.plist { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.plist > li + li { border-top: 1px solid var(--line); }
.plist > .empty { padding: 1.25rem; }
.grp-h { display: flex; align-items: center; justify-content: space-between; padding: .65rem 1.25rem; background: var(--mist); }
.grp-h h2 { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.grp-h span { font-size: .82rem; color: var(--ink-3); }
.plist > .grp-h + li, .plist > li + .grp-h { border-top: 1px solid var(--line); }
.pcard { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .75rem 1.25rem; min-height: 68px; text-align: left; transition: background .15s; }
.pcard:hover { background: var(--faint); }
.pc-n { font-size: .875rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; display: none; }
.pc-n.none { color: var(--ink-3); font-weight: 500; }
@media (min-width: 560px) { .pc-n { display: block; } }
.orgchart { padding: 1.25rem; overflow-x: auto; }
.tree { display: grid; gap: .6rem; }
.tree.roots { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }
.tree .tree { margin: .6rem 0 0 1.1rem; padding-left: 1.1rem; border-left: 2px solid var(--line-2); }
.tree.roots > li > .tree { margin-left: 1.1rem; }
.tree li { position: relative; min-width: 0; }
.tree .tree > li::before { content: ""; position: absolute; left: -1.1rem; top: 1.45rem; width: .9rem; border-top: 2px solid var(--line-2); }
.tnode { display: flex; align-items: center; gap: .7rem; padding: .5rem 1rem .5rem .55rem; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--pill); min-height: 54px; text-align: left; max-width: 100%; transition: border-color .15s, background .15s; }
.tnode:hover { border-color: var(--primary); background: var(--mist); }
.grp { margin-top: .6rem; margin-left: 1.1rem; }
.grp > summary { cursor: pointer; font-weight: 600; color: var(--link); min-height: 36px; display: flex; align-items: center; }
.grp > .tree { margin-left: 0; margin-top: .25rem; }
.contact { display: grid; justify-items: center; gap: .5rem; text-align: center; padding-top: .5rem; }
.contact h2 { font-size: 1.5rem; font-family: var(--f-display); color: var(--teal-deep); }
.ct-t { color: var(--ink-2); }
.ct-note { max-width: 34ch; margin: .1rem auto .4rem; font-size: .9rem; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.ct-r { font-size: .95rem; }
.nrows { display: grid; gap: .5rem; width: 100%; text-align: left; margin-block: .5rem; }
.nrow { display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem .5rem 1rem; background: var(--surface); border-radius: var(--r-lg); min-height: 56px; }
.panel .nrow { background: var(--surface); }
.nl { flex: 1; min-width: 0; display: grid; }
.nl b { font-weight: 600; font-size: .92rem; }
.nl small { color: var(--ink-3); font-size: .82rem; line-height: 1.35; }
.nrow .nv { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; user-select: all; overflow-wrap: anywhere; white-space: nowrap; }
.nrow .nv.muted { font-weight: 500; font-size: .88rem; user-select: auto; color: var(--ink-3); white-space: normal; text-align: right; }
.nrow .nv.sel { user-select: all; white-space: normal; }
.callsheet { display: grid; gap: .5rem; }
.callsheet h2 { font-size: 1.6rem; font-family: var(--f-display); color: var(--teal-deep); }
.callsheet h3 { font-size: 1rem; font-weight: 650; margin-top: .75rem; }
.em { background: var(--alert-wash); border-radius: var(--r-xl); padding: 1.1rem 1.2rem; display: grid; gap: .6rem; }
.em-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.em-top > .i { width: 1.9rem; height: 1.9rem; color: var(--alert); }
.em-top p { font-size: .9rem; color: var(--ink-2); }
.em-top strong { font-size: 1.15rem; color: var(--alert); }
.em-num { font-weight: 800; font-size: 2.4rem; color: var(--alert); line-height: 1; }
.em-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.em-list li { padding: .25rem .75rem; background: var(--surface); border-radius: var(--pill); font-size: .85rem; }
.em-after { font-weight: 600; }

/* ---------- Announcements ---------- */
.news { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.npost { display: grid; gap: .5rem; margin-bottom: 0; }
.npost h3 { font-size: 1.2rem; }
.npost p { color: var(--ink-2); max-width: 66ch; }
.np-top { display: flex; align-items: center; gap: .5rem; }
.np-top time { margin-left: auto; color: var(--ink-3); font-size: .85rem; }
.npost.shout { grid-template-columns: auto minmax(0, 1fr); background: var(--gold-wash); }
.sh-ic { width: 1.8rem; height: 1.8rem; color: var(--gold-ink); margin-top: .3rem; }

/* ---------- Me and documents ---------- */
.me-head { display: flex; align-items: center; gap: 1rem; padding-block: 1.5rem .5rem; }
.me-head h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--teal-deep); letter-spacing: -.018em; }
.me-head p { color: var(--ink-2); }
.glance.three { margin-top: .5rem; }
.docsum { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ground-2); box-shadow: none; padding: 1.4rem 1.5rem; margin-bottom: 2rem; }
.docsum-t { display: grid; gap: .4rem; min-width: 0; }
.docsum h2 { font-size: 1.4rem; font-family: var(--f-display); color: var(--teal-deep); }
.docsum p { color: var(--ink-2); font-size: .92rem; }
.docform h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-family: var(--f-display); }
.docform .muted { font-size: .9rem; }
.docform > p { margin-top: .4rem; }
.docform h3 { font-size: 1rem; margin-top: 1.1rem; }
.docform .stepper { margin-top: .6rem; }
.docform .btn.block { margin-top: .25rem; }
.docform .chips { margin-top: .5rem; }
.sect-note { margin: -.2rem 0 .7rem; }
@media (max-width: 480px) { .tabs button { gap: .4rem; font-size: .93rem; padding: 0 .95rem; } }
@media (max-width: 400px) { .tabs { width: 100%; } .tabs button { flex: 1 1 auto; justify-content: center; padding: 0 .65rem; font-size: .88rem; gap: .35rem; } }
.filebtn { display: flex; align-items: center; gap: .7rem; min-height: 54px; padding: 0 1.1rem; border: 2px dashed var(--line-2); border-radius: var(--r-lg); cursor: pointer; color: var(--primary); font-weight: 600; background: var(--faint); transition: background .15s, border-color .15s; }
.filebtn:hover { background: var(--mist); border-color: var(--primary); }
.fld .filebtn { display: flex; align-items: center; gap: .7rem; min-height: 54px; font-weight: 600; margin: 0; color: var(--primary); }
.filebtn svg { flex: none; width: 1.15em; height: 1.15em; }
.filebtn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fld:has(input[type="file"]:focus-visible) .filebtn { outline: 3px solid var(--primary); outline-offset: 2px; }
.doc-prev { display: grid; gap: .5rem; justify-items: start; }
.doc-prev img { max-height: 220px; border-radius: var(--r); border: 1px solid var(--line); }
.filechip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; background: var(--surface-2); border-radius: var(--pill); }
.tscroll { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.ts { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.ts th, .ts td { padding: .7rem .9rem; text-align: left; border-top: 1px solid var(--line); }
.ts thead th { background: var(--surface-2); color: var(--ink-2); border-top: 0; font-weight: 700; }
.ts .tc th, .ts .tc td { background: var(--faint); font-weight: 700; }
.reset { display: grid; gap: .75rem; margin-top: .75rem; }
.certificate { aspect-ratio: 1600 / 1130; width: 100%; max-width: 860px; margin: 1rem 0; background: var(--paper); color: var(--paper-ink); border: 7px solid var(--paper-teal); position: relative; container-type: inline-size; box-shadow: var(--shadow); }
.cf-in { position: absolute; inset: 2.2cqw; border: 2px solid var(--paper-gold); display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.1cqw; padding: 3cqw; }
.cf-brand { font-size: 3.6cqw; color: var(--paper-teal); display: flex; align-items: baseline; gap: .7cqw; }
.certificate .wm-h { font-size: 4.4cqw; }
.certificate .wm-s { font-size: 1.5cqw; }
.certificate .logo-img { height: 6cqw; }
.cf-k { font-weight: 700; letter-spacing: .18em; font-size: 1.7cqw; color: var(--bronze-ink); margin-top: 1cqw; }
.cf-s { font-size: 1.9cqw; color: var(--paper-mute); }
.cf-name { font-family: var(--f-display); font-size: 5.4cqw; color: var(--paper-teal); line-height: 1.1; overflow-wrap: anywhere; }
.cf-course { font-family: var(--f-display); font-size: 3.4cqw; color: var(--paper-ink); max-width: 80%; }
.cf-foot { display: flex; gap: 3cqw; font-size: 1.5cqw; color: var(--paper-mute); margin-top: 1.6cqw; }
.cf-foot .i { margin-right: .5cqw; }
.cf-fine { font-size: 1.3cqw; color: var(--paper-mute); }
@media (max-width: 599px) {
  .certificate { aspect-ratio: 5 / 6; border-width: 6px; }
  .cf-in { inset: 3cqw; gap: 2.4cqw; padding: 5cqw; }
  .cf-brand { font-size: 8cqw; }
  .certificate .wm-h { font-size: 9.5cqw; }
  .certificate .wm-s { font-size: 3cqw; }
  .certificate .logo-img { height: 12cqw; }
  .cf-k { font-size: 3.2cqw; margin-top: 2cqw; }
  .cf-s { font-size: 3.8cqw; }
  .cf-name { font-size: 10cqw; }
  .cf-course { font-size: 6.6cqw; max-width: 92%; }
  .cf-foot { flex-direction: column; align-items: center; gap: 1cqw; font-size: 3.2cqw; margin-top: 3cqw; }
  .cf-fine { font-size: 2.8cqw; }
}

/* ---------- layers (sheets and dialogs) ---------- */
.layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.layer.on { opacity: 1; }
.layer-back { position: absolute; inset: 0; background: rgba(10, 36, 33, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.layer-panel { position: relative; width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; background: var(--surface); border-radius: 30px 30px 0 0; padding: 1.75rem 1.35rem calc(1.75rem + env(safe-area-inset-bottom, 0px)); padding-left: max(1.35rem, env(safe-area-inset-left, 0px)); padding-right: max(1.35rem, env(safe-area-inset-right, 0px)); transform: translateY(24px); transition: transform .22s; outline: none; box-shadow: var(--shadow-lg); }
.layer.on .layer-panel { transform: none; }
.layer-x { position: absolute; top: .6rem; right: .6rem; }
.layer.dialog { align-items: center; padding: 16px; }
.layer.dialog .layer-panel { border-radius: var(--r-xl); max-width: 440px; max-height: calc(100% - 32px); }
.layer.tall .layer-panel { min-height: 55%; }
.layer.onboard .layer-x { display: none; }
@media (min-width: 700px) { .layer.sheet { align-items: center; padding: 24px; } .layer.sheet .layer-panel { border-radius: 30px; max-height: calc(100% - 48px); } }
.celebrate, .bdview { display: grid; justify-items: center; gap: .6rem; text-align: center; padding-top: .5rem; }
.cel-k { color: var(--gold-ink); font-weight: 700; font-family: var(--f-ui); }
.celebrate h2, .bdview h2 { font-size: 1.6rem; font-family: var(--f-display); color: var(--teal-deep); }
.celebrate p, .bdview p { color: var(--ink-2); }
.celebrate .btn, .bdview .btn { margin-top: .5rem; min-width: 180px; }
.onb { display: grid; gap: .5rem; }
.onb-brand { margin-bottom: .25rem; }
.onb h2 { font-size: 1.6rem; font-family: var(--f-display); margin-top: .25rem; color: var(--teal-deep); }
.onb p { color: var(--ink-2); }
.onb .btn { margin-top: .5rem; }
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; z-index: 90; background: var(--teal-deep); color: var(--paper); padding: .7rem 1.25rem; border-radius: var(--pill); font-family: var(--f-ui); font-size: .85rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow-lg); }
#toast.on { opacity: 1; translate: -50% 0; }
body.in-lesson #toast { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
body.has-layer #toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { #toast { bottom: 28px; } }

/* ---------- avatars with photos ---------- */
.av { overflow: hidden; }
.av.has-img { background: var(--surface-3); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.xl { width: 96px; height: 96px; font-size: 2rem; }
.topbar .av { background: var(--primary); color: var(--paper); }

/* ---------- Onboarding ---------- */
.onb-sum { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 1rem; align-items: center; padding: 1.5rem 1.4rem; margin-bottom: 2rem; border-radius: var(--r-2xl); color: var(--paper); background: radial-gradient(120% 140% at 90% 0%, #1F6159 0%, rgba(31, 97, 89, 0) 55%), linear-gradient(135deg, #0F3A36 0%, #184E49 75%); box-shadow: none; }
.onb-sum-t { display: grid; gap: .45rem; min-width: 0; }
.onb-sum-t strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.12; letter-spacing: -.012em; color: var(--paper); }
.onb-sum-t .muted { color: rgba(254, 249, 243, .8); }
.onb-sum .bar { margin-top: .5rem; background: rgba(254, 249, 243, .18); }
.onb-sum .bar i { background: var(--gold); }
.onb-pin { position: relative; margin-top: .25rem; height: 1.7rem; }
.onb-pin .pin { position: absolute; top: 0; left: var(--x); translate: -50% 0; width: 1.05rem; color: var(--gold); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.onb-pin .pin { height: auto; aspect-ratio: 147 / 210; }
@media (min-width: 640px) { .onb-sum { padding: 2rem 2.4rem; } }
.sect-h > div p { margin-top: .15rem; }
.stat-dot { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; flex: none; color: var(--paper); font-size: .8rem; background: transparent; transition: background .2s; }
.stat-dot.on { background: var(--primary); box-shadow: none; color: var(--on-primary); }
.stat-dot.nx { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); background: color-mix(in srgb, var(--gold) 30%, var(--surface)); }
.onb-row.is-done .row-t strong { color: var(--ink-2); }
.onbform { display: grid; gap: .75rem; }
.onbform h2 { font-family: var(--f-display); font-size: 1.6rem; color: var(--teal-deep); }
.onbform h3 { font-size: 1rem; margin-top: .25rem; }
.onbform .stepper { margin-block: .25rem; }

/* ---------- Ask ---------- */
.notice.alert { background: var(--alert-wash); }
.notice.alert .i { color: var(--alert); }
.privacy { display: flex; align-items: flex-start; gap: .5rem; margin: .65rem 0 1.1rem; color: var(--ink-3); font-size: .88rem; }
.privacy .i { margin-top: .2rem; color: var(--primary); }
.tile-ic.emergency { background: var(--alert-wash); color: var(--alert); }
.tile-ic.now { background: var(--now-wash); color: var(--now); }
.tile-ic.today { background: var(--gold-wash); color: var(--gold-ink); }
.tile-ic.note { background: var(--wash); color: var(--primary); }
.tile-ic.rose { background: var(--alert-wash); color: #8E3A30; }
.lvgrp { padding: 0; overflow: hidden; }
.lvgrp > summary { display: flex; align-items: center; gap: .65rem; min-height: 58px; padding: .6rem 1.4rem; cursor: pointer; font-weight: 600; list-style: none; }
.lvgrp > summary::-webkit-details-marker { display: none; }
.lvgrp > summary span:nth-child(2) { flex: 1; }
.lvgrp > summary small { color: var(--ink-3); font-weight: 500; }
.lvgrp[open] > summary .chev { transform: rotate(180deg); }
.lvgrp .lvdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lvgrp.emergency .lvdot { background: var(--alert); }
.lvgrp.now .lvdot { background: var(--now); }
.lvgrp.today .lvdot { background: var(--gold); }
.lvgrp.note .lvdot { background: var(--primary); }
.lvgrp > .rows { padding: 0 1.4rem .5rem; border-top: 1px solid var(--line); }
.lvl { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem; border-radius: var(--r-lg); font-size: 1.05rem; margin-top: .75rem; }
.lvl .i { width: 1.3rem; height: 1.3rem; }
.lvl.emergency { background: var(--alert-solid); color: #fff; }
.lvl.now { background: var(--now-wash); color: var(--now); }
.lvl.today { background: var(--gold-wash); color: var(--gold-ink); }
.lvl.note { background: var(--wash); color: var(--primary-2); }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 760px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tick.no .i { color: var(--bad); }
.search .i { z-index: 1; }

/* ---------- Ask helper (the agent) ---------- */
.ag-starters { margin-top: .85rem; }
.ag-h { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; color: var(--teal-deep); margin: 2rem 0 .85rem; letter-spacing: -.01em; }
.ag-text { display: grid; gap: .7rem; overflow-wrap: anywhere; line-height: 1.6; }
.ag-text p { max-width: 62ch; }
.ag-text ol, .ag-text ul { padding-left: 1.3rem; display: grid; gap: .45rem; }
.ag-text ol { list-style: decimal; }
.ag-text ul { list-style: disc; }
.ag-text li::marker { color: var(--bronze-ink); font-weight: 600; }
.ag-steps { display: flex; flex-wrap: wrap; gap: .4rem; }
.ag-steps li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem .25rem .55rem; border-radius: var(--pill); background: var(--sage-wash); color: var(--sage-ink); font-family: var(--f-ui); font-size: .76rem; font-weight: 600; }
.ag-steps li .i { width: .95rem; height: .95rem; }
details.ag-steps { display: block; }
details.ag-steps > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; font-family: var(--f-ui); font-size: .78rem; font-weight: 600; color: var(--ink-3); }
details.ag-steps > summary::-webkit-details-marker { display: none; }
details.ag-steps > summary .chev { width: .9rem; height: .9rem; transition: transform .15s; }
details.ag-steps[open] > summary .chev { transform: rotate(180deg); }
details.ag-steps > ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
details.ag-steps > ul li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem .25rem .55rem; border-radius: var(--pill); background: var(--sage-wash); color: var(--sage-ink); font-family: var(--f-ui); font-size: .76rem; font-weight: 600; }
details.ag-steps > ul li .i { width: .95rem; height: .95rem; }
.think { display: flex; align-items: center; gap: .65rem; color: var(--ink-3); font-size: .95rem; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .25; animation: agdot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes agdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ag-cards { display: grid; gap: .5rem; }
.ag-cards .nrows { margin-block: 0; }
.ag-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: .1rem .8rem; }
.ag-foot { display: flex; align-items: flex-start; gap: .75rem; flex-wrap: wrap; color: var(--ink-3); font-size: .82rem; }
.ag-foot span { flex: 1; min-width: 14rem; padding-top: .55rem; }
.ag-emerg { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ag-emerg .lvl { margin: 0; border-radius: 0; font-family: var(--f-ui); }
.ag-em-b { display: grid; gap: .8rem; padding: 1.1rem 1.3rem 1.3rem; }
.ag-em-b h3 { font-family: var(--f-ui); font-size: .95rem; font-weight: 700; margin-top: .25rem; }
.ag-em-b .nrows { margin-block: 0; }
.ag-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- the chat box ---------- */
.notice.slim { padding: .7rem 1rem; margin-block: 0 1rem; font-size: .95rem; }
.ask-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1040px) { .ask-grid { grid-template-columns: minmax(0, 1fr) 23rem; gap: 2rem; } .ask-side .ag-h:first-child { margin-top: 0; } }
.ask-side .card.lvgrp { margin-bottom: .6rem; }
.chat { position: relative; display: flex; flex-direction: column; height: clamp(30rem, calc(100dvh - var(--head-h) - 8.5rem), 56rem); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem .7rem 1rem; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.chat-id .row-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chat-id strong { font-family: var(--f-ui); font-size: .95rem; }
.chat-av, .m-av, .chat-mark { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.chat-av { width: 38px; height: 38px; }
.chat-av .pin { width: 13px; height: 19px; color: var(--cream); }
.chat-tools { display: flex; gap: .25rem; flex: none; }
.cbtn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .8rem; border-radius: var(--pill); background: transparent; color: var(--primary); font-family: var(--f-ui); font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.cbtn:hover { background: var(--wash); }
.cbtn[aria-expanded="true"] { background: var(--wash); }
.cbtn:disabled { opacity: .4; cursor: default; background: transparent; }
.cbtn .i { width: 1.05rem; height: 1.05rem; }
@media (max-width: 400px) { .cbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .cbtn { padding: 0; width: 40px; justify-content: center; } }
.chat-body { position: relative; flex: 1; min-height: 0; }
.chat-log { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1rem 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.chat-log:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.msg { display: grid; gap: .85rem; min-width: 0; }
.m-you { justify-self: end; max-width: min(34rem, 86%); }
.m-you p { padding: .65rem 1.05rem; border-radius: 20px 20px 6px 20px; background: var(--primary); color: var(--on-primary); overflow-wrap: anywhere; }
.m-bot { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .7rem; align-items: start; }
.m-av { width: 30px; height: 30px; }
.m-av .pin { width: 10px; height: 15px; color: var(--cream); }
.m-in { display: grid; gap: .75rem; min-width: 0; padding-top: .2rem; }
.chat-empty { margin: auto; max-width: 34rem; text-align: center; display: grid; justify-items: center; gap: .6rem; padding-block: .5rem; }
.chat-mark { width: 56px; height: 56px; }
.chat-mark .pin { width: 19px; height: 27px; color: var(--cream); }
.chat-empty h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.75rem; color: var(--teal-deep); letter-spacing: -.01em; }
.chat-empty > p { color: var(--ink-2); max-width: 30rem; }
.chat-empty .ag-starters { justify-content: center; margin-top: .35rem; }
.chat-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1rem 1rem; margin-top: .9rem; }
.chat-meta .link { font-size: inherit; font-weight: 500; border-bottom-width: 1px; }
@media (max-width: 560px) { .chat:has(.chat-empty) { height: auto; min-height: 30rem; } .chat-empty { gap: .5rem; } .chat-empty .chat-mark { display: none; } .chat-empty h2 { font-size: 1.55rem; } .chat-meta { margin-top: .4rem; } }
.chat-hist { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: var(--surface); overflow-y: auto; }
.chat-hist[hidden] { display: none; }
.hist-h { display: flex; align-items: center; justify-content: space-between; padding: .55rem .85rem .55rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--f-ui); }
.hist-list { flex: 1; }
.hist-list li { display: flex; align-items: center; gap: .25rem; padding-right: .6rem; border-bottom: 1px solid var(--line); }
.hist-list li.on { background: var(--mist); }
.hist-open { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; padding: .85rem 0 .85rem 1.1rem; cursor: pointer; }
.hist-open strong { font-family: var(--f-ui); font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-open small { color: var(--ink-3); font-size: .8rem; }
.hist-empty { padding: 2rem 1.25rem; text-align: center; display: grid; gap: .4rem; }
.hist-f { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; flex-wrap: wrap; }
.hist-f.confirm { display: grid; background: var(--alert-wash); }
.chat-in { padding: .55rem .8rem .7rem; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: .4rem; }
.cbox { display: flex; align-items: flex-end; gap: .5rem; padding: .3rem .3rem .3rem 1.05rem; border-radius: 26px; background: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
.cbox:focus-within { box-shadow: inset 0 0 0 2px var(--primary); background: #fff; }
.cbox textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; outline: none; padding: .55rem 0; font-size: 1rem; line-height: 1.45; color: var(--ink); max-height: 150px; }
.cbox textarea::placeholder { color: var(--ink-3); }
.send { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--teal-deep); cursor: pointer; transition: background .15s, transform .1s; }
.send:hover { background: var(--gold-2); }
.send:active { transform: scale(.95); }
.send.stop { background: var(--primary); color: var(--on-primary); }
.send .i { width: 1.25rem; height: 1.25rem; }
.ag-notice { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .85rem; border-radius: var(--r); background: var(--gold-wash); color: var(--gold-ink); font-size: .9rem; }
.ag-notice[hidden] { display: none; }
.ag-notice .i { margin-top: .2rem; flex: none; }
.chat-fine { display: flex; align-items: flex-start; gap: .4rem; padding-inline: .5rem; font-size: .76rem; line-height: 1.4; color: var(--ink-3); }
.chat-fine .i { width: .8rem; height: .8rem; margin-top: .15rem; flex: none; }
.chat .ag-emerg { box-shadow: 0 0 0 1px var(--line-2); }
.only-m { display: none; }
@media (max-width: 1039px) { .only-m { display: inline-flex; margin-top: .2rem; } }
@media (max-width: 1039px) {
  .chat { height: calc(100dvh - var(--head-h) - env(safe-area-inset-top, 0px) - 8.9rem - 78px - env(safe-area-inset-bottom, 0px)); min-height: 24rem; }
}
@media (max-width: 640px) {
  .chat { border-radius: var(--r-lg); }
  .chat-log { padding-inline: .8rem; }
  .m-in .nrows { margin-inline: 0; }
}

/* ---------- Profile ---------- */
.prof-photo { display: flex; align-items: center; gap: 1.25rem; }
.prof-photo-t { display: grid; gap: .35rem; min-width: 0; }
.prof-photo-t .fld { margin-block: .25rem 0; }
.prof-photo-t h2 { font-size: 1.05rem; }
@media (max-width: 480px) { .prof-photo { flex-direction: column; align-items: flex-start; } }
.count { text-align: right; }
.pv { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.facts, .about dl { display: grid; gap: .1rem; margin: 0; }
.facts dt, .about dt { font-size: .82rem; font-weight: 600; color: var(--ink-3); margin-top: .6rem; }
.facts dd, .about dd { margin: 0; }
.about { width: 100%; text-align: left; margin-top: .25rem; }
.about h3 { font-size: 1rem; }

/* ---------- misc ---------- */
.fld label { display: block; }
.about, .prof-photo { max-width: 100%; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* brand mark in place of photos until real ones are added */
.hero-ph.motif { display: flex; justify-content: flex-end; align-items: center; padding-right: 8%; -webkit-mask-image: none; mask-image: none; }
.hero-ph.motif .pin { height: 150px; width: auto; color: var(--cream); opacity: .08; }
@media (min-width: 900px) { .hero-ph.motif { width: 46%; padding-right: 6%; } .hero-ph.motif .pin { height: 82%; opacity: .07; } }
.mission.no-ph { background: linear-gradient(160deg, var(--teal) 0%, var(--deep) 100%); }
.mission.no-ph::after { display: none; }
.mission-pin { position: absolute; right: 8%; top: 14%; height: 58%; width: auto; color: var(--cream); opacity: .1; z-index: -1; }

/* who the helper is talking to */
.ag-who { margin: 0; color: var(--ink-3); font-size: .82rem; text-align: center; }
.ag-who strong { font-weight: 600; color: var(--ink-2); }
.ag-who.ask { display: grid; gap: .5rem; width: 100%; max-width: 24rem; margin: .4rem auto 0; padding: .7rem .95rem; border-radius: var(--r); background: var(--mist); color: var(--ink-2); font-size: .86rem; text-align: left; }
.ag-foot .ag-model { display: block; flex: none; min-width: 0; padding-top: 0; margin-top: .25rem; color: var(--ink-3); }
.nv[hidden] { display: none; }
.row .chip { margin-left: auto; flex: none; }
.chips.wrap .fchip { max-width: 100%; height: auto; padding-block: .55rem; white-space: normal; text-align: left; line-height: 1.3; }

/* ---------- Messages ----------
   Modeled on Messages on iPhone and Mac: a conversation list with a large title, a search field and an unread dot; a conversation of bubbles with
   tails on the last bubble of a run; a rounded message box with a round send button. One screen at a time on a phone, two panes on a computer. */
.msgbtn { display: inline-grid; }
.msgbtn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--bg); }
.msgbtn[aria-current="page"] { background: rgba(24, 78, 73, .1); color: var(--primary); }
@media (max-width: 479px) {
  .topbar-in { gap: .1rem; }
  .brand { margin-right: 0; }
  .callbtn, .askbtn { padding: 0; width: 40px; min-width: 40px; }
  .me-btn { padding: 0; min-width: 40px; justify-content: center; }
  .msgbtn { width: 40px; height: 40px; }
  .msgbtn .dot { top: 8px; right: 9px; }
}
/* the very narrowest phones keep the header to the logo, Ask, Who to call and the profile; Messages stays in Home and Team */
@media (max-width: 359px) { .msgbtn { display: none; } }
.nv-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--terracotta); color: var(--paper); font: 700 .7rem/22px var(--f-ui); text-align: center; }
.ct-act { width: 100%; display: flex; margin-top: .5rem; }
.ct-act .btn { flex: 1; }
/* small pieces the Home card uses */
.mg-pre { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mg-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: var(--on-primary); font: 700 .72rem/22px var(--f-ui); text-align: center; flex: none; }
.row.unread .row-t strong { color: var(--teal-deep); }
.row.unread .mg-pre { color: var(--ink); font-weight: 600; }
.av.av-grp { background: var(--ink-3); color: var(--paper); }

.mp { --rx: var(--wash); --tx: var(--primary); --pane: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.mp button { font-family: inherit; }
.mp-gate { display: grid; gap: .5rem; padding-top: 2rem; max-width: 32rem; }
.mp-gate h1 { font: 800 2rem/1.1 var(--f-ui); letter-spacing: -.02em; }

/* ----- the list ----- */
.mp-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mp-lh { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.35rem 0 .35rem; }
.mp-lh h1 { font: 800 2rem/1.1 var(--f-ui); letter-spacing: -.025em; color: var(--ink); }
.mp-compose { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--wash); color: var(--primary); flex: none; transition: background .15s, transform .1s; }
.mp-compose:hover { background: var(--teal-line); }
.mp-compose:active { transform: scale(.94); }
.mp-search { position: relative; margin: .35rem 0 .6rem; }
.mp-search .i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--ink-3); pointer-events: none; }
.mp-search input { width: 100%; min-height: 38px; padding: 0 .8rem 0 2.25rem; border: 0; border-radius: 12px; background: rgba(21, 48, 45, .07); color: var(--ink); font-size: 1rem; }
.mp-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.mp-em { display: flex; align-items: center; gap: .5rem; margin: .1rem 0 .35rem; padding: .45rem .7rem; border-radius: 12px; background: var(--alert-wash); font-size: .82rem; line-height: 1.35; }
.mp-em .i { width: 1rem; height: 1rem; color: var(--alert); flex: none; }
.mp-em .link { font-size: .82rem; min-height: 0; }
.mp-rows { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mp-rows > li { position: relative; }
.mp-rows > li + li::before { content: ""; position: absolute; top: 0; left: calc(14px + 48px + 1rem); right: 0; height: 1px; background: var(--line); }
.mp-row { display: grid; grid-template-columns: 14px 48px minmax(0, 1fr); align-items: center; gap: .5rem; width: 100%; padding: .7rem .6rem .7rem 0; text-align: left; border-radius: 12px; color: var(--ink); transition: background .12s; }
.mp-row:hover { background: rgba(21, 48, 45, .045); }
.mp-row .av { width: 48px; height: 48px; font-size: 1rem; }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; justify-self: center; background: transparent; }
.mp-row.unread .mp-dot { background: var(--primary); }
.mp-rt { display: grid; gap: .1rem; min-width: 0; }
.mp-r1 { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; min-width: 0; }
.mp-r1 strong { font: 600 1rem/1.3 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mp-r1 time { flex: none; font-size: .84rem; color: var(--ink-3); }
.mp-r2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.mp-row.unread .mp-r1 strong { color: var(--teal-deep); }
.mp-row.unread .mp-r2 { color: var(--ink-2); }
.mp-row.on { background: var(--primary); color: var(--on-primary); }
.mp-row.on .mp-r1 strong, .mp-row.on .mp-r1 time, .mp-row.on .mp-r2 { color: var(--on-primary); }
.mp-row.on .mp-r2 { opacity: .86; }
.mp-row.on .mp-dot { background: transparent; }
.mp-empty { list-style: none; display: grid; justify-items: center; gap: .6rem; text-align: center; padding: 2.5rem .5rem 1.5rem; color: var(--ink-2); }
.mp-empty h2 { font: 700 1.2rem var(--f-ui); color: var(--ink); }
.mp-empty p { max-width: 24rem; }
.mp-empty-ic { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--wash); color: var(--primary); font-size: 1.5rem; }
.mp-prev { display: grid; gap: .35rem; margin-top: 1rem; padding: .8rem .2rem 0; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.4; color: var(--ink-3); }

/* ----- the conversation ----- */
.mp-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--pane); }
.mp-th { display: grid; grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr); align-items: center; gap: .25rem; padding: .35rem .5rem; border-bottom: 1px solid var(--line); background: var(--pane); flex: none; }
.mp-back { justify-self: start; display: inline-flex; align-items: center; gap: .15rem; min-height: 44px; padding: 0 .5rem 0 .15rem; color: var(--primary); font: 500 1rem var(--f-ui); border-radius: 12px; }
.mp-back .i { width: 1.7rem; height: 1.7rem; }
.mp-bc { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--wash); color: var(--primary); font: 600 .78rem/22px var(--f-ui); text-align: center; }
.mp-ttl { justify-self: center; font: 600 1rem var(--f-ui); }
.mp-who { justify-self: center; display: grid; justify-items: center; gap: .15rem; min-width: 0; max-width: 100%; padding: .2rem .7rem; border-radius: 12px; }
.mp-who:hover { background: rgba(21, 48, 45, .05); }
.mp-who .av { width: 40px; height: 40px; font-size: .85rem; }
.mp-who .nm { display: inline-flex; align-items: center; gap: .1rem; max-width: 100%; font: 500 .74rem/1.2 var(--f-ui); color: var(--ink); }
.mp-who .nm .i { width: .7rem; height: .7rem; color: var(--ink-3); flex: none; }
.mp-tools { justify-self: end; display: flex; }
.mp-tools .icon-btn { color: var(--primary); }
.mp-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .5rem .9rem .75rem; display: flex; flex-direction: column; }
.mp-log:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.mp-ts { align-self: center; margin: .9rem 0 .35rem; font-size: .72rem; color: var(--ink-3); text-align: center; }
.mp-ts b { font-weight: 600; }
.mp-m { display: flex; align-items: flex-end; gap: .55rem; margin-top: 2px; min-width: 0; }
.mp-m.first { margin-top: .6rem; }
.mp-m.me { justify-content: flex-end; }
.mp-avslot { width: 28px; flex: none; position: relative; z-index: 1; }
.mp-avslot .av { width: 28px; height: 28px; font-size: .62rem; }
.mp-bw { display: grid; min-width: 0; max-width: min(75%, 30rem); }
.mp-m.me .mp-bw { justify-items: end; }
.mp-nm { padding: 0 .85rem .15rem; font-size: .72rem; color: var(--ink-3); }
.mp-b { position: relative; width: fit-content; max-width: 100%; padding: .5rem .85rem; border-radius: 18px; background: var(--rx); color: var(--ink); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.mp-m.me .mp-b { background: var(--tx); color: var(--on-primary); }
/* the tail, drawn the way Messages does it: a rounded corner of the bubble's color, cut by a corner of the pane's color */
.mp-m.last .mp-b::before, .mp-m.last .mp-b::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.mp-m.last:not(.me) .mp-b::before { left: -7px; width: 20px; background: var(--rx); border-bottom-right-radius: 16px 14px; }
.mp-m.last:not(.me) .mp-b::after { left: -26px; width: 26px; background: var(--pane); border-bottom-right-radius: 10px; }
.mp-m.last.me .mp-b::before { right: -7px; width: 20px; background: var(--tx); border-bottom-left-radius: 16px 14px; }
.mp-m.last.me .mp-b::after { right: -26px; width: 26px; background: var(--pane); border-bottom-left-radius: 10px; }
.mp-st { align-self: flex-end; padding: .2rem .3rem 0; font-size: .72rem; font-weight: 600; color: var(--ink-3); }
.mp-st.has-who { font-family: var(--f-ui); text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; border-radius: 6px; min-height: 28px; }
.mp-st.has-who:hover, .mp-st.has-who:focus-visible { color: var(--primary); }
.mp-st.has-who:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* who has read it: a small card that floats above the line */
.mp-pop { position: fixed; z-index: 55; width: max-content; min-width: 13rem; max-width: min(19rem, calc(100vw - 16px)); padding: .75rem .9rem .8rem; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 16px 36px -12px rgba(15, 58, 54, .45); font-family: var(--f-ui); pointer-events: none; }
.mp-pop .pp-h { font: 700 .82rem var(--f-ui); color: var(--ink); margin-bottom: .3rem; }
.mp-pop .pp-s { margin-top: .55rem; font: 600 .72rem var(--f-ui); color: var(--ink-3); }
.mp-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mp-pop li { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.mp-pop li .av { width: 26px; height: 26px; font-size: .58rem; }
.mp-pop li .nm { flex: 1; min-width: 0; font-size: .85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-pop li time { flex: none; font-size: .74rem; color: var(--ink-3); }
.mp-pop ul.un li { opacity: .72; }
.mp-m.pop .mp-b { animation: mpPop .2s cubic-bezier(.2, .8, .3, 1) both; transform-origin: bottom right; }
.mp-m.pop:not(.me) .mp-b { transform-origin: bottom left; }
@keyframes mpPop { from { transform: translateY(8px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mp-m.pop .mp-b { animation: none; } }

/* the message box */
.mp-in { flex: none; display: grid; gap: .3rem; padding: .4rem .7rem calc(.4rem + env(safe-area-inset-bottom, 0px) * 0); background: var(--pane); }
.mp-comp { display: flex; align-items: flex-end; gap: .4rem; min-height: 44px; padding: .25rem .3rem .25rem 1rem; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); transition: border-color .15s; }
.mp-comp:focus-within { border-color: var(--primary); }
.mp-comp textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: .45rem 0; font: 400 1rem/1.35 var(--f-body); color: var(--ink); max-height: 130px; }
.mp-comp textarea::placeholder { color: var(--ink-3); }
.mp-send { flex: none; width: 34px; height: 34px; margin-bottom: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .15s, transform .15s; }
.mp-comp.has-text .mp-send { opacity: 1; transform: none; pointer-events: auto; }
.mp-send:hover { background: var(--primary-2); }
.mp-send .i { width: 1.1rem; height: 1.1rem; stroke-width: 2.6; }
.mp-fine { padding: 0 .6rem; font-size: .7rem; line-height: 1.4; color: var(--ink-3); text-align: center; }
.mp-fine .link { font-size: .7rem; min-height: 0; }
.mg-emerg { max-height: 46vh; overflow-y: auto; margin-bottom: .25rem; }

/* a new message */
.mp-to { display: flex; align-items: flex-start; gap: .5rem; flex: none; padding: .4rem .9rem; border-bottom: 1px solid var(--line); }
.mp-to label { padding-top: .5rem; color: var(--ink-3); font-size: 1rem; }
.mp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; flex: 1; min-width: 0; }
.mp-chiplist, #mp-chiplist { display: contents; }
.mp-chip { display: inline-flex; align-items: center; gap: .15rem; min-height: 32px; padding: 0 .25rem 0 .7rem; border-radius: 16px; background: var(--wash); color: var(--primary); font: 500 .95rem var(--f-ui); }
.mp-chip button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); }
.mp-chip button:hover { background: rgba(24, 78, 73, .14); }
.mp-chip .i { width: .85rem; height: .85rem; }
.mp-to input { flex: 1; min-width: 7rem; min-height: 38px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.mp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mp-sug { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .9rem 1rem; }
.mp-sug h3 { padding: .9rem 0 .25rem; font: 600 .76rem var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }
.mp-ps { list-style: none; margin: 0; padding: 0; }
.mp-ps > li + li { border-top: 1px solid var(--line); }
.mp-p { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .45rem 0; text-align: left; }
.mp-p:hover { background: rgba(21, 48, 45, .04); }
.mp-p .av { width: 40px; height: 40px; font-size: .85rem; flex: none; }
.mp-pt { display: grid; min-width: 0; }
.mp-pt strong { font: 600 .95rem/1.3 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-pt small { color: var(--ink-3); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-nores { padding: 1rem 0; color: var(--ink-3); }
.mp-hint, .mp-none { margin: auto; display: grid; justify-items: center; gap: .5rem; max-width: 22rem; padding: 2rem 1.2rem; text-align: center; color: var(--ink-2); }
.mp-hint small { color: var(--ink-3); }
.mp-none h2 { font: 700 1.3rem var(--f-ui); color: var(--ink); }
.mp-info { display: grid; gap: .25rem; }
.mp-info-top { display: grid; justify-items: center; gap: .3rem; text-align: center; padding-top: .5rem; }
.mp-info-top .av { width: 72px; height: 72px; font-size: 1.4rem; }
.mp-info-top h2 { font: 700 1.3rem var(--f-ui); }
.mp-info h3 { margin-top: 1rem; font: 600 .78rem var(--f-ui); color: var(--ink-3); }

/* phones: one screen at a time. Opening a conversation fills the screen like Messages does and the tab bar steps aside. */
@media (max-width: 899px) {
  .mp.list-view .mp-pane, .mp.thread-view .mp-list, .mp.new-view .mp-list { display: none; }
  .mp.thread-view, .mp.new-view { height: calc(var(--vvh, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  body.mg-thread .topbar, body.mg-thread .tabbar { display: none; }
  body.mg-thread .main { padding-bottom: 0; }
  body.mg-thread .main > .gut { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .mp.thread-view .mp-pane, .mp.new-view .mp-pane { height: 100%; }
  .mp-th { padding-top: calc(.35rem); }
}
/* computers: the list beside the conversation, like Messages on a Mac */
@media (min-width: 900px) {
  .mp { grid-template-columns: 330px minmax(0, 1fr); height: clamp(32rem, calc(100dvh - var(--head-h) - 3.25rem), 60rem); margin-top: 1.5rem; border-radius: 22px; background: var(--pane); box-shadow: var(--shadow); overflow: hidden; }
  .mp-list { padding: 0 .7rem .8rem; background: var(--faint); border-right: 1px solid var(--line); overflow-y: auto; }
  .mp-lh { padding-top: 1.1rem; }
  .mp-lh h1 { font-size: 1.6rem; }
  .mp-rows { overflow: visible; flex: none; }
  .mp-chev { visibility: hidden; }
  .mp-th { grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr); padding: .5rem .75rem; }
  .mp-log { padding-inline: 1.5rem; }
  .mp-in { padding: .5rem 1.2rem .8rem; }
  .mp-ts { margin-top: 1.1rem; }
}
@media (min-width: 1200px) { .mp { grid-template-columns: 360px minmax(0, 1fr); } }

/* ---------- Practice mode for the hiring paperwork ---------- */
.onb-practice { margin-top: .9rem; }
.pf-dates { display: grid; gap: .6rem; margin: .25rem 0 .75rem; }
.pf-dates li { display: grid; gap: .1rem; }
.pf-dates strong { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; }
.pf-dates span { color: var(--ink-2); font-size: .92rem; }
.pf-start { margin-top: 0; }
.pf-start input[type="date"] { max-width: 280px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 1rem; }
.pf-grid > .fld { min-width: 0; }
.fld input[type="text"]:invalid { box-shadow: none; }
.pf-ssn-note { margin: -.55rem 0 .5rem; color: var(--ink-3); }
.pf-ssn-note.bad { color: var(--bad); font-weight: 600; }
.pf-card .bar { margin-top: .35rem; }
.pf-step { margin-top: 1.1rem; }
.pf-step h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--teal-deep); letter-spacing: -.01em; }
.pf-step h2:focus { outline: none; }
.pf-step h3 { font-size: 1rem; margin-top: 1.2rem; }
.pf-step > p { margin-top: .4rem; }
.pf-err { margin-top: .75rem; }
.pf-err:focus { outline: none; }
.pf-opts { display: grid; gap: .75rem; margin-block: 1rem; }
.pf-opt { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; min-height: 56px; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; margin-top: .75rem; }
.pf-opts .pf-opt { margin-top: 0; }
.pf-opt input { width: 24px; height: 24px; flex: none; margin-top: .1rem; accent-color: var(--primary); }
.pf-opt > span { display: grid; gap: .15rem; min-width: 0; }
.pf-opt strong { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; }
.pf-opt small { color: var(--ink-3); font-size: .875rem; }
.pf-opt:has(input:checked) { border-color: var(--primary); background: var(--wash); }
.pf-opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 2px; }
.pf-pad { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #fff; }
.pf-clear { justify-self: start; }
.pf-sum { margin: .75rem 0 0; }
.pf-kv { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .2rem 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.pf-kv dt { color: var(--ink-3); font-family: var(--f-ui); font-weight: 600; font-size: .875rem; }
.pf-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pf-kv { grid-template-columns: minmax(0, 1fr); } }
.pf-sigimg { display: block; max-width: 100%; height: auto; max-height: 120px; margin-top: .75rem; padding: .25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pf-trks { display: grid; margin-top: .5rem; }
.pf-trk { display: flex; align-items: center; justify-content: space-between; gap: .9rem; padding: .75rem 0; }
.pf-trk + .pf-trk { border-top: 1px solid var(--line); }
.pf-trk .row-t { flex: 1; }
.pf-log { display: grid; margin-top: .75rem; }
.pf-log li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.pf-log li > span { min-width: 0; overflow-wrap: anywhere; }
.pf-log time { color: var(--ink-3); font-size: .85rem; white-space: nowrap; flex: none; }
.pf-erase { margin-bottom: 1rem; }
.row-t .pf-st { justify-self: start; margin-top: .35rem; }
.pf-ul { display: grid; gap: .45rem; padding-left: 1.25rem; list-style: disc; margin-top: .4rem; }
.pf-ul.small { font-size: .92rem; margin-block: .5rem .9rem; }
.pf-jurat { margin: .5rem 0 .35rem; padding: 1rem 1.15rem; border-left: 4px solid var(--gold); background: var(--wash); border-radius: 0 var(--r) var(--r) 0; font-size: 1.02rem; line-height: 1.55; }
.row .row-t .chip.pf-st { margin-left: 0; }
.pf-trk .row-t + .chip { margin-left: 0; }
.card.tint h3 { margin-top: 1.1rem; }

.pf-dl { display: grid; gap: .5rem; justify-items: start; margin: 1rem 0 .5rem; }
.pf-dl .btn { max-width: 100%; }
.pf-saved-list { margin-top: .5rem; }
.pf-saved { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.pf-saved .row { flex: 1 1 14rem; min-width: 0; }
.pf-saved > .btn { flex: none; }

/* ---------- Documents (hiring paperwork + credentials), onboarding on Home, photo and scan uploads ---------- */
.sub-h { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; color: var(--ink-2); margin: 1.2rem 0 .15rem; }
.sub-h:first-of-type { margin-top: .4rem; }
.docsum2 { padding: 1.4rem 1.5rem; margin-bottom: 2.25rem; }
.stats3.two { gap: 1.25rem; }
.stats3.lone { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 640px) { .stats3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.stat3 .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem; }
div.stat3 { cursor: default; }
.pf-tools { padding: 0; overflow: hidden; margin-top: 1rem; }
.pf-tools > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; font-family: var(--f-ui); font-weight: 600; min-height: 56px; align-items: center; }
.pf-tools > summary::-webkit-details-marker { display: none; }
.pf-tools > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-left: .5rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.pf-tools[open] > summary::after { transform: rotate(-135deg); }
.pf-tools > summary small { margin-left: auto; font-weight: 500; }
.pf-tools-b { padding: 0 1.4rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.pf-tools-b .card { margin-bottom: 0; }

/* onboarding steps on Home: a route, then one folding card per group */
.onb-home .onb-route { margin-bottom: 1rem; }
.card.onb-g { padding: 0; overflow: hidden; margin-bottom: .8rem; scroll-margin-top: calc(var(--head-h) + 12px); transition: box-shadow .25s, background .25s; }
.onb-g > summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "n t c" ". p p"; align-items: center; column-gap: .9rem; row-gap: 0; padding: 1rem 1.2rem; min-height: 68px; cursor: pointer; list-style: none; }
.onb-g > summary::-webkit-details-marker { display: none; }
.og-n { grid-area: n; align-self: start; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-3); font: 700 .9rem/1 var(--f-ui); font-variant-numeric: lining-nums; }
.og-n .i { width: 1.1rem; height: 1.1rem; }
.onb-gt { grid-area: t; display: grid; gap: 2px; min-width: 0; }
.onb-gt strong { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.onb-gt small { color: var(--ink-3); font-size: .875rem; line-height: 1.45; }
.onb-chev { grid-area: c; color: var(--ink-3); transition: transform .2s; }
.onb-g[open] .onb-chev { transform: rotate(180deg); }
.og-prog { grid-area: p; display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.og-bar { flex: 1; max-width: 15rem; height: 6px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--teal) 11%, var(--ground-2)); }
.og-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--primary); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.og-prog b { font: 700 .78rem/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.og-tag { font-style: normal; font: 700 .66rem/1 var(--f-ui); letter-spacing: .02em; padding: .28rem .6rem; border-radius: var(--pill); background: var(--gold); color: var(--teal-deep); white-space: nowrap; vertical-align: .08em; }
.onb-g > .rows { padding: 0 1.2rem .5rem 1.2rem; border-top: 1px solid var(--line); }
.onb-g .onb-note { padding: 0 1.2rem 1.1rem; margin: 0; }
.onb-g > summary:focus-visible { outline-offset: -3px; }
/* done: calm, with the teal check. current: the one warm card. later: plain */
.onb-g.is-done { background: var(--faint); box-shadow: var(--ring); }
.onb-g.is-done .og-n { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.onb-g.is-done .onb-gt strong { color: var(--ink-2); }
.onb-g.is-done .og-bar i { background: var(--sage); }
.onb-g.is-cur { box-shadow: 0 0 0 2px var(--gold-line), 0 16px 34px -22px rgba(15, 58, 54, .4); background: linear-gradient(180deg, color-mix(in srgb, var(--gold-wash) 62%, var(--surface)) 0, var(--surface) 150px); }
.onb-g.is-cur .og-n { background: var(--gold); color: var(--teal-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 26%, transparent); }
.onb-g.is-cur .og-bar { background: color-mix(in srgb, var(--gold) 22%, var(--ground-2)); }
.onb-g.is-cur .og-bar i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.onb-row.is-next { background: color-mix(in srgb, var(--gold-wash) 55%, transparent); }
.onb-row.is-next .row-t strong { color: var(--teal-deep); }

/* photo and scan uploads */
.doc-add .addrow { display: flex; flex-wrap: wrap; gap: .6rem; }
.doc-add .addrow .filebtn { flex: 1 1 14rem; min-width: 0; }
.filebtn.cam, .fld .filebtn.cam { border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); }
.filebtn.cam:hover { background: var(--primary-2); border-color: var(--primary-2); }
.scan-box:empty { display: none; }
.scan { display: grid; gap: .85rem; margin-block: .25rem .75rem; }
.scan-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .7rem; }
.scan-pg { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ground-2); box-shadow: 0 0 0 1px var(--line-2); }
.scan-pg img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; max-height: none; border: 0; border-radius: 0; }
.scan.is-look .scan-pg img { filter: grayscale(1) contrast(1.35) brightness(1.08); }
.scan-n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: var(--paper); font: 700 .72rem/22px var(--f-ui); text-align: center; }
.scan-tools { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.scan-tools .icon-btn { width: 40px; height: 40px; background: rgba(254, 249, 243, .94); color: var(--primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.scan-pg.add { background: transparent; box-shadow: none; border: 2px dashed var(--line-2); }
.scan-pg.add:hover { background: var(--mist); border-color: var(--primary); }
.scan-add { display: grid; place-items: center; align-content: center; gap: .4rem; width: 100%; height: 100%; color: var(--primary); cursor: pointer; text-align: center; font-family: var(--f-ui); font-size: .85rem; padding: .5rem; }
.scan-add b { font-weight: 600; }
.scan-add .i { width: 1.4rem; height: 1.4rem; }
.scan-wait { margin: 0; }
.filechip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--pill); background: var(--ground-2); font-family: var(--f-ui); font-weight: 600; font-size: .88rem; word-break: break-all; }
.pw-note { margin: .9rem 0 0; }

/* Home: the next-step card has one big button (the whole onboarding list) and a quiet link straight to the step */
.next-alt { color: rgba(254, 249, 243, .9); font-family: var(--f-ui); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(254, 249, 243, .45); min-height: 44px; padding: 0 .25rem; }
.next-alt:hover { color: var(--paper); text-decoration-color: var(--gold-soft); }
.next-alt:focus-visible { outline-color: var(--gold); }
.onb-home { scroll-margin-top: 84px; }

/* ---------- header and menu: solid colors, one teal corner (Oct 18, evening) ----------
   The header and the phone's bottom bar used to be see-through, so the dark teal cards turned them grey-green as the page scrolled.
   Both are solid now. On a computer the logo sits in the same deep teal as the left menu, so the menu runs from the top of the screen to the bottom
   as one column, and the cream header starts to the right of it. */
.topbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--line), 0 14px 32px -12px rgba(15, 58, 54, .4); }
.brand picture { display: flex; }
.askbtn { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--teal-line); }
.askbtn:hover, .askbtn[aria-current="page"] { background: rgba(24, 78, 73, .08); }
@media (max-width: 479px) {
  .topbar-in { gap: .3rem; }
  .logo-img.hdr { height: 36px; }
}
@media (min-width: 900px) {
  .topbar { background: linear-gradient(90deg, var(--teal-deep) 0, var(--teal-deep) 256px, var(--bg) 256px); box-shadow: none; }
  .topbar::after { content: ''; position: absolute; left: 256px; right: 0; bottom: 0; height: 1px; background: var(--line); pointer-events: none; }
  .topbar-in { padding-left: 0; }
  .topbar .brand { flex: none; width: 256px; margin-right: 1.25rem; padding-left: 1.55rem; }
}
@media (min-width: 900px) {
  .topbar .brand { margin-right: .75rem; }
  .cmd { min-width: 0; }
  .cmd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .cmd kbd { flex: none; }
}
@media (min-width: 900px) and (max-width: 1099px) { .cmd kbd { display: none; } .cmd { padding-right: 1rem; } }
@media (min-width: 900px) and (max-width: 1099px) { .me-name { display: none; } .me-btn { padding-right: .3rem; } }

/* ---------- Welcome and how it works (the first onboarding step) ---------- */
.start-next { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.start-next li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.start-next .n { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--ground-2); color: var(--ink-2); font: 700 .95rem/1 var(--f-ui); }
.start-next li.now .n { background: var(--primary); color: var(--paper); }
.start-next .t { min-width: 0; display: grid; gap: .1rem; }
.start-next small { color: var(--ink-3); font-size: .875rem; line-height: 1.4; }
.start-act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.start-hint { margin-top: .75rem; max-width: 60ch; }
.notice > div > p + p { margin-top: .6rem; }

/* ---------- fun layer: confetti and the badge box ---------- */
canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 120; }
@media (prefers-reduced-motion: reduce) { canvas.confetti { display: none; } }

/* ---------- profile: role, experience, specializations, and the card the team sees ---------- */
.pro-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; align-items: start; }
.pro-main { min-width: 0; }
.pro-side { display: contents; }
.pro-strength { order: -1; }
.pro-preview { order: 1; }
.pro-role { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .45rem; }
.pro-role strong { font: 600 1.15rem/1.2 var(--f-ui); color: var(--teal-deep); }
.pro-gh { margin: 1.15rem 0 .55rem; font: 700 .86rem/1.3 var(--f-ui); color: var(--ink-2); }
.pro-gh:first-of-type { margin-top: .5rem; }
.pick-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem 1rem; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .9rem/1.25 var(--f-ui); text-align: left; transition: background .15s, border-color .15s, color .15s; }
.pick:hover { border-color: var(--primary); background: var(--wash); }
.pick.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pick.on:hover { background: var(--primary-2); }
.pick .i { width: .95rem; height: .95rem; flex: none; color: var(--gold-soft); }
.pick:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pro-ta { width: 100%; min-height: 112px; padding: .8rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: 400 1rem/1.55 var(--f-body); color: var(--ink); resize: vertical; }
.pro-ta:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; }
.pro-ta::placeholder { color: var(--ink-3); }
.card .notice.slim { margin-top: 1.1rem; margin-bottom: 0; }

.pro-sl { margin: .7rem 0 .6rem; color: var(--ink-2); font-size: .95rem; }
.pro-sl strong { color: var(--teal-deep); }
.pro-checks { display: grid; gap: 0; }
.pro-checks li { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .92rem; }
.pro-checks li.ok { color: var(--ink-3); }
.pro-ck-b { display: flex; align-items: center; gap: .65rem; width: calc(100% + 1rem); min-height: 44px; margin-inline: -.5rem; padding: .3rem .5rem; border-radius: var(--r); color: var(--ink); font-size: .92rem; transition: background .15s; }
.pro-ck-b:hover { background: var(--wash); }
.pro-ck-b:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
.pro-ck { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
.pro-ck.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.pro-ck .i { width: 12px; height: 12px; }

.pcard { display: grid; gap: .1rem; }
.pc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.pc-id { display: grid; gap: .3rem; justify-items: start; min-width: 0; }
.pc-id strong { font: 600 1.12rem/1.2 var(--f-ui); color: var(--teal-deep); }
.pc-id > span:not(.chip) { color: var(--ink-2); font-size: .92rem; }
.pc-yrs { margin: 0 0 .5rem; }
.pc-bio { margin: .2rem 0 .4rem; padding-left: .9rem; border-left: 3px solid var(--gold); color: var(--ink-2); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.pc-dl { display: grid; margin: 0; }
.pc-dl dt { margin-top: .9rem; font: 600 .8rem/1.3 var(--f-ui); color: var(--ink-3); }
.pc-dl dd { margin: .25rem 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.pc-dl dd p { margin: 0; }
.pc-dl dd p + p { margin-top: .2rem; }
.pc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pc-chips .chip { font-size: .78rem; white-space: normal; text-align: left; }
.pc-chips .chip .i { width: .8rem; height: .8rem; margin-right: .3rem; flex: none; }

@media (min-width: 1000px) {
  .pro-cols { grid-template-columns: minmax(0, 1fr) 360px; }
  .pro-main { grid-column: 1; grid-row: 1; }
  .pro-side { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--head-h) + 1rem); max-height: calc(100vh - var(--head-h) - 2rem); overflow-y: auto; padding: 2px 8px 8px 2px; margin: -2px -8px -8px -2px; scrollbar-width: thin; }
  .pro-strength, .pro-preview { order: 0; }
}

/* ---------- profile cards: the bright team card and the calmer client card (Oct 19, 2026) ---------- */
.pf { display: grid; gap: 1rem; }
/* the six profile hues are the brand palette: teal, terracotta, gold, bronze, taupe and sage (--hb wash, --hi text, --hm mark, --hf icon). The old class names stay. */
.h-teal { --hb: #E3EAE3; --hi: #123F3B; --hm: #184E49; --hf: #FEF9F3; }
.h-coral, .h-berry { --hb: #F3E2DD; --hi: #6E3329; --hm: #A6594C; --hf: #FEF9F3; }
.h-gold { --hb: #F6E8C9; --hi: #5E4010; --hm: #D4A24F; --hf: #3E2A08; }
.h-sky { --hb: #EFE7D6; --hi: #5C4724; --hm: #A2885D; --hf: #FEF9F3; }
.h-plum { --hb: #ECE6DC; --hi: #54462F; --hm: #9E8B74; --hf: #FEF9F3; }
.h-leaf { --hb: #E2E9E2; --hi: #34503F; --hm: #6E8677; --hf: #FEF9F3; }
.h-ok { --hb: var(--sage-wash); --hi: var(--sage-ink); --hm: var(--sage); --hf: #FEF9F3; }
.pf-tog { display: flex; gap: .35rem; padding: .3rem; margin-bottom: 1rem; border-radius: var(--pill); background: var(--surface-2); }
.pf-tog button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .35rem .7rem; border-radius: var(--pill); font: 600 .84rem/1.2 var(--f-ui); color: var(--ink-2); text-align: center; transition: background .15s, color .15s; }
.pf-tog button .i { width: 1rem; height: 1rem; flex: none; }
.pf-tog button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.pf-tog button:not([aria-selected="true"]):hover { background: var(--surface); }
.pf-tog button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pf-note { margin-top: .85rem; }
.pf-hero { position: relative; display: grid; justify-items: center; gap: .25rem; margin: 0; padding: 1.6rem 1rem 1.2rem; text-align: center; color: #fff; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #0F3A36 0%, #184E49 55%, #2B6A5F 100%); }
.pf-hero::before, .pf-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pf-hero::before { width: 150px; height: 150px; right: -44px; top: -52px; background: radial-gradient(circle, rgba(212, 162, 79, .5), rgba(212, 162, 79, 0) 68%); }
.pf-hero::after { width: 130px; height: 130px; left: -40px; bottom: -58px; background: radial-gradient(circle, rgba(166, 89, 76, .5), rgba(166, 89, 76, 0) 68%); }
.pf-hero > * { position: relative; z-index: 1; }
.pf-hero h3 { font: 600 1.55rem/1.15 var(--f-display); letter-spacing: -.01em; color: #fff; margin-top: .35rem; overflow-wrap: anywhere; }
.pf-role { color: rgba(255, 255, 255, .86); font: 500 .9rem/1.3 var(--f-ui); }
.pf-av { display: inline-flex; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, var(--terracotta)); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); }
.pf-av .av { border: 3px solid #fff; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .6rem; margin-top: .2rem; }
.pf-stat { display: grid; justify-items: center; align-content: center; gap: .1rem; padding: .7rem .4rem; border-radius: var(--r); background: var(--hb); color: var(--hi); text-align: center; border-bottom: 3px solid var(--hm); }
.pf-stat b { font: 700 1.35rem/1.1 var(--f-ui); }
.pf-stat span { font: 600 .74rem/1.25 var(--f-ui); }
.pf-bio { position: relative; display: block; margin: .1rem 0 0; padding: .95rem 1.1rem .95rem 3rem; border-radius: var(--r-lg); background: var(--gold-wash); color: var(--ink); }
.pf-bio .i { position: absolute; left: 1rem; top: 1rem; width: 1.3rem; height: 1.3rem; color: var(--gold-2); }
.pf-bio p { font: italic 400 1.02rem/1.55 var(--f-display); overflow-wrap: anywhere; }
.pf-sec { display: grid; gap: .55rem; }
.pf-sec h4 { display: flex; align-items: center; gap: .5rem; font: 700 .9rem/1.3 var(--f-ui); color: var(--teal-deep); }
.pf-sec h4 .i { width: 1.05rem; height: 1.05rem; color: var(--gold-2); flex: none; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: var(--pill); background: var(--hb); color: var(--hi); font: 600 .8rem/1.3 var(--f-ui); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hm) 38%, transparent); }
.pf-chip .i { width: .8rem; height: .8rem; flex: none; }
.pf-p { font-size: .95rem; color: var(--ink-2); overflow-wrap: anywhere; }
.pf-story { font: 400 1.02rem/1.6 var(--f-display); color: var(--ink); }
.pf-facts { display: grid; gap: .55rem; }
.pf-fact { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .8rem; border-radius: var(--r); background: var(--hb); color: var(--hi); border-left: 5px solid var(--hm); }
.pf-fi { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--hm); color: var(--hf, #fff); }
.pf-fi .i { width: 1.05rem; height: 1.05rem; }
.pf-ft { display: grid; gap: .1rem; min-width: 0; }
.pf-ft b { font: 700 .74rem/1.3 var(--f-ui); letter-spacing: .01em; }
.pf-ft span { font: 500 .96rem/1.4 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.pf-empty { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: var(--r); background: var(--gold-wash); color: var(--gold-ink); font-size: .92rem; }
.pf-empty .i { width: 1.4rem; height: 1.4rem; flex: none; }
.pf.bare { gap: .85rem; }
.pf-client { gap: 1rem; padding: 0; }
.pf-kick { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .7rem 1rem; border-radius: var(--r); background: var(--gold-wash); color: var(--gold-ink); font: 700 .86rem/1.3 var(--f-ui); }
.pf-kick .i { width: 1.05rem; height: 1.05rem; }
.pf-cid { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .35rem; }
.pf-cid > div { display: grid; gap: .3rem; justify-items: start; min-width: 0; }
.pf-cid h3 { font: 600 1.6rem/1.12 var(--f-display); color: var(--teal-deep); overflow-wrap: anywhere; }
.pf-cid .pf-role { color: var(--ink-2); }
.pf-priv { display: flex; gap: .55rem; align-items: flex-start; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; line-height: 1.45; }
.pf-priv .i { width: .9rem; height: .9rem; flex: none; margin-top: .15rem; }
.pf-ff > label { display: flex; align-items: center; gap: .55rem; }
.pf-ff .pf-fi { width: 1.8rem; height: 1.8rem; }
.pf-ff .pf-fi .i { width: .9rem; height: .9rem; }
.pro-preview .card-h h2 { margin-bottom: 0; }

/* ---------- direct deposit: the bank that appears from the routing number ---------- */
.pf-bankbox { margin: -.2rem 0 .9rem; min-height: 0; }
.pf-bank { margin: 0; font-size: .86rem; color: var(--ink-3); }
.pf-bank.ok, .pf-bank.bad, .pf-bank.warn, .pf-bank.wait { display: flex; align-items: flex-start; gap: .7rem; padding: .75rem .9rem; border-radius: var(--r); }
.pf-bank > .i { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .1rem; }
.pf-bank strong { display: block; font: 700 1.05rem/1.3 var(--f-ui); overflow-wrap: anywhere; }
.pf-bank small { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.4; }
.pf-bank.ok { background: var(--sage-wash); color: var(--sage-ink); box-shadow: inset 0 0 0 1.5px #A9C2AF; }
.pf-bank.warn, .pf-bank.wait { background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.pf-bank.bad { background: var(--bad-wash); color: var(--bad); box-shadow: inset 0 0 0 1.5px #D8B3AA; }

/* ---------- I-9 documents (secure upload) ---------- */
.i9-card .card-h h2 { font-size: 1.35rem; }
.i9-doc { border: 1.5px solid var(--line-2); border-radius: var(--r-lg); padding: 1rem 1.1rem 1.1rem; margin-block: 1rem; min-width: 0; background: var(--faint); }
.i9-doc legend { padding-inline: .5rem; font: 700 .95rem/1.3 var(--f-ui); color: var(--teal-deep); }
.i9-phs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .75rem; margin-top: .75rem; }
.i9-ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem .8rem; align-items: center; padding: .85rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.i9-ph.busy { opacity: .6; pointer-events: none; }
.i9-ph-t { display: grid; gap: .1rem; min-width: 0; }
.i9-ph-t strong { font: 600 .92rem/1.3 var(--f-ui); }
.i9-ph-t small { color: var(--ink-3); font-size: .82rem; overflow-wrap: anywhere; }
.i9-ph-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.i9-ph-a .filebtn { flex: 1 1 150px; min-height: 48px; padding: 0 .9rem; font-size: .88rem; }
.i9-ph-a input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.i9-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--ground-2); box-shadow: 0 0 0 1px var(--line-2); display: block; }
.i9-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.i9-sent { display: grid; gap: .6rem; margin-block: .6rem 1rem; }
.i9-sent li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .8rem 1rem; border-radius: var(--r-lg); background: var(--mist); }
.i9-sent li > span:first-child { flex: 1 1 200px; min-width: 0; }
.i9-thumbs { display: flex; gap: .5rem; }
.i9-th { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background: var(--ground-2); display: block; }

/* ---------- Shadow shifts and in-home training ---------- */
.tr-hero { background: var(--mist); box-shadow: none; }
.tr-steps { display: grid; gap: .7rem; margin-top: 1rem; }
.tr-steps li { display: flex; align-items: center; gap: .85rem; }
.tr-steps li > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.tr-steps small { color: var(--ink-3); font-size: .85rem; }
.tr-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem/1 var(--f-ui); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line-2); background: var(--surface); }
.tr-steps li.ok .tr-n { background: var(--sage); color: var(--paper); box-shadow: none; }
.tr-n .i { width: .95rem; height: .95rem; }
.tr-list { margin-top: .75rem; }
.tr-list .row { display: flex; align-items: center; gap: .85rem; padding-block: .7rem; }
.tr-list .row-t { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.tr-list .row-t small { color: var(--ink-3); font-size: .85rem; overflow-wrap: anywhere; }
.tr-secs { margin-block: .6rem 1rem; }
.tr-cks { margin-top: .5rem; }
.tr-ck { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; padding-block: .85rem; }
.tr-ck > .row-t { flex: 1 1 220px; min-width: 0; display: grid; gap: .1rem; }
.tr-ck small { color: var(--ink-3); font-size: .85rem; }
.tr-need { margin-block: .25rem 1rem; }
.tr-need li.ok .i { color: var(--ok); }
.tr-need li:not(.ok) .i { color: var(--ink-3); }
.tr-sticky { position: sticky; top: calc(var(--head-h, 56px) + env(safe-area-inset-top, 0px)); z-index: 5; margin-block: 0 1rem; padding: .7rem 1rem .6rem; border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm, 0 6px 16px -12px rgba(15, 58, 54, .4)); display: grid; gap: .4rem; }
.tr-sec { padding: 0; overflow: hidden; }
.tr-sec > summary { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; min-height: 56px; }
.tr-sec > summary::-webkit-details-marker { display: none; }
.tr-sec > summary .onb-gt { flex: 1; min-width: 0; }
.tr-sec .onb-chev { transition: transform .2s; flex: none; }
.tr-sec[open] .onb-chev { transform: rotate(180deg); }
.tr-items { display: grid; border-top: 1px solid var(--line); }
.tr-it { padding: .35rem 1.25rem .5rem; }
.tr-it + .tr-it { border-top: 1px solid var(--line); }
.tr-it .pf-opt { border: 0; background: transparent; padding: .7rem 0; margin-top: 0; min-height: 52px; }
.tr-it .pf-opt:has(input:checked) { background: transparent; }
.tr-it .pf-opt strong { font-weight: 500; font-size: .95rem; line-height: 1.45; }
.tr-it.on .pf-opt strong { color: var(--ink-2); }
.tr-nw { padding: 0 0 .5rem 2.45rem; }
.tr-nw .fld { margin: 0; }
.tr-nb { min-height: 36px; }
.tr-note { padding: 0 0 .6rem 2.45rem; font-size: .9rem; color: var(--ink-2); }
.tr-dlg h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--teal-deep); letter-spacing: -.01em; }
.tr-dlg h3 { font-size: 1rem; margin-top: 1.1rem; }
.tr-dlg h4 { font: 700 .85rem/1.3 var(--f-ui); margin-top: .9rem; color: var(--teal-deep); }
.tr-dlg > p { margin-top: .5rem; }
.tr-notes { display: grid; gap: .6rem; margin-top: .5rem; }
.tr-notes li { padding: .7rem .9rem; border-radius: var(--r); background: var(--mist); font-size: .92rem; }
.tr-notes span { color: var(--ink-2); }
.tr-all { margin-top: 1rem; }
.tr-all > summary { cursor: pointer; font: 600 .9rem/1.3 var(--f-ui); color: var(--primary); min-height: 44px; display: flex; align-items: center; }
.tr-review { display: grid; gap: .35rem; margin-top: .35rem; }
.tr-review li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: .5rem; font-size: .88rem; color: var(--ink-2); }
.tr-review li.ok .i { color: var(--ok); }
.tr-review li .i { margin-top: .15rem; width: 1.05rem; height: 1.05rem; color: var(--ink-3); }
.tr-dlg .form-act { margin-top: 1rem; }

/* ---------- work preferences: the third tab on Availability (Oct 19, 2026) ---------- */
.pr-grid { display: grid; gap: 1.25rem; }
.pr-main, .pr-side { display: grid; gap: 1rem; min-width: 0; align-content: start; }
@media (min-width: 980px) { .pr-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .pr-side { position: sticky; top: calc(var(--head-h) + 1rem); max-height: calc(100vh - var(--head-h) - 2rem); overflow-y: auto; padding: 2px 8px 8px 2px; margin: -2px -8px -8px -2px; scrollbar-width: thin; } }
.pr-sticky { position: sticky; top: calc(var(--head-h, 68px) + env(safe-area-inset-top, 0px) + 6px); z-index: 5; padding: .75rem 1rem .7rem; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pr-prog-t { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 32px; margin-bottom: .45rem; }
.pr-prog-t strong { font: 700 .92rem/1.2 var(--f-ui); color: var(--teal-deep); font-variant-numeric: tabular-nums lining-nums; }
.pr-bar { display: block; height: 7px; border-radius: 7px; overflow: hidden; background: color-mix(in srgb, var(--teal) 12%, var(--ground-2)); }
.pr-bar i { display: block; height: 100%; width: var(--w); border-radius: 7px; background: linear-gradient(90deg, var(--teal), var(--sage) 65%, var(--gold)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.pr-intro { background: linear-gradient(180deg, var(--wash) 0, var(--surface) 70%); }
.pr-intro p { color: var(--ink-2); }
.pr-how { display: grid; gap: .5rem; margin-block: .8rem .6rem; }
.pr-how li { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .7rem; align-items: center; font-size: .9rem; color: var(--ink-2); }
.pr-how b { padding: .35rem .6rem; border-radius: var(--pill); text-align: center; font: 700 .78rem/1.2 var(--f-ui); }
.t-yes { background: var(--primary); color: var(--on-primary); }
.t-soft { background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.t-no { background: var(--bad-wash); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--terracotta); }
.pr-sec .card-h { margin-bottom: .25rem; }
.pr-sec { scroll-margin-top: 9.5rem; }
.pr-sum { cursor: pointer; list-style: none; align-items: center; margin-bottom: 0; min-height: 48px; border-radius: var(--r); }
.pr-sum::-webkit-details-marker { display: none; }
.pr-sum:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.pr-sc { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.pr-chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s; }
.pr-sec[open] > .pr-sum .pr-chev { transform: rotate(180deg); }
.pr-sec[open] > .pr-sum { margin-bottom: .25rem; }
.pq-opt-h { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1.5px dashed var(--line-2); font: 700 .8rem/1.3 var(--f-ui); color: var(--ink-3); }
.pq-opt-h + .pq { border-top: 0; padding-top: .5rem; }
.pr-next { display: flex; justify-content: flex-end; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.pr-time { display: flex; align-items: flex-start; gap: .55rem; margin-top: .6rem; padding: .7rem .85rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pr-time .i { flex: none; margin-top: .15rem; color: var(--primary); }
.pr-opt { white-space: nowrap; }
.pr-sub { margin-bottom: .6rem; }
.pq-list { display: grid; }
.pq { padding: 1rem 0; border-top: 1px solid var(--line); transition: background .2s; }
.pq:first-child { border-top: 0; padding-top: .4rem; }
.pq.is-open { background: color-mix(in srgb, var(--gold-wash) 60%, transparent); border-radius: var(--r); padding-inline: .8rem; margin-inline: -.8rem; border-top-color: transparent; box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.pq-q { font: 600 .96rem/1.4 var(--f-ui); color: var(--ink); }
.pq-h { margin-top: .2rem; font-size: .85rem; line-height: 1.45; color: var(--ink-3); }
.pq-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .65rem; }
.pq-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.pq-b { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 46px; padding: .4rem .8rem; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); font: 600 .86rem/1.2 var(--f-ui); text-align: center; transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
.pq-chips .pq-b { padding-inline: 1rem; }
.pq-b .i { width: .9rem; height: .9rem; }
.pq-b:hover { background: var(--faint); box-shadow: inset 0 0 0 1.5px var(--teal-line); }
.pq-b:active { transform: scale(.98); }
.pq-b[aria-checked="true"], .pq-b[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 14px -8px rgba(15, 58, 54, .6); }
.pq-b[data-t="some"][aria-checked="true"] { background: var(--sage-wash); color: var(--sage-ink); box-shadow: inset 0 0 0 2px var(--sage); }
.pq-b[data-t="none"][aria-checked="true"] { background: var(--ground-2); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line-2); }
.pq-b[data-t="soft"][aria-checked="true"] { background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold); }
.pq-b[data-t="no"][aria-checked="true"] { background: var(--bad-wash); color: var(--bad); box-shadow: inset 0 0 0 2px var(--terracotta); }
.pq-fill { display: grid; gap: .3rem; justify-items: start; margin-block: .2rem .5rem; }
.pq-fill small { line-height: 1.4; }
.pr-card h4 { margin: .85rem 0 .35rem; font: 700 .74rem/1.3 var(--f-ui); color: var(--ink-3); }
.mc-l { display: flex; flex-wrap: wrap; gap: .35rem; }
.mc-c { padding: .28rem .7rem; border-radius: var(--pill); font: 600 .78rem/1.3 var(--f-ui); background: var(--wash); color: var(--teal-deep); }
.mc-c.c-exp { background: var(--primary); color: var(--on-primary); }
.mc-c.c-some { background: var(--sage-wash); color: var(--sage-ink); }
.mc-c.c-eq { background: var(--faint); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
.mc-c.c-yes { background: var(--wash); color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--teal-line); }
.mc-c.c-soft { background: var(--gold-wash); color: var(--gold-ink); }
.mc-c.c-no { background: var(--bad-wash); color: var(--bad); }
.mc-c.c-lang { background: #EFE7D6; color: #5C4724; }
.mc-c.c-fit { background: var(--surface-2); color: var(--ink-2); }
.pro-sk-empty { display: flex; align-items: center; gap: .6rem; margin-block: .6rem; padding: .85rem 1rem; border-radius: var(--r); background: var(--surface-2); color: var(--ink-3); font-size: .9rem; }
.pro-sk-empty .i { flex: none; color: var(--ink-3); }
#pro-skills .pf-chips { margin-block: .9rem 1rem; }
.pr-empty { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .85rem 1rem; border-radius: var(--r); background: var(--surface-2); color: var(--ink-3); font-size: .9rem; }
.pr-send .btn { margin-block: .5rem .6rem; }
@media (max-width: 400px) { .pq-seg { gap: .35rem; } .pq-b { padding-inline: .4rem; font-size: .82rem; } .pr-how li { grid-template-columns: 5.6rem minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pr-bar i { transition: none; } .pq-b { transition: none; } .pr-chev { transition: none; } }
@media (max-width: 440px) { .tabs-3 button { white-space: nowrap; } .tabs-3 button .i { display: none; } .tabs-3 button .chip.warn { width: 9px; height: 9px; min-width: 0; padding: 0; font-size: 0; overflow: hidden; background: var(--gold); } }

/* Employment dates on a contact sheet and the office Reviews list (Oct 19, 2026) */
.contact .ct-h{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;opacity:.7;margin:18px 0 6px;text-align:left;align-self:stretch}
.contact .nrow .chip{margin-left:6px;vertical-align:middle}
.pc-n.soon{font-weight:600}
/* My profile > Performance (Oct 19, 2026) */
.pq-seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .pq-seg.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pq-q .i { width: 1rem; height: 1rem; vertical-align: -2px; color: var(--primary); }
.pf-gap { margin-top: 1.2rem; }
.pf-ta { width: 100%; min-height: 84px; padding: .7rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); resize: vertical; line-height: 1.45; }
.pf-ta:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; }
.pf-goals { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .3rem; }
.pf-goal { padding: .9rem 0; border-top: 1px solid var(--line); }
.pf-goal:first-child { border-top: 0; }
.pf-gt { font: 600 .96rem/1.4 var(--f-ui); margin: 0; }
.pf-goal .link.small { margin-top: .5rem; font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; }
.pf-add { display: flex; gap: .5rem; margin: 1rem 0 .4rem; }
.pf-add input { flex: 1; min-width: 0; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.pf-past { border-top: 1px solid var(--line); padding: .3rem 0; }
.pf-past > summary { display: flex; align-items: center; gap: .6rem; min-height: 50px; cursor: pointer; font-weight: 600; list-style: none; }
.pf-past > summary::-webkit-details-marker { display: none; }
.pf-past > summary span { flex: 1; }
.pf-past > summary small { color: var(--ink-3); font-weight: 500; }
.pf-past[open] > summary .chev { transform: rotate(180deg); }
.pf-past h4 { margin: .9rem 0 .3rem; font: 700 .78rem/1.3 var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pq-seg.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 420px) { .pq-seg.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-legend { list-style: none; margin: .8rem 0 0; padding: .75rem 1rem; display: grid; gap: .3rem; background: var(--faint); border-radius: var(--r); font-size: .88rem; }
.pf-legend b { display: inline-block; min-width: 1.4rem; color: var(--primary); font-family: var(--f-ui); }
.pf-sec { margin-top: 1.6rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.pf-sec h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; margin: 0; color: var(--teal-deep); }
.pf-sec h3 .i { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.pf-sec > .pq-h { margin-bottom: .2rem; }
.pf-chosen { margin: .45rem 0 0; font: 600 .82rem/1.3 var(--f-ui); color: var(--primary); }
.pf-add input[type="date"] { flex: 0 0 auto; width: auto; padding: 0 .6rem; }
@media (max-width: 520px) { .pf-add { flex-wrap: wrap; } .pf-add input[type="text"] { flex-basis: 100%; } }
/* Office back end and "View as" (Oct 19, 2026) */
.viewas-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: 0 .85rem; border-radius: var(--pill); font-family: var(--f-ui); font-weight: 600; font-size: .85rem; background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.viewas-btn:hover { background: var(--gold); color: var(--teal-deep); }
.viewas-btn span { display: none; }
@media (min-width: 600px) { .viewas-btn span { display: inline; } }
.viewas-bar { position: sticky; top: 0; z-index: 31; background: var(--gold); color: var(--teal-deep); padding-top: env(safe-area-inset-top, 0px); }
.va-in { display: flex; align-items: center; gap: .6rem; height: 48px; }
.va-in > .i { width: 1.15rem; height: 1.15rem; flex: none; }
.va-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.va-t strong { font: 700 .9rem/1.25 var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-t small { font-size: .78rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewas-bar .btn.sm { min-height: 36px; padding: 0 .8rem; flex: none; }
.va-sw { background: rgba(255, 255, 255, .55); color: var(--teal-deep); }
.va-x { background: var(--teal-deep); color: var(--paper); }
.va-short { display: none; }
@media (max-width: 420px) { .va-long { display: none; } .va-short { display: inline; } .viewas-bar .btn.sm { padding: 0 .65rem; } }
.is-preview .topbar { top: calc(48px + env(safe-area-inset-top, 0px)); }
.is-preview .rail { top: calc(var(--head-h) + 48px + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--head-h) - 48px); }
@media (max-width: 599px) { .tabbar .bp600 .l-full { display: none; } .tabbar .bp600 .l-short { display: inline; } }
.viewas-pick h2 { display: flex; align-items: center; gap: .5rem; }
.viewas-pick .search { margin: 1rem 0; }
.viewas-pick .pcard[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--primary); }
.glance.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .glance.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-stat { text-align: left; cursor: pointer; transition: background .15s, transform .1s; font: inherit; color: inherit; }
.ad-stat:hover { background: var(--wash); }
.ad-stat:active { transform: scale(.99); }
.ad-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.is-admin .col-side .card { margin-bottom: 1rem; }
/* Permissions page (Oct 19, 2026) */
.pm-card { padding-inline: 0; }
.pm-card .notice, .pm-card .form-act, .pm-card > p { margin-inline: 1.2rem; }
.pm { width: 100%; border-collapse: collapse; min-width: 720px; }
.pm th, .pm td { padding: .55rem .6rem; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pm tbody th[scope="row"] { text-align: left; font-weight: 600; font-size: .9rem; line-height: 1.35; padding-left: 1.2rem; min-width: 220px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pm tbody th[scope="row"] .chip { font-size: .68rem; margin-left: .25rem; vertical-align: 1px; }
.pm thead th { border-top: 0; vertical-align: bottom; }
.pm thead th:first-child { text-align: left; padding-left: 1.2rem; font: 700 .78rem/1.2 var(--f-ui); color: var(--ink-3); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pm-h { display: grid; justify-items: center; gap: .2rem; }
.pm-h strong { font: 700 .88rem/1.2 var(--f-ui); }
.pm-h small { font-size: .72rem; color: var(--ink-3); line-height: 1.2; max-width: 110px; }
.pm-g th { text-align: left; padding: 1rem 1.2rem .35rem; font: 700 .76rem/1.2 var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; background: var(--faint); }
.pm-v { display: inline-flex; align-items: center; gap: .3rem; font: 600 .82rem/1.2 var(--f-ui); }
.pm-v.on { color: var(--primary); }
.pm-v.on .i { width: 1.1rem; height: 1.1rem; }
.pm-v.off { color: var(--ink-3); }
.pm-v.part { color: var(--gold-ink); }
.pm-tg { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.pm-tg i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.pm-tg[aria-checked="true"] { background: var(--primary); }
.pm-tg[aria-checked="true"] i { transform: translateX(18px); }
.pm-tg:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pm-sel { min-height: 36px; padding: 0 .4rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: 600 .82rem/1.2 var(--f-ui); }
.pm-role { background: var(--gold-wash); }
.pm tbody td:last-child { background: color-mix(in srgb, var(--gold-wash) 45%, transparent); }
.pm-rav { background: var(--gold); color: var(--teal-deep); display: inline-grid; place-items: center; }
.pm-rav .i { width: 1rem; height: 1rem; }
.pm-g th span { position: sticky; left: 1.2rem; }
/* Roles and permissions, people and bulk changes (Oct 19, 2026) */
.pm-role { display: inline-flex; align-items: center; padding: .22rem .7rem; border-radius: var(--pill); font: 700 .74rem/1.2 var(--f-ui); white-space: nowrap; background: var(--ground-2); color: var(--ink-2); }
.pm-people { padding: 0; overflow: hidden; }
.pm-listh { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--faint); }
.pm-cbl { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .9rem; min-height: 40px; }
.pm-cbl input, .pm-cb input { width: 22px; height: 22px; flex: none; accent-color: var(--primary); }
.pm-list { list-style: none; margin: 0; padding: 0; }
.pm-row { display: flex; align-items: center; border-top: 1px solid var(--line); }
.pm-row:first-child { border-top: 0; }
.pm-row.on { background: var(--wash); }
.pm-cb { display: grid; place-items: center; width: 52px; align-self: stretch; cursor: pointer; flex: none; }
.pm-pbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem .65rem .2rem; text-align: left; min-height: 60px; }
.pm-row:not(:has(.pm-cb)) .pm-pbtn { padding-left: 1rem; }
.pm-pbtn:hover { background: color-mix(in srgb, var(--wash) 60%, transparent); }
.pm-pbtn .row-t { flex: 1; min-width: 0; }
.pm-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.pm-pbtn .chev { color: var(--ink-3); flex: none; }
@media (max-width: 560px) { .pm-pbtn { flex-wrap: wrap; } .pm-tags { width: 100%; justify-content: flex-start; padding-left: calc(32px + .75rem); } .pm-pbtn .chev { display: none; } }
.pm-bulk { position: fixed; z-index: 26; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; }
.pm-bulk[hidden] { display: none; }
.pm-bulk-in { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: var(--r-xl); background: var(--teal-deep); color: var(--paper); box-shadow: 0 18px 40px -14px rgba(15, 58, 54, .7); max-width: 860px; }
.pm-bulk-in strong { font: 700 .9rem/1.2 var(--f-ui); margin-right: .4rem; }
.pm-bulk-in .btn.ghost { background: rgba(255,255,255,.12); color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.pm-bulk-in .btn.quiet { color: var(--paper); background: transparent; }
.pm-bulk-in .btn.primary { background: var(--gold); color: var(--teal-deep); }
@media (min-width: 900px) { .pm-bulk { left: 256px; bottom: 20px; } }
.pm-top { margin: 0 0 1rem; }
.pm-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.pm-rcard { display: grid; gap: .5rem; align-content: start; margin: 0; }
.pm-rh { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pm-rh .pm-role { font-size: .9rem; padding: .3rem .85rem; }
.pm-rabout { color: var(--ink-2); font-size: .9rem; line-height: 1.45; margin: 0; }
.pm-rmeta { font-size: .85rem; color: var(--ink-3); margin: 0; }
.pm-rmeta strong { color: var(--ink); }
.pm-avs { display: flex; flex-wrap: wrap; gap: .2rem; min-height: 32px; align-items: center; }
.pm-avs .av { box-shadow: 0 0 0 2px var(--surface); }
.pm-more { font: 600 .8rem/1 var(--f-ui); color: var(--ink-3); margin-left: .3rem; }
.pm-ract { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.pm-pad { padding: 0 1.2rem; }
.pm thead .pm-role { font-size: .7rem; }
.pm-sheet h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .2rem; }
.pm-sp { display: flex; align-items: center; gap: .9rem; margin-bottom: .5rem; }
.pm-sp h2 { margin: 0; }
.pm-exh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .4rem 0 .2rem; }
.pm-exh p { margin: 0; flex: 1 1 240px; }
.pm-shg { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pm-sh { margin: 1.2rem 0 .3rem; font: 700 .76rem/1.2 var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.pm-shg .link { font-size: .85rem; }
.pm-plist { list-style: none; margin: 0; padding: 0; }
.pm-plist li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); min-height: 52px; }
.pm-plist li:first-child { border-top: 0; }
.pm-pl { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.pm-pl .chip { margin-top: .25rem; white-space: normal; }
.pm-plist .pm-cbl { font-weight: 500; flex: 1; }
.pm-plist .pm-sel { flex: none; max-width: 48%; }
.pm-tg { flex: none; }
.pm-tg:disabled, .pm-sel:disabled { opacity: .55; cursor: not-allowed; }
.pm-sticky { position: sticky; bottom: calc(-1.75rem - env(safe-area-inset-bottom, 0px)); background: var(--surface); padding: .8rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px)); margin: 1rem 0 calc(-1.75rem - env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 16px -12px rgba(15,58,54,.35); z-index: 2; }
.danger-t { color: var(--bad) !important; }
/* Office pages: team training, requests, announcements (Oct 19, 2026) */
.tt-card { padding-inline: 0; }
.tt { width: 100%; border-collapse: collapse; min-width: 760px; }
.tt th, .tt td { padding: .5rem .6rem; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: .88rem; }
.tt thead th { border-top: 0; font: 700 .74rem/1.25 var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .7rem; }
.tt thead th:first-child, .tt tbody th { text-align: left; padding-left: 1.2rem; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tt-ch { display: inline-block; max-width: 120px; white-space: normal; }
.tt-p { display: flex; align-items: center; gap: .6rem; text-align: left; min-width: 200px; }
.tt-p .row-t strong { font-size: .92rem; }
.tt-bar { display: inline-block; width: 64px; height: 8px; border-radius: 999px; background: var(--ground-2); vertical-align: middle; margin-right: .35rem; overflow: hidden; }
.tt-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.tt td small { color: var(--ink-3); }
.tt .empty { padding: 1.5rem; }
.rq-list { margin-top: 1rem; }
.rq-decide { margin-top: .6rem; padding: .8rem 1rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.rq-decide .fld { margin-block: 0 .6rem; }
.an-prev h2 { margin-bottom: .6rem; }
.an-prev .bh { margin-top: 1rem; }
/* access role chips, in the brand palette */
.pm-role.c-deep { background: var(--teal-deep); color: var(--paper); }
.pm-role.c-gold { background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.pm-role.c-teal { background: var(--wash); color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--teal-line); }
.pm-role.c-sage { background: var(--sage-wash); color: var(--sage-ink); box-shadow: inset 0 0 0 1.5px #C5D3C8; }
.pm-role.c-bronze { background: var(--cream); color: var(--bronze-ink); box-shadow: inset 0 0 0 1.5px var(--bronze); }
.pm-role.c-neutral { background: var(--ground-2); color: var(--ink-2); }
/* checkboxes that look like checkboxes */
.pm-cbl input[type="checkbox"], .pm-cb input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--line-2); border-radius: 8px; background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.pm-cbl input[type="checkbox"]:hover, .pm-cb input[type="checkbox"]:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--wash); }
.pm-cbl input[type="checkbox"]:checked, .pm-cb input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.pm-cbl input[type="checkbox"]::after, .pm-cb input[type="checkbox"]::after { content: ""; width: 7px; height: 12px; margin-top: -2px; border: solid var(--on-primary); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .12s; }
.pm-cbl input[type="checkbox"]:checked::after, .pm-cb input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.pm-cbl input[type="checkbox"]:focus-visible, .pm-cb input[type="checkbox"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 2px; }
.pm-cb { width: 56px; }
.pm-row.on .pm-pbtn .row-t strong { color: var(--teal-deep); }
.tt td { white-space: nowrap; }
/* Paperwork and documents (office) */
.td-list { display: grid; gap: .6rem; }
.td-card { padding: 0; overflow: hidden; margin: 0; }
.td-card > summary { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .6rem 1.1rem; cursor: pointer; list-style: none; }
.td-card > summary::-webkit-details-marker { display: none; }
.td-card > summary .row-t { flex: 1; min-width: 0; }
.td-sum { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.td-sum .chip .i { width: .85rem; height: .85rem; margin-right: .25rem; }
.td-card[open] > summary { border-bottom: 1px solid var(--line); }
.td-card[open] > summary .chev { transform: rotate(180deg); }
.td-body { padding: .2rem 1.1rem 1rem; }
.td-body .pm-sh { margin-top: .9rem; }
.td-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .35rem .9rem; }
.td-grid li { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.td-grid li .i { width: 1.15rem; height: 1.15rem; flex: none; color: var(--ink-3); }
.td-grid li.ok .i { color: var(--ok); }
.td-grid li.bad .i { color: var(--bad); }
.td-grid li.warn .i { color: var(--warn); }
.td-grid .row-t strong { font-size: .9rem; }
.td-grid .row-t small { color: var(--ink-3); }
@media (max-width: 560px) { .td-card > summary { flex-wrap: wrap; } .td-sum { width: 100%; justify-content: flex-start; padding-left: calc(32px + .75rem); } }
/* Office rail: grouped sections with smaller sub-links (Oct 19, 2026) */
.rail-nav .nv.sub { min-height: 40px; padding-block: .35rem; font-size: .9rem; opacity: .9; }
.rail-nav .nv.sub[aria-current="page"] { opacity: 1; }
.rail-nav + .rail-nav { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(254, 249, 243, .14); }
/* audit log */
.au-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.au-filters .fld { margin-block: 0; }
.au-who { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 .9rem; padding: .6rem .9rem; border-radius: var(--r-lg); background: var(--wash); }
.au-who .row-t { flex: 1; }
.au-card { padding: 0; overflow: hidden; }
.au-list { list-style: none; margin: 0; padding: 0; }
.au-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem 1.1rem; border-top: 1px solid var(--line); }
.au-row:first-child { border-top: 0; }
.au-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--faint); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.au-ic .i { width: 1.1rem; height: 1.1rem; }
.au-ic.k-perm, .au-ic.k-view { background: var(--gold-wash); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-line); }
.au-ic.k-timeoff { background: var(--sage-wash); color: var(--sage-ink); }
.au-t { display: grid; gap: .1rem; min-width: 0; }
.au-t strong { font-size: .95rem; line-height: 1.35; }
.au-t small { color: var(--ink-3); line-height: 1.35; }
.au-when { font: 500 .8rem/1.3 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .au-row { grid-template-columns: 40px minmax(0, 1fr); } .au-when { grid-column: 2; } .au-filters { grid-template-columns: 1fr; } }
.rail-nav .nv.sub { padding-left: 1.15rem; }
/* Applicants (HR) and the team's "about" on contact cards */
.ap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.ap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ap-card { margin: 0; }
.ap-top { display: flex; align-items: center; gap: .75rem; }
.ap-top .row-t { flex: 1; min-width: 0; }
.ap-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: .9rem; color: var(--ink-2); }
.ap-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.ap-meta .i { width: .95rem; height: .95rem; color: var(--primary); }
.ap-notes { margin: .6rem 0 0; padding: .6rem .85rem; border-radius: var(--r); background: var(--faint); font-size: .92rem; line-height: 1.45; white-space: pre-wrap; }
.ap-inv { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 0; color: var(--ok); font-weight: 600; font-size: .9rem; }
.ap-act { margin-top: .8rem; flex-wrap: wrap; }
.ap-card.st-rejected { opacity: .8; }
.ap-card.st-hired { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--sage); }
.ct-bio { max-width: 40ch; margin: .3rem auto .6rem; line-height: 1.5; color: var(--ink-2); }
.ct-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; text-align: left; }
.ct-facts li { display: grid; gap: .05rem; padding: .5rem .8rem; border-radius: var(--r); background: var(--faint); }
.ct-facts small { font: 700 .72rem/1.2 var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pf-fi .i { width: .9rem; height: .9rem; color: var(--primary); vertical-align: -2px; }

/* phone More sheet for the office menu */
.ams-more .rail-nav { margin-top: .6rem; }
.ams-more .rail-h { font: 700 .72rem/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: .6rem 0 .2rem; }
.ams-more .nv { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .4rem .6rem; border-radius: var(--r); color: var(--ink); font-weight: 600; }
.ams-more .nv .nv-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); color: var(--primary); }
.ams-more .nv[aria-current="page"] { background: var(--wash); }
.tabbar button.nv { background: none; border: 0; }
/* Reports */
.rep-pick { margin: -.5rem 0 1rem; }
.rep-card { padding-inline: 0; }
.rep-card .card-h, .rep-card .notice { margin-inline: 1.2rem; }
.rep-h { align-items: flex-start; flex-wrap: wrap; gap: .8rem; }
.rep-h h2 { margin-bottom: .15rem; }
.rep-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rep-tools .fld { margin: 0; }
.ts.rep { min-width: 760px; }
.ts.rep th, .ts.rep td { white-space: nowrap; font-size: .86rem; }
.ts.rep tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); font-weight: 600; }
.ts.rep thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.ams-more .nv, .ams-more .nv:hover { text-decoration: none; }
/* Hiring pipeline */
.pl-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; margin: 1rem 0; }
.pl-stage { margin: 0; padding: 1rem; display: grid; gap: .6rem; align-content: start; border-top: 4px solid var(--line-2); }
.pl-stage.gold { border-top-color: var(--gold); }
.pl-stage.teal { border-top-color: var(--primary); }
.pl-stage.ok { border-top-color: var(--sage); }
.pl-h { display: flex; align-items: center; gap: .7rem; }
.pl-h h3 { font: 700 .95rem/1.2 var(--f-ui); margin: 0; }
.pl-h small { color: var(--ink-3); line-height: 1.3; display: block; }
.pl-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ground-2); font: 700 1rem/1 var(--f-ui); flex: none; }
.pl-stage.gold .pl-n { background: var(--gold-wash); color: var(--gold-ink); }
.pl-stage.teal .pl-n { background: var(--wash); color: var(--teal-deep); }
.pl-stage.ok .pl-n { background: var(--sage-wash); color: var(--sage-ink); }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pl-p { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .3rem .4rem; border-radius: var(--r); }
button.pl-p:hover { background: var(--faint); }
.pl-p .row-t strong { font-size: .88rem; }
.pl-p .row-t small { font-size: .76rem; color: var(--ink-3); }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pl-steps li { display: flex; gap: .8rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--line); }
.pl-steps li:first-child { border-top: 0; }
.pl-steps li > span:last-child { display: grid; gap: .1rem; }
.pl-steps small { color: var(--ink-2); line-height: 1.4; }
.pl-sn { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font: 700 .85rem/1 var(--f-ui); flex: none; margin-top: .1rem; }
.tabs.sub { margin-top: -1rem; background: transparent; padding: 0; gap: .35rem; }
.tabs.sub [role="tab"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tabs.sub [role="tab"][aria-selected="true"] { background: var(--wash); color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--primary); }
.tabs.sub [role="tab"]:disabled { opacity: .55; cursor: default; }
.ams-more .nv:not(.sub) { font-size: 1rem; }
.ams-more .rail-nav[aria-label="Main"] .nv-i, .ams-more .rail-nav[aria-label="Scheduling"] .nv-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); color: var(--primary); }
/* Clients: intake, client page, matching */
.cl-card .row-t strong small { font-weight: 500; color: var(--ink-3); }
.cl-head { align-items: center; }
.cl-head .chip { margin-left: auto; }
.ci-grid { display: grid; gap: 1.2rem; }
@media (min-width: 980px) { .ci-grid { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; } .ci-side { position: sticky; top: calc(var(--head-h) + 1rem); } }
.ci-nav ol { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: grid; gap: .1rem; counter-reset: ci; }
.ci-nav li a { display: flex; gap: .5rem; align-items: center; min-height: 34px; padding: .2rem .5rem; border-radius: var(--r); color: var(--ink-2); font-size: .9rem; text-decoration: none; counter-increment: ci; }
.ci-nav li a::before { content: counter(ci); width: 22px; height: 22px; border-radius: 50%; background: var(--wash); color: var(--teal-deep); display: grid; place-items: center; font: 700 .72rem/1 var(--f-ui); flex: none; }
.ci-nav li a:hover { background: var(--faint); color: var(--ink); }
.ci-nav h3 { font: 700 .78rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0; }
@media (max-width: 979px) { .ci-side { order: -1; } .ci-nav ol { display: flex; flex-wrap: wrap; gap: .25rem; } .ci-nav li a::before { display: none; } .ci-nav li a { background: var(--faint); min-height: 32px; font-size: .82rem; } }
.pf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .pf-grid.three { grid-template-columns: 1fr; } }
.mt-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.mt-card { margin: 0; border-left: 5px solid var(--line-2); }
.mt-card.g-ok { border-left-color: var(--sage); }
.mt-card.g-warn { border-left-color: var(--gold); }
.mt-card.g-bad { border-left-color: var(--terracotta); opacity: .85; }
.mt-top { display: flex; align-items: center; gap: .75rem; }
.mt-top .row-t { flex: 1; min-width: 0; }
.mt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .6rem 1rem; margin-top: .8rem; }
.mt-g h4 { margin: 0 0 .25rem; font: 700 .72rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.mt-g.ok h4 { color: var(--sage-ink); } .mt-g.warn h4 { color: var(--gold-ink); } .mt-g.bad h4 { color: var(--bad); }
.mt-g ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.mt-g.bad ul { color: var(--bad); }
.mt-none { margin-top: .75rem; }
.mt-none summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; min-height: 44px; }
.mt-none summary::-webkit-details-marker { display: none; }
.mt-none summary strong { display: block; }
.mt-none summary small { color: var(--ink-3); display: block; }
.mt-none summary .chev { transition: transform .2s; }
.mt-none[open] summary .chev { transform: rotate(180deg); }
.mt-none .pc-chips { margin-top: .6rem; }
.mt-none .chip { cursor: pointer; }
/* Client page: care plan, schedule, status */
.cl-status { cursor: pointer; margin-left: auto; }
.cl-status .i { width: .8rem; height: .8rem; margin-left: .2rem; }
.cp-tasks { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .3rem; }
.cp-tasks li { display: flex; align-items: center; gap: .7rem; padding: .55rem .2rem; border-top: 1px solid var(--line); }
.cp-tasks li:first-child { border-top: 0; }
.cp-n { width: 28px; height: 28px; border-radius: 50%; background: var(--wash); color: var(--teal-deep); display: grid; place-items: center; font: 700 .8rem/1 var(--f-ui); flex: none; }
.cp-tasks .row-t { flex: 1; }
.cp-tools { display: flex; gap: .2rem; }
.cp-add { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.cp-add input[type="text"] { flex: 1 1 220px; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.tick li .icon-btn { margin-left: auto; }
.cs-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; align-items: end; }
.cs-add .fld { margin: 0; }
.ts.cl-sched { min-width: 560px; }
/* My schedule (caregiver) */
.ms-week { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1rem; }
.ms-wt { flex: 1; text-align: center; display: grid; }
.ms-wt strong { font: 700 1rem/1.2 var(--f-ui); }
.ms-wt small { color: var(--ink-3); }
.ms-day { margin-bottom: 1rem; }
.ms-dh { display: flex; align-items: baseline; gap: .6rem; font: 700 .95rem/1.2 var(--f-ui); margin: 0 0 .4rem; color: var(--ink-2); }
.ms-dh small { font-weight: 500; color: var(--ink-3); }
.ms-day.today .ms-dh { color: var(--teal-deep); }
.ms-off { margin: 0; padding: .4rem .2rem; color: var(--ink-3); font-size: .88rem; }
.ms-visit { padding: 0; overflow: hidden; margin-bottom: .5rem; border-left: 5px solid var(--line-2); }
.ms-visit.live { border-left-color: var(--gold); }
.ms-visit.done { border-left-color: var(--sage); }
.ms-day.today .ms-visit:not(.done) { border-left-color: var(--primary); }
.ms-top { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 64px; padding: .6rem 1rem; text-align: left; }
.ms-top .row-t { flex: 1; min-width: 0; }
.ms-time { display: grid; text-align: center; min-width: 64px; }
.ms-time strong { font: 700 .95rem/1.2 var(--f-ui); color: var(--teal-deep); }
.ms-time small { color: var(--ink-3); font-size: .76rem; }
.ms-body { padding: .2rem 1rem 1rem; border-top: 1px solid var(--line); }
.ms-watch { margin: .3rem 0 0; padding-left: 1.1rem; }
.ms-tasks { list-style: none; margin: 0; padding: 0; }
.ms-tasks li { border-top: 1px solid var(--line); }
.ms-tasks li:first-child { border-top: 0; }
.ms-tasks .pm-cbl { width: 100%; min-height: 48px; font-weight: 500; }
.ms-out { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.tabs.wrap { width: 100%; flex-wrap: wrap; overflow: visible; border-radius: var(--r-lg); }
.ms-risks { margin: .6rem 0 .2rem; }
/* week grid of standing visits (Scheduling) */
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
@media (max-width: 760px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-day h4 { margin: 0 0 .3rem; font: 700 .74rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.wk-v { display: grid; width: 100%; text-align: left; padding: .45rem .55rem; margin-bottom: .3rem; border-radius: var(--r); background: var(--wash); border-left: 3px solid var(--primary); }
.wk-v.open { background: var(--gold-wash); border-left-color: var(--gold); }
.wk-v strong { font: 700 .8rem/1.2 var(--f-ui); color: var(--teal-deep); }
.wk-v span { font-size: .84rem; line-height: 1.25; }
.wk-v small { font-size: .72rem; color: var(--ink-3); }
.cl-head .btn { margin-left: .4rem; }
/* intake: recorder, parties, review */
.ci-rec { border: 1.5px solid var(--gold-line); }
.ci-rec.live { border-color: var(--terracotta); box-shadow: 0 0 0 4px var(--bad-wash); }
.ci-rec .card-h h2 .i { width: 1.1rem; height: 1.1rem; vertical-align: -2px; color: var(--primary); }
.ci-party { padding: .6rem 0 .2rem; border-top: 1px solid var(--line); }
.ci-party:first-of-type { border-top: 0; }
.ci-party .pm-sh { margin-top: .4rem; }
.ci-review .pm-cbl { align-items: flex-start; }
.ci-review .pm-cbl > span { display: grid; gap: .1rem; }
.ci-review .pm-cbl small { color: var(--ink-3); font-size: .78rem; }
.ci-review .pm-cbl strong { font-weight: 600; }
.ci-review .ci-was { color: var(--gold-ink); }
.plist .pcard, .viewas-pick .pcard { display: flex; gap: .9rem; }

/* ---- the written care plan (Oct 19, 2026) ---- */
.cp-gen .form-act { margin-top: .5rem; }
.cp-how-s { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.35; margin-top: .15rem; }
.ms-how { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.3; margin-top: .1rem; }
.cp-review .cp-sec span { display: flex; align-items: center; gap: .4rem; }
.cp-table { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.cp-row { border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .75rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; background: var(--surface); }
.cp-row.off { opacity: .5; }
.cp-row .cp-rowh { align-items: flex-start; }
.cp-row .cp-rowh small { display: block; color: var(--teal-deep); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.cp-row .cp-rowh strong { display: block; outline: none; border-bottom: 1px dashed transparent; }
.cp-row [contenteditable]:focus { border-bottom-color: var(--teal); background: var(--wash); }
.cp-row .cp-how { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.4; padding: .2rem .3rem; border-radius: 6px; outline: none; }
.cp-row .cp-how:empty::before { content: 'Caregiver instructions'; color: var(--ink-3); }
.cp-doc { font-family: var(--f-body); line-height: 1.55; }
.cp-doc header { margin-bottom: 1rem; }
.cp-doc .cp-brand { margin: 0; font: 700 .72rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.cp-doc h1 { font-family: var(--f-display); font-size: 1.7rem; margin: .2rem 0 .1rem; }
.cp-doc .cp-for { margin: 0 0 .3rem; font-size: 1.05rem; }
.cp-doc h2 { font: 700 1rem/1.3 var(--f-ui); color: var(--teal-deep); margin: 1.3rem 0 .35rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line); }
.cp-doc p { margin: .35rem 0; }
.cp-doc ul { margin: .3rem 0 .3rem 1.2rem; padding: 0; }
.cp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .25rem 1.2rem; margin: 0; }
.cp-dl div { display: flex; gap: .5rem; font-size: .92rem; }
.cp-dl dt { font-weight: 700; min-width: 8.5rem; }
.cp-dl dd { margin: 0; }
.cp-tbl { width: 100%; border-collapse: collapse; font: .86rem/1.35 var(--f-ui); }
.cp-tbl th, .cp-tbl td { border: 1px solid var(--line); padding: .4rem .5rem; text-align: left; vertical-align: top; }
.cp-tbl thead th { background: var(--wash); }
.cp-tbl th[scope="rowgroup"] { background: var(--surface-2); font-weight: 700; color: var(--teal-deep); }
.cp-close { margin-top: 1.6rem; font-style: italic; color: var(--teal-deep); }
.cp-read .cp-doc { padding-bottom: .5rem; }
@media (max-width: 640px) { .cp-tbl thead { display: none; } .cp-tbl tr { display: block; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--r); } .cp-tbl th, .cp-tbl td { display: block; border: 0; border-top: 1px solid var(--line); } .cp-tbl tr > :first-child { border-top: 0; } .cp-tbl th[rowspan] { display: block; } }

/* ---- the calendar (Oct 20, 2026; board, timeline and brand colors Oct 21) ---- */
.card-act { display: flex; gap: .4rem; flex-wrap: wrap; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .6rem; }
.cal-nav { display: flex; align-items: center; gap: .35rem; }
.cal-title { margin: 0 0 0 .4rem; font: 700 1.1rem/1.2 var(--f-ui); color: var(--teal-deep); }
.cal-modes { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-left: auto; }
.cal-modes button { border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px; font: 600 .82rem/1 var(--f-ui); color: var(--ink-2); cursor: pointer; }
.cal-modes button[aria-selected="true"] { background: var(--surface); color: var(--teal-deep); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-modes.sm { margin-left: 0; }
.cal-modes.sm button { padding: .3rem .7rem; font-size: .76rem; }
.cal-group { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 .6rem; }
.cal-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; align-items: end; margin-bottom: .6rem; }
.cal-filters .fld { margin: 0; }
.cal-filters .cal-sum { margin: 0 0 .6rem; align-self: end; }
.cal-sum .chip { vertical-align: middle; }
/* the visit chip */
.cal-v { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--surface); border-radius: 8px; padding: .3rem .45rem; margin: .2rem 0; cursor: pointer; font: inherit; color: inherit; line-height: 1.2; }
.cal-v strong { font: 700 .74rem/1.2 var(--f-ui); display: flex; justify-content: space-between; gap: .3rem; color: var(--teal-deep); }
.cal-v strong em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.cal-v span { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-v small { display: block; color: var(--ink-3); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-v.open { border-left-color: var(--terracotta); background: #F7E6E1; }
.cal-v.open strong { color: var(--terracotta); }
.cal-v.live { border-left-color: var(--sage); background: #EEF2EE; }
.cal-v.done { border-left-color: var(--line-2); opacity: .7; }
.cal-v.cancelled { border-left-color: var(--taupe); text-decoration: line-through; opacity: .55; }
.cal-v:hover { border-color: var(--teal); }
.cal-v.open:hover { border-color: var(--terracotta); }
/* week, single client or caregiver */
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.cal-wc { min-height: 120px; background: var(--faint); border-radius: var(--r); padding: .35rem; }
.cal-wc.today { outline: 2px solid var(--gold); }
.cal-wh { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: center; padding: .2rem 0 .35rem; font: inherit; color: inherit; }
.cal-wh span { display: block; font: 700 .68rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cal-wh b { display: block; font: 700 1.1rem/1.2 var(--f-ui); color: var(--teal-deep); }
.cal-wh small { display: block; font-size: .68rem; color: var(--ink-3); min-height: 1em; }
.cal-none { text-align: center; color: var(--ink-3); margin: .6rem 0; }
/* the board: rows per caregiver or client, columns per day */
.cal-board-wrap { overflow-x: auto; margin: 0 -.25rem; padding: 0 .25rem; }
.cal-board { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 900px; table-layout: fixed; }
.cal-board th, .cal-board td { vertical-align: top; }
.cal-board thead th { background: transparent; padding: 0; }
.cal-board thead th.today .cal-wh { background: var(--gold-wash); border-radius: 8px; }
.cal-board td { background: var(--faint); border-radius: 8px; padding: .2rem; min-height: 54px; height: 54px; }
.cal-board td.today { background: var(--surface-2); }
.cal-board tr.open td { background: #FBF1EE; }
.cal-board .cal-rh { width: 150px; position: sticky; left: 0; z-index: 1; background: var(--surface); padding: 0; }
.cal-rb { display: block; width: 100%; text-align: left; border: 0; background: var(--faint); border-radius: 8px; padding: .45rem .55rem; font: inherit; color: inherit; cursor: pointer; height: 100%; }
button.cal-rb:hover { background: var(--surface-2); }
.cal-rb strong { display: block; font: 700 .82rem/1.2 var(--f-ui); color: var(--teal-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-rb small { display: block; color: var(--ink-3); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-board tr.open .cal-rb, .cal-tl-row.open .cal-rb { background: #F7E6E1; }
.cal-board tr.open .cal-rb strong, .cal-tl-row.open .cal-rb strong { color: var(--terracotta); }
/* month: counts per day */
.cal-mh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font: 700 .68rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .3rem; }
.cal-mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-mc { min-height: 84px; background: var(--faint); border-radius: 8px; padding: .3rem; font: inherit; color: inherit; border: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; }
.cal-mc:hover { background: var(--surface-2); }
.cal-mc.dim { opacity: .45; }
.cal-mc.today { outline: 2px solid var(--gold); }
.cal-dn { font: 700 .8rem/1 var(--f-ui); color: var(--teal-deep); }
.cal-mn { font-size: .78rem; color: var(--ink-2); display: flex; align-items: baseline; gap: .3rem; }
.cal-mn b { font: 700 1.05rem/1 var(--f-ui); color: var(--teal-deep); }
.cal-mn small { color: var(--ink-3); font-size: .7rem; }
.cal-mo { display: inline-block; align-self: flex-start; font: 700 .68rem/1 var(--f-ui); color: var(--terracotta); background: #F7E6E1; border-radius: 999px; padding: .2rem .45rem; }
.cal-mt { display: block; font-size: .7rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* day: the timeline */
.cal-tl-wrap { overflow-x: auto; margin: 0 0 .8rem; }
.cal-tl { min-width: 760px; }
.cal-tl-row { display: grid; grid-template-columns: 150px 1fr; gap: 3px; margin-bottom: 3px; }
.cal-tl-row.head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.cal-tl-axis { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.cal-tl-axis span { position: absolute; top: 2px; transform: translateX(-50%); font: 600 .66rem/1 var(--f-ui); color: var(--ink-3); }
.cal-tl-track { position: relative; background: var(--faint); border-radius: 8px; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--hours, 16) - 1px), var(--line) calc(100% / var(--hours, 16) - 1px), var(--line) calc(100% / var(--hours, 16))); }
.cal-tl-row.open .cal-tl-track { background-color: #FBF1EE; }
.cal-tb.cal-v { position: absolute; margin: 2px 0; height: 40px; min-width: 56px; padding: .25rem .4rem; border-radius: 6px; overflow: hidden; }
.cal-tb span { font: 600 .78rem/1.2 var(--f-ui); }
.cal-tb small { font-size: .66rem; }
.cal-day .cal-t, .rows .cal-t { display: flex; flex-direction: column; min-width: 86px; margin-right: .6rem; }
.cal-day .cal-t strong, .rows .cal-t strong { font: 700 .9rem/1.2 var(--f-ui); color: var(--teal-deep); }
.cal-day .cal-t small, .rows .cal-t small { color: var(--ink-3); font-size: .75rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; margin: .7rem 0 0; }
.cal-k { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border-left: 4px solid var(--teal); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin-left: .4rem; }
.cal-k.open { border-left-color: var(--terracotta); background: #F7E6E1; }
.cal-k.live { border-left-color: var(--sage); }
.cal-k.done { border-left-color: var(--line-2); }
.cal-k.cancelled { border-left-color: var(--taupe); opacity: .6; }
.cal-notes summary { cursor: pointer; list-style: none; }
.cal-notes summary::-webkit-details-marker { display: none; }
.cal-notes summary h2 { display: inline; }
.cal-notes summary::before { content: '▸ '; color: var(--ink-3); }
.cal-notes[open] summary::before { content: '▾ '; }
@media (max-width: 760px) {
  .cal-week { grid-template-columns: 1fr; }
  .cal-wc { min-height: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
  .cal-wh { flex: 0 0 56px; }
  .cal-wc .cal-v { flex-basis: calc(100% - 56px - .5rem); margin-left: auto; }
  .cal-mc { min-height: 60px; padding: .2rem; }
  .cal-mt { display: none; }
  .cal-modes { margin-left: 0; }
  .cal-board .cal-rh { width: 110px; }
  .cal-tl-row { grid-template-columns: 110px 1fr; }
}

/* ---- caregiver record, profile tab (Oct 21, 2026): fewer boxes, a definition grid ---- */
.cg-glance { margin-bottom: 1rem; }
.cg-card .card-h .muted { font-weight: 400; }
.cg-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1.6rem; margin: .4rem 0 0; }
.cg-dl .dt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cg-dl dt { font: 700 .68rem/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cg-dl dd { margin: 0; font-size: .98rem; color: var(--ink); overflow-wrap: anywhere; }
.cg-dl dd.muted { color: var(--ink-3); font-style: italic; font-size: .9rem; }
.cg-dl dd small { display: block; font-size: .74rem; color: var(--ink-3); font-style: normal; }
.cg-dl dd a { color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cg-bio { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); margin: .2rem 0 .8rem; }
.cg-card + .cg-card { margin-top: 1rem; }

.inv-pre { white-space: pre-wrap; font: .92rem/1.5 var(--f-body); background: var(--faint); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin: .4rem 0 1rem; color: var(--ink); }
a.btn { text-decoration: none; }

.cg-remove { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.cg-remove summary { cursor: pointer; color: var(--ink-3); font-size: .86rem; }
.cg-remove .btn { margin-top: .4rem; }

/* ---- the client hub (Oct 21, 2026) ---- */
.hub-compose .form-act { align-items: center; justify-content: space-between; }
.hub-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 .6rem; }
.hub-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hub-item { display: flex; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .85rem; }
.hub-item.note { border-left: 4px solid var(--teal); }
.hub-item.msg { border-left: 4px solid var(--gold); }
.hub-item.event { background: var(--faint); border-left: 4px solid var(--line-2); }
.hub-item.event p { color: var(--ink-2); }
.hub-item.alert { border-left-color: var(--terracotta); }
.hub-item.incident { border-left-color: var(--terracotta); }
.hub-item .av.sys { background: var(--surface-2); color: var(--teal-deep); display: grid; place-items: center; }
.hub-body { flex: 1; min-width: 0; }
.hub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: .2rem; }
.hub-head strong { font: 700 .88rem/1.2 var(--f-ui); color: var(--teal-deep); }
.hub-head small { color: var(--ink-3); font-size: .74rem; }
.hub-body p { margin: .2rem 0; line-height: 1.5; }
.hub-note { white-space: pre-wrap; }
.hub-inc { color: var(--terracotta); font-weight: 600; }
.hub-ackrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.hub-pin + .hub-pin { margin-top: .8rem; }
.hub-pin.warn { background: var(--gold-wash); }
.hub-pin.open { border: 1px solid var(--terracotta); }
.hub-openv { color: var(--terracotta); }
.hub-tasks { margin: .2rem 0 .4rem 1.1rem; padding: 0; }
.hub-tasks li { margin: .3rem 0; }
.hub-tasks li strong { font-weight: 600; }
.hub-tasks li small { display: block; color: var(--ink-3); line-height: 1.35; }
.hub-members { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hub-members li { display: flex; align-items: center; gap: .6rem; }
.hub-un { color: var(--terracotta); font-weight: 700; }
.hub-list { margin-bottom: 1rem; }
.ms-tidy { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: -.2rem 0 .6rem; }
.hub-pin.open .row { flex-wrap: wrap; }
.hub-pin.open .row .btn { flex: 1 0 100%; margin-top: .3rem; justify-content: center; }

/* ---- care notes tab ---- */
.cn-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.cn-item { display: flex; gap: .8rem; padding: .8rem .2rem; border-top: 1px solid var(--line); }
.cn-item:first-child { border-top: 0; }
.cn-item.incident .req-d { background: #F7E6E1; color: var(--terracotta); }
.cn-body { flex: 1; min-width: 0; }
.cn-body .req-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.cn-note { margin: .35rem 0; line-height: 1.5; white-space: pre-wrap; }
.cn-adls { margin-top: .35rem; }
.cn-who { min-height: 36px; padding: 0 .5rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: inherit; }
.cn-bar { display: inline-block; width: 90px; height: 8px; background: var(--surface-2); border-radius: 4px; vertical-align: middle; overflow: hidden; }
.cn-bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.ts.cn-adl th[scope="row"] { font-weight: 600; }

/* ---- My clients (caregiver) ---- */
.mc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mc-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.mc-top .row-t { flex: 1; }
.mc-dl { gap: .5rem 1.2rem; margin: .2rem 0 .5rem; }
.mc-last { font-style: italic; color: var(--ink-2); margin: .2rem 0 .5rem; }

/* ---- hiring: board, screen form, application ---- */
.hb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 900px) { .hb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hb-cols { grid-template-columns: 1fr; } }
.hb-col { background: var(--faint); border-radius: var(--r); padding: .5rem; min-height: 120px; }
.hb-col h3 { display: flex; align-items: center; justify-content: space-between; margin: .1rem .2rem .5rem; font: 700 .8rem/1.2 var(--f-ui); }
.hb-col h3 small { color: var(--ink-3); }
.hb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; margin-bottom: .5rem; }
.hb-open { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.hb-open strong { display: block; font: 700 .9rem/1.2 var(--f-ui); color: var(--teal-deep); }
.hb-open small { display: block; color: var(--ink-3); font-size: .74rem; }
.hb-card .small { margin: .3rem 0 0; color: var(--ink-2); }
.hb-act { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.hb-act .btn.sm { padding: .3rem .6rem; font-size: .74rem; min-height: 32px; }
.apply { max-width: 720px; }
.apply-form .pm-cbl { margin: .25rem 0; }
.apply-done h2 { display: flex; align-items: center; gap: .5rem; color: var(--teal-deep); }

/* ---- hub, rebuilt: need to know, chat, instructions ---- */
.hub-ntk { border: 1px solid var(--line); }
.hub-ntk.live { border-color: var(--terracotta); background: #FBF1EE; }
.ntk { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ntk-item { display: flex; gap: .8rem; align-items: center; background: var(--surface); border-radius: 10px; padding: .6rem .8rem; border-left: 4px solid var(--terracotta); }
.ntk-item > div { flex: 1; min-width: 0; }
.ntk-item strong { display: block; font: 700 .72rem/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--terracotta); }
.ntk-item p { margin: .15rem 0 0; line-height: 1.45; }
.ntk-item.instr { border-left-color: var(--gold); }
.ntk-item.instr strong { color: var(--gold-ink); }
#hub-catchup-out { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.hub-chat .card-h { flex-wrap: wrap; gap: .5rem; }
.search.sm { max-width: 240px; min-height: 36px; }
.search.sm input { font-size: .9rem; }
.hub-older { text-align: center; margin: .2rem 0 .6rem; }
.hub-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hub-day { text-align: center; margin: .6rem 0 .2rem; }
.hub-day span { display: inline-block; font: 700 .68rem/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: .3rem .7rem; }
.hub-msg { display: flex; gap: .5rem; align-items: flex-end; }
.hub-msg.mine { justify-content: flex-end; }
.hub-bubble { max-width: min(78%, 560px); background: var(--faint); border-radius: 14px 14px 14px 4px; padding: .5rem .75rem; }
.hub-msg.mine .hub-bubble { background: var(--wash); border-radius: 14px 14px 4px 14px; }
.hub-msg.pinned .hub-bubble { outline: 1.5px solid var(--gold); }
.hub-bubble p { margin: .15rem 0; line-height: 1.45; white-space: pre-wrap; }
.hub-bubble .hub-head { margin-bottom: 0; }
.hub-quote { border-left: 3px solid var(--line-2); padding-left: .5rem; color: var(--ink-3); font-size: .82rem; }
.hub-ev { width: 100%; text-align: center; font-size: .82rem; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: .4rem .7rem; margin: 0; }
.hub-ev small { color: var(--ink-3); margin-left: .4rem; }
.hub-rxrow { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .25rem; }
.hub-rx { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .1rem .45rem; font-size: .78rem; cursor: pointer; line-height: 1.4; }
.hub-rx.on { border-color: var(--teal); background: var(--wash); }
.hub-tools { margin-left: auto; display: inline-flex; gap: .1rem; opacity: .55; }
.hub-bubble:hover .hub-tools { opacity: 1; }
.hub-tool { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.hub-tool:hover { background: var(--surface-2); color: var(--teal-deep); }
.hub-tool svg { width: 14px; height: 14px; }
.hub-rxpick { display: inline-flex; gap: .2rem; }
.hub-compose2 { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.hub-compose2 .form-act { align-items: center; margin-top: .4rem; }
.hub-replyto { font-size: .82rem; color: var(--ink-3); margin-bottom: .3rem; }
.pm-cbl.sm span { font-size: .85rem; }
.hub-instr { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.hub-instr li { padding: .45rem .6rem; background: var(--faint); border-radius: 8px; border-left: 4px solid var(--gold); }
.hub-instr li strong { display: block; font-weight: 600; line-height: 1.4; }
.hub-instr li small { display: block; color: var(--ink-3); font-size: .74rem; margin-top: .15rem; }
.hub-instr li.unconf { border-left-color: var(--terracotta); }
.hub-instr li.ended { opacity: .6; border-left-color: var(--line-2); text-decoration: line-through; }
.hub-instr-act { display: flex; gap: .8rem; margin-top: .25rem; font-size: .8rem; }
.hub-pin.instr { background: var(--gold-wash); }
@media (max-width: 640px) { .hub-bubble { max-width: 92%; } .ntk-item { flex-wrap: wrap; } }
.hub-scroll { max-height: 62vh; overflow: auto; padding: 0 .25rem; scroll-behavior: smooth; }

/* ---- the application ---- */
.apply-head { margin: .4rem 0 1rem; }
.apply-kicker { margin: 0; font: 700 .72rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.apply-head h1 { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin: .3rem 0 .4rem; color: var(--teal-deep); line-height: 1.05; }
.apply-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 56ch; margin: 0; }
.apply-steps { list-style: none; display: flex; gap: .4rem; margin: 0 0 .8rem; padding: 0; }
.apply-steps li { flex: 1; display: flex; align-items: center; gap: .4rem; font: 600 .78rem/1.2 var(--f-ui); color: var(--ink-3); padding: .45rem .5rem; border-radius: 999px; background: var(--surface-2); }
.apply-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .72rem; }
.apply-steps li.on { background: var(--teal); color: var(--paper, #fff); }
.apply-steps li.on span { background: rgba(255,255,255,.2); color: #fff; }
.apply-steps li.done { color: var(--teal-deep); }
.apply-steps li.done span { background: var(--wash); color: var(--teal-deep); }
.apply-form h2 { margin: 0 0 .6rem; }
.apply-foot { margin-top: .8rem; }

/* ---- services and billing ---- */
.sv-tbl tr.off { opacity: .55; }
.bl-rate { width: 110px; min-height: 36px; padding: 0 .5rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: inherit; }
.rep-pick .pq-h { margin: .4rem 0 .2rem; }

/* ---- verify visits, settings, reports ---- */
.ev-tbl tr.ev-flagged th { border-left: 4px solid var(--terracotta); }
.ev-tbl tr.ev-approved { opacity: .85; }
.ev-tbl .chip { margin: 1px 2px 1px 0; }
.ev-act { white-space: nowrap; }
.ev-act .btn { margin-right: .3rem; }
.ms-charges { margin: .6rem 0; padding: .6rem .8rem; background: var(--faint); border-radius: var(--r); }
.rep-cats { display: grid; gap: .5rem; margin-bottom: .6rem; }
.rep-cat .pq-h { margin: 0 0 .2rem; }
.rep-period { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .4rem 0 .8rem; }
.rep-period .fld { margin: 0; }
.rep-period input[type="date"] { min-height: 44px; padding: 0 .6rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); }

/* ---- week time grid (client and caregiver schedules) ---- */
.cal-tg-wrap { overflow-x: auto; }
.cal-tg { min-width: 760px; }
.cal-tg-head { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
.cal-tg-head .cal-wh { background: var(--faint); border-radius: 8px; }
.cal-tg-head .cal-wh.today { background: var(--gold-wash); }
.cal-tg-body { position: relative; display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-tg-hours { position: relative; }
.cal-tg-hours span { position: absolute; right: .4rem; transform: translateY(-50%); font: 600 .68rem/1 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.cal-tg-col { position: relative; background: var(--faint); border-radius: 8px; display: grid; grid-auto-rows: var(--hpx); overflow: hidden; }
.cal-tg-col.today { background: var(--surface-2); }
.cal-tg-cell { border: 0; border-top: 1px dashed var(--line); background: transparent; cursor: pointer; padding: 0; }
.cal-tg-cell:first-child { border-top: 0; }
button.cal-tg-cell:hover { background: var(--wash); }
.cal-tgb.cal-v { position: absolute; margin: 0; padding: .25rem .4rem; border-radius: 7px; overflow: hidden; z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-tgb strong { font-size: .7rem; }
.cal-tgb span { font-size: .78rem; }

/* ---- date picker ---- */
.dp { position: fixed; z-index: 60; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(15,58,54,.45), 0 0 0 1px var(--line); padding: .6rem .7rem .5rem; font-family: var(--f-ui); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.dp-head strong { font-size: .92rem; color: var(--teal-deep); }
.dp-nav { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--teal-deep); }
.dp-nav svg { width: 14px; height: 14px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: .2rem 0 .3rem; }
.dp-day { border: 0; background: transparent; height: 36px; border-radius: 8px; font: 600 .86rem/1 var(--f-ui); color: var(--ink); cursor: pointer; }
.dp-day:hover { background: var(--wash); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.dp-day.sel { background: var(--teal); color: #fff; }
.dp-day:disabled { opacity: .3; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); font-size: .82rem; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; }

/* ---- phone pass (Oct 21, 2026): nothing wider than the screen, tabs that scroll, one-column calendars ---- */
@media (max-width: 640px) {
  .main, .gut { overflow-x: clip; }
  .ap-bar { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
  .ap-bar .chips.scroll { max-width: 100%; }
  .ap-bar .btn { align-self: flex-start; }
  .tabs.wrap { flex-wrap: nowrap; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs.wrap::-webkit-scrollbar { display: none; }
  .tabs.wrap [role="tab"] { white-space: nowrap; flex: none; }
  .glance.four, .glance.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-bar { gap: .5rem; }
  .cal-title { width: 100%; order: 3; margin: 0; font-size: 1rem; }
  .cal-modes { order: 2; }
  .cal-bar > .btn { order: 4; width: 100%; justify-content: center; }
  .cal-filters { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .cal-filters .fld span { font-size: .72rem; }
  .cal-filters .cal-sum { grid-column: 1 / -1; margin: 0; }
  .cal-group { flex-wrap: wrap; }
  .cal-tl-wrap { display: none; }
  .cal-board { min-width: 640px; }
  .cal-tg { min-width: 620px; }
  .hub-compose2 .form-act { flex-direction: column; align-items: stretch; }
  .hub-compose2 .form-act .btn { width: 100%; justify-content: center; }
  .hub-ntk .card-h { flex-wrap: wrap; }
  .hub-ntk .card-act { width: 100%; }
  .hub-ntk .card-act .btn { width: 100%; justify-content: center; }
  .card-h { flex-wrap: wrap; gap: .4rem; }
  .ev-act { white-space: normal; }
  .rows .row .chip { display: none; }
  .pagehead h1 { font-size: 2rem; }
  .sv-group .muted.small { display: block; width: 100%; }
  .form-act .btn.grow { width: 100%; }
}

/* ---- AI assists ---- */
.ai-card { border: 1px solid var(--gold-line); background: var(--gold-wash); }
.ai-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ai-list li { display: flex; align-items: center; gap: .7rem; background: var(--surface); border-radius: 10px; padding: .55rem .7rem; }
.ai-list li .row-t { flex: 1; min-width: 0; }
.ai-list li .row-t small { white-space: normal; }
.ai-tof { margin: .5rem 0; padding: .6rem .8rem; border-radius: 10px; background: var(--faint); border-left: 4px solid var(--line-2); }
.ai-tof.ok { border-left-color: var(--sage); }
.ai-tof.gold { border-left-color: var(--gold); }
.ai-tof.warn { border-left-color: var(--gold-2); }
.ai-tof.bad { border-left-color: var(--terracotta); }
.ai-tof-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.ai-tof-h svg { width: 16px; height: 16px; color: var(--gold-ink); }
.ai-tof-h strong { font: 700 .9rem/1.3 var(--f-ui); color: var(--teal-deep); }
.ai-tof-h small { color: var(--ink-3); font-size: .76rem; width: 100%; }
.ai-cov { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .25rem; font-size: .86rem; }
.ai-cov li { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.ai-cov small.ok { color: var(--sage); font-weight: 600; }
.ai-say { margin: .4rem 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); border-left: 2px solid var(--gold); padding-left: .6rem; }
.ai-tof .form-act { margin-top: .4rem; }

/* ---- reliability, ranking, invoices ---- */
.rk-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .4rem; }
.rk-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 10px; background: var(--faint); }
.rk-list li.blocked { opacity: .55; }
.rk-list .row-t { flex: 1; min-width: 0; }
.rk-list .row-t small { white-space: normal; }
.inv-doc h1 { font-family: var(--f-display); font-size: 1.5rem; margin: .2rem 0 .4rem; color: var(--teal-deep); }
.inv-doc .cg-dl { margin: .6rem 0 1rem; }
.inv-doc .cp-tbl { margin-top: .4rem; }

/* ---- reports: list on the left, report on the right ---- */
.rep-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1rem; align-items: start; }
.rep-nav { position: sticky; top: 76px; }
.rep-pick-m { display: none; }
.rep-group { margin-bottom: .9rem; }
.rep-cat { margin: 0 0 .25rem; }
.rep-cat strong { display: block; font: 700 .7rem/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rep-cat small { display: none; }
.rep-nav ul { list-style: none; margin: 0; padding: 0; }
.rep-link { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: .42rem .6rem; border-radius: 8px; font: 500 .88rem/1.25 var(--f-ui); color: var(--ink-2); cursor: pointer; }
.rep-link:hover { background: var(--surface-2); }
.rep-link.on { background: var(--surface); color: var(--teal-deep); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.rep-main .rep-card .rep-h { flex-wrap: wrap; align-items: flex-start; }
.rep-main .rep-period { margin: 0; flex-basis: 100%; order: 2; }
.rep-main .rep-tools { order: 3; }
@media (max-width: 760px) {
  .rep-layout { grid-template-columns: minmax(0, 1fr); }
  .rep-nav { position: static; }
  .rep-pick-m { display: block; margin-bottom: .6rem; }
  .rep-group { display: none; }
}
.rep-link strong { display: block; font-weight: inherit; }
.rep-link small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 400; }

/* ---------- sign-in (js/auth.js) ---------- */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 1.25rem; padding: 2rem 16px; background: var(--bg); }
.si-card { width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 2rem 1.75rem; box-shadow: 0 24px 60px -32px rgba(15, 58, 54, .45); }
.si-brand { margin: 0 0 1.5rem; }
.si-brand img { max-width: 180px; height: auto; }
.si-card h1 { font-family: var(--f-display); font-weight: 500; font-size: 1.9rem; line-height: 1.15; margin: 0 0 .5rem; color: var(--ink); }
.si-sub { color: var(--ink-2); margin: 0 0 1.25rem; line-height: 1.5; }
.si-card .btn.block { width: 100%; margin-top: .5rem; }
.si-card .err:empty { display: none; }
.si-foot { text-align: center; color: var(--ink-3); font-family: var(--f-ui); font-size: .8rem; margin: 0; }

/* ---------- the public job application (herehomecare.app/apply) ---------- */
.is-public .rail, .is-public .tabbar { display: none; }
.is-public .shell { display: block; }
.is-public .main .gut { max-width: 760px; margin-inline: auto; }
.apply-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ax-email { min-height: 40px; padding: 0 .6rem; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); width: 100%; min-width: 200px; }
.ax-act { white-space: nowrap; }
.update-bar { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem .6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: 0 18px 40px -18px rgba(15, 58, 54, .5); font-family: var(--f-ui); font-size: .9rem; max-width: calc(100vw - 32px); }
.wkends { list-style: none; margin: .25rem 0; padding: 0; display: grid; gap: .35rem; }
.wkends li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-family: var(--f-ui); font-size: .9rem; }
.wkends li.off { opacity: .75; }
/* client page: the Home card */
.home-rows { display: grid; gap: .25rem; }
.home-row { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.home-row:first-child { border-top: 0; padding-top: .25rem; }
.home-l { font-family: var(--f-ui); font-weight: 600; font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; }
.home-v { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.home-v .pc-chips { margin: 0; }
.home-tip { color: var(--ink-3); cursor: help; display: inline-flex; }
@media (max-width: 560px) { .home-row { grid-template-columns: 1fr; gap: .4rem; } }
/* client intake: five steps */
.ci-head { margin: .25rem 0 1rem; }
.ci-head h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .25rem; color: var(--ink); }
.ci-stepline { margin: 0 0 .5rem; color: var(--ink-2); font-family: var(--f-ui); font-size: .92rem; }
.ci-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ci-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .25s; }
.ci-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0 0; padding: 0; }
.ci-step { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--pill); padding: .3rem .75rem; font-family: var(--f-ui); font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.ci-step.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.ci-recd > summary { cursor: pointer; font-family: var(--f-ui); font-weight: 600; display: flex; align-items: center; gap: .5rem; list-style: none; }
.ci-recd > summary::-webkit-details-marker { display: none; }
.ci-recd[open] > summary { margin-bottom: .75rem; }
.ci-recd .ci-rec { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.ci-nav-b { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); padding: .6rem 0; z-index: 5; }
@media (min-width: 900px) { .ci-nav-b { bottom: 0; } }
.ci-saved { margin-top: .25rem; }
@media (max-width: 560px) { .ci-steps { display: none; } }

/* client Overview edited in place (client-overview.js) */
.ov-card .home-rows { gap: 0; }
.ov-row .home-v { justify-content: space-between; min-height: 2.25rem; }
.ov-v { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ov-v .pc-chips { margin: 0; }
.ov-pen { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: .3rem .7rem; font: 600 .8rem var(--f-ui); cursor: pointer; min-height: 36px; }
.ov-pen:hover, .ov-pen:focus-visible { border-color: var(--ink-3); color: var(--ink); }
.ov-pen svg { width: .8rem; height: .8rem; }
.ov-row.on { background: var(--surface); border-radius: var(--r-lg); padding-inline: .75rem; }
.ov-ed { flex-direction: column; align-items: stretch !important; gap: .5rem; }
.ov-ed .ov-in { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--bg, #fff); color: var(--ink); min-height: 44px; }
.ov-ed > .btn, .ov-btns { align-self: flex-start; display: flex; gap: .5rem; flex-wrap: wrap; }
.ov-err:empty { display: none; }
.ov-group { grid-template-columns: 1fr !important; }
.ov-qs { display: grid; gap: .6rem; }
.ov-q { display: grid; gap: .3rem; }
.ov-ql { font-size: .9rem; color: var(--ink-2); }
.ov-party { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.ov-party-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ov-party-h .pc-chips { margin: 0; }
.ov-party-h .link { margin-left: auto; }
.col-side .ov-card .home-row { grid-template-columns: 1fr; gap: .25rem; }
@media (max-width: 560px) { .ov-pen span { display: none; } .ov-pen { padding: .3rem .55rem; } }
.ov-adds { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .75rem; margin-top: .25rem; border-top: 1px dashed var(--line); }
.ov-adds-l { font: 600 .78rem var(--f-ui); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-right: .2rem; }
.ov-add { display: inline-flex; align-items: center; gap: .3rem; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: .35rem .7rem; font: 500 .82rem var(--f-ui); cursor: pointer; min-height: 36px; }
.ov-add:hover, .ov-add:focus-visible { border-style: solid; color: var(--ink); }
.ov-add svg { width: .7rem; height: .7rem; }
.ov-card .home-rows + .ov-adds { margin-top: .5rem; }

/* intake interview mode */
.ci-iv-start { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--gold, #c9a54a); }
.ci-iv-start h2 { margin: 0 0 .2rem; }
.ci-iv-start p { margin: 0; }
.iv { max-width: 720px; margin: 0 auto; }
.iv-top { display: flex; align-items: center; gap: .75rem; justify-content: space-between; margin-bottom: .6rem; }
.iv-who { font-weight: 700; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-count { font: 600 .82rem var(--f-ui); color: var(--ink-2); }
.iv-bar { margin-bottom: 1.1rem; }
.iv-step { font: 600 .8rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem; }
.iv-q { font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.25; margin: 0 0 1.1rem; }
.iv-consent { margin-bottom: 1rem; }
.iv-mic { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.iv-rec { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; max-width: 360px; padding: 1.1rem 1rem; border-radius: 22px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg, #fff); font: 700 1.05rem var(--f-ui); cursor: pointer; min-height: 96px; }
.iv-rec svg { width: 1.8rem; height: 1.8rem; }
.iv-rec.on { background: #b3412e; border-color: #b3412e; animation: ivpulse 1.6s ease-in-out infinite; }
@keyframes ivpulse { 50% { box-shadow: 0 0 0 10px rgba(179, 65, 46, .15); } }
@media (prefers-reduced-motion: reduce) { .iv-rec.on { animation: none; } }
.iv-heard textarea { font-size: 1rem; }
.iv-ans .pf-grid { gap: .75rem; }
.iv-nav { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); background: var(--bg, #fbf8f2); padding: .6rem 0; z-index: 2; }
.iv-dots { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 1rem 0 0; justify-content: center; }
.iv-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 600 .8rem var(--f-ui); cursor: pointer; }
.iv-dot.has { background: var(--surface); border-color: var(--ink-3); }
.iv-dot.on { background: var(--ink); color: var(--bg, #fff); border-color: var(--ink); }

/* family portal, office side */
.fam-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .75rem; }
.fam-row { border-top: 1px solid var(--line); padding-top: .75rem; }
.fam-row.off { opacity: .6; }
.fam-h { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.fam-em { flex-basis: 100%; }
.fam-flags { margin: .5rem 0 0; }
.fam-req small { display: block; }
.hub-fam { margin-left: .4rem; font-size: .7rem; }
.hub-fam svg { width: .75rem; height: .75rem; }

/* Family inbox (office dashboard) */
.fin { border-color: var(--gold-line); }
.fin-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.fin-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: start; }
.fin-row:first-child { border-top: 0; }
.fin-k { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); }
.fin-x b { display: block; }
.fin-x small { display: block; color: var(--ink-2); }
.fin-x .form-act { margin-top: .5rem; flex-wrap: wrap; }
.fin-x input[type=time] { min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 .5rem; }
.fin-age { font: 600 .78rem var(--f-ui); color: var(--ink-3); text-align: right; white-space: nowrap; }
.fin-age.hot { color: var(--clay); }
.fin-th { display: grid; gap: .35rem; margin: .5rem 0; }
.fin-th p { margin: 0; padding: .45rem .7rem; border-radius: 12px; background: var(--surface-2); max-width: 90%; }
.fin-th p.us { background: var(--wash); justify-self: end; }
.fin-th small { display: block; font: 600 .7rem var(--f-ui); color: var(--bronze-ink); }
.fin-reply textarea { width: 100%; }
.ok-t { color: var(--ok) !important; } .warn-t { color: var(--warn) !important; }
.ms-fc { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .5rem; }
.ms-famnote { background: var(--gold-wash); }
.fam-party { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: .6rem; padding: .6rem .75rem; border-radius: var(--r-lg); background: var(--surface-2); }
.fam-party.on { background: var(--wash); }
.fam-party small { flex-basis: 100%; }
.fam-l { display: inline-flex; align-items: center; gap: .35rem; font: 600 .82rem var(--f-ui); color: var(--ink-2); }
.fam-b { display: flex; gap: .4rem; flex-wrap: wrap; flex-basis: 100%; }
.ov-parties .ov-party:first-of-type { border-top: 0; margin-top: .25rem; }

.rep-gh { font: 700 .7rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-ink); margin: .9rem .25rem .35rem; }

.ty-card { border-color: #E2C3BB; background: #FBF1EE; }
.ty-list { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem; }
.ty-list q { font-style: italic; }
.us-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.us-bar .chips { flex: 1 1 auto; }
.us-q input { min-height: 40px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 1rem; min-width: 240px; background: var(--surface); }
.us-kinds { display: grid; gap: .5rem; }
.us-kinds .row { border: 1px solid var(--line); border-radius: var(--r-lg); }
.fam-conv .fin-th { max-height: 340px; overflow: auto; }
#fin-pick { min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 .5rem; }
.mp-sec { list-style: none; padding: .9rem .4rem .3rem; font: 700 .7rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-ink); }
.mp-rows > li.mp-sec::before { display: none; }
.mp-sec-empty { padding: 0 .4rem .6rem; }

.fin-top { margin: 0 0 .6rem; } .fin-top .link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--warn); }
#fin-anchor { margin-top: 1.25rem; }
.tb .card-act { display: flex; gap: .35rem; flex-wrap: wrap; }
.tb-t tr.tb-hot td { background: var(--alert-wash); }
.tb-t td, .tb-t th { vertical-align: middle; }
.ms-dnr { margin: .5rem 0; }
.notice.bad { background: var(--alert-wash); border-color: transparent; }
.ms-today .ms-visit { margin-bottom: .75rem; }

.fin-flags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0; }
.ask-card { border-color: var(--gold-line); }
.ask-card .row { flex-wrap: wrap; gap: .4rem; }

/* incidents to handle (dashboard) */
.inc-card { border-color: var(--bad, #B3261E); }
.inc-card .card-h h2 { color: var(--bad, #B3261E); }
.inc-card .row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.inc-card .row-t { display: grid; gap: .15rem; min-width: 0; flex: 1 1 260px; }
.inc-card .row-a { display: flex; gap: .4rem; flex-wrap: wrap; }

/* the public application page (Oct 21, 2026 polish) */
.is-public .apply-head { margin-top: 1.4rem; }
.apply .pq-seg { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.apply .pq-b { text-align: center; line-height: 1.25; }
@media (max-width: 520px) { .apply .pq-seg:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr; } .apply .pq-seg[aria-label='job'], .apply .pq-seg.jobs { grid-template-columns: 1fr; } .apply-steps li { justify-content: center; font-size: .74rem; } }

/* ---------- batch 3 polish (Oct 21, 2026) ---------- */
/* 26. one dropdown everywhere: same height, border and arrow as the inputs beside it, text centered (iPhone included) */
select, .fld select { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-height: 46px; height: 46px; line-height: 1.2; padding: 0 2.4rem 0 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r); color: var(--ink); font: inherit; font-size: 1rem; max-width: 100%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23184E49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .95rem center / 12px 8px; }
select:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 0; }
select:disabled { opacity: .6; }
select[multiple] { height: auto; background-image: none; padding: .4rem; }
.ag-who select, .mp-prev select, .cp-add select { width: 100%; }
/* 21. reports fit a phone: one column, tables scroll inside their card */
@media (max-width: 760px) { .rep-layout > * { min-width: 0; } .rep-nav { display: block; } .rep-nav ul, .rep-nav .rep-group { display: none; } .rep-main .card, .rep-main section { overflow-x: auto; } .rep-main table th:first-child, .rep-main table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; } }
/* 22, 23. list pages stay inside the screen; names are never drawn under chips */
.ap-bar, .ap-bar > *, .search { min-width: 0; max-width: 100%; }
.chips.scroll { max-width: 100%; min-width: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.row-t { min-width: 0; }
.row-t strong, .row-t small { overflow-wrap: anywhere; }
@media (max-width: 640px) { .cl-card .row, .pcard .row { flex-wrap: wrap; } .cl-card .row-t, .pcard .row-t { flex: 1 1 60%; } }
/* 24. the Today board on a phone: one stacked row per visit */
@media (max-width: 640px) {
  .tb .tscroll { overflow: visible; }
  .tb-t thead { display: none; }
  .tb-t, .tb-t tbody { display: block; width: 100%; min-width: 0 !important; } .tb-t tr { box-sizing: border-box; width: 100%; } .tb-t td { display: block; width: auto; min-width: 0; background: none !important; }
  .tb-t tr.tb-hot { background: var(--alert-wash); border-radius: 12px; padding-left: .5rem; padding-right: .5rem; }
  .tb-t tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "time client open" "cg cg cg" "st st st"; gap: .25rem .6rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .tb-t td { padding: 0; border: 0; }
  .tb-t td:nth-child(1) { grid-area: time; font-weight: 600; } .tb-t td:nth-child(1) br { display: none; } .tb-t td:nth-child(1) small { margin-left: .3rem; }
  .tb-t td:nth-child(2) { grid-area: client; } .tb-t td:nth-child(3) { grid-area: cg; } .tb-t td:nth-child(3) br { display: none; } .tb-t td:nth-child(3) a { margin-left: .5rem; }
  .tb-t td:nth-child(4) { grid-area: st; } .tb-t td:nth-child(5) { grid-area: open; text-align: right; }
}
/* 25. buttons never break into stacks of words; helper text sits under them */
.form-act { flex-wrap: wrap; }
.form-act .btn { white-space: nowrap; }
.form-act > small.muted { flex-basis: 100%; }
/* 30. the notifications line: small, at the bottom, dismissible */
.push-line { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.push-line > .i { color: var(--primary); flex: none; }
.push-line p { flex: 1; margin: 0; }
.push-line .icon-btn { flex: none; }
/* 31. tab rows that scroll show a soft edge so a cut-off tab reads as "more this way" */
@media (max-width: 760px) { .tabs:not(.wrap) { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 1.5rem; } }
.ms-flags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .7rem; }
.ms-flags .chip .i { width: .85rem; height: .85rem; margin-right: .2rem; }
/* the phone tab bar's More is a button: same type as the other tabs */
.tabbar button.nv { line-height: inherit; }
/* the dashboard widget board: one even grid, cards in a row share a height */
.db-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .8rem; }
.db-hint { margin-right: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .9rem; }
.db-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.db-w { display: flex; flex-direction: column; min-width: 0; }
.db-w.full { grid-column: 1 / -1; }
.db-w > section { flex: 1; margin: 0 !important; }
.db-w > section.glance { flex: none; }
.db-grid.editing .db-w { outline: 2px dashed var(--teal-line, #9FBFB8); outline-offset: 4px; border-radius: 20px; }
.db-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .35rem .2rem .55rem; }
.db-tools b { font: 600 .82rem/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.db-tools span { display: flex; gap: .35rem; flex-wrap: wrap; }
.db-tray { margin-top: 1rem; }
@media (max-width: 900px) { .db-grid { grid-template-columns: minmax(0, 1fr); } }
/* the Family inbox client picker had its name under the arrow */
#fin-pick { min-width: 220px; }
.db-bar p.fin-top { margin: 0 auto 0 0; }
.nrows.compact { gap: 0; }
.nrows.compact .nrow { min-height: 0; padding: .55rem .1rem; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
.nrows.compact .nrow:last-child { border-bottom: 0; }
.nrows.compact .nl { flex: 1; }
.card .pq-q { margin-top: 1rem; }

/* 35. the hub link on a visit card: one line, the count as a small chip after it */
.ms-hub { display: inline-flex; align-items: center; gap: .4rem; justify-content: flex-start; text-align: left; white-space: nowrap; max-width: 100%; }
.ms-hub .hub-un { background: var(--bad, #B3261E); color: #fff; border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; }
/* 36. long buttons wrap their words inside the button on a phone instead of running off it */
@media (max-width: 520px) { .form-act .btn.primary { white-space: normal; max-width: 100%; } }

.tabs button { white-space: nowrap; }
/* Clean up: the cleaned note above the caregiver's own words */
.tidy-box { margin: .4rem 0 .8rem; padding: .8rem 1rem; border: 1.5px solid var(--teal-line, #9FBFB8); border-radius: var(--r); background: var(--surface); }
.tidy-l { margin: 0 0 .2rem; font: 700 .72rem/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tidy-new { margin: 0 0 .7rem; }
.tidy-old { margin: 0 0 .5rem; color: var(--ink-2); font-size: .92rem; }

/* ---------- depth (CEO, Oct 21, 2026: "the right side is too light, not enough dimension to separate things") ----------
   One contained change, revertible in one step: a warmer, slightly deeper page, near-white cards with a hairline edge and a soft
   shadow, a thin teal line under card headings, and a little more room between groups. Brand colors only. */
:root { --bg: #EFE7D7; --surface: #FFFDF9; --faint: #FBF7EF;
  --shadow: 0 0 0 1px rgba(15, 58, 54, .07), 0 1px 2px rgba(15, 58, 54, .05), 0 16px 32px -22px rgba(15, 58, 54, .42); }
.main { background: var(--bg); }
.card { border: 1px solid #E4DCCA; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card-h { padding-bottom: .65rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); position: relative; }
.card-h::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; border-radius: 2px; background: var(--primary); }
.glance .stat, .stat { background: var(--ground-2); border: 1px solid #E2D9C4; }
.db-grid { gap: 1.25rem; }
.tabs { background: var(--ground-3, #DDD4BE); }
