/* TGM Weather v4 */
:root {
  --page: #EDEFF2;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --ink: #12171D;
  --ink-2: #3C4650;
  --muted: #5F6B77;
  --line: #D6DBE1;
  --line-2: #E8EBEF;
  --brand: #E8590C;
  --go: #137238;      --go-bg: #E3F3E9;
  --caution: #A65A05; --caution-bg: #FBEFDD;
  --nogo: #B42323;    --nogo-bg: #FBE9E9;
  --delay: #2457C5;   --delay-bg: #E8EEFB;
  --unknown: #6B7682; --unknown-bg: #EEF0F3;
  --rain: #2B6FD6;
  --rain-soft: rgba(43,111,214,.16);
  --night: rgba(18,23,29,.07);
  --work: rgba(232,89,12,.09);
  --core: rgba(232,89,12,.08);
  --temp: #12171D;
  --radius: 10px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #0A0D11;
  --surface: #141920;
  --surface-2: #1B212A;
  --ink: #ECEFF3;
  --ink-2: #C3CAD2;
  --muted: #98A3B0;
  --line: #2A333D;
  --line-2: #222A33;
  --go: #3FBF6E;      --go-bg: #15291D;
  --caution: #E3A23A; --caution-bg: #2C2213;
  --nogo: #EF5A5A;    --nogo-bg: #301717;
  --delay: #6FA0FF;   --delay-bg: #16213A;
  --unknown: #98A3B0; --unknown-bg: #1E252E;
  --rain: #5B9BFF;
  --rain-soft: rgba(91,155,255,.22);
  --night: rgba(0,0,0,.28);
  --work: rgba(232,89,12,.08);
  --core: rgba(232,89,12,.06);
  --temp: #ECEFF3;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0A0D11; --surface: #141920; --surface-2: #1B212A; --ink: #ECEFF3; --ink-2: #C3CAD2; --muted: #98A3B0; --line: #2A333D; --line-2: #222A33;
    --go: #3FBF6E; --go-bg: #15291D; --caution: #E3A23A; --caution-bg: #2C2213; --nogo: #EF5A5A; --nogo-bg: #301717; --delay: #6FA0FF; --delay-bg: #16213A;
    --unknown: #98A3B0; --unknown-bg: #1E252E; --rain: #5B9BFF; --rain-soft: rgba(91,155,255,.22); --night: rgba(0,0,0,.28); --work: rgba(232,89,12,.08); --core: rgba(232,89,12,.06); --temp: #ECEFF3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding-block: 0 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand > div { min-width: 0; }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em; display: grid; place-items: center; flex: none; }
.brand-name { font-weight: 600; font-size: 16px; line-height: 1.15; }
.brand-sub { font-size: 12px; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub.stale { color: var(--nogo); font-weight: 600; }
.top-actions { display: flex; gap: 5px; flex: none; }
.iconbtn { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:active { transform: scale(.97); }

/* day chips */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 12px; scrollbar-width: none; -ms-overflow-style: none; }
.days::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.chip .ico { font-size: 22px; }
.chip.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); }
.chip .dot.go { background: var(--go); } .chip .dot.short, .chip .dot.delay, .chip .dot.protect { background: var(--caution); } .chip .dot.nogo { background: var(--nogo); }
.chip.on .dot.go { background: #4cd27f; } .chip.on .dot.nogo { background: #ff7272; } .chip.on .dot.short, .chip.on .dot.delay, .chip.on .dot.protect { background: #ffb84d; }

/* alert bar */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); margin: 0 0 10px; background: var(--caution-bg); color: var(--ink); border-left: 6px solid var(--caution); }
.alert.severe { background: var(--nogo-bg); border-left-color: var(--nogo); }
.alert .warn { width: 24px; height: 24px; flex: none; color: var(--caution); margin-top: 1px; }
.alert.severe .warn { color: var(--nogo); }
.alert b { display: block; font-size: 15px; }
.alert span { font-size: 13px; color: var(--ink-2); }
.alert button { margin-left: auto; color: var(--muted); font-size: 13px; flex: none; min-height: 32px; }
.alert-body { font-size: 14px; color: var(--ink-2); white-space: pre-line; margin-top: 8px; display: none; }
.alert.open .alert-body { display: block; }

/* the ticket: current + the call */
.ticket { background: var(--surface); border-radius: var(--radius); border-left: 8px solid var(--unknown); overflow: hidden; margin-bottom: 10px; }
.ticket.go { border-left-color: var(--go); } .ticket.delay { border-left-color: var(--delay); } .ticket.protect, .ticket.short { border-left-color: var(--caution); } .ticket.nogo { border-left-color: var(--nogo); }
.now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 14px 12px 12px; border-bottom: 1px solid var(--line-2); }
.now .mid { min-width: 0; }
.now .meta.src { color: var(--muted); font-size: 12px; margin-top: 4px; }
.now .big { font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.now .big sup { font-size: 24px; font-weight: 400; vertical-align: top; line-height: 1.6; }
.now .cond { font-size: 15px; font-weight: 500; }
.now .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.now .hilo { text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.3; flex: none; }
.now .hilo b { font-weight: 600; color: var(--ink); font-size: 16px; }
.now .hilo small { color: var(--muted); font-size: 12px; }
.now .ico { font-size: 40px; }
.call { padding: 12px 16px 14px 14px; }
.call .label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.call .label b { color: var(--ink-2); font-weight: 500; }
.call h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 2px 0 6px; }
.call h1.go { color: var(--go); } .call h1.delay { color: var(--delay); } .call h1.protect, .call h1.short { color: var(--caution); } .call h1.nogo { color: var(--nogo); } .call h1.unknown { color: var(--unknown); }
.call .reason { font-size: 16px; color: var(--ink); line-height: 1.4; max-width: 34em; }
.notes { margin-top: 10px; display: grid; gap: 6px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.note::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--unknown); flex: none; margin-top: 5px; }
.note.nogo::before { background: var(--nogo); } .note.caution::before { background: var(--caution); } .note.go::before { background: var(--go); } .note.info::before { background: var(--delay); }
.winbar { margin-top: 12px; }
.winbar .track { position: relative; height: 14px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.winbar .seg { position: absolute; top: 0; bottom: 0; }
.winbar .seg.ok { background: var(--go); } .winbar .seg.marginal { background: var(--caution); } .winbar .seg.bad { background: var(--nogo); } .winbar .seg.unknown { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); }
.winbar .ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* timeline */
.panel { background: var(--surface); border-radius: var(--radius); padding: 12px 14px 10px; margin-bottom: 10px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.panel-h h2 { font-size: 15px; font-weight: 600; }
.panel-h .sub { font-size: 12px; color: var(--muted); }
.tl { width: 100%; display: block; touch-action: pan-y; }
.tl text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.tl .axis { font-size: 11px; fill: var(--muted); }
.tl .tlab { font-size: 12px; font-weight: 600; fill: var(--ink); }
.tl .plab { font-size: 11px; fill: var(--rain); font-weight: 600; }
.tl .wlab { font-size: 11px; fill: var(--ink-2); }
.tl .nowlab { font-size: 11px; font-weight: 700; fill: var(--brand); }
.tl .grid { stroke: var(--line-2); stroke-width: 1; }
.tl .temp { fill: none; stroke: var(--temp); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tl .feels { fill: none; stroke: var(--temp); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
.tl .pop { fill: var(--rain-soft); stroke: var(--rain); stroke-width: 1.2; }
.tl .qpf { fill: var(--rain); }
.tl .night { fill: var(--night); }
.tl .work { fill: var(--work); }
.tl .core { fill: var(--core); }
.tl .nowline { stroke: var(--brand); stroke-width: 2; }
.tl .st-ok { fill: var(--go); } .tl .st-marginal { fill: var(--caution); } .tl .st-bad { fill: var(--nogo); } .tl .st-unknown { fill: var(--line); } .tl .st-out { fill: var(--line-2); }
.tl .hit { fill: transparent; cursor: pointer; }
.tl .sel { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tl .alertband { fill: var(--caution); opacity: .9; }
.tl .alerttext { font-size: 10px; font-weight: 700; fill: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.hourdetail { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 14px; }
.hourdetail .hd-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hourdetail .hd-top b { font-size: 16px; }
.hourdetail .pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--unknown-bg); color: var(--unknown); }
.hourdetail .pill.ok { background: var(--go-bg); color: var(--go); } .hourdetail .pill.marginal { background: var(--caution-bg); color: var(--caution); } .hourdetail .pill.bad { background: var(--nogo-bg); color: var(--nogo); }
.hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.hd-grid div span { display: block; font-size: 11px; color: var(--muted); }
.hd-grid div b { font-weight: 600; }
.hd-why { margin-top: 8px; color: var(--ink-2); }

/* conditional rows */
.rows { display: grid; gap: 8px; margin-bottom: 10px; }
.row { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; border-left: 6px solid var(--line); }
.row.go { border-left-color: var(--go); } .row.caution { border-left-color: var(--caution); } .row.nogo { border-left-color: var(--nogo); } .row.info { border-left-color: var(--delay); }
.row .ico { font-size: 46px; margin: -8px 0 0 -6px; }
.row b { display: block; font-size: 15px; font-weight: 600; }
.row p { font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.row ul { list-style: none; margin-top: 6px; display: grid; gap: 4px; }
.row li { font-size: 14px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.4; }
.row li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--unknown); }
.row li.nogo::before { background: var(--nogo); } .row li.caution::before { background: var(--caution); } .row li.go::before { background: var(--go); }
.row .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.row .facts b { display: inline; font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* radar */
.radar { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.radar .frame { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.radar .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radar .stamp { position: absolute; left: 10px; bottom: 26px; font-size: 12px; background: rgba(18,23,29,.75); color: #fff; padding: 3px 8px; border-radius: 6px; }
.radar .pin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(232,89,12,.25); }
.radar .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.radar .bar b { color: var(--ink); font-weight: 600; font-size: 15px; }
.radar .bar a { color: var(--delay); text-decoration: none; font-weight: 500; }

/* 7-day table */
.week { background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
.wrow { display: grid; grid-template-columns: 58px 32px 1fr 44px 96px; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line-2); min-height: 48px; width: 100%; text-align: left; }
.wrow:first-child { border-top: 0; }
.wrow .d { font-weight: 600; font-size: 15px; line-height: 1.1; }
.wrow .d small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.wrow .ico { font-size: 30px; }
.wrow .rng { position: relative; height: 10px; border-radius: 5px; background: var(--line-2); }
.wrow .rng i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--rain), var(--brand)); opacity: .85; }
.wrow .rng .lo, .wrow .rng .hi { position: absolute; top: 13px; font-size: 12px; color: var(--muted); }
.wrow .rng .hi { color: var(--ink); font-weight: 600; }
.wrow .pop { font-size: 13px; color: var(--rain); font-weight: 600; text-align: right; }
.wrow .pop.none { color: var(--line); }
.wrow .st { font-size: 13px; font-weight: 600; text-align: right; }
.st small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.st.go { color: var(--go); } .st.short, .st.delay, .st.protect { color: var(--caution); } .st.nogo { color: var(--nogo); } .st.unknown { color: var(--unknown); }
.wrow.on { background: var(--surface-2); }

/* collapsibles */
.fold { background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; }
.fold > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px; text-align: left; min-height: 52px; }
.fold > button h2 { font-size: 15px; font-weight: 600; }
.fold > button small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.fold > button svg { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; flex: none; }
.fold.open > button svg { transform: rotate(180deg); }
.fold .body { display: none; padding: 0 14px 14px; }
.fold.open .body { display: block; }

/* trades */
.trade { border-top: 1px solid var(--line-2); padding: 10px 0; }
.trade button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: left; min-height: 44px; }
.trade .tn { font-weight: 600; font-size: 15px; }
.trade .tw { font-size: 13px; color: var(--muted); }
.trade .st { font-size: 14px; }
.trade .more { display: none; font-size: 14px; color: var(--ink-2); padding-top: 6px; line-height: 1.45; }
.trade.open .more { display: block; }
.trade .lim { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* sources */
.srcs { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.srcs div::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go); margin-right: 8px; }
.srcs div.off::before { background: var(--nogo); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th { text-align: right; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp td { padding: 7px 6px; border-top: 1px solid var(--line-2); text-align: right; }
.cmp td:first-child { font-weight: 500; }
.cmp tr.official td:first-child::after { content: ' (shown)'; color: var(--muted); font-weight: 400; font-size: 12px; }
.conf { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.conf b { font-weight: 600; }

/* settings */
.set { display: grid; gap: 12px; }
.set label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.set select, .set input { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 44px; min-width: 120px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { padding: 8px 12px; min-height: 44px; font-size: 14px; }
.seg button.on { background: var(--ink); color: var(--page); }

footer { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 0 6px; line-height: 1.6; }
footer a { color: var(--ink-2); }
footer .links { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; font-size: 14px; }

/* loading and error */
.center { text-align: center; padding: 60px 16px; color: var(--muted); }
.center .mark { margin: 0 auto 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: var(--page); font-weight: 600; }

/* preview-only switcher */
.preview { position: relative; background: var(--ink); color: var(--page); font-size: 13px; padding: 8px 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.preview select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 0; }
.preview span { opacity: .8; }

@media (max-width: 360px) {
  .call h1 { font-size: 29px; }
  .now .big { font-size: 46px; }
  .wrow { grid-template-columns: 52px 28px 1fr 40px 80px; gap: 6px; padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- live build additions ---------- */
.flash { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--delay-bg); color: var(--ink); font-size: 14px; border-left: 6px solid var(--delay); }
.flash.bad { background: var(--nogo-bg); border-left-color: var(--nogo); }
.iconbtn[disabled] { opacity: .5; }

/* location modal */
.modal { position: fixed; inset: 0; background: rgba(10,13,17,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: max(56px, env(safe-area-inset-top, 0px)) 16px 16px; }
.modal-box { background: var(--surface); border-radius: 14px; width: 100%; max-width: 480px; padding: 12px 14px 14px; max-height: calc(100vh - 80px); overflow-y: auto; }
.modal-h { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 6px; }
.modal-cur { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.link { color: var(--delay); font-weight: 500; font-size: 14px; min-height: 36px; padding: 0 6px; }
.search-input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.search-results { display: grid; gap: 4px; margin-top: 8px; }
.search-item { text-align: left; padding: 12px 14px; min-height: 48px; border-radius: 8px; background: var(--surface-2); font-size: 16px; }
.search-item:hover { background: var(--line-2); }
.search-empty { padding: 12px 4px; color: var(--muted); font-size: 14px; }
.saved-h { font-size: 12px; color: var(--muted); margin: 14px 0 4px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.saved-row > button:first-child { text-align: left; flex: 1; min-height: 44px; font-size: 16px; padding: 0 4px; }

/* radar map */
.radar .frame .map { position: absolute; inset: 0; z-index: 0; }
.map-dark .basemap { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.5); }
.radar .frame .stamp { z-index: 2; }
.radar-msg { padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.leaflet-container { background: var(--surface-2); font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.7) !important; color: #333 !important; }
:root[data-theme="dark"] .leaflet-control-attribution, :root[data-dark="1"] .leaflet-control-attribution { background: rgba(20,25,32,.75) !important; color: #c3cad2 !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* settings */
.fold .body h3 { font-size: 15px; font-weight: 600; margin: 6px 0 2px; }
.fold .body .help { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
.set label > span { display: block; }
.set label > span small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.set input[type=number] { width: 96px; text-align: right; }
.tset { border-top: 1px solid var(--line-2); }
.tset > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; min-height: 48px; padding: 8px 0; font-size: 15px; font-weight: 600; }
.tset > button em { font-style: normal; font-size: 12px; color: var(--brand); font-weight: 600; }
.tset > button .sum { font-size: 12px; color: var(--muted); font-weight: 400; text-align: right; }
.tset .tbody { display: none; padding: 4px 0 12px; }
.tset.open .tbody { display: block; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; }
.btn2 { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 14px; }
.diag { font-size: 12px; color: var(--muted); margin: 2px 0 2px 16px; line-height: 1.35; }

/* polish: sunlight contrast and large text */
.call .reason, .row p, .row li, .note { color: var(--ink); }
.row p, .row li { color: var(--ink-2); }
.hourdetail, .legend, .axis { font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .wrap { max-width: 640px; } .now .big { font-size: 60px; } .call h1 { font-size: 38px; } }
