/* Aura Tracker: skeuomorf (lágy, domború) felület két témával.
   Világos: halvány levendula alap, kiemelkedő kártyák fehér fénnyel és kékesszürke árnyékkal, indigó kiemelés.
   Sötét: grafit alap, finoman fénylő peremű kártyák, lila-kék kiemelés.
   A téma alapból a rendszert követi; a html[data-theme] felülírja (Auto / Világos / Sötét kapcsoló). */

:root {
  color-scheme: light;
  --bg: #e5e8f2;
  --bg-grad: radial-gradient(1100px 700px at 12% -12%, #f4f5fc 0%, transparent 62%), linear-gradient(160deg, #e9ecf6 0%, #dde1ee 100%);
  --surface: #eaedf6;
  --surface-hi: #f3f5fb;
  --surface-lo: #e1e5f0;
  --ink: #26294a;
  --ink-2: #444969;
  --muted: #7b819f;
  --line: rgba(110, 118, 160, .16);
  --accent: #5146d6;
  --accent-2: #7b70f1;
  --accent-grad: linear-gradient(135deg, #8a80f6 0%, #5146d6 100%);
  --hero-grad: linear-gradient(135deg, #9c93ff 0%, #6d63e6 55%, #5a6fe0 100%);
  --accent-soft: rgba(81, 70, 214, .12);
  --on-accent: #ffffff;
  --teal: #22a3b5;
  --sh-dark: rgba(158, 166, 198, .62);
  --sh-light: rgba(255, 255, 255, .96);
  --raise: 8px 8px 18px var(--sh-dark), -8px -8px 18px var(--sh-light);
  --raise-sm: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  --raise-xs: 2px 2px 5px var(--sh-dark), -2px -2px 5px var(--sh-light);
  --inset: inset 5px 5px 11px var(--sh-dark), inset -5px -5px 11px var(--sh-light);
  --inset-sm: inset 2px 2px 6px var(--sh-dark), inset -2px -2px 6px var(--sh-light);
  --card-grad: linear-gradient(145deg, var(--surface-hi) 0%, var(--surface-lo) 100%);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .7);
  --planned: #7b819f;
  --progress: #4b5ddc;
  --verify: #bd6f0c;
  --done: #1c955a;
  --blocked: #cf4239;
  --rejected: #9aa0b8;
  --term-bg: #171a20;
  --term-ink: #d8dbe3;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --side-w: 252px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1f25;
    --bg-grad: radial-gradient(900px 600px at 85% -15%, #2b3140 0%, transparent 60%), linear-gradient(160deg, #20242b 0%, #171a1f 100%);
    --surface: #252a32;
    --surface-hi: #2d323b;
    --surface-lo: #21252c;
    --ink: #e9ebf1;
    --ink-2: #c6cad6;
    --muted: #8a92a3;
    --line: rgba(255, 255, 255, .07);
    --accent: #a093ff;
    --accent-2: #7f9cf6;
    --accent-grad: linear-gradient(135deg, #ab9fff 0%, #7f8af3 100%);
    --hero-grad: linear-gradient(135deg, #a597ff 0%, #8f8cf6 50%, #7aa5f5 100%);
    --accent-soft: rgba(160, 147, 255, .15);
    --teal: #5ccfdb;
    --sh-dark: rgba(0, 0, 0, .52);
    --sh-light: rgba(255, 255, 255, .045);
    --rim: inset 0 1px 0 rgba(255, 255, 255, .05);
    --planned: #9aa1b1;
    --progress: #93a5ff;
    --verify: #f2b25d;
    --done: #62d49a;
    --blocked: #ff7e75;
    --rejected: #6b7282;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1f25;
  --bg-grad: radial-gradient(900px 600px at 85% -15%, #2b3140 0%, transparent 60%), linear-gradient(160deg, #20242b 0%, #171a1f 100%);
  --surface: #252a32;
  --surface-hi: #2d323b;
  --surface-lo: #21252c;
  --ink: #e9ebf1;
  --ink-2: #c6cad6;
  --muted: #8a92a3;
  --line: rgba(255, 255, 255, .07);
  --accent: #a093ff;
  --accent-2: #7f9cf6;
  --accent-grad: linear-gradient(135deg, #ab9fff 0%, #7f8af3 100%);
  --hero-grad: linear-gradient(135deg, #a597ff 0%, #8f8cf6 50%, #7aa5f5 100%);
  --accent-soft: rgba(160, 147, 255, .15);
  --teal: #5ccfdb;
  --sh-dark: rgba(0, 0, 0, .52);
  --sh-light: rgba(255, 255, 255, .045);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .05);
  --planned: #9aa1b1;
  --progress: #93a5ff;
  --verify: #f2b25d;
  --done: #62d49a;
  --blocked: #ff7e75;
  --rejected: #6b7282;
}

/* ---------- Alap ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body { min-height: 100vh; }
body { background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 15px; margin: 22px 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 12px; margin: 0 0 10px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
code, kbd, pre { font-family: var(--mono); }
.sub { color: var(--muted); font-size: 12.5px; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Keret: oldalsó menü és tartalom ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 8px 18px 18px; z-index: 30; }
.side-panel { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; border-radius: var(--r-xl);
  background: var(--card-grad); box-shadow: var(--raise), var(--rim); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; padding: 2px 6px 8px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: inherit; }
.logo { width: 30px; height: 30px; border-radius: 10px 14px 10px 14px; background: var(--accent-grad); box-shadow: var(--raise-xs), inset 0 1px 1px rgba(255, 255, 255, .45); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 8px 8px 8px 12px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.menu { display: grid; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s, box-shadow .15s; }
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); background: var(--surface); box-shadow: var(--inset-sm); }
.menu a.active .icon { color: var(--accent); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.count { margin-left: auto; min-width: 22px; text-align: center; background: var(--accent-grad); color: var(--on-accent); border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 700; box-shadow: var(--raise-xs); }
.count.warn { background: linear-gradient(135deg, #f6b15a, #e2851f); }
.menu .dot { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.side-tools .btn { flex: 1; justify-content: center; }
.who { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-md); box-shadow: var(--inset-sm); background: var(--surface); }
.who-in { display: grid; min-width: 0; flex: 1; }
.who-in .sub { white-space: nowrap; }
.who input { border: 0; box-shadow: none; background: transparent; padding: 0; min-height: 0; font-weight: 600; width: 100%; min-width: 0; }
.who input:focus { box-shadow: none; }
.who input:placeholder-shown { color: var(--blocked); }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--on-accent); background: var(--accent-grad); box-shadow: var(--raise-xs); flex: none; }
.main-col { min-width: 0; overflow-x: clip; }
.main { padding: 26px 30px 70px 22px; max-width: 1500px; }
.mobilebar { display: none; }

/* ---------- Oldalfej ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-head p { margin: 6px 0 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.crumb a { text-decoration: none; font-weight: 600; }

/* ---------- Panelek, kártyák ---------- */
.panel, .card { background: var(--card-grad); border-radius: var(--r-lg); box-shadow: var(--raise), var(--rim); padding: 18px 20px; }
.panel > h2:first-child, .panel > h3:first-child, .panel > header:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head .spacer { flex: 1; }
.well { background: var(--surface); box-shadow: var(--inset-sm); border-radius: var(--r-md); padding: 12px 14px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.grid-main > *, .stack > *, .cols-2 > *, .cols-3 > *, .stats > * { min-width: 0; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Statisztika kártyák */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat { position: relative; display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--card-grad); box-shadow: var(--raise), var(--rim);
  text-decoration: none; transition: transform .15s; }
a.stat:hover { transform: translateY(-2px); color: inherit; }
.stat .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.stat .num { font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat .corner { order: 3; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat.hero { background: var(--hero-grad); color: #fff; box-shadow: var(--raise), inset 0 1px 0 rgba(255, 255, 255, .35); }
.stat.hero .label, .stat.hero .corner, .stat.hero .num small { color: rgba(255, 255, 255, .88); }
.stat.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 45%); pointer-events: none; }
.meter { height: 6px; border-radius: 999px; background: var(--surface-lo); box-shadow: var(--inset-sm); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); }
.meter.teal > i { background: linear-gradient(90deg, var(--teal), var(--accent-2)); }
.meter.lg { height: 10px; }
.stat.hero .meter { background: rgba(255, 255, 255, .25); box-shadow: none; }
.stat.hero .meter > i { background: #fff; }

/* Gyűrűs haladásjelző */
.ring { --p: 0; width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 4px;
  background: var(--surface); box-shadow: var(--raise); position: relative; }
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-2), var(--accent) calc(var(--p) * 1%), var(--surface-lo) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 78%); mask: radial-gradient(closest-side, transparent 76%, #000 78%); }
.ring-in { position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center;
  background: var(--card-grad); box-shadow: var(--raise-sm); }
.ring-in b { font-size: 28px; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.ring-in span { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ring.sm { width: 64px; margin: 0; }
.ring.sm::before { inset: 6px; }
.ring.sm .ring-in { width: 60%; }
.ring.sm .ring-in b { font-size: 12px; }
.ring.xs { width: 46px; margin: 0; box-shadow: var(--raise-sm); }
.ring.xs::before { inset: 4px; }
.ring.xs .ring-in { width: 66%; box-shadow: none; background: transparent; }
.ring.xs .ring-in b { font-size: 10.5px; }

/* Halmozott sáv */
.stackbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-lo); box-shadow: var(--inset-sm); }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; margin-top: 4px; }
.kv div { display: grid; }
.kv b { font-size: 20px; font-variant-numeric: tabular-nums; }
.kv span { font-size: 12px; color: var(--muted); }

/* Aktivitásgörbe */
.chart { width: 100%; height: 200px; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart .l1 { stroke: var(--accent); stroke-width: 2.4; fill: none; }
.chart .l2 { stroke: var(--teal); stroke-width: 2.4; fill: none; stroke-dasharray: 2 5; stroke-linecap: round; }
.chart .dot1 { fill: var(--accent); stroke: var(--surface-hi); stroke-width: 2; }

/* Teendőlista */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo > li { min-width: 0; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--raise-sm); }
.todo li .grow { flex: 1; min-width: 0; }
.todo li .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; box-shadow: var(--inset-sm); color: var(--accent); }
.todo .ico.warn { color: var(--verify); }
.todo .ico.err { color: var(--blocked); }
.todo .ico.ok { color: var(--done); }

/* Első lépések */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 3px 12px; align-items: start; }
.checklist .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--raise-xs); color: var(--muted); font-weight: 700; font-size: 12px; }
.checklist li.done .mark { background: var(--accent-grad); color: #fff; box-shadow: var(--raise-xs), inset 0 1px 1px rgba(255, 255, 255, .4); }
.checklist li.done > b { color: var(--muted); }
.checklist .how { font-size: 12.5px; color: var(--muted); grid-column: 2; }
.checklist .how .cmd, .checklist .how .btn { margin-top: 6px; }
.checklist li.done .how { display: none; }

/* Egészségjelző */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.dot.ok { background: var(--done); box-shadow: 0 0 8px color-mix(in srgb, var(--done) 70%, transparent); }
.dot.warn { background: var(--verify); box-shadow: 0 0 8px color-mix(in srgb, var(--verify) 70%, transparent); }
.dot.err { background: var(--blocked); box-shadow: 0 0 8px color-mix(in srgb, var(--blocked) 70%, transparent); }
.health-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; }
.health-list li .sub { text-align: right; }

/* Kis haladásjelző az oldalsávban */
.mini-progress { display: grid; padding: 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--raise-sm); text-decoration: none; }
.mini-progress:hover { color: inherit; }
.mp-full { display: grid; gap: 7px; }
.mp-mini { display: none; position: relative; }
.mp-mini .dot { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border: 2px solid var(--surface); box-sizing: content-box; }
.mini-progress .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mini-progress b { color: var(--ink); }
.mini-progress .health { display: flex; gap: 12px; font-size: 11.5px; }
.mini-progress .health span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Gombok és űrlapelemek ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: var(--r-md);
  background: var(--accent-grad); color: var(--on-accent); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--raise-sm), inset 0 1px 0 rgba(255, 255, 255, .3); transition: box-shadow .12s, transform .12s, filter .12s; }
.btn:hover { color: var(--on-accent); filter: brightness(1.06); }
.btn:active { box-shadow: var(--inset-sm); transform: translateY(1px); }
.btn.ghost { background: var(--card-grad); color: var(--ink); box-shadow: var(--raise-sm), var(--rim); }
.btn.ghost:hover { color: var(--accent); filter: none; }
.btn.ghost:active { box-shadow: var(--inset-sm); }
.btn.mark { background: linear-gradient(135deg, #2fc6b6, #1d9db1); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.btn.sm .icon { width: 15px; height: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.3); }

input, select, textarea { background: var(--surface); border: 0; border-radius: var(--r-md); padding: 9px 12px; box-shadow: var(--inset-sm); color: var(--ink); min-height: 38px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--inset-sm), 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { width: 100%; resize: vertical; min-height: 70px; line-height: 1.5; }
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; cursor: pointer;
  border-radius: 6px; background: var(--surface); box-shadow: var(--inset-sm); display: inline-grid; place-items: center; flex: none; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent-grad); box-shadow: var(--raise-xs); }
input[type=checkbox]:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
input[type=radio]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
label.f > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
label.f .sub { font-weight: 400; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }

/* Szegmentált kapcsoló (fülek, téma) */
.tabs, .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--inset-sm); flex-wrap: wrap; }
.tabs a, .seg button { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.tabs a:hover, .seg button:hover { color: var(--ink); }
.tabs a.active, .seg button.active { background: var(--card-grad); color: var(--accent); box-shadow: var(--raise-xs), var(--rim); }
.seg.theme { display: flex; }
.seg.theme button { flex: 1; padding: 6px 4px; }

/* ---------- Szűrősáv ---------- */
.bar { display: flex; gap: 12px; align-items: center; margin: 4px 0 16px; flex-wrap: wrap; }
.bar input[type=search] { min-width: 260px; flex: 1 1 260px; max-width: 440px; }
.bar .spacer { flex: 1; }
.bar h1 { margin: 0; }

/* ---------- Táblázat: lebegő sorok, státuszszínű perem ---------- */
.table-wrap { overflow-x: auto; margin: 0 -10px; padding: 0 10px 10px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 9px; }
th { text-align: left; padding: 4px 14px; font-size: 11.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
th .tip { text-transform: none; letter-spacing: 0; }
tbody tr { cursor: pointer; }
/* A sorok árnyéka a tbody-n (drop-shadow), így a cellák között nincs varrat. */
table:not(.plain) > tbody { filter: drop-shadow(3px 5px 7px var(--sh-dark)) drop-shadow(-3px -3px 6px var(--sh-light)); }
tbody td { padding: 12px 14px; vertical-align: middle; background: var(--surface-hi); }
tbody td:first-child { border-radius: var(--r-md) 0 0 var(--r-md); box-shadow: inset 4px 0 0 var(--row-edge, var(--line)); }
tbody td:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
tbody tr:hover td { background: var(--surface); }
tbody tr[data-s="Tervezett"] { --row-edge: var(--planned); }
tbody tr[data-s="Folyamatban"] { --row-edge: var(--progress); }
tbody tr[data-s="Ellenőrzésre vár"] { --row-edge: var(--verify); }
tbody tr[data-s="Kész"] { --row-edge: var(--done); }
tbody tr[data-s="Blokkolt"] { --row-edge: var(--blocked); }
tbody tr[data-s="Elvetve"] { --row-edge: var(--rejected); }
:root[data-theme="dark"] table:not(.plain) tbody td { background: var(--surface); }
:root[data-theme="dark"] table:not(.plain) tbody tr:hover td { background: var(--surface-hi); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) table:not(.plain) tbody td { background: var(--surface); }
  :root:not([data-theme="light"]) table:not(.plain) tbody tr:hover td { background: var(--surface-hi); }
}
td.id { font-variant-numeric: tabular-nums; color: var(--muted); width: 56px; font-weight: 600; }
td.title { min-width: 280px; }
.title-text { font-weight: 650; }
td.progress-cell { width: 180px; }

/* Státusz és prioritás jelölők */
.status, .pstate { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 650; padding: 3px 10px 3px 8px; border-radius: 999px;
  color: var(--muted); background: color-mix(in srgb, currentColor 13%, transparent); }
.status::before, .pstate::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status[data-s="Tervezett"] { color: var(--planned); }
.status[data-s="Folyamatban"] { color: var(--progress); }
.status[data-s="Ellenőrzésre vár"] { color: var(--verify); }
.status[data-s="Kész"] { color: var(--done); }
.status[data-s="Blokkolt"] { color: var(--blocked); }
.status[data-s="Elvetve"] { color: var(--rejected); text-decoration: line-through; }
.pstate[data-s="queued"], .pstate[data-s="running"] { color: var(--progress); }
.pstate[data-s="running"]::before { animation: pulse 1.2s ease-in-out infinite; }
.pstate[data-s="review"], .pstate[data-s="changes"], .pstate[data-s="stale"] { color: var(--verify); }
.pstate[data-s="approved"], .pstate[data-s="done"], .pstate[data-s="succeeded"] { color: var(--done); }
.pstate[data-s="failed"], .pstate[data-s="rejected"] { color: var(--blocked); }
.pstate[data-s="cancelled"] { color: var(--rejected); }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.prio { display: inline-block; font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--surface); box-shadow: var(--raise-xs); }
.prio[data-p="P0"] { color: var(--blocked); }
.prio[data-p="P1"] { color: var(--accent); }

/* Fázishaladás a listában */
.phasebar { display: flex; gap: 3px; margin-bottom: 5px; }
.phasebar i { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-lo); box-shadow: var(--inset-sm); }
.phasebar i.done { background: var(--accent-grad); box-shadow: none; }
.phasebar i.cur { background: var(--progress); box-shadow: none; opacity: .5; }
.phasebar i.cur[data-s="running"], .phasebar i.cur[data-s="queued"] { animation: pulse 1.4s ease-in-out infinite; opacity: 1; }
.phasebar i.cur[data-s="review"], .phasebar i.cur[data-s="changes"], .phasebar i.cur[data-s="stale"] { background: var(--verify); opacity: 1; }
.phasebar i.cur[data-s="failed"], .phasebar i.cur[data-s="rejected"] { background: var(--blocked); opacity: 1; }

/* Függőség chipek, jelzők */
.deps { display: flex; gap: 6px; flex-wrap: wrap; }
.dep { font-size: 12px; font-weight: 650; text-decoration: none; padding: 1px 8px; border-radius: 7px; background: var(--surface); box-shadow: var(--raise-xs); white-space: nowrap; }
.dep.ok { color: var(--done); }
.dep.missing { color: var(--blocked); box-shadow: var(--inset-sm); }
.dep.optional { opacity: .7; font-style: italic; }
.flag { font-size: 12px; color: var(--muted); font-weight: 650; }
.flag.go { color: var(--done); }
.flag.warn { color: var(--verify); }
.ann { background: var(--accent-soft); color: var(--accent); border-radius: 7px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

/* ---------- Oldalpanel ---------- */
.drawer { position: fixed; top: 14px; right: 14px; bottom: 14px; width: min(680px, calc(100vw - 28px)); border-radius: var(--r-xl);
  background: var(--card-grad); background-color: var(--surface); box-shadow: -20px 0 60px -12px var(--sh-dark), var(--raise), var(--rim);
  overflow-y: auto; padding: 22px 26px 50px; z-index: 40; scrollbar-width: thin; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
.drawer .close { float: right; margin-left: 12px; }
.drawer h1 { font-size: 21px; padding-right: 10px; }
.drawer h2 { margin-top: 28px; }
.drawer .bar { margin-top: 12px; }
.spec { white-space: pre-wrap; background: var(--surface); box-shadow: var(--inset-sm); padding: 14px 16px; border-radius: var(--r-md); word-break: break-word; line-height: 1.6; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.err { color: var(--blocked); font-weight: 600; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 4px 0; }
details summary:hover { color: var(--ink); }
pre.row { white-space: pre-wrap; word-break: break-all; font-size: 12px; line-height: 1.5; background: var(--surface); box-shadow: var(--inset-sm); padding: 12px 14px; border-radius: var(--r-md); margin: 6px 0; }

/* Idővonal */
.timeline { list-style: none; padding: 0 0 0 4px; margin: 0; }
.timeline li { padding: 4px 0 12px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--card-grad); box-shadow: var(--raise-xs); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 24px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: 12px; }
.change { font-size: 13px; color: var(--ink-2); }
.change s { color: var(--muted); }

/* Annotációk */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card { display: grid; gap: 10px; }
.card.new { box-shadow: var(--raise), inset 4px 0 0 var(--accent); }
.card header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card .aid { font-weight: 800; text-decoration: none; }
.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; word-break: break-word; }
.card code { font-size: 12px; }
.card .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.card p { margin: 0; white-space: pre-wrap; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); box-shadow: var(--inset-sm); padding: 10px; border-radius: var(--r-md); }
.inline-form input[name=title] { flex: 1 1 220px; }
.inline-form input[name=deps], .inline-form input[name=taskId] { width: 110px; }
.inline-form input[name=reason] { flex: 1 1 220px; }

.empty { color: var(--muted); padding: 34px 20px; text-align: center; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--inset-sm); }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.empty .actions { justify-content: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card-grad); background-color: var(--surface); color: var(--ink);
  padding: 12px 18px 12px 16px; border-radius: var(--r-md); z-index: 90; max-width: min(560px, 92vw); box-shadow: var(--raise), var(--rim); font-weight: 600;
  border-left: 4px solid var(--done); }
.toast.err { border-left-color: var(--blocked); }

/* ---------- Magyarázó tippek ---------- */
.tip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  font-size: 11px; font-weight: 800; line-height: 1; color: var(--accent); background: var(--card-grad); box-shadow: var(--raise-xs); cursor: help; vertical-align: middle; flex: none; }
.tip:hover, .tip:focus-visible { color: var(--on-accent); background: var(--accent-grad); }
.tooltip { position: fixed; left: 0; top: 0; z-index: 120; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 7px 11px;
  border-radius: var(--r-md); background: var(--surface-hi); color: var(--ink); box-shadow: var(--raise-sm), var(--rim);
  font: 600 12.5px/1.45 var(--font); white-space: pre-line; pointer-events: none; animation: tip-in .12s ease-out; }
.tooltip.long { font-weight: 500; padding: 10px 12px; }
@keyframes tip-in { from { opacity: 0; translate: 0 -3px; } }

/* Parancssor másolással */
.cmd { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--inset-sm); }
.cmd code { flex: 1; min-width: 0; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
.cmd .btn { flex: none; }
.cmds { display: grid; gap: 12px; }
.cmds .label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 4px; }

/* Billentyűk (fizikai billentyűsapka) */
kbd { display: inline-block; min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: var(--card-grad); box-shadow: var(--raise-xs), inset 0 -2px 0 var(--sh-dark), var(--rim); }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; align-items: center; }
.keys > span:nth-child(odd) { display: flex; gap: 4px; }

/* Felugró ablak */
.modal-back { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(15, 17, 28, .32); backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: 86vh; overflow-y: auto; }

/* Folyamatábra és fogalomtár (súgó) */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.flow .node { flex: 1 1 140px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--raise-sm); display: grid; gap: 4px; align-content: start; }
.flow .node b { font-size: 13.5px; }
.flow .node .sub { font-size: 12px; }
.flow .node .gate { font-size: 11.5px; color: var(--verify); font-weight: 700; }
.flow .arrow { align-self: center; color: var(--muted); font-weight: 700; }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.glossary div { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--raise-sm); }
.glossary b { display: block; margin-bottom: 4px; }
.glossary p { margin: 0; font-size: 13px; color: var(--ink-2); }
table.plain { border-spacing: 0; }
table.plain td, table.plain th { background: none; box-shadow: none; border-radius: 0; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain tbody tr { cursor: default; }
table.plain tbody tr:hover td { background: none; }
table.plain tr:last-child td { border-bottom: 0; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Agentes SDLC ---------- */
.pipeline { display: grid; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--raise-sm); }
.steps li.current { box-shadow: var(--raise-sm), inset 3px 0 0 var(--accent), 0 0 0 1px var(--accent-soft); }
.steps .acts { display: flex; gap: 8px; }
.runs table { border-spacing: 0 6px; font-size: 13px; }
.runs td { padding: 7px 10px; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; word-break: break-word; }
.log { max-height: 480px; overflow: auto; margin: 0; background: var(--term-bg); color: var(--term-ink); padding: 14px 16px; border-radius: var(--r-md);
  font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; box-shadow: inset 3px 3px 10px rgba(0, 0, 0, .55), inset -2px -2px 6px rgba(255, 255, 255, .04); }
.log .tool { color: #8ab4ff; }
.log .err { color: #ff8a80; }
.log .meta { color: #8f96a0; }
.log .check { color: #ffd479; }
table.checks { border-spacing: 0 6px; }
table.checks td { padding: 8px 10px; }
table.checks tbody tr { cursor: default; }
.review .radios { display: flex; gap: 18px; flex-wrap: wrap; }
.diff details { border-radius: var(--r-md); margin: 10px 0; background: var(--surface); box-shadow: var(--raise-sm); overflow: hidden; }
.diff summary { padding: 9px 14px; cursor: pointer; color: var(--ink); }
.diff pre { margin: 0; padding: 6px 0; overflow-x: auto; font: 12px/1.45 var(--mono); background: var(--surface-lo); box-shadow: var(--inset-sm); }
.diff pre div { padding: 0 14px; white-space: pre; }
.diff .add { background: color-mix(in srgb, var(--done) 16%, transparent); }
.diff .del { background: color-mix(in srgb, var(--blocked) 16%, transparent); }
.diff .hunk { color: var(--muted); }
.diff .plus { color: var(--done); font-weight: 700; }
.diff .minus { color: var(--blocked); font-weight: 700; }

/* ---------- Összecsukható oldalsáv ---------- */
.side-toggle { position: absolute; top: 42px; right: -5px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; color: var(--muted); background: var(--card-grad); box-shadow: var(--raise-xs), var(--rim); z-index: 2; }
.side-toggle:hover, .side-toggle:focus-visible { color: var(--accent); }
.side-toggle .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.theme-cycle { display: none; }
@media (min-width: 961px) {
  :root[data-side="collapsed"] { --side-w: 92px; }
  :root[data-side="collapsed"] .side-panel { padding: 18px 10px; align-items: center; }
  :root[data-side="collapsed"] .side .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-side="collapsed"] .brand { padding: 2px 0 8px; }
  :root[data-side="collapsed"] .menu { width: 100%; justify-items: center; }
  :root[data-side="collapsed"] .menu a { position: relative; width: 48px; height: 44px; padding: 0; gap: 0; justify-content: center; }
  :root[data-side="collapsed"] .menu-sep { width: 32px; margin: 6px auto; }
  :root[data-side="collapsed"] .menu .count { position: absolute; top: 1px; right: -2px; min-width: 18px; padding: 0 5px; font-size: 10.5px; line-height: 18px; }
  :root[data-side="collapsed"] .menu .dot { position: absolute; top: 9px; right: 10px; margin: 0; width: 8px; height: 8px; }
  :root[data-side="collapsed"] .side-foot { width: 100%; justify-items: center; gap: 10px; }
  :root[data-side="collapsed"] .mini-progress { padding: 0; background: none; box-shadow: none; border-radius: 50%; }
  :root[data-side="collapsed"] .mp-full { display: none; }
  :root[data-side="collapsed"] .mp-mini { display: block; }
  :root[data-side="collapsed"] .who { padding: 5px; cursor: pointer; }
  :root[data-side="collapsed"] .who-in { display: none; }
  :root[data-side="collapsed"] .seg.theme { display: none; }
  :root[data-side="collapsed"] .theme-cycle { display: inline-flex; }
  :root[data-side="collapsed"] .side-tools { flex-direction: column; align-items: center; }
  :root[data-side="collapsed"] .theme-cycle,
  :root[data-side="collapsed"] .side-tools .btn { flex: none; width: 44px; height: 38px; padding: 0; gap: 0; }
}

/* ---------- Kisebb képernyők ---------- */
@media (max-width: 1180px) {
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); padding: 12px; transform: translateX(-105%); transition: transform .2s; }
  .side.open { transform: none; }
  .side-toggle { display: none; }
  .mobilebar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; }
  .mobilebar .brand { padding: 0; }
  .main { padding: 16px 16px 60px; }
  .drawer { inset: 0; width: 100vw; border-radius: 0; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat .num { font-size: 26px; }
  .todo li { flex-wrap: wrap; }
  .bar input[type=search] { min-width: 0; max-width: none; }
  td.title { min-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ikonkeret (panelfejek, teendők) */
.ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; box-shadow: var(--inset-sm); color: var(--accent); background: var(--surface); }
.ico.warn { color: var(--verify); }
.ico.err { color: var(--blocked); }
.ico.ok { color: var(--done); }
.panel ul:not([class]) { margin: 6px 0 0; padding-left: 20px; }
.panel ul:not([class]) li { margin: 3px 0; }
.flag .dot { vertical-align: 1px; }

/* ---------- Projektek ---------- */
.pmark { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 11.5px; letter-spacing: .02em;
  color: var(--accent); background: var(--surface); box-shadow: var(--inset-sm); }
.pmark.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }
.pmark.lg { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; color: var(--on-accent); background: var(--hero-grad); box-shadow: var(--raise-sm), inset 0 1px 1px rgba(255, 255, 255, .35); }

/* Projektváltó az oldalsávban */
.project-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-md); cursor: pointer; text-align: left;
  color: var(--ink); background: var(--card-grad); box-shadow: var(--raise-sm), var(--rim); white-space: nowrap; }
.project-switch:hover .chev, .project-switch[aria-expanded="true"] .chev { color: var(--accent); }
.project-switch .pname { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.project-switch .pname b { overflow: hidden; text-overflow: ellipsis; }
.project-switch .pname .sub { font-size: 11px; }
.project-switch .chev { display: grid; color: var(--muted); }
.project-switch .chev .icon { width: 16px; height: 16px; }
@media (min-width: 961px) {
  :root[data-side="collapsed"] .project-switch { width: 48px; height: 44px; padding: 0; justify-content: center; }
  :root[data-side="collapsed"] .project-switch .chev { display: none; }
}
.mobile-project { font-weight: 650; color: var(--ink-2); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Lebegő lista (projektváltó) */
.popover { position: fixed; z-index: 110; width: 290px; max-height: min(460px, calc(100vh - 16px)); overflow-y: auto; padding: 10px; border-radius: var(--r-lg);
  background: var(--surface-hi); box-shadow: var(--raise), var(--rim); animation: tip-in .12s ease-out; }
.pop-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px 8px; }
.pop-list { display: grid; gap: 2px; }
.pop-list a, .pop-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.pop-list a:hover, .pop-link:hover, .pop-list a:focus-visible, .pop-link:focus-visible { background: var(--surface); box-shadow: var(--inset-sm); outline: none; color: var(--ink); }
.pop-list a.current { color: var(--accent); }
.pop-list a .icon { margin-left: auto; color: var(--accent); }
.pop-name { display: grid; min-width: 0; line-height: 1.3; }
.pop-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-name .sub { font-size: 11.5px; }
.pop-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.pop-link { color: var(--ink-2); font-weight: 600; }

/* Projektválasztó: oldalsáv nélküli elrendezés */
:root[data-mode="picker"] .app { grid-template-columns: minmax(0, 1fr); }
:root[data-mode="picker"] .side, :root[data-mode="picker"] .mobilebar { display: none; }
:root[data-mode="picker"] .main { max-width: 1240px; margin: 0 auto; padding: 22px 30px 70px; }
.picker-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.picker-top .brand { padding: 0; }
.picker-top .spacer { flex: 1; }
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 28px; }
.project-card { display: grid; gap: 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; align-content: start; }
.project-card:hover { color: var(--ink); transform: translateY(-2px); }
.project-card:focus-visible { outline: none; box-shadow: var(--raise), 0 0 0 2px var(--accent); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-title { display: grid; min-width: 0; flex: 1; }
.pc-title b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-title code { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-kv { grid-template-columns: repeat(3, 1fr); }
.pc-foot { display: grid; gap: 4px; }
.pc-foot > span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-foot .icon { width: 14px; height: 14px; }
.new-project { scroll-margin-top: 20px; }
.slug-preview { display: grid; align-content: end; gap: 6px; min-width: 0; }
.slug-preview .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.slug-preview code { font-size: 13px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--inset-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
fieldset.repo-set { border: 0; margin: 6px 0 0; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--inset-sm); min-width: 0; }
fieldset.repo-set legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 4px; font-weight: 700; color: var(--ink-2); }
fieldset.repo-set legend .icon { color: var(--accent); }
fieldset.repo-set input { background: var(--surface-hi); }
.warn-text { color: var(--verify); font-weight: 600; }

/* Figyelmeztető sáv */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin: 0 0 20px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--raise-sm), inset 4px 0 0 var(--accent); color: var(--ink-2); }
.notice .icon { color: var(--accent); margin-top: 1px; }
.notice.warn { box-shadow: var(--raise-sm), inset 4px 0 0 var(--verify); }
.notice.warn .icon { color: var(--verify); }
.notice.err { box-shadow: var(--raise-sm), inset 4px 0 0 var(--blocked); }
.notice.err .icon { color: var(--blocked); }
@media (max-width: 720px) {
  :root[data-mode="picker"] .main { padding: 16px 16px 60px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
