/* ============================================================
   Analyzza Zero — kézzel írt design-rendszer (Tailwind nélkül)
   Inter betű, fehér vászon, hajszálvékony keretek, finom mélység
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/vendor/inter/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokenek ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;          /* login háttér, sor-hover */
  --card: #ffffff;
  --line: #e8e6e3;             /* kártya/kontroll keret */
  --line-soft: #f1efec;        /* sor-elválasztó */
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a29d97;
  --hover: #f6f5f3;
  --accent: #2a78d6;
  --accent-ink: #205da8;
  --accent-soft: rgba(42, 120, 214, .09);
  --green: #178a63;
  --green-soft: rgba(23, 154, 108, .11);
  --amber: #b45309;
  --amber-soft: rgba(217, 119, 6, .12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, .09);
  --code-bg: #f7f6f4;
  --ring: 0 0 0 3px rgba(42, 120, 214, .22);
  --pop-shadow: 0 4px 6px -2px rgba(28, 25, 23, .05), 0 14px 34px -8px rgba(28, 25, 23, .16);
  --btn-shadow: 0 1px 2px rgba(28, 25, 23, .05);

  /* diagram-tokenek — a JS ezekből olvas */
  --surface-1: #ffffff; --grid: #f2f0ee; --baseline: #dedbd7;
  --series-1: #2a78d6; --series-2: #1baf7a; --muted: #a29d97;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0d; --bg-soft: #151312; --card: #171514;
    --line: #282523; --line-soft: #211f1d;
    --ink: #f0eeec; --ink-2: #a8a29c; --ink-3: #6f6a64;
    --hover: #1e1c1a;
    --accent: #3f8ce4; --accent-ink: #6faaec;
    --accent-soft: rgba(63, 140, 228, .13);
    --green: #34c393; --green-soft: rgba(38, 180, 133, .14);
    --amber: #e8a33d; --amber-soft: rgba(217, 150, 50, .15);
    --red: #f87171; --red-soft: rgba(248, 113, 113, .12);
    --code-bg: #12100f;
    --pop-shadow: 0 4px 6px -2px rgba(0, 0, 0, .4), 0 16px 40px -8px rgba(0, 0, 0, .55);
    --btn-shadow: none;
    --surface-1: #171514; --grid: #242220; --baseline: #3a3733;
    --series-1: #3f8ce4; --series-2: #199e70; --muted: #6f6a64;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0d; --bg-soft: #151312; --card: #171514;
  --line: #282523; --line-soft: #211f1d;
  --ink: #f0eeec; --ink-2: #a8a29c; --ink-3: #6f6a64;
  --hover: #1e1c1a;
  --accent: #3f8ce4; --accent-ink: #6faaec;
  --accent-soft: rgba(63, 140, 228, .13);
  --green: #34c393; --green-soft: rgba(38, 180, 133, .14);
  --amber: #e8a33d; --amber-soft: rgba(217, 150, 50, .15);
  --red: #f87171; --red-soft: rgba(248, 113, 113, .12);
  --code-bg: #12100f;
  --pop-shadow: 0 4px 6px -2px rgba(0, 0, 0, .4), 0 16px 40px -8px rgba(0, 0, 0, .55);
  --btn-shadow: none;
  --surface-1: #171514; --grid: #242220; --baseline: #3a3733;
  --series-1: #3f8ce4; --series-2: #199e70; --muted: #6f6a64;
}

/* ---------- alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(42, 120, 214, .18); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
input[type="range"] { accent-color: var(--accent); }
.hidden { display: none !important; }
.axis-text { font-size: 11px; fill: var(--muted); font-family: 'Inter', system-ui, sans-serif; }

/* ---------- apró segédek ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }
.muted { color: var(--ink-2); font-size: 14px; }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; }
.loading { opacity: .55; transition: opacity .15s; }
.i { width: 16px; height: 16px; flex-shrink: 0; }
.i--sm { width: 13px; height: 13px; }
.i--dim { color: var(--ink-3); }

/* ---------- login ---------- */
.login-screen {
  display: none;
  min-height: 100vh; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg-soft);
}
.login-screen.flex { display: flex; }
.login-card {
  width: 100%; max-width: 384px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 12px 32px -12px rgba(28,25,23,.1);
}
.login-card .brand { margin-bottom: 4px; }
.login-card .lead { margin-bottom: 28px; font-size: 13px; color: var(--ink-2); }
.login-card label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.login-card .input { width: 100%; height: 40px; margin-bottom: 16px; }
.login-card .btn--primary { width: 100%; height: 40px; margin-top: 8px; }
.login-error { margin-top: 12px; min-height: 20px; font-size: 13px; color: var(--red); }

/* ---------- app-váz ---------- */
.shell { min-height: 100vh; }
@media (min-width: 1024px) { .shell { display: grid; grid-template-columns: 240px 1fr; } }
.shell.no-side { display: block; }

.sidebar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; overflow-x: auto;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .sidebar {
    height: 100vh; flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 16px; overflow-y: auto; overflow-x: hidden;
    border-bottom: 0; border-right: 1px solid var(--line);
  }
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0; }
@media (min-width: 1024px) { .sidebar .brand { padding: 6px 10px; margin-bottom: 8px; } }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #3987e5, #205da8);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(42,120,214,.35);
}
.brand-name { display: inline; }
.brand-zero { color: var(--accent); }

.nav { display: flex; flex: 1; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav { flex: initial; flex-direction: column; align-items: stretch; gap: 2px; } }
.nav-group { display: none; }
@media (min-width: 1024px) {
  .nav-group { display: block; padding: 20px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
}
.nav-link {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 7px 10px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2);
  transition: background .12s, color .12s;
}
.nav-link .i { opacity: .8; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.active { background: var(--hover); color: var(--ink); font-weight: 600; }
.nav-link.active .i { color: var(--accent); opacity: 1; }
.nav-link span { display: none; }
@media (min-width: 640px) { .nav-link span { display: inline; } }
.sidebar-foot { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
@media (min-width: 1024px) {
  .sidebar-foot { margin-top: auto; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
}
.sidebar-foot .nav-link span { display: none; }
@media (min-width: 1024px) { .sidebar-foot .nav-link span { display: inline; } }

.main { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
@media (min-width: 640px) { .main { padding: 36px 32px; } }
.footer { padding-bottom: 32px; text-align: center; font-size: 12px; color: var(--ink-3); }
.footer a { font-weight: 600; color: var(--accent); }
.footer a:hover { text-decoration: underline; }

/* ---------- tipográfia ---------- */
.h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 4px; }
.page-lead { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }
.backlink {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .12s;
}
.backlink:hover { color: var(--ink); }

/* ---------- gombok, mezők ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  box-shadow: var(--btn-shadow);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: var(--baseline); }
.btn.on {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft); color: var(--accent-ink);
}
.btn--primary {
  border-color: transparent; background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 1px 2px rgba(42,120,214,.35);
}
.btn--primary:hover { background: var(--accent-ink); border-color: transparent; }
.btn--danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.btn--danger:hover { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn--icon { width: 36px; padding: 0; color: var(--ink-2); }
.btn--icon:hover { color: var(--ink); }
.btn.disabled { opacity: .35; pointer-events: none; }
.btn-x { color: var(--ink-3); padding: 2px 6px; border-radius: 6px; transition: color .12s; }
.btn-x:hover { color: var(--red); }

/* értesítés-csengő az eszköztárban */
.bell-dot {
  position: absolute; top: -5px; right: -5px; z-index: 1;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 14px; text-align: center;
  border: 2px solid var(--bg);
}
.bell-panel {
  position: fixed; z-index: 80; width: 22rem; max-width: calc(100vw - 24px);
  max-height: 72vh; overflow-y: auto; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}
.resp-spark { color: var(--ink-2); }

.input, .select {
  height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 13.5px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder { color: var(--ink-3); }
.select {
  cursor: pointer; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a29d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input[type="date"].input { padding-right: 8px; }

/* ---------- kártya ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.card--flush { padding: 0; overflow: hidden; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--ink-3); }
.card-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.card-head--rule { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.empty { display: flex; flex: 1; align-items: center; justify-content: center; padding: 24px 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- csempék ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { display: flex; flex-direction: column; padding: 18px 20px; }
.tile-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tile-value {
  margin-top: 4px; font-size: 28px; line-height: 1.1; font-weight: 700;
  letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex; align-items: center; gap: 3px; width: fit-content;
  margin-top: 9px; padding: 2px 7px; border-radius: 6px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pill--up { background: var(--green-soft); color: var(--green); }
.pill--down { background: var(--red-soft); color: var(--red); }
.pill--flat { background: var(--hover); color: var(--ink-3); }

.drop-note { margin: -6px 2px 20px; font-size: 12px; color: var(--ink-3); }

/* ---------- fülek, szegmensek, menük ---------- */
.tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.tabs button {
  padding: 0 2px 9px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  transition: color .12s, border-color .12s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { border-color: var(--accent); color: var(--ink); font-weight: 600; }

.seg { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.seg button {
  padding: 4px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); transition: background .12s, color .12s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--hover); color: var(--ink); font-weight: 600; }

.menu {
  position: absolute; right: 0; top: 100%; z-index: 30; margin-top: 6px;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); box-shadow: var(--pop-shadow);
}
.menu--panel { padding: 14px; }
.menu-item {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; text-align: left; font-size: 13.5px;
  transition: background .1s;
}
.menu-item:hover { background: var(--hover); }
.menu-item .check { width: 16px; font-weight: 700; color: var(--accent); }
.menu-sep { display: flex; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* kiemelőszín-választó */
.accent-wrap { position: relative; }
.accent-wrap .nav-link { width: 100%; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.swatch {
  position: relative; width: 24px; height: 24px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, .12);
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 9px; height: 5px; transform: translateY(-1px) rotate(-45deg);
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
}

/* ---------- jelvények, chipek ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--blue { background: var(--accent-soft); color: var(--accent-ink); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--gray { background: var(--hover); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 13px; font-weight: 600; color: var(--accent-ink);
}
.chip .btn-x { margin: 0 -4px 0 0; }

.code {
  overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line-soft);
  border-radius: 8px; background: var(--code-bg);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.6; white-space: pre; color: var(--ink-2);
}
code.code { display: inline-block; padding: 1px 6px; white-space: normal; }

/* ---------- bontás-listák ---------- */
.list { display: flex; flex-direction: column; min-height: 240px; }
.list.scroll { max-height: 384px; overflow-y: auto; }
.list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.list-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 40px; flex-shrink: 0; padding: 0 8px; border-radius: 7px;
  overflow: hidden; transition: background .1s;
}
.list-row:hover { background: var(--hover); }
.list-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 0 4px 4px 0; background: var(--accent-soft);
  opacity: 0; transition: opacity .15s;
}
.list-row:hover .list-bar { opacity: 1; }
.list-row.clickable { cursor: pointer; }
.list-row.filtered { background: var(--accent-soft); }
.list-row.filtered .list-bar { opacity: 1; }
.list-row.filtered .list-label { font-weight: 600; color: var(--accent-ink); }
.list-label { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.list-val { position: relative; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.list-div { position: relative; width: 1px; height: 15px; background: var(--line); }
.list-pct { position: relative; width: 36px; text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.more-btn {
  display: none; align-items: center; gap: 6px; margin: 10px auto 0;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background .12s, color .12s;
}
.more-btn:hover { background: var(--hover); color: var(--ink); }
.more-btn.flex { display: inline-flex; }

/* ---------- utak (journey board) ---------- */
.jboard-wrap { position: relative; overflow-x: auto; padding: 4px 2px 10px; }
.jboard { position: relative; display: flex; gap: 44px; min-width: max-content; }
.jcol { width: 236px; flex-shrink: 0; position: relative; }
.jcol-head { text-align: center; margin-bottom: 16px; }
.jnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
}
.jcol-total { font-size: 14px; font-weight: 700; }
.jnode {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 12px; margin-bottom: 8px; border-radius: 9px;
  background: var(--hover); font-size: 13px; text-align: left; cursor: pointer;
  transition: background .12s, color .12s, opacity .15s;
}
.jnode:hover { background: var(--line-soft); }
.jnode .jlbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jnode .jcnt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.jnode.dim { opacity: .35; }
.jnode.sel { background: var(--ink); color: var(--bg); }
.jnode.sel .i { color: var(--bg); opacity: .8; }
.jnode .i { flex-shrink: 0; width: 15px; height: 15px; opacity: .55; }
.jsvg { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.jsvg path { fill: none; stroke: var(--baseline); stroke-linecap: round; }

/* ---------- uptime board ---------- */
.up-strip { display: flex; gap: 1.5px; align-items: flex-end; height: 24px; }
.up-strip span { flex: 1; min-width: 2px; border-radius: 2px; }

/* ---------- táblázatok ---------- */
.table-scroll { overflow-x: auto; padding: 0 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  padding: 13px 12px; text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.tbl th.right { text-align: right; }
.tbl td { padding: 12px; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.tbl tbody tr:last-child > td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; transition: background .1s; }
.tbl tr.click:hover { background: var(--bg-soft); }
.tbl td.right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.dim { color: var(--ink-2); }
.tbl td.shrink { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tbl .detail-cell { padding: 0; background: var(--bg-soft); }
.tbl-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.tbl-note { padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-3); }

/* ---------- idővonal (munkamenet-részletek) ---------- */
.timeline { display: flex; flex-direction: column; padding: 16px; }
.tl-row { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 0 0 10px 20px; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: var(--baseline); }
.tl-dot.event { background: var(--accent); }
.tl-line { position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl-time { width: 64px; flex-shrink: 0; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-path { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-event { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- avatar, élő pötty ---------- */
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; box-shadow: 0 0 0 2px var(--card), 0 1px 3px rgba(0,0,0,.15); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.live-dot { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
.live-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: var(--green); opacity: .55;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--green); }
.live-dot--lg, .live-dot--lg::before, .live-dot--lg::after { width: 14px; height: 14px; }
.kpi { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- folyamatjelzők ---------- */
.track { overflow: hidden; border-radius: 999px; background: var(--hover); height: 8px; }
.track .fill { height: 100%; border-radius: 999px; background: var(--green); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.funnel-track { overflow: hidden; border-radius: 6px; background: var(--hover); height: 20px; margin-left: 28px; }
.funnel-track .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff)); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.step-no {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--hover); font-size: 11px; font-weight: 700; color: var(--ink-2);
}

/* ---------- beállítások: mód-kártyák ---------- */
.mode-option {
  display: flex; width: 100%; align-items: flex-start; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  text-align: left; transition: border-color .12s, background .12s;
}
.mode-option:hover { background: var(--bg-soft); }
.mode-option.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.radio-dot {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px; border-radius: 999px;
  border: 2px solid var(--baseline); background: var(--card);
}
.mode-option.selected .radio-dot { border-color: var(--accent); background: var(--accent); }
.radio-dot i { width: 6px; height: 6px; border-radius: 999px; background: #fff; }
.panel-rule { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ---------- rács-elrendezések ---------- */
.grid-cards { display: grid; gap: 18px; margin-top: 0; }
@media (min-width: 768px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.mb { margin-bottom: 18px; }
.mt { margin-top: 18px; }

/* ---------- kattintható portfólió-sor ---------- */
.site-row { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 14px 22px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.site-row:hover { border-color: var(--baseline); box-shadow: 0 2px 12px -4px rgba(28,25,23,.08); }
.spark { height: 40px; width: 130px; flex-shrink: 0; }
.metric { display: flex; width: 96px; flex-direction: column; align-items: flex-end; }
.metric b { font-size: 17px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.metric span { font-size: 11px; color: var(--ink-3); }
.metric .pill { margin-top: 4px; }
