/* MRCDesk ügyfélportál – "Éjkék" arculat. Világos és sötét téma (prefers-color-scheme, vagy a felhasználó választása:
   html[data-theme=light|dark]). Beágyazott stílus nincs (szigorú CSP): minden itt van. */
:root {
  --brand-900: #1B365E;
  --brand-800: #1E3C67;
  --brand-700: #2A4974;
  --brand-200: #BCC7D7;
  --brand-50: #EFF1F4;
  --accent: #244B84;
  --accent-hover: #1E4276;
  --accent-soft: #E5E9F0;
  --accent-ink: #ffffff;
  --bg: #F3F5F7;
  --surface: #ffffff;
  --surface-2: #F7F8FA;
  --panel: #EFF1F4;
  --text: #15222A;
  --muted: #4E5D6A;
  --border: #DDE0E4;
  --border-strong: #C5C9CF;
  --ok: #137144;
  --ok-soft: #E0F3E7;
  --warn: #8A5300;
  --warn-soft: #FCF0D9;
  --bad: #B42318;
  --bad-soft: #FDE8E6;
  --chart: #244B84;
  --chart-soft: #D2D9E3;
  --track: #E3E7EC;
  --sidebar: #1B365E;
  --sidebar-2: #152A48;
  --sidebar-text: #BCC7D7;
  --sidebar-active: #2A4974;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 36, .06);
  --shadow: 0 1px 2px rgba(16, 24, 36, .05), 0 8px 24px -12px rgba(16, 24, 36, .18);
  --shadow-lg: 0 18px 48px -16px rgba(16, 24, 36, .35);
  --ring: 0 0 0 3px rgba(36, 75, 132, .28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #6585B3;
    --accent-hover: #809BC3;
    --accent-soft: #1D2735;
    --accent-ink: #091322;
    --bg: #0D0F12;
    --surface: #15181C;
    --surface-2: #19241F;
    --panel: #14181E;
    --text: #E4E7EB;
    --muted: #9EA4AC;
    --border: #333941;
    --border-strong: #444B55;
    --ok: #6FD193;
    --ok-soft: #15301F;
    --warn: #F0B75E;
    --warn-soft: #382A12;
    --bad: #FF8A80;
    --bad-soft: #3B1B19;
    --chart: #6585B3;
    --chart-soft: #2E3949;
    --track: #313944;
    --sidebar: #0E1827;
    --sidebar-2: #0A111C;
    --sidebar-active: #264067;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 18px 48px -16px rgba(0, 0, 0, .8);
    --ring: 0 0 0 3px rgba(101, 133, 179, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #6585B3;
  --accent-hover: #809BC3;
  --accent-soft: #1D2735;
  --accent-ink: #091322;
  --bg: #0D0F12;
  --surface: #15181C;
  --surface-2: #19241F;
  --panel: #14181E;
  --text: #E4E7EB;
  --muted: #9EA4AC;
  --border: #333941;
  --border-strong: #444B55;
  --ok: #6FD193;
  --ok-soft: #15301F;
  --warn: #F0B75E;
  --warn-soft: #382A12;
  --bad: #FF8A80;
  --bad-soft: #3B1B19;
  --chart: #6585B3;
  --chart-soft: #2E3949;
  --track: #313944;
  --sidebar: #0E1827;
  --sidebar-2: #0A111C;
  --sidebar-active: #264067;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 18px 48px -16px rgba(0, 0, 0, .8);
  --ring: 0 0 0 3px rgba(101, 133, 179, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
html:lang(ja) body { line-break: strict; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
h1, h2, h3, p, li, label, .btn, td, th, dd, dt { overflow-wrap: anywhere; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; margin: 0; font-weight: 700; }
h2 { font-size: 16px; line-height: 1.3; margin: 0; font-weight: 650; }
h3 { font-size: 14px; margin: 0; font-weight: 650; }
p { margin: 0 0 12px; }
svg { flex: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 24px; height: 24px; }
.icon.fill { fill: currentColor; stroke: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-xs); box-shadow: var(--shadow-lg);
}
.skip:focus { top: 12px; }

/* ---------- Keret: oldalsáv + tartalom ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%); color: var(--sidebar-text);
  padding: 20px 14px 16px; overflow-y: auto;
}
.sidebar-top { display: flex; flex-direction: column; gap: 18px; }
/* Logó: a kép width/height attribútuma adja az arányt (nincs ugrás betöltéskor); soha nem nagyobb az eredetinél (841×175). */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #fff; padding: 4px 8px 2px; border-radius: var(--radius-sm); }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 176px; max-width: 100%; height: auto; }
.brand-sub {
  font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--sidebar-text);
  padding-left: 2px; line-height: 1.2;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-weight: 550; font-size: 14.5px; position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav a[aria-current] { background: var(--sidebar-active); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.nav a[aria-current]::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #8BA6CC;
}
.nav .icon { opacity: .9; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(188, 199, 215, .6); padding: 14px 12px 4px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.help-box {
  border-radius: var(--radius-sm); padding: 12px 14px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.45;
}
.help-box strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.help-box a { color: #fff; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.org { display: flex; gap: 10px; align-items: center; padding: 4px 6px; font-size: 13px; }
.org .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.org strong { color: #fff; display: block; font-size: 13.5px; line-height: 1.3; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 32px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.crumbs strong { color: var(--text); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 550; padding: 6px 10px; border-radius: 999px; }
.top-phone:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.lang-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.lang-form select { min-height: 36px; padding: 6px 30px 6px 10px; font-size: 13.5px; border-radius: 999px; width: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.inline { display: inline; margin: 0; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface);
}
.user-chip:hover { border-color: var(--border-strong); }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; max-width: 180px; }
.user-chip .who strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who span { color: var(--muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 30;
}
.menu-pop .menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.menu-pop .menu-head strong { display: block; color: var(--text); font-size: 14px; }
.menu-pop a, .menu-pop button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop form { margin: 0; }

.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 48px; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 16px 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 10px; font-weight: 550; }

/* ---------- Kártyák, rácsok ---------- */
.grid { display: grid; gap: 20px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 20px; }
.grid.two { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); margin-bottom: 20px; }
.grid.halves { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; min-width: 0;
}
.card + .card { margin-top: 20px; }
.grid > .card + .card, .download-grid > .card + .card, .support-grid > * + * { margin-top: 0; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 18px 24px 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head .sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
.card-head a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.card.accent {
  background: radial-gradient(120% 140% at 100% 0%, rgba(139, 166, 204, .18) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-900) 0%, #214171 100%);
  color: #EAEDF2; border-color: transparent;
}
.card.accent h2, .card.accent strong { color: #fff; }
.card.accent .muted, .card.accent .sub { color: var(--brand-200); }

.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-sub { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bubble {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.bubble.ok { background: var(--ok-soft); color: var(--ok); }
.bubble.warn { background: var(--warn-soft); color: var(--warn); }
.bubble.bad { background: var(--bad-soft); color: var(--bad); }
.stat-with-ring { display: flex; align-items: center; gap: 18px; }

/* Gyűrű (gépek kihasználtsága): SVG, a kitöltés a stroke-dasharray attribútumból. */
.ring { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--track); stroke-width: 10; }
.ring .value { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.ring.warn .value { stroke: var(--warn); }
.ring.bad .value { stroke: var(--bad); }
.ring-wrap { position: relative; width: 92px; height: 92px; flex: none; }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring-label strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ring-label span { display: block; font-size: 11px; color: var(--muted); }
.card.accent .ring .track { stroke: rgba(255, 255, 255, .14); }
.card.accent .ring .value { stroke: #8BA6CC; }
.card.accent .ring-label span { color: var(--brand-200); }

.bar { width: 100%; height: 8px; display: block; }
.bar .track { fill: var(--track); }
.bar .value { fill: var(--accent); }
.bar.warn .value { fill: var(--warn); }
.bar.bad .value { fill: var(--bad); }

/* ---------- Diagram ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .col { fill: var(--chart); transition: fill .15s; }
.chart .col.zero { fill: var(--chart-soft); }
.chart .col:hover, .chart .col.hot { fill: var(--accent-hover); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 10px; }
.chart-legend strong { color: var(--text); font-variant-numeric: tabular-nums; }
.tip {
  position: fixed; z-index: 60; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-lg); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px));
}

/* ---------- Állapotjelzők ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  background: var(--panel); color: var(--muted); white-space: nowrap; line-height: 1.5;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.on-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex: none; }
.pill.ok .dot.live { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 113, 68, .45); }
  70% { box-shadow: 0 0 0 6px rgba(19, 113, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 113, 68, 0); }
}
@media (prefers-reduced-motion: reduce) { .pill.ok .dot.live { animation: none; } * { transition: none !important; } }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--panel); color: var(--muted); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 14.5px; font-weight: 650; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 36, .12);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.ghost { background: transparent; color: var(--accent); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(.94); }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: var(--border-strong); box-shadow: none; }
.btn.danger-ghost:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.light { background: #fff; color: var(--brand-900); border-color: #fff; }
.btn.light:hover { background: #EAEDF2; }
.btn.on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .24); box-shadow: none; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .18); }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Űrlapok ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; }
.field > .label { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.field .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.field .error { color: var(--bad); font-size: 13px; font-weight: 600; }
.req { color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=number],
input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); padding: 9px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--bad); background: var(--bad-soft); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
.locked {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-xs);
  background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--text); font-size: 15px;
}
.locked .icon { color: var(--muted); }
.check, .radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); cursor: pointer; font-size: 14px;
}
.check input, .radio-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.radio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-section { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); }
.form-section:first-of-type { border-top: 0; padding-top: 4px; }
.form-section .about h3 { font-size: 15px; margin-bottom: 4px; }
.form-section .about p { color: var(--muted); font-size: 13.5px; margin: 0; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.notice .icon { color: var(--accent); margin-top: 1px; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.warn .icon { color: var(--warn); }
.notice p:last-child { margin: 0; }

/* ---------- Visszajelzések ---------- */
.flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
  border: 1px solid; font-size: 14px; font-weight: 550;
}
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash.error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.flash.info { background: var(--accent-soft); color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.flash ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Eszköztár, szegmensek ---------- */
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); }
.seg a {
  padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.count-badge { font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.seg a[aria-current] .count-badge { background: var(--accent-soft); color: var(--accent); }

/* ---------- Táblázatok (keskeny kijelzőn kártyák) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.end, table.data th.end { text-align: right; }
table.data a.row-link { color: var(--text); font-weight: 650; }
table.data a.row-link:hover { color: var(--accent); }
.card.flush table.data th:first-child, .card.flush table.data td:first-child { padding-left: 24px; }
.card.flush table.data th:last-child, .card.flush table.data td:last-child { padding-right: 24px; }
.device { display: flex; align-items: center; gap: 12px; min-width: 0; }
.os {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); color: var(--accent); flex: none;
}
.device .names { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.device .names strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device .names span { color: var(--muted); font-size: 13px; }
.peer { display: flex; flex-direction: column; line-height: 1.35; }
.peer span { color: var(--muted); font-size: 13px; }
.arrow { color: var(--muted); }
.cell-sub { display: block; color: var(--muted); font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager .count { color: var(--muted); font-size: 13.5px; }

/* ---------- Üres állapot ---------- */
.empty { text-align: center; padding: 36px 20px 40px; max-width: 460px; margin: 0 auto; }
.empty svg.ill { width: 148px; height: 112px; margin-bottom: 14px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.ill .i-bg { fill: var(--panel); }
.ill .i-card { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.ill .i-line { stroke: var(--border-strong); stroke-width: 3; stroke-linecap: round; }
.ill .i-accent { fill: var(--accent); }
.ill .i-accent-soft { fill: var(--accent-soft); }
.ill .i-stroke { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lista (legutóbbi kapcsolatok) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list .meta { color: var(--muted); font-size: 13px; }
.list .side { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.list .side strong { display: block; color: var(--text); font-size: 14px; }

/* ---------- Licensz ---------- */
.key-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--panel); border: 1px dashed var(--border-strong);
}
.key { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: .06em; color: var(--text); overflow-wrap: anywhere; }
.card.accent .key-box { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.card.accent .key { color: #fff; }
.key.link { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.share-row + .flash { margin-top: 4px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.features .yes, .features .no { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.features .yes { background: var(--ok-soft); color: var(--ok); }
.features .no { background: var(--panel); color: var(--muted); }
.features li.off { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: 13px; color: var(--muted); font-weight: 500; }
dl.props { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; margin: 0; font-size: 14px; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; }

/* ---------- Beállítások: fülek ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: thin; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 8px 8px 0 0;
}
.tabs a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Támogatás ---------- */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.support-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.support-card .bubble { width: 48px; height: 48px; border-radius: 14px; }
.support-card .bubble .icon { width: 24px; height: 24px; }
.support-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.support-card .contact { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.support-card .contact a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Letöltések ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.download { display: flex; flex-direction: column; gap: 14px; }
.download .os { width: 52px; height: 52px; border-radius: 14px; }
.download .os .icon { width: 28px; height: 28px; }
.download.soon { opacity: .85; }
.download .meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}

/* ---------- Kétlépcsős azonosítás ---------- */
.qr-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.qr-frame { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--border); line-height: 0; }
.qr { width: 184px; height: 184px; }
.secret { font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
pre.api { font-family: var(--mono); font-size: 13px; line-height: 1.6; padding: 12px 16px; background: var(--panel); border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; }
pre.codes { font-family: var(--mono); font-size: 16px; line-height: 2; columns: 2; max-width: 380px; padding: 14px 18px; background: var(--panel); border-radius: var(--radius-sm); }

/* ---------- Belépés és jelszó oldalak ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; color: #EAEDF2; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 70% at 85% 10%, rgba(139, 166, 204, .22) 0%, transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(42, 73, 116, .9) 0%, transparent 70%),
    linear-gradient(160deg, #1B365E 0%, #0F1D31 100%);
}
.auth-art .brand { padding: 0; }
.auth-art .brand-logo { width: 200px; }
.auth-logo { margin-bottom: 30px; }
.auth-logo img { display: block; width: 180px; max-width: 100%; height: auto; }
.auth-art h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; color: #fff; margin: 0 0 14px; max-width: 460px; }
.auth-art p { color: var(--brand-200); font-size: 16px; max-width: 440px; }
.auth-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 12px; align-items: center; color: #EAEDF2; font-size: 15px; }
.auth-art li .bubble { background: rgba(255, 255, 255, .1); color: #8BA6CC; width: 34px; height: 34px; border-radius: 10px; }
.auth-art small { color: var(--brand-200); }
.auth-side { display: flex; flex-direction: column; padding: 24px 32px; }
.auth-side .auth-top { display: flex; justify-content: flex-end; }
.auth-form { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-form h1 { font-size: 28px; margin-bottom: 8px; }
.auth-form .lead { color: var(--muted); margin-bottom: 26px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .btn { width: 100%; min-height: 46px; font-size: 15.5px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-top: 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 13px; }
.langs a { color: var(--muted); padding: 4px 8px; border-radius: 6px; font-weight: 650; }
.langs a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.langs a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.big-ok { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 16px; }

/* ---------- További elemek (licensz, megerősítés, beállítások) ---------- */
.h2 { font-size: 20px; letter-spacing: -.01em; }
.mb-20 { margin-bottom: 20px; }
.title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.license-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.facts .bar { margin-top: 10px; }
.facts div.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.facts div.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.facts small.muted { display: block; font-size: 12.5px; margin-top: 2px; }
.small-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.card.accent a.on-dark-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 36px 40px; }
.hero h1 { margin: 16px 0 10px; }
.hero .sub { color: var(--muted); font-size: 16px; max-width: 560px; }
.hero-art svg.ill { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.bubble.lg { width: 56px; height: 56px; border-radius: 16px; }
ul.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
ul.checks li { display: flex; align-items: center; gap: 10px; font-weight: 550; }
ul.checks .icon { color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 3px; width: 22px; height: 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.inline-row .field { min-width: 200px; }
.form-grid .actions.wide { grid-column: 1 / -1; }
.danger-zone { margin-top: 22px; border-top: 1px solid var(--border); }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border); }
.action-row:last-child { border-bottom: 0; padding-bottom: 0; }
.action-row > div { flex: 1; min-width: 220px; }
.action-row p { margin: 2px 0 0; font-size: 13.5px; }
.device.big .os { width: 56px; height: 56px; border-radius: 16px; }
.device.big .names { gap: 4px; }
.device.big .names .mono { font-size: 15px; }
.toolbar .field.sort { min-width: 170px; }
.toolbar .field.sort .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.confirm { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; }
.confirm .bubble { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.confirm h1 { margin-bottom: 10px; }
.inline-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.inline-form select { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13.5px; }
.row-actions { display: inline-flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.status-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.status-stack form { margin: 0; }
.btn.link-btn { min-height: 0; padding: 2px 4px; font-size: 12.5px; }
.row-actions form { margin: 0; }
.btn.ghost.danger-text { color: var(--bad); }
.btn.ghost.danger-text:hover { background: var(--bad-soft); }
.invite-result { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.link-text { font-size: 13.5px; overflow-wrap: anywhere; color: var(--text); }
.radio-card .radio-body { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.subcard { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.subcard h3 { margin-bottom: 6px; }
.subcard.danger { border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); }
.big-ok.warn { background: var(--warn-soft); color: var(--warn); }
.empty-card .empty { padding-top: 24px; }
.empty-card .big-ok { margin: 0 auto 16px; }
.card.license + .card.license { margin-top: 20px; }
.download h2 { font-size: 18px; margin-bottom: 4px; }
.download .stat-top { align-items: flex-start; }
.lang-form select { background-color: var(--surface); }

/* ---------- Reszponzív ---------- */
@media (max-width: 1100px) {
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .license-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .hero-art { display: none; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; padding: 10px 14px; gap: 0; overflow: visible; }
  .sidebar-top { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #fff; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
  }
  .nav-toggle:focus-visible + .menu-btn { outline: 2px solid #fff; outline-offset: 2px; }
  .brand { flex-direction: row; align-items: center; gap: 10px; padding: 2px 4px; }
  .brand-logo { width: 132px; }
  .brand-sub { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: 10.5px; letter-spacing: .12em; }
  .auth-logo { display: none; }
  .auth-art .brand-logo { width: 150px; }
  .nav { display: none; flex-basis: 100%; padding: 10px 0 6px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a[aria-current]::before { display: none; }
  .sidebar-foot { display: none; }
  .topbar { position: static; padding: 10px 16px; }
  .content { padding: 22px 16px 40px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 24px; }
  .auth-art h2 { font-size: 24px; }
  .auth-art ul, .auth-art small { display: none; }
  .auth-side { padding: 16px; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}
@media (max-width: 700px) {
  h1 { font-size: 22px; }
  .card { padding: 18px 16px; }
  .card.flush > .card-head { padding: 16px 16px 0; }
  .stat-value { font-size: 26px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .crumbs, .top-phone span, .user-chip .who, .lang-form .lang-go { display: none; }
  .top-actions { margin-left: auto; }
  .page-head { align-items: flex-start; }
  .key { font-size: 16px; }
  .confirm { flex-direction: column; }
  .row-actions .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  /* Táblázatból kártyák: a fejléc eltűnik, minden cella a saját feliratával jelenik meg. */
  table.data.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table.data.responsive, table.data.responsive tbody, table.data.responsive tr, table.data.responsive td { display: block; width: 100%; }
  table.data.responsive tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.data.responsive td.end { position: absolute; top: 14px; right: 12px; width: auto; }
  table.data.responsive td.end::before, table.data.responsive td.arrow { display: none; }
  table.data.responsive tbody tr:last-child { border-bottom: 0; }
  table.data.responsive td { border: 0; padding: 5px 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  table.data.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; flex: none; }
  table.data.responsive td.primary { padding-bottom: 8px !important; text-align: left; }
  table.data.responsive td.primary::before { display: none; }
  table.data.responsive tbody tr:hover td { background: none; }
  .pager { padding: 12px 16px; }
}
/* Csomagválasztó (online vásárlás, közös a weboldallal: WebsitePages.Pricing) */
.period-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.period-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.period-switch label { padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.save { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
#period-year:checked ~ .period-switch label[for=period-year], #period-month:checked ~ .period-switch label[for=period-month] { background: var(--accent); color: var(--accent-ink); }
#period-year:focus-visible ~ .period-switch label[for=period-year], #period-month:focus-visible ~ .period-switch label[for=period-month] { box-shadow: var(--ring); }
#period-year:checked ~ .plans .m, #period-month:checked ~ .plans .y { display: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 8px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); }
.plan .popular { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan .popular.current { background: var(--ok); }
.plan h3 { font-size: 20px; margin: 0; }
.plan .tag { color: var(--muted); margin: 4px 0 16px; }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.plan .amount { font-size: 36px; font-weight: 800; line-height: 1; }
.plan .per, .plan .billed { color: var(--muted); }
.plan .billed { font-size: 13.5px; margin: 6px 0 14px; }
.plan .seats { font-weight: 700; margin: 0 0 16px; }
.plan .btn { width: 100%; justify-content: center; }
.plan-features { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 9px; font-size: 14.5px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features svg { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.pricing-notes { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px auto 0; max-width: 720px; }
.pricing-notes p { margin: 0 0 4px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 8px auto 0; } }
@media print {
  .sidebar, .topbar, .actions, .toolbar, .pager, .foot { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}