:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(15, 29, 48, 0.94);
  --surface-solid: #0f1d30;
  --surface-raised: #13243a;
  --surface-hover: #172b44;
  --line: #29405e;
  --line-strong: #3c5d85;
  --text: #f4f8ff;
  --muted: #a9bad0;
  --muted-strong: #c3cfde;
  --primary: #68a8ff;
  --primary-hover: #84b8ff;
  --primary-soft: rgba(104, 168, 255, 0.14);
  --success: #67dfb0;
  --success-soft: rgba(103, 223, 176, 0.13);
  --warning: #f4c86a;
  --warning-soft: rgba(244, 200, 106, 0.14);
  --danger: #ff8c94;
  --danger-soft: rgba(255, 140, 148, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(54, 108, 184, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(53, 180, 155, 0.10), transparent 27%),
    linear-gradient(155deg, #081321 0%, var(--bg) 52%, #050d18 100%);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
img, svg { display: block; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
code {
  overflow-wrap: anywhere;
  color: #cfe2ff;
  background: rgba(4, 12, 23, 0.58);
  border: 1px solid rgba(94, 128, 170, 0.25);
  border-radius: 7px;
  padding: 2px 6px;
}

.wrap { width: min(100%, var(--content)); margin: 0 auto; padding: 28px 20px 48px; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }

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

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card { padding: 24px; margin-bottom: 18px; }
.panel { padding: 22px; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.good { color: var(--success); }
.bad { color: var(--danger); }
.warning { color: var(--warning); }

.eyebrow,
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted-strong);
  background: rgba(4, 12, 23, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.badge.success { color: var(--success); border-color: rgba(103, 223, 176, 0.36); background: var(--success-soft); }
.badge.warning { color: var(--warning); border-color: rgba(244, 200, 106, 0.36); background: var(--warning-soft); }
.badge.danger { color: var(--danger); border-color: rgba(255, 140, 148, 0.36); background: var(--danger-soft); }
.badge.info { color: var(--primary); border-color: rgba(104, 168, 255, 0.36); background: var(--primary-soft); }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 34px; height: 34px; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 14, 25, 0.52);
  color: var(--muted-strong);
}
.notice.success { border-color: rgba(103, 223, 176, 0.34); background: var(--success-soft); color: #b8f4da; }
.notice.warning { border-color: rgba(244, 200, 106, 0.34); background: var(--warning-soft); color: #ffe4a6; }
.notice.danger { border-color: rgba(255, 140, 148, 0.34); background: var(--danger-soft); color: #ffc0c5; }
.notice.info { border-color: rgba(104, 168, 255, 0.34); background: var(--primary-soft); color: #c9e0ff; }

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-weight: 650;
  font-size: 0.9rem;
}
.field { min-width: 0; }
.field + .field { margin-top: 16px; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 0.82rem; }

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(4, 13, 25, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #71859f; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(104, 168, 255, 0.16);
  background: rgba(6, 18, 33, 0.94);
}
input:disabled, select:disabled, button:disabled { opacity: 0.58; cursor: not-allowed; }

.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 38px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.password-toggle:hover { color: var(--text); background: rgba(104, 168, 255, 0.11); }
.caps-warning { margin-top: 7px; color: var(--warning); font-size: 0.82rem; }

button,
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  background: var(--primary);
  color: #05111f;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}
button:hover:not(:disabled), .button:hover { background: var(--primary-hover); color: #05111f; transform: translateY(-1px); }
button:active:not(:disabled), .button:active { transform: translateY(0); }
button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(104, 168, 255, 0.55);
  outline-offset: 3px;
}
.button-secondary,
button.secondary {
  background: rgba(104, 168, 255, 0.10);
  border-color: rgba(104, 168, 255, 0.32);
  color: #cfe2ff;
}
.button-secondary:hover,
button.secondary:hover:not(:disabled) { background: rgba(104, 168, 255, 0.18); color: #edf5ff; }
.button-ghost,
button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted-strong);
}
.button-danger,
button.danger {
  background: var(--danger-soft);
  border-color: rgba(255, 140, 148, 0.36);
  color: #ffc0c5;
}
.button-danger:hover,
button.danger:hover:not(:disabled) { background: rgba(255, 140, 148, 0.22); color: #ffe5e7; }
.button-small { min-height: 38px; padding: 8px 12px; font-size: 0.86rem; }
.button-full { width: 100%; }

.auth-page .wrap { max-width: 1180px; min-height: 100vh; display: grid; place-items: center; padding-block: 34px; }
.auth-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: 26px;
  align-items: stretch;
}
.auth-brand,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(34px, 6vw, 68px);
  background:
    linear-gradient(145deg, rgba(22, 48, 79, 0.96), rgba(9, 23, 40, 0.96)),
    var(--surface-solid);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -125px;
  bottom: -115px;
  border: 1px solid rgba(104, 168, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(104, 168, 255, 0.05), 0 0 0 92px rgba(104, 168, 255, 0.025);
}
.brand-lockup { position: relative; z-index: 1; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 28px;
}
.brand-mark .brand-logo { filter: drop-shadow(0 8px 18px rgba(22, 139, 255, 0.22)); }
.auth-inline-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 20px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.auth-inline-brand .brand-logo { width: 34px; height: 34px; }
.auth-brand h2 { max-width: 620px; font-size: clamp(2rem, 4vw, 3.6rem); }
.auth-brand .lead { max-width: 620px; margin-top: 18px; color: var(--muted-strong); font-size: 1.02rem; }
.security-list { display: grid; gap: 12px; margin-top: 30px; max-width: 560px; }
.security-item { display: flex; align-items: center; gap: 11px; color: var(--muted-strong); }
.security-item .icon { color: var(--success); }
.brand-foot { position: relative; z-index: 1; color: var(--muted); font-size: 0.84rem; }

.auth-card {
  align-self: center;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(12, 26, 44, 0.96);
}
.auth-card h1 { margin-top: 15px; font-size: clamp(2rem, 4vw, 2.75rem); }
.auth-card > .muted { margin-top: 12px; }
.destination-box {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(104, 168, 255, 0.28);
  border-radius: 13px;
  background: var(--primary-soft);
  color: #d8e9ff;
  overflow-wrap: anywhere;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(4, 13, 25, 0.48);
  border: 1px solid rgba(87, 119, 158, 0.23);
  color: var(--muted);
  font-size: 0.87rem;
}
.status-line[data-status="granted"] { color: var(--success); border-color: rgba(103, 223, 176, 0.28); background: var(--success-soft); }
.status-line[data-status="denied"], .status-line[data-status="unsupported"] { color: var(--muted-strong); }
.auth-form { margin-top: 22px; }
.auth-form .field + .field { margin-top: 17px; }
.auth-form button[type="submit"] { width: 100%; margin-top: 20px; }
.privacy-note {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.otp-shell { width: min(100%, 680px); margin-inline: auto; }
.otp-card { padding: clamp(26px, 5vw, 44px); }
.otp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.otp-progress { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 8px; margin: 28px 0 22px; }
.otp-step { position: relative; display: grid; gap: 7px; text-align: center; color: var(--muted); font-size: 0.76rem; }
.otp-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--muted);
  font-weight: 800;
}
.otp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 1px;
  background: var(--line);
}
.otp-step.complete .otp-step-dot { color: #062116; background: var(--success); border-color: var(--success); }
.otp-step.complete::after { background: var(--success); }
.otp-step.current { color: var(--text); }
.otp-step.current .otp-step-dot { color: #07111f; background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px rgba(104, 168, 255, 0.12); }
.otp-email { margin-top: 18px; font-size: 1.05rem; color: var(--muted-strong); overflow-wrap: anywhere; }
.otp-input {
  min-height: 62px;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.36em;
  padding-left: calc(13px + 0.36em);
  font-variant-numeric: tabular-nums;
}
.otp-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 9px; color: var(--muted); font-size: 0.82rem; }
.otp-actions { display: grid; gap: 10px; margin-top: 18px; }
.otp-actions form { margin: 0; }
.otp-actions button { width: 100%; }

.dashboard-page .wrap { max-width: none; width: 100%; padding: 0; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(6, 16, 29, 0.94);
  backdrop-filter: blur(18px);
  z-index: 30;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 3px 8px 22px; border-bottom: 1px solid rgba(74, 103, 139, 0.22); }
.sidebar-logo { display: grid; place-items: center; width: 42px; height: 42px; padding: 2px; flex: 0 0 auto; }
.sidebar-brand strong { display: block; }
.sidebar-brand span { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 1px; }
.sidebar-nav { display: grid; gap: 5px; margin-top: 20px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 650;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--text); background: rgba(104, 168, 255, 0.11); }
.sidebar-footer { position: absolute; left: 18px; right: 18px; bottom: 20px; }
.sidebar-footer a { width: 100%; }
.dashboard-main { min-width: 0; padding: 28px clamp(18px, 3vw, 42px) 60px; }
.mobile-topbar { display: none; }
.page-header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.page-header p { margin-top: 8px; color: var(--muted); max-width: 780px; }
.header-status { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.summary-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 29, 48, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
.summary-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.summary-card .metric { display: block; margin-top: 12px; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 850; line-height: 1; }
.summary-card .metric-label { margin-top: 8px; color: var(--muted); font-size: 0.8rem; }

.dashboard-section { scroll-margin-top: 22px; margin-top: 22px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-header p { margin-top: 6px; color: var(--muted); max-width: 820px; }
.section-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(13, 27, 45, 0.86); overflow: hidden; }
.section-card-body { padding: 20px; }
.section-card + .section-card { margin-top: 14px; }

.protection-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr); gap: 22px; align-items: center; }
.protection-status { display: flex; align-items: flex-start; gap: 14px; }
.status-orb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--success-soft); color: var(--success); border: 1px solid rgba(103, 223, 176, 0.30); }
.status-orb.off { background: var(--warning-soft); color: var(--warning); border-color: rgba(244, 200, 106, 0.30); }
.protection-status p { margin-top: 6px; color: var(--muted); }

.entity-list { display: grid; gap: 12px; }
.entity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 18, 32, 0.48);
  overflow: hidden;
}
.entity-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.entity-card > summary::-webkit-details-marker { display: none; }
.entity-card[open] > summary { border-bottom: 1px solid var(--line); background: rgba(104, 168, 255, 0.05); }
.entity-title { min-width: 0; }
.entity-title strong { display: block; overflow-wrap: anywhere; }
.entity-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
.entity-badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.entity-body { padding: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: end; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .span-4 { grid-column: span 4; }
.form-grid .span-5 { grid-column: span 5; }
.form-grid .span-6 { grid-column: span 6; }
.form-grid .span-8 { grid-column: span 8; }
.form-grid .span-12 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.device-grid, .email-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 18, 32, 0.48); }
.info-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.info-card h3 { overflow-wrap: anywhere; }
.info-card .meta { display: grid; gap: 6px; margin-top: 13px; color: var(--muted); font-size: 0.84rem; }
.info-card .meta-row { display: flex; gap: 9px; align-items: flex-start; }
.info-card .actions { margin-top: 15px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(65, 94, 130, 0.25); }
th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:hover { background: rgba(104, 168, 255, 0.035); }
.table-actions { white-space: nowrap; }

.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, 0.28fr)); gap: 10px; margin-bottom: 14px; }
.empty-state { padding: 34px 20px; text-align: center; color: var(--muted); }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 18, 32, 0.48); }
.account-card p { margin-top: 7px; color: var(--muted); }
.account-card form { margin-top: 18px; }
.strength-meter { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(95, 123, 157, 0.18); }
.strength-meter span { display: block; width: var(--strength, 0%); height: 100%; background: var(--warning); transition: width 150ms ease, background 150ms ease; }

.mobile-nav-backdrop { display: none; }

@media (max-width: 1080px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protection-card { grid-template-columns: 1fr; }
  .device-grid, .email-grid, .account-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3, .form-grid .span-4 { grid-column: span 6; }
  .form-grid .span-5, .form-grid .span-6, .form-grid .span-8 { grid-column: span 12; }
}

@media (max-width: 860px) {
  .auth-page .wrap { align-items: start; }
  .auth-shell { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .auth-brand { min-height: auto; padding: 30px; }
  .auth-brand h2 { font-size: 2rem; }
  .security-list { grid-template-columns: 1fr 1fr; }
  .brand-foot { margin-top: 32px; }

  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 290px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 22px 0 55px rgba(0, 0, 0, 0.48);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    background: rgba(1, 7, 14, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  body.nav-open .mobile-nav-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 16, 29, 0.90);
    backdrop-filter: blur(16px);
  }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand .brand-logo { width: 28px; height: 28px; }
  .menu-button { width: 42px; height: 42px; min-height: 42px; padding: 0; background: transparent; color: var(--text); border-color: var(--line); }
  .dashboard-main { padding: 22px 16px 50px; }
  .page-header { display: block; }
  .header-status { justify-content: flex-start; margin-top: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding-inline: 14px; }
  .card, .panel { border-radius: 18px; padding: 18px; }
  .auth-page .wrap { padding: 14px; }
  .auth-shell { gap: 14px; }
  .auth-brand { display: none; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .auth-card h1 { font-size: 2rem; }
  .destination-box { align-items: flex-start; }
  .otp-card { padding: 22px 18px; }
  .otp-title-row { display: block; }
  .otp-title-row .badge { margin-top: 12px; }
  .otp-meta { display: grid; gap: 4px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { padding: 14px; }
  .section-header { display: block; }
  .section-header .button { margin-top: 12px; }
  .entity-card > summary { align-items: flex-start; }
  .entity-badges { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > *,
  .form-grid .span-2,
  .form-grid .span-3,
  .form-grid .span-4,
  .form-grid .span-5,
  .form-grid .span-6,
  .form-grid .span-8,
  .form-grid .span-12 { grid-column: 1; }
  .toolbar { grid-template-columns: 1fr; }

  .responsive-table thead { display: none; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tr { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .responsive-table td { display: grid; grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  .table-actions { white-space: normal; }
}

@media (max-width: 400px) {
  .summary-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .otp-step span:last-child { display: none; }
}

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

.action-disclosure > summary {
  list-style: none;
  width: fit-content;
}
.action-disclosure > summary::-webkit-details-marker { display: none; }
.action-disclosure[open] > summary { margin-bottom: 10px; }
.action-disclosure form {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 13, 25, 0.52);
}

.auth-notice { margin-top: 16px; }
.otp-notice { margin-top: 18px; }
.intro-copy { margin-top: 12px; }
.disclosure-field { margin-top: 12px; }
.page-notice { margin-bottom: 18px; }
.section-card-spaced { margin-top: 14px; }
.compact-copy { margin-top: 6px; }
.form-spaced { margin-top: 16px; }
.otp-progress { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
.strength-meter span { width: 0; background: var(--danger); }
.strength-meter[data-score="1"] span { width: 20%; }
.strength-meter[data-score="2"] span { width: 40%; background: var(--warning); }
.strength-meter[data-score="3"] span { width: 60%; background: var(--warning); }
.strength-meter[data-score="4"] span { width: 80%; background: var(--success); }
.strength-meter[data-score="5"] span { width: 100%; background: var(--success); }

.destination-box strong { font-size: 0.9rem; }
@media (max-width: 640px) {
  .destination-box strong { font-size: 0.82rem; }
}
