:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #dbe2ea;
  --text: #162033;
  --muted: #64748b;
  --primary: #116466;
  --primary-dark: #0b4f50;
  --danger: #b42318;
  --radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, .button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 8px 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--primary-dark); }
button.warning-button, .button.warning-button { border-color: #fde68a; background: #fffbeb; color: #92400e; }
button.warning-button:hover, .button.warning-button:hover { background: #fef3c7; }
button.danger-button, .button.danger-button { border-color: #fecaca; background: #fff1f2; color: var(--danger); }
button.danger-button:hover, .button.danger-button:hover { background: #ffe4e6; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: #fff; color: var(--text); font: inherit; }
label { display: grid; gap: 5px; font-weight: 700; color: #334155; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.topbar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 14px;
  background: #102a43;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 0;
  overflow-y: auto;
}
.brand {
  font-size: 17px;
  font-weight: 850;
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.topnav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.topnav a, .topnav button {
  width: 100%;
  justify-content: flex-start;
  color: #e5eef7;
  background: transparent;
  border-color: rgba(255,255,255,.18);
}
.topnav form { margin: 0; }
.topbar-utilities {
  position: fixed;
  left: 200px;
  right: 0;
  top: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  background: #102a43;
  border-bottom: 1px solid rgba(255,255,255,.12);
  z-index: 20;
}
.topbar-utilities-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-dropdown { position: relative; }
.topbar-dropdown-btn {
  position: relative;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: transparent;
  color: #e5eef7;
  font-weight: 800;
}
.topbar-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  border: 1px solid #fca5a5;
  font-size: 11px;
  line-height: 16px;
}
.topbar-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(92vw, 420px);
  background: #0b2238;
  color: #e5eef7;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(2, 6, 23, .48);
  padding: 10px;
  z-index: 200;
}
.topbar-dropdown-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.topbar-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.topbar-dropdown-grid > div {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 8px;
}
.topbar-dropdown-grid span { display:block; font-size:12px; color:#cbd5e1; }
.topbar-dropdown-grid strong { display:block; font-size:18px; margin-top:2px; color:#fff; }
.topbar-dropdown-list { display: grid; gap: 8px; margin-bottom: 10px; }
.topbar-tenant-row {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.topbar-tenant-row strong { display:block; font-size:13px; color:#fff; }
.topbar-tenant-row small { display:block; font-size:11px; color:#93c5fd; margin-top:2px; }
.topbar-tenant-counts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.topbar-tenant-counts .pill {
  display:inline-flex;
  align-items:center;
  min-height:22px;
  border-radius:999px;
  padding:2px 8px;
  border:1px solid rgba(251,191,36,.45);
  background: rgba(251,191,36,.16);
  color:#fde68a;
  font-size:11px;
  font-weight:800;
}
.topbar-tenant-counts .pill--danger {
  border-color: rgba(248,113,113,.45);
  background: rgba(248,113,113,.16);
  color: #fecaca;
}
.topbar-dropdown-empty {
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 10px;
  color: #cbd5e1;
  text-align: center;
  font-size: 13px;
}
.topbar-dropdown-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 5px 10px;
  color: #e5eef7;
}
.topbar-utilities-nav form { margin: 0; }
.topbar-utilities-nav button {
  color: #e5eef7;
  background: transparent;
  border-color: rgba(255,255,255,.18);
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}
.language-switcher a { min-height: 30px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #e5eef7; font-weight: 800; font-size: 12px; }
.language-switcher a.active { background: #fff; color: #102a43; border-color: #fff; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.inline-actions form { margin: 0; }
.icon-actions { gap: 6px; flex-wrap: nowrap; justify-content: flex-start; }
.icon-actions button { min-width: 36px; width: 36px; padding: 0; font-size: 15px; }
.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 82px 16px 56px 224px;
}
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.15; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.panel, .auth-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); margin-bottom: 18px; }
.auth-panel { max-width: 420px; margin: 64px auto; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .auth-panel h1 { margin: 0; }
.muted { color: var(--muted); }
.form-grid { display: grid; gap: 12px; }
.split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.company-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.company-subnav a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: #334155; font-weight: 700; }
.company-subnav a:hover { border-color: #b8c7da; background: #f8fbff; }
.company-subnav a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.metric span { color: var(--muted); font-weight: 700; display: block; }
.metric strong { font-size: 30px; display: block; margin-top: 4px; }
.table-wrap { overflow: auto; }
.company-list { display: grid; gap: 10px; }
.company-row { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.company-row span { display: block; margin-top: 2px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.module-grid--compact { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.module-pill, .switch-row { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fbfdff; }
.module-pill span, .switch-row small { color: var(--muted); display: block; }
.module-rights-fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin: 0; background: #fbfdff; }
.module-rights-fieldset legend { font-weight: 800; color: #334155; padding: 0 4px; }
.module-check { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: #fff; font-weight: 700; }
.module-check input { width: 16px; height: 16px; flex: 0 0 auto; }
.company-users-layout { align-items: start; }
.company-instance-picker { margin-top: 10px; }
.company-user-cards { display: grid; gap: 12px; }
.company-user-edit-form { border: 1px solid var(--line); border-radius: 6px; background: #fbfdff; padding: 12px; display: grid; gap: 10px; }
.company-user-edit-form .settings-details { background: #fff; }
.company-user-edit-form button { justify-self: end; }
.backup-command-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.backup-command-grid form { margin: 0; }
.backup-package-table { margin-top: 8px; }
.backup-package-table form { margin: 0; }
.module-grid--switches { grid-template-columns: 1fr; margin-bottom: 14px; gap: 12px; }
.switch-row { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; align-items: start; gap: 10px 14px; font-weight: 700; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.switch-row--off { background: #f8fafc; color: #64748b; }
.switch-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; grid-column: 1; grid-row: 1; }
.switch-row > span { grid-column: 2; grid-row: 1; min-width: 0; }
.switch-row strong { display: block; line-height: 1.25; overflow-wrap: anywhere; font-size: 15px; }
.switch-row small { display: block; margin-top: 3px; line-height: 1.2; overflow-wrap: anywhere; color: var(--muted); font-weight: 600; }
.switch-state { grid-column: 3; grid-row: 1; font-style: normal; color: var(--primary); font-size: 12px; font-weight: 800; text-align: right; }
.switch-row--off .switch-state { color: var(--muted); }
.module-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.module-form-head h3 { margin: 0 0 4px; }
.instance-panel details { margin-bottom: 14px; }
.settings-details { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fbfdff; }
.compact-form { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; margin-top: 10px; }
.secret-block { background: #0f172a; color: #e2e8f0; border-radius: 6px; padding: 12px; overflow: auto; }
.flash { border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #b7e4c7; background: #effaf3; color: #14532d; font-weight: 700; }
.flash--error { border-color: #fecaca; background: #fff1f2; color: var(--danger); }
.flash--warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--line); background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 800; }
.status-pill--ok, .status-pill--active { border-color: #bbf7d0; background: #ecfdf3; color: #166534; }
.status-pill--warning, .status-pill--skipped { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.status-pill--critical, .status-pill--failed, .status-pill--suspended, .status-pill--expired { border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.telemetry-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.host-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; padding: 14px; display: grid; gap: 12px; }
.host-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.host-card__head strong, .host-card__head span { display: block; }
.host-card__head span { color: var(--muted); margin-top: 2px; }
.host-card__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.host-card__metrics span { border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: #fff; color: var(--muted); font-weight: 700; }
.host-card__metrics b { display: block; color: var(--text); font-size: 18px; margin-top: 2px; }
.telemetry-toolbar { padding: 14px; }
.telemetry-filter { display: grid; grid-template-columns: minmax(260px, 1fr) 180px; gap: 12px; align-items: end; }
.event-filter { display: grid; grid-template-columns: minmax(260px, 1fr) 220px; gap: 12px; align-items: end; }
.telemetry-alerts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.telemetry-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.telemetry-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.telemetry-card span, .telemetry-card small { display: block; color: var(--muted); font-weight: 700; }
.telemetry-card span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.telemetry-card span em { font-style: normal; font-size: 11px; border-radius: 999px; padding: 2px 7px; background: #eef2f7; color: #475569; }
.telemetry-card--ok span em { background: #dcfce7; color: #166534; }
.telemetry-card--warning span em { background: #fef3c7; color: #92400e; }
.telemetry-card--critical span em { background: #fee2e2; color: #991b1b; }
.telemetry-card strong { display: block; font-size: 28px; margin: 4px 0 10px; }
.telemetry-meter { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.telemetry-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.tone-memory .telemetry-meter i { background: #2563eb; }
.tone-disk .telemetry-meter i { background: #7c3aed; }
.tone-temp .telemetry-meter i { background: #dc2626; }
.telemetry-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.telemetry-facts div { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fbfdff; min-width: 0; }
.telemetry-facts span { color: var(--muted); font-weight: 700; display: block; }
.telemetry-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telemetry-history-grid { display: grid; gap: 18px; }
.telemetry-chart-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.telemetry-chart-frame { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.telemetry-axis { height: 230px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--muted); font-size: 11px; font-weight: 700; padding: 8px 0; }
.telemetry-chart { height: 230px; display: flex; align-items: end; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: repeating-linear-gradient(180deg, #f8fafc 0, #f8fafc 44px, #edf2f7 45px), linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%); overflow-x: auto; }
.telemetry-bar { flex: 0 0 8px; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #116466 0%, #0b4f50 100%); }
.telemetry-bar--warning { background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%); }
.telemetry-bar--critical { background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%); }
.telemetry-chart-panel:nth-child(2) .telemetry-bar { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); }
.telemetry-chart-panel:nth-child(3) .telemetry-bar { background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%); }
.telemetry-chart-panel:nth-child(2) .telemetry-bar--warning, .telemetry-chart-panel:nth-child(3) .telemetry-bar--warning { background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%); }
.telemetry-chart-panel:nth-child(2) .telemetry-bar--critical, .telemetry-chart-panel:nth-child(3) .telemetry-bar--critical { background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%); }
.provision-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.provision-steps div { border: 1px solid var(--line); border-radius: 6px; background: #fbfdff; padding: 10px; }
.provision-steps strong { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--primary); color: #fff; margin-bottom: 8px; }
.provision-steps span { display: block; font-weight: 800; }
.provision-grid { display: grid; gap: 18px; }
.provision-card label { margin-top: 12px; }
.provision-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.provision-facts div { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fbfdff; min-width: 0; }
.provision-facts span { display: block; color: var(--muted); font-weight: 800; }
.provision-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-block--light { background: #f8fafc; color: var(--text); border: 1px solid var(--line); }
.device-type-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.device-type-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; overflow: hidden; display: grid; grid-template-rows: 180px auto; }
.device-type-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; background: #e2e8f0; }
.device-type-card__photo--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.device-type-card__body { padding: 12px; display: grid; gap: 6px; }
.device-type-card__body h3 { margin: 0; }
.device-type-card__body p { margin: 0; }

@media (max-width: 1200px) {
  .module-grid--switches { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .module-grid--switches { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 58px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    overflow: visible;
  }
  .brand { padding: 0; border-bottom: 0; }
  .topnav { flex-direction: row; flex-wrap: wrap; }
  .topnav a, .topnav button { width: auto; }
  .topbar-utilities {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    justify-content: flex-end;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .topbar-utilities-nav { width: 100%; justify-content: flex-end; }
  .topbar-dropdown-menu {
    right: 0;
    left: auto;
    width: min(96vw, 420px);
  }
  .language-switcher { padding: 0; }
  .shell { margin: 24px auto 56px; }
  .page-head, .company-row, .panel-head { align-items: stretch; flex-direction: column; }
  .split-layout, .metric-grid, .telemetry-summary, .telemetry-facts, .telemetry-filter, .event-filter, .provision-steps, .provision-facts { grid-template-columns: 1fr; }
  .module-grid--switches { grid-template-columns: 1fr; }
  .module-form-head { flex-direction: column; }
  .company-subnav { gap: 6px; }
}

.module-features { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.module-features .module-check { font-size: 13px; padding: 7px 10px; border-radius: 6px; background: #f8fafc; }
.module-features.is-disabled { opacity: 0.5; pointer-events: none; }
.module-features .module-check input:disabled + span { color: #94a3b8; }
/* ── Publikus felület (landing / GYIK / adatvédelem) ─────────────── */
.public-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px; background: #102a43; color: #fff; z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.public-topbar .brand { padding: 0; border-bottom: 0; font-size: 17px; font-weight: 850; }
.public-topnav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.public-topnav a { color: #e5eef7; padding: 8px 12px; border-radius: 6px; font-weight: 700; }
.public-topnav a:hover { background: rgba(255,255,255,.12); }
.public-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.login-icon-btn {
  width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.login-icon-btn:hover { background: rgba(255,255,255,.18); }
.login-icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.is-public .shell { margin: 92px auto 56px; }

/* Login modal */
.login-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.login-modal[hidden] { display: none; }
.login-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.55); backdrop-filter: blur(2px); }
.login-modal-card { position: relative; width: min(400px, calc(100vw - 32px)); background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 24px 64px rgba(2,6,23,.4); }
.login-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.login-modal-close { border: none; background: transparent; font-size: 22px; line-height: 1; min-height: 0; padding: 4px 8px; cursor: pointer; color: #475569; }

/* Landing: hírek */
.landing-news { margin-bottom: 28px; }
.landing-news-head h1 { margin: 0 0 14px; font-size: 26px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.06); display: flex; flex-direction: column; }
.news-card__image { width: 100%; height: 160px; object-fit: cover; display: block; background: #e2e8f0; }
.news-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__body h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.news-card__body p { margin: 0; color: #334155; font-size: 14px; }
.news-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.news-card__date { color: var(--muted); font-size: 12px; font-weight: 700; }
.news-card__price { background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* Landing: hero + irányítópult kártyák */
.landing-hero { text-align: center; padding: 26px 16px 10px; }
.landing-hero h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; }
.landing-hero-sub { margin: 0 auto; max-width: 720px; color: var(--muted); font-size: 16px; }
.landing-section-title { text-align: center; margin: 34px 0 6px; font-size: 22px; }
.landing-section-sub { text-align: center; margin: 0 auto 18px; max-width: 680px; color: var(--muted); }
.landing-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
.landing-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.landing-card__icon { font-size: 26px; margin-bottom: 8px; }
.landing-card h3 { margin: 0 0 6px; font-size: 16px; }
.landing-card p { margin: 0; color: #334155; font-size: 13.5px; }
.landing-links { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }

/* GYIK */
.faq-panel { padding: 8px 18px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 0; font-size: 18px; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-item__answer { padding: 10px 0 4px; color: #334155; }

/* Adatvédelem */
.privacy-panel { line-height: 1.65; }
.privacy-panel h2 { font-size: 17px; margin: 20px 0 6px; }
.privacy-panel h2:first-child { margin-top: 0; }
.privacy-panel p, .privacy-panel ul { margin: 6px 0; color: #334155; }

/* Admin: hírek kezelése */
.news-translations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.news-lang-block { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; margin: 0; }
.news-lang-block legend { font-weight: 800; font-size: 12px; color: var(--muted); padding: 0 6px; }
.news-meta-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.news-meta-grid label { min-width: 160px; }
.news-published-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.news-published-check input { width: auto; }
.news-current-image { display: flex; align-items: center; gap: 12px; }

@media (max-width: 820px) {
  .public-topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .public-topnav { order: 3; width: 100%; }
  .is-public .shell { margin: 120px auto 56px; }
  .landing-hero h2 { font-size: 24px; }
  .news-meta-grid { flex-direction: column; align-items: stretch; }
}

/* ── Céges portál: instance-kártyák + chipek ─────────────────────── */
.instance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.instance-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.instance-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.instance-card__domain { font-weight: 800; font-size: 16px; color: var(--primary); }
.instance-card__domain:hover { text-decoration: underline; }
.instance-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.instance-card__facts span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.instance-card__facts strong { font-size: 13px; }
.instance-card__modules h3 { margin: 4px 0 6px; font-size: 13px; color: #334155; }
.portal-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.portal-chip--on { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.portal-chip--off { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }

/* Céges portál: kapcsolható modul-chipek */
.portal-chip-form { margin: 0; display: inline-flex; }
.portal-chip--btn { min-height: 0; padding: 3px 10px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.portal-chip--btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.portal-chip--locked { opacity: .55; }

/* ── Landing: modul/eszköz kártyák + részletek modal + kapcsolat ─── */
.landing-details-btn { margin-top: 10px; width: 100%; }
.landing-device-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #e2e8f0; }
.landing-device-price { font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.detail-modal-card { width: min(560px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; }
.detail-modal-body h3 { margin: 0 0 10px; font-size: 19px; }
.detail-modal-body ul { margin: 8px 0; padding-left: 20px; }
.detail-modal-body li { margin: 5px 0; color: #334155; }
.detail-modal-body p { color: #334155; margin: 8px 0; }
.landing-contact { margin: 30px 0 10px; }
.contact-form { max-width: 620px; margin: 0 auto; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.login-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.login-tab { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #f1f5f9; font-weight: 800; font-size: 13px; color: #475569; }
.login-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }
/* Landing modul-videó: responsive 16:9 embed wrapper */
.landing-video-wrap { position: relative; padding-top: 56.25%; margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: #000; }
.landing-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
