:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#faf9f5;color:#141413}
img{max-width:100%}
[hidden]:not([hidden=until-found i]){display:none!important}

:root {
  --ground: #F4F3EF; --surface: #FFFFFF; --soft: #FBFAF8; --sunk: #F3F1EC;
  --ink: #1E2126; --muted: #5B616B; --faint: #8A9099; --line: #E2E0DA; --line-strong: #D0CCC3;
  --accent: #2B59C3; --accent-ink: #FFFFFF; --accent-soft: #E3EBFB; --accent-wash: #EEF3FD; --drop: #DCE6FA;
  --ok-bg: #DDEFE1; --ok-ink: #1E6B34; --ok-dot: #2F8A4B;
  --low-bg: #FBEFCB; --low-ink: #6E5100; --low-dot: #C99A12;
  --over-bg: #F9DCD7; --over-ink: #A3261B; --over-dot: #C8372A;
  --zero-bg: #EFEDE8; --zero-ink: #6B7079; --zero-dot: #B3B0A8;
  --warn-line: #E3A69C; --warn-bg: #FFF6F4; --warn-ink: #B3261E;
  --closed-bg: #F0EFEC; --closed-ink: #7D828A; --closed-line: #D5D2CB;
  --past: #F4F3F0; --hatch: rgba(30, 33, 38, 0.045);
  --block-bg: #F2EEF9; --block-line: #CBBDE6; --block-ink: #4F3A86;
  --backdrop: rgba(30, 33, 38, 0.55); --shadow: 0 18px 50px rgba(20, 22, 28, 0.28);
  --p1: #C2562F; --p2: #2B59C3; --p3: #3F8A55; --p4: #7A4FB5; --p0: #8A9099;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15171B; --surface: #1D2026; --soft: #191C21; --sunk: #22262D;
    --ink: #E8EAED; --muted: #A2A8B3; --faint: #7F8691; --line: #2E333B; --line-strong: #3B414B;
    --accent: #7FA2F2; --accent-ink: #0F1422; --accent-soft: #1E2A44; --accent-wash: #1A2233; --drop: #24345C;
    --ok-bg: #173623; --ok-ink: #8FD6A4; --ok-dot: #5CC27C; --low-bg: #3A3013; --low-ink: #F0CF6B; --low-dot: #E0B53A;
    --over-bg: #43201C; --over-ink: #F4A197; --over-dot: #F0705F; --zero-bg: #262A31; --zero-ink: #99A0AB; --zero-dot: #5A606A;
    --warn-line: #7A3A33; --warn-bg: #2C1D1C; --warn-ink: #F29A8F;
    --closed-bg: #23262B; --closed-ink: #8A9099; --closed-line: #3A3F47;
    --past: #181A1E; --hatch: rgba(255, 255, 255, 0.035);
    --block-bg: #2A2438; --block-line: #54457A; --block-ink: #C9B8F2;
    --backdrop: rgba(0, 0, 0, 0.6); --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --p1: #E07A52; --p2: #7FA2F2; --p3: #6CBF83; --p4: #B191E3; --p0: #7F8691;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #15171B; --surface: #1D2026; --soft: #191C21; --sunk: #22262D;
  --ink: #E8EAED; --muted: #A2A8B3; --faint: #7F8691; --line: #2E333B; --line-strong: #3B414B;
  --accent: #7FA2F2; --accent-ink: #0F1422; --accent-soft: #1E2A44; --accent-wash: #1A2233; --drop: #24345C;
  --ok-bg: #173623; --ok-ink: #8FD6A4; --ok-dot: #5CC27C; --low-bg: #3A3013; --low-ink: #F0CF6B; --low-dot: #E0B53A;
  --over-bg: #43201C; --over-ink: #F4A197; --over-dot: #F0705F; --zero-bg: #262A31; --zero-ink: #99A0AB; --zero-dot: #5A606A;
  --warn-line: #7A3A33; --warn-bg: #2C1D1C; --warn-ink: #F29A8F;
  --closed-bg: #23262B; --closed-ink: #8A9099; --closed-line: #3A3F47;
  --past: #181A1E; --hatch: rgba(255, 255, 255, 0.035);
  --block-bg: #2A2438; --block-line: #54457A; --block-ink: #C9B8F2;
  --backdrop: rgba(0, 0, 0, 0.6); --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --p1: #E07A52; --p2: #7FA2F2; --p3: #6CBF83; --p4: #B191E3; --p0: #7F8691;
  color-scheme: dark;
}

html, body { height: 100%; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.neg { color: var(--over-ink); }
svg.i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.s { width: 12px; height: 12px; }
.app { display: flex; flex-direction: column; min-height: 100%; }

.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; background: var(--sunk); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo strong { color: var(--ink); font-weight: 600; }
.demo .grow { flex: 1 1 auto; }
.chipbtn { height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font-size: 12px; }
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chipbtn:disabled { opacity: 0.45; cursor: default; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.bar h1 { margin: 0 6px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; background: var(--surface); }
.seg button { height: 32px; padding: 0 14px; border: 0; background: transparent; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { background: var(--over-ink); border-color: var(--over-ink); color: var(--surface); font-weight: 600; }
.btn.add { margin-left: auto; font-weight: 600; }
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.range { display: inline-flex; align-items: center; gap: 6px; }
.range .lbl { min-width: 96px; text-align: center; font-weight: 600; }
.sel { height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); max-width: 190px; }
.check { display: inline-flex; align-items: center; gap: 6px; }
.cbx { position: relative; display: inline-flex; align-items: center; }
.cbx .sel { padding-right: 26px; cursor: pointer; }
.cbxclear { position: absolute; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--sunk); color: var(--muted); font-size: 14px; line-height: 1; }
.cbxclear:hover { background: var(--line-strong); color: var(--ink); }
.cbxlist { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 100%; max-width: 280px; max-height: 240px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.cbxlist li { padding: 6px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.cbxlist li[aria-selected="true"] { font-weight: 600; }
.cbxlist li.on { background: var(--accent-soft); }
.cbxlist li.none { color: var(--muted); cursor: default; }
.save { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; min-width: 76px; }
.save.saving { color: var(--muted); }
.save.saved { color: var(--ok-ink); }

.body { display: flex; flex: 1 1 auto; min-height: 0; }
.panel { width: 300px; flex-shrink: 0; box-sizing: border-box; padding: 12px; background: var(--soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: calc(100vh - 110px); }
.panel.dropping { outline: 2px dashed var(--accent); outline-offset: -5px; background: var(--drop); }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--muted); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.phead { display: flex; align-items: center; gap: 6px; padding-top: 4px; border: 0; background: none; text-align: left; width: 100%; }
.phead h2 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.phead .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.phead.over { color: var(--over-ink); }
.phead.blocks { color: var(--block-ink); }
.card { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: grab; }
.card.over { border-color: var(--warn-line); background: var(--warn-bg); cursor: default; }
.card.blockcard { background: var(--block-bg); border-color: var(--block-line); }
.card.dragging, .chip.dragging { opacity: 0.4; }
.card .top { display: flex; align-items: center; gap: 6px; }
.card .id { font-size: 11px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.card .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--block-ink); }
.card .name { font-weight: 600; }
.card .where { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card .meta { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--muted); }
.card .meta .who { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card .meta strong { color: var(--ink); }
.cut { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: auto; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.cut:hover { background: var(--sunk); color: var(--ink); }
.meter { height: 4px; border-radius: 2px; background: var(--zero-bg); overflow: hidden; margin-top: 2px; }
.meter i { display: block; height: 4px; background: var(--accent); opacity: 0.55; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p0 { background: var(--p0); } .p1 { background: var(--p1); } .p2 { background: var(--p2); } .p3 { background: var(--p3); } .p4 { background: var(--p4); }
.empty { padding: 14px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 8px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }

.gridwrap { flex: 1 1 auto; min-width: 0; padding: 12px 16px; overflow: auto; max-height: calc(100vh - 110px); }
.grid { min-width: max-content; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.row { display: grid; border-top: 1px solid var(--line); }
.row.head { position: sticky; top: 0; z-index: 3; border-top: 0; background: var(--soft); }
.row.proj { background: var(--sunk); border-top-color: var(--line-strong); }
.row.dropzone .rh { color: var(--muted); font-style: italic; }
.rh { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px 8px 12px; position: sticky; left: 0; z-index: 2; background: inherit; }
.row:not(.head):not(.proj) .rh { background: var(--surface); }
.rh.flat { flex-direction: row; align-items: center; gap: 7px; }
.rh.task { padding-left: 32px; }
.rh .title { display: flex; align-items: center; gap: 4px; }
.rh .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.rh .links { display: flex; gap: 8px; font-size: 12px; }
.rh .client { font-weight: 700; }
.rh .stack { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; }
.exp { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--muted); }
.exp:hover { background: var(--line); color: var(--ink); }
.ind { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.ind.ok { background: var(--ok-dot); } .ind.low { background: var(--low-dot); } .ind.over { background: var(--over-dot); } .ind.zero { background: var(--zero-dot); }
.wh { display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; border-left: 1px solid var(--line); }
.wh .l { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.wh .d { font-size: 11px; color: var(--muted); }
.wh .s { font-size: 11px; font-weight: 600; }
.wh.cur { background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.wh.cur .l { color: var(--accent); }
.wh.past { color: var(--faint); background-image: repeating-linear-gradient(135deg, var(--hatch) 0 6px, transparent 6px 12px); }
.wh.hl { background: var(--drop); }
.badge { padding: 1px 5px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.cell { display: flex; flex-direction: column; gap: 5px; min-height: 70px; box-sizing: border-box; padding: 6px; border-left: 1px solid var(--line); }
.cell.cur { background: var(--accent-wash); }
.cell.past { background-color: var(--past); background-image: repeating-linear-gradient(135deg, var(--hatch) 0 6px, transparent 6px 12px); color: var(--faint); }
.cell.flow { min-height: 38px; gap: 4px; align-items: flex-start; }
.cell.sum { min-height: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.cell.hl { outline: 2px dashed var(--accent); outline-offset: -4px; background: var(--drop); }
.loadrow { display: flex; align-items: center; gap: 4px; }
.celladd { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 1px dashed var(--line-strong); border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; }
.celladd:hover { border-color: var(--block-line); color: var(--block-ink); background: var(--block-bg); }
.rowadd { margin-left: auto; padding: 0 6px; height: 20px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 11px; }
.rowadd:hover { border-color: var(--block-line); color: var(--block-ink); background: var(--block-bg); }
.load { align-self: flex-start; padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.load.ok { background: var(--ok-bg); color: var(--ok-ink); } .load.low { background: var(--low-bg); color: var(--low-ink); }
.load.over { background: var(--over-bg); color: var(--over-ink); } .load.zero { background: var(--zero-bg); color: var(--zero-ink); }
.chip { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; box-sizing: border-box; padding: 5px 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; font-size: 12px; cursor: grab; }
.chip.nodrag { cursor: default; }
.chip.over { border-color: var(--warn-line); background: var(--warn-bg); }
.chip.closed { border-style: dashed; border-color: var(--closed-line); background: var(--closed-bg); color: var(--closed-ink); }
.chip.closed .n { text-decoration: line-through; }
.chip.block { border-color: var(--block-line); background: var(--block-bg); background-image: repeating-linear-gradient(135deg, rgba(122, 79, 181, 0.08) 0 5px, transparent 5px 10px); }
.chip.summary { background: var(--sunk); }
.chip .t { display: flex; align-items: center; gap: 5px; }
.chip .h { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip .sub { font-size: 11px; color: var(--muted); }
.chip .id { font-size: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.chip .where { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chip.closed .where, .chip.closed .id { color: var(--closed-ink); }
.chip .w { color: var(--warn-ink); }
.chip.carry { border-color: var(--warn-line); }
.chip.carry .restnote { color: var(--warn-ink); font-size: 11px; font-weight: 600; }
.chip.carry.pill .restnote { margin-left: 2px; }
.chip .btag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--block-ink); }
.past .chip { background-color: var(--surface); }
.chip.pill { flex-direction: row; align-items: center; gap: 5px; width: auto; padding: 2px 8px 2px 3px; border-radius: 12px; }
.ini { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--zero-bg); font-size: 9px; font-weight: 700; }
.ini .ld { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--surface); }
.ld.ok { background: var(--ok-dot); } .ld.low { background: var(--low-dot); } .ld.over { background: var(--over-dot); } .ld.zero { background: var(--zero-dot); }
.chip .ccut { position: absolute; top: 2px; right: 2px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 4px; background: var(--surface); color: var(--muted); opacity: 0; }
.chip:hover .ccut, .chip .ccut:focus-visible { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 2px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }

.backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--backdrop); }
.modal { width: 580px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.modal.wide { width: 720px; }
.modal.narrow { width: 480px; }
.mh { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.mh h2 { margin: 0; font-size: 17px; }
.mh .sub { font-size: 13px; color: var(--muted); }
.mb { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; }
.mb p { margin: 0; line-height: 1.5; }
.mf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.stats { display: flex; gap: 8px; }
.stats div { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; background: var(--sunk); }
.stats b { font-family: var(--mono); font-size: 15px; }
.stats span { font-size: 11px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field > .lab { font-weight: 600; }
.field select, .field input { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.field small { font-size: 12px; color: var(--muted); }
.err { color: var(--over-ink) !important; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 11px; }
.wk b { font-size: 13px; }
.wk .dd { color: var(--muted); }
.wk.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-wash); }
.wk.cur b { color: var(--accent); }
.wkin { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; text-align: center; }
.wkin.pre { border-color: var(--accent); background: var(--accent-wash); }
.wkin.pre b { color: var(--accent); }
.wkin input { height: 28px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); text-align: center; font-family: var(--mono); }
.spread { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 7px; background: var(--sunk); font-size: 12px; }
.spread input, .spread select { height: 30px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.spread input { width: 64px; font-family: var(--mono); }
.brows { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.brow { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.brhead { display: flex; align-items: center; gap: 8px; }
.brhead select { height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); max-width: 220px; }
.brhead .mono { margin-left: auto; }
.log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.log li { display: flex; gap: 8px; padding: 5px 8px; border-radius: 5px; background: var(--sunk); }
.log li .mono { margin-left: auto; }

.toast { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: min(460px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ground); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.toast.bad { background: var(--over-ink); color: #FFFFFF; }

@media (max-width: 760px) {
  .body { flex-direction: column; }
  .panel { width: auto; max-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .gridwrap { max-height: none; padding: 12px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .btn.add { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
