/* Iris front shell (K9), concept A: the current Iris, refined (spec 0d, ui/README.md).
   One token set (K9.B13): every colour lives between tokens:start and tokens:end, dark on :root, light on
   [data-theme=light]; nothing below names a colour (K9.T0023, K9.T0024). Type scale 26 / 20 / 17 / 15.5 / 13,
   spacing on the 8-point grid (4 allowed as the half step). The theme attribute is set before first paint. */

/* tokens:start */
:root {
  --bg-0: #0e1117; --bg-1: #151922; --bg-2: #1c2130; --bg-3: #242a3a;
  --line-1: #2b3243; --line-2: #3b4458;
  --ink-1: #eef2f8; --ink-2: #a3adbf; --ink-3: #7a8498;
  --accent: #7ab0e0; --accent-ink: #0e1117; --accent-dim: rgba(122, 176, 224, .14);
  --warm: #e0b87a; --warm-dim: rgba(224, 184, 122, .14);
  --ok: #7ad0a0; --ok-dim: rgba(122, 208, 160, .14);
  --bad: #e07a7a; --bad-dim: rgba(224, 122, 122, .14);
  --info: #7ab0e0; --info-dim: rgba(122, 176, 224, .16);
  --lq: #3984c6; --hatch: rgba(224, 184, 122, .28); --dim: rgba(0, 0, 0, .55);
  --shadow: 0 2px 10px rgba(0, 0, 0, .4); --toast-bg: #eef2f8; --toast-ink: #0e1117;
  --focus: 0 0 0 2px #7ab0e0 inset;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg-0: #f4f6fa; --bg-1: #ffffff; --bg-2: #f7f8fb; --bg-3: #eceff5;
  --line-1: #e1e5ee; --line-2: #c9d0dd;
  --ink-1: #141923; --ink-2: #4b5566; --ink-3: #5c6778;
  --accent: #2f6fb5; --accent-ink: #ffffff; --accent-dim: rgba(47, 111, 181, .12);
  --warm: #a9741e; --warm-dim: rgba(169, 116, 30, .12);
  --ok: #1f8a57; --ok-dim: rgba(31, 138, 87, .12);
  --bad: #c43d3d; --bad-dim: rgba(196, 61, 61, .1);
  --info: #2f6fb5; --info-dim: rgba(47, 111, 181, .12);
  --lq: #3984c6; --hatch: rgba(169, 116, 30, .22); --dim: rgba(20, 25, 35, .35);
  --shadow: 0 2px 10px rgba(0, 0, 0, .12); --toast-bg: #141923; --toast-ink: #ffffff;
  --focus: 0 0 0 2px #2f6fb5 inset;
  color-scheme: light;
}
/* tokens:end */

:root {
  --t1: 26px; --t2: 20px; --t3: 17px; --t4: 15.5px; --t5: 13px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 8px; --r2: 12px; --r3: 16px; --pill: 999px;
  --hit: 44px; --band: 52px; --kb: 0px;
  --rail: 264px; --side: 340px; --measure: 760px;
  --ease: cubic-bezier(.2, .7, .2, 1); --fast: .15s; --slow: .3s;
  --top-h: 64px; --tab-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg-0); color: var(--ink-1); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-touch-callout: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--focus);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }

/* ---- the frame ---- */
.app { height: 100%; display: flex; flex-direction: column; }
.top { flex: none; display: flex; align-items: center; gap: var(--s2); min-height: var(--top-h);
  padding: calc(var(--safe-t) + var(--s2)) var(--s4) var(--s2); border-bottom: 1px solid var(--line-1);
  background: var(--bg-0); position: relative; z-index: 20; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.on { background: var(--accent); }
.dot.busy { background: var(--ok); }
.dot.err { background: var(--bad); }
.dot.sync { background: var(--accent); animation: pulse 1.2s infinite; }
.tt { flex: 1; min-width: 0; }
.tt b { display: block; font-size: var(--t1); line-height: 1.1; letter-spacing: -.01em; }
.tt small { display: block; color: var(--ink-2); font-size: 14px; white-space: normal; }
.ib { width: var(--hit); height: var(--hit); border-radius: var(--r2); border: 1px solid var(--line-1);
  background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); padding: 0; flex: none; }
.ib.on { color: var(--accent); border-color: var(--accent); }
.wide-only { display: none; }
.runbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0;
  transition: opacity var(--fast); }
.runbar.on { opacity: 1; }
.runbar i { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--accent); animation: run 1.1s linear infinite; }
@keyframes run { from { left: -30%; } to { left: 100%; } }
@keyframes pulse { 50% { opacity: .3; } }

.banner { flex: none; padding: var(--s2) var(--s4); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line-1); }
.banner.down { background: var(--bad-dim); color: var(--bad); }
.banner.slow, .banner.copy { background: var(--info-dim); color: var(--info); }
.banner.busy { background: var(--warm-dim); color: var(--warm); }

.cols { flex: 1; display: flex; min-height: 0; }
.rail { display: none; width: var(--rail); flex: none; border-right: 1px solid var(--line-1); overflow: auto;
  padding: var(--s3) var(--s3) var(--s6); }
.main { flex: 1; overflow: auto; min-width: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.side { display: none; width: var(--side); flex: none; border-left: 1px solid var(--line-1); overflow: auto; padding: var(--s4); }
.wrap { padding: var(--s3) var(--s3) calc(var(--s7) + var(--kb)); display: flex; flex-direction: column; gap: var(--s3);
  max-width: 72ch; margin: 0 auto; }
/* a mounted module page: the box it may fill is main's height (a page like Tabs pins its composer to the bottom) */
.wrap.frag { padding-bottom: calc(var(--s3) + var(--kb));
  --page-h: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b) - 2 * var(--s3) - 2px - var(--kb)); }

.tabbar { flex: none; display: flex; border-top: 1px solid var(--line-1); background: var(--bg-1);
  padding: var(--s1) var(--s2) calc(var(--s1) + var(--safe-b)); min-height: var(--tab-h); }
.tabbar button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); position: relative;
  min-height: var(--hit); }
.tabbar button.on { color: var(--accent); }
.tabbar svg.i { width: 24px; height: 24px; }
.tabbar em { position: absolute; top: 0; left: calc(50% + 6px); font-style: normal; font-size: 11.5px; font-weight: 800;
  background: var(--accent); color: var(--accent-ink); padding: 1px 7px; border-radius: var(--pill); }
body.kb-up .tabbar { display: none; }

/* ---- wide: iPad on its side and the laptop (one breakpoint list, K9.B18: 1000 px) ---- */
@media (min-width: 1000px) {
  .rail { display: block; }
  .tabbar { display: none; }
  .wide-only { display: grid; }
  .phone-only { display: none !important; }
  .top { min-height: 56px; padding: var(--s2) var(--s4); }
  .tt b { font-size: 19px; display: inline; }
  .tt small { display: inline; margin-left: var(--s2); }
  .ib { width: var(--hit); height: var(--hit); border-radius: 10px; }
  .wrap { max-width: var(--measure); padding: var(--s5) var(--s5) var(--s7); }
  .wrap.frag { padding-bottom: var(--s5); --page-h: calc(100dvh - 56px - 2 * var(--s5) - 1px); }
}
@media (min-width: 1200px) { .side { display: block; } }
@media (max-width: 430px) {
  .ib { width: 38px; height: 38px; }
  .top { gap: 6px; padding-left: var(--s3); padding-right: var(--s3); }
  .tt b { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* "Notifications" beside five buttons */
}

/* ---- rail ---- */
.newtab { width: 100%; text-align: left; padding: 10px var(--s3); border-radius: 10px; border: 0; background: var(--bg-2);
  font-weight: 700; font-size: 14px; margin-bottom: var(--s3); }
.rh { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; color: var(--ink-3); text-transform: uppercase;
  margin: var(--s4) 6px 6px; display: flex; gap: var(--s2); align-items: center; }
.rnote { font-size: var(--t5); color: var(--ink-3); padding: 2px var(--s2) var(--s2); }
.prow { display: flex; align-items: center; gap: 10px; padding: var(--s2) 10px; border-radius: 9px; font-size: 14.5px;
  font-weight: 500; border: 0; background: none; width: 100%; text-align: left; min-height: 40px; }
.prow:hover { background: var(--bg-2); }
.prow.on { background: var(--bg-2); font-weight: 700; }
.prow span { flex: 1; }
.prow em, .cnt { font-style: normal; font-size: 12px; background: var(--bg-3); color: var(--ink-2); padding: 1px var(--s2);
  border-radius: var(--pill); font-weight: 600; }

/* ---- cards, sections, rows ---- */
.card { background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r3); padding: var(--s4); }
:root[data-theme="light"] .card { box-shadow: var(--shadow); }
.card.flat { padding: 0; }
.lab { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase;
  background: var(--bg-3); padding: 3px var(--s2); border-radius: 6px; }
.muted { color: var(--ink-3); font-size: var(--t5); }
.inboxline { display: block; margin: var(--s2) 0; }
.dayline { display: flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: var(--t3); flex-wrap: wrap; }
.dayline .lq { flex: 1; min-width: 80px; height: 6px; border-radius: 3px; background: var(--line-1); overflow: hidden; }
.dayline .lq i { display: block; height: 100%; background: var(--lq); transition: width var(--slow) var(--ease); }
.dayline .pct { font-size: var(--t5); color: var(--ink-3); font-weight: 600; }
.dayline .nav { display: flex; gap: var(--s1); }
.dayline .nav button { border: 1px solid var(--line-1); background: var(--bg-2); border-radius: var(--r1);
  min-width: 36px; min-height: 36px; color: var(--ink-2); }
.daynote { font-size: 14px; color: var(--warm); font-weight: 600; }
.daynote button { margin-left: var(--s2); }

.where { display: inline-flex; flex-wrap: wrap; background: var(--bg-3); border-radius: var(--pill); padding: 3px; gap: 2px; max-width: 100%; }
.where button { border: 1px solid transparent; background: none; padding: 6px 13px; border-radius: var(--pill); font-size: 14px;
  font-weight: 600; color: var(--ink-2); min-height: 36px; }
.where button.on { background: var(--accent); color: var(--accent-ink); }
.where button.guess { background: none; border-color: var(--warm); color: var(--warm); font-style: italic; }
.wsub { font-size: var(--t5); color: var(--ink-3); font-style: italic; margin-top: var(--s1); }
.gmhead { display: flex; align-items: center; gap: 10px; margin: var(--s4) 0 var(--s2); flex-wrap: wrap; }
.slot { font-size: var(--t5); color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r2);
  padding: var(--s2) var(--s3); margin-top: var(--s3); }

.room .r1 { display: flex; align-items: baseline; gap: var(--s2); font-size: var(--t4); flex-wrap: wrap; }
.room .r1 b { font-size: var(--t3); }
.room .sub { font-size: var(--t5); color: var(--ink-3); margin-top: var(--s1); }

.sec { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t3); margin: var(--s2) 2px 0;
  padding-top: var(--s2); border-top: 1px solid var(--line-1); }
.sec .g { width: 22px; text-align: center; }
.sec .sp, .fold .sp { flex: 1; }
.sec .extra { font-size: var(--t5); color: var(--ink-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arr { border: 1px solid var(--line-1); background: var(--bg-2); border-radius: var(--r1); font-size: var(--t5);
  font-weight: 700; color: var(--ink-2); padding: 0 10px; min-height: 32px; }
.arr.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.fold { display: flex; align-items: center; gap: 10px; padding: var(--s3) var(--s4); font-weight: 700; font-size: var(--t4);
  width: 100%; border: 0; background: none; text-align: left; min-height: var(--hit); }
.fold .g { width: 22px; text-align: center; }

.list { display: flex; flex-direction: column; }
.row { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-top: 1px solid var(--line-1);
  position: relative; transition: opacity var(--fast); }
.list > .item:first-child .row { border-top: 0; }
.cb { width: var(--hit); height: var(--hit); margin: -10px -10px -10px -10px; flex: none; border: 0; background: none;
  display: grid; place-items: center; padding: 0; touch-action: manipulation; }
.cb span { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; }
.cb.on span { background: var(--ok); border-color: var(--ok); color: var(--bg-0); }
.cb svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.cb.none { visibility: hidden; }
.tx { flex: 1; min-width: 0; font-size: var(--t4); line-height: 1.35; -webkit-user-select: text; user-select: text; }
.tx .t { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.tx .m { font-size: var(--t5); color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tx .m .clk { color: var(--warm); font-weight: 700; }
.tx .links { display: flex; gap: var(--s2); flex-wrap: wrap; font-size: var(--t5); margin-top: 2px; }
.sz { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--bg-3); padding: 2px var(--s2); border-radius: var(--pill);
  flex: none; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sz.iris { font-weight: 600; color: var(--ink-3); }
.chev { border: 0; background: none; color: var(--ink-3); width: var(--hit); height: var(--hit); margin: -10px -10px -10px 0;
  display: grid; place-items: center; padding: 0; flex: none; }
.chev svg.i { transition: transform var(--fast); }
.chev.open svg.i { transform: rotate(90deg); }
.grip { display: none; border: 0; background: none; color: var(--ink-3); width: 32px; height: var(--hit); margin: -10px 0 -10px -8px;
  touch-action: none; cursor: grab; font-size: 18px; padding: 0; flex: none; }
.arranging .grip { display: grid; place-items: center; }
.row.ticked .t, .row.sunk .t { color: var(--ink-3); text-decoration: line-through; }
.row.cancelled .t { color: var(--ink-3); font-style: italic; text-decoration: line-through; text-decoration-color: var(--warm); }
.row.delegated .t { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent); }
.row.pending { opacity: .62; }
.row.pending::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%;
  background-repeat: no-repeat; animation: slide 1.1s linear infinite; }
@keyframes slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.row.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.row.dragging { opacity: .4; }
.hold { display: flex; align-items: center; gap: var(--s2); font-size: var(--t5); color: var(--ok); font-weight: 700; margin-top: var(--s1); }
.hold button, .linkbtn { border: 0; background: none; color: var(--accent); font-weight: 700; padding: var(--s1) var(--s2); min-height: 32px; font-size: var(--t5); }
.wait { font-size: var(--t5); color: var(--info); margin-top: var(--s1); font-weight: 600; }
.note { font-size: var(--t5); color: var(--bad); margin-top: var(--s1); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--s2); border-radius: var(--pill); border: 1px solid var(--line-1);
  background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chip.warm { color: var(--warm); border-color: var(--warm); background: var(--warm-dim); }
.chip.acc { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* the dropdown: the whole body, one tap, no second fold (B90, T1-082) */
.dd { display: none; padding: 0 var(--s4) var(--s3) calc(var(--s4) + 36px); }
.item.open .dd { display: block; }
.body { font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: var(--s1); -webkit-user-select: text; user-select: text; }
.body .ln { overflow-wrap: anywhere; }
.body .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s1); }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: var(--r1); padding: 6px var(--s2); margin: 2px 0; }
.cmd code { flex: 1 1 100%; font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink-1); overflow-wrap: anywhere; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg-3); padding: 1px 5px; border-radius: 5px; }
a.path { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.btn { border: 1px solid var(--line-2); background: var(--bg-2); padding: var(--s2) var(--s4); border-radius: 10px; font-size: 14px;
  font-weight: 600; min-height: 40px; color: var(--ink-1); }
.btn.p { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.s { padding: 6px var(--s3); min-height: 36px; font-size: var(--t5); }
.btn:disabled { opacity: .5; }
.why { margin-top: var(--s2); display: flex; flex-direction: column; gap: var(--s2); }
.why label { font-size: var(--t5); color: var(--ink-3); font-weight: 600; }
.field { width: 100%; border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-1);
  font-size: 16px; line-height: 1.45; font-family: inherit; padding: 10px var(--s3); resize: vertical; }
textarea.field { min-height: 72px; }

.one { display: flex; gap: var(--s3); align-items: flex-start; }
.one .tx .t { font-size: var(--t2); line-height: 1.25; letter-spacing: -.005em; font-weight: 700; }
.one-empty { display: flex; flex-direction: column; gap: var(--s2); }
.onecard > .item > .row { border-top: 0; padding-left: 0; padding-right: 0; }
.onecard > .item > .row .tx .t { font-size: var(--t3); font-weight: 700; line-height: 1.3; }
.onecard > .item > .dd { padding-left: 36px; padding-right: 0; }

.coming .dayh { font-size: var(--t5); font-weight: 700; color: var(--ink-3); padding: var(--s2) var(--s4) 0; }
.stub { display: flex; flex-direction: column; gap: var(--s3); }
.stub h2 { margin: 0; font-size: var(--t2); }
.stub p { margin: 0; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r2); padding: var(--s3); text-align: left;
  display: flex; flex-direction: column; gap: 2px; min-height: 72px; }
.tile b { font-size: var(--t4); }
.tile small { color: var(--ink-3); font-size: var(--t5); }

/* the loading bar: yellow hatched with its word and age, never a spinner (K9.B125, K9.B98) */
.loading { border-radius: var(--r2); padding: var(--s3) var(--s4); font-size: 14px; font-weight: 600; color: var(--warm);
  background: repeating-linear-gradient(135deg, var(--hatch) 0 8px, transparent 8px 16px), var(--warm-dim); }

/* sign-in */
.signin { display: flex; flex-direction: column; gap: var(--s3); max-width: 420px; margin: var(--s6) auto; }
.signin h2 { margin: 0; font-size: var(--t2); }

/* sheets, dim, toasts: one overlay order (K9.B63): toast over sheet over dim over the page */
.dim { position: fixed; inset: 0; background: var(--dim); z-index: 40; opacity: 0; pointer-events: none; transition: opacity var(--fast); }
.dim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg-1); border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line-1); max-height: 80vh; max-height: calc(80dvh - var(--kb)); bottom: var(--kb); overflow: auto;
  padding: var(--s2) var(--s4) calc(var(--s4) + var(--safe-b)); transform: translateY(105%);
  transition: transform var(--slow) var(--ease); visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto var(--s3); }
.sheet h3 { margin: 0 calc(-1 * var(--s4)) var(--s3); padding: var(--s2) var(--s4); font-size: var(--t3); position: sticky;
  top: calc(-1 * var(--s2)); background: var(--bg-1); border-bottom: 1px solid var(--line-1); z-index: 1; }
@media (min-width: 1000px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: var(--r3);
    transform: translate(-50%, -46%); opacity: 0; transition: opacity var(--fast), transform var(--fast); border: 1px solid var(--line-1); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
}
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--s4) + var(--safe-b) + var(--kb));
  z-index: 60; display: flex; flex-direction: column; gap: var(--s2); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
@media (min-width: 1000px) { .toasts { bottom: var(--s5); } }
.toast { background: var(--toast-bg); color: var(--toast-ink); padding: 10px var(--s4); border-radius: var(--r2); font-size: 14px;
  font-weight: 600; box-shadow: var(--shadow); pointer-events: auto; border-left: 5px solid var(--info); animation: tin var(--fast); }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warm); }
.toast.bad { border-left-color: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px var(--s3); border-radius: var(--r1); font-size: 14px; font-weight: 700; color: var(--ink-2); min-height: 36px; }
.seg button.on { background: var(--bg-1); color: var(--ink-1); box-shadow: var(--shadow); }
.more-list { display: flex; flex-direction: column; gap: var(--s2); }
.more-list .btn { text-align: left; }
.build { font-size: 12px; color: var(--ink-3); line-height: 1.6; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
