/* ============================================================ fonts */
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/heebo-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/heebo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/heebo-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/heebo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/heebo-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/heebo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* ============================================================ tokens */
:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #f8f9f6;
  --surface-3: #eef0ea;
  --border: #dcdfd6;
  --border-strong: #c3c8bb;
  --text: #1b211c;
  --text-2: #4d5650;
  --text-3: #79817a;
  --brand: #2f5d46;
  --brand-strong: #1f4532;
  --brand-soft: #e3ede6;
  --brand-ink: #ffffff;
  --focus: #2a78d6;
  --p-critical: #d03b3b;
  --p-high: #e0703f;
  --p-medium: #2a78d6;
  --p-low: #8a8f98;
  --s-todo: #8a8f98;
  --s-in_progress: #2a78d6;
  --s-blocked: #d03b3b;
  --s-done: #0ca30c;
  --s-cancelled: #b9bab4;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --ok-soft: #e4f5e4;
  --info-soft: #e6f0fb;
  --grid: #e8eae4;
  --today: #e0a100;
  --shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 4px 16px rgba(20, 30, 20, .06);
  --radius: 10px;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141614; --surface: #1c1f1c; --surface-2: #222622; --surface-3: #2a2e2a;
    --border: #363b36; --border-strong: #4a504a; --text: #eef0ec; --text-2: #c2c7c0; --text-3: #959b94;
    --brand: #5fa37f; --brand-strong: #7dbb98; --brand-soft: #24362b; --brand-ink: #0d1a12;
    --focus: #6aa5ee; --p-critical: #e66767; --p-high: #e8834f; --p-medium: #3987e5; --p-low: #8f949c;
    --s-todo: #8f949c; --s-in_progress: #3987e5; --s-blocked: #e66767; --s-done: #2fb52f; --s-cancelled: #5c5f5a;
    --danger: #ff8a80; --danger-soft: #3a1f1d; --warn: #f2c36b; --warn-soft: #3a2f17; --ok-soft: #1d3320;
    --info-soft: #1b2a3d; --grid: #2b2f2b; --today: #f2b400; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141614; --surface: #1c1f1c; --surface-2: #222622; --surface-3: #2a2e2a;
  --border: #363b36; --border-strong: #4a504a; --text: #eef0ec; --text-2: #c2c7c0; --text-3: #959b94;
  --brand: #5fa37f; --brand-strong: #7dbb98; --brand-soft: #24362b; --brand-ink: #0d1a12;
  --focus: #6aa5ee; --p-critical: #e66767; --p-high: #e8834f; --p-medium: #3987e5; --p-low: #8f949c;
  --s-todo: #8f949c; --s-in_progress: #3987e5; --s-blocked: #e66767; --s-done: #2fb52f; --s-cancelled: #5c5f5a;
  --danger: #ff8a80; --danger-soft: #3a1f1d; --warn: #f2c36b; --warn-soft: #3a2f17; --ok-soft: #1d3320;
  --info-soft: #1b2a3d; --grid: #2b2f2b; --today: #f2b400; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
}

/* ============================================================ base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.muted { color: var(--text-2); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ============================================================ controls */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; min-height: 34px; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 3px 8px; min-height: 28px; font-size: 13px; }
.btn.icon { padding: 4px 7px; min-width: 30px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, select.input, textarea.input { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px;
  padding: 7px 10px; min-height: 36px; width: 100%; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--focus) 55%, transparent); border-color: var(--focus); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.err { color: var(--danger); font-size: 13px; }
.alert { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.alert.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.ok { background: var(--ok-soft); }
.alert.info { background: var(--info-soft); }

/* ============================================================ badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 500; border: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; color: var(--text); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge.role-owner { background: var(--brand-soft); border-color: transparent; }
.badge.issue-error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.issue-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.prio-flag { display: inline-block; width: 4px; align-self: stretch; border-radius: 2px; }

/* ============================================================ layout */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 54px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 15px; }
.page { max-width: 1500px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card h1 { margin-bottom: 4px; }

/* plans list */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.plan-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .15s; }
.plan-card:hover { border-color: var(--brand); }
.plan-card.archived { opacity: .7; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.kv { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.kv b { color: var(--text); }

/* plan header & tabs */
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-2);
  font-weight: 500; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.snapshot-banner { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }

/* filters */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; }
.filters .input { width: auto; min-height: 32px; padding: 4px 8px; }
.filters .search { min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.chip-group { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--text); font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.filter-count { font-size: 12.5px; color: var(--text-2); }

/* dropdown menu */
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.menu button, .menu a { display: flex; width: 100%; text-align: start; gap: 8px; align-items: center; padding: 8px 10px; border: 0; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--text); text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* ============================================================ task table */
.table-wrap { overflow: auto; }
table.tasks { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tasks th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; text-align: start; font-weight: 600; color: var(--text-2);
  padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12.5px; }
table.tasks td { padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.tasks tr.trow { cursor: pointer; }
table.tasks tr.trow:hover td { background: var(--surface-2); }
table.tasks tr.depth-1 td { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
table.tasks tr.depth-1 td.title { font-weight: 600; }
table.tasks tr.context td { opacity: .55; }
table.tasks tr.cancelled .title-text { text-decoration: line-through; color: var(--text-3); }
.title-cell { display: flex; align-items: center; gap: 6px; min-width: 260px; }
.toggle { width: 22px; height: 22px; display: inline-grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: 4px; color: var(--text-2); flex: none; }
.toggle:hover { background: var(--surface-3); }
.toggle-spacer { width: 22px; flex: none; }
.wbs { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.mini-progress { display: flex; align-items: center; gap: 6px; min-width: 90px; }
.mini-progress .progress { flex: 1; height: 6px; }
.row-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .1s; justify-content: flex-end; }
tr.trow:hover .row-actions, tr.trow:focus-within .row-actions { opacity: 1; }
.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.days-left.late { color: var(--danger); font-weight: 600; }
.days-left.soon { color: var(--warn); font-weight: 600; }
.issue-icon { color: var(--danger); cursor: help; }
.issue-icon.warn { color: var(--warn); }

/* ============================================================ gantt */
.gantt-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.gantt-scroll { overflow: auto; max-height: calc(100vh - 250px); min-height: 300px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; }
.gantt-grid { display: grid; position: relative; }
.g-corner { position: sticky; top: 0; inset-inline-start: 0; z-index: 4; background: var(--surface-2); border-bottom: 1px solid var(--border);
  border-inline-end: 1px solid var(--border); display: flex; align-items: flex-end; padding: 6px 10px; font-weight: 600; color: var(--text-2); font-size: 12.5px; }
.g-header { position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.g-names { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); border-inline-end: 1px solid var(--border); }
.g-name { display: flex; align-items: center; gap: 6px; padding-inline: 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; overflow: hidden; cursor: pointer; font-size: 13px; }
.g-name:hover { background: var(--surface-2); }
.g-name .t { overflow: hidden; text-overflow: ellipsis; }
.g-name.depth-1 { font-weight: 600; }
.g-body svg, .g-header svg { display: block; }
.g-bar { cursor: pointer; }
.g-bar.editable { cursor: grab; }
.g-bar.dragging { cursor: grabbing; opacity: .85; }
.g-handle { cursor: ew-resize; fill: transparent; }
.g-dep { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.g-dep.conflict { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 4 3; }
.g-dep.hl { stroke: var(--focus); stroke-width: 2.5; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); align-items: center; }
.legend .sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: middle; }

.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; max-width: 320px; }
.tooltip .tt-title { font-weight: 600; margin-bottom: 4px; }

/* ============================================================ board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.board-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); min-height: 200px; display: flex; flex-direction: column; }
.board-col.drop { outline: 2px dashed var(--brand); outline-offset: -4px; }
.board-col h3 { padding: 10px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
.board-col .cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; gap: 8px; }
.tcard:hover { border-color: var(--brand); }
.tcard[draggable="true"] { cursor: grab; }
.tcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tcard .crumb { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .ttl { font-weight: 500; }

/* ============================================================ dependency map */
.depmap-scroll { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-height: calc(100vh - 260px); min-height: 300px; }
.dm-node { cursor: pointer; }
.dm-node rect.box { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.dm-node:hover rect.box, .dm-node.hl rect.box { stroke: var(--focus); stroke-width: 2; }
.dm-node.dim { opacity: .3; }
.dm-edge { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.dm-edge.conflict { stroke: var(--danger); stroke-dasharray: 5 3; stroke-width: 2; }
.dm-edge.hl { stroke: var(--focus); stroke-width: 2.5; }
.dm-edge.dim { opacity: .15; }

/* ============================================================ dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--text-2); }
.kpi.alert-kpi .v { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .dash-grid { grid-template-columns: 1fr; } }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.hbar .track { height: 14px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
[dir="rtl"] .hbar .fill { border-radius: 4px 0 0 4px; margin-inline-start: 0; }
.hbar .num { text-align: end; font-variant-numeric: tabular-nums; color: var(--text-2); }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar.link { cursor: pointer; border-radius: 6px; }
.hbar.link:hover { background: var(--surface-2); }
.stackbar { display: flex; height: 18px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--surface); }
.stackbar > span { display: block; height: 100%; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--grid); cursor: pointer; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.month-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.month-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; cursor: default; }
.month-chart .seg { border-radius: 3px 3px 0 0; min-height: 0; }
.month-chart .seg + .seg { border-radius: 0; margin-top: 0; }
.month-chart .seg.open { background: var(--p-medium); }
.month-chart .seg.done { background: var(--s-done); border-radius: 3px 3px 0 0; margin-bottom: 2px; }
.month-labels { display: flex; gap: 4px; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.month-labels span { flex: 1; text-align: center; }

/* ============================================================ drawer & modal */
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 10, .35); z-index: 50; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(620px, 100vw); background: var(--surface); z-index: 51; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-inline-start: 1px solid var(--border); }
.drawer-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.drawer-body { padding: 16px 18px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.modal { position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  overflow: auto; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.overlay.top { z-index: 60; }
.points-edit { display: flex; flex-direction: column; gap: 6px; }
.point-row { display: flex; gap: 6px; align-items: center; }
.point-row .input { min-height: 32px; padding: 4px 8px; }
.point-row.done .input { text-decoration: line-through; color: var(--text-3); }
.points-view { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.points-view li { display: flex; gap: 8px; align-items: flex-start; }
.points-view li.done span { text-decoration: line-through; color: var(--text-3); }
.pick-list { border: 1px solid var(--border); border-radius: 8px; max-height: 220px; overflow: auto; }
.pick-list label { display: flex; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--grid); cursor: pointer; align-items: center; }
.pick-list label:hover { background: var(--surface-2); }
.pick-list label.disabled { opacity: .45; cursor: not-allowed; }
.detail-grid { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
.detail-grid dt { color: var(--text-2); }
.detail-grid dd { margin: 0; }
.desc { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 10px; border: 1px solid var(--grid); }

/* toasts */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100vw - 32px); }
.toast.error { background: var(--danger); color: #fff; }

/* members / activity / snapshots */
.list-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.list-table th, .list-table td { padding: 9px 8px; border-bottom: 1px solid var(--grid); text-align: start; vertical-align: middle; }
.list-table th { color: var(--text-2); font-weight: 600; font-size: 12.5px; background: var(--surface-2); }
.copy-box { display: flex; gap: 6px; }
.copy-box .input { direction: ltr; font-size: 12.5px; }
.activity-item { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--grid); }
.activity-item .when { color: var(--text-3); font-size: 12px; white-space: nowrap; min-width: 130px; }
.diff { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.diff .old { text-decoration: line-through; color: var(--text-3); }

/* ============================================================ export / capture / print */
.capture-mode .gantt-scroll, .capture-mode .depmap-scroll, .capture-mode .table-wrap { max-height: none !important; overflow: visible !important; }
.capture-mode .row-actions { display: none !important; }
@media print {
  .topbar, .tabs, .filters, .no-print, .gantt-toolbar .btn, .row-actions, .toasts { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .card { box-shadow: none; }
  .gantt-scroll, .depmap-scroll, .table-wrap { max-height: none !important; overflow: visible !important; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 10px; }
  .page { padding: 12px 12px 60px; }
  .board { grid-template-columns: repeat(5, 260px); }
  .hide-sm { display: none !important; }
}

/* icons */
.ic { flex: none; vertical-align: -3px; }
.big .ic { color: var(--text-3); }
.btn .ic { vertical-align: 0; }
