:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #121522;
  --muted: #697185;
  --line: #e6e8f0;
  --line-2: #eef0f6;
  --accent: #6657f5;
  --accent-2: #9a8cff;
  --accent-soft: #efedff;
  --cyan: #12b8c4;
  --green: #0f9f6e;
  --green-soft: #e6f8f1;
  --red: #d93b48;
  --red-soft: #feecee;
  --amber: #a86a12;
  --amber-soft: #fff5e2;
  --sidebar: #0a0d17;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 44px -26px rgba(17, 24, 39, .22);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  margin: 0;
  font: 14px/1.55 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 100% -10%, rgba(102, 87, 245, .09), transparent 62%),
    radial-gradient(900px 520px at -10% 110%, rgba(18, 184, 196, .07), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(102, 87, 245, .2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.035em;
}
h2 {
  margin: 28px 0 14px;
  font-size: 15.5px;
  font-weight: 720;
  letter-spacing: -.012em;
}
h2 .muted { font-weight: 500; font-size: 13px; }
h1.mono, .key-title { font-family: var(--mono); font-size: clamp(19px, 2.4vw, 27px); letter-spacing: -.04em; }
code, .mono {
  font-family: var(--mono);
  font-size: .9em;
  word-break: break-all;
}
code {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #e3e0ff;
  border-radius: 6px;
  background: #f3f1ff;
  color: #493db8;
}
.muted { color: var(--muted); }
.dot { color: #b8bdca; padding: 0 .25em; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 264px;
  height: 100dvh;
  padding: 24px 18px 20px;
  overflow-y: auto;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(360px 280px at 12% 0%, rgba(126, 108, 255, .28), transparent 68%),
    radial-gradient(320px 320px at 110% 100%, rgba(18, 184, 196, .14), transparent 70%),
    var(--sidebar);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7564ff 0%, #6657f5 46%, #22d3ee 130%);
  box-shadow: 0 10px 28px -10px rgba(117, 100, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand-mark svg { width: 24px; height: 24px; display: block; }
.brand-name {
  display: block;
  font-size: 21px;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.brand-sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 26px; }
.nav-label {
  padding: 18px 12px 6px;
  color: rgba(255, 255, 255, .3);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .62);
  font-size: 13.5px;
  font-weight: 580;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .8; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(117, 100, 255, .28), rgba(117, 100, 255, .07));
  box-shadow: inset 0 0 0 1px rgba(154, 140, 255, .18);
}
.nav a.active svg { color: #b8adff; opacity: 1; }
.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #0a0d17;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #a99dff, #5ee7f0);
}
.user-meta { min-width: 0; }
.user-meta b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { display: block; color: rgba(255, 255, 255, .38); font-size: 10.5px; }
.sidebar-foot form { margin: 0; }
.sidebar button.light {
  width: 100%;
  color: #dfe3f0;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}
.sidebar button.light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- layout ---------- */
.main {
  min-height: 100vh;
  margin-left: 264px;
  padding: 42px clamp(22px, 4vw, 58px) 72px;
}
.content { width: 100%; max-width: 1180px; margin: 0 auto; }
.auth-main { min-height: 100vh; }
.mobilebar, .nav-backdrop, .nav-toggle { display: none; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.page-head h1 { margin-bottom: 0; }
.page-sub { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.light { color: #b9aeff; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.back:hover { color: var(--accent); text-decoration: none; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.title-row h1 { margin: 0; }

/* ---------- cards & headings ---------- */
section {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise .34s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
section > h2:first-child {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
section > h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 9px;
  border-radius: 3px;
  vertical-align: -2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.section-head h2 { margin: 0; }
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 9px;
  border-radius: 3px;
  vertical-align: -2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}
.danger-zone {
  border-color: #f2c6ca;
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
}
.danger-zone > h2:first-child, .danger-zone h2 { color: #b42835; }
.danger-zone > h2::before, .danger-zone .section-head h2::before { background: linear-gradient(180deg, #f08a92, var(--red)); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 87, 245, .11), transparent 68%);
}
.stat-label { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .01em; }
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 30px;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.stat strong small { color: #a4a9b7; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.stat-hint { display: block; margin-top: 5px; color: #9a9fb0; font-size: 11.5px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #8a90a2;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fafbff; }
table.kv th { width: 220px; padding-left: 0; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 620; letter-spacing: 0; text-transform: none; white-space: normal; }
table.kv td { padding-right: 0; }
table.kv tr:hover td { background: transparent; }
td.empty { padding: 30px 16px; color: var(--muted); text-align: center; }
td.empty::before {
  content: "∅";
  display: block;
  margin-bottom: 5px;
  color: #c4c9d6;
  font-size: 22px;
  line-height: 1;
}
.entity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #e5e2ff;
  border-radius: 11px;
  color: #5648d8;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5f3ff, #e9f8fb);
}
.entity-name { display: block; color: var(--ink); font-weight: 680; }
.entity-name:hover { color: var(--accent); text-decoration: none; }
.entity-sub { display: block; margin-top: 1px; color: #9a9fb0; font-size: 11.5px; }
.key-meter { display: grid; gap: 5px; min-width: 105px; color: var(--muted); font-size: 11.5px; }
.key-meter + .key-meter { margin-top: 9px; }
.key-meter b { color: var(--ink); font-weight: 700; }
.entity .avatar { width: 30px; height: 30px; font-size: 11px; }
progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #eef0f6;
}
progress::-webkit-progress-bar { border-radius: 999px; background: #eef0f6; }
progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #6657f5, #22d3ee); }
progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #6657f5, #22d3ee); }

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.45;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-active { color: #087a55; background: var(--green-soft); }
.badge-unused { color: #596178; background: #eef0f6; }
.badge-banned { color: #b42835; background: var(--red-soft); }
.badge-expired { color: #95600d; background: var(--amber-soft); }
.badge-off { color: #6b7285; background: #eef0f6; }
.badge-hwid { color: #493db8; background: var(--accent-soft); }
.badge-2fa { color: #087a55; background: var(--green-soft); }
.chip {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #5c6478;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.st-active { color: var(--green); }
.st-banned { color: var(--red); }
.st-expired { color: var(--amber); }
.st-unused { color: #596178; }

/* ---------- forms ---------- */
form { margin: 0; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #d8dce8;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #c8cedd; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #9a8cff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 87, 245, .14);
}
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); }
input[type="file"] { padding: 6px; background: #fff; font-size: 12.5px; }
textarea { width: 100%; min-height: 8em; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
label { display: inline-flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 620; }
label input, label select, label textarea { color: var(--ink); font-size: 14px; font-weight: 400; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 11px; margin: 10px 0; }
.row:first-child { margin-top: 0; }
.row label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 7px; padding-bottom: 9px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 13px;
  margin-top: 14px;
}
.form-grid label { min-width: 0; }
.form-grid input, .form-grid select { width: 100%; }
.form-actions { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 1px; }
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}
.filterbar label { display: none; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #6b59f7, #7b67ff);
  box-shadow: 0 9px 20px -13px rgba(102, 87, 245, .95);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
button:active, .btn:active { transform: none; }
button.light, .btn.light {
  color: #3a4257;
  border-color: #dbe0ec;
  background: #fff;
  box-shadow: none;
}
button.light:hover, .btn.light:hover { background: #f7f8fd; border-color: #cbd1e0; }
button.danger, .btn.danger {
  color: #fff;
  border-color: #e5484d;
  background: #e5484d;
  box-shadow: 0 9px 20px -13px rgba(217, 59, 72, .85);
}
button.danger:hover, .btn.danger:hover { background: #d93b48; }
.btn.small, button.small { min-height: 32px; padding: 5px 10px; border-radius: 8px; font-size: 12px; }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- alerts ---------- */
.alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.flash, .error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid #b9ecd8;
  border-radius: 12px;
  color: #0b6b4c;
  background: #edfdf6;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 10px 24px -22px rgba(15, 159, 110, .6);
}
.flash::before { content: "✓"; font-weight: 800; line-height: 1.45; }
.error { border-color: #f5c2c7; color: #a32330; background: #fff2f3; box-shadow: 0 10px 24px -22px rgba(217, 59, 72, .5); }
.error::before { content: "!"; font-weight: 800; line-height: 1.45; }

/* ---------- pager, misc ---------- */
.pager { display: flex; gap: 10px; margin-top: 16px; }
.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #4b5368;
  background: #fff;
  font-size: 12.5px;
  font-weight: 620;
  text-decoration: none;
}
.pager a:hover { border-color: #cfd4e2; background: var(--surface-2); text-decoration: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.grid-2 > section { margin-bottom: 0; }
.grid-2 + section { margin-top: 18px; }
.actions-stack { display: grid; gap: 9px; }
.actions-stack .row {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.actions-stack .row:last-child { padding-bottom: 0; border-bottom: 0; }
.actions-stack .row > :first-child { flex: 0 0 auto; }
.secret-box {
  padding: 12px 14px;
  border: 1px dashed #d7d2ff;
  border-radius: 11px;
  background: #faf9ff;
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}
.note { color: var(--muted); font-size: 12.5px; }

/* ---------- login ---------- */
.auth-shell { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 100vh; }
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(600px 500px at 110% -10%, rgba(117, 100, 255, .42), transparent 64%),
    radial-gradient(420px 420px at -10% 110%, rgba(18, 184, 196, .2), transparent 68%),
    linear-gradient(135deg, #090b14 0%, #0d1020 52%, #0a0d17 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 45% 45%, #000, transparent 78%);
}
.auth-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(154, 140, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(154, 140, 255, .035), 0 0 0 140px rgba(154, 140, 255, .02);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-brand { align-self: flex-start; padding: 0; }
.auth-copy { max-width: 480px; margin: auto 0; }
.auth-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.3vw, 52px);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.auth-copy p { max-width: 410px; margin-bottom: 26px; color: rgba(255, 255, 255, .58); font-size: 14.5px; }
.auth-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.auth-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(154, 140, 255, .38);
  border-radius: 50%;
  color: #c5bbff;
  background: rgba(117, 100, 255, .16);
  font-size: 10px;
  font-weight: 800;
}
.auth-foot { margin: 0; color: rgba(255, 255, 255, .3); font-size: 11.5px; letter-spacing: .02em; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(102, 87, 245, .08), transparent 62%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 402px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 90px -46px rgba(17, 24, 39, .34), 0 1px 2px rgba(17, 24, 39, .04);
}
.auth-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-card h2 { margin: 0 0 7px; font-size: 25px; font-weight: 760; letter-spacing: -.035em; }
.auth-card > .muted { margin-bottom: 22px; font-size: 13px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { width: 100%; }
.auth-card label input { width: 100%; }
.auth-card .error { margin: 16px 0 0; }
.auth-card button { width: 100%; min-height: 42px; margin-top: 4px; }
.auth-note { margin: 20px 0 0; color: #9a9fb0; font-size: 11.5px; line-height: 1.5; text-align: center; }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--ink); font-size: 19px; font-weight: 780; letter-spacing: -.03em; }
.auth-mobile-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.auth-mobile-brand .brand-mark svg { width: 21px; height: 21px; }

/* ---------- mobile ---------- */
@media (max-width: 920px) {
  .nav-toggle {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .sidebar {
    width: 280px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .24s ease, visibility .24s ease;
  }
  .nav-toggle:checked ~ .sidebar { visibility: visible; transform: translateX(0); }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(7, 9, 18, .52);
    backdrop-filter: blur(2px);
    transition: opacity .24s ease, visibility .24s ease;
  }
  .nav-toggle:checked ~ .nav-backdrop { visibility: visible; opacity: 1; }
  .mobilebar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(230, 232, 240, .9);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
  }
  .mobilebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .mobilebar .brand-mark svg { width: 20px; height: 20px; }
  .mobilebar .brand-name { font-size: 18px; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #4b5368;
    background: #fff;
    cursor: pointer;
  }
  .menu-btn svg { width: 19px; height: 19px; }
  .mobilebar .sp { flex: 1; }
  .mobilebar .avatar { width: 34px; height: 34px; font-size: 13px; }
  .main { margin-left: 0; padding: 88px 18px 52px; }
  .nav-toggle:focus-visible ~ .mobilebar .menu-btn { outline: 2px solid var(--accent-2); outline-offset: 2px; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 26px 18px; }
  .auth-mobile-brand { display: flex; }
  .auth-card { max-width: 430px; }
}

@media (max-width: 700px) {
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  section { padding: 18px 16px; border-radius: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 15px 16px; }
  .stat strong { font-size: 26px; }
  section { overflow-x: auto; }
  table { min-width: 620px; }
  table.kv { min-width: 0; }
  table.kv th { width: 130px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; border-radius: 19px; }
  .auth-card h2 { font-size: 23px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .mobilebar .brand-name { display: none; }
  .row > * { flex: 1 1 100%; }
  .row label:has(input[type="checkbox"]) { flex: 0 0 auto; }
  .row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
