
@font-face { font-family: "Inter"; src: url(fonts/Inter-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/SpaceGrotesk-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

/* Ahead design (docs/design/ahead in the v1-ahead branch). */
:root {
  --ink: #10201A; --ink2: #4A5A52; --muted: #56655D; --paper: #F3F5F1; --card: #FFFFFF;
  --line: #E1E6E0; --marker: #F2B66D; --overdue: #8A4510; --symptom: #A8322B; --done: #1E6B47; --band: #1E6B47;
  --bandSoft: #A9B5AE; --body: #E3E8E2; --bodyLine: #C9D2CB; --deep: #133B2A; --mint: #D7EBDF; --mintInk: #133B2A;
  --amberBg: #FBEBD9; --amber: #8A4510; --blueBg: #E6EEF8; --blue: #1F4E86; --onDeep: #FFFFFF; --deepSoft: #BFE0CC;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9F0EB; --ink2: #B3C2B9; --muted: #98A89F; --paper: #0D1612; --card: #16221C;
    --line: #26352D; --overdue: #F2B66D; --symptom: #FF8A7E; --done: #7FD1A3; --band: #7FD1A3;
    --bandSoft: #4A5A52; --body: #1F2C25; --bodyLine: #34463C; --deep: #133B2A; --mint: #1D3A2B; --mintInk: #BFE0CC;
    --amberBg: #3A2A17; --amber: #F2B66D; --blueBg: #1A2A3D; --blue: #9DC0EA;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.45 Inter, -apple-system, system-ui, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 20px 20px 120px; }
h1, h2, .big-title, .headline, .q-title, .start-title, .age-num, .wordmark { font-family: "Space Grotesk", Inter, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: var(--band); }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* Top bar */
.bar { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; }
.bar .spacer { flex: 1; }
.iconbtn {
  border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 20px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.back { border: 0; background: none; color: var(--band); font-weight: 700; cursor: pointer; padding: 8px 0; }
.big-title { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.sub { color: var(--ink2); margin-top: 4px; }
.warn { font-weight: 700; color: var(--ink2); font-size: 15px; margin-top: 6px; }

/* Cards and lists */
.card { background: var(--card); border-radius: 20px; padding: 16px; margin-top: 12px; }
.card.flush { padding: 4px 0; }
.section-title { font-size: 18px; font-weight: 600; color: var(--ink); margin: 26px 2px 0; }
.group-title { display: flex; align-items: center; gap: 8px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); margin: 22px 2px 0; }
.group-title i { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }
.row {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 0; background: none;
  width: 100%; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .icon { width: 22px; flex: none; font-weight: 800; text-align: center; line-height: 1.35; }
.row .main { flex: 1; min-width: 0; }
.row .head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.row .name { font-weight: 700; flex: 1; }
.row .state { font-weight: 700; font-size: 15px; }
.row .who { font-size: 15px; color: var(--ink2); margin-top: 3px; }
.row .next { font-size: 14px; color: var(--muted); }
.row .chev { color: var(--muted); align-self: center; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--paper); color: var(--ink2); margin-top: 6px; }
.pill.free { color: var(--done); }
.markdone { margin: 0 16px 12px 50px; }

.s-overdue { color: var(--overdue); }
.s-symptomFirst { color: var(--symptom); }
.s-upToDate { color: var(--done); }
.s-due, .s-careTeam, .s-decide { color: var(--ink); }
.s-notYet, .s-pastAge, .s-notRoutine { color: var(--muted); }

/* Buttons */
.primary {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 14px; margin-top: 14px; min-height: 48px;
  background: var(--band); color: #fff; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.primary:disabled { opacity: 0.35; cursor: default; }
.secondary {
  border: 1px solid #D3DAD4; background: var(--card); border-radius: 999px; padding: 10px 16px; min-height: 44px;
  font-weight: 600; cursor: pointer; color: var(--ink);
}
.linkbtn { border: 0; background: none; color: var(--band); font-weight: 700; cursor: pointer; padding: 12px 16px; width: 100%; text-align: left; }
.linkbtn.danger { color: var(--overdue); }

/* Start */
.wordmark { font-weight: 600; color: var(--band); margin-top: 24px; }
.headline { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin-top: 28px; white-space: pre-line; }
.lede { font-size: 19px; color: var(--ink2); margin-top: 14px; }
.fine { color: var(--muted); font-size: 15px; margin-top: 12px; white-space: pre-line; text-align: center; }
label.field { display: block; margin-top: 14px; }
label.field span { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
select, input[type=number], input[type=month] {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.hint { color: var(--overdue); font-size: 15px; margin-top: 8px; }

/* Questions */
.step { color: var(--muted); font-weight: 700; font-size: 15px; }
.q-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.q-why { color: var(--ink2); margin-top: 8px; }
.choices { margin-top: 18px; background: var(--card); border-radius: 16px; overflow: hidden; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice input { width: 22px; height: 22px; accent-color: var(--band); flex: none; margin: 0; }
.age-box { margin-top: 24px; text-align: center; }
.age-num { font-size: 64px; font-weight: 800; line-height: 1; }
.age-unit { color: var(--muted); }
input[type=range] { width: 100%; margin-top: 20px; accent-color: var(--band); }
.years { margin-top: 14px; padding: 0 4px; }
.years .val { font-weight: 800; font-size: 22px; }
.relative-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.relative-row .main { flex: 1; }
.add-form { padding: 4px 16px 16px; }
.footer { position: fixed; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); }
.footer .inner { max-width: 528px; margin: 0 auto; }

/* Body map */
.bodymap { margin-top: 8px; }
.bodymap svg { width: 100%; height: auto; display: block; }
.bodymap .chip { cursor: pointer; }
.bodymap .chip text { font-family: Inter, system-ui, sans-serif; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 13px; color: var(--ink2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 5px; vertical-align: -1px; }

/* Start here */
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.start-title { font-size: 21px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.available { color: var(--band); font-weight: 700; margin-top: 4px; }
.cost { color: var(--ink2); margin-top: 4px; }
.steps-title { font-weight: 800; margin-top: 14px; }
ol.steps { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: s; }
ol.steps li { position: relative; padding: 0 0 14px 40px; counter-increment: s; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 13px;
  background: var(--band); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 2px; width: 1px; background: var(--line); }
ol.steps b { display: block; }
.ainote { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Banners */
.banner { background: var(--amberBg); color: var(--amber) !important; border-radius: 16px; padding: 12px 14px; margin-top: 14px; color: var(--ink2); font-size: 15px; }

/* Detail */
.facts { display: grid; gap: 12px; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.say { font-style: italic; border-left: 3px solid var(--line); padding-left: 12px; margin-top: 8px; }
blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink2); font-size: 15px; }
.sources a { display: block; font-size: 14px; word-break: break-all; margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.seg button { min-height: 44px; border-radius: 999px; font-weight: 600; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lights li { margin-top: 6px; }
.lights { padding-left: 20px; margin: 8px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 10; }

@media print {
  .bar, .footer, .bodymap, .noprint, .markdone, .linkbtn, .primary { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; }
}

/* Rows, routes, done */
.rowwrap { border-bottom: 1px solid var(--line); }
.rowwrap:last-child { border-bottom: 0; }
.rowwrap .row { border-bottom: 0; }
.rowwrap.justdone { background: color-mix(in srgb, var(--done) 8%, transparent); }
.rowwrap.justdone .state { color: var(--done); }
.facts-line { display: block; font-weight: 700; font-size: 15px; color: var(--ink2); margin-top: 2px; }
.who.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: var(--paper); color: var(--ink2); }
.badge.ok { color: var(--done); background: color-mix(in srgb, var(--done) 12%, transparent); }
.badge.paid { color: var(--ink2); border: 1px solid var(--line); background: none; }
.way { margin-top: 10px; }
.way-text { margin-top: 8px; font-weight: 500; }
.routebtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.routebtns .primary { margin-top: 4px; }
.routebtns a.secondary { text-decoration: none; }
.secondary.wide { display: block; width: 100%; margin-top: 10px; padding: 13px; }

/* Canada overview */
.matrix { overflow-x: auto; margin-top: 16px; background: var(--card); border-radius: 16px; }
.matrix table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.matrix th, .matrix td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; white-space: nowrap; }
.matrix tbody th { text-align: left; position: sticky; left: 0; background: var(--card); font-weight: 700; }
.matrix thead th { font-weight: 800; }
.matrix thead th a { text-decoration: none; }
.matrix td span { display: block; }
.c { display: inline-block; font-weight: 800; font-size: 12px; padding: 1px 6px; border-radius: 8px; }
.c.ok { color: var(--done); background: color-mix(in srgb, var(--done) 12%, transparent); }
.c.mid { color: var(--band); background: color-mix(in srgb, var(--band) 12%, transparent); }
.c.pay { color: var(--overdue); background: color-mix(in srgb, var(--overdue) 10%, transparent); }
.c.unk { color: var(--muted); }
.nd { font-size: 11px; color: var(--done); font-weight: 700; }
.ag { font-size: 11px; color: var(--muted); }
.na { color: var(--line); }
.legendrow { font-size: 13px; color: var(--ink2); margin-top: 12px; line-height: 2; }

/* Ahead: tabs, hero, task cards, badges */
main.tabbed { padding-bottom: 110px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.tabbar .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; text-decoration: none; color: var(--ink2); font-size: 12px; font-weight: 500; }
.tabbar a[aria-current=page] { color: var(--band); font-weight: 600; }
.dateline { font-size: 13px; color: var(--ink2); font-weight: 500; }
.hero { background: var(--deep); color: var(--onDeep); border-radius: 24px; padding: 22px; margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.hero .kick { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deepSoft); }
.hero .big { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.hero .segs { display: grid; gap: 4px; }
.hero .segs span { height: 8px; border-radius: 4px; background: #7FD1A3; }
.hero .segs span.todo { background: #F2B66D; }
.hero a, .hero button { align-self: flex-start; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 0; cursor: pointer; min-height: 44px; }
.task { background: var(--card); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.task .tile { width: 44px; height: 44px; border-radius: 14px; background: var(--amberBg); color: var(--amber); display: grid; place-items: center; flex: none; }
.task .tile.sym { color: var(--symptom); }
.task .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.task .txt b { font-weight: 600; font-size: 16px; }
.task .txt span { font-size: 13px; color: var(--ink2); }
.task .go { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--band); color: #fff; font: 600 14px Inter, sans-serif; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.signal { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid #E8C9A6; border-radius: 20px; padding: 18px; margin-top: 10px; text-decoration: none; color: var(--ink); }
.signal .tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.signal .tag i { width: 8px; height: 8px; border-radius: 4px; background: #C9731F; }
.signal .more { font-weight: 600; font-size: 14px; color: var(--band); }
.chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #D3DAD4; background: var(--card); color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; }
.chips button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge2 { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; align-self: center; }
.badge2.due { background: var(--amberBg); color: var(--amber); }
.badge2.soon { background: var(--blueBg); color: var(--blue); }
.badge2.ok { background: var(--mint); color: var(--mintInk); }
.badge2.later { background: var(--paper); color: var(--ink2); }
.badge2.sym { background: var(--amberBg); color: var(--symptom); }
.shape { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.shape:last-child { border-bottom: 0; }
.shape .top { display: flex; justify-content: space-between; gap: 12px; }
.shape .top b { font-weight: 600; }
.shape .top span { color: var(--ink2); font-size: 14px; text-align: right; }
.shape .effect { font-size: 13px; color: var(--done); font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tiles div { background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tiles span { font-size: 13px; color: var(--ink2); }
.tiles b { font-weight: 600; }
.task .txt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowwrap .markdone { margin: 0 16px 12px; }
.task .txt em { font-style: normal; font-weight: 600; font-size: 13px; }

/* Closer to the Ahead mockup */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello .big-title { margin-top: 4px; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--mint); color: var(--mintInk); display: grid; place-items: center; flex: none; }
.card.list { padding: 4px 16px; }
.card.list .item, .card.list .prow { display: flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.card.list > :last-child { border-bottom: 0; }
.item .dot { width: 26px; height: 26px; border-radius: 13px; border: 2px solid #A9B5AE; display: grid; place-items: center; flex: none; }
.item .dot.on { background: var(--band); border-color: var(--band); }
.item .lbl { flex: 1; font-weight: 500; font-size: 15px; }
.item .why { font-size: 13px; color: var(--ink2); }
.prow { padding: 10px 0; }
.prow .main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prow .main b { font-weight: 600; font-size: 15px; }
.prow .main span { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.card.big { border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tag2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.tag2 i { width: 8px; height: 8px; border-radius: 4px; background: #C9731F; }
.card.big .lights { margin: 0; line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .primary { margin-top: 0; }
.stack .secondary.wide { margin-top: 0; min-height: 48px; }
.dashed { display: block; width: 100%; min-height: 48px; margin-top: 10px; border-radius: 999px; border: 1px dashed #A9B5AE; background: transparent; color: var(--ink); font: 600 15px Inter, sans-serif; cursor: pointer; }
.saved { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--done); margin: 10px 0 0; }

/* Review fixes */
.alarm { background: var(--card); border: 2px solid var(--symptom); border-radius: 24px; padding: 18px; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.alarm .task { margin-top: 0; border: 1px solid var(--line); }
.hubline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--mint); color: var(--mintInk); border-radius: 18px; padding: 12px 16px; margin-top: 12px; font-weight: 600; }
.hubline .routebtns { margin-top: 0; }
.first .task { border: 2px solid var(--band); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper button { width: 56px; height: 56px; border-radius: 28px; border: 1px solid #D3DAD4; background: var(--card); font-size: 28px; font-weight: 600; cursor: pointer; color: var(--ink); }
.stepper input.age-num { width: 140px; text-align: center; border: 0; background: transparent; font-size: 64px; font-weight: 800; font-family: "Space Grotesk", Inter, sans-serif; color: var(--ink); padding: 0; }
.back { min-width: 44px; min-height: 44px; }
.sources a { min-height: 28px; display: flex; align-items: center; }

/* Quieter header and one segmented control for the depth */
.meta { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.segctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--line); border-radius: 12px; padding: 3px; margin-top: 18px; }
.segctl button { border: 0; background: transparent; border-radius: 9px; min-height: 40px; font: 600 14px Inter, sans-serif; color: var(--ink2); cursor: pointer; }
.segctl button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.caption { color: var(--ink2); font-size: 13px; margin: 6px 2px 0; }
.task .tile.paid { background: var(--blueBg); color: var(--blue); }

/* Quieter Today */
.outlook { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 14px 16px; background: var(--card); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.outlook .meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.outlook .meter i { display: block; height: 100%; background: var(--done); border-radius: 3px; }
.prow.more b { color: var(--band); font-weight: 600; }
.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; font-weight: 500; }
.signup .routebtns { margin-top: 0; }
.signup .routebtns .secondary { padding: 8px 14px; min-height: 40px; }

/* Quieter check page */
.card.best { margin-top: 16px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lastrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; background: var(--card); border-radius: 16px; color: var(--ink2); font-size: 15px; }
.lastrow span { flex: 1; min-width: 160px; }
.lastrow b { color: var(--ink); font-weight: 600; }
.linkish { border: 0; background: none; color: var(--band); font-weight: 600; cursor: pointer; padding: 8px 4px; min-height: 40px; }
details.fold { margin-top: 10px; background: var(--card); border-radius: 16px; padding: 4px 16px; }
details.fold > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
details.fold > summary::after { content: "›"; color: var(--muted); transform: rotate(90deg); }
details.fold[open] > summary::after { transform: rotate(-90deg); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] { padding-bottom: 14px; }
details.fold .other { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink2); }
details.fold .other .routebtns { margin-top: 8px; }

/* Mirror of the iOS app: nav bar, inset grouped lists, toolbar */
.big-title { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.topbar.center { justify-content: center; font-weight: 600; font-size: 17px; }
.navicon { color: var(--band); display: grid; place-items: center; width: 44px; height: 44px; }
.ios-group { margin-top: 22px; }
.ios-group h3 { font: 600 17px Inter, sans-serif; color: var(--ink2); margin: 0 16px 8px; }
.ios-group .rows { background: var(--card); border-radius: 12px; overflow: hidden; }
.ios-group .rows.pad { padding: 4px 16px 16px; }
.ios-footer { color: var(--ink2); font-size: 13px; margin: 8px 16px 0; }
.ios-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; font: inherit; color: var(--ink); text-decoration: none; }
.ios-row:last-child { border-bottom: 0; }
.ios-row .value { color: var(--ink2); text-align: right; }
.ios-row .muted { color: var(--ink2); }
.ios-row.stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.ios-row.icon { justify-content: flex-start; align-items: flex-start; }
.ios-row.icon > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ios-row.icon b { font-weight: 600; }
.ios-row small { color: var(--ink2); font-size: 13px; }
.ios-row .effect { color: var(--done); }
.ios-row .warn-ic { color: var(--amber); flex: none; }
.ios-row .sym { color: var(--symptom); flex: none; }
.ios-row.action { color: var(--band); font-weight: 500; cursor: pointer; justify-content: flex-start; gap: 8px; }
.ios-row.action.danger { color: var(--symptom); }
.ios-group .depth { margin: 0; }
.ios-group .depth .segctl { margin-top: 0; }
.toolbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.toolbar .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toolbar button { border: 0; background: none; color: var(--band); display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 13px Inter, sans-serif; cursor: pointer; min-height: 50px; }
main:has(.toolbar) { padding-bottom: 110px; }
.group-title { text-transform: none; letter-spacing: 0; font: 600 17px Inter, sans-serif; color: var(--ink2); margin: 22px 16px 8px; }
.group-title i { display: none; }
.task .txt em.statel { font-style: normal; font-weight: 600; font-size: 13px; }
.task .tile .stateicon { font-size: 22px; font-weight: 800; line-height: 1; }
.outlook .row { display: flex; justify-content: space-between; align-items: center; }
.card.best .routebtns a.secondary:first-child { background: var(--band); color: #fff; border-color: var(--band); }
.task .txt em.statel.s-due, .task .txt em.statel.s-overdue, .task .tile .stateicon.s-due, .task .tile .stateicon.s-overdue { color: var(--amber); }
