:root {
  --bg: #131417;
  --island: #1c1d21;
  --island-2: #25272c;
  --edge: #2c2e34;
  --text: #ecedef;
  --muted: #8c9098;
  --accent: #9ad2e8;
  --accent-ink: #0e2833;
  --bridge: #a497f5;
  --opp: #eef0f6;
  --focus: #ffd66b;
  --r-island: 18px;
  --r-ctl: 12px;
  --side-w: 340px;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}
/* Pozor: tabular-nums v tomto písme rozťahuje aj čiarky a bodky, preto ho nepoužívame. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); overflow: hidden; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#i-play path { fill: currentColor; stroke: none; }

.app { display: grid; grid-template-columns: 1fr var(--side-w); gap: 12px; height: 100%; padding: 12px; }

.island { background: var(--island); border: 1px solid var(--edge); border-radius: var(--r-island); }

/* ---------- ovládacie prvky ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--r-ctl); border: 0; cursor: pointer;
  background: transparent; font-weight: 500; white-space: nowrap;
}
.btn.icon { width: 38px; padding: 0; color: var(--muted); font-size: 18px; }
.btn.icon:hover { color: var(--text); background: var(--island-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary[aria-busy="true"] { background: var(--island-2); color: var(--accent); cursor: progress; }
.btn.ghost { background: var(--island-2); }
.btn.ghost:hover { background: #2e3036; }
.btn.danger { color: #f0a29a; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; }

.seg { display: inline-flex; gap: 2px; background: var(--bg); border-radius: var(--r-ctl); padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 0 12px; height: 32px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-weight: 500;
}
.seg button[aria-pressed="true"] { background: var(--island-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
.seg button:not([aria-pressed="true"]):hover { color: var(--text); }

/* ---------- plátno ---------- */
.canvas { position: relative; min-width: 0; min-height: 0; border-radius: var(--r-island); overflow: hidden; }
#map2d, .map3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#map2d { cursor: grab; }
#map2d:active { cursor: grabbing; }
.map3d canvas { display: block; }
.map3d[hidden], #map2d[hidden] { display: none; }

.top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 10px; padding: 0; align-items: flex-start; pointer-events: none; z-index: 3; }
.top > * { pointer-events: auto; }
.brand { width: 56px; height: 56px; display: grid; place-items: center; }
.brand svg { width: 30px; height: 30px; }
.brand-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.45; }
.brand-light { fill: var(--accent); }
.tools { display: flex; gap: 8px; padding: 8px; flex-wrap: wrap; }
.actions { margin-left: auto; display: flex; gap: 6px; padding: 8px; }
.only-narrow { display: none !important; }

.notice {
  position: absolute; top: 68px; left: 0; z-index: 3; display: flex; gap: 14px; align-items: center;
  padding: 9px 14px; font-size: 13.5px; color: var(--muted);
}
.notice span { color: var(--text); }

/* uzly a spojenia 2D */
.link-path { fill: none; }
.link-path.tree { stroke: #3a3d45; stroke-width: 1.4; }
.link-path.related { stroke: #3a3d45; stroke-width: 1; stroke-opacity: 0.6; }
.link-path.bridge { stroke: var(--bridge); stroke-width: 1.3; stroke-dasharray: 5 4; stroke-opacity: 0.75; }
.link-path.span { stroke: var(--bridge); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; stroke-opacity: 0.55; }
.link-path.video { stroke-width: 1; stroke-opacity: 0.5; }
.link-path.lit { stroke: var(--accent); stroke-opacity: 0.9; }
.link-path.bridge.lit, .link-path.span.lit { stroke: var(--bridge); stroke-opacity: 1; }

.node { cursor: pointer; }
.node:focus { outline: none; }
.node:focus-visible .body { stroke: var(--focus); stroke-width: 3; }
.node text { pointer-events: none; }
.node .t1 { fill: var(--text); font-weight: 600; font-size: 12.5px; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.node .t2 { fill: var(--muted); font-size: 11px; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.node.topic .t1 { font-size: 14.5px; }
.node.root .t1 { font-size: 17px; font-weight: 700; }
.node.root .body { fill: var(--accent); }
.node.root .halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.4; }
.ring-bridge { fill: none; stroke: var(--bridge); stroke-width: 2.2; }
.ring-opp { fill: none; stroke: var(--opp); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ring-sel { fill: none; stroke: var(--accent); stroke-width: 2; }
.node.collapsed .body { stroke: var(--text); stroke-width: 2; stroke-dasharray: 4 3; }
.node .badge { fill: var(--accent-ink); font-size: 11px; font-weight: 700; }
.node .badge-bg { fill: var(--accent); }
.node.video .body { fill-opacity: 0.3; stroke-width: 1.5; }
.dim { opacity: 0.12; }
.node, .link-path { transition: opacity 0.15s; }

.empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; pointer-events: none; z-index: 1; }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty code { color: var(--text); }

/* 3D popisy */
.labels3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label3d {
  position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; font-size: 12.5px; color: var(--text);
  text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg); transition: opacity 0.2s; will-change: transform;
}
.label3d.topic { font-size: 14.5px; }
.label3d.root { font-size: 17px; font-weight: 700; }
.label3d.video { display: none; }
.label3d.faded { opacity: 0.12; }
.label3d.focus { color: var(--accent); }

/* legenda a priblíženie */
.legend { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 10px 12px; max-width: min(460px, calc(100% - 140px)); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--edge); background: transparent; border-radius: 999px; padding: 3px 11px 3px 8px; cursor: pointer; font-size: 13px; }
.cat:hover { background: var(--island-2); }
.cat .dot { width: 9px; height: 9px; border-radius: 50%; }
.cat[aria-pressed="false"] { color: var(--muted); }
.cat[aria-pressed="false"] .dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--muted); }
.keys { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.keys li { display: flex; align-items: center; gap: 7px; }
.k { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.k-bridge { border: 2.2px solid var(--bridge); }
.k-opp { border: 1.5px dashed var(--opp); }
.hint-3d { display: none !important; }
.is-3d .hint-3d { display: flex !important; }
.is-3d .hint-2d { display: none !important; }

.zoom { position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; gap: 2px; padding: 5px; }

/* priebeh zberu */
.log {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 42%;
  display: flex; flex-direction: column; padding: 14px 18px 12px;
}
.log header { display: flex; align-items: baseline; gap: 12px; }
.log h2 { font-size: 15px; margin: 0; font-weight: 600; }
.log .state { color: var(--muted); font-size: 13.5px; }
.log .state.running { color: var(--accent); }
.log .state.error { color: #f0a29a; }
.log header .link { margin-left: auto; color: var(--muted); }
.log ol { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.log li { display: flex; gap: 14px; white-space: pre-wrap; }
.log time { color: #b48ee6; flex: none; }
.log li.warning { color: #e8c47a; }
.log li.error { color: #f0a29a; }

/* kontextové menu */
.ctx { position: fixed; z-index: 20; min-width: 230px; padding: 6px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.ctx button {
  width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 14px;
}
.ctx button .ic { color: var(--muted); }
.ctx button:hover, .ctx button:focus-visible { background: var(--island-2); outline: none; }
.ctx hr { border: 0; border-top: 1px solid var(--edge); margin: 6px 4px; }
.ctx .title { padding: 6px 10px 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- bočný panel ---------- */
.side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.search { display: flex; align-items: center; gap: 10px; margin: 12px 12px 4px; padding: 0 12px; height: 46px; border: 1px solid var(--edge); border-radius: 14px; background: var(--bg); color: var(--muted); }
.search:focus-within { border-color: #3b3e46; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.side-body { flex: 1; overflow-y: auto; padding: 6px 12px 24px; }
.side-body h2 { font-size: 22px; line-height: 1.15; margin: 10px 4px 4px; letter-spacing: -0.015em; font-weight: 700; }
.side-body h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 20px 4px 8px; display: flex; align-items: center; gap: 8px; }
.side-body h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.intro { color: var(--muted); margin: 0 4px; font-size: 13.5px; }
.back { margin: 6px 0 2px; color: var(--muted); }
.back:hover { color: var(--text); text-decoration: none; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: transparent; border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; cursor: pointer; text-align: left;
}
.row:hover { background: var(--island-2); }
.row[aria-current="true"] { border-color: var(--accent); }
.row .dot { width: 10px; height: 10px; border-radius: 50%; }
.row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.row .val { color: var(--muted); font-size: 13px; }
.row .bar { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: var(--island-2); overflow: hidden; margin-top: -4px; }
.row .bar i { display: block; height: 100%; background: currentColor; opacity: 0.8; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 4px 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--edge); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.facts > div { border: 1px solid var(--edge); border-radius: 12px; padding: 9px 11px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.meter { height: 3px; border-radius: 2px; background: var(--island-2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--bg); border-left: 3px solid; }
.note.opp { border-color: var(--opp); }
.note.bridge { border-color: var(--bridge); }
.note.google { border-color: var(--muted); }
.note ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.aliases { color: var(--muted); font-size: 13.5px; margin: 0 4px; }
.side .actions-row { display: flex; gap: 6px; margin-top: 12px; }
.side .actions-row .btn { flex: 1; }

.videos { list-style: none; margin: 0; padding: 0; }
.videos li { padding: 10px 4px; border-top: 1px solid var(--edge); }
.videos a { text-decoration: none; font-weight: 500; display: block; }
.videos a:hover { text-decoration: underline; }
.videos .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.videos .kind { color: var(--text); }

/* ---------- nastavenia ---------- */
.settings { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; padding: 22px 24px 26px; color: var(--text); }
.settings::backdrop { background: rgba(8, 9, 11, 0.6); backdrop-filter: blur(3px); }
.settings > header { display: flex; align-items: center; justify-content: space-between; }
.settings h2 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.settings h3 { margin: 22px 0 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.settings .who { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.settings .intro { margin: 0 0 14px; }
.keycard { border: 1px solid var(--edge); border-radius: 14px; padding: 14px 16px 16px; }
.keycard + .keycard { margin-top: 10px; }
.keycard .head { display: flex; align-items: center; gap: 10px; }
.keycard .head strong { font-size: 15.5px; }
.status { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--edge); color: var(--muted); margin-left: auto; }
.status.ok { color: var(--accent); border-color: rgba(154, 210, 232, 0.4); }
.keycard p { margin: 6px 0 12px; color: var(--muted); font-size: 13.5px; }
.keyinput { display: flex; gap: 6px; }
.keyinput input {
  flex: 1; min-width: 0; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--edge); background: var(--bg);
  padding: 0 12px; color: var(--text);
}
.keyinput input:focus { border-color: var(--accent); outline: none; }
.keyrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; }
.keyrow .msg { font-size: 13.5px; color: var(--muted); }
.keyrow .msg.ok { color: var(--accent); }
.keyrow .msg.bad { color: #f0a29a; }
.keyrow .link:last-child { margin-left: auto; }

/* ---------- zobrazenia: zoznam vs. mapa ---------- */
.only-map, .legend, .zoom { display: none !important; }
.is-map .only-map { display: inline-flex !important; }
.is-map .legend { display: block !important; }
.is-map .zoom { display: flex !important; }

.select select {
  appearance: none; height: 38px; padding: 0 34px 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--edge);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c9098' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  color: var(--text); font-weight: 500; cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.radar { position: absolute; inset: 72px 0 0 0; overflow-y: auto; padding: 8px 4px 24px; }
.canvas:has(#demo:not([hidden])) .radar { top: 118px; }
.radar-head h1 { margin: 6px 0 2px; font-size: 28px; letter-spacing: -0.02em; }
.radar-head p { margin: 0 0 16px; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.card {
  width: 100%; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px 14px; align-items: center;
  text-align: left; background: var(--island); border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; cursor: pointer;
}
.card:hover { background: var(--island-2); }
.card[aria-current="true"] { border-color: var(--accent); }
.card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-head .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.card-name { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.card .spark { grid-column: 2; grid-row: 1 / 3; }
.growth { color: var(--text); font-weight: 600; }
.muted, .muted-note { color: var(--muted); }
.radar-empty { max-width: 420px; margin: 12vh auto 0; text-align: center; color: var(--muted); }
.radar-empty strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }
.radar-empty .btn { margin-top: 10px; }

.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--edge); color: var(--muted); }
.chip-new { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.st-starting { color: var(--accent); border-color: rgba(154, 210, 232, 0.45); }
.st-rising { color: #a8d672; border-color: rgba(168, 214, 114, 0.4); }
.st-peak { color: var(--text); }
.st-falling { color: #f0a29a; border-color: rgba(240, 162, 154, 0.4); }

.curve-head { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.curve-head h3 { margin: 0 4px; }
.seg-sm button { height: 26px; padding: 0 10px; font-size: 13px; }
.curve { width: 100%; height: auto; margin-top: 8px; }
.curve .axis { stroke: var(--edge); }
.curve text { fill: var(--muted); font-size: 10px; }
.muted-note { background: transparent; border-left-color: var(--edge); }
.sources section { border-top: 1px solid var(--edge); padding: 8px 4px; }
.sources h4 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sources ul { margin: 0; padding-left: 16px; font-size: 13.5px; }
.sources li { margin: 3px 0; }
.sources a { text-decoration: none; }
.sources a:hover { text-decoration: underline; }

.srclist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; font-size: 13.5px; }
.srclist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px; }
.srclist li label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.srclist li > span { grid-column: 1; padding-left: 28px; font-size: 12.5px; }
.srclist li .danger-link { grid-column: 2; grid-row: 1 / 3; color: #f0a29a; }
.srclist li.off strong { color: var(--muted); }
.srclist input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.srcgroup { border: 0; padding: 0; margin: 12px 0 0; }
.srcgroup legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.src-add { margin-top: 18px; border: 1px solid var(--edge); border-radius: 14px; padding: 14px 16px; }
.src-add h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.src-fields { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; }
.src-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.src-fields input, .src-fields select { height: 38px; border-radius: var(--r-ctl); border: 1px solid var(--edge); background: var(--bg); color: var(--text); padding: 0 10px; }
.src-fields input:focus, .src-fields select:focus { border-color: var(--accent); outline: none; }
.src-add .keyrow { justify-content: space-between; }
.src-add .keyrow .msg { flex: 1; }
@media (max-width: 560px) { .src-fields { grid-template-columns: 1fr; } }
.srclist li span { color: var(--muted); }
.srclist li.bad span { color: #f0a29a; }

/* ---------- úzke obrazovky ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; padding: 8px; }
  .only-narrow { display: inline-flex !important; }
  .side {
    position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 66%; z-index: 10;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5); transform: translateY(calc(100% + 16px)); transition: transform 0.22s ease-out;
  }
  .side.open { transform: none; }
  .btn.primary span { display: none; }
  .btn.primary { width: 38px; padding: 0; }
  .tools { gap: 6px; padding: 6px; }
  .seg button { padding: 0 9px; height: 30px; font-size: 14px; }
  .brand { width: 50px; height: 50px; }
  .actions { padding: 6px; }
  .notice { top: auto; bottom: 64px; left: 0; right: 0; font-size: 12.5px; }
  .keys { display: none; }
  .legend { max-width: calc(100% - 120px); padding: 8px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cat { flex: none; }
  #zin, #zout { display: none; }
  .top { flex-wrap: wrap; }
  .radar { top: 176px; }
  .canvas:has(#demo:not([hidden])) .radar { top: 176px; padding-bottom: 80px; }
  .cards { grid-template-columns: 1fr; }
  .tools { order: 3; }
}
@media (max-width: 560px) {
  .top .tools { width: 100%; justify-content: space-between; }
  .notice { bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .side, .node, .link-path, .label3d { transition: none; }
}

/* ---------- Plán 2: pokrytie, upozornenia, sledovanie, formáty ---------- */
.chip.cov-free { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.chip.cov-starting { color: #e8c47a; border-color: rgba(232, 196, 122, 0.45); }
.chip.cov-taken { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.cov-none { color: var(--muted); border-style: dashed; }
.ring-free { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1 4; stroke-linecap: round; }
.radar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.radar-head h1, .radar-head p { flex: none; }
.radar-head p { flex: 1 1 320px; }
.btn.toggle { height: 32px; font-size: 13.5px; margin-bottom: 16px; }
.btn.toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.title-row { display: flex; align-items: baseline; gap: 12px; }
.title-row h2 { flex: 1; }
.title-row .link { font-size: 13px; color: var(--muted); }
.rename { display: flex; gap: 6px; margin: 10px 4px 4px; }
.rename input { flex: 1; min-width: 0; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--accent); background: var(--bg); color: var(--text); padding: 0 12px; font-size: 17px; font-weight: 600; }
.coverage { margin-top: 6px; }
.coverage .keyrow { justify-content: flex-start; }
.coverage .keyrow .msg { flex: 1 1 100%; }
.aliases .lang { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 0 5px; margin-right: 6px; }
[data-watch][aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(154, 210, 232, 0.5); }

.bell { position: relative; }
.badge-n {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #f0a29a; color: #2a0f0b; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
.alerts {
  position: absolute; top: 64px; right: 0; z-index: 6; width: min(420px, calc(100% - 16px)); max-height: 70%;
  display: flex; flex-direction: column; padding: 14px 14px 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.alerts header { display: flex; align-items: center; gap: 10px; }
.alerts h2 { margin: 0; font-size: 16px; flex: 1; }
.alerts header .link { font-size: 13px; color: var(--muted); }
.alerts ol { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; display: grid; gap: 6px; }
.alert-item {
  width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px;
}
.alert-item:hover { background: var(--island-2); }
.alert-item .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.alert-item strong { display: block; font-size: 14px; }
.alert-item .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.alert-item .when { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.alerts li.unread .alert-item { border-color: rgba(154, 210, 232, 0.45); }
.alerts li.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.empty-li { color: var(--muted); font-size: 13.5px; padding: 8px 4px; }
.formats textarea {
  width: 100%; border-radius: var(--r-ctl); border: 1px solid var(--edge); background: var(--bg); color: var(--text);
  padding: 10px 12px; font: inherit; resize: vertical;
}
.formats textarea:focus { border-color: var(--accent); outline: none; }
.formats .keyrow { justify-content: space-between; }
@media (max-width: 900px) { .alerts { top: auto; bottom: 8px; left: 0; right: 0; width: auto; max-height: 60%; } }

/* ---------- role a prihlásenie ---------- */
.is-member .owner-only, .no-auth .account-only { display: none !important; }
.invite-link { margin-top: 12px; display: grid; gap: 6px; }
.invite-link label { color: var(--muted); font-size: 13.5px; }
.sessions li, .people li { grid-template-columns: 1fr auto; }

.auth-page { overflow: auto; display: grid; place-items: center; min-height: 100%; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); padding: 28px 26px 26px; }
.auth-card .mark { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-card .mark svg { width: 40px; height: 40px; }
.auth-card .mark strong { font-size: 22px; letter-spacing: -0.015em; }
.auth-card h1 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.auth-card p { margin: 0 0 16px; color: var(--muted); }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.auth-card input {
  height: 42px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--edge);
  background: var(--bg); color: var(--text); font-size: 15px;
}
.auth-card input:focus-visible { border-color: var(--accent); }
.auth-card input.code { letter-spacing: 0.18em; font-size: 18px; }
.auth-card .btn.primary { height: 44px; margin-top: 4px; }
.auth-card .msg { min-height: 1.2em; font-size: 13.5px; }
.auth-card .msg.bad { color: #f0a29a; }
.auth-card .msg.ok { color: #8fd6a8; }
.auth-card .qr { background: #fff; border-radius: 12px; padding: 10px; width: 196px; margin: 4px auto 6px; }
.auth-card .qr svg { display: block; width: 100%; height: auto; }
.auth-card .secret { text-align: center; font-size: 13.5px; color: var(--muted); word-break: break-all; }
.auth-card .secret code { color: var(--text); font-size: 14px; }
.auth-card ol.steps { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.auth-card .codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px; margin: 0 0 14px;
  background: var(--bg); border-radius: var(--r-ctl); font-size: 15px; list-style: none; }
.sessions li > span, .people li > span { padding-left: 0; }
a.btn { text-decoration: none; }
.is-demo .push-only { display: none !important; }
