/* =========================================================================
   Capability Moneyball + HR Transformation Architect · demó környezet
   Önálló statikus alkalmazás. Nincs build, nincs függőség.
   A GoExO brand kék (hsl 210 100% 38% → 200 85% 45%) sötét termék-krómon.
   ========================================================================= */

:root {
  /* alap */
  --bg:            #070b13;
  --bg-deep:       #04070d;
  --surface:       #0d1422;
  --surface-2:     #131c2e;
  --surface-3:     #1a2438;
  --line:          rgba(150, 180, 225, 0.13);
  --line-strong:   rgba(150, 180, 225, 0.26);

  --text:          #e9eff9;
  --text-2:        #b6c5dc;
  --muted:         #7f93b1;
  --faint:         #5b6d88;

  /* GoExO brand */
  --brand:         #c2ab8f;      /* hsl(210 100% 55%) — a világos site --primary-glow-ja */
  --brand-deep:    #8a7256;      /* hsl(210 100% 38%) — a site --primary-je */
  --brand-soft:    rgba(164, 151, 140, 0.14);
  --brand-line:    rgba(164, 151, 140, 0.38);
  --gradient-brand: linear-gradient(135deg, #8a7256, #b39a7d);
  --gradient-glow:  linear-gradient(135deg, rgba(138,114,86,.22), rgba(179,154,125,.10));

  /* kettős óramű */
  --bau:           #b39a7d;
  --bau-soft:      rgba(164, 151, 140, 0.13);
  --exo:           #f5b544;
  --exo-soft:      rgba(245, 181, 68, 0.13);

  /* státusz */
  --ok:            #34d399;
  --ok-soft:       rgba(52, 211, 153, 0.13);
  --warn:          #fbbf24;
  --warn-soft:     rgba(251, 191, 36, 0.13);
  --risk:          #fb7185;
  --risk-soft:     rgba(251, 113, 133, 0.13);
  --info:          #a78bfa;
  --info-soft:     rgba(167, 139, 250, 0.13);

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --shadow:        0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-lift:   0 26px 60px -22px rgba(0, 0, 0, 0.95);

  --rail:          236px;
  --topbar:        58px;

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-display: 'Righteous', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
          'Liberation Mono', monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(138, 114, 86, 0.16), transparent 62%),
    radial-gradient(760px 520px at 4% 104%, rgba(179, 154, 125, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(164, 151, 140, 0.32); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(150, 180, 225, 0.16);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(150, 180, 225, 0.3); background-clip: content-box; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   BELÉPŐ KÉPERNYŐ
   ========================================================================= */

#login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 940px;
  background: linear-gradient(168deg, rgba(19, 28, 46, 0.94), rgba(9, 14, 24, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .login-card { grid-template-columns: 1.05fr 0.95fr; }
}

.login-left { padding: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .login-left { border-bottom: 0; border-right: 1px solid var(--line); }
}

.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.login-brand .mark { width: 32px; height: 32px; }
.login-brand .wordmark {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.login-brand .sep { width: 1px; height: 20px; background: var(--line-strong); }
.login-brand .product {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.login-sub { color: var(--text-2); font-size: 15px; max-width: 46ch; margin-bottom: 26px; }

.login-facts { display: grid; gap: 10px; margin-bottom: 28px; }
.login-fact {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-2);
}
.login-fact svg { flex: none; margin-top: 2px; color: var(--brand); }

.login-foot {
  font-size: 11.5px; color: var(--faint); line-height: 1.6;
  padding-top: 18px; border-top: 1px solid var(--line);
}

.login-right { padding: 40px; display: flex; flex-direction: column; }

.field-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px;
}

.tenant-list { display: grid; gap: 8px; margin-bottom: 24px; }

.tenant-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s, background .15s;
}
.tenant-opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tenant-opt[aria-pressed="true"] {
  border-color: var(--brand-line); background: var(--brand-soft);
}
.tenant-opt .avatar {
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--gradient-brand); color: #fff; letter-spacing: -0.01em;
}
.tenant-opt .t-name { font-size: 13.5px; font-weight: 600; }
.tenant-opt .t-meta { font-size: 11.5px; color: var(--muted); }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 26px; }

.role-opt {
  padding: 11px 12px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s, background .15s;
}
.role-opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.role-opt[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); }
.role-opt .r-name { font-size: 13px; font-weight: 600; display: block; }
.role-opt .r-desc { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }

.btn-signin {
  width: 100%; padding: 13px 16px; cursor: pointer; margin-top: auto;
  background: var(--gradient-brand); color: #fff; font-weight: 600; font-size: 14px;
  border: 0; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 26px -12px rgba(138, 114, 86, 0.9);
  transition: transform .14s, box-shadow .14s;
}
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(138, 114, 86, 1); }
.btn-signin:active { transform: translateY(0); }

.signin-note { font-size: 11px; color: var(--faint); text-align: center; margin-top: 12px; }

/* =========================================================================
   ALKALMAZÁS VÁZ
   ========================================================================= */

#app { display: none; min-height: 100vh; }
#app.on { display: grid; grid-template-columns: var(--rail) 1fr; }

/* --- oldalsáv --- */
.rail {
  grid-row: 1 / -1;
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.9), rgba(6, 10, 18, 0.95));
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.rail-brand {
  height: var(--topbar); flex: none; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.rail-brand .mark { width: 24px; height: 24px; flex: none; }
.rail-brand .txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.rail-brand .n1 { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.rail-brand .n2 { font-size: 9.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--brand); }

.rail-scroll { flex: 1; overflow-y: auto; padding: 14px 10px; }

.rail-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--faint); padding: 14px 8px 7px;
}
.rail-group-label:first-child { padding-top: 2px; }

.nav-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 2px; cursor: pointer; text-align: left;
  background: transparent; border: 0; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: background .13s, color .13s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: #efe3d1; font-weight: 600; }
.nav-item.active .nav-ico { color: var(--brand); }
.nav-ico { flex: none; color: var(--faint); transition: color .13s; }
.nav-item .badge-n {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  background: var(--warn-soft); color: var(--warn);
}
.nav-item.locked { opacity: .45; }

.rail-foot { flex: none; padding: 12px 14px; border-top: 1px solid var(--line); }

.env-chip {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, 0.26);
}
.env-chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.env-chip .t { font-size: 10.5px; font-weight: 600; color: #f7d999; line-height: 1.3; }

/* --- felső sáv --- */
.topbar {
  height: var(--topbar); position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: rgba(7, 11, 19, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb .c1 { font-size: 12px; color: var(--faint); }
.crumb .c-sep { color: var(--faint); }
.crumb .c2 { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-spacer { flex: 1; }

.top-ctl {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
  transition: border-color .14s, background .14s;
}
.top-ctl:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.top-ctl .sub { color: var(--faint); font-size: 11px; }
.top-ctl svg { color: var(--faint); flex: none; }

.avatar-sm {
  width: 20px; height: 20px; border-radius: 5px; flex: none;
  display: grid; place-items: center; font-size: 9px; font-weight: 700;
  background: var(--gradient-brand); color: #fff;
}

.lang-toggle { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-toggle button {
  padding: 0 10px; height: 30px; background: transparent; border: 0; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--muted); transition: background .13s, color .13s;
}
.lang-toggle button.on { background: var(--brand-soft); color: #efe3d1; }

/* --- fő terület --- */
.main { min-width: 0; }
.view { padding: 24px 26px 60px; max-width: 1440px; }

.view-head { margin-bottom: 22px; }
.view-title { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.view-sub { color: var(--muted); font-size: 13px; margin-top: 5px; max-width: 76ch; }
.view-head-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.view-head-row .grow { flex: 1; min-width: 260px; }

/* =========================================================================
   ÚJRAFELHASZNÁLHATÓ ELEMEK
   ========================================================================= */

.card {
  background: linear-gradient(168deg, rgba(19, 28, 46, 0.62), rgba(11, 17, 29, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }

.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 13.5px; font-weight: 620; }
.card-head .hint { font-size: 11.5px; color: var(--faint); }
.card-head .push { margin-left: auto; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g-2-1 { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g-2-1 { grid-template-columns: 1.55fr 1fr; }
}
@media (min-width: 1240px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.02em;
  border: 1px solid transparent; white-space: nowrap;
}
.pill.ok    { background: var(--ok-soft);   color: var(--ok);    border-color: rgba(52,211,153,.26); }
.pill.warn  { background: var(--warn-soft); color: var(--warn);  border-color: rgba(251,191,36,.26); }
.pill.risk  { background: var(--risk-soft); color: var(--risk);  border-color: rgba(251,113,133,.26); }
.pill.info  { background: var(--info-soft); color: var(--info);  border-color: rgba(167,139,250,.26); }
.pill.brand { background: var(--brand-soft);color: #d8c2a4;      border-color: var(--brand-line); }
.pill.bau   { background: var(--bau-soft);  color: var(--bau);   border-color: rgba(164,151,140,.26); }
.pill.exo   { background: var(--exo-soft);  color: var(--exo);   border-color: rgba(245,181,68,.26); }
.pill.mute  { background: rgba(150,180,225,.08); color: var(--muted); border-color: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; cursor: pointer; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 12.5px; font-weight: 570;
  transition: background .14s, border-color .14s, transform .12s;
}
.btn:hover { background: var(--surface-3); border-color: var(--brand-line); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn.primary {
  background: var(--gradient-brand); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px -10px rgba(138, 114, 86, 0.85);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--risk); border-color: rgba(251,113,133,.32); }
.btn.danger:hover { background: var(--risk-soft); border-color: var(--risk); }
.btn.sm { padding: 5px 10px; font-size: 11.5px; }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint);
  padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(150,180,225,.07); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; transition: background .12s; }
.table tbody tr.clickable:hover { background: rgba(150, 180, 225, 0.045); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dim  { color: var(--muted); }
.faint{ color: var(--faint); }
.tiny { font-size: 11px; }

.empty { padding: 30px; text-align: center; color: var(--faint); font-size: 12.5px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 12.5px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; font-weight: 550; }

.note {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 12px; color: #bfdcff; line-height: 1.5;
}
.note svg { flex: none; margin-top: 1px; color: var(--brand); }
.note.warn  { background: var(--warn-soft); border-color: rgba(251,191,36,.3); color: #f5dda2; }
.note.warn svg { color: var(--warn); }
.note.risk  { background: var(--risk-soft); border-color: rgba(251,113,133,.3); color: #f7c2cc; }
.note.risk svg { color: var(--risk); }

.progress { height: 5px; border-radius: 999px; background: rgba(150,180,225,.12); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--gradient-brand); }

/* =========================================================================
   KETTŐS ÓRAMŰ (cockpit)
   ========================================================================= */

.clocks { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .clocks { grid-template-columns: 1fr 1fr; } }

.clock { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.clock.bau { background: linear-gradient(168deg, rgba(164,151,140,.07), rgba(11,17,29,.6)); }
.clock.exo { background: linear-gradient(168deg, rgba(245,181,68,.07), rgba(11,17,29,.6)); }

.clock-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.clock-head .ttl { font-size: 13px; font-weight: 650; }
.clock.bau .ttl { color: #d8c2a4; }
.clock.exo .ttl { color: #f8d597; }
.clock-head .sub { font-size: 11px; color: var(--faint); margin-left: auto; }

.kpi-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid rgba(150,180,225,.06);
}
.kpi-row:last-child { border-bottom: 0; }
.kpi-main { min-width: 0; flex: 1; }
.kpi-label { font-size: 11.5px; color: var(--muted); }
.kpi-value { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-value .u { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.kpi-delta { font-size: 11px; font-weight: 620; display: inline-flex; align-items: center; gap: 3px; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--risk); }
.kpi-delta.flat { color: var(--muted); }
.kpi-spark { flex: none; }

/* =========================================================================
   HŐTÉRKÉP
   ========================================================================= */

.heat-wrap { overflow-x: auto; padding: 4px; }
.heat { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.heat th {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint); padding: 5px 8px; text-align: center; white-space: nowrap;
}
.heat th.rowh { text-align: left; color: var(--text-2); text-transform: none; font-size: 12px; letter-spacing: 0; font-weight: 550; }
.heat td { padding: 0; }

.heat-cell {
  width: 100%; min-width: 74px; height: 50px; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.heat-cell:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.heat-cell.sel { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.16); }
.heat-cell .sc { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.heat-cell .fl { font-size: 9px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; opacity: .82; }

.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); }
.heat-legend .sw { width: 22px; height: 10px; border-radius: 3px; }

/* =========================================================================
   COPILOT
   ========================================================================= */

.copilot { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - var(--topbar) - 108px); min-height: 480px; }

.art50 {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px;
  background: var(--info-soft); border: 1px solid rgba(167,139,250,.28);
  border-radius: var(--radius-sm); font-size: 11.5px; color: #ddd2ff;
}
.art50 svg { flex: none; color: var(--info); }

.chat { overflow-y: auto; padding: 18px 2px; display: flex; flex-direction: column; gap: 18px; }

.msg { display: flex; gap: 11px; max-width: 900px; }
.msg .who {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.msg.user .who { background: var(--surface-3); color: var(--text-2); }
.msg.ai .who { background: var(--gradient-brand); color: #fff; }
.msg .body { min-width: 0; flex: 1; }
.msg .name { font-size: 11px; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.msg .text { font-size: 13.5px; line-height: 1.62; color: var(--text); }
.msg .text p + p { margin-top: 9px; }
.msg.user .text { color: var(--text-2); }

.route {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 9px 0 11px; font-size: 10.5px; color: var(--faint);
}
.route .step {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  font-weight: 600;
}
.route .step.lead { background: var(--brand-soft); border-color: var(--brand-line); color: #d8c2a4; }
.route .arr { color: var(--faint); }

.cite {
  display: inline-flex; align-items: baseline; gap: 3px; cursor: pointer;
  padding: 0 5px; margin: 0 1px; border-radius: 4px; vertical-align: baseline;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: #8cc6ff; font-size: 10.5px; font-weight: 650;
  font-family: var(--font-mono); line-height: 1.5;
}
.cite:hover { background: rgba(164,151,140,.24); }

.no-evidence {
  display: flex; gap: 9px; padding: 10px 12px; margin-top: 10px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft); border: 1px dashed rgba(251,191,36,.42);
  font-size: 12px; color: #f5dda2;
}
.no-evidence svg { flex: none; color: var(--warn); margin-top: 1px; }

.suggested { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.chip-q {
  padding: 7px 12px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--text-2); transition: border-color .13s, background .13s, color .13s;
}
.chip-q:hover { border-color: var(--brand-line); background: var(--brand-soft); color: #bfdcff; }

.typing { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: blink 1.15s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .17s; }
.typing i:nth-child(3) { animation-delay: .34s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* forrás fiók */
.drawer-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(3, 6, 12, 0.66);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-back.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(560px, 100%); overflow-y: auto;
  background: linear-gradient(168deg, #101928, #080d16);
  border-left: 1px solid var(--line-strong); box-shadow: var(--shadow-lift);
  transform: translateX(100%); transition: transform .24s cubic-bezier(.3,.8,.3,1);
}
.drawer.on { transform: translateX(0); }
.drawer-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  background: rgba(12, 19, 32, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 14px; font-weight: 620; }
.drawer-body { padding: 18px; }

.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); transition: background .13s, color .13s, border-color .13s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }

.snippet {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(150,180,225,.05); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  font-size: 13px; line-height: 1.66; color: var(--text-2);
}
.snippet mark { background: rgba(164,151,140,.26); color: #dbecff; padding: 1px 2px; border-radius: 3px; }

/* entitásgráf */
.graph-box { background: rgba(4,8,15,.5); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* =========================================================================
   PORTFÓLIÓ / BUBORÉK
   ========================================================================= */

.bubble-box { background: rgba(4,8,15,.42); border-radius: var(--radius-sm); }

.slider-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.slider-row label { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 50%), rgba(150,180,225,.15) var(--fill, 50%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); cursor: pointer;
}

.rank-move { display: inline-flex; gap: 3px; }

.cut-row td { background: transparent !important; padding: 0 !important; }
.cutline {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px;
  background: linear-gradient(90deg, rgba(251,113,133,.13), transparent);
  border-top: 1px dashed rgba(251,113,133,.5); border-bottom: 1px dashed rgba(251,113,133,.5);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--risk);
}
tr.below td { opacity: .5; }

/* =========================================================================
   VALIDÁLÁS / JÓVÁHAGYÁS
   ========================================================================= */

.approval {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
}
.approval:last-child { border-bottom: 0; }
.approval .ap-main { flex: 1; min-width: 240px; }
.approval .ap-title { font-size: 13px; font-weight: 620; margin-bottom: 3px; }
.approval .ap-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }
.approval .ap-diff {
  margin-top: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: rgba(4,8,15,.5); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.75;
}
.ap-diff .minus { color: #f9a8b4; }
.ap-diff .plus  { color: #86efac; }
.approval .ap-actions { display: flex; gap: 7px; align-items: center; flex: none; }
.approval.done { opacity: .55; }

.audit-line { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid rgba(150,180,225,.07); font-size: 12px; }
.audit-line:last-child { border-bottom: 0; }
.audit-line .ts { flex: none; width: 128px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); padding-top: 1px; }
.audit-line .who2 { flex: none; width: 116px; color: var(--text-2); font-weight: 550; }
.audit-line .what { flex: 1; min-width: 0; color: var(--text-2); }
.audit-line .what b { color: var(--text); font-weight: 600; }
.audit-line.fresh { animation: flashin .9s ease-out; }
@keyframes flashin {
  from { background: rgba(164,151,140,.16); }
  to   { background: transparent; }
}

.fence {
  border: 1px solid rgba(251,113,133,.3); border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(251,113,133,.07), rgba(11,17,29,.55));
}
.fence-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(251,113,133,.2); }
.fence-head svg { color: var(--risk); flex: none; }
.fence-head h3 { font-size: 13.5px; font-weight: 620; color: #f9c9d1; }

.blocked-flash { animation: shake .42s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* =========================================================================
   BOARD PACK
   ========================================================================= */

.paper {
  background: #f7f9fc; color: #17233a; border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden; position: relative;
}
.paper .wm {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
  display: grid; place-items: center;
}
.paper .wm span {
  font-size: clamp(58px, 12vw, 132px); font-weight: 800; letter-spacing: .16em;
  color: rgba(138, 114, 86, 0.075); transform: rotate(-24deg); white-space: nowrap;
  user-select: none;
}
.paper-inner { position: relative; z-index: 2; padding: 40px; }

.paper-head { display: flex; align-items: flex-start; gap: 18px; border-bottom: 2px solid #8a7256; padding-bottom: 18px; margin-bottom: 24px; }
.paper-head .pb { display: flex; align-items: center; gap: 9px; }
.paper-head .pn { font-size: 16px; font-weight: 700; color: #0a2647; }
.paper-head .pm { margin-left: auto; text-align: right; font-size: 10.5px; color: #5b7395; line-height: 1.6; font-family: var(--font-mono); }

.paper h2 { font-family: var(--font-display); font-size: 25px; color: #0a2647; margin-bottom: 6px; }
.paper h4 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #8a7256; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #dbe4f0;
}
.paper p { font-size: 12.5px; line-height: 1.7; color: #35496a; }
.paper ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: #35496a; }

.paper-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .paper-kpi { grid-template-columns: repeat(4, 1fr); } }
.paper-kpi .pk { background: #fff; border: 1px solid #dbe4f0; border-radius: 9px; padding: 12px 14px; }
.paper-kpi .pk .l { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b83a6; }
.paper-kpi .pk .v { font-size: 20px; font-weight: 700; color: #0a2647; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.paper-kpi .pk .d { font-size: 10.5px; font-weight: 600; }

.paper table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.paper table th {
  text-align: left; padding: 7px 9px; background: #eef3fa; color: #44597c;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid #dbe4f0;
}
.paper table td { padding: 7px 9px; border-bottom: 1px solid #e6ecf5; color: #35496a; }

.paper-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid #dbe4f0; font-size: 10px; color: #7288a8; line-height: 1.7; }

/* =========================================================================
   BEMUTATÓ MÓD
   ========================================================================= */

.tour-back {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 20%, rgba(3,6,12,.5) 68%);
  opacity: 0; transition: opacity .25s;
}
.tour-back.on { opacity: 1; }

.tour {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(130%);
  z-index: 101; width: min(720px, calc(100% - 32px));
  background: linear-gradient(168deg, rgba(20,30,50,.97), rgba(9,14,24,.98));
  border: 1px solid var(--brand-line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.95);
  transition: transform .3s cubic-bezier(.3,.85,.3,1);
}
.tour.on { transform: translateX(-50%) translateY(0); }
.tour-body { padding: 18px 20px; }
.tour-step { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.tour-title { font-size: 15.5px; font-weight: 650; margin-bottom: 6px; }
.tour-say { font-size: 13px; color: var(--text-2); line-height: 1.62; }
.tour-say b { color: var(--text); font-weight: 600; }
.tour-foot { display: flex; align-items: center; gap: 9px; padding: 12px 20px; border-top: 1px solid var(--line); }
.tour-dots { display: flex; gap: 5px; margin-right: auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(150,180,225,.22); transition: background .18s, transform .18s; }
.tour-dots i.on { background: var(--brand); transform: scale(1.35); }

/* =========================================================================
   TOAST
   ========================================================================= */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; max-width: 380px;
  padding: 12px 15px; border-radius: var(--radius-sm);
  background: rgba(20, 30, 50, .97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift); font-size: 12.5px; color: var(--text-2);
  animation: toastin .26s cubic-bezier(.3,.9,.3,1);
}
.toast svg { flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.warn svg { color: var(--warn); }
.toast.risk svg { color: var(--risk); }
.toast b { color: var(--text); font-weight: 620; }
.toast.out { animation: toastout .22s forwards; }
@keyframes toastin  { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toastout { to   { opacity: 0; transform: translateX(20px); } }

/* =========================================================================
   ANIMÁCIÓ / MOZGÁS
   ========================================================================= */

.fade-up { animation: fadeup .34s cubic-bezier(.22,.8,.3,1) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(9px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* =========================================================================
   RESZPONZÍV
   ========================================================================= */

@media (max-width: 1080px) {
  :root { --rail: 64px; }
  .rail-brand .txt, .nav-item span.lbl, .rail-group-label, .env-chip .t { display: none; }
  .rail-brand { justify-content: center; padding: 0; }
  .nav-item { justify-content: center; padding: 10px 0; }
  .nav-item .badge-n { position: absolute; margin: 0; transform: translate(14px, -12px); }
  .nav-item { position: relative; }
  .env-chip { justify-content: center; padding: 8px; }
  .rail-foot { padding: 10px 8px; }
}

@media (max-width: 760px) {
  .view { padding: 18px 14px 60px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .crumb { display: none; }
  .top-ctl { flex: none; padding: 0 8px; }
  .top-ctl .sub, .top-ctl .lbl { display: none; }
  .lang-toggle { flex: none; }
  .lang-toggle button { padding: 0 8px; }
  .icon-btn { flex: none; }
  .audit-line { flex-wrap: wrap; gap: 5px 10px; }
  .audit-line .ts { width: auto; }
  .audit-line .who2 { width: auto; }
  .paper-inner { padding: 22px; }
  .login-left, .login-right { padding: 26px; }
  .copilot { height: auto; min-height: 0; }
  .chat { max-height: 60vh; }
}

/* =========================================================================
   NYOMTATÁS — csak a board pack
   ========================================================================= */

@media print {
  body { background: #fff; }
  .rail, .topbar, .tour, .tour-back, .toasts, .no-print, .drawer, .drawer-back { display: none !important; }
  #app.on { display: block; }
  .view { padding: 0; max-width: none; }
  .paper { box-shadow: none; border-radius: 0; }
  .paper .wm span { color: rgba(138, 114, 86, 0.11); }
  .paper-inner { padding: 0; }
  @page { margin: 16mm; }
}

/* =========================================================================
   Capability Moneyball — kiegészítő komponensek
   ========================================================================= */

/* --- pipeline-sáv: a két csomag fejezetei --- */
.pipeline {
  position: sticky; top: var(--topbar); z-index: 30;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden;
}
.pipeline::-webkit-scrollbar { height: 0; }
.pl-inner { display: flex; align-items: center; gap: 8px; padding: 9px 18px; white-space: nowrap; min-width: max-content; }
.pl-lead { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-right: 6px; flex: none; }
.pl-group {
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; flex: none; margin: 0 2px 0 8px;
}
.pl-group.sor { color: #d8c2a4; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.pl-group.sod { color: #f8d597; background: var(--exo-soft); border: 1px solid rgba(245,181,68,.26); }
.pl-sep { color: rgba(150,180,225,.3); flex: none; display: flex; }
.pl-node {
  display: flex; align-items: center; gap: 6px; flex: none;
  background: transparent; border: 0; cursor: pointer;
  font-size: 11.5px; font-weight: 550; color: var(--muted);
  padding: 4px 8px; border-radius: var(--radius-sm); transition: color .13s, background .13s;
}
.pl-node:hover { color: var(--text); background: var(--surface-2); }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(150,180,225,.3); flex: none; }
.pl-node.done .pl-dot { background: var(--ok); }
.pl-node.done .pl-lbl { color: var(--text-2); }
.pl-node.active { color: var(--text); font-weight: 700; background: var(--brand-soft); }
.pl-node.active .pl-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pl-here { font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #d8c2a4; margin-left: 2px; }

/* --- phase-bar (Build/Scale/Run) --- */
.phase-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase-cell {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.phase-cell.done { color: var(--ok); border-color: rgba(52,211,153,.3); background: var(--ok-soft); }
.phase-cell.active { color: #efe3d1; border-color: var(--brand-line); background: var(--brand-soft); }
.phase-sep { color: var(--faint); display: flex; }

/* --- capability mátrix --- */
.cap-table { display: flex; flex-direction: column; }
.cap-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 2.4fr 54px 46px 1.5fr 1fr 1.1fr 56px;
  padding: 10px 6px; border-bottom: 1px solid rgba(150,180,225,.07);
}
.cap-row.cap-head { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.cap-row.clickable { cursor: pointer; border-radius: var(--radius-sm); transition: background .12s; }
.cap-row.clickable:hover { background: rgba(150,180,225,.05); }
.cap-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-name > span:first-child { font-size: 12.5px; font-weight: 600; }
.cap-heat { text-align: center; font-weight: 700; font-size: 13px; padding: 5px 0; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.cap-target { text-align: center; color: var(--muted); }
.cap-gap { display: flex; align-items: center; gap: 8px; }
.gap-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(150,180,225,.12); overflow: hidden; }
.gap-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--warn), var(--risk)); }
.cap-cell { font-size: 12px; }
.cap-cell.mono { text-align: center; }
@media (max-width: 720px) {
  .cap-row { grid-template-columns: 2fr 44px 60px; }
  .cap-row .cap-target, .cap-row .cap-cell:nth-child(5), .cap-row .cap-cell:nth-child(6), .cap-row .cap-cell:nth-child(7) { display: none; }
}

/* --- handoff / reads / warn notes --- */
.handoff, .reads-note, .warn-note, .hitl {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2);
}
.reads-note { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid var(--brand-line); color: #efe3d1; margin-bottom: 16px; }
.warn-note { border-left: 3px solid var(--warn); }
.warn-note svg { color: var(--warn); }
.handoff svg:first-child { color: var(--brand); }
.hitl { margin-top: 16px; }
.hitl svg:first-child { color: var(--brand); }

/* --- capability választó (value-chain) --- */
.cap-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pick {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; min-width: 150px; transition: border-color .13s, background .13s;
}
.pick:hover { border-color: var(--brand-line); }
.pick.on { border-color: var(--brand); background: var(--brand-soft); }
.pick-name { font-size: 12px; font-weight: 600; color: var(--text); }
.pick-meta { font-size: 11.5px; color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }

/* --- value-chain lépcsők --- */
.chain-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.chain { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
@media (min-width: 1080px) { .chain { grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1.05fr; } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.stage.eur { background: linear-gradient(168deg, rgba(52,211,153,.09), var(--surface)); border-color: rgba(52,211,153,.3); }
.stage-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.stage-no { font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; letter-spacing: .04em; }
.stage.eur .stage-no { color: var(--ok); background: var(--ok-soft); }
.stage-head svg { color: var(--faint); flex: none; }
.stage-title { font-size: 13px; font-weight: 680; }
.stage-sub { font-size: 10.5px; color: var(--faint); }
.stage-body { display: flex; flex-direction: column; gap: 10px; }
.stage-text { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.stage-item { padding: 9px 11px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.stage-arrow { display: none; align-items: center; justify-content: center; color: var(--brand); }
@media (min-width: 1080px) { .stage-arrow { display: flex; } }
.li-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 4px; }
.li-name { font-weight: 600; }
.li-src { flex: none; }
.li-val { color: var(--ok); font-size: 12.5px; margin-bottom: 4px; }
.cs-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.eur-big { font-size: 30px; font-weight: 780; color: var(--ok); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eur-big .u { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.ev-bar { display: flex; align-items: center; gap: 8px; }
.ev-track { flex: 1; height: 7px; border-radius: 999px; background: rgba(150,180,225,.12); overflow: hidden; }
.ev-track i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }

/* --- drawer részletek --- */
.drawer-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.metric-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.metric-box .mv { font-size: 20px; font-weight: 720; margin-top: 2px; font-variant-numeric: tabular-nums; }
.drawer-sub { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 16px 0 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-2); }

/* --- cutline vezérlő --- */
.cutctl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cutctl b { font-size: 14px; color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; }

/* --- portfólió tábla vágóvonal-jelzés --- */
.table tbody tr.below td { opacity: .5; }
.table tbody tr.sel td { background: var(--brand-soft); }

/* --- board pack extra --- */
.paper .opt { font-size: 12.5px; line-height: 1.7; color: #35496a; padding: 9px 13px; background: #fff; border: 1px solid #dbe4f0; border-radius: 8px; margin-bottom: 8px; }
.paper-kpi .pk .num { font-size: 20px; font-weight: 700; color: #0a2647; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.paper-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid #dbe4f0; font-size: 10.5px; color: #5b7395; font-family: var(--font-mono); }

/* --- nyomtatás: csak a board pack --- */
@media print {
  .rail, .topbar, .pipeline, .toasts, .drawer, .drawer-back, .tour, .tour-back, .view-head { display: none !important; }
  #app.on { display: block; }
  .view { padding: 0; max-width: none; }
  .paper { box-shadow: none; }
  body { background: #fff; }
}

/* --- GoExO align: túllógás & tördelés javítás --- */
.view { overflow-x: clip; }
.reads-note, .handoff, .hitl { flex-wrap: wrap; }
.reads-note > span, .handoff > span, .hitl > span { min-width: 0; }
.heat-legend { flex-wrap: wrap; row-gap: 6px; }
.card, .stage, .stage-item, .kpi-row, .cap-name { min-width: 0; }
.cap-name > span:first-child { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .cap-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cap-row { min-width: 320px; }
}
