/* == SpecHive design tokens — v4 (light + dark, data-theme) ================ *
 * A téma a <html data-theme="light|dark">-ből jön (theme.js állítja korán,
 * induláskor prefers-color-scheme, a választás localStorage-ban). A v4
 * token-készlet mellett a régi tokenek (--bg/--ok/--info/--warn/--radius/
 * --shadow/--mono/--sans/--accent-ink) áthidalva maradnak, amíg a 2. kör a
 * még át nem bőrözött nézeteket (login/setup/timeline…) átveszi. */
:root, :root[data-theme="light"] {
  --canvas: #eceef2; --panel: #ffffff; --surface: #ffffff; --surface-2: #f6f7f9; --inset: #f1f3f6;
  --ink: #1c1e24; --ink-2: #3a3d45; --muted: #8a8e98; --faint: #aab0ba; --line: #ebedf1; --line-2: #e2e5ea;
  --accent: #2d7ff9; --accent-weak: #eaf2ff; --accent-text: #1a66d6;
  --planned: #9aa2b1; --progress: #2d7ff9; --done: #22a06b;
  --sh: 0 1px 2px rgba(20,24,38,.05); --sh-2: 0 4px 16px rgba(20,24,38,.09);
  /* legacy bridge */
  --bg: #eceef2; --accent-ink: #ffffff; --info: #2d7ff9; --ok: #22a06b; --warn: #b0392e;
  --radius: 6px; --shadow: 0 1px 2px rgba(20,24,38,.05), 0 4px 12px rgba(20,24,38,.06);
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: 'Inter', system-ui, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0c0d12; --panel: #121319; --surface: #15171e; --surface-2: #1a1d26; --inset: #11131a;
  --ink: #eceef4; --ink-2: #c3c7d2; --muted: #878c99; --faint: #5f6572; --line: #23262f; --line-2: #2b2f3a;
  --accent: #4c90ff; --accent-weak: #172338; --accent-text: #8fbcff;
  --planned: #6a7180; --progress: #4c90ff; --done: #2cb57e;
  --sh: 0 1px 2px rgba(0,0,0,.3); --sh-2: 0 8px 28px rgba(0,0,0,.45);
  /* legacy bridge */
  --bg: #0c0d12; --accent-ink: #ffffff; --info: #4c90ff; --ok: #2cb57e; --warn: #c9584c;
  --radius: 6px; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.45);
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: 'Inter', system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* No-JS fallback: ha a korai inline script nem futott le (data-theme nincs),
   a rendszer-téma szerint sötét. A theme.js normál esetben beállítja előbb. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --canvas: #0c0d12; --panel: #121319; --surface: #15171e; --surface-2: #1a1d26; --inset: #11131a;
    --ink: #eceef4; --ink-2: #c3c7d2; --muted: #878c99; --faint: #5f6572; --line: #23262f; --line-2: #2b2f3a;
    --accent: #4c90ff; --accent-weak: #172338; --accent-text: #8fbcff;
    --planned: #6a7180; --progress: #4c90ff; --done: #2cb57e;
    --sh: 0 1px 2px rgba(0,0,0,.3); --sh-2: 0 8px 28px rgba(0,0,0,.45);
    --bg: #0c0d12; --accent-ink: #ffffff; --info: #4c90ff; --ok: #2cb57e; --warn: #c9584c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--canvas); color: var(--ink);
       font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.2; }
h2 { font-size: 1.25rem; margin: .2rem 0 1rem; }
h4 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
     letter-spacing: .12em; color: var(--muted); margin: 1.2rem 0 .5rem; }
a { color: var(--info); }
code { font-family: var(--mono); background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* == app shell: szekciós oldalmenő + teljes szélességő fő terület ========= */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.app > .main { display: flex; flex-direction: column; min-width: 0; }
.app > .main > main { padding: 1.4rem clamp(1rem, 4vw, 2.5rem); flex: 1; min-width: 0; }

.side { background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 12px; }
.side .ws { display: flex; align-items: center; gap: 11px; padding: 8px 10px 14px; }
.side .ws .mk { width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6aa6ff); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px; }
.side .ws .nm { font-weight: 600; font-size: 15px; }
.side .ws .pl { font-size: 12px; color: var(--muted); }
.side .navsec { font-size: 11px; letter-spacing: .03em; color: var(--faint);
  padding: 14px 12px 6px; font-weight: 600; text-transform: uppercase; }
.side .nav { display: flex; flex-direction: column; gap: 2px; }
.side .nav a, .side .nav .guide { display: flex; align-items: center; gap: 11px; width: 100%;
  color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 9px;
  font-size: 14px; font-weight: 450; background: none; border: 0; text-align: left; font-family: inherit; }
.side .nav a .ic, .side .nav .guide .ic { color: var(--faint); display: flex; }
.side .nav a:hover, .side .nav .guide:hover { background: var(--surface-2); color: var(--ink); }
.side .nav a.active { background: var(--accent-weak); color: var(--accent-text); font-weight: 500; }
.side .nav a.active .ic { color: var(--accent-text); }
.side .nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side .grow { flex: 1; }
.side .sidefoot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.side .theme { display: flex; gap: 4px; background: var(--surface-2); border-radius: 10px;
  padding: 3px; margin-bottom: 10px; }
.side .theme button { flex: 1; border: 0; background: transparent; color: var(--muted);
  border-radius: 7px; padding: 7px; font-size: 12px; }
:root[data-theme="light"] .side .theme button[data-set="light"],
:root:not([data-theme]) .side .theme button[data-set="light"],
:root[data-theme="dark"] .side .theme button[data-set="dark"] {
  background: var(--panel); color: var(--ink); box-shadow: var(--sh); }
/* Mozgás-beállítás panel (discovery 3D sebességek) — összecsukható, a téma alatt */
.side .motion { margin-bottom: 10px; }
.side .motion > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--muted);
  padding: 7px; border-radius: 7px; background: var(--surface-2); }
.side .motion > summary::-webkit-details-marker { display: none; }
.side .motion > summary::before { content: "▸ "; font-size: 10px; }
.side .motion[open] > summary::before { content: "▾ "; }
.side .motion[open] > summary { color: var(--ink); margin-bottom: 8px; }
.side .motrow { display: flex; flex-direction: column; gap: 3px; padding: 4px 2px; }
.side .motrow label { font-size: 11px; color: var(--muted); }
.side .motrow input[type="range"] { width: 100%; height: 3px; accent-color: var(--accent, #8957e5); }
.side .motreset { width: 100%; margin-top: 6px; font-size: 11px; padding: 6px; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 6px; }
.side .who .av { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.side .who .whoname { min-width: 0; flex: 1; }
.side .who .nm { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who .ro { font-size: 11px; color: var(--muted); }
.side .who .logout { margin: 0; }
.side .who .logout button { padding: .2rem .5rem; font-size: .75rem; }
/* halk verzió-bélyeg az oldalsáv alján (title = pontos SHA) */
.side .appver { margin-top: 8px; padding: 0 6px; font-size: 11px; color: var(--faint);
  letter-spacing: .02em; cursor: default; }

/* aktív „új verzió elérhető" sáv (version-watch.js injektálja a <body>-ba) */
#spechive-update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 10px 34px #0007; font-size: 14px; }
#spechive-update-bar .uv-msg { flex: 1; min-width: 0; }
#spechive-update-bar button { flex: none; }

/* A `rejected` promptot a deploy utáni ELSŐ friss betöltéstől látni (a deploy
   pillanatában nyitott, régi lap még a beépített fehér modalt hozza egyszer). */
/* Testreszabott Blazor újracsatlakozó UI (#components-reconnect-modal). Rejtve,
   amíg a Blazor rá nem teszi a components-reconnect-* osztályt; sötét kártya a
   nyers fehér modal helyett. A `rejected` (szerver újraindult = új build) teljes
   elsötétítő háttérrel középre emeli a kártyát, mert a lap ekkor már „halott". */
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-paused,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
  display: flex; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10001; }
#components-reconnect-modal.components-reconnect-rejected {
  inset: 0; left: 0; transform: none; background: #0009; align-items: center; justify-content: center; }
.reconnect-card { display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 10px 34px #0007; font-size: 14px; }
/* alapból minden állapot-tartalom rejtve; a Blazor-osztály mutatja a megfelelőt */
.reconnect-card .rc-msg, .reconnect-card .rc-btn, .reconnect-card .rc-spin { display: none; }
.reconnect-card .rc-msg { flex: 1; min-width: 0; }
.components-reconnect-show .rc-reconnecting, .components-reconnect-retrying .rc-reconnecting,
.components-reconnect-paused .rc-reconnecting { display: block; }
.components-reconnect-show .rc-spin, .components-reconnect-retrying .rc-spin,
.components-reconnect-paused .rc-spin { display: inline-block; }
.components-reconnect-failed .rc-failed, .components-reconnect-failed .rc-retry { display: inline-block; }
.components-reconnect-failed .rc-failed { display: block; }
.components-reconnect-rejected .rc-rejected, .components-reconnect-rejected .rc-reload { display: inline-block; }
.components-reconnect-rejected .rc-rejected { display: block; }
.rc-spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent, #8957e5);
  border-radius: 50%; animation: rc-spin 0.8s linear infinite; }
@keyframes rc-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .side .navsec, .side .grow, .side .sidefoot { display: none; }
  .side .ws { padding: 6px 8px; }
  .side .nav { flex-direction: row; gap: 4px; }
}

/* buttons + forms */
button { font: inherit; cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-ink); border: none;
  border-radius: var(--radius); padding: .35rem 1rem; font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: var(--radius); padding: .3rem .8rem; }
button.ghost:hover { color: var(--ink); border-color: var(--muted); }
button.ghost.danger:hover { color: var(--warn); border-color: var(--warn); }
input, textarea, select { font: inherit; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 4.5rem; width: 100%; resize: vertical; }
.filter { display: flex; gap: .5rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: .5rem; margin: .6rem 0; }
.toggle { color: var(--muted); font-size: .85rem; display: flex; gap: .35rem; align-items: center; }
.error { color: var(--warn); }
.empty { color: var(--muted); font-style: italic; }

/* the signature: seq stamps */
.stamp { font-family: var(--mono); font-size: .78rem; font-weight: 600;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--line);
  border-radius: 4px; padding: .05rem .45rem; letter-spacing: .03em; }

/* badges + status colors */
.badge { display: inline-block; border-radius: 999px; padding: .05rem .6rem;
  font-size: .75rem; background: var(--surface-2); color: var(--muted); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.st-planned { color: var(--muted); }
.st-inprogress { color: var(--info); }
.st-completed { color: var(--ok); }
.st-abandoned, .st-rejected { color: var(--muted); text-decoration: line-through; }
.st-approved { color: var(--ok); }
.st-proposed { color: var(--accent); }
.st-superseded { color: var(--muted); }

/* needs-attention feed */
.attention { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: .7rem 1rem; margin-bottom: 1.1rem; }
.attention-row { display: flex; gap: .6rem; align-items: center; padding: .3rem 0;
  text-decoration: none; color: inherit; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 0 0 .55rem; font-size: 1.02rem; }
.card.archived { opacity: .55; }
.meta { color: var(--muted); font-size: .8rem; }

/* tabs */
.tabs { display: flex; gap: 1.4rem; margin: 1rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: none; color: var(--muted); padding: .45rem 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* == board szűrősor (v4) ================================================== */
.filters { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.filters .cab { color: var(--muted); font-size: 13px; }
.filters .areafilter { display: flex; align-items: center; gap: 9px; }
.filters .swlist { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filters .sw2 { position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); background: color-mix(in srgb, var(--c) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--surface)); padding: 4px 10px 4px 8px; border-radius: 999px; }
.filters .sw2 .d { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.filters .sw2.off { opacity: .4; filter: grayscale(.6); }
.filters .fchip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 10px; font-size: 13px; color: var(--ink); box-shadow: var(--sh); }
.filters .fchip select { border: 0; background: transparent; color: var(--ink); font-size: 13px; padding: 2px; }
.filters .seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.filters .seg button { border: 0; background: transparent; color: var(--muted); border-radius: 7px;
  padding: 6px 11px; font-size: 12.5px; }
.filters .seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--sh); }
.filters .search { display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 12px; box-shadow: var(--sh); }
.filters .search input { border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); min-width: 180px; }
.filters .search input::placeholder { color: var(--faint); }
.filters .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  margin-left: auto; user-select: none; cursor: pointer; }
.filters .toggle .sw { width: 36px; height: 21px; border-radius: 999px; background: var(--line-2); position: relative; transition: .15s; flex: none; }
.filters .toggle .sw::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.filters .toggle.on .sw { background: var(--accent); }
.filters .toggle.on .sw::after { left: 17px; }

/* == board (v4): teljes szélesség, terület-színkódolt gazdag kártyák ====== *
 * Az area színe a kártya `--c` inline változója (AreaColor); area nélkül --c
 * nincs beállítva, a color-mix a `transparent` fallbackkel semleges marad. */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.board .col { display: flex; flex-direction: column; min-width: 0; }
.board .col-h { display: flex; align-items: center; gap: 9px; padding: 2px 4px 12px; }
.board .col-h .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.board .col-h h3 { font-size: 14px; font-weight: 600; margin: 0; }
.board .col-h .n { color: var(--muted); font-size: 12px; font-weight: 600; background: var(--surface-2);
  border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.board .stack { display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 6px; margin: 0; min-height: 40px; }

.card { position: relative; background: color-mix(in srgb, var(--c, transparent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c, transparent) 14%, var(--line));
  border-left: 3px solid var(--c, var(--line)); border-radius: 13px; padding: 15px;
  box-shadow: var(--sh); cursor: pointer; transition: box-shadow .12s; }
.card:hover { box-shadow: var(--sh-2); }
.card .t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.card .t .cid { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--faint);
  margin-right: 5px; letter-spacing: .02em; }
.card .done-summary { color: var(--done); font-size: 13px; margin-top: 9px; line-height: 1.45; }
.card .dsc { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .prog { margin-top: 13px; }
.card .prog .lbl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.card .prog .lbl .v { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .bar { height: 6px; border-radius: 999px; background: var(--inset); overflow: hidden; }
.card .bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--progress)); }
.card .bar i.done { background: var(--done); }
.card .cfoot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; flex-wrap: wrap;
  border-top: 1px solid color-mix(in srgb, var(--c, transparent) 10%, var(--line)); }
.card .area { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--muted)) 16%, var(--surface));
  color: color-mix(in srgb, var(--c, var(--muted)) 72%, var(--ink)); display: inline-flex; align-items: center; gap: 6px; }
.card .area .ad { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.card .meta { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.card .avs { display: flex; margin-left: auto; }
.card .avs .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 600; color: #fff; border: 2px solid var(--surface); margin-left: -7px; }
.card .avs .av:first-child { margin-left: 0; }
.card .avs .av.agent { position: relative; }
.card .avs .av.agent::after { content: "AI"; position: absolute; bottom: -4px; right: -5px;
  background: var(--ink); color: var(--surface); font-size: 7.5px; font-weight: 700; padding: 0 3px; border-radius: 4px; line-height: 1.5; }

@media (max-width: 980px) { .board { grid-template-columns: 1fr; } }

/* live-update pulse — the board is alive */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
                   100% { box-shadow: 0 0 0 9px transparent; } }
.pulse { animation: pulse .9s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } * { transition: none !important; } }

/* timeline as ledger */
.timeline .entry { display: grid; grid-template-columns: 3.6rem 1fr; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .6rem .9rem; margin-bottom: .55rem; }
.timeline .entry .rail { font-family: var(--mono); font-size: .78rem; color: var(--accent); padding-top: .15rem; }
.timeline .entry.conflict { border-left: 3px solid var(--warn); }
.timeline .entry.superseded { opacity: .5; }
.timeline .entry p { margin: .25rem 0; }

/* spec + tables + login */
.spec { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem 1.6rem; border-radius: var(--radius); }
table { border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
td, th { padding: .45rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); }
/* .empty-layout = full-page centering wrapper (login/setup); distinct from
   .empty, the muted italic empty-state TEXT style further up. */
main.empty-layout { display: grid; place-items: center; min-height: 100vh; }
.login { background: var(--surface); border: 1px solid var(--line); padding: 2.2rem 2.6rem;
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; max-width: 380px; }
.login h1 { font-family: var(--mono); }
.login h1::after { content: "_"; color: var(--accent); }
.login input { display: block; width: 100%; margin: 1rem 0; }
.actions { display: flex; gap: .5rem; margin-top: .6rem; }

/* task detail panel */
.panel-backdrop { position: fixed; inset: 0; background: #0008; z-index: 40; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); z-index: 41;
  background: var(--surface); border-left: 1px solid var(--line); padding: 1.1rem 1.3rem;
  overflow-y: auto; box-shadow: -8px 0 30px #0007; }
.panel header { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.panel header .close { margin-left: auto; }
.panel .desc { margin: .4rem 0 .8rem; }
.meta-grid { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; font-size: .85rem; }
.meta-grid dt { color: var(--muted); }
.meta-grid dd { margin: 0; }
.notes { list-style: none; padding: 0; margin: 0 0 .6rem; }
.notes li { border-left: 2px solid var(--line); padding: .25rem 0 .25rem .7rem; margin-bottom: .35rem; }
.linked { display: flex; gap: .5rem; align-items: baseline; background: var(--surface-2);
  border-radius: var(--radius); padding: .45rem .7rem; margin-bottom: .4rem; font-size: .9rem; }
.panel footer { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* == egyszeri-kulcs felugró ablak (v4) =================================== */
.scrim { position: fixed; inset: 0; background: rgba(10,12,20,.5); backdrop-filter: blur(3px);
  display: none; place-items: center; z-index: 50; padding: 20px; }
.scrim.on { display: grid; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px;
  max-width: 470px; width: 100%; padding: 24px; box-shadow: var(--sh-2); }
.modal h2 { font-size: 18px; margin: 0 0 6px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.keybox { display: flex; gap: 8px; align-items: center; background: var(--inset);
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.keybox code { color: var(--ink); font-family: var(--mono); font-size: 13px; flex: 1; overflow: auto; background: none; padding: 0; }
.copy { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 8px 11px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.copy:hover { background: var(--surface-2); }
.modal .note { font-size: 12px; color: var(--muted); margin: 13px 0 18px; line-height: 1.5; }
.modal .acts { display: flex; justify-content: flex-end; }

/* == "Kösd be az agented" — MCP-kliens konfig (modal + Tagok súgó) ======== *
 * A kódblokk a .keybox / .spec pre nyelvét beszéli: --inset háttér, --line
 * keret, lekerekített, vízszintes görgetés; a copy a .copy gombot örökli.    */
.agentcfg { margin: 4px 0 18px; }
.agentcfg h3 { font-size: 14px; margin: 0 0 4px; }
.cfgbox { display: flex; gap: 8px; align-items: flex-start; }
.cfgbox pre { flex: 1; min-width: 0; margin: 0; background: var(--inset);
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  color: var(--ink); }
.cfgbox pre code { background: none; padding: 0; font-family: var(--mono); color: inherit; }
/* a kódblokk melletti copy ne nyúljon fel a pre teljes magasságára */
.cfgbox .copy { align-self: flex-start; }
.agenthelp { margin: 1.4rem 0; max-width: 680px; }
.agenthelp summary { cursor: pointer; font-weight: 600; }
.agenthelp .note { font-size: 13px; color: var(--muted); margin: .7rem 0; line-height: 1.55; }
.agenthelp .meta { margin: .7rem 0 0; }

/* bootstrap warning */
.bootstrap-banner { background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn); padding: .45rem 1.2rem; font-size: .85rem; }

/* == v1b: mobile/glasses-first (single column in a ~1080p portrait window) == */
.horizon .ops { display: grid; gap: 1rem; align-items: start; margin-bottom: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ops-block { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem 1rem; min-width: 0; }
/* wide content scrolls in ITS OWN container — the page body never pans */
.tabs { overflow-x: auto; }
.timeline { overflow-x: auto; }
.stack input { width: 100%; }
@media (max-width: 1100px) {
  .horizon .timeline .entry { grid-template-columns: 1fr; gap: .15rem; }
  .horizon .timeline .entry .rail { padding-top: 0; }
  .horizon form.filter { flex-direction: column; align-items: stretch; }
  .horizon form.filter input { width: 100%; }
}

/* G1 Related szekció — csoportosított linklista, terminális csomópont halványítva */
.related { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: .5rem 0 1rem; }
.related-group h4 { margin: 0 0 .3rem; }
.related-group ul { list-style: none; margin: 0; padding: 0; }
.related-group li { margin: .2rem 0; }
.related-dim { opacity: .5; }

/* G3 Graph szekció — szerver-renderelt réteges SVG, a meglévő tokenekből */
details.graph-section, details.related-section { margin: .4rem 0 1rem; }
details.graph-section summary, details.related-section summary { cursor: pointer; }
details.graph-section summary h3, details.related-section summary h3 { display: inline-block; margin: .3rem 0; }
.graph-svg { width: 100%; height: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.graph-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.2; }
.graph-node text { fill: var(--ink); font-size: 12px; }
.graph-node-deliverable rect { stroke: var(--accent); }
.graph-node-criterion rect { stroke: var(--ok); }
.graph-node-task rect { stroke: var(--info); }
.graph-node-decision rect { stroke: var(--accent);
  fill: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.graph-node-code rect { stroke: var(--muted); stroke-dasharray: 3 2; }
.graph-node-code text { font-family: var(--mono); font-size: 11px; }
.graph-node-area rect { stroke: var(--muted); }
.graph-node-dev rect { stroke: var(--muted);
  fill: color-mix(in srgb, var(--info) 10%, var(--surface-2)); }
.graph-center rect { stroke-width: 2.5; }
.graph-dim { opacity: .45; }
.graph-edge { stroke: var(--line); stroke-width: 1.2; fill: none; }
.graph-edge-conflicts_with { stroke: var(--warn); stroke-width: 1.8; stroke-dasharray: 5 3; }
.graph-edge-supersedes { stroke: var(--accent); }
#graph-arrow path { fill: var(--accent); }
.graph-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center;
  font-size: .8rem; color: var(--muted); margin: .3rem 0 .4rem; }
.legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.legend-swatch { width: 22px; height: 12px; overflow: visible; }

/* == 2. kör: maradék nézetek az új dizájnnyelvben ========================= *
 * Szállítandó-/kritérium-státuszok a board st-* mintájára, kritérium-
 * sorkártyák, spec-próza, és néhány utility az inline stílusok kiváltására. */
.st-active { color: var(--info); }
.st-delivered, .st-satisfied { color: var(--ok); }
.st-dropped, .st-removed { color: var(--muted); }
.st-open { color: var(--info); }
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }

/* szállítandó-kártya: a gazdag .card chrome-ot örökli (haladás-sáv = kritériumok,
   bal-sáv a státusz színe); a .cards grid tördeli, de blokként viselkedjen */
a.card.deliv { display: block; }

/* elfogadási kritériumok a horizont-nézeten — state-színű sor-kártyák
   (a régi struktúra, új kártya-kerettel; a tartalom folyásban marad) */
.criteria { display: flex; flex-direction: column; gap: 10px; margin: .5rem 0 1.2rem; }
.crit { background: color-mix(in srgb, var(--c, transparent) 4%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c, transparent) 13%, var(--line));
  border-left: 3px solid var(--c, var(--line)); border-radius: 11px; padding: 11px 14px; line-height: 1.6; }
.crit .stamp { margin-right: .15rem; }
.crit .ghost { margin: .25rem .15rem 0 0; }
.crit form.stack { margin-top: .5rem; }

/* spec: olvasható prózai tipográfia a renderelt markdownhoz */
.spec { line-height: 1.65; }
.spec > :first-child { margin-top: 0; }
.spec > :last-child { margin-bottom: 0; }
.spec h1, .spec h2, .spec h3 { font-family: var(--sans); line-height: 1.3; margin: 1.4em 0 .5em; }
.spec h1 { font-size: 1.4rem; } .spec h2 { font-size: 1.18rem; } .spec h3 { font-size: 1rem; }
.spec p, .spec li { color: var(--ink-2); }
.spec ul, .spec ol { padding-left: 1.4rem; }
.spec li { margin: .25rem 0; }
.spec blockquote { margin: 1rem 0; padding: .4rem 1rem; border-left: 3px solid var(--accent);
  color: var(--muted); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.spec pre { background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; overflow-x: auto; }
.spec pre code { background: none; padding: 0; }
.spec a { text-decoration: underline; }
.spec table { margin: .8rem 0; width: 100%; }

/* tábla-cellán belüli gomb-sor — a globális .actions flexet NEM tesszük
   <td>-re (az kitörné a table-cell layoutot); belső wrapper viszi a flexet */
.rowacts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* "Agent bekötése" oszlop — kliens-ikonok soronként (VS Code/Insiders/Claude/MCP) */
.agentcol { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; width: max-content; }
.agent-ic { width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.agent-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agent-ic:hover { border-color: currentColor; background: var(--surface-2); }
.agent-ic.vsc { color: #2d7ff9; }
.agent-ic.vsci { color: #22a06b; }
.agent-ic.claude { color: #cc7a4f; }
.agent-ic.mcp { color: var(--accent-text); }
.connectmodal { max-width: 560px; }
.connectmodal .vsc-open { display: inline-block; text-decoration: none; }
.connectmodal pre { margin: 0; }

/* passkey (WebAuthn) — fiók-szintű belépési mód a Tagok oldalon + a login
   "vagy passkey" elválasztó */
.pksec { max-width: 680px; margin: .2rem 0 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.pklist { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .7rem; }
.pkitem { display: flex; align-items: center; gap: .7rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px; padding: .55rem .8rem; }
.pkitem .ic { font-size: 1.05rem; }
.pkitem .grow { flex: 1; min-width: 0; }
.pkitem .nm { font-weight: 500; font-size: .9rem; }
.orsep { display: flex; align-items: center; gap: .6rem; color: var(--faint); font-size: .8rem; margin: 1.1rem 0 .7rem; }
.orsep::before, .orsep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .pk-btn { width: 100%; }

/* projekt Beállítások nézet — szekciókra bontott, egy oszlop (spec #2) */
.settings { max-width: 680px; }
.settings .setsec { padding-bottom: 1.1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.settings .setsec:last-child { border-bottom: 0; }
.settings .setsec h4 { margin-top: .3rem; }
.settings .setsec.danger h4 { color: var(--warn); }
.settings .filter { margin-bottom: 0; }

/* projekt-tagok chip-listája (a régi 1-oszlopos tábla helyett) */
.memberlist { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .2rem .7rem .2rem .25rem; font-size: .85rem; }
.chip .av { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-2); display: grid; place-items: center; font-size: 10px; font-weight: 600; }

/* form-sor növő mező — kiváltja a szétszórt style="flex:1"-et */
.f1 { flex: 1; min-width: 0; }

/* projekt-fejléc eszköztár — kiváltja a <h2>-be ágyazott inline gombokat */
.phead { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.phead h2 { margin: 0; }
.phead .sub { color: var(--muted); font-size: .8rem; }
.phead .ptools { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.phead .ptools a.ghost { text-decoration: none; }

/* == Felfedező gráf (discovery 3D viz) ===================================== *
 * A .discovery-canvas a 3d-force-graph (vendorolt) host-eleme — valós magasság
 * kell neki, különben a WebGL-vászon 0px. A FAB és a toast a canvas-hoz képest
 * abszolút pozicionált, ezért a canvas position:relative. A "tér" szándékosan
 * sötét mindkét témában (a glow-glyphek sötét háttérre tervezettek). */
.discovery-bar { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .2rem 0 .7rem; }
.discovery-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.discovery-toggle button.ghost { border: none; border-radius: 0; margin: 0; padding: .3rem .7rem; }
.discovery-toggle button.ghost.active { background: var(--accent-weak); color: var(--accent-text); }
.discovery-canvas .discovery-fab button.on { background: var(--accent-weak); border-color: var(--accent); color: var(--accent-text); }
.discovery-legend { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-left: auto; font-size: .78rem; color: var(--muted); }
.discovery-legend b { font-style: normal; color: var(--ink-2); }
.discovery-empty { padding: 1rem 1.1rem; margin: 0 0 .7rem; display: flex; align-items: center;
  gap: .6rem; flex-wrap: wrap; }
.discovery-empty p { margin: 0; color: var(--muted); }
.discovery-empty p.err { color: var(--warn); flex-basis: 100%; }
.discovery-empty input { flex: 1 1 220px; }

.discovery-canvas { position: relative; width: 100%; height: clamp(480px, 70vh, 820px);
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  background: #0c0d12; box-shadow: var(--sh-2); }

/* A FAB abszolút a canvas-hoz képest (a JS rAF-enként állítja a left/top-ot a
   node vetített képernyő-koordinátájára). Scope-olva .discovery-canvas alá, hogy
   a specificitás garantáltan verjen bármilyen öröklött/alap `position`-t — így
   SOHA nem eshet vissza `static`-ra (full-width, canvas-aljára csúszva). */
.discovery-canvas .discovery-fab { position: absolute; left: 0; top: 0; z-index: 6;
  display: none; width: auto; gap: 5px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; }
.discovery-canvas .discovery-fab button { pointer-events: auto; height: 26px; border-radius: 13px;
  padding: 0 11px; border: 1px solid #30363d; background: rgba(13, 17, 23, 0.94); color: #cdd6e0;
  font: 600 11.5px var(--sans); cursor: pointer; box-shadow: 0 2px 9px rgba(0, 0, 0, .55); }
.discovery-canvas .discovery-fab button:hover { border-color: #4a5568; color: #fff; }
.discovery-canvas .discovery-fab button.del { padding: 0 9px; }
.discovery-canvas .discovery-fab button.del:hover { border-color: #8c3b3b; color: #ff9b9b; }

.discovery-toast { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9;
  background: #17351f; border: 1px solid #2ea043; color: #aff5c0; font-size: 12.5px;
  padding: 7px 13px; border-radius: 8px; opacity: 0; transition: opacity .25s; pointer-events: none;
  max-width: 80%; }
.discovery-toast.show { opacity: 1; }
.discovery-toast.err { background: #3a1a1a; border-color: #8c3b3b; color: #ff9b9b; }

/* AI gondolkodótárs (grill) — a canvas melletti jobb oszlop */
.discovery-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: .8rem; align-items: start; }
@media (max-width: 1000px) { .discovery-split { grid-template-columns: 1fr; } }
/* The project map has a single canvas (no dialogue column) → full width, no gutter. */
.discovery-split:has(> .map) { grid-template-columns: 1fr; }
.discovery-dialogue { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .8rem; display: flex; flex-direction: column; gap: .6rem; max-height: clamp(480px, 70vh, 820px); overflow-y: auto; }
.discovery-dialogue h3 { margin: 0; font-size: .95rem; color: var(--ink); }
.discovery-dialogue h3 small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.discovery-dialogue .hint { margin: 0; color: var(--muted); font-size: .85rem; }
.discovery-dialogue .err { margin: 0; color: var(--warn); font-size: .85rem; }
.discovery-dialogue .chat { display: flex; flex-direction: column; gap: .4rem; }
.discovery-dialogue .bubble { padding: .45rem .65rem; border-radius: 10px; font-size: .85rem; max-width: 92%; white-space: pre-wrap; }
.discovery-dialogue .bubble.ai { background: var(--surface-2); color: var(--ink-2); align-self: flex-start; }
.discovery-dialogue .bubble.user { background: var(--accent-weak); color: var(--accent-text); align-self: flex-end; }
.discovery-dialogue .questions { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .85rem; }
.discovery-dialogue .composer { display: flex; gap: .4rem; }
.discovery-dialogue .composer input { flex: 1 1 auto; min-width: 0; }
.discovery-dialogue .proposal { padding: .65rem .75rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; }
.discovery-dialogue .proposal p { margin: .3rem 0; color: var(--muted); font-size: .82rem; }
.discovery-dialogue .proposal ul { margin: 0 0 .4rem; padding-left: 1.1rem; font-size: .82rem; color: var(--ink-2); }
.discovery-dialogue .proposal .actions { display: flex; gap: .4rem; }

/* Control Center: right-docked edit form (overlay). Shown only while editing a node/edge;
   absolute to .discovery-split so it floats over the canvas's right edge in both tabs
   (map = single canvas, Felfedezés = canvas + dialogue) without changing the grid. */
.discovery-inspector { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7;
  width: min(340px, 86%); display: flex; flex-direction: column; gap: .6rem;
  background: var(--panel); border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  border-radius: 10px; padding: .75rem; overflow-y: auto; box-shadow: -14px 0 40px rgba(0, 0, 0, .45); }
.discovery-inspector header { display: flex; align-items: center; gap: .5rem; }
.discovery-inspector .pill { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; color: #fff; padding: .12rem .5rem; border-radius: 999px; background: var(--accent); }
.discovery-inspector .pill-problem { background: #e3a008; }
.discovery-inspector .pill-deliverable { background: #8957e5; }
.discovery-inspector .pill-criterion { background: #b084f0; }
.discovery-inspector .pill-question { background: #4fc99a; }
.discovery-inspector .pill-insight { background: #1e90ff; }
.discovery-inspector .state { font-size: .72rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .1rem .5rem; }
.discovery-inspector .x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.discovery-inspector .x:hover { color: var(--ink); }
.discovery-inspector .body { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 auto; }
.discovery-inspector label { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: .25rem; }
.discovery-inspector label b { color: var(--ink); font-family: var(--mono, monospace); margin-left: .3rem; }
.discovery-inspector input, .discovery-inspector textarea { width: 100%; }
.discovery-inspector input[type=range] { accent-color: var(--accent); }
.discovery-inspector .chip { font-size: .82rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .35rem .5rem; }
.discovery-inspector .chip.readonly { color: var(--muted); }
.discovery-inspector .err { margin: .2rem 0 0; color: var(--warn); font-size: .82rem; }
.discovery-inspector footer { display: flex; gap: .4rem; }
.discovery-inspector .save { flex: 1 1 auto; }
.discovery-inspector .drop-note { margin: 0; color: var(--muted); font-size: .82rem; }
.discovery-inspector .drop-check { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.discovery-inspector .drop-check input { width: auto; }
.discovery-inspector .drop-tasks { margin: .1rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .82rem; }
.discovery-inspector .drop-go { background: #3a1a1a; border-color: #8c3b3b; color: #ffb3ab; }
.discovery-inspector .drop-go:hover:not(:disabled) { background: #8c3b3b; color: #fff; }
.discovery-inspector .drop-go:disabled { opacity: .5; cursor: not-allowed; }

/* Control Center: the command palette — a docked search bar at the bottom of the canvas.
   Client-side search over the loaded payload; results open upward. ⌘K focuses it. */
.discovery-omni { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 8; width: min(440px, 86%); }
.discovery-omni > input { width: 100%; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #30363d; background: rgba(13, 17, 23, 0.92); color: #cdd6e0;
  font: 500 13px var(--sans); outline: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.discovery-omni > input:focus { border-color: var(--accent); }
.discovery-omni > input::placeholder { color: #6b7685; }
.omni-results { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
  background: rgba(13, 17, 23, 0.97); border: 1px solid #30363d; border-radius: 10px;
  padding: 4px; box-shadow: 0 -8px 28px rgba(0, 0, 0, .55); max-height: 46vh; overflow-y: auto; }
.omni-head { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .35rem .55rem .2rem; }
.omni-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 7px; cursor: pointer; }
.omni-row .ic { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 700 12px var(--sans); }
.omni-row .ic.wide { font-size: 9.5px; letter-spacing: -.02em; }
.omni-row .tx { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.2; }
.omni-row .tx b { font-weight: 600; color: #e6edf3; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni-row .tx small { color: #6b7685; font-size: 10.5px; }
.omni-row .sc { flex: none; font: 500 11px var(--mono, ui-monospace, monospace); color: #6ee7d8; }
.omni-row .tag { flex: none; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #6b7685; border: 1px solid var(--line-2); border-radius: 5px; padding: .08rem .35rem; }
.omni-row.on, .omni-row:hover { background: var(--accent-weak); }
.omni-row.on .tx b { color: #fff; }

/* Control Center: the Ctrl-multi-selection bottom table. */
.discovery-multi { margin-top: .8rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .55rem .8rem; border-bottom: 1px solid var(--line-2); }
.dm-head > b { color: var(--ink); font-size: .9rem; }
.dm-head .n { color: var(--muted); font-size: .82rem; }
.dm-bulk { display: flex; align-items: center; gap: .5rem; margin-left: auto; color: var(--muted); }
.dm-bulk label { text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.dm-bulk input[type=range] { accent-color: var(--accent); width: 90px; }
.dm-bulk .dm-w { font-family: var(--mono, ui-monospace, monospace); color: var(--ink); font-size: .8rem; }
.dm-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; }
.dm-x:hover { color: var(--ink); }
.dm-wrap { max-height: 240px; overflow: auto; }
table.dm-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.dm-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .4rem .8rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.dm-table td { padding: .4rem .8rem; border-bottom: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
table.dm-table tr:last-child td { border-bottom: 0; }
table.dm-table .kd { display: inline-flex; align-items: center; gap: .45rem; }
table.dm-table .kd i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
table.dm-table .em { color: var(--ink); max-width: 420px; overflow: hidden; text-overflow: ellipsis; }

.card-proposals { display: flex; flex-direction: column; gap: .5rem; }
.card-proposals h3 { margin: 0; font-size: .95rem; color: var(--ink); }
.card-proposals .hint, .card-proposals .summary { margin: 0; color: var(--muted); font-size: .85rem; }
.card-proposals .err { margin: 0; color: var(--warn); font-size: .85rem; }
.card-proposals .proposal { padding: .65rem .75rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; }
.card-proposals .proposal p { margin: .3rem 0; color: var(--muted); font-size: .82rem; }
.card-proposals .proposal .actions { display: flex; gap: .4rem; }
