/* Idealar design system: functional, Braun/Rams-derived.
   Orange is a signal color only (selection, progress, focus); text and primary actions are ink. */

:root, :root[data-theme="light"] {
  --ground: #F5F4F0; --panel: #FFFFFF; --ink: #191919; --muted: #6B6B67; --line: #D9D7D1;
  --signal: #E96A26; --danger: #B3261E; --hover: #ECEAE4;
}
:root[data-theme="gray"] {  /* VS Code "Dark+" greys */
  --ground: #1E1E1E; --panel: #252526; --ink: #D4D4D4; --muted: #9DA0A6; --line: #3C3C3C;
  --signal: #3794FF; --danger: #F48771; --hover: #2A2D2E;
}
:root[data-theme="dark"] {
  --ground: #141414; --panel: #1B1B1B; --ink: #ECEAE6; --muted: #A3A19B; --line: #2E2E2E;
  --signal: #F07A38; --danger: #F2877F; --hover: #232323;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ground: #141414; --panel: #1B1B1B; --ink: #ECEAE6; --muted: #A3A19B; --line: #2E2E2E;
    --signal: #F07A38; --danger: #F2877F; --hover: #232323;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: left; padding: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; flex: none; }
kbd { font: 12px "SFMono-Regular", Consolas, monospace; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100dvh; }
.app.anonymous { grid-template-columns: 1fr; }
.sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 24px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; padding: 0 8px; text-decoration: none; }
.dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 3px; text-decoration: none; }
.nav a:hover { background: var(--hover); }
.nav a[aria-current] { background: var(--hover); font-weight: 500; }
.nav .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 8px; }
.user { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.user form { display: inline; }
.link { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--ink); }

.seg { display: flex; border: 1px solid var(--line); border-radius: 3px; }
.seg button { flex: 1; text-align: center; padding: 8px 18px; min-height: 38px; font-size: 14px; white-space: nowrap; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.content { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.page { flex: 1; overflow: auto; padding: 24px 32px 48px; }
.page-inner { max-width: 46rem; margin: 0 auto; }
.page-inner.wide { max-width: 64rem; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 24px; letter-spacing: -0.01em; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }

.tabbar { display: none; }

/* ---------- Buttons and fields ---------- */
.btn { border: 1px solid var(--ink); border-radius: 3px; padding: 6px 12px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; background: transparent; cursor: pointer; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--ground); }
.btn.primary:hover { opacity: 0.88; }
.btn.quiet { border-color: var(--line); color: var(--muted); }
.btn.quiet:hover { color: var(--ink); border-color: var(--ink); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.small { padding: 2px 10px; font-size: 13px; }
.icon-btn { color: var(--muted); padding: 4px; line-height: 0; border-radius: 3px; }
.icon-btn:hover { color: var(--ink); background: var(--hover); }

.field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 0 10px; min-height: 38px; }
.field:focus-within { border-color: var(--ink); }
.field input, .field textarea { flex: 1; border: 0; background: none; outline: 0; min-width: 0; }
.field textarea { resize: none; padding: 6px 0; line-height: 24px; max-height: 8rem; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.select { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 6px 8px; min-height: 38px; }

/* ---------- Idea list + detail (master-detail) ---------- */
.split { display: grid; grid-template-columns: 400px minmax(0, 1fr); flex: 1; min-height: 0; }
.list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.list-head h1 { font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.list-head h1 span { color: var(--muted); font-size: 13px; font-weight: 400; }
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 0; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.tabs b { font-weight: 400; margin-left: 4px; font-size: 12px; }
.filters { display: flex; gap: 8px; }
.filters .select { flex: 1; min-width: 0; font-size: 13px; min-height: 32px; padding: 3px 6px; }
.rows { overflow: auto; flex: 1; }
.row { display: block; padding: 12px 16px 12px 13px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; text-decoration: none; }
.row:hover { background: var(--hover); }
.row[aria-current] { background: var(--panel); border-left-color: var(--signal); }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-sum { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.row-meta .project { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag { border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bar { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.track { width: 44px; height: 3px; background: var(--line); }
.fill { display: block; height: 100%; background: var(--signal); }
.pager { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; }
.empty { padding: 32px 16px; color: var(--muted); text-align: center; }

.detail-pane { overflow: auto; padding: 24px 40px 48px; min-width: 0; }
.detail { max-width: 46rem; }
.back { display: none; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 12px; padding: 6px 0; text-decoration: none; }
.detail h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; overflow-wrap: anywhere; }
.lead { color: var(--muted); margin-bottom: 20px; }
.detail-actions + .ai-working { margin: 12px 0 0; }
.ai-working { color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--signal); padding: 8px 12px; margin-bottom: 16px; background: var(--panel); }
.spec { display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--line); margin: 0 0 24px; }
.spec dt, .spec dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 13px; padding-top: 10px; }
.spec dd { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.note { white-space: pre-wrap; margin-bottom: 24px; overflow-wrap: anywhere; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 4px; }
.sec h3 { font-size: 15px; }
.sec span { color: var(--muted); font-size: 13px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks > li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 2px; margin: 0; cursor: pointer; flex: none; display: grid; place-items: center; background: transparent; }
.check:checked { background: var(--ink); }
.check:disabled { opacity: 0.4; cursor: not-allowed; }
.check:checked::after { content: ""; width: 4px; height: 9px; border: solid var(--ground); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.feature-label { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.feature-text { overflow-wrap: anywhere; }
.feature-text[contenteditable="true"] { outline: 2px solid var(--signal); outline-offset: 2px; background: var(--panel); cursor: text; }
.check:checked + .feature-text { color: var(--muted); text-decoration: line-through; }
.feature-tools { display: flex; gap: 2px; align-items: center; margin-left: auto; opacity: 0.55; }
.checks > li:hover .feature-tools, .checks > li:focus-within .feature-tools { opacity: 1; }
.feature-tools form { display: inline; }
.add-feature { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.add-feature .field { flex: 1 1 12rem; }
.suggest .text { flex: 1; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--signal); background: var(--panel); padding: 12px 14px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.callout .why { color: var(--muted); font-size: 14px; }
.callout-title { font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline; }
.callout-note { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ---------- Forms, lists, detail pages ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 13px; color: var(--muted); }
.form input[type="text"], .form input[type="url"], .form input[type="password"], .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 8px 10px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--ink); }
.form textarea { resize: vertical; }
/* Checkbox groups (platforms, projects, ideas): Django renders them as nested divs; keep them in a wrapping row. */
.form-field > div[id^="id_"], .form ul:not(.list) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.form-field > div[id^="id_"] > div { margin: 0; }
.form-field > div[id^="id_"] label, .form ul:not(.list) label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 2px; margin: 0; display: grid; place-items: center; background: transparent; cursor: pointer; }
.form input[type="checkbox"]:checked { background: var(--ink); }
.form input[type="checkbox"]:checked::after { content: ""; width: 4px; height: 9px; border: solid var(--ground); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 14px; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 16px; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: block; padding: 12px 4px; text-decoration: none; }
.list a:hover { background: var(--hover); }
.list li.has-tools { display: flex; align-items: center; }
.list li.has-tools > a { flex: 1; min-width: 0; }
.list li.has-tools.wrap { flex-wrap: wrap; }
.list li.has-tools.wrap > a { flex: 1 1 100%; }  /* buttons drop under the text instead of squeezing it */
.list li.has-tools.wrap .row-tools { padding: 0 4px 10px; flex-wrap: wrap; gap: 4px; }
.row-tools { display: flex; align-items: center; gap: 2px; padding-right: 4px; flex: none; }
.row-tools form { display: inline; }
[data-rename-text][contenteditable="true"] { outline: 2px solid var(--signal); outline-offset: 2px; background: var(--panel); cursor: text; }
.list .title { font-weight: 500; }
.list .meta { color: var(--muted); font-size: 14px; }
.split-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.review h3 { font-size: 14px; color: var(--muted); font-weight: 500; margin: 16px 0 4px; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.error-text { color: var(--danger); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Chat ---------- */
.chat-log { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 80%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; overflow-wrap: anywhere; }
.bubble-user { align-self: flex-end; background: var(--ink); color: var(--ground); border-color: var(--ink); }
.bubble-assistant { align-self: flex-start; background: var(--panel); }
.provider-badge { margin-top: 6px; font-size: 12px; color: var(--muted); }
.action-card { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--signal); background: var(--ground); display: flex; flex-direction: column; gap: 6px; }
.chat-retry { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); padding: 8px 12px; background: var(--panel); }
.typing { color: var(--muted); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 32px; border-top: 1px solid var(--line); background: var(--ground); }
.composer .field { flex: 1; min-width: 0; }
.send { width: 38px; height: 38px; background: var(--ink); color: var(--ground); border-radius: 3px; display: grid; place-items: center; flex: none; text-align: center; }
.send:hover { opacity: 0.88; }
.sidebar .seg button { padding: 8px 0; }
.provider-select { max-width: 8rem; font-size: 13px; height: 38px; flex: none; }  /* same height as the message box and send button */
.cancel[hidden] { display: none; }
.capture .cancel { flex: none; height: 38px; padding: 0 12px; }

/* ---------- Toasts (flash messages) ---------- */
.ai-notice { display: block; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); border-left: 3px solid var(--signal); font-size: 14px; text-decoration: none; flex: none; }
.ai-notice:hover { background: var(--hover); }
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 20; width: min(32rem, calc(100% - 24px)); }
.toast { background: var(--ink); color: var(--ground); border-radius: 3px; padding: 10px 14px; font-size: 14px; cursor: pointer; border-left: 3px solid var(--signal); }
.toast-error { border-left-color: var(--danger); }

/* ---------- Auth ---------- */
.auth { max-width: 24rem; margin: 15vh auto 0; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.auth .brand { padding: 0; font-size: 20px; }

/* ---------- Phone ---------- */
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); }  /* plain 1fr lets long text stretch the column past the screen */
  .sidebar { display: none; }
  .content { padding-bottom: 56px; }
  .page { padding: 16px 16px 32px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .list-pane { border: 0; }
  .detail-pane { display: none; padding: 16px 16px 32px; }
  .split[data-view="detail"] .list-pane { display: none; }
  .split[data-view="detail"] .detail-pane { display: block; }
  .back { display: inline-flex; }
  .list-head .search kbd, .capture kbd { display: none; }
  .capture { position: fixed; left: 0; right: 0; bottom: 56px; padding: 8px 12px; background: var(--ground); border-top: 1px solid var(--line); z-index: 5; display: flex; gap: 8px; }
  .capture .field { flex: 1; min-width: 0; }
  .capture .cancel { align-self: flex-end; }
  .capture textarea { width: 100%; }
  .row[aria-current] { background: none; border-left-color: transparent; }  /* no selection concept on a single column */
  .split[data-view="detail"] .capture { display: none; }
  .rows { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: var(--ground); border-top: 1px solid var(--line); z-index: 6; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; border-top: 2px solid transparent; margin-top: -1px; }
  .tabbar a[aria-current] { color: var(--ink); border-color: var(--signal); }
  .detail h2 { font-size: 24px; }
  .spec { grid-template-columns: 7rem 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 16px; }
  .composer { padding: 8px 12px; }
  .bubble { max-width: 92%; }
  .feature-tools { opacity: 1; }
}

/* ---------- Desktop-only extras ---------- */
@media (min-width: 900px) {
  .capture { padding: 0; display: flex; gap: 8px; align-items: flex-start; }
  .capture .field { flex: 1; min-width: 0; }
  .capture .send { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* GitHub import list */
.import-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; }
.import-row:hover { background: var(--hover); }
.import-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.import-main .meta { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
@media (max-width: 899px) {
  .import-row { align-items: flex-start; flex-wrap: wrap; }
  .import-main { flex: 1 1 calc(100% - 40px); }
  .import-main .meta { white-space: normal; }
  .import-tags { flex-basis: 100%; justify-content: flex-start; padding-left: 30px; }
}

/* Build prompt page */
.prompt-box { width: 100%; font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--ink); padding: 14px; resize: vertical; }
.prompt-box:focus { outline: 0; border-color: var(--ink); }
code { font: 13px "SFMono-Regular", Consolas, monospace; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

/* ---------- Landing (logged-out home) ---------- */
.landing { padding: 0; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 56px; max-width: 70rem; margin: 0 auto; padding: 48px 32px 64px; align-items: start; }
.landing .pitch { grid-column: 1; grid-row: 1; min-width: 0; }
.landing .login-card { grid-column: 2; grid-row: 1; position: sticky; top: 48px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.login-card .brand { padding: 0; font-size: 20px; }
.login-card h2 { font-size: 18px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; text-decoration: none; }
.pitch h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.pitch .lead { font-size: 17px; color: var(--muted); max-width: 38rem; margin-bottom: 32px; }
.mock { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); max-width: 34rem; margin-bottom: 48px; overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; }
.mock-row i { font-style: normal; color: var(--muted); }
.mock-new { border-left: 3px solid var(--signal); }
.mock-card { border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: 3px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; background: var(--ground); }
.mock-card .tag { align-self: flex-start; }
.mock-actions { display: flex; gap: 8px; font-size: 13px; }
.mock-actions span { border: 1px solid var(--line); border-radius: 3px; padding: 2px 10px; }
.mock-actions span:first-child { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.timeline-title { font-size: 20px; margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ground); border: 2px solid var(--line); }
.timeline li:has(.badge-new)::before { border-color: var(--signal); background: var(--signal); }
.timeline time { font-size: 13px; color: var(--muted); }
.timeline h3 { font-size: 16px; margin: 2px 0 4px; }
.timeline p { color: var(--muted); max-width: 40rem; }
.badge-new { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--signal); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 899px) {
  .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 16px 96px; }
  .landing .login-card, .landing .pitch { grid-column: 1; position: static; }
  .landing .login-card { grid-row: 1; }
  .landing .pitch { grid-row: 2; }
  .pitch h1 { font-size: 30px; }
}
.status-open { border-color: var(--signal); color: var(--ink); }
.status-done { color: var(--muted); }
.status-closed { color: var(--muted); text-decoration: line-through; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.column { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.column h2 { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 28px; }
.cards.drag-over { outline: 2px dashed var(--signal); outline-offset: 2px; }
.card { border: 1px solid var(--line); border-radius: 3px; background: var(--ground); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; cursor: grab; overflow-wrap: anywhere; }
.card.dragging { opacity: 0.4; }
.card .tag { align-self: flex-start; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.card-title { text-decoration: none; }
a.card-title:hover { text-decoration: underline; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tools { display: flex; gap: 2px; justify-content: flex-end; }
.card-tools form { display: inline; }
.card-add { display: flex; flex-direction: column; gap: 6px; }
.card-add .select { font-size: 13px; min-height: 32px; }
@media (max-width: 899px) { .board { grid-template-columns: minmax(0, 1fr); } .card { cursor: default; } }
