/* Signal's full app. One near-black window, one inset panel, a quiet sidebar, tight rows, one accent.
   The accent (orange) means one thing: this is waiting on you. Everything else is three greys. */

@font-face { font-family: "Inter"; src: url("../vendor/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090A; --panel: #0F1011; --panel-2: #141517; --pop: #1B1C1F; --pop-line: #2C2D31;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --hover: rgba(255,255,255,.045); --active: rgba(255,255,255,.085); --pill: rgba(255,255,255,.065);
  --fg: #EEEFF1; --fg-2: #C6C8CE; --mut: #8A8F98; --dim: #5F636B;
  --accent: #FF6A35; --accent-hi: #FF7E4F; --on-accent: #fff; --accent-soft: rgba(255,106,53,.14);
  --st-backlog: #8A8F98; --st-todo: #D0D2D8; --st-progress: #F0BF00; --st-review: #4CB782; --st-done: #7C83E8; --st-off: #8A8F98;
  --ok: #4CB782; --bad: #EB5757; --warn: #F0BF00;
  --shadow: 0 8px 30px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --side: 244px;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #F1F2F5; --panel: #FFFFFF; --panel-2: #F8F8FA; --pop: #FFFFFF; --pop-line: #E1E2E6;
  --line: rgba(0,0,0,.075); --line-2: rgba(0,0,0,.13);
  --hover: rgba(0,0,0,.04); --active: rgba(0,0,0,.07); --pill: rgba(0,0,0,.05);
  --fg: #1B1C1F; --fg-2: #3A3D44; --mut: #6B6F76; --dim: #A0A4AB;
  --accent: #E8501C; --accent-hi: #D94716; --accent-soft: rgba(232,80,28,.1);
  --st-todo: #6B6F76; --st-progress: #D9A200; --st-done: #5E66D6;
  --shadow: 0 8px 30px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
} }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F1F2F5; --panel: #FFFFFF; --panel-2: #F8F8FA; --pop: #FFFFFF; --pop-line: #E1E2E6;
  --line: rgba(0,0,0,.075); --line-2: rgba(0,0,0,.13);
  --hover: rgba(0,0,0,.04); --active: rgba(0,0,0,.07); --pill: rgba(0,0,0,.05);
  --fg: #1B1C1F; --fg-2: #3A3D44; --mut: #6B6F76; --dim: #A0A4AB;
  --accent: #E8501C; --accent-hi: #D94716; --accent-soft: rgba(232,80,28,.1);
  --st-todo: #6B6F76; --st-progress: #D9A200; --st-done: #5E66D6;
  --shadow: 0 8px 30px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 450 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv01", "ss03"; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .pop-list:focus-visible { outline: none; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
svg.i { width: 16px; height: 16px; flex: none; display: block; }
.grow { flex: 1; min-width: 0; } .mut { color: var(--mut); } .dim { color: var(--dim); } .nowrap { white-space: nowrap; }
.cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mono { font-family: var(--mono); font-size: 12px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { display: flex; flex-direction: column; min-width: 0; padding: 8px 0 8px; user-select: none; }
/* Inside Signal's own window the page reaches the top edge: leave room for the window buttons, and let the bare parts drag the window. */
.desk .side { padding-top: 44px; -webkit-app-region: drag; } .desk .side a, .desk .side button, .desk .nav { -webkit-app-region: no-drag; }
.desk .head { -webkit-app-region: drag; } .desk .head a, .desk .head button, .desk .head input, .desk .head .crumb { -webkit-app-region: no-drag; }
.side-top { display: flex; align-items: center; gap: 4px; height: 28px; margin: 0 12px 10px; }
.ws { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 5px; border-radius: 6px; font-weight: 590; min-width: 0; }
.ws:hover { background: var(--hover); }
.ws-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--fg); display: grid; place-items: center; flex: none; }
.ws-mark i { display: block; width: 3px; height: 7px; border-radius: 1.5px; background: var(--bg); margin: 0 1.25px; }
.ws-mark span { display: flex; }
.ib { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--mut); flex: none; }
.ib:hover { background: var(--hover); color: var(--fg); } .ib.on { background: var(--active); color: var(--fg); }
.ib.ring { border-radius: 50%; background: var(--pill); color: var(--fg); } .ib.ring:hover { background: var(--active); }
.nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px; }
.nav-row { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 9px; margin-bottom: 1px; border-radius: 6px; color: var(--fg-2); font-weight: 510; width: 100%; text-align: left; }
.nav-row:hover { background: var(--hover); color: var(--fg); } .nav-row.on { background: var(--active); color: var(--fg); }
.nav-row svg.i { color: var(--mut); } .nav-row.on svg.i, .nav-row:hover svg.i { color: var(--fg-2); }
.nav-row.sub { padding-left: 26px; }
.nav-row .ct { margin-left: auto; font-size: 11.5px; color: var(--mut); font-weight: 510; min-width: 18px; text-align: center; padding: 0 5px; border-radius: 5px; }
.nav-row .ct.hot { color: var(--accent); }
.nav-h { display: flex; align-items: center; gap: 4px; height: 28px; margin-top: 14px; padding: 0 9px; color: var(--mut); font-size: 12px; font-weight: 510; width: 100%; text-align: left; border-radius: 6px; }
.nav-h:hover { color: var(--fg-2); } .nav-h svg { width: 10px; height: 10px; transition: transform .12s; } .nav-h.shut svg { transform: rotate(-90deg); }
.dot8 { width: 8px; height: 8px; border-radius: 3px; flex: none; margin: 0 4px; }
.side-foot { padding: 6px 12px 0; display: flex; align-items: center; gap: 4px; }
.main { margin: 8px 8px 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.head { height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.head h1 { font-size: 13px; font-weight: 510; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head .crumb { color: var(--mut); display: flex; align-items: center; gap: 6px; min-width: 0; } .head .crumb b { color: var(--fg); font-weight: 510; }
.head .sep { color: var(--dim); }
.bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 12px; min-width: 0; }
.tab { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line-2); color: var(--mut); font-size: 12px; font-weight: 510; white-space: nowrap; }
.tab:hover { color: var(--fg); background: var(--hover); } .tab.on { color: var(--fg); background: var(--active); border-color: transparent; }
.body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.labs { display: flex; gap: 4px; min-width: 0; }
.menu-btn { display: none; }

/* ---------- buttons, pills, keys ---------- */
.btn { height: 28px; padding: 0 11px; border-radius: 14px; background: var(--pill); color: var(--fg); font-weight: 510; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid transparent; }
.btn:hover { background: var(--active); } .btn:disabled { opacity: .5; cursor: default; }
.btn.pri { background: var(--accent); color: var(--on-accent); } .btn.pri:hover { background: var(--accent-hi); }
.btn.line { background: none; border-color: var(--line-2); } .btn.line:hover { background: var(--hover); }
.btn.ghost { background: none; color: var(--mut); } .btn.ghost:hover { background: var(--hover); color: var(--fg); }
.btn.sm { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 12px; }
.btn.danger { color: var(--bad); }
.pill { height: 24px; padding: 0 9px 0 7px; border-radius: 12px; background: var(--pill); color: var(--fg-2); font-size: 12px; font-weight: 510; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 220px; }
.pill:hover { background: var(--active); color: var(--fg); } .pill.unset { color: var(--mut); } .pill .cut { max-width: 150px; }
.pill.line { background: none; border: 1px solid var(--line-2); }
kbd { font: 510 10.5px var(--font); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; display: inline-grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; opacity: .85; }
.kbds { display: inline-flex; gap: 3px; align-items: center; } .kbds em { font-style: normal; font-size: 10.5px; opacity: .7; }
.lab { height: 22px; padding: 0 8px 0 7px; border-radius: 11px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-2); white-space: nowrap; max-width: 130px; }
.lab i { width: 8px; height: 8px; border-radius: 50%; flex: none; } .lab span { overflow: hidden; text-overflow: ellipsis; }
.av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 650; color: #fff; flex: none; letter-spacing: -.02em; }
.av.lg { width: 22px; height: 22px; font-size: 10px; } .av.none { background: none; border: 1px dashed var(--dim); color: var(--dim); }
.toggle { width: 26px; height: 15px; border-radius: 8px; background: var(--line-2); position: relative; flex: none; transition: background .12s; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .12s; }
.toggle.on { background: var(--accent); } .toggle.on::after { transform: translateX(11px); }

/* ---------- lists ---------- */
.group { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 18px; background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; font-weight: 510; }
.group:first-child { border-top: 0; } .group .n { color: var(--mut); font-weight: 450; } .group .add { margin-left: auto; opacity: 0; } .group:hover .add { opacity: 1; }
.irow { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 18px; border-bottom: 1px solid transparent; cursor: default; position: relative; min-width: 0; }
.irow:hover { background: var(--hover); } .irow.cur { background: var(--active); } .irow.cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.irow .key { color: var(--mut); width: 58px; flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.irow .t { font-weight: 510; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 40px; }
.irow.closed .t { color: var(--mut); }
.irow .sub { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 5; min-width: 0; font-size: 12.5px; }
.irow .meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; padding-left: 8px; color: var(--mut); font-size: 12px; min-width: 0; }
.irow .hit { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; flex: none; } .irow .hit:hover { background: var(--active); }
.irow .due.late { color: var(--bad); }
.irow .chk { position: absolute; left: 3px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; border: 1px solid var(--dim); background: var(--panel); display: grid; place-items: center; opacity: 0; color: var(--on-accent); }
.irow:hover .chk, .irow .chk.on, .irow .chk:focus-visible { opacity: 1; } .irow .chk.on { background: var(--accent); border-color: var(--accent); }
.irow.sel, .irow.sel:hover { background: var(--accent-soft); } .irow.sel.cur::before { display: none; }
.selbar { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 2px; padding: 5px 5px 5px 14px; background: var(--pop); border: 1px solid var(--pop-line); border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100% - 16px); }
.selbar b { font-weight: 510; white-space: nowrap; margin-right: 4px; } .selbar > i { width: 1px; height: 18px; background: var(--pop-line); margin: 0 4px; flex: none; }
.selbar .btn { color: var(--fg-2); padding: 0 8px; }
.need { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.empty { height: 100%; min-height: 280px; display: grid; place-items: center; padding: 30px; }
.empty > div { max-width: 340px; display: grid; gap: 10px; justify-items: start; }
.empty .art { color: var(--dim); margin-bottom: 4px; } .empty .art svg { width: 56px; height: 56px; stroke-width: 1; }
.empty h2 { margin: 0; font-size: 15px; font-weight: 590; } .empty p { margin: 0; color: var(--mut); }
.empty .acts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.empty.center > div { justify-items: center; text-align: center; }

/* two-line rows (Triage, Review) */
.split { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); flex: 1; min-height: 0; }
.split > .col { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .split > .col + .col { border-left: 1px solid var(--line); }
.trow { padding: 9px 14px 9px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; border-bottom: 1px solid var(--line); cursor: default; position: relative; }
.trow:hover { background: var(--hover); } .trow.cur { background: var(--active); }
.trow .l1 { display: flex; gap: 10px; align-items: baseline; } .trow .l1 b { font-weight: 510; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .l1 span { color: var(--mut); font-size: 12.5px; flex: none; font-variant-numeric: tabular-nums; }
.trow .l2 { display: flex; gap: 6px; align-items: center; color: var(--mut); font-size: 12.5px; min-width: 0; } .trow .l2 .r { margin-left: auto; display: flex; gap: 6px; align-items: center; flex: none; }

/* ---------- the item page ---------- */
.issue { display: grid; grid-template-columns: minmax(0, 1fr) 272px; flex: 1; min-height: 0; }
.issue.solo { grid-template-columns: minmax(0, 1fr); }
.issue-main { min-width: 0; overflow-y: auto; padding: 28px 36px 60px; }
.issue-in { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.title-in { width: 100%; background: none; border: 0; font-size: 22px; font-weight: 590; letter-spacing: -.012em; line-height: 1.3; resize: none; padding: 0; overflow: hidden; display: block; }
.title-in::placeholder, .desc-in::placeholder { color: var(--dim); }
.desc { min-height: 28px; color: var(--fg-2); font-size: 14px; line-height: 1.6; cursor: text; border-radius: 6px; }
.desc.none { color: var(--dim); }
.desc-in { width: 100%; background: none; border: 0; font-size: 14px; line-height: 1.6; resize: none; padding: 0; display: block; min-height: 90px; color: var(--fg-2); }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote { margin: 0 0 10px; } .md ul, .md ol { padding-left: 22px; } .md li { margin: 2px 0; }
.md h1, .md h2, .md h3 { margin: 18px 0 8px; font-weight: 590; line-height: 1.3; } .md h1 { font-size: 18px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; }
.md code { font-family: var(--mono); font-size: 12px; background: var(--pill); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; } .md pre code { background: none; padding: 0; }
.md a { color: var(--accent); } .md a:hover { text-decoration: underline; } .md blockquote { border-left: 2px solid var(--line-2); padding-left: 12px; color: var(--mut); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; } .md input[type=checkbox] { margin-right: 6px; accent-color: var(--accent); }
.why { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; color: var(--fg-2); background: var(--panel-2); }
.why b { font-weight: 510; color: var(--fg); display: flex; gap: 8px; align-items: center; } .why div { color: var(--mut); }
.sec-h { display: flex; align-items: center; gap: 8px; font-weight: 590; margin-top: 12px; } .sec-h .n { color: var(--mut); font-weight: 450; }
.subs { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .subs .irow { height: 36px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); } .subs .irow:last-child { border-bottom: 0; }
.add-line { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; color: var(--mut); width: 100%; } .add-line input { flex: 1; background: none; border: 0; min-width: 0; }
.feed { display: grid; gap: 0; position: relative; }
.ev { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--mut); font-size: 12.5px; position: relative; }
.ev .gut { width: 18px; display: grid; place-items: center; flex: none; height: 19px; color: var(--mut); position: relative; z-index: 1; background: var(--panel); }
.ev b { color: var(--fg-2); font-weight: 510; } .ev .when { color: var(--dim); }
.feed::before { content: ""; position: absolute; left: 8.5px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.cmt { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); padding: 10px 12px; margin: 6px 0; display: grid; gap: 6px; position: relative; z-index: 1; }
.cmt .who { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--mut); } .cmt .who b { color: var(--fg); font-weight: 510; }
.cmt .md { color: var(--fg-2); font-size: 13.5px; line-height: 1.55; }
.cmt.job { background: none; } .cmt.job .md { font-size: 13px; }
.say { border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); padding: 10px 10px 8px 12px; display: grid; gap: 6px; margin-top: 6px; }
.say:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); }
.say textarea { background: none; border: 0; resize: none; width: 100%; min-height: 38px; padding: 0; line-height: 1.5; font-size: 13.5px; }
.say .row { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.props { border-left: 1px solid var(--line); padding: 16px 12px 30px; overflow-y: auto; min-width: 0; display: grid; gap: 2px; align-content: start; }
.props h3 { margin: 0 0 4px 8px; font-size: 12px; font-weight: 510; color: var(--mut); }
.prop { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; width: 100%; text-align: left; color: var(--fg-2); font-weight: 510; min-width: 0; }
.prop:hover { background: var(--hover); color: var(--fg); } .prop.unset { color: var(--mut); font-weight: 450; }
.prop-wrap { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 8px 6px; }
.props hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; width: 100%; }
.props .fact { display: flex; justify-content: space-between; gap: 10px; padding: 3px 8px; color: var(--mut); font-size: 12px; } .props .fact span:last-child { color: var(--fg-2); text-align: right; }
.strip { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); flex: none; min-width: 0; overflow: hidden; }
.strip .pill { min-width: 0; flex-shrink: 1; } .strip .pill:first-child { flex-shrink: 0; } .strip .ib { flex: none; }
.answers { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); flex: none; flex-wrap: wrap; background: var(--panel); container-type: inline-size; }
.ship-note { flex-basis: 100%; color: var(--fg-2); padding: 0 2px 4px; min-width: 0; overflow-wrap: anywhere; } .ship-note b { font-weight: 510; color: var(--bad); }
@container (max-width: 660px) { .answers .kbds { display: none; } }

/* ---------- overlays ---------- */
.veil { position: fixed; inset: 0; z-index: 50; } .veil.dim { background: rgba(0,0,0,.42); }
.pop { position: fixed; z-index: 60; min-width: 206px; max-width: 320px; background: var(--pop); border: 1px solid var(--pop-line); border-radius: 9px; box-shadow: var(--shadow); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(420px, calc(100vh - 24px)); }
.pop-q { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--pop-line); flex: none; }
.pop-q input { flex: 1; min-width: 0; background: none; border: 0; } .pop-q input::placeholder { color: var(--mut); }
.pop-list { padding: 5px; overflow-y: auto; }
.opt { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: 6px; width: 100%; text-align: left; color: var(--fg-2); font-weight: 510; min-width: 0; }
.opt.cur { background: var(--active); color: var(--fg); } .opt .tail { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--mut); font-size: 12px; flex: none; }
.opt.danger { color: var(--bad); } .opt-h { padding: 8px 8px 4px; font-size: 11.5px; color: var(--mut); font-weight: 510; }
.opt-sep { height: 1px; background: var(--pop-line); margin: 5px -5px; }
.modal { position: fixed; z-index: 55; left: 50%; top: 16vh; transform: translateX(-50%); width: min(750px, calc(100vw - 24px)); color: var(--fg); background: var(--pop); border: 1px solid var(--pop-line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 76vh; }
.modal-h { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px 14px; } .modal-h .x { margin-left: auto; display: flex; gap: 2px; }
.chip { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--pill); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 510; color: var(--fg-2); max-width: 200px; } .chip:hover { background: var(--active); }
.modal-b { padding: 6px 18px 4px; display: grid; gap: 6px; overflow-y: auto; }
.modal-b .t { font-size: 18px; font-weight: 590; background: none; border: 0; width: 100%; padding: 0; } .modal-b .t::placeholder, .modal-b .d::placeholder { color: var(--dim); }
.modal-b .d { background: none; border: 0; width: 100%; padding: 0; resize: none; min-height: 68px; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.modal-p { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px 12px; }
.modal-f { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--pop-line); } .modal-f .r { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 12.5px; }
.cmd { top: 14vh; width: min(640px, calc(100vw - 24px)); }
.cmd-q { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border-bottom: 1px solid var(--pop-line); flex: none; }
.cmd-q input { flex: 1; background: none; border: 0; font-size: 15px; min-width: 0; } .cmd-q input::placeholder { color: var(--mut); }
.cmd .pop-list { max-height: 52vh; padding: 6px; } .cmd .opt { height: 36px; padding: 0 10px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--pop); border: 1px solid var(--pop-line); border-radius: 9px; box-shadow: var(--shadow); padding: 8px 10px 8px 14px; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 24px); }
.toast button { color: var(--accent); font-weight: 510; }
.tip { position: fixed; z-index: 80; background: var(--pop); border: 1px solid var(--pop-line); border-radius: 6px; padding: 4px 8px; font-size: 12px; box-shadow: var(--shadow); pointer-events: none; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.date-pop { padding: 10px; gap: 8px; width: 230px; } .date-pop input { background: var(--pill); border: 1px solid var(--pop-line); border-radius: 6px; padding: 6px 8px; width: 100%; color-scheme: inherit; }

/* ---------- board ---------- */
.board { display: flex; gap: 10px; padding: 12px; height: 100%; overflow-x: auto; align-items: flex-start; }
.bcol { width: 300px; flex: none; display: flex; flex-direction: column; max-height: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.bcol.over { border-color: var(--accent); }
.bcol-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; font-weight: 510; flex: none; } .bcol-h .n { color: var(--mut); font-weight: 450; }
.bcol-b { overflow-y: auto; padding: 0 8px 8px; display: grid; gap: 6px; min-height: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: grid; gap: 7px; cursor: default; }
.card:hover { border-color: var(--line-2); } .card.cur { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card .c1 { display: flex; justify-content: space-between; color: var(--mut); font-size: 12px; align-items: center; } .card .c2 { font-weight: 510; display: flex; gap: 7px; align-items: flex-start; }
.card .c2 svg { margin-top: 1.5px; } .card .c3 { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

/* ---------- dashboard, projects, notes, settings ---------- */
.page { padding: 22px 28px 60px; max-width: 980px; display: grid; gap: 24px; }
.page.narrow { max-width: 720px; margin: 0 auto; }
.sec { display: grid; gap: 8px; } .sec > h2 { margin: 0; font-size: 13px; font-weight: 590; display: flex; gap: 8px; align-items: center; } .sec > h2 .n { color: var(--mut); font-weight: 450; }
.sec > p { margin: 0; color: var(--mut); }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); overflow: hidden; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--line); min-width: 0; } .prow:first-child { border-top: 0; }
.prow.link:hover { background: var(--hover); cursor: default; }
.prow .two { min-width: 0; flex: 1; display: grid; gap: 1px; } .prow .two b { font-weight: 510; } .prow .two span { color: var(--mut); font-size: 12.5px; }
.prow .acts { display: flex; gap: 6px; align-items: center; flex: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.stat .v { font-size: 22px; font-weight: 590; letter-spacing: -.02em; } .stat .l { font-weight: 510; } .stat .s { color: var(--mut); font-size: 12.5px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--st-progress); animation: turn .9s linear infinite; flex: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.meter { height: 6px; border-radius: 3px; background: var(--pill); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--fg-2); border-radius: 3px; } .meter i.hot { background: var(--bad); }
.prog { width: 64px; height: 4px; border-radius: 2px; background: var(--pill); overflow: hidden; flex: none; } .prog i { display: block; height: 100%; background: var(--st-review); }
.ptable { min-width: 0; } .pt-h, .pt-r { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(150px, 1fr) 64px 84px minmax(170px, 1fr) 84px; align-items: center; gap: 12px; padding: 0 18px; min-width: 0; }
.pt-h { height: 34px; color: var(--mut); font-size: 12px; font-weight: 510; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.pt-r { height: 46px; border-bottom: 1px solid var(--line); cursor: default; } .pt-r:hover { background: var(--hover); }
.pt-r > *, .pt-h > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pt-r .num, .pt-h .num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-r .nm { display: flex; align-items: center; gap: 10px; } .pt-r .nm b { font-weight: 510; } .pt-r .nm .mut { font-size: 12px; } .pt-r .nm .mark { width: 22px; height: 22px; border-radius: 6px; font-size: 9.5px; }
.pt-r .rd { display: flex; align-items: center; gap: 7px; } .pt-r .rd .mut { font-size: 12px; } .dim { color: var(--dim); }
.health { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); white-space: nowrap; } .health i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ring { flex: none; }
.overview { max-width: 900px; } .ov-top { display: flex; gap: 14px; align-items: flex-start; } .ov-top .mark { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; margin-top: 2px; }
.ov-top h1 { margin: 0; font-size: 22px; font-weight: 590; letter-spacing: -.01em; line-height: 1.25; }
.ov-props { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--fg-2); } .ov-props > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.panel.rows .irow { border-top: 1px solid var(--line); padding-left: 14px; } .panel.rows .irow:first-child { border-top: 0; } .panel.rows .irow .chk { display: none; }
.mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 650; font-size: 11px; color: #fff; flex: none; }
.note-ed { max-width: 760px; margin: 0 auto; padding: 30px 36px 80px; display: grid; gap: 12px; }
.note-ed .t { font-size: 26px; font-weight: 650; letter-spacing: -.02em; background: none; border: 0; width: 100%; padding: 0; }
.note-ed textarea { background: none; border: 0; width: 100%; resize: none; font-size: 14.5px; line-height: 1.65; min-height: 50vh; padding: 0; color: var(--fg-2); }
.note-ed .md { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); min-height: 40vh; cursor: text; }
.field { display: grid; gap: 6px; } .field label { font-weight: 510; } .field .hint { color: var(--mut); font-size: 12.5px; }
.inp { height: 32px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 10px; min-width: 0; } .inp:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }
select.inp { padding-right: 6px; }
.login { height: 100vh; display: grid; place-items: center; } .login form { width: min(320px, 90vw); display: grid; gap: 12px; }
.ok { color: var(--ok); font-weight: 510; } .bad { color: var(--bad); }
.set-shell .nav-row.back { color: var(--mut); margin-bottom: 8px; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .pt-h, .pt-r { grid-template-columns: minmax(0, 1fr) auto 44px; padding: 0 12px; } .pt-h .hide-s, .pt-r .hide-s { display: none; } .ov-top h1 { font-size: 19px; }
  .selbar { bottom: 52px; padding-left: 10px; } .selbar .btn span { display: none; } .selbar .btn { padding: 0 6px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; background: var(--bg); z-index: 40; transform: translateX(-102%); transition: transform .16s ease; border-right: 1px solid var(--line); }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow); }
  .scrim { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.4); }
  .main { margin: 0; border-radius: 0; border: 0; } .menu-btn { display: grid; } .head { padding-left: 8px; }
  .issue { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } .issue-main { overflow: visible; padding: 18px 16px 24px; } .props { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .split { grid-template-columns: minmax(0, 1fr); } .split > .col.detail { display: none; } .split.has > .col.list { display: none; } .split.has > .col.detail { display: flex; border-left: 0; }
  .strip { overflow-x: auto; scrollbar-width: none; } .strip .pill { flex-shrink: 0; }
  .irow .key { width: 50px; } .irow .labs, .irow .hide-s { display: none; } .irow { padding: 0 10px 0 12px; } .group { padding-left: 12px; }
  .page { padding: 16px 14px 50px; } .note-ed { padding: 18px 16px 60px; } .modal { top: 6vh; max-height: 86vh; } .bcol { width: 264px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }
