/* Planner — Heptabase („sunlit research desk") alapú tokenek: eggshell felületek, whiteboard-vászon,
   grafit szöveg és gomb, egyetlen kék akcentus (linkek, aktív és kiemelt elemek). Egy betűcsalád: Instrument Sans. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fdfcfb;          /* eggshell: oldalak, kártyák, panelek */
  --cloud: #f7f7f7;          /* másodlagos felület, sávok */
  --beige: #f0f0ea;          /* meleg betét (AI-doboz, kiemelés) */
  --board: #eeeded;          /* a térkép vászna */
  --linen: #e4ded3;          /* meleg hajszálvonal */
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .13);
  --ink: #2e2e2e;
  --ink-2: #454545;
  --ink-3: #6a6972;
  --ink-4: #a8a8a8;
  --blue: #207dff;
  --blue-wash: #eaf2ff;
  --blue-ink: #1660cc;

  /* jelzés: csak státusz és elfogadás kap színt */
  --st-idea: #b4afa4;
  --st-todo: #6a6972;
  --st-doing: #d99400;
  --st-done: #2f9461;
  --ok: #2f9461;
  --ok-wash: #e7f4ec;
  --warn: #a96f00;
  --warn-wash: #fbf1dc;
  --bad: #c9423a;
  --bad-wash: #fbeceb;

  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-card: 12px;
  --r-ctl: 6px;
  --r-pill: 999px;
  --sh-pop: 0 0 0 1px rgba(0, 0, 0, .05), 0 6px 16px rgba(0, 0, 0, .08), 0 18px 40px rgba(0, 0, 0, .08);
  --sh-window: 0 0 0 1px rgba(0, 0, 0, .04), 0 14px 32px rgba(0, 0, 0, .1), 0 28px 70px rgba(0, 0, 0, .14);
  --sh-card: 0 1px 2px rgba(0, 0, 0, .05);
  --topbar: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: #cfe2ff; }

.muted { color: var(--ink-3); }
.small { font-size: 12.5px; line-height: 1.45; }
.grow { flex: 1 1 auto; min-width: 0; }
.block { display: block; }
.pad { padding: 12px 14px; }
.spaced { margin-top: 28px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2.align-end { align-items: end; }
.late { color: var(--bad); }

/* ---- gombok ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--cloud); text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1f1f1f; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--cloud); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; height: 40px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.is-busy { cursor: progress; }
.btn .ic { flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); color: var(--ink); text-decoration: none; }
.icon-btn.sm { width: 26px; height: 26px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.link-like { color: var(--blue); }
.subtle-link { color: var(--ink-3); font-size: 13px; text-align: center; }

/* ---- űrlap ---- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-hint { font-size: 12px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 36px; padding: 7px 10px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 125, 255, .15); }
input.readonly { background: var(--cloud); color: var(--ink-3); }
.mono-input { font-size: 12.5px; }
.form-error { color: var(--bad); font-size: 13px; background: var(--bad-wash); padding: 8px 10px; border-radius: var(--r-ctl); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; }
.toggle input { width: 15px; height: 15px; accent-color: var(--ink); }
.check-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow: auto; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-row input { accent-color: var(--ink); width: 15px; height: 15px; }

/* ---- chipek, státuszpont, avatar ---- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--r-ctl);
  font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--cloud); color: var(--ink-2); border: 1px solid var(--line);
}
.chip-pending { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.chip-approved { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.chip-rejected { background: var(--bad-wash); color: var(--bad); border-color: transparent; }
.chip.is-stale { background: var(--cloud); color: var(--warn); border-color: var(--line); }
.chip-current { background: var(--blue-wash); color: var(--blue-ink); border-color: transparent; }
.chip-task-open { background: var(--blue-wash); color: var(--blue-ink); border-color: transparent; }
.chip-task-done { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.sdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-todo); }
.sdot-idea { background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-idea); }
.sdot-todo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-todo); }
.sdot-doing { background: var(--st-doing); }
.sdot-done { background: var(--st-done); }
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: hsl(var(--hue, 220) 32% 90%); color: hsl(var(--hue, 220) 30% 30%);
  font-weight: 600; letter-spacing: .02em; line-height: 1; user-select: none;
}
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }

/* ---- felső sáv ---- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 24px; padding: 0 16px 0 20px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.topnav { display: flex; gap: 2px; }
.topnav-link { padding: 6px 11px; border-radius: var(--r-pill); color: var(--ink-3); font-weight: 500; }
.topnav-link:hover { color: var(--ink); background: var(--cloud); text-decoration: none; }
.topnav-link.active { color: var(--ink); background: var(--cloud); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bell { position: relative; }
.me-btn { border: 0; background: none; padding: 3px; border-radius: 50%; cursor: pointer; }

.main { min-height: calc(100vh - var(--topbar)); }
.main-full { height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); overflow: hidden; position: relative; }

/* ---- oldalak ---- */
.page { max-width: 1180px; margin: 0 auto; padding: 40px 24px 96px; }
.page-narrow { max-width: 640px; }
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.page-split .col-main { min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.025em; }
.crumb { display: inline-block; color: var(--ink-3); font-size: 13px; margin-bottom: 4px; }
.section-title { font-size: 15px; font-weight: 600; letter-spacing: 0; margin: 36px 0 10px; }
.section-title.first { margin-top: 0; }

.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--linen); border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-title { font-size: 17px; font-weight: 500; }
.empty .btn { margin-top: 10px; }

/* projektlista: sorok, nem kártyarács */
.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px 34px; align-items: center; gap: 24px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); color: inherit;
}
.project-row:hover { text-decoration: none; background: linear-gradient(90deg, transparent, var(--cloud) 8%, var(--cloud) 92%, transparent); }
.project-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.project-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.project-desc { color: var(--ink-3); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: flex; flex-direction: column; gap: 6px; }
.project-stats { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }

.pbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--cloud); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; }
.pbar-lg { height: 12px; border-radius: 6px; }
.pbar-seg.done { background: var(--st-done); }
.pbar-seg.doing { background: var(--st-doing); }
.pbar-seg.todo { background: #d9d6cf; }
.pbar-seg.empty { background: transparent; }

.plain-list { border-top: 1px solid var(--line); }
.plain-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }

/* oldalsó oszlop: „Rád vár" */
.col-side { position: sticky; top: calc(var(--topbar) + 32px); }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 1px; padding: 10px 12px; border-radius: 10px; color: inherit; }
.side-item:hover { background: var(--cloud); text-decoration: none; }
.side-item .muted { grid-column: 2; }
.side-kind { grid-row: span 2; align-self: start; margin-top: 2px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: var(--r-ctl); }
.kind-approval { background: var(--warn-wash); color: var(--warn); }
.kind-task { background: var(--blue-wash); color: var(--blue-ink); }
.side-title { font-weight: 500; }
.side-footer { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---- haladás ---- */
.overview { display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; padding: 28px; border-radius: var(--r-card); background: var(--cloud); margin-bottom: 40px; }
.overview-figure { display: flex; flex-direction: column; }
.big-pct { font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; font-stretch: 90%; }
.overview-bar { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.legend-inline { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend-inline li { display: inline-flex; align-items: center; gap: 6px; }
.overview-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.overview-stats dt { font-size: 12.5px; color: var(--ink-3); }
.overview-stats dd { margin: 0; font-size: 22px; font-weight: 500; }
.overview > .muted { grid-column: 1 / -1; }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pblock > .muted { margin-bottom: 10px; }
.pblock-empty { padding: 14px 12px; border: 1px dashed var(--linen); border-radius: 10px; }
.progress-table { border-top: 1px solid var(--line); margin-bottom: 40px; }
.progress-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px 48px 260px; gap: 20px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; }
.progress-row:hover { background: var(--cloud); text-decoration: none; }
.pct { font-weight: 600; text-align: right; }
.activity { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.act-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---- szegmentált váltó ---- */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--cloud); box-shadow: inset 0 0 0 1px var(--line); }
.seg-item { border: 0; background: transparent; padding: 5px 13px; border-radius: var(--r-pill); color: var(--ink-3); font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.3; }
.seg-item:hover { color: var(--ink); text-decoration: none; }
.seg-item.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 0 0 1px var(--line); }
.page > .seg { margin-bottom: 8px; }

/* ================= TÉRKÉP ================= */
.map-root { position: absolute; inset: 0; overflow: hidden; background: var(--board); }
.map-canvas {
  position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none;
  background-color: var(--board);
  background-image: radial-gradient(circle at 1px 1px, rgba(46, 46, 46, .17) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.is-panning .map-canvas { cursor: grabbing; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; color: var(--blue); }
.map-edges .edge { pointer-events: auto; cursor: pointer; transition: opacity .15s; }
.edge-hit { stroke: transparent; stroke-width: 14; fill: none; }
.edge-line { fill: none; stroke-linecap: round; }
.edge-parent .edge-line { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.6; }
.edge-socket { fill: var(--board); stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.4; }
.edge-coord-outer { stroke: var(--ink); stroke-opacity: .5; stroke-width: 5.5; fill: none; }
.edge-coord-inner { stroke: var(--board); stroke-width: 2.4; fill: none; }
.edge-link .edge-line { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 5 5; }
.edge:hover .edge-line, .edge.hl .edge-line { stroke-opacity: 1; }
.edge:hover .edge-coord-outer, .edge.hl .edge-coord-outer { stroke-opacity: .9; }
.has-focus .edge:not(.hl) { opacity: .22; }
.has-focus .ncard:not(.related) { opacity: .55; }
.temp-edge { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 4; }

.ncard {
  position: absolute; width: 248px; border-radius: var(--r-card); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--sh-card);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: box-shadow .15s, opacity .15s, border-color .15s;
}
.ncard:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .09); }
.ncard:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.is-dragging .ncard { transition: none; }
.ncard.drop-target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 125, 255, .25); }
.ncard-main { display: flex; gap: 10px; align-items: flex-start; }
.ncard:hover, .ncard:focus-within { z-index: 4; }
.ncard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
/* bélyegkép: képernyőkép-arányú, a teteje látszik; rávíve nagyobb előnézet a kártya fölött */
.ncard-thumb-wrap { position: relative; flex: none; margin-top: 2px; }
.ncard-thumb { display: block; width: 68px; height: 50px; object-fit: cover; object-position: top center; border-radius: 7px; border: 1px solid var(--line); background: var(--cloud); pointer-events: none; }
.ncard-peek {
  display: none; position: absolute; right: -10px; bottom: calc(100% + 12px); width: 320px; max-width: none; max-height: 240px; object-fit: contain;
  background: #fff; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-pop); pointer-events: none; z-index: 2;
}
.ncard-thumb-wrap:hover .ncard-peek { display: block; }
.ncard-rename-btn {
  position: absolute; left: 50%; top: -12px; width: 24px; height: 24px; margin-left: -12px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.ncard-rename-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ncard:hover .ncard-rename-btn, .ncard:focus-within .ncard-rename-btn { opacity: 1; }
.ncard-rename { width: 100%; min-height: 0 !important; padding: 3px 5px !important; margin: -4px -6px; font-size: 15px !important; font-weight: 600; font-stretch: 92%; border-radius: 6px; }
.ncard-body { padding: 11px 13px 10px; display: flex; flex-direction: column; gap: 5px; }
.ncard-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); min-height: 20px; }
.ncard-status { font-weight: 500; }
.ncard-top .chip { margin-left: auto; height: 18px; font-size: 10.5px; }
.ncard-title { font-size: 15px; line-height: 1.3; font-weight: 600; font-stretch: 92%; letter-spacing: -0.005em; color: var(--ink); overflow-wrap: anywhere; }
.ncard-excerpt { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-foot { display: flex; align-items: center; gap: 10px; margin-top: 3px; min-height: 18px; font-size: 12px; color: var(--ink-3); }
.ncard-count { display: inline-flex; align-items: center; gap: 3px; }
.st-done .ncard-title { color: var(--ink-2); }
.st-idea { border-style: dashed; border-color: rgba(0, 0, 0, .18); background: #fbfaf8; }
.ncard-unseen { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2.5px var(--board); }
.ncard-connect {
  position: absolute; right: -7px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: var(--paper); border: 1.6px solid var(--blue); cursor: crosshair; opacity: 0; transition: opacity .12s, transform .12s;
}
.ncard-connect:hover { transform: scale(1.25); background: var(--blue); }
.ncard-add {
  position: absolute; left: 50%; bottom: -13px; width: 24px; height: 24px; margin-left: -12px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.ncard-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ncard:hover .ncard-connect, .ncard:hover .ncard-add, .ncard:focus-within .ncard-add, .is-connecting .ncard-connect { opacity: 1; }
.is-connecting .ncard, .is-connecting .map-canvas { cursor: crosshair; }
.zoomed-out .ncard-excerpt, .zoomed-out .ncard-foot { display: none; }
.zoomed-out .ncard-title { font-size: 19px; }
.ncard.pulse { animation: pulse 1.1s ease-out 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32, 125, 255, .55), var(--sh-card); }
  100% { box-shadow: 0 0 0 18px rgba(32, 125, 255, 0), var(--sh-card); }
}

.ghost-card { position: absolute; width: 248px; padding: 10px; border-radius: var(--r-card); background: var(--paper); border: 1.5px solid var(--blue); box-shadow: 0 0 0 4px rgba(32, 125, 255, .14); }
.ghost-card input { border: 0; box-shadow: none; padding: 4px 3px; font-size: 15px; font-weight: 600; font-stretch: 92%; min-height: 0; }
.ghost-card input:focus { box-shadow: none; }
.ghost-hint { display: block; padding: 2px 3px 0; font-size: 11.5px; color: var(--ink-3); }

/* lebegő panelek a vásznon */
.map-header, .map-toolbar, .map-legend, .map-search {
  position: absolute; z-index: 5; background: rgba(253, 252, 251, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .05);
}
.map-header { top: 14px; left: 14px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; max-width: min(460px, calc(100% - 28px)); }
.map-title-row { display: flex; align-items: center; gap: 4px; }
.map-title { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; overflow-wrap: anywhere; }
.unseen-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--blue-wash); color: var(--blue-ink); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: var(--r-pill); cursor: pointer; align-self: flex-start; }
.unseen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
/* jelenlét: ki van még itt */
.map-presence { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.map-presence:empty { display: none; }
.map-presence .muted { margin-right: 4px; }
.avatar.is-editing { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--st-doing); }
.ncard-presence { position: absolute; top: -12px; right: 14px; display: flex; gap: 2px; pointer-events: none; }
.ncard-presence .avatar { box-shadow: 0 0 0 2px var(--board); }
.ncard-presence .avatar.is-editing { box-shadow: 0 0 0 2px var(--board), 0 0 0 3.5px var(--st-doing); }
.node-presence { display: inline-flex; align-items: center; gap: 4px; }
.node-presence:empty { display: none; }
.node-presence > span { margin-left: 4px; }
.editing-note { color: #8a5e00; font-weight: 500; }
.remote-notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 16px; border-radius: 10px; background: var(--warn-wash); color: #6b4a00; font-size: 13.5px; }
.remote-notice .ic { flex: none; margin-top: 2px; }
.map-search { top: 14px; right: 14px; width: 260px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 12px; color: var(--ink-3); }
.map-search input { border: 0; background: transparent; box-shadow: none; padding: 8px 6px; min-height: 40px; }
.map-search input:focus { box-shadow: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border-radius: 10px; box-shadow: var(--sh-pop); padding: 4px; }
.search-hit { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-ctl); text-align: left; cursor: pointer; color: var(--ink); }
.search-hit:hover { background: var(--cloud); }
.map-toolbar { bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tool-btn:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.tool-primary { background: var(--ink); color: #fff; padding: 0 14px 0 11px; border-radius: var(--r-pill); }
.tool-primary:hover { background: #1f1f1f; color: #fff; }
.zoom-label { min-width: 54px; justify-content: center; font-feature-settings: 'tnum' 1; }
.tool-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 5px; }
.map-legend { left: 14px; bottom: 18px; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); max-width: 230px; }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend-line { overflow: visible; }
.legend-hint { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.legend-coord .edge-coord-inner { stroke: rgba(253, 252, 251, 1); }
.legend-parent .edge-line { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.6; }
.legend-link .edge-line { stroke: var(--blue); stroke-width: 1.6; }
.legend-link path:first-child { stroke-dasharray: 5 5; }
.map-empty { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 32px; background: var(--paper); border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--sh-card); max-width: 380px; z-index: 4; }
.map-empty .btn { margin-top: 8px; }

/* ================= SINGLE NODE ================= */
.node-back { position: absolute; inset: 0; z-index: 20; background: rgba(46, 46, 46, .28); display: grid; place-items: stretch; padding: 18px; }
.node-window {
  position: relative; display: flex; flex-direction: column; min-height: 0; height: 100%; max-width: 1320px; width: 100%; margin: 0 auto;
  background: var(--paper); border-radius: 14px; box-shadow: var(--sh-window); overflow: hidden; transform-origin: 0 0;
}
.node-loading, .node-error { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px; text-align: center; }
.node-head { padding: 14px 18px 16px 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.node-head-row { display: flex; align-items: center; gap: 12px; }
.node-head-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.node-trail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); min-width: 0; }
.node-trail a { color: var(--ink-3); }
.node-trail a:hover { color: var(--ink); }
.trail-sep { color: var(--ink-4); }
.trail-current { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.node-title { font-size: 32px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; padding-right: 40px; overflow-wrap: anywhere; }
.node-title.is-renamable { cursor: text; border-radius: 8px; margin-left: -8px; padding-left: 8px; align-self: flex-start; padding-right: 8px; transition: background .12s; }
.node-title.is-renamable:hover { background: var(--cloud); }
.node-title-input { font-size: 30px !important; line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; padding: 4px 8px !important; margin-left: -9px; }
.node-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.status-select { width: auto; min-height: 30px; padding: 3px 28px 3px 24px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6972' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.status-select:disabled { cursor: default; opacity: 1; background-image: none; padding-right: 12px; }
.status-select { box-shadow: inset 0 0 0 0 transparent; position: relative; }
.status-select.st-idea { border-color: var(--st-idea); }
.status-select.st-doing { border-color: var(--st-doing); color: #8a5e00; }
.status-select.st-done { border-color: var(--st-done); color: var(--ok); }
.node-meta .status-select { background-color: #fff; }
.node-meta .status-select.st-todo, .node-meta .status-select.st-idea { padding-left: 12px; }
.node-meta .status-select.st-doing, .node-meta .status-select.st-done { padding-left: 12px; }

.node-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.node-main { overflow: auto; padding: 24px 40px 64px 28px; }
.node-main > * { max-width: 760px; }
.node-side { overflow: auto; border-left: 1px solid var(--line); background: #faf9f7; padding: 18px 18px 48px; display: flex; flex-direction: column; gap: 14px; }
.section-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.empty-body { padding: 18px; border: 1px dashed var(--linen); border-radius: 10px; }

.since-banner, .preview-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; margin-bottom: 20px; font-size: 13.5px; }
.since-banner { background: var(--blue-wash); color: #1d3d6b; }
.since-banner > .grow { flex: 1 1 0; min-width: 200px; }
.preview-bar { background: var(--beige); border: 1px solid var(--linen); position: sticky; top: -24px; z-index: 2; }
.preview-text { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 320px; }
.preview-text .ic { margin-top: 2px; flex: none; }
.preview-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.ai-box { background: var(--beige); border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--linen); }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-text { font-size: 14.5px; }
.ai-foot { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* olvasható szöveg (node-tartalom, szerkesztő) */
.prose { font-size: 15.5px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: .75em; }
.prose h2 { font-size: 22px; line-height: 1.3; margin-top: 1.4em; letter-spacing: -0.015em; }
.prose h3 { font-size: 18px; line-height: 1.35; margin-top: 1.2em; font-weight: 600; letter-spacing: -0.005em; }
.prose h4 { font-size: 15.5px; font-weight: 600; margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: .25em; }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--linen); color: var(--ink-2); }
.prose pre { background: var(--cloud); padding: 12px 14px; border-radius: 8px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; white-space: pre-wrap; }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cloud); padding: 1px 4px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.6em 0; }
.prose img { border-radius: 8px; border: 1px solid var(--line); }
.prose mark { background: #fff1b8; }
.prose > :first-child { margin-top: 0; }
.diff ins { background: #d9f2e2; color: #145c34; text-decoration: none; border-radius: 3px; padding: 0 1px; }
.diff del { background: #fbe0de; color: #8c2620; border-radius: 3px; padding: 0 1px; }

.editor { border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 125, 255, .12); }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 1px; padding: 5px; border-bottom: 1px solid var(--line); position: sticky; top: -24px; background: #fff; border-radius: 10px 10px 0 0; z-index: 1; }
.ed-btn { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 0; background: none; border-radius: var(--r-ctl); color: var(--ink-2); cursor: pointer; }
.ed-btn:hover { background: var(--cloud); color: var(--ink); }
.ed-text { font-weight: 600; font-size: 12.5px; }
.ed-sep { width: 1px; margin: 5px 4px; background: var(--line); }
.editor-area { min-height: 280px; padding: 16px 18px 24px; outline: none; }
.editor-area:empty::before { content: 'Írd le, miről szól ez a node…'; color: var(--ink-4); }
.save-hint { margin-right: 6px; }
.link-form { display: flex; gap: 6px; padding: 6px; width: 320px; }

/* média */
.media { margin-top: 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gal-item { margin: 0; position: relative; }
.gal-item.is-cover .gal-open { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cover-badge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 600; color: #fff; background: rgba(46, 46, 46, .85); padding: 2px 7px; border-radius: var(--r-ctl); pointer-events: none; }
.gal-item figcaption .link-btn { white-space: nowrap; }
.gal-open { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--cloud); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gal-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item figcaption { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.gal-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.media-item video { display: block; width: 100%; max-height: 480px; background: #111; }
.media-item audio { display: block; width: calc(100% - 24px); margin: 0 12px 12px; height: 40px; }
.media-item figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; font-size: 13px; }
.file-list { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 14px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; }
.file-row + .file-row { border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--cloud); color: var(--ink-3); flex: none; }
.file-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info a { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--linen); border-radius: 12px; color: var(--ink-2); cursor: pointer; text-align: center; transition: background .12s, border-color .12s; }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--blue-wash); }
.upload-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 10px; align-items: center; font-size: 13px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-track { height: 4px; border-radius: 2px; background: var(--cloud); overflow: hidden; }
.up-bar { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.up-row.failed .up-pct { color: var(--bad); }
.child-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.child { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--ink); }
.child + .child { border-top: 1px solid var(--line); }
.child:hover { background: var(--cloud); text-decoration: none; }
.child .muted { margin-left: auto; }
.lightbox { display: flex; flex-direction: column; gap: 12px; }
.lb-img { max-height: 72vh; object-fit: contain; border-radius: 8px; background: var(--cloud); align-self: center; }
.lb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* oldalsáv */
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.side-box-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-box-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.approval-msg { font-size: 13.5px; padding: 8px 10px; background: var(--cloud); border-radius: 8px; }
.reviewers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reviewers li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.reviewers .decision { color: var(--ink-3); }
.rev-approved .decision { color: var(--ok); }
.rev-rejected .decision { color: var(--bad); }
.rev-comment { flex-basis: 100%; padding-left: 28px; font-size: 12.5px; color: var(--ink-2); }
.decide { display: flex; flex-direction: column; gap: 8px; }
.decide-btns { display: flex; gap: 8px; justify-content: flex-end; }
.warn { color: var(--warn); background: var(--warn-wash); padding: 8px 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mini-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-tasks li { display: flex; flex-direction: column; }
.mini-tasks .mt-done a, .mini-tasks .mt-cancelled a { color: var(--ink-3); text-decoration: line-through; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 4px; }
.tab { border: 0; background: none; padding: 8px 10px 9px; font-size: 13px; font-weight: 500; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-count { font-size: 11px; background: var(--cloud); border-radius: 8px; padding: 0 6px; color: var(--ink-3); }
.tab-panel { display: flex; flex-direction: column; gap: 10px; }
.note { padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.note.is-new { border-color: rgba(32, 125, 255, .45); box-shadow: inset 3px 0 0 var(--blue); }
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.note-body { white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; }
.note-compose, .note-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.compose-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.author-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.author-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--paper); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.author-chip.off { background: var(--cloud); color: var(--ink-3); text-decoration: line-through; border-style: dashed; }
.rev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rev-btn { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 8px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; color: inherit; }
.rev-btn:hover { background: rgba(0, 0, 0, .035); }
.rev.active .rev-btn { background: var(--blue-wash); }
.rev.ignored { opacity: .45; }
.rev.ignored .rev-summary { text-decoration: line-through; }
.rev-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rev-summary { font-size: 13.5px; font-weight: 500; }
.since-mark { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 11.5px; color: var(--blue-ink); font-weight: 500; }
.since-mark::before, .since-mark::after { content: ''; flex: 1; height: 1px; background: rgba(32, 125, 255, .35); }
.link-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; }
.link-row a { color: var(--ink); font-weight: 500; }
.link-dir { flex: none; }
.audience { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.audience li { display: flex; align-items: center; gap: 8px; }

/* ---- feladatok ---- */
.task-list { margin-top: 8px; }
.task-row { display: flex; align-items: center; gap: 14px; padding: 13px 6px; border-bottom: 1px solid var(--line); color: inherit; }
.task-row:hover { background: var(--cloud); text-decoration: none; }
.task-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-4); background: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; }
.task-check:hover:not(:disabled) { border-color: var(--ok); }
.task-check.done { background: var(--ok); border-color: var(--ok); }
.task-check:disabled { cursor: default; opacity: .6; }
.task-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.task-title { font-weight: 500; }
.st-done .task-title, .st-cancelled .task-title { color: var(--ink-3); text-decoration: line-through; }
.due { font-size: 12.5px; color: var(--ink-2); padding: 2px 8px; border-radius: var(--r-ctl); background: var(--cloud); white-space: nowrap; }
.due.late { background: var(--bad-wash); color: var(--bad); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; font-size: 13.5px; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.task-desc { white-space: pre-wrap; padding: 12px 14px; background: var(--cloud); border-radius: 8px; }
.done-note { padding: 12px 14px; background: var(--ok-wash); border-radius: 8px; }

/* ---- felhasználók ---- */
.user-table { margin-top: 20px; border-top: 1px solid var(--line); }
.ut-head, .ut-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 170px 1fr 130px 34px; gap: 16px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.ut-head { font-size: 12.5px; color: var(--ink-3); font-weight: 500; padding-top: 8px; padding-bottom: 8px; }
.ut-row.disabled { opacity: .6; }
.ut-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ut-name > span { display: flex; flex-direction: column; min-width: 0; }
.ut-name .muted { overflow: hidden; text-overflow: ellipsis; }
.ut-row select { width: auto; min-height: 32px; padding: 4px 8px; }
.card-form { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 24px; background: var(--paper); }

/* ---- belépés ---- */
.auth-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background-color: var(--board);
  background-image: radial-gradient(circle at 1px 1px, rgba(46, 46, 46, .15) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.auth-card { width: 100%; max-width: 380px; background: var(--paper); border-radius: 14px; padding: 30px 30px 26px; box-shadow: var(--sh-window); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.2; }
.auth-lead { font-size: 14px; }

/* ---- modál, popover, toast ---- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(46, 46, 46, .32); display: grid; place-items: center; padding: 16px; animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; box-shadow: var(--sh-window); outline: none; animation: rise .18s ease-out; }
.modal-wide { max-width: 1040px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 6px 22px; }
.modal-head h2 { font-size: 19px; letter-spacing: -0.015em; }
.modal-body { padding: 10px 22px 18px; overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.popover { position: fixed; z-index: 80; min-width: 200px; max-width: 360px; background: var(--paper); border-radius: 10px; box-shadow: var(--sh-pop); padding: 4px; animation: fade .1s ease-out; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-ctl); text-align: left; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.menu-item:hover:not(:disabled) { background: var(--cloud); }
.menu-item:disabled { cursor: default; color: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; font-weight: 600; }
.menu-item:disabled .menu-hint { font-weight: 400; margin-left: 0; }
.menu-item.danger { color: var(--bad); }
.menu-hint { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.notif-pop { width: 360px; max-width: calc(100vw - 24px); }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.notif-list { max-height: 60vh; overflow: auto; }
.notif { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.notif:hover { background: var(--cloud); text-decoration: none; }
.notif.unread { box-shadow: inset 3px 0 0 var(--blue); background: #f7faff; }
.notif-title { font-weight: 500; font-size: 13.5px; }
.notif-body { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 11.5px; color: var(--ink-4); }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: rise .18s ease-out; transition: opacity .25s, transform .25s; }
.toast-error { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---- reszponzív ---- */
@media (max-width: 1000px) {
  .page-split { grid-template-columns: 1fr; gap: 40px; }
  .col-side { position: static; }
  .node-cols { grid-template-columns: 1fr; overflow: auto; }
  .node-main, .node-side { overflow: visible; }
  .node-side { border-left: 0; border-top: 1px solid var(--line); }
  .progress-row { grid-template-columns: minmax(0, 1fr) 140px 48px; }
  .progress-row > .muted { display: none; }
}
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 10px 0 14px; }
  .brand span { display: none; }
  .topnav-link { padding: 6px 8px; font-size: 13px; }
  .page { padding: 24px 16px 72px; }
  .page-head h1 { font-size: 27px; }
  .project-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .project-meta { grid-column: 1; grid-row: 2; }
  .row-2 { grid-template-columns: 1fr; }
  .overview { grid-template-columns: 1fr; padding: 20px; }
  .overview-stats { grid-template-columns: 1fr 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .node-back { padding: 0; }
  .node-window { border-radius: 0; }
  .node-head { padding: 10px 10px 14px 16px; }
  .trail-current { display: none; }
  .node-head-actions .btn.ghost { padding: 0 8px; }
  .node-title { font-size: 25px; padding-right: 0; }
  .node-main { padding: 18px 16px 40px; }
  .map-search { top: auto; bottom: 76px; right: 12px; left: 12px; width: auto; }
  .map-legend { display: none; }
  .map-header { right: 14px; }
  .hide-sm { display: none; }
  .ut-head { display: none; }
  .ut-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .ut-row > span:nth-child(2), .ut-row > span:nth-child(3), .ut-row > span:nth-child(4) { grid-column: 1; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .up-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
