/* Layout: one column on phones (strip, now, time buttons, heads-up, to-dos, ideas); two columns from 1040px (left: now + to-dos, right: heads-up + ideas + rhythm). Navy and maize, after the teams the owner follows. */
:root {
  --paper: #F3F5F9;
  --card: #FFFFFF;
  --sunk: #E9EDF4;
  --line: #D8DFEA;
  --ink: #0E1B33;
  --ink-2: #43506A;
  --ink-3: #69748C;
  --navy: #13294F;
  --navy-2: #1E3A6B;
  --maize: #F2B705;
  --maize-ink: #855F00;
  --maize-soft: #FFF2C4;
  --good: #1B7A50;
  --good-soft: #DFF2E8;
  --urgent: #BF3129;
  --urgent-soft: #FBE3E0;
  --info: #2C63D6;
  --info-soft: #E2EBFC;
  --hero-bg: #13294F;
  --hero-fg: #F5F7FB;
  --hero-sub: #B9C6DE;
  --btn-bg: #13294F;
  --btn-fg: #FFFFFF;
  --shadow: 0 1px 2px rgba(14,27,51,.06), 0 6px 18px rgba(14,27,51,.06);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-sm: 9px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #09111F; --card: #101B30; --sunk: #0C1628; --line: #22314F;
    --ink: #E8EDF6; --ink-2: #B2BDD2; --ink-3: #8691AA;
    --navy: #A9C2F2; --navy-2: #7F9FDB;
    --maize: #FFCB05; --maize-ink: #FFD54A; --maize-soft: #2B240C;
    --good: #4DC48B; --good-soft: #0E2A1E; --urgent: #FF7B70; --urgent-soft: #35171A;
    --info: #7FA6FF; --info-soft: #14244A;
    --hero-bg: #13254A; --hero-fg: #F2F5FB; --hero-sub: #A9B7D2;
    --btn-bg: #FFCB05; --btn-fg: #0A1222;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #09111F; --card: #101B30; --sunk: #0C1628; --line: #22314F;
  --ink: #E8EDF6; --ink-2: #B2BDD2; --ink-3: #8691AA;
  --navy: #A9C2F2; --navy-2: #7F9FDB;
  --maize: #FFCB05; --maize-ink: #FFD54A; --maize-soft: #2B240C;
  --good: #4DC48B; --good-soft: #0E2A1E; --urgent: #FF7B70; --urgent-soft: #35171A;
  --info: #7FA6FF; --info-soft: #14244A;
  --hero-bg: #13254A; --hero-fg: #F2F5FB; --hero-sub: #A9B7D2;
  --btn-bg: #FFCB05; --btn-fg: #0A1222;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Class rules like .sheet { display: grid } would otherwise beat the hidden attribute and leave an invisible layer over the page. */
[hidden] { display: none !important; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--info); }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 12px 96px; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); padding-block: 10px 8px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand h1 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; margin: 0; line-height: 1; text-transform: uppercase; }
.brand .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.clock small { font-size: 15px; color: var(--ink-3); margin-left: 3px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); flex: none; }
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 8px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.pill.ok .dot { background: var(--good); }
.pill.busy .dot { background: var(--maize); animation: pulse 1.2s ease-in-out infinite; }
.pill.bad .dot { background: var(--urgent); }
button.pill { cursor: pointer; }
@keyframes pulse { 50% { opacity: .35; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--sunk); border-radius: 8px; padding: 5px 9px; color: var(--ink-2); }
.ctx b { color: var(--ink); font-weight: 700; }
.ctx.game { background: var(--maize-soft); color: var(--maize-ink); }
.ctx.game b { color: inherit; }

/* grid */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1040px) {
  .grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.sec-h h2 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; margin: 0; flex: 1; }
.sec-h .meta { font-size: 12.5px; color: var(--ink-3); }
.linkbtn { background: none; border: 0; color: var(--info); padding: 4px 2px; font-size: 13.5px; font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.empty { color: var(--ink-3); font-size: 14px; padding: 6px 0; }

/* day strip */
.strip-card { padding: 12px 16px 10px; }
.strip { position: relative; height: 54px; border-radius: 10px; background: var(--sunk); overflow: hidden; }
.strip .hr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.strip .napband { position: absolute; top: 0; bottom: 0; background: var(--maize-soft); border-left: 1px dashed var(--maize); border-right: 1px dashed var(--maize); }
.strip .napband span { position: absolute; bottom: 3px; left: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maize-ink); }
.strip .blk { position: absolute; top: 9px; height: 26px; border-radius: 6px; font-size: 11.5px; line-height: 26px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 4px; }
.strip .blk.busy { background: var(--btn-bg); color: var(--btn-fg); }
.strip .blk.maybe { background: repeating-linear-gradient(135deg, var(--line) 0 6px, transparent 6px 11px); color: var(--ink-2); border: 1px solid var(--line); }
.strip .blk.hold { border: 1.5px dotted var(--ink-3); color: var(--ink-3); background: transparent; }
.strip .blk.nap { background: var(--maize); color: #2A1F00; }
.strip .mark { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: var(--info); border-radius: 2px; }
.strip .mark.game { background: var(--maize); border: 1px solid var(--maize-ink); }
.strip .now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--urgent); }
.strip .now::before { content: ""; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--urgent); }
.ticks { position: relative; height: 16px; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.ticks span { position: absolute; transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: 12.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 14px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: 0; }
.legend .l-busy { background: var(--btn-bg); }
.legend .l-maybe { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, transparent 3px 6px); }
.legend .l-hold { border: 1.5px dotted var(--ink-3); }
.legend .l-nap { background: var(--maize-soft); border: 1px dashed var(--maize); }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); border-radius: 18px; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.hero .kicker { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13.5px; color: var(--maize); display: flex; align-items: center; gap: 8px; }
.hero h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.05; margin: 8px 0 6px; text-wrap: balance; letter-spacing: .005em; }
.hero p { margin: 0; color: var(--hero-sub); max-width: 60ch; }
.hero .why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero .why span { font-size: 12.5px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 9px; color: var(--hero-fg); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero .needle { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: .14; pointer-events: none; }
.hbtn { border: 0; border-radius: 11px; padding: 10px 14px; font-weight: 700; background: var(--maize); color: #1F1700; display: inline-flex; align-items: center; gap: 7px; }
.hbtn.ghost { background: transparent; color: var(--hero-fg); border: 1px solid rgba(255,255,255,.3); }
.hbtn:hover { filter: brightness(1.05); }

/* time buttons */
.timebtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tb { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 11px; display: grid; gap: 2px; min-width: 0; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.tb:hover { border-color: var(--navy-2); transform: translateY(-1px); }
.tb .big { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: .95; color: var(--ink); }
.tb .big small { font-size: 16px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.tb .lbl { font-weight: 700; font-size: 14px; }
.tb .cnt { font-size: 12.5px; color: var(--ink-3); }
.tb.long .big { color: var(--maize-ink); }
@media (max-width: 420px) { .tb .big { font-size: 28px; } .tb .lbl { font-size: 13px; } }

/* buttons generic */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.btn.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.btn.warn { background: var(--urgent-soft); color: var(--urgent); border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* chips (choices) */
.opt { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2); }
.opt[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.opt:hover { border-color: var(--ink-3); }

/* to-dos */
.addbar { display: flex; gap: 8px; margin-bottom: 10px; }
.addbar input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; padding: 10px 12px; }
.addbar input::placeholder { color: var(--ink-3); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .opt { white-space: nowrap; font-size: 13px; padding: 5px 11px; }
.group-h { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 4px; display: flex; gap: 8px; align-items: center; }
.group-h:first-child { margin-top: 4px; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 2px; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-3); background: transparent; display: grid; place-items: center; margin-top: 1px; padding: 0; color: transparent; }
.tick:hover { border-color: var(--good); color: var(--good); }
.tick.done { background: var(--good); border-color: var(--good); color: #fff; }
.tick svg.i { width: 14px; height: 14px; stroke-width: 3; }
.t-main { min-width: 0; cursor: pointer; background: none; border: 0; text-align: left; padding: 0; color: inherit; }
.t-title { font-weight: 700; overflow-wrap: anywhere; }
.task.isdone .t-title { text-decoration: line-through; color: var(--ink-3); font-weight: 400; }
.t-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.tag.urgent { background: var(--urgent-soft); color: var(--urgent); }
.tag.imp { background: var(--maize-soft); color: var(--maize-ink); }
.tag.due { background: var(--info-soft); color: var(--info); }
.tag.over { background: var(--urgent); color: #fff; }
.tag.new { background: var(--good-soft); color: var(--good); }
.tag svg.i { width: 13px; height: 13px; }
.size { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-2); white-space: nowrap; padding-top: 1px; }
.size.long { color: var(--maize-ink); }
.editor { grid-column: 1 / -1; background: var(--sunk); border-radius: 12px; padding: 12px; display: grid; gap: 10px; margin-top: 2px; }
.editor label.f { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; }
.editor input[type="text"], .editor textarea, .editor input[type="date"], .field { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 8px 10px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.editor textarea { min-height: 64px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg .opt { font-size: 13px; padding: 5px 10px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--maize); border-radius: 99px; }

/* heads-up */
.day-h { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 12px 0 2px; }
.day-h:first-child { margin-top: 0; }
.hu { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); }
.day-h + .hu { border-top: 0; }
.hu .when { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink-2); white-space: nowrap; }
.hu .what { min-width: 0; }
.hu .what b { font-weight: 700; overflow-wrap: anywhere; }
.hu .what .sm { display: block; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.hu.maybe .what b { font-weight: 400; color: var(--ink-2); }
.hu.game { background: linear-gradient(90deg, var(--maize-soft), transparent 70%); border-radius: 8px; padding-left: 6px; }
.hu.alert .what b { color: var(--urgent); }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 5px; padding: 1px 6px; background: var(--sunk); color: var(--ink-3); white-space: nowrap; }
.badge.game { background: var(--maize); color: #241A00; }
.badge.yes { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--urgent-soft); color: var(--urgent); }

/* ideas */
.idea { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: grid; gap: 6px; background: var(--card); }
.idea + .idea { margin-top: 10px; }
.idea .k { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.idea.alert { border-color: var(--maize); background: linear-gradient(180deg, var(--maize-soft), var(--card) 60%); }
.idea.alert .k { color: var(--maize-ink); }
.idea h4 { margin: 0; font-size: 17px; line-height: 1.25; text-wrap: balance; }
.idea p { margin: 0; color: var(--ink-2); font-size: 14px; }
.idea .facts { font-size: 12.5px; color: var(--ink-3); }
.idea p.clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.fb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.fb button { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 6px; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.fb button.y:hover { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.fb button.l:hover { background: var(--maize-soft); border-color: var(--maize); color: var(--maize-ink); }
.fb button.n:hover { background: var(--urgent-soft); border-color: var(--urgent); color: var(--urgent); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.after { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qopts { display: flex; flex-wrap: wrap; gap: 6px; }

/* rhythm */
.rh-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rh-row:first-of-type { border-top: 0; }
.rh-row .lab { font-weight: 700; flex: 1; min-width: 140px; }
.rh-row .lab .sm { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(6, 12, 24, .5); display: grid; align-items: end; justify-items: center; padding-top: env(safe-area-inset-top, 0px); }
.sheet-card { background: var(--card); color: var(--ink); width: min(680px, 100%); max-height: calc(100% - 24px); overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-card { border-radius: 20px; } }
.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-h h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; margin: 0; flex: 1; line-height: 1.05; }
.sheet .q { font-size: 18px; font-weight: 700; margin: 4px 0 6px; text-wrap: balance; }
.sheet .hint { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.dots { display: flex; gap: 4px; margin: 2px 0 12px; }
.dots i { height: 4px; flex: 1; border-radius: 3px; background: var(--line); }
.dots i.on { background: var(--maize); }
.pick-big { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.08; margin: 4px 0; text-wrap: balance; }
.alt { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.alt .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.timer { display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
.timer svg { width: 200px; height: 200px; max-width: 100%; }
.timer .digits { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; }
.answer { white-space: pre-wrap; background: var(--sunk); border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 14.5px; overflow-wrap: anywhere; }
.plan-b { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.plan-b .when { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.plan-b.nap .when, .plan-b.nap b { color: var(--maize-ink); }
.plan-b.meeting b { color: var(--ink-2); }

/* toast + fab */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: 14px; }
.toast button { background: none; border: 0; color: var(--maize); font-weight: 700; padding: 2px 4px; }
.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--maize); color: #1F1700; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(14,27,51,.28); }
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.banner { border-radius: 12px; padding: 10px 12px; font-size: 13.5px; background: var(--info-soft); color: var(--ink); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--urgent-soft); }
.welcome { background: var(--maize-soft); border: 1px solid var(--maize); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.welcome h3 { margin: 0; font-size: 17px; }
.welcome p { margin: 0; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Installed-app additions: no default page margin, and a brand-colored strip under the phone's status bar (its text is white). */
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (display-mode: standalone) { body::before { background: var(--hero-bg); } }
.brand-mark { border-radius: 9px; }
