/* Agent Harness panosu. Tokens first; every status color is one variable (--c) set by .st-* classes. */
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --line: #e2e5ea;
  --line-2: #edeff3;
  --text: #0f172a;
  --muted: #566070;
  --faint: #8a93a3;
  --accent: #2f6df6;
  --c-planned: #8f99aa;
  --c-ready: #0d9488;
  --c-progress: #2f6df6;
  --c-review: #7c4dff;
  --c-presenting: #d97706;
  --c-done: #16a34a;
  --c-blocked: #e5484d;
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 1px 3px rgb(16 24 40 / 7%);
  --shadow-lg: 0 10px 28px rgb(16 24 40 / 14%), 0 2px 6px rgb(16 24 40 / 6%);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0d11;
    --surface: #14171d;
    --surface-2: #11141a;
    --surface-3: #1b1f27;
    --line: #252a33;
    --line-2: #1e222a;
    --text: #e7e9ee;
    --muted: #a0a8b6;
    --faint: #6f7887;
    --accent: #6b97ff;
    --c-planned: #7d8696;
    --c-ready: #2dd4bf;
    --c-progress: #5b8dff;
    --c-review: #a38bff;
    --c-presenting: #f5a524;
    --c-done: #3ecf6e;
    --c-blocked: #ff6b6f;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 50%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-3); padding: 0.05em 0.35em; border-radius: 5px; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.st-planned { --c: var(--c-planned); }
.st-ready { --c: var(--c-ready); }
.st-in_progress { --c: var(--c-progress); }
.st-review { --c: var(--c-review); }
.st-presenting { --c: var(--c-presenting); }
.st-done { --c: var(--c-done); }
.st-blocked { --c: var(--c-blocked); }

/* ---- header ---------------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; }
.logo svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); font-size: 12px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.last { color: var(--muted); font-size: 12px; }
.seg-toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: 9px; }
.seg-toggle button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 550; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-presenting); }
.live[data-state="live"] .dot { background: var(--c-done); animation: pulse 2.4s ease-out infinite; }
.live[data-state="down"] .dot { background: var(--c-blocked); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-done) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

/* ---- overview: program progress and gates -------------------------------------------------- */
.overview { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; padding: 18px 24px 4px; }
.progress-card, .gate, .panel, .col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-card { padding: 14px 16px; }
.pc-top { display: flex; align-items: baseline; gap: 8px; }
.pc-num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pc-num span { color: var(--faint); font-weight: 600; font-size: 18px; }
.pc-label { color: var(--muted); }
.seg { display: flex; height: 8px; margin: 10px 0 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.seg i { display: block; height: 100%; background: var(--c); transition: width 0.6s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.gates { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.gate {
  --c: var(--c-planned);
  flex: 1 1 0; min-width: 168px; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; text-align: left; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s;
}
.gate:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.gate.gs-passed { --c: var(--c-done); }
.gate.gs-failed { --c: var(--c-blocked); }
.gate.gs-next { --c: var(--c-progress); }
.node { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--c); color: #fff; font-size: 12px; }
.gs-passed .node, .gs-failed .node { background: var(--c); }
.gs-next .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.g-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.g-top b { color: var(--text); font-family: var(--mono); font-size: 12px; }
.g-state { color: var(--c); font-weight: 600; }
.ms { font-size: 10.5px; font-weight: 650; padding: 0 5px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.g-title { font-weight: 600; font-size: 13px; }
.g-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.g-arrow { flex: none; align-self: center; width: 10px; height: 2px; background: var(--line); border-radius: 2px; }

/* ---- layout ---------------------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 16px 24px 24px; align-items: start; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.loading { color: var(--muted); padding: 24px; }
.col { display: flex; flex-direction: column; min-width: 0; background: var(--surface-2); box-shadow: none; }
.col-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 12px 8px; }
.col-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.col-head h2 { margin: 1px 0 0; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.col-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface-3); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.col > .bar { margin: 0 12px 8px; }
.col-body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.col-empty { margin: 4px 4px 8px; color: var(--faint); font-size: 12.5px; }
.col-foot { margin: auto 8px 8px; padding: 7px 10px; border-radius: 9px; font-size: 12px; color: var(--muted); background: var(--surface-3); display: flex; align-items: center; gap: 6px; cursor: pointer; border: 0; text-align: left; }
.col-foot b { font-family: var(--mono); color: var(--text); }
.col-foot .g-state { margin-left: auto; }

/* ---- cards ----------------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 11px 12px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s, border-color 0.2s;
}
.card::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.card.waiting { background: var(--surface-2); box-shadow: none; }
.card.waiting h3, .card.st-done h3 { color: var(--muted); }
.card-top { display: flex; align-items: center; gap: 6px; }
.wp-id { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.wp-id.lg { font-size: 14px; color: var(--text); }
.size { font-size: 10.5px; font-weight: 650; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 1px 8px; border-radius: 99px; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.pill svg { width: 12px; height: 12px; }
.st-presenting .pill svg { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.card h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.card-team { font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar.thin { height: 4px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background-color: var(--c, var(--c-done)); transition: width 0.6s ease; }
.col > .bar > i { background-color: var(--c-done); }
.st-in_progress .bar > i {
  background-image: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 40%) 50%, transparent 100%);
  background-size: 200% 100%; animation: sheen 2.4s linear infinite;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.card-task { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--text); }
.card-task b { font-variant-numeric: tabular-nums; color: var(--c); font-weight: 650; }
.card-task span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-wait { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); }
.card-foot { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-top: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.tag svg { width: 12px; height: 12px; }
.tag-blocked { color: var(--c-blocked); background: color-mix(in srgb, var(--c-blocked) 12%, transparent); }
.ago { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.card.flash { animation: flash 2.6s ease-out; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent), var(--shadow); }
  25% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 transparent, var(--shadow); }
}

/* hovering a card shows what it needs and who waits for it */
@media (hover: hover) {
  .board.relating .card { opacity: 0.32; }
  .board.relating .card.rel-self, .board.relating .card.rel-dep, .board.relating .card.rel-soft, .board.relating .card.rel-next { opacity: 1; }
  .card.rel-dep { border-color: var(--c-progress); }
  .card.rel-soft { border: 1px dashed var(--c-progress); }
  .card.rel-next { border: 1px dashed var(--faint); }
  .card.rel-dep::after, .card.rel-soft::after, .card.rel-next::after {
    position: absolute; top: -9px; right: 10px; font-size: 10.5px; font-weight: 650; padding: 0 6px; border-radius: 99px;
    background: var(--surface); border: 1px solid currentColor;
  }
  .card.rel-dep::after { content: "gerekli"; color: var(--c-progress); }
  .card.rel-soft::after { content: "fake ile / ara hedef"; color: var(--c-progress); }
  .card.rel-next::after { content: "bunu bekliyor"; color: var(--muted); }
}

/* ---- side panels ----------------------------------------------------------------------------- */
.side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 72px; max-height: calc(100vh - 88px); }
.panel { padding: 12px 14px; display: flex; flex-direction: column; min-height: 0; }
.panel-feed { flex: 1 1 auto; min-height: 220px; }
.panel-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 650; }
.panel-head .hint { font-size: 11.5px; color: var(--faint); }
.count { font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--surface-3); padding: 0 7px; border-radius: 99px; }
.count.alert { color: #fff; background: var(--c-blocked); }
.blockers, .feed, .decisions { list-style: none; margin: 0; padding: 0; }
.feed { overflow-y: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: thin; }
.decisions { overflow-y: auto; max-height: 240px; margin: 0 -14px; padding: 0 14px; scrollbar-width: thin; }
.empty { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; padding: 2px 0 4px; }
.empty svg { color: var(--c-done); }

.blocker { padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--c-blocked) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c-blocked) 22%, transparent); }
.blocker + .blocker { margin-top: 6px; }
.blocker.resolved { background: var(--surface-2); border-color: var(--line); opacity: 0.8; }
.b-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.b-id { font-family: var(--mono); font-weight: 650; color: var(--c-blocked); }
.resolved .b-id { color: var(--muted); text-decoration: line-through; }
.b-title { margin: 3px 0 2px; font-size: 13px; font-weight: 550; }
.b-meta { font-size: 11.5px; color: var(--muted); }
.b-detail { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.chip {
  --c: var(--c-planned);
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 650;
  padding: 0 6px; border-radius: 6px; color: var(--c); line-height: 18px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
a.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 20%, transparent); }
.chip.soft { border: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); background: transparent; }
.chip-sys { --c: var(--muted); font-family: var(--font); }

.ev { padding: 9px 0; border-top: 1px solid var(--line-2); }
.ev:first-child { border-top: 0; padding-top: 2px; }
.ev.fresh { animation: slidein 0.5s ease-out; }
.ev.fresh .ev-sum { animation: highlight 3s ease-out; border-radius: 4px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes highlight { 0% { background: color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background: transparent; } }
.ev-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ev-actor { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev-meta .ago { margin-left: auto; }
.ev-sum { display: flex; gap: 5px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.ev-sum svg { margin-top: 3px; color: var(--muted); }
.ev-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ev[data-k="commit"] .ev-sum { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.dec { border-top: 1px solid var(--line-2); }
.dec:first-child { border-top: 0; }
.dec summary { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; cursor: pointer; list-style: none; font-size: 13px; }
.dec summary::-webkit-details-marker { display: none; }
.d-id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); flex: none; }
.d-body { padding: 0 0 9px 46px; font-size: 12.5px; color: var(--muted); }
.d-body p { margin: 0 0 4px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }

/* ---- drawer ---------------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 10 14 / 38%); animation: fade 0.18s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(560px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow-y: auto; animation: slide 0.22s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-body { padding: 18px 22px 32px; }
.d-head { display: flex; align-items: center; gap: 8px; }
.d-badges { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.d-badges .pill { margin-left: 0; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.drawer h2 { margin: 12px 0 2px; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.d-sub { margin: 0 0 12px; color: var(--muted); }
.d-progress { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.d-progress .card-task { font-size: 13px; }
.d-note { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--c, var(--accent)); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.d-grid { display: grid; grid-template-columns: 112px 1fr; gap: 7px 12px; margin: 16px 0 4px; font-size: 13px; }
.d-grid dt { color: var(--muted); }
.d-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.d-grid a { display: inline-flex; align-items: center; gap: 4px; }
.d-sec { margin-top: 18px; }
.d-sec h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chips .lbl { font-size: 12px; color: var(--muted); margin-right: 2px; }
.chips + .chips { margin-top: 6px; }
.criteria { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.criteria li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.criteria li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--faint); }
.wp-rows { display: flex; flex-direction: column; gap: 6px; }
.wp-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: inherit; font-size: 13px; }
.wp-row:hover { text-decoration: none; background: var(--surface-2); }
.wp-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-row .pill { margin-left: 0; }
.commits { margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.commits li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.commits code { flex: none; }
.commits .s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 12px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--faint); }
.timeline li[data-k~="status"]::before { border-color: var(--accent); background: var(--accent); }
.timeline li[data-k~="blocker"]::before { border-color: var(--c-blocked); }
.timeline li[data-k~="resolve"]::before, .timeline li[data-k~="presentation"]::before { border-color: var(--c-done); }
.t-meta { font-size: 11.5px; color: var(--faint); }
.t-sum { margin: 1px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.t-note { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.muted { color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 24px 24px; color: var(--faint); font-size: 12px; }
.noscript { padding: 24px; }

/* ---- smaller screens ------------------------------------------------------------------------- */
@media (max-width: 1320px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .feed { max-height: 420px; }
}
@media (max-width: 860px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top { padding: 10px 16px; gap: 10px; }
  .last { display: none; }
  .top-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .overview { padding: 14px 16px 2px; }
  .layout { padding: 12px 16px 16px; }
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .gate { min-width: 150px; }
  .drawer-body { padding: 16px; }
  .d-grid { grid-template-columns: 92px 1fr; }
  .foot { padding: 4px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- small additions ---------------------------------------------------------------------- */
.gate-mini { --c: var(--c-planned); }
.gate-mini.gs-passed { --c: var(--c-done); }
.gate-mini.gs-failed { --c: var(--c-blocked); }
.col-foot svg { width: 14px; height: 14px; }
.col-foot:hover { background: color-mix(in srgb, var(--c) 14%, var(--surface-3)); }
.ago-inline { white-space: nowrap; }
body.drawer-open { overflow: hidden; }
.chips .lbl { display: inline-flex; align-items: center; gap: 5px; }
.chips .lbl svg { color: var(--c-ready); }
.d-badges .size { font-size: 11.5px; }
.wp-id { flex: none; white-space: nowrap; }
.card-top .pill { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side > .panel { flex: 0 0 auto; }
.side > .panel-feed { flex: 1 1 auto; min-height: 240px; }
.card .pill { font-size: 11px; padding: 1px 6px; gap: 3px; }
.card .size { padding: 0 3px; }
.card-team { display: flex; align-items: center; gap: 6px; }
