/* Secure DDNS – sötét, minimalista, reszponzív téma */
:root {
  --bg: #0b0f14;
  --bg-2: #0e141b;
  --surface: #121820;
  --surface-2: #17202a;
  --border: #1f2a36;
  --border-2: #2a3847;
  --text: #e6edf3;
  --muted: #8494a5;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-ink: #04201c;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  --nav-w: 250px;
  --top-h: 58px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h4 { font-size: .95rem; margin-top: 1.2em; color: var(--muted); }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; white-space: pre; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.mt { margin-top: 1.4rem; }
.wrap { word-break: break-all; white-space: normal; }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 42px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #1d2833; border-color: #36475a; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .switch:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn-primary { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, .45); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, .12); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-xl { width: 100%; min-height: 64px; font-size: 1.1rem; border-radius: 16px; gap: 12px; box-shadow: 0 8px 24px rgba(20, 184, 166, .25); }
.btn-xl .ico { width: 24px; height: 24px; }
.btn-xl.loading .ico { animation: spin .8s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row form { margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.copied { color: var(--ok); border-color: var(--ok); }

/* ---------- Űrlapok ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .85rem; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; min-height: 44px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; /* iOS zoom elkerülése */
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, .15); outline: none; }
input:disabled { opacity: .6; }
textarea { resize: vertical; min-height: 80px; }
.code-area { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.otp-input { text-align: center; font-family: var(--mono); font-size: 1.6rem !important; letter-spacing: .45em; padding-left: .45em !important; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-2); flex: none; }
.check .hint { display: block; }
.hint { color: var(--muted); font-size: .82rem; margin: 0; }
.hint code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; margin: 2px 0; display: inline-block; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
legend { padding: 0 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form-inline .field { flex: 1 1 200px; }
.form-inline .check { flex: 1 1 200px; align-self: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select { flex: 1 1 180px; width: auto; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.settings-grid .wide { grid-column: 1 / -1; }

/* ---------- Riasztások / jelvények ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid; font-size: .92rem; white-space: pre-line; }
.alert-success { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.alert-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.alert-info { background: rgba(45, 212, 191, .06); border-color: rgba(45, 212, 191, .3); color: #b5f5ea; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; vertical-align: middle;
}
.badge-ok { color: var(--ok); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.badge-warn { color: var(--warn); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.badge-danger { color: var(--danger); border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); }
.badge-accent { color: var(--accent); border-color: rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .08); }

/* ---------- Bejelentkezés előtti oldalak ---------- */
.center-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(45, 212, 191, .09), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 26px; box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 680px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 26px; letter-spacing: .01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 28%, transparent 30%), linear-gradient(135deg, #0f2e2b, #0b1a1f);
  border: 1px solid rgba(45, 212, 191, .45); box-shadow: 0 0 18px rgba(45, 212, 191, .25);
}
.auth-foot { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.link-muted { color: var(--muted); font-size: .88rem; }
.step-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.step {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700;
  border: 1px solid var(--border-2); color: var(--muted);
}
.step.on { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.step.done { border-color: var(--ok); color: var(--ok); }
.steps-list { padding-left: 20px; color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.steps-list li { margin-bottom: 4px; }
.qr-wrap { display: flex; justify-content: center; margin: 8px 0 14px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; line-height: 0; min-width: 120px; min-height: 120px; }
.qr img, .qr canvas { width: 200px; height: 200px; image-rendering: pixelated; }
.secret-box {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--bg); border: 1px dashed var(--border-2); border-radius: var(--radius-sm);
  padding: 8px 8px 8px 14px; margin-bottom: 12px;
}
.secret-box code { font-size: .92rem; letter-spacing: .04em; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin-bottom: 20px; font-size: .88rem; }
.details { margin: 14px 0; }
.details summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.card-title { font-weight: 650; margin-bottom: 12px; font-size: 1rem; }

/* ---------- Alkalmazás váz ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 15, 20, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.topbar-user { margin-left: auto; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
.menu-toggle { display: none; }

.shell { display: flex; min-height: calc(100vh - var(--top-h)); }
.sidenav {
  width: var(--nav-w); flex: none; padding: 16px 12px;
  border-right: 1px solid var(--border); background: var(--bg);
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 12px 8px; }
.sidenav a, .sidenav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #b8c4d0; font: inherit; font-size: .93rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.sidenav a:hover, .sidenav button:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidenav a.active { background: rgba(45, 212, 191, .1); color: var(--accent); }
.sidenav form { margin: 0; }
.nav-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-logout:hover { color: var(--danger) !important; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 39; }

.content { flex: 1; min-width: 0; padding: 28px 32px 60px; max-width: 1280px; }
.page-title { font-size: 1.45rem; margin-bottom: 20px; }

/* ---------- Kártyák ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px; min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card-danger { border-color: rgba(248, 113, 113, .25); }
.card-accent { border-color: rgba(45, 212, 191, .45); box-shadow: 0 0 0 3px rgba(45, 212, 191, .07); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid-2 > .card { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }

.hero { text-align: center; padding: 34px 22px 26px; background:
  radial-gradient(500px 220px at 50% 0, rgba(45, 212, 191, .10), transparent 70%), var(--surface); }
.hero-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-ip { font-size: clamp(1.7rem, 7vw, 2.8rem); font-weight: 700; margin: 10px 0 12px; word-break: break-all; letter-spacing: -.01em; }
.hero-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hero form { margin: 0 auto 22px; max-width: 460px; }
.hero .kv { max-width: 460px; margin-inline: auto; }
.hero .kv { text-align: left; }
.content > section.card { max-width: 760px; }
.content > .grid-2, .content > .split, .content > .stats { max-width: none; }
.content > section.card:has(.table-wrap) { max-width: none; }

.kv { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: var(--bg-2); flex-wrap: wrap; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 550; text-align: right; word-break: break-all; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toggle-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.switch {
  position: relative; width: 58px; height: 32px; flex: none; border-radius: 999px; cursor: pointer;
  background: var(--border-2); border: 1px solid var(--border-2); transition: background .2s, border-color .2s; padding: 0;
}
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #cbd5e1; transition: transform .2s, background .2s; }
.switch.on { background: var(--accent-2); border-color: var(--accent-2); }
.switch.on span { transform: translateX(26px); background: #fff; }
.switch:disabled { opacity: .6; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat strong { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat small { color: var(--muted); font-size: .78rem; }

.rules { display: grid; gap: 8px; margin-bottom: 14px; font-size: .92rem; }
.rules > div { display: flex; align-items: center; gap: 10px; }
.rules .ico { color: var(--accent); width: 18px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); font-size: .88rem; }
.tabs a:hover, .tabs a.active { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.list-nav { display: flex; flex-direction: column; gap: 2px; }
.list-nav a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.list-nav a:hover { background: var(--surface-2); text-decoration: none; }
.list-nav a.active { background: rgba(45, 212, 191, .1); box-shadow: inset 3px 0 0 var(--accent); }
.list-nav .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-frame { width: 100%; height: 480px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0b0f14; }

.doc pre { margin: 6px 0 10px; font-size: .82rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-size: .85rem; }
.timeline small { grid-column: 2; }

.device-list { list-style: none; padding: 0; margin: 0 0 14px; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.device-list li:last-child { border-bottom: 0; }
.device-list form { margin: 0; }

/* ---------- Táblázatok ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.table-compact td { padding: 8px 10px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .empty { text-align: center; color: var(--muted); padding: 26px; }
.table .ua { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-flag { background: rgba(248, 113, 113, .05); }
.row-muted { opacity: .55; }
.sev-critical td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.sev-warning td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions form { margin: 0; }
.actions-col { min-width: 180px; }
.quick-ban { display: flex; gap: 6px; align-items: center; margin: 0; flex-wrap: nowrap; }
.quick-ban select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.quick-ban .ico { width: 16px; height: 16px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Oszlopdiagram ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--accent), rgba(45, 212, 191, .35)); border-radius: 5px 5px 2px 2px; }
.bar span { font-size: .68rem; color: var(--muted); }
.bars-ok .bar i { background: linear-gradient(180deg, var(--ok), rgba(52, 211, 153, .3)); }
.bars-warn .bar i { background: linear-gradient(180deg, var(--warn), rgba(251, 191, 36, .3)); }
.bars-danger .bar i { background: linear-gradient(180deg, var(--danger), rgba(248, 113, 113, .3)); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; opacity: 0;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); font-size: .92rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(52, 211, 153, .5); }
.toast.err { border-color: rgba(248, 113, 113, .5); }

/* ---------- Reszponzív ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100%; z-index: 40; width: min(290px, 84vw);
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow);
    padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  body.nav-open .sidenav { transform: none; }
  body.nav-open { overflow: hidden; }
  .content { padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 26px 16px 20px; }

  /* Táblázatok kártyákká alakítása */
  .table-wrap { overflow: visible; margin: 0; padding: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 12px; background: var(--bg-2); }
  .table td { border: 0; padding: 6px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; flex: none; padding-top: 2px; }
  .table td:not([data-label])::before { content: none; }
  .table td.num { text-align: right; }
  .table td.empty { justify-content: center; }
  .table .actions-col { display: block; text-align: left; }
  .table .actions-col::before { display: block; margin-bottom: 6px; }
  .table .ua { max-width: none; white-space: normal; }
  .sev-critical, .sev-warning { border-left: 3px solid var(--warn) !important; }
  .sev-critical { border-left-color: var(--danger) !important; }
  .sev-critical td:first-child, .sev-warning td:first-child { box-shadow: none; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline small { grid-column: 1; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; border-radius: 16px; }
  .row-2 { grid-template-columns: 1fr; }
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline .field, .form-inline .check { flex: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.4rem; }
  .card { padding: 16px; }
  .topbar-user { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
