/* =============================================================================
   CLARITY  -  Ultrasound Expert design system (prototype v0.1)
   Goal: modern, calm, and usable by people of any age (target: comfortable for 80+).
   Rules of thumb baked into the tokens:
     - Body text 18px minimum, secondary text never below 16px
     - Text contrast >= 7:1 (WCAG AAA) for body copy, >= 4.5:1 for everything else
     - Touch targets >= 56px high, 12px+ between targets
     - Every icon has a visible text label
     - Colour is never the only signal (status = icon + word + colour)
   ========================================================================== */
@import url("fonts.css");

@font-face { font-family: "UE Icons"; font-weight: 400; src: url("fonts/fa-regular-400.woff2") format("woff2"); }
@font-face { font-family: "UE Icons"; font-weight: 900; src: url("fonts/fa-solid-900.woff2") format("woff2"); }

:root {
  /* ---- colour: neutrals ---- */
  --ink: #0F2438;          /* primary text      15.9:1 on white */
  --ink-2: #374A5E;        /* secondary text     9.3:1 on white */
  --bg: #F3F6F9;           /* page background */
  --surface: #FFFFFF;
  --surface-2: #E9EFF5;    /* quiet fills */
  --line: #CBD5E0;         /* decorative dividers only */
  --line-strong: #5F7388;  /* input / control borders (>= 3:1) */

  /* ---- colour: brand & actions ---- */
  --brand: #00B4EE;        /* logo cyan: illustration / decoration only, never text */
  --primary: #095499;      /* main actions       7.7:1 with white text (AAA) */
  --primary-hover: #073F73;
  --primary-tint: #E3F0FB;
  --ok: #146235;           /* confirmed / join   7.4:1 with white text (AAA) */
  --ok-ink: #0E4A28;       /* text on ok-tint    >= 8:1 */
  --ok-tint: #E0F3E7;
  --warn: #6B4000;         /* waiting            7.8:1 on warn-tint (AAA) */
  --warn-tint: #FFEFC7;
  --warn-edge: #E39B00;
  --bad: #A8221B;          /* cancel / error     7.2:1 with white text (AAA) */
  --bad-ink: #861A14;      /* text on bad-tint */
  --bad-tint: #FCE7E5;
  --focus: #F5A400;        /* keyboard focus ring */

  /* ---- shape & depth ---- */
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,36,56,.06), 0 4px 16px rgba(15,36,56,.06);
  --shadow-2: 0 2px 4px rgba(15,36,56,.08), 0 12px 32px rgba(15,36,56,.12);

  --tap: 60px;             /* default control height */
}

/* ---- comfort modes (driven by Settings > Comfort) ---- */
html.text-lg { font-size: 21px; }
html.text-xl { font-size: 24px; }
html.contrast {
  --ink: #000; --ink-2: #1A1A1A; --bg: #FFFFFF; --surface-2: #F0F0F0;
  --line: #000; --line-strong: #000;
  --primary: #003F7D; --primary-hover: #002B57; --primary-tint: #E6EEF7;
  --ok: #0B4F2A; --warn: #5A3500; --bad: #8F1109;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
  font-size: 1rem; line-height: 1.6; letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; } h4 { font-size: 1.1rem; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- icons: always rendered next to a text label ---- */
.i { font-family: "UE Icons"; font-weight: 400; font-style: normal; display: inline-block; line-height: 1; text-align: center; width: 1.25em; flex: none; }
.i.s { font-weight: 900; }

/* =============================================================================
   LAYOUT SHELL - customer (top navigation)
   ========================================================================== */
.app { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--surface); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 20px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.logo img { width: 42px; height: 42px; }
.logo small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-2); letter-spacing: .02em; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; border-radius: var(--r-md); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; position: relative; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--primary-tint); color: var(--primary-hover); border-color: var(--primary); }
.nav .count { background: var(--bad); color: #fff; font-size: .85rem; min-width: 26px; height: 26px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.chip-btn { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink); font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; text-decoration: none; }
.textsize { display: flex; align-items: center; border: 2px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; height: 52px; }
.textsize span { padding: 0 12px; font-weight: 700; height: 100%; display: flex; align-items: center; }
.textsize span.on { background: var(--ink); color: #fff; }
.me { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 4px 14px 4px 4px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); height: 52px; font-weight: 700; }
.me img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.page { max-width: 1320px; width: 100%; margin: 0 auto; padding: 32px 32px 120px; flex: 1; }
.page.narrow { max-width: 1000px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--primary); height: 48px; margin-bottom: 8px; }
.back:hover { text-decoration: underline; }

/* help button, always visible */
.help-fab { position: absolute; right: 28px; bottom: 28px; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 26px 0 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-2); text-decoration: none; }
.help-fab .i { font-size: 1.4rem; color: #FFD166; }

/* =============================================================================
   LAYOUT SHELL - staff (mentors / admins: left navigation, light, always labelled)
   ========================================================================== */
.staff { display: grid; grid-template-columns: 280px 1fr; grid-template-rows: minmax(0, 1fr); min-height: 100vh; overflow: hidden; }
.side { overflow: hidden; background: var(--surface); border-right: 2px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { padding: 0 12px 20px; }
.side h6 { margin: 18px 12px 6px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.side a { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px; border-radius: var(--r-md); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; }
.side a[aria-current="page"] { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-hover); }
.side a .count { margin-left: auto; background: var(--warn-edge); color: #1d1200; border-radius: 13px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.side .me { margin-top: auto; }
.staff-main { padding: 28px 40px 100px; position: relative; }

/* =============================================================================
   COMPONENTS
   ========================================================================== */
/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--tap); padding: 0 30px; border-radius: var(--r-md); border: 2px solid var(--primary); background: var(--primary); color: #fff; font-family: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.secondary { background: var(--surface); color: var(--primary); }
.btn.secondary:hover { background: var(--primary-tint); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); text-decoration: underline; padding: 0 12px; }
.btn.lg { min-height: 72px; font-size: 1.25rem; padding: 0 40px; border-radius: 18px; }
.btn.block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); cursor: not-allowed; }
.btn .i { font-size: 1.2em; }

/* ---- cards ---- */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--primary-tint); border-color: #A9CCEC; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }  /* = 16.2px: smallest text allowed */

/* ---- status: icon + word + colour ---- */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: .92rem; line-height: 1.2; border: 2px solid; }
.status.wait { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-edge); }
.status.ok { background: var(--ok-tint); color: var(--ok-ink); border-color: #7CC49A; }
.status.live { background: var(--primary); color: #fff; border-color: var(--primary); }
.status.done { background: var(--surface-2); color: var(--ink-2); border-color: var(--line-strong); }
.status.bad { background: var(--bad-tint); color: var(--bad-ink); border-color: #E59A95; }

/* ---- notices ---- */
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-md); border: 2px solid; font-size: 1.02rem; }
.notice .i { font-size: 1.5rem; margin-top: 2px; }
.notice.info { background: var(--primary-tint); border-color: #A9CCEC; }
.notice.info .i { color: var(--primary); }
.notice.wait { background: var(--warn-tint); border-color: var(--warn-edge); color: #3b2500; }
.notice.wait .i { color: var(--warn); }
.notice.ok { background: var(--ok-tint); border-color: #7CC49A; }
.notice.ok .i { color: var(--ok); }
.notice b { display: block; font-size: 1.1rem; margin-bottom: 2px; }

/* ---- forms: label always above, never placeholder-only ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 1.1rem; }
.field label small { font-weight: 400; color: var(--ink-2); font-size: .95rem; margin-left: 6px; }
.field .hint { color: var(--ink-2); font-size: .95rem; }
.input, .textarea { width: 100%; min-height: var(--tap); padding: 14px 18px; border: 2px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-family: inherit; font-weight: 400; font-size: 1.15rem; line-height: 1.4; }
.input::placeholder, .textarea::placeholder { color: #5b6e81; }
.textarea { min-height: 140px; resize: vertical; }
.input.focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(9,84,153,.25); }
.check { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 2px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-weight: 700; font-size: 1.05rem; }
.check .box { width: 32px; height: 32px; border: 3px solid var(--line-strong); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.check.on { border-color: var(--primary); background: var(--primary-tint); }
.check.on .box { background: var(--primary); border-color: var(--primary); }

/* ---- stepper ---- */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 4px 0 36px; list-style: none; padding: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; color: var(--ink-2); font-size: 1.02rem; }
.stepper li::before { content: ""; position: absolute; top: 25px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--primary); }
.stepper .dot { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; z-index: 1; color: var(--ink-2); }
.stepper li.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper li.now .dot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 6px rgba(9,84,153,.18); }
.stepper li.now, .stepper li.done { color: var(--ink); }
.step-count { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: var(--r-pill); font-size: .95rem; margin-bottom: 12px; }

/* ---- selectable choice card (radio) ---- */
.choice { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border: 3px solid var(--line); border-radius: var(--r-lg); background: var(--surface); position: relative; }
.choice .radio { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-strong); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.choice.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 4px rgba(9,84,153,.15); }
.choice.on .radio { background: var(--primary); border-color: var(--primary); }
.choice img.thumb { width: 150px; height: 96px; border-radius: var(--r-md); object-fit: cover; flex: none; }
.choice h3 { font-size: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); font-size: 1rem; margin-top: 6px; align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ok-tint); color: var(--ok-ink); border: 2px solid #7CC49A; }
.pill.blue { background: var(--primary-tint); color: var(--primary-hover); border-color: #A9CCEC; }

/* ---- calendar ---- */
.cal { width: 100%; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 1.5rem; }
.cal-nav { display: flex; gap: 10px; }
.cal-nav .chip-btn { height: 56px; padding: 0 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-weight: 700; color: var(--ink-2); font-size: .95rem; padding-bottom: 4px; }
.cal-day { height: 68px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; color: #6c7d8e; position: relative; }
.cal-day.blank { visibility: hidden; }
.cal-day.free { color: var(--ink); background: var(--surface); border: 3px solid var(--primary); }
.cal-day.free::after { content: ""; position: absolute; bottom: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.cal-day.today { font-weight: 800; }
.cal-day.today small { position: absolute; top: 5px; font-size: .68rem; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.cal-day.sel { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(9,84,153,.25); }
.cal-day.sel::after { background: #fff; }
.cal-legend { display: flex; gap: 26px; margin-top: 18px; font-size: 1rem; color: var(--ink); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 10px; }
.sw { width: 26px; height: 26px; border-radius: 8px; display: inline-block; }
.sw.free { border: 3px solid var(--primary); background: #fff; }
.sw.sel { background: var(--primary); }
.sw.none { background: var(--surface-2); }

/* ---- time slots ---- */
.slot-group h4 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.15rem; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot { height: 68px; border-radius: var(--r-md); border: 3px solid var(--primary); background: var(--surface); color: var(--primary-hover); font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.slot.sel { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(9,84,153,.25); }
.slot.taken { border-color: var(--line); background: var(--surface-2); color: #5b6e81; font-weight: 600; font-size: 1.05rem; text-decoration: line-through; flex-direction: column; gap: 0; line-height: 1.2; }
.slot.taken small { text-decoration: none; font-size: .85rem; }

/* ---- summary list ---- */
.sumrow { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.sumrow:last-child { border-bottom: 0; }
.sumrow .k { width: 150px; color: var(--ink-2); font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.sumrow .v { flex: 1; font-weight: 700; font-size: 1.2rem; }
.sumrow .v small { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; }

/* ---- avatars & progress ---- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.progress { height: 14px; background: var(--surface-2); border-radius: 8px; overflow: hidden; border: 2px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--ok); }

/* ---- big action tiles (home) ---- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); min-height: 210px; position: relative; }
.tile .big-ic { width: 68px; height: 68px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; background: var(--primary-tint); color: var(--primary); }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.tile .go { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.tile.hot { background: var(--primary); color: #fff; border-color: var(--primary); }
.tile.hot p, .tile.hot .go { color: #fff; }
.tile.hot .big-ic { background: rgba(255,255,255,.18); color: #fff; }
.tile .badge-n { position: absolute; top: 18px; right: 18px; background: var(--bad); color: #fff; font-weight: 800; border-radius: 16px; height: 32px; min-width: 32px; padding: 0 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

/* ---- hero consultation card ---- */
.hero { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 3px solid var(--primary); border-radius: 28px; padding: 28px 32px; box-shadow: var(--shadow-2); }
.datebox { width: 150px; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); text-align: center; background: var(--surface); }
.datebox .mo { background: var(--ink); color: #fff; font-weight: 700; padding: 6px 0; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.datebox .d { font-size: 3.4rem; font-weight: 800; line-height: 1.05; padding-top: 6px; }
.datebox .w { font-weight: 700; padding-bottom: 10px; color: var(--ink-2); font-size: 1.05rem; }
.datebox.sm { width: 92px; border-width: 2px; border-radius: 16px; flex: none; }
.datebox.sm .mo { font-size: .8rem; padding: 3px 0; } .datebox.sm .d { font-size: 2.1rem; padding-top: 2px; } .datebox.sm .w { font-size: .9rem; padding-bottom: 6px; }
.hero h2 { font-size: 1.75rem; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.tab .n { background: var(--surface-2); border-radius: 14px; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; padding: 0 8px; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.on .n { background: #fff; color: var(--ink); }

/* ---- consult list row ---- */
.crow { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: 16px; }
.crow h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.crow .acts { display: flex; gap: 12px; }

/* ---- timeline (what happens next) ---- */
.tl { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 20px; position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: 0; width: 4px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; flex: none; }
.tl-item h4 { font-size: 1.2rem; margin-top: 2px; }
.tl-item p { color: var(--ink-2); }

/* ---- annotation pins (visible only when rendering for the PDF) ---- */
.pin { display: none; position: absolute; z-index: 50; width: 38px; height: 38px; border-radius: 50%; background: #D6336C; color: #fff; font: 800 1.1rem/38px "Atkinson Hyperlegible Next", sans-serif; text-align: center; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(0,0,0,.35); font-style: normal; pointer-events: none; }
body.pins .pin { display: block; }
.has-pin { position: relative; }
.pin.tl-out { top: -16px; left: -16px; } .pin.tr-out { top: -16px; right: -16px; }
.pin.tl-in { top: 10px; left: 10px; } .pin.tr-in { top: 10px; right: 10px; }
.pin.l-mid { top: 50%; left: -20px; margin-top: -19px; } .pin.r-mid { top: 50%; right: -20px; margin-top: -19px; }
.pin.b-out { bottom: -18px; left: 50%; margin-left: -19px; } .pin.b-far { bottom: -50px; left: 50%; margin-left: -19px; } .pin.l-out { top: 0; left: -52px; }

/* ---- utilities ---- */
.row { display: flex; align-items: center; gap: 16px; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; } .gap-s { gap: 8px; } .gap-l { gap: 28px; }
.ml-auto { margin-left: auto; }
.mt-s { margin-top: 8px; } .mt { margin-top: 16px; } .mt-l { margin-top: 28px; } .mt-xl { margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-main { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.center { text-align: center; }
.sticky-actions { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 2px solid var(--line); padding: 16px 32px; z-index: 15; }
.sticky-actions .in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sticky-actions.narrow .in { max-width: 1000px; }
.sticky-actions .note { color: var(--ink-2); font-size: 1rem; display: flex; align-items: center; gap: 10px; }

/* ---- mobile ---- */
.m-app { width: 390px; min-height: 844px; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.m-top { background: var(--surface); border-bottom: 2px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 12px; min-height: 68px; }
.m-top .logo { font-size: 1.05rem; } .m-top .logo img { width: 36px; height: 36px; }
.m-top .me { padding: 3px; margin-left: auto; width: 52px; justify-content: center; } .m-top .me span { display: none; }
.m-body { padding: 20px 18px 120px; flex: 1; }
.m-tabs { position: absolute; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 2px solid var(--line-strong); padding: 6px 4px 10px; z-index: 30; }
.m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; font-weight: 700; font-size: .85rem; color: var(--ink-2); text-decoration: none; border-radius: 14px; position: relative; }
.m-tabs a .i { font-size: 1.5rem; }
.m-tabs a[aria-current="page"] { color: var(--primary-hover); background: var(--primary-tint); }
.m-tabs .count { position: absolute; top: 2px; right: 22px; background: var(--bad); color: #fff; border-radius: 12px; min-width: 24px; height: 24px; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.m-app .stepper { margin-bottom: 22px; } .m-app .stepper .dot { width: 42px; height: 42px; font-size: 1.05rem; } .m-app .stepper li::before { top: 19px; } .m-app .stepper li { font-size: .85rem; gap: 6px; }
.m-app h1 { font-size: 1.7rem; }
.m-app .btn.lg { min-height: 68px; }
.m-app .slots { grid-template-columns: repeat(2, 1fr); }
.m-app .cal-day { height: 50px; font-size: 1.1rem; }
.m-actions { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); border-top: 2px solid var(--line); padding: 14px 18px 18px; z-index: 31; display: flex; flex-direction: column; gap: 10px; }


