/* Terrace app · obsidian / forest / white, mint only for live signals */
:root {
  --bg: #f3f3f1;
  --surface: #fff;
  --sunk: #f7f7f5;
  --line: #e4e3e0;
  --line-2: #efeeec;
  --ink: #181519;
  --ink-2: #4f4d52;
  --ink-3: #7f7d82;
  --ink-4: #a9a7ab;
  --forest: #1a5543;
  --forest-d: #123d30;
  --forest-h: #22684f;
  --forest-t: #e6eeea;
  --forest-m: #9dbbaf;
  --forest-l: #c9d9d2;
  --mint: #03ff93;
  --side: #181519;
  --warn: #8a6a12;
  --warn-bg: #f3edda;
  --warn-dot: #c9a12f;
  --crit: #a3283b;
  --crit-bg: #f6e3e6;
  --f: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sw: 244px;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13.5px/1.45 var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
svg { width: 18px; height: 18px; flex: none; }
.num, td.n, .tn { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 500 11px/1 var(--f); padding: 3px 5px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-3); background: var(--surface); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.view { flex: 1; overflow: auto; min-height: 0; outline: none; }
.page { padding: 26px 32px 64px; max-width: 1560px; margin: 0 auto; }

/* ---------- sidebar ---------- */
.side { background: var(--side); color: rgba(255, 255, 255, .74); display: flex; flex-direction: column; min-height: 0; overflow: hidden; z-index: 30; }
.ws { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 8px; border-radius: var(--r); text-align: left; transition: background .2s; }
.ws:hover, .ws[aria-expanded="true"] { background: rgba(255, 255, 255, .06); }
.ws-mark { width: 32px; height: 32px; background: var(--forest); display: grid; place-items: center; flex: none; border-radius: 3px; }
.ws-mark svg { width: 18px; height: 18px; color: #fff; }
.ws-txt { flex: 1; min-width: 0; line-height: 1.25; }
.ws-txt b { display: block; color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-txt span { font-size: 12px; color: rgba(255, 255, 255, .5); }
.ws-chev { width: 16px; height: 16px; color: rgba(255, 255, 255, .5); }
.snav { flex: 1; overflow-y: auto; padding: 6px 10px; }
.sg { margin-bottom: 18px; }
.sg-l { display: block; font-size: 12px; color: rgba(255, 255, 255, .42); padding: 0 10px 6px; }
.snav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: var(--r); font-size: 14px; position: relative; transition: background .15s, color .15s; }
.snav a svg { color: rgba(255, 255, 255, .55); }
.snav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.snav a.on { background: rgba(255, 255, 255, .09); color: #fff; }
.snav a.on svg { color: #fff; }
.snav a.on::before { content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; background: #fff; }
.snav a span { flex: 1; }
.snav em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.snav em.em-warn { background: var(--warn-dot); color: var(--ink); font-weight: 600; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; padding: 0 4px; font-size: 11.5px; }
.snav em.em-warn:empty, .snav em[data-c="warn"][data-z] { display: none; }
.side-foot { padding: 10px; display: grid; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pulse { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); background: rgba(255, 255, 255, .05); }
.pulse:hover { background: rgba(255, 255, 255, .08); }
.pulse-ic { width: 26px; height: 26px; border-radius: 3px; background: var(--forest); display: grid; place-items: center; flex: none; }
.pulse-ic .live { width: 8px; height: 8px; }
.pulse-t { line-height: 1.25; min-width: 0; }
.pulse-t b { display: block; color: #fff; font-weight: 500; font-size: 13px; }
.pulse-t span { font-size: 12px; color: #e8c968; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); text-align: left; }
.me:hover, .me[aria-expanded="true"] { background: rgba(255, 255, 255, .06); }
.me img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.me-t { flex: 1; min-width: 0; line-height: 1.25; }
.me-t b { display: block; color: #fff; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t span { font-size: 12px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.me > svg { color: rgba(255, 255, 255, .5); }
.ariadne { justify-self: start; margin: 4px 0 2px 4px; font: 500 12.5px/1 var(--f); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .92; }
.ariadne b { font-weight: 600; color: #ff8a3d; }
.scrim { position: fixed; inset: 0; background: rgba(12, 12, 14, .42); z-index: 25; }

/* ---------- top bar ---------- */
.top { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.icon-btn.burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-4); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; align-items: center; gap: 8px; width: 300px; height: 36px; padding: 0 8px 0 10px; border-radius: var(--r); background: var(--sunk); border: 1px solid var(--line); color: var(--ink-3); transition: border-color .2s; }
.search:hover { border-color: #cfcdca; }
.search span { flex: 1; text-align: left; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); color: var(--ink-2); position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--crit); box-shadow: 0 0 0 2px var(--surface); }
.icon-btn .dot[hidden] { display: none; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 3px; font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-h); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c282d; }
.btn-line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn-line:hover { box-shadow: inset 0 0 0 1px #c9c7c4; }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunk); color: var(--ink); }
.btn-danger { background: var(--crit); color: #fff; }
.btn-danger:hover { background: #8c1f31; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.input, select.input, textarea.input { height: 36px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); width: 100%; }
textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(26, 85, 67, .12); }
.seg { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 3px; padding: 2px; }
.seg button { height: 28px; padding: 0 10px; border-radius: 2px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04); }
.chip { height: 28px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.chip b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] b { color: rgba(255, 255, 255, .6); }
.toggle { width: 32px; height: 18px; border-radius: 10px; background: #cfcdd0; position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle[aria-checked="true"] { background: var(--forest); }
.toggle[aria-checked="true"]::after { transform: translateX(14px); }
.check { width: 16px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #b5b3b7; display: grid; place-items: center; flex: none; transition: background .15s; }
.check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.check[aria-checked="true"] { background: var(--forest); box-shadow: none; }
.check[aria-checked="true"] svg { opacity: 1; }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.ph p { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.ph-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bar-row .grow { flex: 1; }
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; color: var(--ink-3); }
.filter-search .input { height: 32px; padding-left: 31px; width: 220px; }

/* ---------- cards, kpis ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); min-height: 52px; }
.card-h h2, .card-h h3 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.card-h span.sub { color: var(--ink-3); font-size: 12.5px; }
.card-b { padding: 16px 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.kpi { padding: 14px 18px 16px; border-right: 1px solid var(--line-2); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi > span { display: block; color: var(--ink-3); font-size: 12.5px; }
.kpi > b { display: flex; align-items: baseline; gap: 8px; font-size: 30px; font-weight: 400; letter-spacing: -.045em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi > b .pill { letter-spacing: 0; font-size: 11.5px; align-self: center; }
.kpi > b small { font-size: 13px; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.kpi > em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.kpi > em .up { color: var(--forest); font-weight: 500; }
.kpi > em .dn { color: var(--crit); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.grid-eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.grid-2 > *, .grid-eq > * { min-width: 0; }

/* ---------- pills, status, avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 2px; white-space: nowrap; line-height: 1.5; font-style: normal; }
.p-review { background: var(--forest-t); color: var(--forest); }
.p-ontrack { background: #efefed; color: var(--ink-2); }
.p-evidence, .p-warn { background: var(--warn-bg); color: var(--warn); }
.p-blocked, .p-crit { background: var(--crit-bg); color: var(--crit); }
.p-live { background: var(--ink); color: #fff; }
.p-paused { background: #e7e6e4; color: var(--ink-2); }
.p-ok { background: var(--forest-t); color: var(--forest); }
.p-plain { background: #efefed; color: var(--ink-2); }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 1px; background: var(--mint); flex: none; }
.p-live .live { width: 6px; height: 6px; }
.stat { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.stat i { width: 8px; height: 8px; border-radius: 1px; flex: none; }
.stat-live i { background: var(--mint); box-shadow: 0 0 0 2px var(--ink); width: 6px; height: 6px; margin: 0 1px; }
.stat-degraded { color: var(--warn); }
.stat-degraded i { background: var(--warn-dot); }
.stat-paused { color: var(--ink-3); }
.stat-paused i { background: var(--ink-4); }
.av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; background: #3e4a45; letter-spacing: .02em; }
.av.c1 { background: #3d4f63; } .av.c2 { background: #5a4a3a; } .av.c3 { background: #4a3f5c; } .av.c4 { background: #2f5b52; } .av.c5 { background: #5c4048; } .av.c6 { background: #44484d; }
.av-sm { width: 20px; height: 20px; font-size: 9px; }
.av-lg { width: 36px; height: 36px; font-size: 12.5px; }
.who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; }
.avs { display: inline-flex; }
.avs .av { box-shadow: 0 0 0 2px var(--surface); }
.avs .av + .av { margin-left: -6px; }
.risk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 2px; font-size: 11px; font-weight: 600; color: #fff; }
.risk-H { background: var(--crit); }
.risk-M { background: #b08a1e; }
.risk-L { background: #8b898d; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th .arr { display: inline-block; width: 10px; color: var(--ink); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #fafaf8; }
.tbl tbody tr.sel { background: var(--forest-t); }
.tbl .r, .tbl th.r { text-align: right; }
.tbl .n { font-variant-numeric: tabular-nums; }
.tbl .name b { display: block; font-weight: 500; }
.tbl .name span { color: var(--ink-3); font-size: 12px; }
.tbl .muted { color: var(--ink-3); }
.tbl .wrap { white-space: normal; min-width: 220px; }
.tbl td.nw { white-space: normal; min-width: 190px; max-width: 250px; }
.tbl .wrap-s { white-space: normal; min-width: 150px; max-width: 220px; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.empty .stair-ic { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--ink-4); }

/* accuracy meter */
.acc { display: inline-grid; grid-template-columns: 64px auto; gap: 8px; align-items: center; }
.acc-bar { height: 5px; background: #ebeae7; position: relative; }
.acc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--forest); }
.acc-bar s { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); }
.acc.below .acc-bar i { background: var(--warn-dot); }
.acc.below b { color: var(--warn); }
.acc b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- portfolio staircase ---------- */
.board { --rise: 30px; display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; padding-bottom: 12px; }
.board-wrap { overflow-x: auto; margin: 0 -32px; padding: 0 32px; }
.col { border-radius: var(--r); transition: background .15s, box-shadow .15s; min-height: 200px; }
.col[data-stage="0"] { margin-top: calc(var(--rise) * 3); }
.col[data-stage="1"] { margin-top: calc(var(--rise) * 2); }
.col[data-stage="2"] { margin-top: var(--rise); }
.col.drop-ok { background: rgba(26, 85, 67, .07); box-shadow: inset 0 0 0 1.5px var(--forest); }
.col.drop-bad { background: rgba(163, 40, 59, .05); box-shadow: inset 0 0 0 1.5px rgba(163, 40, 59, .5); }
.col.drop-back { background: rgba(24, 21, 25, .04); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.step { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; font-weight: 500; font-size: 14px; border-radius: 3px 3px 0 0; }
.step b { font-weight: 500; font-variant-numeric: tabular-nums; }
.col[data-stage="0"] .step { background: #dde6e2; color: var(--forest); }
.col[data-stage="1"] .step { background: #b7ccc3; color: var(--forest-d); }
.col[data-stage="2"] .step { background: var(--forest); color: #fff; }
.col[data-stage="3"] .step { background: var(--ink); color: #fff; box-shadow: inset 0 3px 0 var(--mint); }
.col-sub { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px 4px; font-size: 12px; color: var(--ink-3); }
.col-sub b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.col-cards { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; min-height: 80px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px 12px; cursor: grab; position: relative; transition: border-color .15s, box-shadow .15s; user-select: none; -webkit-user-select: none; }
.icard:hover { border-color: #cfcdca; box-shadow: 0 6px 16px -10px rgba(24, 21, 25, .25); }
.icard:focus-visible { outline: 2px solid var(--forest); }
.icard.dragging { opacity: .35; }
.icard.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.icard-t { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.icard h3 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; margin: 6px 0 8px; line-height: 1.3; }
.icard-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.icard-m .who { gap: 6px; }
.icard-m .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.segs { display: flex; gap: 3px; margin-top: 10px; }
.segs i { flex: 1; height: 4px; background: #e5e7e5; }
.segs i.d { background: var(--forest); }
.icard-more { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 3px; display: none; place-items: center; color: var(--ink-3); background: var(--surface); }
.icard:hover .icard-more, .icard:focus-within .icard-more { display: grid; }
.icard-more:hover { background: var(--sunk); color: var(--ink); }
.ghost { position: fixed; z-index: 80; pointer-events: none; transform: rotate(1.5deg); box-shadow: 0 18px 40px -16px rgba(24, 21, 25, .45); cursor: grabbing; opacity: .97; }
.drag-hint { position: fixed; z-index: 81; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.board-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.board-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- initiative ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 4px 0 20px; }
.stp { padding: 10px 12px; background: #e9ebe9; color: var(--ink-3); font-size: 12.5px; border-radius: 2px; min-height: 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.stp b { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.stp:nth-child(1) { height: 52px; }
.stp:nth-child(2) { height: 64px; }
.stp:nth-child(3) { height: 76px; }
.stp:nth-child(4) { height: 88px; }
.stp.done { background: var(--forest-l); color: var(--forest-d); }
.stp.done b { color: var(--forest-d); }
.stp.cur { background: var(--forest); color: rgba(255, 255, 255, .75); }
.stp.cur b { color: #fff; }
.stp.cur.ops { background: var(--ink); box-shadow: inset 0 3px 0 var(--mint); }
.title-edit { display: flex; align-items: center; gap: 8px; }
.title-edit h1 { outline: none; border-radius: 3px; }
.title-edit h1[contenteditable="true"] { box-shadow: 0 0 0 2px var(--forest); padding: 0 4px; margin: 0 -4px; }
.title-edit .icon-btn { width: 30px; height: 30px; opacity: 0; transition: opacity .15s; }
.title-edit:hover .icon-btn, .title-edit .icon-btn:focus-visible { opacity: 1; }
.meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.meta-row .dotsep { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }
.cl { display: grid; }
.cl-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.cl-row:last-child { border-bottom: 0; }
.cl-row .t { font-weight: 500; }
.cl-row .e { color: var(--ink-3); font-size: 12.5px; text-align: right; }
.cl-row .e .btn { height: 26px; }
.cl-row.missing .t { color: var(--ink-2); }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.progress .segs { margin: 0; width: 120px; }
.dl { display: grid; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { font-weight: 500; text-align: right; }
.owners { display: grid; gap: 12px; }
.owner { display: flex; align-items: center; gap: 10px; }
.owner .t { line-height: 1.25; min-width: 0; flex: 1; }
.owner .t b { display: block; font-weight: 500; }
.owner .t span { color: var(--ink-3); font-size: 12.5px; }
.owner .role { font-size: 12px; color: var(--ink-3); text-align: right; }
.feed { display: grid; }
.feed li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 9px 0; font-size: 13px; }
.feed li span { color: var(--ink-2); }
.feed li time { display: block; color: var(--ink-3); font-size: 12px; }
.vcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line-2); }
.vcase > div { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.vcase > div:last-child { border-right: 0; }
.vcase span { color: var(--ink-3); font-size: 12.5px; display: block; }
.vcase b { font-size: 24px; font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 400 11.5px var(--f); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: #ecebe8; }
.chart .axis line { stroke: #d6d5d2; }
.chart .lbl { fill: var(--ink-2); font-weight: 500; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .xh { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; }
.legend i.ln { height: 2px; width: 14px; }
.legend i.dash { height: 0; width: 14px; border-top: 2px dashed var(--forest); }
.legend i.dash.g { border-top-color: var(--ink-4); }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grow-y { transform-box: fill-box; transform-origin: 50% 100%; animation: growY .8s var(--ease) both; }
.grow-y.neg { transform-origin: 50% 0%; }
@keyframes growY { from { transform: scaleY(0); } }
.grow-x { transform-origin: 0 50%; animation: growX .9s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.ctip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 10px 28px -12px rgba(24, 21, 25, .3); padding: 8px 10px; font-size: 12.5px; min-width: 150px; }
.ctip h4 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.ctip div { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 1px 0; }
.ctip div span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ctip div i { width: 12px; height: 2px; display: inline-block; }
.ctip div b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bu-bars { display: grid; gap: 4px; }
.bu-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 6px 8px; border-radius: 3px; cursor: pointer; transition: background .12s; }
.bu-row:hover { background: var(--sunk); }
.bu-row.sel { background: var(--forest-t); }
.bu-row > span { color: var(--ink-2); }
.bu-row > b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.bu-row small { color: var(--ink-3); font-weight: 400; }
.bu-track { position: relative; height: 18px; }
.bu-track i { position: absolute; left: 0; top: 0; bottom: 0; }
.bu-track .p { background: var(--forest-m); opacity: .5; }
.bu-track .r { background: var(--forest); }
.heat { display: grid; grid-template-columns: 22px repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, 40px) 22px; gap: 3px; font-size: 11.5px; }
.heat .ax { color: var(--ink-3); display: grid; place-items: center; }
.heat .cell { border-radius: 2px; display: grid; place-items: center; font-weight: 600; color: var(--ink-2); background: #f1f1ef; cursor: default; }
.heat .cell.s-l { background: #eceae7; }
.heat .cell.s-m { background: #efe4c4; color: var(--warn); }
.heat .cell.s-h { background: #f0cfd4; color: var(--crit); }
.heat .cell.has { box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer; }
.heat .cell.sel { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- roadmap ---------- */
.rm { --lw: 260px; min-width: 980px; }
.rm-head { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.rm-q { display: grid; grid-template-columns: repeat(4, 1fr); }
.rm-q div { padding: 10px 12px 4px; font-weight: 500; font-size: 13px; border-left: 1px solid var(--line-2); }
.rm-q div span { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.rm-group { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); background: var(--sunk); border-bottom: 1px solid var(--line-2); }
.rm-group > div:first-child { padding: 8px 18px; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.rm-row { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); cursor: pointer; }
.rm-row:hover { background: #fafaf8; }
.rm-name { padding: 9px 18px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rm-name b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-name span { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; flex: none; }
.rm-track { position: relative; height: 38px; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: 25% 100%; }
.rm-bar { position: absolute; top: 12px; height: 14px; border-radius: 2px; }
.rm-bar.s0 { background: #dde6e2; }
.rm-bar.s1 { background: #b7ccc3; }
.rm-bar.s2 { background: var(--forest); }
.rm-bar.s3 { background: var(--ink); }
.rm-bar.plan { background: transparent; box-shadow: inset 0 0 0 1.5px #c3c8c5; }
.rm-gate { position: absolute; top: 9px; width: 20px; height: 20px; margin-left: -10px; display: grid; place-items: center; }
.rm-gate i { width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.rm-gate.review i { background: var(--forest); box-shadow: 0 0 0 2px var(--forest-l); }
.rm-gate.blocked i { background: var(--crit); }
.rm-gate.evidence i { background: var(--warn-dot); }
.rm-gate.next i { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rm-ops { position: absolute; top: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.rm-lab { text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.rm-lab { position: absolute; top: 11px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; padding-left: 14px; font-weight: 500; }
.rm-today { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--crit); z-index: 1; pointer-events: none; }
.rm-today span { position: absolute; top: -1px; left: 4px; font-size: 11px; color: var(--crit); font-weight: 600; white-space: nowrap; }
.rm-live { position: absolute; top: 18px; height: 2px; background: var(--ink); }
.rm-live::before { content: ''; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- reviews ---------- */
.rv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.rv:last-child { border-bottom: 0; }
.rv:hover { background: #fafaf8; }
.rv-date { text-align: center; border: 1px solid var(--line); border-radius: 3px; padding: 6px 0 7px; line-height: 1.1; }
.rv-date span { display: block; font-size: 11px; color: var(--ink-3); }
.rv-date b { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.rv-t b { display: block; font-weight: 500; font-size: 14px; }
.rv-t span { color: var(--ink-3); font-size: 12.5px; }
.rv-r { display: flex; align-items: center; gap: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: 12px; text-align: center; }
.cal .dw { color: var(--ink-3); padding: 4px 0; }
.cal .d { height: 34px; display: grid; place-items: center; border-radius: 2px; color: var(--ink-2); font-variant-numeric: tabular-nums; position: relative; }
.cal .d.out { color: var(--ink-4); }
.cal .d.today { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; color: var(--ink); }
.cal .d.has { background: var(--forest); color: #fff; font-weight: 500; cursor: pointer; }
.cal .d.past { background: var(--forest-l); color: var(--forest-d); }
.decision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.decision label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.decision label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--forest-t); }
.decision input { margin-top: 3px; accent-color: var(--forest); }
.decision b { display: block; font-weight: 500; }
.decision span { color: var(--ink-3); font-size: 12.5px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 0 11px; font-weight: 500; color: var(--ink-3); position: relative; white-space: nowrap; font-size: 14px; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--ink); }
.tabs .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tabs em { font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 4px; font-size: 12.5px; }

/* approvals */
.appr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.appr:last-child { border-bottom: 0; }
.appr h3 { font-size: 14.5px; font-weight: 500; margin: 4px 0 4px; }
.appr p { color: var(--ink-2); font-size: 13px; max-width: 70ch; }
.appr .meta { color: var(--ink-3); font-size: 12.5px; margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.appr .acts { display: flex; gap: 6px; align-items: flex-start; }
.appr.decided { opacity: .62; }

/* settings */
.set-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 0; }
.set-nav a { padding: 8px 10px; border-radius: 3px; color: var(--ink-2); font-weight: 500; }
.set-nav a:hover { background: var(--surface); }
.set-nav a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.int { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.int:last-child { border-bottom: 0; }
.int-ic { width: 36px; height: 36px; border-radius: 3px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.int b { display: block; font-weight: 500; }
.int span { color: var(--ink-3); font-size: 12.5px; }
.tmpl-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 30px; gap: 8px; align-items: center; padding: 6px 0; }
.tmpl-item .n { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.tmpl-item .input { height: 32px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(16, 15, 17, .38); display: grid; place-items: center; padding: 20px; animation: fadeIn .18s ease-out; }
.overlay.top-align { place-items: start center; padding-top: 12vh; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); background: var(--surface); border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; animation: pop .22s var(--ease); }
.modal.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.modal-h { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-h h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.modal-h p { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.modal-b { padding: 18px 22px; overflow-y: auto; display: grid; gap: 16px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.modal-f .grow { flex: 1; color: var(--ink-3); font-size: 12.5px; }
.note { padding: 10px 12px; border-radius: 3px; background: var(--sunk); color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.crit { background: var(--crit-bg); color: var(--crit); }
.drawer-ov { position: fixed; inset: 0; z-index: 55; background: rgba(16, 15, 17, .26); animation: fadeIn .18s; }
.drawer { position: fixed; z-index: 56; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .4); display: flex; flex-direction: column; animation: slideIn .28s var(--ease); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.drawer-h h2 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.drawer-h p { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 22px 28px; display: grid; gap: 20px; align-content: start; }
.drawer-b h3 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 3px; }
.mini-kpis > div { padding: 10px 12px; border-right: 1px solid var(--line-2); }
.mini-kpis > div:last-child { border-right: 0; }
.mini-kpis span { display: block; font-size: 12px; color: var(--ink-3); }
.mini-kpis b { font-size: 20px; font-weight: 400; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kill { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; }
.kill b { display: block; font-weight: 500; }
.kill span { color: var(--ink-3); font-size: 12.5px; }
.menu { position: fixed; z-index: 70; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 40px -16px rgba(24, 21, 25, .35); padding: 5px; animation: pop .16s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 3px; text-align: left; font-size: 13.5px; color: var(--ink); }
.menu button:hover, .menu a:hover, .menu .act { background: var(--sunk); }
.menu svg { width: 16px; height: 16px; color: var(--ink-3); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.menu .mh { padding: 6px 10px 4px; font-size: 12px; color: var(--ink-3); }
.menu .kb { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.menu .danger { color: var(--crit); }
.menu .ws-i { display: flex; gap: 10px; align-items: center; }
.menu .ws-i i { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 600; }
.pop { position: fixed; z-index: 70; width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 40px -16px rgba(24, 21, 25, .35); animation: pop .16s var(--ease); }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.pop-h b { font-weight: 500; }
.ntf { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ntf:last-child { border-bottom: 0; }
.ntf:hover { background: var(--sunk); }
.ntf-ic { width: 28px; height: 28px; border-radius: 3px; display: grid; place-items: center; color: #fff; }
.ntf-ic svg { width: 15px; height: 15px; }
.ntf time { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.ntf.unread b { font-weight: 600; }
.ntf.unread { background: #fbfbf9; }

/* palette */
.palette { width: min(620px, 100%); background: var(--surface); border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); overflow: hidden; animation: pop .18s var(--ease); }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-in svg { color: var(--ink-3); }
.palette-in input { flex: 1; height: 54px; border: 0; outline: none; font-size: 16px; background: none; }
.palette-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.palette-list .mh { padding: 8px 10px 4px; font-size: 12px; color: var(--ink-3); }
.palette-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 3px; text-align: left; }
.palette-list button.act { background: var(--forest-t); }
.palette-list button svg { width: 16px; height: 16px; color: var(--ink-3); }
.palette-list button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list button em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.palette-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 12px; }
.sc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.sc-list div { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.sc-list kbd + kbd { margin-left: 3px; }

/* toasts, tooltip */
.toasts { position: fixed; z-index: 95; right: 20px; bottom: 20px; display: grid; gap: 8px; justify-items: end; }
.toast { background: var(--ink); color: #fff; padding: 11px 12px 11px 14px; border-radius: 4px; display: flex; align-items: center; gap: 14px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); font-size: 13.5px; animation: toastIn .3s var(--ease); max-width: min(480px, calc(100vw - 32px)); }
.toast .live { margin-right: -4px; }
.toast button { color: var(--mint); font-weight: 600; font-size: 13px; padding: 4px 6px; border-radius: 3px; }
.toast button:hover { background: rgba(255, 255, 255, .08); }
.toast button.x { color: rgba(255, 255, 255, .5); padding: 2px; }
.toast button.x svg { width: 16px; height: 16px; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.tip { position: fixed; z-index: 99; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 5px 8px; border-radius: 3px; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --sw: 64px; }
  .ws { justify-content: center; margin: 10px 8px; padding: 6px; }
  .ws-txt, .ws-chev, .sg-l, .snav a span, .snav em:not(.em-warn), .pulse-t, .me-t, .me > svg { display: none; }
  .snav { padding: 6px 8px; }
  .snav a { justify-content: center; padding: 0; }
  .snav a.on::before { left: -8px; }
  .snav em.em-warn { position: absolute; top: 2px; right: 4px; min-width: 15px; height: 15px; font-size: 10px; }
  .pulse { justify-content: center; padding: 8px; }
  .me { justify-content: center; padding: 6px; }
  .ariadne { display: none; }
  .page { padding: 22px 24px 56px; }
  .board-wrap { margin: 0 -24px; padding: 0 24px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .search { width: 220px; }
  .board { grid-template-columns: repeat(4, minmax(196px, 1fr)); gap: 10px; }
  .icard-m .who span { max-width: 92px; }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .grid-eq { grid-template-columns: minmax(0, 1fr); }
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: flex; overflow-x: auto; }
  .set-nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  :root { --sw: 0px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; }
  .side .ws-txt, .side .ws-chev, .side .sg-l, .side .snav a span, .side .snav em:not(.em-warn), .side .pulse-t, .side .me-t, .side .me > svg { display: revert; }
  .side .ws-txt { display: block; flex: 1; }
  .side .snav a span { flex: 1; }
  .side .pulse-t, .side .me-t { display: block; }
  .side .snav a { justify-content: flex-start; padding: 0 10px; }
  .side .snav em.em-warn { position: static; }
  .side .ws, .side .pulse, .side .me { justify-content: flex-start; }
  .side .ariadne { display: inline-block; }
  .icon-btn.burger { display: grid; }
  .top { padding: 0 10px; gap: 4px; }
  .search { width: 36px; padding: 0; justify-content: center; border: 0; background: none; }
  .search span, .search kbd { display: none; }
  .hide-sm { display: none !important; }
  .page { padding: 18px 16px 48px; }
  .ph { flex-direction: column; align-items: stretch; }
  .ph h1 { font-size: 26px; }
  .kpi { padding: 12px 14px; }
  .kpi > b { font-size: 24px; }
  .board { --rise: 0px; grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .board .col { scroll-snap-align: start; margin-top: 0 !important; }
  .board-wrap { margin: 0 -16px; padding: 0 16px; scroll-snap-type: x mandatory; }
  .bar-row .filter-search .input { width: 100%; }
  .bar-row .filter-search { flex: 1 1 100%; }
  .stepper { gap: 4px; }
  .stp { padding: 8px; font-size: 11px; }
  .stp b { font-size: 12px; }
  .vcase { grid-template-columns: minmax(0, 1fr); }
  .vcase > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cl-row { grid-template-columns: 16px minmax(0, 1fr); padding: 11px 14px; }
  .cl-row .e { grid-column: 2; text-align: left; }
  .bu-row { grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 10px; }
  .bu-row > span { grid-column: 1 / -1; }
  .bu-track { grid-row: 2; }
  .rv { grid-template-columns: 54px minmax(0, 1fr); }
  .rv-r { grid-column: 2; }
  .appr { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .decision { grid-template-columns: minmax(0, 1fr); }
  .sc-list { grid-template-columns: minmax(0, 1fr); }
  .pop { width: calc(100vw - 20px); left: 10px !important; }
  .drawer { width: 100%; }
  .modal { max-height: calc(100vh - 24px); }
  .overlay { padding: 12px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .mini-kpis b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .draw { stroke-dashoffset: 0; }
}
