/* Haven Platform — shared design system for every site.
   Brand colors (--ink, --sun) are replaced at runtime with each company's own colors. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Dancing+Script:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #16324F;          /* company main color */
  --ink-deep: #0E2236;
  --sun: #E8711A;          /* company accent color */
  --sun-deep: #C25A0F;
  --paper: #F4F7FA;
  --surface: #FFFFFF;
  --wash: #EAF0F5;
  --line: #D6DFE8;
  --line-strong: #B7C4D1;
  --text: #13263A;
  --muted: #56677A;
  --ok: #1D7A51;   --ok-bg: #E4F4EC;
  --warn: #8A5A00; --warn-bg: #FDF1D6;
  --bad: #B43A25;  --bad-bg: #FBE7E2;
  --info: #1E5F8C; --info-bg: #E3EFF8;
  /* the tree in the logo */
  --dot-1: #E8711A; --dot-2: #2E9BD6; --dot-3: #7CB342; --dot-4: #E94B8A; --dot-5: #F2B705; --dot-6: #7B5CD6;

  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --r-sm: 6px; --r: 10px; --r-lg: 18px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(19, 38, 58, .06), 0 6px 24px rgba(19, 38, 58, .07);
  --focus: 0 0 0 3px color-mix(in srgb, var(--sun) 45%, transparent);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--sun-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-deep); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 1.95rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: var(--r-pill); font: 700 .98rem/1.2 var(--font-body); text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); color: #fff; }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-deep); color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 12px; }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn.is-busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.grid > .field, .grid > .field + .field { margin-top: 0; }
.label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--text); }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--bad); background: var(--bad-bg); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.check + .check { margin-top: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.check.is-invalid { border-color: var(--bad); background: var(--bad-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); cursor: pointer; font-size: .95rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-deep); margin: 0 0 14px; }
.section-title + .muted, .section-title + p { margin-top: -8px; }
.form-section { padding: 24px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 4px; }
.signature { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 2rem; color: var(--ink); min-height: 56px; padding: 6px 4px; border-bottom: 2px solid var(--line-strong); }
.signature:empty::before { content: 'Your signature appears here'; font: 400 .95rem var(--font-body); color: var(--muted); }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.panel-tight { padding: 16px 18px; }
.note { padding: 14px 16px; border-radius: var(--r); background: var(--wash); border-left: 4px solid var(--ink); }
.note-ok { background: var(--ok-bg); border-color: var(--ok); }
.note-warn { background: var(--warn-bg); border-color: #C98A00; }
.note-bad { background: var(--bad-bg); border-color: var(--bad); }
.note p:last-child { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* status pills carry meaning: color + word, never color alone */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-quiet { background: var(--wash); color: var(--muted); }

/* ---------- tables (scroll sideways on phones instead of breaking the page) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: .85rem; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-link { cursor: pointer; }
.table tr.is-link:hover td { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* definition lists for record details */
.facts { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-size: .92rem; padding-right: 12px; }
.facts dd { font-weight: 700; word-break: break-word; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- progress through a real sequence ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem var(--font-display); border: 2px solid var(--line-strong); color: var(--muted); background: var(--surface);
}
.steps > li.is-done::before { content: '✓'; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps > li.is-current::before { background: var(--sun); border-color: var(--sun); color: #fff; }
.steps > li.is-locked { opacity: .55; }
.steps .step-title { font-weight: 700; font-size: 1.05rem; }
.steps .step-desc { font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) { .steps > li { grid-template-columns: 40px 1fr; } .steps > li > :last-child { grid-column: 2; justify-self: start; } }

.meter { height: 8px; border-radius: var(--r-pill); background: var(--wash); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--sun); transition: width .5s ease; }

/* ---------- uploads ---------- */
.drop { display: block; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 26px 18px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { display: block; font-size: 1.05rem; color: var(--ink); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.file-row + .file-row { margin-top: 8px; }
.file-ico { width: 38px; height: 46px; border-radius: 4px; background: var(--wash); display: grid; place-items: center; font: 700 .7rem var(--font-body); color: var(--ink); flex-shrink: 0; }
.file-name { font-weight: 700; word-break: break-all; }

/* ---------- top bar used by every portal ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-deep); min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.brand-name { font: 700 1.02rem/1.15 var(--font-display); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-size: .8rem; color: var(--muted); display: block; }
.who { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .who { display: none; } }
.brand img, .brand > span[aria-hidden] { flex-shrink: 0; }
.brand > span:last-child { min-width: 0; }
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; gap: 6px 8px; padding-top: 8px; padding-bottom: 8px; }
  .topbar-in .spacer { flex-basis: 100%; height: 0; }
  .topbar-in .brand { flex: 1; }
}

/* ---------- sign-in screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.auth-side { background: var(--ink); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h1 { color: #fff; max-width: 14ch; }
.auth-side p { color: color-mix(in srgb, #fff 82%, var(--ink)); font-size: 1.1rem; }
.auth-side .brand { color: #fff; }
.auth-side .brand-sub { color: color-mix(in srgb, #fff 70%, var(--ink)); }
.auth-main { background: var(--surface); padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.auth-main h2 { margin-bottom: 4px; }
.auth-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding-bottom: 28px; }
  .auth-side .auth-extra { display: none; }
}

/* ---------- admin layout ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 67px); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 67px; height: calc(100vh - 67px); overflow-y: auto; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: var(--r); text-decoration: none; color: var(--text); font-weight: 700; }
.side a:hover { background: var(--wash); color: var(--ink); }
.side a.is-active { background: var(--ink); color: #fff; }
.side .count { font-size: .78rem; background: var(--sun); color: #fff; border-radius: var(--r-pill); padding: 1px 8px; }
.side .group { font-size: .8rem; color: var(--muted); padding: 16px 14px 6px; }
.main { padding: clamp(18px, 3vw, 32px); min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .side.is-open { display: block; }
  .menu-btn { display: inline-flex; }
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); text-decoration: none; color: inherit; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--paper); color: inherit; }
.stat b { display: block; font: 800 2rem/1.1 var(--font-display); color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { min-height: 42px; width: auto; flex: 1 1 200px; max-width: 320px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 700 .95rem var(--font-body); color: var(--muted); cursor: pointer; }
.tabs button.is-active { color: var(--ink); border-color: var(--sun); }

/* conversation */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--wash); }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble .meta { font-size: .75rem; opacity: .75; margin-top: 4px; }

/* ---------- toast + modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { background: var(--ink-deep); color: #fff; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow); animation: rise .25s ease; }
.toast.bad { background: var(--bad); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 34, 54, .55); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(100%, 720px); max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-body { padding: 20px; }
.viewer img { margin: 0 auto; max-height: 70vh; object-fit: contain; }
.viewer iframe { width: 100%; height: 70vh; border: 0; }

/* demo ribbon */
.demo-bar { background: #FFF6D8; color: #5C4100; font-size: .85rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F0DC9B; }
.demo-bar button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h3 { color: var(--ink-deep); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.footer { padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .88rem; }
[tabindex="-1"]:focus { box-shadow: none; outline: none; }


/* =====================================================================
   Little Haven classic look — matches the original onboarding portal:
   forest green + gold, Inter, rounded white cards, gradient sign-in card.
   Brand colors still come from each company's settings at runtime.
   ===================================================================== */
:root {
  --ink: #1a5c3a; --ink-deep: #0f3a24; --ink-mid: #217a4d; --ink-light: #2ea865;
  --sun: #f0a500; --sun-deep: #c88500;
  --paper: #eef5f1; --surface: #ffffff; --wash: #f4faf7;
  --line: #d4e8dc; --line-strong: #b9d6c4;
  --text: #111827; --muted: #6b7280;
  --ok: #059669; --ok-bg: #ecfdf5; --warn: #d97706; --warn-bg: #fffbeb; --bad: #dc2626; --bad-bg: #fef2f2; --info: #1a5c3a; --info-bg: #eef5f1;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px; --r: 8px; --r-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.06);
  --focus: 0 0 0 3px rgba(46,168,101,.22);
}
body { font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0; color: var(--text); }
h1 { font-size: clamp(1.45rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
.lead { font-size: 1rem; }

/* buttons: 8px corners like the original */
.btn { border-radius: var(--r-sm); min-height: 42px; padding: 9px 17px; font-weight: 600; font-size: .94rem; }
.btn-primary { background: var(--ink-mid); }
.btn-primary:hover { background: var(--ink); }
.btn-sun { background: var(--sun); color: #111; }
.btn-sun:hover { background: var(--sun-deep); color: #111; }
.btn-line { border: 2px solid var(--ink-mid); color: var(--ink-mid); background: transparent; }
.btn-line:hover { background: var(--ink-mid); color: #fff; border-color: var(--ink-mid); }
.btn-sm { min-height: 34px; padding: 6px 13px; font-size: .86rem; }

/* fields: small uppercase labels */
.label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.label .opt { text-transform: none; letter-spacing: 0; }
.input, .select, .textarea { min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--wash); border: 1.5px solid var(--line); font-size: .94rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink-light); }
.check { background: var(--wash); border-color: var(--line); }
.check:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.check input { accent-color: var(--ok); }
.signature { font-family: 'Dancing Script', cursive; font-size: 2.1rem; color: var(--ink); }
.section-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); }
.form-section { border-color: var(--line); }

/* cards */
.panel { border-radius: var(--r-lg); box-shadow: var(--shadow); border-color: var(--line); }
.note { border-left-width: 3px; border-radius: var(--r-sm); background: var(--info-bg); border-color: var(--ink); }
.table-wrap { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.table th { background: var(--wash); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; border-bottom-width: 2px; }

/* status badges: uppercase pills */
.pill { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; padding: 4px 10px; }
.pill::before { display: none; }

/* top bar: solid green, white text */
.topbar { background: var(--ink); border-bottom: 0; box-shadow: 0 2px 12px rgba(0,0,0,.28); }
.topbar-in { min-height: 62px; }
.topbar .brand, .topbar .brand-name { color: #fff; }
.topbar .brand-sub, .topbar .who { color: rgba(255,255,255,.75); }
.topbar .brand img { width: 40px; height: 40px; border-radius: 8px; background: #fff; }
.topbar .btn-ghost { color: #fff; }
.topbar .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .btn-line { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.topbar .btn-line:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.topbar .who::before { content: '👤 '; }

/* sign-in: centered card on a green gradient */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(148deg, var(--ink-deep) 0%, var(--ink) 60%, var(--ink-light) 100%); }
.auth-card { background: var(--surface); border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 10px 40px rgba(0,0,0,.2); width: 100%; max-width: 440px; overflow: hidden; }
.auth-card.wide { max-width: 500px; }
.auth-hd { background: var(--ink); padding: 24px 30px; text-align: center; color: #fff; }
.auth-hd img, .auth-hd .mono-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; margin: 0 auto 12px; display: block; border: 2px solid rgba(255,255,255,.3); }
.auth-title { font-size: 1.25rem; font-weight: 700; }
.auth-sub { font-size: .86rem; opacity: .75; margin-top: 3px; }
.auth-bd { padding: 26px 30px; }
.auth-ft { padding: 13px 30px; background: var(--wash); border-top: 1px solid var(--line); text-align: center; font-size: .86rem; color: var(--muted); }
.auth-ft a { color: var(--ink-mid); font-weight: 600; }
@media (max-width: 420px) { .auth-bd, .auth-hd, .auth-ft { padding-left: 20px; padding-right: 20px; } }

/* horizontal step tracker */
.stepper { display: flex; margin-bottom: 22px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.si { flex: 1; padding: 13px 6px; text-align: center; border-right: 1px solid var(--line); text-decoration: none; color: inherit; }
.si:last-child { border-right: 0; }
.si.done { background: var(--ok-bg); } .si.active { background: var(--info-bg); } .si.locked { opacity: .42; pointer-events: none; }
.sn { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; background: var(--line); color: var(--muted); }
.si.done .sn { background: var(--ok); color: #fff; } .si.active .sn { background: var(--ink-mid); color: #fff; }
.sl { font-size: .58rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sname { font-size: .7rem; font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) { .stepper { flex-direction: column; } .si { display: flex; align-items: center; gap: 11px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; } .si:last-child { border-bottom: 0; } .sn { margin: 0; flex-shrink: 0; } }

/* step cards with emoji icons */
.step-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.step-card + .step-card { margin-top: 11px; }
.step-card.is-done { border-color: var(--ok); } .step-card.is-next { border-color: var(--ink-light); }
.step-ico { font-size: 28px; flex-shrink: 0; line-height: 1; }
.step-card .t { font-weight: 600; font-size: .96rem; }
.step-card .d { font-size: .82rem; color: var(--muted); }
.meter { height: 7px; background: var(--line); }
.meter > span { background: linear-gradient(90deg, var(--ink-mid), var(--ink-light)); }

/* stat cards like the original admin */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 13px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-align: center; padding: 16px 10px; text-decoration: none; color: inherit; }
.stat-card:hover { border-color: var(--ink-light); color: inherit; }
.stat-card .ico { font-size: 22px; margin-bottom: 5px; }
.stat-card b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.stat-card span { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-row { box-shadow: var(--shadow); }
.stat b { font-family: var(--font-body); color: var(--ink-mid); }

/* admin sidebar */
.side a.is-active { background: var(--ink-mid); }
.side .count { background: var(--sun); color: #111; }
.tabs button.is-active { color: var(--ink-mid); border-color: var(--ink-mid); }
.bubble.mine { background: var(--ink-mid); }
.steps > li.is-current::before { background: var(--ink-mid); border-color: var(--ink-mid); }
.demo-bar { background: #fffbeb; color: #7c5300; border-color: #fde68a; }

/* employee photos, live step tracking */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--wash); border: 2px solid var(--line); }
.avatar-none { display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink-mid); color: #fff; font-weight: 700; flex-shrink: 0; width: 40px; height: 40px; }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 13px; background: var(--wash); border: 1px solid var(--line); filter: grayscale(1); opacity: .45; }
.dot.on { background: var(--ok-bg); border-color: var(--ok); filter: none; opacity: 1; }
.dot.open { border-style: dashed; border-color: var(--ink-light); opacity: .8; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(5,150,105,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(5,150,105,0); } 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); } }
.emp-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.photo-btn span:last-child { position: absolute; inset: auto 0 -6px 0; margin: auto; width: max-content; font-size: .68rem; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.photo-btn:hover span:last-child, .photo-btn:focus-visible span:last-child { opacity: 1; }
.photo-btn .avatar-none { width: 96px; height: 96px; font-size: 2rem; }
.steps-admin { display: grid; gap: 0; }
.sa-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sa-row.is-done .sa-main strong { color: var(--ok); }
.sa-ico { font-size: 22px; text-align: center; }
.sa-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .sa-row { grid-template-columns: 34px minmax(0, 1fr); } .sa-act { grid-column: 2; justify-content: flex-start; } }

/* position picker on the job application */
.positions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 4px; }
.positions legend { grid-column: 1 / -1; margin-bottom: 8px; }
.pos { position: relative; cursor: pointer; }
.pos input { position: absolute; opacity: 0; }
.pos span { display: block; text-align: center; padding: 12px 6px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--wash); height: 100%; }
.pos b { display: block; font-size: .95rem; }
.pos small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.pos input:checked + span { border-color: var(--ink-mid); background: var(--ok-bg); box-shadow: var(--focus); }
.pos input:focus-visible + span { box-shadow: var(--focus); }
@media (max-width: 420px) { .positions { grid-template-columns: 1fr; } }
.state-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; background: var(--surface); margin-top: 12px; }
.state-card h3 { font-size: 1rem; margin: 0; }
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; margin-top: 6px; }
.net-grid label { font-size: .86rem; display: flex; gap: 6px; align-items: flex-start; }

.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }

/* referral: quick upload or full form */
.ref-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.ref-opt { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--text); }
.ref-opt b { display: block; font-size: 1rem; color: var(--ink); }
.ref-opt span { font-size: .85rem; color: var(--muted); }
.ref-opt.is-on { border-color: var(--ink-mid); background: var(--ok-bg); }
@media (max-width: 560px) { .ref-choice { grid-template-columns: 1fr; } }
.ref-choice.ref-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .ref-choice.ref-3 { grid-template-columns: 1fr; } }

/* ================= Clients: color stages, sheet, client page ================= */
:root {
  --st-white: #8a96a3; --st-white-bg: #ffffff;
  --st-purple: #6d3fd0; --st-purple-bg: #efe8fc;
  --st-orange: #c96a05; --st-orange-bg: #fdecd8;
  --st-blue: #1f63c4; --st-blue-bg: #e1edfc;
  --st-green: #17804a; --st-green-bg: #e0f4e8;
  --st-red: #c0362b; --st-red-bg: #fbe2df;
  --st-grey: #5f6b77; --st-grey-bg: #eceff2;
}
.st { --c: var(--st-white); --bg: var(--st-white-bg); }
.st-purple { --c: var(--st-purple); --bg: var(--st-purple-bg); }
.st-orange { --c: var(--st-orange); --bg: var(--st-orange-bg); }
.st-blue { --c: var(--st-blue); --bg: var(--st-blue-bg); }
.st-green { --c: var(--st-green); --bg: var(--st-green-bg); }
.st-red { --c: var(--st-red); --bg: var(--st-red-bg); }
.st-grey { --c: var(--st-grey); --bg: var(--st-grey-bg); }
.st-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: var(--r-pill); background: var(--bg); color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); font: 700 .78rem var(--font-body); white-space: nowrap; cursor: pointer; }
.st-pill::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.st-white .st-pill::before, .st-pill.st-white::before { background: #fff; border: 1.5px solid var(--st-white); }
button.st-pill:hover { filter: brightness(.97); }
.st-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; border: 1.5px solid color-mix(in srgb, var(--c) 60%, #fff); }

/* filter chips with counts */
.stage-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stage-filters button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--r-pill); padding: 7px 13px; font: 700 .85rem var(--font-body); cursor: pointer; }
.stage-filters button b { font-variant-numeric: tabular-nums; background: var(--wash); border-radius: var(--r-pill); padding: 0 8px; font-size: .8rem; }
.stage-filters button.is-on { border-color: var(--c, var(--ink)); background: var(--bg, var(--wash)); color: var(--c, var(--ink)); }
.stage-filters button:hover { border-color: var(--line-strong); }

/* the sheet */
.sheet-wrap { overflow: auto; max-height: calc(100vh - 250px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
.sheet th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; text-align: left; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.15); }
.sheet td { padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent); white-space: nowrap; background: var(--bg); vertical-align: middle; }
.sheet tr.st td:first-child { box-shadow: inset 6px 0 0 var(--c); padding-left: 16px; }
.sheet tr:hover td { filter: brightness(.975); }
.sheet td.name a { font-weight: 800; color: var(--ink-deep); text-decoration: none; }
.sheet td.name a:hover { text-decoration: underline; }
.sheet td.wrapcell { white-space: normal; min-width: 180px; }
.sheet .num { font-variant-numeric: tabular-nums; }
.sheet .ck { font-size: 1.05rem; text-align: center; }
.sheet .no { color: var(--bad); font-weight: 700; }
.sheet td.sticky-name, .sheet th.sticky-name { position: sticky; left: 0; z-index: 1; }
.sheet th.sticky-name { z-index: 3; }

/* stage menu (pick a color) */
.stage-menu { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 6px; min-width: 290px; }
.stage-menu button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: 600 .9rem var(--font-body); color: var(--text); cursor: pointer; text-align: left; }
.stage-menu button:hover, .stage-menu button.is-on { background: var(--bg, var(--wash)); }
.stage-menu small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }

/* overview color cards */
.stage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stage-card { display: block; text-decoration: none; color: inherit; background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 7px solid var(--c); border-radius: var(--r-lg); padding: 14px 16px; }
.stage-card b { display: block; font: 800 2rem var(--font-display); color: var(--c); line-height: 1.1; }
.stage-card span { font-weight: 700; font-size: .88rem; }
.stage-card small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.stage-card:hover { color: inherit; box-shadow: var(--shadow); }
.stage-card.st-white { border-left-color: var(--st-white); }

/* client page */
.client-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--c); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.client-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.client-num { font: 800 .85rem var(--font-body); background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 9px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.action-bar .btn { gap: 6px; }
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg); border: 1.5px dashed var(--c); border-radius: var(--r); padding: 10px 14px; margin-top: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.k-note::before { background: var(--sun); } .timeline li.k-call::before { background: var(--st-blue); }
.timeline li.k-stage::before { background: var(--st-purple); } .timeline li.k-signature::before { background: var(--st-green); }
.timeline li.k-ai::before { background: #d97757; } .timeline li.k-doc::before { background: var(--st-orange); }
.timeline .meta { font-size: .78rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 12px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.ai-box { border: 1.5px solid #e8c2b2; background: #fdf3ee; border-radius: var(--r); padding: 12px 14px; }
.ai-box .ai-tag { font: 800 .72rem var(--font-body); color: #b4532f; letter-spacing: .06em; text-transform: uppercase; }
.drive-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--paper); }
.drive-box ul { margin: 8px 0 0; padding-left: 0; list-style: none; font-size: .88rem; }
.drive-box li::before { content: '📄 '; }

/* documents on screen, signature boxes */
.doc-stage { background: #e9edf1; border-radius: var(--r); padding: 16px; overflow: auto; max-height: 68vh; display: grid; justify-items: center; gap: 14px; }
.doc-page { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); flex: none; user-select: none; }
.doc-page canvas, .doc-page img { display: block; }
.sig-field { position: absolute; border: 2px dashed #b88a00; background: rgba(255, 213, 79, .35); border-radius: 4px; display: flex; align-items: center; justify-content: center; font: 800 .72rem var(--font-body); color: #6b4e00; cursor: move; touch-action: none; overflow: hidden; }
.sig-field[data-type="date"], .sig-field[data-type="name"], .sig-field[data-type="text"] { border-color: #2f74c0; background: rgba(120, 180, 255, .3); color: #1c4d86; }
.sig-field .x { position: absolute; top: -2px; right: 0; background: none; border: 0; font: 800 1rem var(--font-body); color: inherit; cursor: pointer; padding: 0 4px; }
.sig-field .grip { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, currentColor 50%); opacity: .6; }
.sig-field.to-sign { cursor: pointer; border-style: solid; animation: pulse 1.6s ease-in-out infinite; }
.sig-field.to-sign.done { animation: none; background: rgba(255,255,255,.4); border-color: var(--ok); }
.sig-field img { max-width: 100%; max-height: 100%; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 193, 7, .35); } }
.field-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field-tools button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sig-canvas { width: 100%; height: auto; aspect-ratio: 900 / 260; border: 2px dashed var(--line-strong); border-radius: var(--r); background: #fff; touch-action: none; cursor: crosshair; }
.sig-typed { font: 600 3rem 'Dancing Script', cursive; color: #0b1f4d; min-height: 80px; border-bottom: 1px solid var(--line); margin-top: 10px; }
.sign-bar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); padding: 12px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 24px rgba(0,0,0,.08); }

/* access chips (users & access) */
.access-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.waiting-card { max-width: 560px; margin: 60px auto; text-align: center; }
.badge-ai { display: inline-flex; gap: 6px; align-items: center; font: 800 .72rem var(--font-body); color: #b4532f; background: #fdf3ee; border: 1px solid #e8c2b2; border-radius: var(--r-pill); padding: 2px 9px; }

@media (max-width: 760px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .sheet-wrap { max-height: none; }
}
.prog-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.prog-tabs a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--text); }
.prog-tabs a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--font-body); cursor: pointer; color: var(--text); }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.note-cell { min-width: 240px; max-width: 340px; }
.note-cell .btn { padding: 2px 8px; min-height: 0; }
.file-row.is-muted { opacity: .6; }
/* Claude */
.ai-ask { display: flex; gap: 8px; align-items: center; border: 2px solid #e8c2b2; background: #fff; border-radius: 999px; padding: 5px 6px 5px 14px; }
.ai-ask .input { border: 0; background: transparent; box-shadow: none; flex: 1; min-height: 40px; padding: 0 4px; }
.ai-ask .input:focus { box-shadow: none; }
.ai-ask .btn { border-radius: 999px; }
.ai-spark { font-size: 1.2rem; }
.ai-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-panel { margin-bottom: 14px; border: 1.5px solid #e8c2b2; background: #fdf8f5; border-radius: var(--r-lg); padding: 10px 14px; }
.ai-panel > summary { cursor: pointer; font-weight: 800; color: #b4532f; }
.ai-panel[open] > summary { margin-bottom: 10px; }
.ai-panel-in { border-color: #e8c2b2; background: #fffaf7; }
.note-cell { font-size: .82rem; line-height: 1.35; }
.note-cell > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* All Clients: status dropdown, right-click flags, notes column */
.st-select { position: relative; display: inline-flex; align-items: center; --c: var(--st-white, #9aa3ad); }
.st-select.st-purple { --c: var(--st-purple); } .st-select.st-orange { --c: var(--st-orange); } .st-select.st-blue { --c: var(--st-blue); }
.st-select.st-green { --c: var(--st-green); } .st-select.st-red { --c: var(--st-red); } .st-select.st-grey { --c: var(--st-grey); }
.st-select select { appearance: none; -webkit-appearance: none; font: 700 .78rem var(--font-body); color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: var(--r-pill); padding: 5px 26px 5px 10px; cursor: pointer; max-width: 230px; }
.st-select.st select { color: var(--text); background: var(--surface); border-color: var(--line); }
.st-select::after { content: '▾'; position: absolute; right: 10px; pointer-events: none; color: var(--c); font-size: .8rem; }
.st-select.st::after { color: var(--muted); }
.st-select select:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.name-line { display: flex; align-items: center; gap: 6px; }
.row-more { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.row-more:hover, .row-more:focus-visible { background: var(--wash, rgba(0,0,0,.06)); color: var(--text); }
.flag-chip { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: var(--r-pill); font: 700 .72rem var(--font-body); white-space: normal; max-width: 220px; }
.fl-blue { background: #e3efff; color: #1f5fbf; } .fl-amber { background: #fff1d6; color: #8a5a00; } .fl-green { background: #e2f6e9; color: #1a6b3c; } .fl-grey { background: #eef0f2; color: #3c4650; }
.ctx-menu { min-width: 240px; }
.ctx-menu .ctx-title { font: 700 .8rem var(--font-body); color: var(--muted); padding: 6px 10px 4px; }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ctx-menu .ctx-ico { width: 22px; text-align: center; }
.sheet .note-cell { min-width: 220px; max-width: 300px; }
.note-open { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.note-open .note-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-open .note-by { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.note-open:hover .note-text { text-decoration: underline; }
.note-actions { display: flex; gap: 4px; margin-top: 4px; }
.notes-list { max-height: 50vh; overflow: auto; }
.timeline .k-flag::before { background: var(--st-red, #d64545); }

/* Ask AI: small tab on the side, opens a slide-in panel */
.ask-ai-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; writing-mode: vertical-rl; display: flex; align-items: center; gap: 6px; padding: 14px 8px; border: 1.5px solid #e8c2b2; border-right: 0; border-radius: 12px 0 0 12px; background: #fff7f2; color: #b4532f; font: 800 .85rem var(--font-body); cursor: pointer; box-shadow: -4px 4px 16px rgba(0,0,0,.08); }
.ask-ai-tab:hover, .ask-ai-tab:focus-visible { background: #ffeee4; }
.ask-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 70; background: var(--surface, #fff); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.15); padding: 16px 18px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; }
.ask-drawer.is-open { transform: none; }
.ask-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 1.1rem; color: #b4532f; }
.ask-drawer .ai-ask { padding-left: 10px; }
.ask-drawer .ai-hints { margin-top: 10px; }
@media (max-width: 700px) { .ask-ai-tab { top: auto; bottom: 84px; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ask-drawer { transition: none; } }

/* @mentions in notes */
.at-menu { position: absolute; z-index: 80; left: 8px; margin-top: 4px; min-width: 240px; max-height: 280px; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: 6px; }
.at-menu .at-head { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px 6px; }
.at-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px; border-radius: 8px; font: 600 .92rem var(--font-body); color: var(--text); text-align: left; cursor: pointer; }
.at-menu button.is-on, .at-menu button:hover { background: var(--wash, #eef5f1); }
.at-av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand, #1a5c3a); color: #fff; display: inline-grid; place-items: center; font: 800 .72rem var(--font-body); flex: none; }
.at-tag { background: #e3efff; color: #1f5fbf; border-radius: 6px; padding: 0 4px; font-weight: 700; }
.at-to { color: #1a6b3c; font-weight: 700; }
.at-btn { font-weight: 800; }

/* To Do list */
.todo-row { display: flex; align-items: center; gap: 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.todo-row.is-new { border-color: var(--sun, #f0a500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun, #f0a500) 22%, transparent); }
.todo-row.is-done .todo-text { text-decoration: line-through; color: var(--muted); }
.todo-text { font-weight: 700; white-space: pre-wrap; }
.todo-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong, #9fb3a8); background: #fff; cursor: pointer; font-weight: 900; color: #fff; }
.todo-check:hover { border-color: var(--brand, #1a5c3a); background: #eef5f1; }
.todo-check.on { background: var(--ok, #1f8a4c); border-color: var(--ok, #1f8a4c); }
.select-sm { min-height: 34px; padding: 4px 28px 4px 10px; font-size: .85rem; width: auto; max-width: 170px; }
.side a.has-new .count { animation: todo-pulse 1.2s ease-in-out 3; background: var(--sun, #f0a500); }
@keyframes todo-pulse { 50% { transform: scale(1.25); } }
.todo-pop { position: fixed; left: 18px; bottom: 18px; z-index: 75; width: min(360px, calc(100vw - 36px)); background: #fffdf5; border: 2px solid var(--sun, #f0a500); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.2); animation: todo-in .25s ease-out; }
@keyframes todo-in { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .todo-pop, .side a.has-new .count { animation: none; } }
@media (max-width: 700px) { .todo-row { flex-wrap: wrap; } .todo-row .select-sm { max-width: none; flex: 1; } }

/* Team chat */
.chat-room { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-list { height: min(62vh, 620px); overflow-y: auto; padding: 16px 18px; background: linear-gradient(#fbfdfc, #f4f8f6); }
.chat-day { text-align: center; margin: 14px 0 10px; }
.chat-day span { font: 700 .74rem var(--font-body); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 78%; }
.chat-msg.cont { margin-top: 3px; padding-left: 36px; }
.chat-msg.mine { margin-left: auto; flex-direction: row-reverse; }
.chat-msg.mine.cont { padding-left: 0; }
.chat-bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; min-width: 80px; }
.chat-msg.mine .chat-bubble { background: var(--brand, #1a5c3a); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.chat-msg.mine .at-tag { background: rgba(255,255,255,.2); color: #fff; }
.chat-msg.tagged .chat-bubble { border: 2px solid var(--sun, #f0a500); }
.chat-who { font: 800 .78rem var(--font-body); color: var(--brand, #1a5c3a); margin-bottom: 2px; }
.chat-time { font-size: .7rem; opacity: .65; margin-top: 4px; text-align: right; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface, #fff); position: relative; }
.chat-form .textarea { flex: 1; min-height: 46px; max-height: 160px; resize: vertical; }
.chat-form .at-menu { top: auto; bottom: 100%; margin: 0 0 6px; }
@media (max-width: 700px) { .chat-msg { max-width: 92%; } .chat-list { height: 58vh; } }

/* Optional upload boxes inside forms (parent "Add a child") */
.drop.drop-sm { padding: 14px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; position: relative; }
.drop.has-file { border-style: solid; border-color: var(--ok, #1f8a4c); background: color-mix(in srgb, var(--ok, #1f8a4c) 6%, var(--surface)); }

/* Days and hours picker (parent "which days do you want services?") */
.day-pick { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.day-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(110px, 140px) auto minmax(110px, 140px); gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); }
.day-row:first-child { border-top: 0; }
.day-row.is-on { background: color-mix(in srgb, var(--ok, #1f8a4c) 6%, var(--surface)); }
.day-row:not(.is-on) select { opacity: .45; }
.day-chk { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-height: 40px; }
.day-chk input { width: 22px; height: 22px; accent-color: var(--ok, #1f8a4c); }
.day-row .select { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.day-to { color: var(--muted); font-size: .9rem; }
.day-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--paper, #f7f9fb); }
.avail-note { margin-top: 12px; }
.avail-note p { font-size: 1rem; line-height: 1.5; }
@media (max-width: 560px) { .day-row { grid-template-columns: 1fr 1fr; } .day-chk { grid-column: 1 / -1; } .day-to { display: none; } }

/* Parent "Add a child": the two pictures one under the other, then "type it in manually" */
.pic-stack { display: grid; gap: 12px; margin-top: 16px; }
.pic-stack .drop.drop-sm { padding: 18px; }
.pic-stack .drop strong { font-size: 1.05rem; }
.manual-link { display: inline-block; margin-top: 14px; border: 0; background: none; padding: 6px 0; font: 700 1rem var(--font-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.manual-link:hover { color: var(--ink-deep, var(--ink)); }
.manual-box { margin-top: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper, #f7f9fb); }

/* English / Español switch */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font: 800 .95rem var(--font-body); cursor: pointer; }
.topbar .lang-btn { color: #fff; border-color: rgba(255,255,255,.6); }
.lang-btn:hover { background: rgba(255,255,255,.12); }

/* Quick upload page (from the office's email) */
.quick-wrap { max-width: 620px; padding-top: 24px; padding-bottom: 40px; }
.quick-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 6px; }
.quick-drop { display: flex !important; align-items: center; gap: 14px; text-align: left !important; padding: 18px !important; position: relative; }
.quick-drop strong { display: block; font-size: 1.08rem; }
.quick-ico { font-size: 2rem; }
.quick-track { margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: var(--paper, #f7f9fb); text-align: left; }
.quick-track h2 { font-size: 1.25rem; }

/* Two big radio choices (Email a parent) */
.choice-cards { display: grid; gap: 10px; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--ink); background: var(--paper, #f7f9fb); }
.choice-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.choice-card strong { display: block; font-size: 1.02rem; }
.choice-card small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* Add client choice + Quick uploads inbox */
.choice-btn { width: 100%; text-align: left; background: var(--surface); font: inherit; color: inherit; }
.choice-btn:hover, .choice-btn:focus-visible { border-color: var(--ink); background: var(--paper, #f7f9fb); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 16px; }
.q-card .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.q-card .kv dt { color: var(--muted); font-weight: 700; }
.q-card .kv dd { margin: 0; }

/* Long acknowledgment checklists (BT / RBT session notes) */
.cl-head { font-size: 1.05rem; margin: 22px 0 6px; padding: 8px 12px; border-radius: 8px; background: #f07a14; color: #fff; }
.cl-item { margin-top: 0 !important; padding: 10px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cl-item input { margin-top: 3px; }
.cl-count { position: sticky; top: 76px; z-index: 5; padding: 10px 14px; border-radius: 10px; background: #fff4e5; color: #8a4b00; font-weight: 800; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cl-count.is-done { background: #e2f6e9; color: #1a6b3c; }

.appt-box { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--wash, #f6faf7); }

.auth-wrap { position: relative; }
.auth-home { position: absolute; top: 14px; left: 16px; z-index: 2; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Private chat */
.pc-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
.pc-side { padding: 14px; }
.pc-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.pc-thread { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.pc-thread:hover, .pc-thread.is-on { background: var(--wash, #eef6f1); }
.pc-thread .count { background: var(--sun, #f0a500); color: #111; border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.pc-last { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-head { padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.chip.is-on > span { background: var(--ink, #1a5c3a) !important; color: #fff !important; border-color: var(--ink, #1a5c3a) !important; }
a.chip { text-decoration: none; }
@media (max-width: 760px) { .pc-wrap { grid-template-columns: 1fr; } }

/* Activity log */
.act-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.act-cal { padding: 14px; position: sticky; top: 12px; }
.act-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.act-dow { text-align: center; font-size: .7rem; color: var(--muted, #6b7280); font-weight: 700; }
.act-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.act-day small { font-size: .62rem; color: var(--ok, #1a7f4b); }
.act-day.has { background: var(--wash, #eef6f1); }
.act-day.is-today { border-color: var(--sun, #f0a500); }
.act-day.is-on { background: var(--ink, #1a5c3a); color: #fff; }
.act-day.is-on small { color: #fff; }
.act-bar { position: relative; height: 12px; background: #eef1ef; border-radius: 6px; overflow: hidden; min-width: 160px; }
.act-bar span { position: absolute; top: 0; bottom: 0; background: var(--ink, #1a5c3a); border-radius: 6px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: livepulse 1.6s infinite; vertical-align: middle; }
@keyframes livepulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
@media (max-width: 900px) { .act-wrap { grid-template-columns: 1fr; } .act-cal { position: static; } }

/* Admin page size control */
.zoom-ctl { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 1px 3px; }
.zoom-ctl .btn { min-height: 30px; padding: 0 8px; }
.zoom-val { min-width: 52px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .zoom-ctl { display: none; } }

.sa-group { margin: 16px 0 6px; font-size: .95rem; color: var(--ink); }

/* Employee list: more filters */
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.filter-grid .field { margin: 0; }

/* Parent portal: simple steps and the intake form */
.simple-step { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 1.05rem; }
.simple-step > span:first-of-type { font-weight: 600; color: var(--muted); }
.simple-list { display: grid; gap: 10px; }
.simple-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); }
.simple-card.is-done { background: color-mix(in srgb, var(--ok, #1a7f4b) 6%, #fff); border-color: color-mix(in srgb, var(--ok, #1a7f4b) 30%, #fff); }
.simple-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg, #f4f5f2); font-size: 1.35rem; }
.simple-card.is-done .simple-ico { background: var(--ok, #1a7f4b); color: #fff; font-size: 1.2rem; font-weight: 700; }
.simple-body { flex: 1; min-width: 0; }
.simple-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.simple-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.simple-act { flex: none; }
.simple-act .btn { position: relative; }
.linkish { background: none; border: 0; padding: 6px 0 0; color: var(--brand, #0e3b2b); text-decoration: underline; cursor: pointer; }
.mini-form { margin-top: 10px; }
@media (max-width: 560px) { .simple-card { flex-wrap: wrap; } .simple-act { width: 100%; } .simple-act .btn { width: 100%; justify-content: center; } }
.iq-sec h3 { margin: 0 0 10px; font-size: 1.05rem; }
.iq-sec .field { margin-top: 12px; }
.iq-sec + .iq-sec, .iq-doc + .iq-doc { margin-top: 12px; }
.people-row + .people-row { margin-top: 6px; }
.therapy { display: grid; gap: 8px; }
.therapy-row { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.therapy-row > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.therapy-row[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.therapy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 12px; }
.therapy-grid label { display: grid; gap: 2px; min-width: 0; }
.therapy-grid .span2 { grid-column: 1 / -1; }
.therapy-grid .input { width: 100%; box-sizing: border-box; }
.iq-doc summary { cursor: pointer; padding: 4px 0; }
.doc-text { max-height: 340px; overflow: auto; margin-top: 10px; padding: 12px 14px; background: var(--bg, #f6f7f5); border-radius: 10px; font-size: .93rem; }
.doc-text h4 { margin: 12px 0 4px; font-size: .95rem; }
.doc-text p { margin: 0 0 8px; } .doc-text .li { padding-left: 10px; }
.check.initial .ini { display: inline-block; min-width: 34px; padding: 0 4px; margin-right: 6px; border-bottom: 1px solid currentColor; color: var(--brand, #0e3b2b); text-align: center; }

/* Employee: become an RBT */
.become-rbt { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px; border-radius: var(--r-lg, 14px); border: 1px solid var(--sun, #f0a500); background: color-mix(in srgb, var(--sun, #f0a500) 10%, #fff); color: inherit; text-decoration: none; }
.become-rbt b { display: block; font-size: 1.05rem; } .become-rbt small { display: block; color: var(--muted); margin-top: 2px; }
.br-ico { font-size: 2rem; }
.rbt-step { display: flex; gap: 14px; padding: 18px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg, 14px); background: var(--paper, #fff); }
.rbt-step.is-later { opacity: .55; } .rbt-step.is-now { border-color: var(--brand, #1a5c3a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #1a5c3a) 15%, transparent); }
.rbt-num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg, #eef2ee); }
.rbt-step.is-done .rbt-num { background: var(--ok, #1a7f4b); color: #fff; } .rbt-step.is-now .rbt-num { background: var(--brand, #1a5c3a); color: #fff; }
.rbt-body { flex: 1; min-width: 0; } .rbt-body h2 { margin: 4px 0 8px; font-size: 1.1rem; }
.rbt-howto { padding-left: 20px; } .rbt-howto li { margin-bottom: 6px; }
.rp-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rp-form { margin: 0 0 10px 28px; padding: 10px 12px; background: var(--bg, #f4f6f3); border-radius: 10px; }
.rp-form .field { margin-top: 6px; }

.idle-warn { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* Parent portal: where things are */
.track { list-style: none; margin: 0; padding: 0; }
.track li { display: flex; gap: 12px; padding: 10px 0; position: relative; color: var(--muted); }
.track li + li { border-top: 1px dashed var(--line); }
.track li.is-done, .track li.is-now { color: var(--ink); }
.track-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--bg, #eef2ee); }
.track li.is-done .track-dot { background: var(--ok, #1a7f4b); color: #fff; }
.track li.is-now .track-dot { background: var(--brand, #1a5c3a); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #1a5c3a) 18%, transparent); }
.track li.is-now strong { color: var(--brand, #1a5c3a); }
/* Quick upload: the authorization to release information, signed right on the page */
.release-box { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb; }
.release-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.release-text { font-size: .9rem; line-height: 1.5; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 260px; overflow: auto; }
.release-text p { margin: 0 0 8px; } .release-text ul { margin: 0 0 8px; padding-left: 20px; }
.release-doc { margin-top: 10px; } .release-doc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.release-sig { font-family: 'Dancing Script', cursive, serif; font-size: 1.25rem; }
/* Quick upload: pick the insurance */
.ins-pick { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ins-opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.ins-opt:has(input:checked) { border-color: var(--ink); background: #e8f3ec; box-shadow: 0 0 0 1px var(--ink); }
.ins-opt input { accent-color: var(--ink); flex: none; }
@media (max-width: 420px) { .ins-grid { grid-template-columns: 1fr; } }
/* Intake form: what still needs an answer */
.iq-missing { outline: 3px solid #d93025; outline-offset: 4px; border-radius: 8px; animation: iqPulse 1.2s ease 2; }
@keyframes iqPulse { 50% { outline-color: #f6b26b; } }
@media (prefers-reduced-motion: reduce) { .iq-missing { animation: none; } }

/* Time clock in the top bar */
.clk { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.clk-st { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted, #5f6368); white-space: nowrap; }
.clk-st i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.clk-on { color: #137333; } .clk-on i { background: #34a853; box-shadow: 0 0 0 3px #e6f4ea; }
.clk-lunch { color: #a05a00; } .clk-lunch i { background: #f9ab00; }
.clk-pop { position: fixed; left: 18px; bottom: 18px; z-index: 80; width: min(340px, calc(100vw - 36px)); background: #f6fbf7; border: 2px solid #34a853; border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
@media (max-width: 760px) { .clk-st { display: none; } }
