/* CareBook web app. Calm, warm-neutral surfaces, one teal accent, red only for real urgency.
   Spacing on a 4/8 px scale; type scale 28/22/17/15/13. */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f0ede6; --surface-3: #e7e3da;
  --text: #1b2321; --muted: #5a6461; --faint: #7d8582; --line: #e5e1d8;
  --accent: #0f766e; --accent-strong: #115e59; --accent-soft: #dcefeb; --on-accent: #ffffff;
  --danger: #b42318; --danger-soft: #fdecea; --on-danger: #ffffff;
  --warn: #8a5300; --warn-soft: #fcf1d9; --ok: #1d7348; --ok-soft: #e2f3e8;
  --focus: #0b6bcb;
  --shadow-1: 0 1px 2px rgba(27, 35, 33, .05), 0 2px 10px rgba(27, 35, 33, .05);
  --shadow-2: 0 2px 6px rgba(27, 35, 33, .08), 0 10px 28px rgba(27, 35, 33, .10);
  --scrim: rgba(17, 22, 21, .42);
  --r-s: 12px; --r-m: 16px; --r-l: 20px; --r-pill: 999px;
  --tap: 48px; --nav-h: 68px; --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: 180ms;
  --font: Roboto, "Noto Sans", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", "DejaVu Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
  /* log type colours: foreground on soft background */
  --t-seizure: #9f1239; --tb-seizure: #fce7ee;
  --t-sleep: #3f3aa8; --tb-sleep: #e8e8fb;
  --t-feeding: #1f6b3a; --tb-feeding: #e1f2e6;
  --t-bowel: #8a4b0f; --tb-bowel: #f8ecdb;
  --t-medication: #0f766e; --tb-medication: #dcefeb;
  --t-symptom: #b4430c; --tb-symptom: #fdeadc;
  --t-mood: #0b6896; --tb-mood: #def0f9;
  --t-growth: #4b6f12; --tb-growth: #ecf4da;
  --t-therapy: #7a2bb8; --tb-therapy: #f1e6fb;
  --t-milestone: #976106; --tb-milestone: #fbf0d0;
  --t-appointment: #2149c4; --tb-appointment: #e3e9fd;
  --t-note: #4a5563; --tb-note: #eaedf0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413; --surface: #182020; --surface-2: #212a29; --surface-3: #2a3533;
    --text: #e7eeec; --muted: #a5b1ad; --faint: #8a9692; --line: #2b3533;
    --accent: #5cc8b8; --accent-strong: #84d9cc; --accent-soft: #173a36; --on-accent: #04241f;
    --danger: #ff8f84; --danger-soft: #3b1c19; --on-danger: #2b0703;
    --warn: #f0c26b; --warn-soft: #362a12; --ok: #79d3a2; --ok-soft: #16301f;
    --focus: #8cc4ff;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 8px 28px rgba(0, 0, 0, .5);
    --scrim: rgba(0, 0, 0, .6);
    --t-seizure: #ff9bb5; --tb-seizure: #3d1823;
    --t-sleep: #aeb0ff; --tb-sleep: #23234a;
    --t-feeding: #8fdba8; --tb-feeding: #16301f;
    --t-bowel: #efbd85; --tb-bowel: #36260f;
    --t-medication: #5cc8b8; --tb-medication: #173a36;
    --t-symptom: #ffad7a; --tb-symptom: #3b2112;
    --t-mood: #84cdf3; --tb-mood: #12303f;
    --t-growth: #bfe07f; --tb-growth: #263212;
    --t-therapy: #d3a6ff; --tb-therapy: #2f1d42;
    --t-milestone: #f3cd6b; --tb-milestone: #362b0f;
    --t-appointment: #9fb5ff; --tb-appointment: #1c2547;
    --t-note: #bac4cf; --tb-note: #262d35;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--font); overflow-wrap: break-word; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); outline: none; }
main.solo { padding: calc(24px + env(safe-area-inset-top)) 20px 32px; max-width: 520px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 8px; font-weight: 650; letter-spacing: -.005em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; margin: 12px 0 4px; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; }
ul, ol { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .num, time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; display: block; }
.pre { white-space: pre-wrap; }

/* ---------- app bar ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-top: env(safe-area-inset-top); transition: box-shadow var(--dur); }
.appbar-inner { max-width: 640px; margin: 0 auto; min-height: var(--bar-h); display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 12px; }
.appbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.identity { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 4px 8px 4px 4px; border-radius: var(--r-m); border: 0; background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: none; }
button.identity { cursor: pointer; } button.identity:active { background: var(--surface-2); }
.identity .who-text { display: flex; flex-direction: column; min-width: 0; }
.childname { font-size: 17px; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.childage { font-size: 13px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity .icon { color: var(--muted); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; background: var(--av-bg, var(--accent-soft)); color: var(--av-fg, var(--accent-strong)); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.c1 { --av-bg: var(--tb-sleep); --av-fg: var(--t-sleep); } .avatar.c2 { --av-bg: var(--tb-symptom); --av-fg: var(--t-symptom); }
.avatar.c3 { --av-bg: var(--tb-therapy); --av-fg: var(--t-therapy); } .avatar.c4 { --av-bg: var(--tb-mood); --av-fg: var(--t-mood); }
.avatar.c5 { --av-bg: var(--tb-feeding); --av-fg: var(--t-feeding); }
.iconbtn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.iconbtn:active { background: var(--surface-2); }
.iconbtn.tonal { background: var(--surface); box-shadow: var(--shadow-1); }
.iconbtn.em { color: var(--danger); background: var(--surface); box-shadow: var(--shadow-1); }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }

/* ---------- bottom navigation (Material 3 style) ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: var(--surface); box-shadow: 0 -1px 0 var(--line); padding: 0 4px env(safe-area-inset-bottom); }
.tabs a { flex: 1; max-width: 128px; min-width: 0; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 550; line-height: 1.15; text-align: center; }
.tabs .ind { width: 60px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.tabs .lbl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 700; }
.tabs a[aria-current="page"] .ind { background: var(--accent-soft); color: var(--accent-strong); }
body.typing .tabs { display: none; }
body.typing main { padding-bottom: 32px; }
body.em-full .appbar, body.em-full .tabs, body.em-full #banner { display: none; }
body.em-full main { padding-bottom: 32px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 650; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center; transition: filter var(--dur), background-color var(--dur); }
.btn:active { filter: brightness(.95); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.secondary, .btn.tonal { background: var(--accent-soft); color: var(--accent-strong); }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost { background: transparent; color: var(--accent); padding: 10px 12px; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .icon { width: 20px; height: 20px; }
.row { display: flex; gap: 8px; align-items: center; margin: 12px 0; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; }
.row.split > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ---------- page header ---------- */
.pagetitle { margin: 8px 4px 16px; }
.pagehead { display: flex; align-items: center; gap: 4px; margin: 0 -8px 12px; min-height: var(--tap); }
.pagehead h2 { flex: 1; min-width: 0; margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.pagehead .actions { display: flex; gap: 4px; align-items: center; }
.back { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.back:active { background: var(--surface-2); }
.lead { color: var(--muted); font-size: 15px; margin: -8px 4px 16px; }
.section-title { font-size: 15px; font-weight: 650; color: var(--muted); margin: 24px 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.section-title a { font-size: 15px; font-weight: 650; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; margin: -12px 0; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r-l); padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow-1); }
.card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 8px; margin: -4px -8px 8px 0; min-height: 40px; }
.card-head h3 { flex: 1; margin: 0; }
.notice { border-radius: var(--r-m); padding: 12px 16px; margin: 8px 0 12px; background: var(--accent-soft); color: var(--text); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.notice > .icon { color: var(--accent-strong); margin-top: 1px; }
.notice > div { flex: 1; min-width: 0; }
.notice > div > :last-child, .notice > :last-child { margin-bottom: 0; }
.notice.error { background: var(--danger-soft); } .notice.error > .icon { color: var(--danger); }
.notice.warn { background: var(--warn-soft); } .notice.warn > .icon { color: var(--warn); }
.notice.ok { background: var(--ok-soft); } .notice.ok > .icon { color: var(--ok); }
.empty { color: var(--muted); padding: 8px 4px; margin: 0; font-size: 15px; }
.empty-line { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; padding: 4px; color: var(--muted); font-size: 15px; }
.empty-line > span { padding: 8px 0; }

/* ---------- urgent banner (real urgency: red) ---------- */
#banner:empty { display: none; }
#banner { max-width: 640px; margin: 0 auto; width: 100%; padding: 4px 16px 0; }
.urgent { background: var(--danger); color: #fff; border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-2); }
.urgent .urgent-head { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.urgent p { margin: 8px 0 0; } .urgent .call { font-weight: 700; }
.urgent .row { margin-bottom: 0; }
.urgent .btn { background: #fff; color: #7a1009; }
.urgent .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); padding: 10px 16px; }
@media (prefers-color-scheme: dark) { .urgent { background: #8f1d14; } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; }
.field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; min-width: 0; }
.field label, .field .lbl, legend { font-weight: 600; font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; } legend { padding: 0; margin-bottom: 8px; }
.field.check { flex-direction: row; align-items: center; gap: 12px; min-height: var(--tap); }
.field.check input { width: 24px; height: 24px; accent-color: var(--accent); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); transition: border-color var(--dur), background-color var(--dur); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: none; line-height: 1.45; }
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% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hint { color: var(--muted); font-size: 13px; }
.form > .btn.primary { margin-top: 8px; }
.timerow { margin: 0 0 8px; } .timerow input { flex: 1; }
.repeat { background: var(--surface-2); box-shadow: none; padding: 12px; }
.form-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; scroll-padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.chip .icon { width: 18px; height: 18px; color: var(--chip-ic, var(--muted)); }
.chip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-strong); font-weight: 700; }
.chip.on .icon { color: var(--accent-strong); }
.chip.soft { background: var(--surface-2); box-shadow: none; }
.chip.toggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip.toggle[aria-pressed="true"] .icon { color: var(--on-accent); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.seg button { min-height: 44px; padding: 6px 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0 0 12px; padding: 4px 0; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.list:empty { display: none; }
.list > li + li { box-shadow: inset 0 1px 0 var(--line); }
.list.compact { background: transparent; box-shadow: none; padding: 0; }
.rowlink { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; color: inherit; text-decoration: none; width: 100%; border: 0; background: transparent; font: inherit; text-align: start; cursor: pointer; }
a.rowlink:active, button.rowlink:active { background: var(--surface-2); }
.rowlink.big { min-height: 64px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.row-sub { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.row-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.row-icon.danger { background: var(--danger-soft); color: var(--danger); }
.row-icon.plain { background: var(--surface-2); color: var(--muted); }
.chev { color: var(--faint); width: 20px; height: 20px; }
.rowlink.signout .row-title { color: var(--danger); }
.doc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.snippet { color: var(--muted); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
.row-end { flex: none; display: flex; align-items: center; gap: 4px; }

/* status pills */
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 650; white-space: nowrap; background: var(--ok-soft); color: var(--ok); }
.status.waiting { background: var(--surface-2); color: var(--muted); }
.status.pending, .status.running { background: var(--accent-soft); color: var(--accent-strong); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.failed { background: var(--danger-soft); color: var(--danger); }

/* ---------- type badges (log types) ---------- */
.tbadge { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tb, var(--surface-2)); color: var(--tc, var(--muted)); }
.tbadge .icon { width: 20px; height: 20px; }
.tbadge.lg { width: 48px; height: 48px; } .tbadge.lg .icon { width: 24px; height: 24px; }
.ty-seizure { --tc: var(--t-seizure); --tb: var(--tb-seizure); --chip-ic: var(--t-seizure); }
.ty-sleep { --tc: var(--t-sleep); --tb: var(--tb-sleep); --chip-ic: var(--t-sleep); }
.ty-feeding { --tc: var(--t-feeding); --tb: var(--tb-feeding); --chip-ic: var(--t-feeding); }
.ty-bowel { --tc: var(--t-bowel); --tb: var(--tb-bowel); --chip-ic: var(--t-bowel); }
.ty-medication { --tc: var(--t-medication); --tb: var(--tb-medication); --chip-ic: var(--t-medication); }
.ty-symptom { --tc: var(--t-symptom); --tb: var(--tb-symptom); --chip-ic: var(--t-symptom); }
.ty-mood { --tc: var(--t-mood); --tb: var(--tb-mood); --chip-ic: var(--t-mood); }
.ty-growth { --tc: var(--t-growth); --tb: var(--tb-growth); --chip-ic: var(--t-growth); }
.ty-therapy { --tc: var(--t-therapy); --tb: var(--tb-therapy); --chip-ic: var(--t-therapy); }
.ty-milestone { --tc: var(--t-milestone); --tb: var(--tb-milestone); --chip-ic: var(--t-milestone); }
.ty-appointment { --tc: var(--t-appointment); --tb: var(--tb-appointment); --chip-ic: var(--t-appointment); }
.ty-note { --tc: var(--t-note); --tb: var(--tb-note); --chip-ic: var(--t-note); }

/* ---------- timeline entries ---------- */
.timeline { padding: 4px 0; }
.entry-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; min-height: 64px; }
a.entry-link:active { background: var(--surface-2); }
.entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 1px; }
.etitle { font-weight: 600; font-size: 17px; line-height: 1.3; }
.etitle .ekv { font-weight: 450; }
.edetail { color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.emeta { color: var(--faint); font-size: 13px; margin-top: 2px; }
.etime { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 3px; white-space: nowrap; }
.day { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); z-index: 5; margin: 0 -16px; padding: 12px 20px 8px; background: var(--bg); color: var(--muted); font-size: 15px; font-weight: 650; }
.daygroup { margin-bottom: 8px; }

/* week strip (one type, last 8 weeks) */
.weekcard { padding: 16px; }
.weekcard h3 { font-size: 15px; color: var(--muted); font-weight: 650; margin: 0 0 12px; }
.weekstrip { display: flex; align-items: flex-end; gap: 16px; }
.weekstrip .ws-text { flex: none; min-width: 72px; }
.weekstrip .ws-num { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.weekstrip .ws-lbl { font-size: 13px; color: var(--muted); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 56px; list-style: none; margin: 0; padding: 0; }
.bars li { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars li span { display: block; width: 100%; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--tc, var(--accent)); }
.bars li.zero span { background: var(--surface-3); }
.ws-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); margin: 6px 0 0 88px; }

/* floating action button */
.fab { position: fixed; z-index: 25; right: max(16px, calc(50vw - 304px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 18px; border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 700; box-shadow: var(--shadow-2); cursor: pointer; text-decoration: none; }
body.typing .fab, body.sheet-open .fab { display: none; }

/* type tiles (add entry) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px 4px; border-radius: var(--r-m); border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.tile:active { filter: brightness(.96); }
.typehead { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.typehead h2 { margin: 0; }

/* ---------- Today ---------- */
.greet { margin: 4px 4px 16px; }
.greet .date { color: var(--muted); font-size: 15px; margin: 0 0 2px; }
.greet h1 { margin: 0; }
.quick { padding: 16px 16px 12px; }
.quick > label { display: block; font-size: 17px; font-weight: 650; margin: 0 0 12px; }
.inputwrap { position: relative; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 26px; border: 1.5px solid transparent; transition: border-color var(--dur), background-color var(--dur); }
.inputwrap:focus-within { border-color: var(--accent); background: var(--surface); }
.inputwrap textarea { flex: 1; min-height: 56px; max-height: 40vh; border: 0; background: transparent; padding: 15px 4px 15px 18px; }
.inputwrap textarea:focus { background: transparent; }
.sendbtn { flex: none; width: 44px; height: 44px; margin: 5px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); cursor: pointer; }
/* Two lines, so the example text is never cut off (autogrow only sets the height for typed text). */
#quickbox { min-height: 84px; }
.sendbtn[disabled] { opacity: .45; cursor: default; }
.sendbtn .icon { width: 20px; height: 20px; }
.quick .chips { margin: 12px -16px 0; padding: 2px 16px 4px; }
.quick-out:empty { display: none; }
.quick-out { margin-top: 12px; }
.quick-out .notice { margin: 0; }
.quick-out ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.quick-out li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.quick-out li .tbadge { width: 28px; height: 28px; } .quick-out li .tbadge .icon { width: 16px; height: 16px; }

.next { padding: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 8px; }
.next-main { display: flex; align-items: center; gap: 16px; }
.next-main .tick-text { flex: 1; min-width: 0; }
.next-title { font-size: 22px; font-weight: 650; line-height: 1.25; }
.next-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.timechip { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: flex-start; }
.timechip .icon { width: 14px; height: 14px; color: var(--muted); }
.next .timechip { margin-bottom: 6px; }
.bigcheck { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--accent); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background-color var(--dur), color var(--dur); }
.bigcheck .icon { width: 30px; height: 30px; }
.bigcheck[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.bigcheck[disabled] { cursor: default; border-color: var(--line); color: var(--faint); }
.next-actions { display: flex; margin: 4px -12px -8px; }
.alldone { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.alldone .tbadge { background: var(--ok-soft); color: var(--ok); }
.later { list-style: none; margin: 12px -16px -8px; padding: 0; box-shadow: inset 0 1px 0 var(--line); }
.later li + li { box-shadow: inset 0 1px 0 var(--line); }
.tick { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; background: transparent; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tick[disabled] { cursor: default; color: inherit; }
.tick .box { flex: none; width: 30px; height: 30px; border: 2px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); }
.tick .box .icon { width: 18px; height: 18px; }
.tick[disabled] .box { border-color: var(--line); }
.tick.done .box { background: var(--accent); border-color: var(--accent); }
.tick.done .tick-title { text-decoration: line-through; color: var(--muted); }
.tick.skipped .box { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.tick.skipped .tick-title { color: var(--muted); }
.tick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tick-title { font-size: 17px; font-weight: 550; line-height: 1.3; }
.tick-sub { font-size: 13px; color: var(--muted); }
.tick .timechip { min-width: 56px; justify-content: center; align-self: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.stat { background: var(--surface); border-radius: var(--r-l); padding: 12px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: inherit; }
.stat .tbadge { width: 32px; height: 32px; } .stat .tbadge .icon { width: 18px; height: 18px; }
.stat .n { font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .n small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat .l { font-size: 13px; color: var(--muted); line-height: 1.3; }
.digest { display: flex; align-items: center; gap: 12px; }

/* ---------- Ask ---------- */
.convs .row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 550; }
.msgs { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.msg { display: flex; flex-direction: column; max-width: 100%; }
.msg .who { font-size: 13px; color: var(--muted); margin: 0 12px 4px; }
.bubble { border-radius: 20px; padding: 12px 16px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 17px; line-height: 1.55; }
.msg.user { align-self: flex-end; align-items: flex-end; max-width: 86%; }
.msg.user .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; white-space: pre-wrap; box-shadow: none; }
.msg.assistant { align-self: flex-start; max-width: 100%; }
.msg.assistant .bubble { border-bottom-left-radius: 6px; }
.msg.assistant .meta { font-size: 13px; color: var(--muted); margin: 6px 12px 0; display: flex; align-items: center; gap: 4px; }
.msg.assistant .meta .icon { width: 14px; height: 14px; }
.msg.error .bubble { background: var(--danger-soft); box-shadow: none; }
.starters { padding: 8px 0; }
.hello { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 8px 16px; }
.hello .tbadge { width: 56px; height: 56px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 12px; }
.hello .tbadge .icon { width: 28px; height: 28px; }
.hello p { color: var(--muted); font-size: 15px; margin: 4px 0 0; max-width: 34ch; }
.starters .chips { flex-direction: column; align-items: stretch; }
.starter { white-space: normal; text-align: start; justify-content: flex-start; min-height: 52px; line-height: 1.35; border-radius: var(--r-m); }
.composer { position: fixed; z-index: 24; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: var(--bg); padding: 8px 12px 10px; box-shadow: 0 -1px 0 var(--line); }
.composer-inner { max-width: 616px; margin: 0 auto; }
.composer .chips { margin: 0 0 8px; }
.composer .chip { min-height: 44px; padding: 6px 14px; font-size: 13px; }
.composer .inputwrap { background: var(--surface); box-shadow: var(--shadow-1); }
body.typing .composer { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
body.view-ask-detail main { padding-bottom: calc(var(--nav-h) + 140px + env(safe-area-inset-bottom)); }
body.view-ask-detail.typing main { padding-bottom: 140px; }
.chat-status:empty { display: none; }
.busy { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.busy .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; box-shadow: 14px 0 0 var(--accent), 28px 0 0 var(--accent); margin-right: 30px; }
@keyframes pulse { 50% { opacity: .3; } }

/* markdown */
.md { font-size: 17px; line-height: 1.6; overflow-x: auto; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h3, .md h4, .md h5, .md h6 { margin: 20px 0 6px; font-size: 17px; } .md h3 { font-size: 19px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { padding-inline-start: 22px; margin: 0 0 12px; } .md li { margin: 4px 0; } .md li::marker { color: var(--muted); }
.md hr { border: 0; height: 1px; background: var(--line); margin: 16px 0; }
.md table, .facts table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.md th, .md td, .facts th, .facts td { padding: 8px 10px; text-align: start; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.md th, .facts th { font-size: 13px; color: var(--muted); font-weight: 650; }
.md code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.tablewrap { overflow-x: auto; }
a.docref { display: inline-block; font-weight: 700; font-size: 13px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; line-height: 1.7; vertical-align: 1px; }
.msg.user a.docref { background: rgba(255, 255, 255, .2); color: inherit; }

/* ---------- Records ---------- */
.upload { padding: 16px; }
.upload .up-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.upload .up-head p { margin: 0; color: var(--muted); font-size: 15px; }
.upload .row { margin: 0; }
.upload .btn { flex: 1; min-height: 56px; border-radius: var(--r-m); }
.uploads { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.uploads:empty { display: none; }
.uploads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); font-size: 15px; }
.uploads .fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.uploads .small { color: var(--muted); text-align: end; }
.uploads .prog { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.uploads .prog span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.uploads li.ok .prog span { background: var(--ok); } .uploads li.bad .prog { display: none; }
.uploads li.bad .small { grid-column: 1 / -1; text-align: start; color: var(--danger); font-weight: 600; } .uploads li.ok .small { color: var(--ok); font-weight: 600; }
.docs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.docs > li { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.docs .rowlink { align-items: flex-start; padding: 14px 16px; border-radius: var(--r-l); }
.docs .row-icon { margin-top: 2px; }
.docs .row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.docs .doc-top { display: flex; align-items: flex-start; gap: 8px; }
.docs .doc-top .row-title { flex: 1; min-width: 0; }
.docs .doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.docs .doc-meta .row-sub { margin: 0; }
.dochead { margin: 0 0 16px; padding: 0 4px; }
.dochead h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.dochead .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: 15px; }
.factgroup { padding: 12px 0; } .factgroup + .factgroup { box-shadow: inset 0 1px 0 var(--line); }
.factgroup:first-of-type { padding-top: 4px; }
.factgroup h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.factgroup ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.factgroup li { font-size: 17px; line-height: 1.4; padding-inline-start: 16px; position: relative; }
.factgroup li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.facts .flag { font-weight: 700; color: var(--warn); }
details.card { padding: 4px 16px; }
details.card summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 650; cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary .icon { transition: transform var(--dur) var(--ease); color: var(--muted); }
details.card[open] summary .icon { transform: rotate(90deg); }
details.card[open] { padding-bottom: 16px; }
.actionbar { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.actionbar .row { margin: 0; flex-wrap: wrap; }
.actionbar .row .btn { flex: 1; }

/* ---------- More / profile ---------- */
.group-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 20px 16px 8px; }
.langrow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 16px; flex-wrap: wrap; }
.langrow .row-main { min-width: 96px; }
.who { margin: 20px 4px; text-align: center; }
.hero { display: flex; align-items: center; gap: 16px; margin: 0 4px 16px; }
.hero h2 { margin: 0; font-size: 22px; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }
.psec { padding: 12px 16px 16px; }
.psec ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.psec ul.plain li { padding: 8px 0; font-size: 17px; line-height: 1.4; }
.psec ul.plain li + li { box-shadow: inset 0 1px 0 var(--line); }
.psec .sub { display: block; font-size: 15px; color: var(--muted); }
.psec p { margin: 0; }
.psec .empty { padding: 4px 0; }
.psec.alert-sec ul.plain li { font-weight: 650; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 17px; }
.kv dt { color: var(--muted); font-size: 15px; } .kv dd { margin: 0; font-weight: 550; }
.sumcard { padding: 20px; }
.sumfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
.sumfoot p { margin: 0; }

/* people */
.member { display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 16px; min-height: 68px; }
.member .row-sub.pending { color: var(--warn); }
.spend .bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.spend .bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.spend .bar.high span { background: var(--warn); }
.spend .line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.spend .big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.choices { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); border: 0; background: var(--surface-2); color: var(--text); font: inherit; text-align: start; cursor: pointer; min-height: 72px; }
.choice[aria-checked="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.choice .row-icon { background: var(--surface); }
.choice .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); }
.choice[aria-checked="true"] .radio { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 5px var(--surface); }
.codebox { text-align: center; padding: 4px 0 8px; }
.code { font-size: 40px; font-weight: 750; letter-spacing: .08em; font-variant-numeric: tabular-nums; font-family: "Roboto Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, monospace; margin: 8px 0; color: var(--text); user-select: all; overflow-wrap: anywhere; }
.codebox .muted { font-size: 15px; }
.code-note { text-align: center; margin: 16px 8px 0; }

/* ---------- emergency card (full screen, high contrast) ---------- */
.emergency, body.em-full { --em-bg: #ffffff; --em-fg: #000000; --em-muted: #3d3d3d; --em-red: #b00020; --em-red-bg: #fff0f0; }
@media (prefers-color-scheme: dark) { .emergency, body.em-full { --em-bg: #000000; --em-fg: #ffffff; --em-muted: #d6d6d6; --em-red: #ff8a8a; --em-red-bg: #2a0a0a; } }
body.em-full { background: var(--em-bg); }
.emergency .pagehead h2 { font-size: 17px; color: var(--em-fg); }
.emergency .back, .emergency .iconbtn { color: var(--em-fg); }
.ecard { background: var(--em-bg); color: var(--em-fg); padding: 4px 4px 16px; font-size: 20px; line-height: 1.45; }
.ecard .ename { font-size: 36px; font-weight: 800; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.ecard .ebirth { font-size: 20px; color: var(--em-muted); margin: 4px 0 16px; }
.ecard section { padding: 14px 0; border-top: 2px solid var(--em-fg); }
.ecard h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--em-muted); margin: 0 0 6px; font-weight: 800; }
.ecard ul { margin: 0; padding-inline-start: 24px; } .ecard li { margin: 2px 0; }
.ecard p { margin: 0; }
.ecard .allergy { border: 3px solid var(--em-red); background: var(--em-red-bg); border-radius: 16px; padding: 12px 16px; margin: 8px 0 4px; }
.ecard .allergy h3 { color: var(--em-red); } .ecard .allergy li, .ecard .allergy p { font-weight: 800; font-size: 22px; }
.ecard .allergy + section { border-top: 0; }
.ecard .plan { border-top: 0; border-inline-start: 6px solid var(--em-red); padding-inline-start: 14px; margin: 10px 0; font-weight: 650; }
.ecard .updated { font-size: 15px; color: var(--em-muted); border-top: 2px solid var(--em-fg); padding-top: 12px; }
.ecard .notice { font-size: 17px; }

/* ---------- sheets, dialogs, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; transition: opacity var(--dur) var(--ease); display: flex; align-items: flex-end; justify-content: center; }
.scrim.open { opacity: 1; }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 28px 28px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2); transform: translateY(32px); transition: transform var(--dur) var(--ease); }
.scrim.open .sheet { transform: none; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--surface-3); margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin: 0 -12px 12px 0; min-height: var(--tap); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 22px; }
.sheet .lead { margin: -4px 0 16px; }
body.sheet-open { overflow: hidden; }
.scrim.center { align-items: center; padding: 24px; }
.dialog { background: var(--surface); border-radius: 28px; padding: 24px; max-width: 400px; width: 100%; box-shadow: var(--shadow-2); transform: scale(.96); transition: transform var(--dur) var(--ease); }
.scrim.open .dialog { transform: none; }
.dialog p { font-size: 17px; margin: 0 0 20px; }
.dialog .row { margin: 0; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: var(--r-m); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--dur), transform var(--dur); max-width: 560px; margin: 0 auto; font-size: 15px; font-weight: 550; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: none; } .toast.error { background: var(--danger); color: var(--on-danger); }

/* ---------- solo screens (join, consent, add child, offline) ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin: 8px 0 32px; font-size: 22px; font-weight: 700; }
.brand .mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.solo h2 { font-size: 28px; margin-bottom: 8px; }
.solo .intro { color: var(--muted); margin-bottom: 24px; }
.solo .card { padding: 20px; }
.consent-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 16px; }
.consent-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.consent-list li .row-icon { width: 36px; height: 36px; }
.langswitch { margin-top: 24px; text-align: center; }
.loading { display: grid; place-items: center; min-height: 50vh; }

/* ---------- view transitions ---------- */
.view { animation: viewin var(--dur) var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body, body.em-full { background: #fff; color: #000; font-size: 12pt; }
  .tabs, .appbar, #banner, .pagehead, .back, .noprint, .toast, .btn, .chips, .fab, .composer { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .list, .docs > li, .stat { box-shadow: none; border: 1px solid #999; }
  .ecard { --em-bg: #fff; --em-fg: #000; --em-muted: #333; --em-red: #000; --em-red-bg: #fff; font-size: 14pt; }
  .ecard .ename { font-size: 26pt; }
  .md table, .md th, .md td { box-shadow: none; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}
