:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-elevated: #0f131b;
  --surface: #141922;
  --surface-2: #191f2a;
  --surface-3: #202734;
  --ink: #edf2f7;
  --ink-strong: #ffffff;
  --muted: #96a3b7;
  --muted-2: #6f7c90;
  --line: #283142;
  --line-strong: #39465c;
  --accent: #29c7b8;
  --accent-dark: #179c91;
  --accent-soft: rgba(41, 199, 184, 0.13);
  --amber: #f6b44b;
  --amber-soft: rgba(246, 180, 75, 0.14);
  --violet: #a78bfa;
  --success: #39d98a;
  --warning: #f6b44b;
  --danger: #ff6b6b;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border-radius: 7px;
}

button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  background: #171d27;
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

button:hover {
  border-color: #53647f;
  background: #202837;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  border-color: rgba(41, 199, 184, 0.38);
  background: #18202b;
  color: #dce7f3;
  font-weight: 650;
}

button.primary:hover {
  border-color: rgba(41, 199, 184, 0.62);
  background: #202a38;
  color: var(--ink-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: rgba(13, 17, 24, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover .brand-mark {
  border-color: rgba(139, 124, 246, 0.52);
  background: rgba(139, 124, 246, 0.16);
  color: #ded8ff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.45);
  border-radius: 8px;
  background: #0d302e;
  color: #7ff3e8;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brand-name {
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 850;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 760;
}

.tab:hover {
  background: #161c27;
  color: var(--ink);
}

.tab.active {
  border-color: rgba(41, 199, 184, 0.32);
  background: var(--accent-soft);
  color: #8cf2e8;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.top-home-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(53, 65, 86, 0.88);
  border-radius: 7px;
  background: #171d27;
  color: #c8d2e1;
  padding: 0 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.top-home-link:hover {
  border-color: rgba(139, 124, 246, 0.52);
  background: rgba(139, 124, 246, 0.12);
  color: var(--ink-strong);
}

.env-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 180, 75, 0.3);
  border-radius: 999px;
  background: var(--amber-soft);
  color: #ffd796;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.env-pill.tone-success {
  border-color: rgba(57, 217, 138, 0.34);
  background: rgba(57, 217, 138, 0.12);
  color: #8ef0bd;
}

.env-pill.tone-warning {
  border-color: rgba(246, 180, 75, 0.34);
  background: var(--amber-soft);
  color: #ffd796;
}

.env-pill.tone-danger {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.13);
  color: #ffaaaa;
}

.auth-pages {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(41, 199, 184, 0.1), transparent 38%),
    linear-gradient(240deg, rgba(167, 139, 250, 0.12), transparent 42%),
    #090b10;
}

.auth-landing {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.auth-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 19, 29, 0.18), rgba(13, 19, 29, 0.96)),
    linear-gradient(135deg, rgba(41, 199, 184, 0.18), rgba(167, 139, 250, 0.13));
  box-shadow: var(--shadow);
  padding: 26px;
}

.auth-hero .brand-mark {
  width: 54px;
  height: 54px;
  margin-bottom: auto;
}

.auth-hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 48px;
  line-height: 1;
}

.auth-hero p {
  max-width: 680px;
  margin: 14px 0 22px;
  color: #c9d3e3;
  font-size: 16px;
  line-height: 1.55;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 24px;
}

.auth-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-link {
  color: #9df8ee;
  text-decoration: none;
  font-weight: 780;
}

.auth-link:hover {
  color: var(--ink-strong);
}

.auth-error {
  min-height: 20px;
  color: #ffaaaa;
  font-weight: 720;
}

.auth-shell-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 199, 184, 0.16), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(167, 139, 250, 0.13), transparent 30%),
    #090b10;
}

.auth-topline {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 34px 0 56px;
}

.auth-copy-panel {
  display: grid;
  gap: 18px;
}

.auth-copy-panel h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink-strong);
  font-size: 48px;
  line-height: 1.05;
}

.auth-copy-panel p {
  max-width: 640px;
  margin: 0;
  color: #c6d0df;
  font-size: 16px;
  line-height: 1.65;
}

.auth-stat-grid.compact {
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-benefits span,
.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 23, 34, 0.74);
  color: #d8e3f2;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}

.auth-benefits i,
.trust-row i {
  color: #8cf2e8;
}

.elevated-auth-card {
  align-content: start;
  gap: 16px;
  border-color: rgba(80, 96, 126, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #101722;
  padding: 26px;
}

.form-head {
  display: grid;
  gap: 7px;
  margin-bottom: 4px;
}

.form-head h2 {
  margin: 0;
  font-size: 28px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  gap: 9px;
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.site-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(41, 199, 184, 0.15), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(167, 139, 250, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(41, 199, 184, 0.06), transparent 480px),
    #090b10;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(40, 49, 66, 0.82);
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(16px);
}

.site-brand,
.site-actions,
.site-nav,
.site-hero-actions {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 12px;
  color: var(--ink-strong);
  text-decoration: none;
}

.site-brand strong {
  display: block;
  font-size: 18px;
}

.site-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.ghost-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: var(--muted);
  padding: 0 12px;
  text-decoration: none;
  font-weight: 740;
}

.site-nav a:hover,
.ghost-link:hover {
  background: #171d27;
  color: var(--ink-strong);
}

.site-actions {
  justify-content: flex-end;
  gap: 8px;
}

.site-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 199, 184, 0.38);
  border-radius: 7px;
  background: #18202b;
  color: #dce7f3;
  padding: 0 15px;
  text-decoration: none;
  font-weight: 760;
}

.site-button:hover {
  border-color: rgba(41, 199, 184, 0.62);
  background: #202a38;
  color: var(--ink-strong);
}

.site-button.large,
.ghost-link.large {
  min-height: 44px;
  padding-inline: 18px;
}

.site-button i {
  margin-right: 8px;
}

.site-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  padding: 42px 0;
}

.site-hero-copy {
  display: grid;
  gap: 22px;
}

.refined-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(390px, 1.02fr);
  gap: 36px;
}

.site-kicker {
  color: #8cf2e8;
  font-size: 12px;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--ink-strong);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.site-hero p {
  max-width: 720px;
  margin: 0;
  color: #c6d0df;
  font-size: 17px;
  line-height: 1.65;
}

.site-hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-product {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(80, 96, 126, 0.72);
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--shadow);
  padding: 10px;
}

.hero-product-caption {
  position: relative;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(10, 15, 23, 0.78);
  backdrop-filter: blur(12px);
  padding: 12px 14px;
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(80, 96, 126, 0.72);
  border-radius: 7px;
  background: #0d121b;
}

.preview-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: #111827;
  padding: 0 16px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-topbar span:nth-child(1) {
  background: #ff6b6b;
}

.preview-topbar span:nth-child(2) {
  background: #f6b44b;
}

.preview-topbar span:nth-child(3) {
  background: #39d98a;
}

.preview-topbar strong {
  margin-left: 8px;
  color: var(--ink-strong);
}

.preview-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.preview-filters {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101722;
  padding: 14px;
}

.preview-filters strong {
  color: var(--ink-strong);
  font-size: 16px;
}

.preview-filters span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-filters div {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b1018;
  color: #dce7f3;
  padding: 0 10px;
}

.preview-filters button {
  margin-top: 5px;
  border-color: rgba(41, 199, 184, 0.42);
  background: #18202b;
}

.preview-results {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-metrics div,
.preview-car {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101722;
  padding: 12px;
}

.preview-metrics strong {
  display: block;
  color: #8cf2e8;
  font-size: 22px;
}

.preview-metrics span,
.preview-car span {
  color: var(--muted);
  font-size: 12px;
}

.preview-car {
  position: relative;
  display: grid;
  gap: 5px;
  padding-right: 84px;
}

.preview-car strong {
  color: var(--ink-strong);
}

.preview-car em {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(41, 199, 184, 0.3);
  border-radius: 999px;
  background: rgba(41, 199, 184, 0.1);
  color: #9df8ee;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.hero-product-caption strong {
  color: var(--ink-strong);
  white-space: nowrap;
}

.hero-product-caption span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.site-login-card {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #101722;
  box-shadow: var(--shadow);
  padding: 24px;
}

.site-login-card h2 {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-size: 26px;
}

.site-login-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 30px;
}

.site-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 70px;
}

.site-feature {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 20px;
}

.site-feature i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.3);
  border-radius: 8px;
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
  font-size: 18px;
}

.site-feature h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
}

.site-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-section {
  padding-top: 46px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #101722;
  padding: 20px;
}

.workflow-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 180, 75, 0.32);
  border-radius: 8px;
  background: rgba(246, 180, 75, 0.1);
  color: #ffd796;
  font-weight: 900;
}

.workflow-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.audience-section,
.data-map-section,
.integration-section,
.operations-section {
  padding-top: 42px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.audience-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent),
    #101722;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.audience-card i,
.integration-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.11);
  color: #d8ccff;
  font-size: 18px;
}

.audience-card h3,
.integration-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
}

.audience-card p,
.integration-card p,
.data-node p,
.ops-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.data-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  counter-reset: data-step;
}

.data-node {
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 18px;
}

.data-node::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -10px;
  width: 10px;
  border-top: 1px solid rgba(41, 199, 184, 0.34);
}

.data-node:last-child::after {
  display: none;
}

.data-node span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.34);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #9df8ee;
  font-size: 12px;
  font-weight: 900;
}

.data-node strong {
  color: var(--ink-strong);
  font-size: 16px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.integration-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #101722;
  padding: 20px;
}

.ops-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(80, 96, 126, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(41, 199, 184, 0.12), transparent 46%),
    linear-gradient(225deg, rgba(167, 139, 250, 0.1), transparent 48%),
    #101722;
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.ops-band h2 {
  max-width: 620px;
  margin: 8px 0 10px;
  color: var(--ink-strong);
  font-size: 30px;
}

.ops-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-list li {
  min-height: 54px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(40, 49, 66, 0.82);
  border-radius: 8px;
  background: rgba(12, 17, 26, 0.62);
  padding: 10px 12px;
}

.ops-list i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.3);
  border-radius: 8px;
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
}

.ops-list span {
  min-width: 0;
  color: #dce7f3;
  line-height: 1.42;
}

.faq-section {
  padding-top: 26px;
  padding-bottom: 70px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #101722;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(41, 199, 184, 0.3);
}

.faq-item summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 850;
}

.faq-item summary i {
  color: #8cf2e8;
  transition: transform 160ms ease;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  border-top: 1px solid rgba(40, 49, 66, 0.72);
  color: #c6d0df;
  line-height: 1.58;
  padding: 0 20px 18px;
}

.legal-page main {
  min-height: calc(100vh - 176px);
}

.legal-hero {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  gap: 12px;
  margin: 0 auto;
  padding: 72px 0 28px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 48px;
  line-height: 1.04;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: #c6d0df;
  font-size: 16px;
  line-height: 1.65;
}

.requisites-layout {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  padding: 0 0 70px;
}

.requisites-card,
.requisites-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #101722;
  box-shadow: var(--shadow-soft);
}

.requisites-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.requisites-card.wide,
.requisites-note {
  grid-column: 1 / -1;
}

.requisites-card-head,
.requisites-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.requisites-card-head i,
.requisites-note i {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.3);
  border-radius: 8px;
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
  font-size: 18px;
}

.requisites-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
}

.requisites-card p,
.requisites-note span {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.requisites-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.requisites-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.requisites-list div {
  min-width: 0;
  border: 1px solid rgba(40, 49, 66, 0.72);
  border-radius: 7px;
  background: rgba(11, 16, 24, 0.72);
  padding: 11px 12px;
}

.requisites-list dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.requisites-list dd {
  margin: 0;
  color: #dce7f3;
  overflow-wrap: anywhere;
  font-weight: 720;
}

.requisites-note {
  padding: 18px;
}

.requisites-note strong {
  display: block;
  color: var(--ink-strong);
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(53, 65, 86, 0.62);
  background:
    linear-gradient(180deg, rgba(13, 19, 29, 0.92), #070a10 72%),
    #070a10;
  padding: 34px 0 30px;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, auto) minmax(180px, auto);
  align-items: start;
  gap: 34px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-width: 0;
  border-right: 0;
  padding-right: 0;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-color: rgba(41, 199, 184, 0.38);
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--ink-strong);
  font-size: 17px;
  letter-spacing: 0;
}

.footer-brand span {
  max-width: 480px;
  margin-top: 6px;
  color: #9ca8ba;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.footer-links a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aeb9c9;
  padding: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
  transition: color 140ms ease;
}

.footer-links a:hover {
  color: var(--ink-strong);
}

.footer-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding-top: 2px;
}

.footer-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53, 65, 86, 0.72);
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.34);
  color: #c8d2e1;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.compact-footer .site-footer-inner {
  min-height: 78px;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, auto);
}

.compact-footer .footer-brand {
  border-right: 0;
}

.compact-footer .footer-links {
  justify-content: end;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 18px;
}

.topbar .icon-button {
  background: #171d27;
  border-color: var(--line);
}

.topbar .logout-button {
  margin-left: 4px;
  border-color: rgba(65, 78, 104, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(17, 24, 35, 0.86);
  color: #c8d2e1;
  font-size: 16px;
}

.topbar .logout-button:hover {
  border-color: rgba(255, 107, 107, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.08), transparent),
    rgba(22, 27, 38, 0.96);
  color: #ffd1d1;
}

.topbar .logout-button i {
  transform: translateX(1px);
}

.main {
  min-width: 0;
  min-height: 0;
}

.view {
  display: none;
  height: calc(100vh - 68px);
  min-height: 0;
  padding: 18px;
}

.view.active {
  display: block;
}

html[data-initial-view="vehicle"] #view-catalog.active {
  display: none;
}

html[data-initial-view="vehicle"] #view-vehicle {
  display: block;
}

#view-catalog.active {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  gap: 16px;
}

#view-vehicle.active {
  display: block;
}

.filter-panel,
.wide-panel,
.results-panel,
.details-panel,
.admin-side {
  background: rgba(20, 25, 34, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}

.panel-title,
.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filters {
  display: grid;
  gap: 13px;
}

.filter-section-title {
  margin-top: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line);
  background: #0f141d;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.field input::placeholder {
  color: #59677c;
}

.field input:focus,
.field select:focus {
  border-color: rgba(41, 199, 184, 0.72);
  box-shadow: 0 0 0 3px rgba(41, 199, 184, 0.1);
}

.field select {
  color: var(--ink);
}

.select2-container {
  max-width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.field > .select2-container {
  width: 100% !important;
}

.select2-container,
.select2-selection,
.select2-selection__rendered {
  min-width: 0;
}

.field .select2-container span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.select2-container--default .select2-selection--single {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141d;
  color: var(--ink);
  outline: none;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(41, 199, 184, 0.72);
  box-shadow: 0 0 0 3px rgba(41, 199, 184, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink);
  line-height: 37px;
  padding-left: 10px;
  padding-right: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #59677c;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 37px;
  right: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent transparent;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background: #0c1118;
  border-color: rgba(40, 49, 66, 0.64);
  opacity: 0.64;
}

.select2-dropdown {
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101722;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.select2-search--dropdown {
  padding: 8px;
  background: #101722;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141d;
  color: var(--ink);
  outline: none;
  padding: 0 10px;
}

.select2-results__option {
  min-height: 34px;
  padding: 8px 10px;
  color: #d7e2ef;
  overflow-wrap: anywhere;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(41, 199, 184, 0.18);
  color: var(--ink-strong);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #18202b;
  color: #9df8ee;
}

.select2-results__message {
  color: var(--muted);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.switch-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.switch-row.compact {
  grid-template-columns: 38px auto;
  min-height: 32px;
  color: #c8d4e4;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0f141d;
  transition: border-color 140ms ease, background 140ms ease;
}

.switch-row.compact .switch-track {
  width: 38px;
  height: 22px;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 140ms ease, background 140ms ease;
}

.switch-row.compact .switch-track::after {
  width: 14px;
  height: 14px;
}

.switch-row input:checked + .switch-track {
  border-color: rgba(41, 199, 184, 0.62);
  background: rgba(41, 199, 184, 0.16);
}

.switch-row input:checked + .switch-track::after {
  transform: translateX(18px);
  background: #9df8ee;
}

.switch-row.compact input:checked + .switch-track::after {
  transform: translateX(16px);
}

.hint-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.selection-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(41, 199, 184, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(41, 199, 184, 0.12), rgba(16, 23, 34, 0.96));
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.selection-empty,
.selection-meta {
  color: var(--muted);
  line-height: 1.4;
}

.selection-title {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 860;
}

.selection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hint-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 11px;
  box-shadow: var(--shadow-soft);
}

.hint-item strong,
.hint-item span {
  display: block;
}

.hint-item strong {
  color: var(--ink-strong);
}

.hint-item span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.38;
}

.catalog-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.stats-strip,
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  gap: 10px;
}

.stat,
.analytics-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141b26;
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.stat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.9;
}

.stat:nth-child(2n)::after {
  background: var(--amber);
}

.stat:nth-child(3n)::after {
  background: var(--violet);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 23px;
  font-weight: 880;
}

.split-view,
.catalog-stack {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.catalog-stack {
  grid-template-rows: minmax(0, 1fr);
}

.results-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.panel-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #151b26;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.results-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101722;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.results-status.idle {
  border-color: rgba(57, 217, 138, 0.24);
  color: #8ef0bd;
}

.results-status.loading {
  border-color: rgba(246, 180, 75, 0.32);
  background: var(--amber-soft);
  color: #ffd796;
}

.results-status.error {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.13);
  color: #ffaaaa;
}

h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
  font-weight: 860;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(41, 199, 184, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9df8ee;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
  scrollbar-color: #425069 #111720;
}

.result-cards {
  display: grid;
  gap: 10px;
  align-content: start;
  align-items: start;
  padding: 12px;
  overflow: auto;
  scrollbar-color: #425069 #111720;
}

.loading-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(246, 180, 75, 0.26);
  border-radius: 8px;
  background: rgba(246, 180, 75, 0.1);
  padding: 12px;
}

.loading-panel strong,
.loading-panel span {
  display: block;
}

.loading-panel strong {
  color: var(--ink-strong);
}

.loading-panel span {
  margin-top: 3px;
  color: var(--muted);
}

.loader-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(246, 180, 75, 0.22);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.skeleton-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent),
    #101722;
  background-size: 220px 100%, 100% 100%;
  background-position: -220px 0, 0 0;
  animation: skeleton 1250ms ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton {
  to {
    background-position: calc(100% + 220px) 0, 0 0;
  }
}

.result-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.7fr) auto;
  align-items: center;
  align-self: start;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.result-card:hover {
  border-color: rgba(41, 199, 184, 0.38);
  background: #131c29;
}

.result-card.selected {
  border-color: rgba(41, 199, 184, 0.78);
  background: rgba(41, 199, 184, 0.1);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-soft);
}

.result-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.result-link {
  color: inherit;
  text-decoration: none;
}

.result-link.disabled {
  pointer-events: none;
}

.result-emblem {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.35);
  border-radius: 8px;
  background: #0d302e;
  color: #9df8ee;
  font-weight: 900;
}

.result-title-block {
  min-width: 0;
}

.result-title {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 860;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.fact,
.id-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #141c28;
  color: #d7e2ef;
  padding: 0 9px;
  font-size: 12px;
  max-width: 240px;
}

.fact {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact i {
  color: var(--muted);
}

.fact.accent {
  border-color: rgba(246, 180, 75, 0.28);
  background: var(--amber-soft);
  color: #ffd796;
}

.fact.accent i {
  color: #ffd796;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.id-chip {
  color: var(--muted);
}

.result-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.icon-action {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.action-link {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #171d27;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.action-link:hover {
  border-color: #53647f;
  background: #202837;
}

.action-link.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.icon-action.primary {
  color: #9df8ee;
}

body.modal-open {
  overflow: hidden;
}

.vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
}

.vehicle-modal.open {
  display: grid;
}

.vehicle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 13, 0.72);
  backdrop-filter: blur(8px);
}

.vehicle-modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--shadow);
  padding: 18px;
}

.vehicle-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.vehicle-modal-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 48px;
}

.vehicle-modal-emblem {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.4);
  border-radius: 8px;
  background: #0d302e;
  color: #9df8ee;
  font-weight: 900;
  font-size: 18px;
}

.vehicle-modal-hero h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.15;
}

.vehicle-modal-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.vehicle-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.vehicle-modal-fact {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141c28;
  padding: 10px;
}

.vehicle-modal-fact i {
  color: var(--muted);
  margin-right: 6px;
}

.vehicle-modal-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.vehicle-modal-fact strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.vehicle-modal-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.vehicle-modal-ids span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f141d;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
}

.vehicle-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.button-like {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #171d27;
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
  font-weight: 650;
}

.button-like.primary {
  border-color: rgba(41, 199, 184, 0.38);
  color: #9df8ee;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(40, 49, 66, 0.82);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101722;
  color: #94a7c0;
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
}

td {
  color: #d9e3ef;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.vehicle-cell {
  display: grid;
  gap: 3px;
}

.vehicle-cell strong {
  color: var(--ink-strong);
  font-weight: 820;
}

.vehicle-cell span {
  color: var(--muted);
  font-size: 12px;
}

tbody tr {
  cursor: pointer;
  transition: background 120ms ease;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

tbody tr:hover {
  background: rgba(41, 199, 184, 0.08);
}

tbody tr.selected {
  background: rgba(41, 199, 184, 0.14);
  box-shadow: inset 3px 0 0 var(--accent);
}

.details-panel {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-color: #425069 #111720;
}

.vehicle-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 25, 34, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vehicle-page-head {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #151b26;
}

.vehicle-page-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.details-page {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
}

.breadcrumb {
  min-height: 28px;
  border-color: var(--line);
  background: #101722;
  color: #c8d4e4;
  padding: 0 9px;
  font-size: 12px;
}

.breadcrumb:hover {
  border-color: rgba(41, 199, 184, 0.44);
  color: var(--ink-strong);
}

.breadcrumb.current {
  border-color: rgba(41, 199, 184, 0.34);
  background: var(--accent-soft);
  color: #9df8ee;
}

.breadcrumb-separator {
  color: var(--muted-2);
  font-size: 12px;
}

.details-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.details-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.35);
  border-radius: 8px;
  background: #0d302e;
  color: #9df8ee;
  font-weight: 920;
}

.details-title {
  color: var(--ink-strong);
  font-size: 22px;
  font-weight: 880;
}

.details-meta {
  color: var(--muted);
  margin-top: 7px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101722;
  color: #c8d4e4;
  padding: 6px 9px;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mini-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 10px;
}

.mini-metric span,
.mini-metric strong {
  display: block;
}

.mini-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-metric strong {
  margin-top: 4px;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 880;
}

.details-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
}

.vehicle-export-menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vehicle-export-menu button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 720;
}

.detail-search {
  margin-top: 14px;
}

.compare-panel,
.model-tree {
  display: grid;
  gap: 10px;
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head-inline h2 {
  margin: 0;
}

.compact-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.compact-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compact-switch span {
  width: 34px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d131d;
  position: relative;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.compact-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.16s ease, background 0.16s ease;
}

.compact-switch input:checked + span {
  border-color: rgba(41, 199, 184, 0.62);
  background: rgba(41, 199, 184, 0.12);
}

.compact-switch input:checked + span::after {
  transform: translateX(14px);
  background: #9df8ee;
}

.compare-help {
  color: var(--muted);
  line-height: 1.4;
}

.compare-toolbar,
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-filter {
  min-height: 32px;
  border-color: rgba(65, 78, 104, 0.78);
  background: rgba(8, 12, 19, 0.42);
  color: #b9c4d4;
  font-size: 12px;
  font-weight: 780;
}

.compare-filter.active {
  border-color: rgba(139, 124, 246, 0.52);
  background: rgba(139, 124, 246, 0.14);
  color: #ded8ff;
}

.compare-table-wrap {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f141d;
}

.compare-table {
  min-width: 760px;
}

.compare-table th,
.compare-table td {
  min-width: 180px;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #151d29;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 220px;
  background: #101722;
}

.compare-table thead th:first-child {
  z-index: 4;
  background: #151d29;
}

.compare-row-diff td {
  background: rgba(139, 124, 246, 0.055);
}

.compare-row-diff td:first-child {
  color: #ded8ff;
}

.compare-section-row td {
  background: #18202b;
  color: #9df8ee;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.compare-option-group-row td {
  background: #121b27;
  color: var(--ink);
  text-transform: none;
}

.compare-option-toggle {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.compare-option-toggle:hover {
  color: var(--ink-strong);
}

.compare-option-toggle i {
  width: 14px;
  color: #9df8ee;
  text-align: center;
}

.compare-option-group-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.compare-option-group-row strong,
.compare-option-toggle strong {
  margin-left: 8px;
  color: #9df8ee;
}

.compare-option-toggle em {
  margin-left: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(157, 248, 238, 0.22);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(157, 248, 238, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.compare-title {
  display: grid;
  gap: 4px;
}

.compare-title strong {
  color: var(--ink-strong);
}

.compare-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.model-group,
.serie-card,
.modification-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 11px;
}

.model-group {
  display: grid;
  gap: 10px;
}

.series-tabset {
  display: grid;
  gap: 10px;
}

.series-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-color: #425069 #111720;
}

.series-tab {
  flex: 0 0 auto;
  min-height: 32px;
  border-color: var(--line);
  background: #141c28;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.series-tab:hover {
  color: var(--ink-strong);
  border-color: rgba(41, 199, 184, 0.38);
}

.series-tab.active {
  border-color: rgba(41, 199, 184, 0.56);
  background: var(--accent-soft);
  color: #9df8ee;
}

.series-tab-panel {
  display: none;
}

.series-tab-panel.active {
  display: block;
}

.model-group-head,
.serie-head,
.modification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-group-head strong,
.serie-head strong,
.modification-head strong {
  color: var(--ink-strong);
}

.model-group-head span,
.serie-head span,
.modification-head span {
  color: var(--muted);
  font-size: 12px;
}

.count-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(41, 199, 184, 0.26);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9df8ee;
  padding: 0 9px;
  white-space: nowrap;
}

.modification-list,
.equipment-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.equipment-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.equipment-compare {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.equipment-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141c28;
  padding: 9px;
}

.equipment-card.active {
  border-color: rgba(41, 199, 184, 0.72);
  box-shadow: inset 3px 0 0 var(--accent);
}

.equipment-compare input {
  width: 16px;
  height: 16px;
}

.equipment-compare strong,
.equipment-compare small {
  display: block;
}

.equipment-compare strong {
  color: var(--ink-strong);
}

.equipment-compare small {
  margin-top: 3px;
  color: var(--muted);
}

.equipment-options-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  border-color: rgba(40, 49, 66, 0.72);
  background: #101722;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 780;
}

.equipment-options-trigger:hover {
  color: var(--ink-strong);
  border-color: rgba(41, 199, 184, 0.4);
}

.equipment-options-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-options-trigger strong {
  min-width: 26px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(41, 199, 184, 0.12);
  color: #9df8ee;
  font-size: 11px;
}

.equipment-options-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.equipment-options-modal {
  display: grid;
  gap: 14px;
}

.equipment-option-groups,
.equipment-option-list {
  display: grid;
  gap: 7px;
}

.equipment-option-group {
  display: block;
  min-width: 0;
}

.equipment-option-group {
  border: 1px solid rgba(40, 49, 66, 0.72);
  border-radius: 7px;
  background: #101722;
  padding: 6px 8px;
}

.equipment-option-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.equipment-option-group > summary::-webkit-details-marker {
  display: none;
}

.equipment-option-group > summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-option-group > summary strong {
  min-width: 26px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(41, 199, 184, 0.12);
  color: #9df8ee;
  font-size: 11px;
}

.equipment-option-group > summary::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--muted);
  transition: transform 140ms ease, color 140ms ease;
}

.equipment-option-group[open] > summary::before {
  transform: rotate(90deg);
  color: #9df8ee;
}

.equipment-option-list {
  padding: 4px 0 2px 18px;
}

.equipment-option {
  display: grid;
  gap: 3px;
  border-left: 2px solid rgba(41, 199, 184, 0.34);
  padding: 5px 0 5px 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.equipment-option small {
  color: var(--muted);
  font-size: 11px;
}

.section {
  margin-top: 18px;
}

.section h2 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 850;
}

.kv-list,
.option-list,
.rank-list,
.dump-list {
  display: grid;
  gap: 8px;
}

.group-card {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.72);
  padding: 10px;
}

.accordion-card {
  display: block;
}

.accordion-card[open] {
  display: grid;
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accordion-card > .group-title {
  cursor: pointer;
  list-style: none;
}

.accordion-card > .group-title::-webkit-details-marker {
  display: none;
}

.accordion-card > .group-title::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--muted);
  transition: transform 140ms ease, color 140ms ease;
}

.accordion-card[open] > .group-title::before {
  transform: rotate(90deg);
  color: #9df8ee;
}

.accordion-card > .group-title:hover h3 {
  color: #9df8ee;
}

.group-title h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  flex: 1;
}

.group-title span,
.group-count {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9df8ee;
  font-size: 12px;
  font-weight: 850;
}

.kv {
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(40, 49, 66, 0.72);
  border-radius: 7px;
  background: #101722;
}

.detail-token[hidden],
[data-filter-group][hidden] {
  display: none;
}

.kv-name {
  color: var(--muted);
}

.option,
.rank-item,
.dump-card,
.status-card,
.admin-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  padding: 11px;
  box-shadow: var(--shadow-soft);
}

.option {
  border-left-color: rgba(41, 199, 184, 0.42);
}

.option small,
.dump-meta,
.status-muted {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-title {
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 850;
}

.empty-text {
  max-width: 310px;
  margin-top: 7px;
  line-height: 1.4;
}

.status-line {
  padding: 14px;
  color: var(--muted);
}

.load-more {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.load-more:hover {
  background: var(--accent-soft);
  border-color: var(--accent-dark);
}

.analytics-grid,
.admin-layout {
  display: grid;
  gap: 16px;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
}

.analytics-page {
  display: grid;
  gap: 16px;
}

.analytics-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(13, 19, 29, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.analytics-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(139, 124, 246, 0.35);
  border-radius: 999px;
  background: rgba(139, 124, 246, 0.12);
  color: #d8d2ff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-hero h1 {
  margin: 12px 0 0;
  color: var(--ink-strong);
  font-size: 34px;
  line-height: 1.05;
}

.analytics-hero p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #b7c2d2;
  line-height: 1.5;
}

.analytics-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analytics-hero-summary article,
.analytics-density article {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(65, 78, 104, 0.76);
  border-radius: 8px;
  background: rgba(8, 12, 19, 0.54);
  padding: 12px;
}

.analytics-hero-summary article {
  min-height: 124px;
}

.analytics-hero-summary i,
.analytics-density i,
.analytics-card i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.13);
  color: #d8d2ff;
}

.analytics-hero-summary span,
.analytics-density span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-hero-summary strong,
.analytics-density strong {
  min-width: 0;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-hero-placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 124px;
  border: 1px dashed rgba(80, 96, 126, 0.82);
  border-radius: 8px;
  color: var(--muted);
}

.analytics-panel {
  overflow: hidden;
  border-color: rgba(65, 78, 104, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent),
    rgba(13, 19, 29, 0.9);
}

.analytics-main-panel,
.analytics-side-panel {
  min-height: 100%;
}

.analytics-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analytics-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-color: rgba(65, 78, 104, 0.82);
  background: rgba(8, 12, 19, 0.44);
}

.analytics-card span,
.analytics-card strong,
.analytics-card small {
  display: block;
}

.analytics-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.analytics-card strong {
  margin-top: 7px;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1;
}

.analytics-card small {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.analytics-density {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.analytics-density article {
  min-height: 88px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
}

.analytics-density i {
  grid-row: span 2;
}

.analytics-density strong {
  justify-self: end;
  font-size: 22px;
}

.analytics-total-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 180, 75, 0.32);
  border-radius: 999px;
  background: rgba(246, 180, 75, 0.12);
  color: #ffd796;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.analytics-rank-head {
  align-items: center;
}

.analytics-rank-panel {
  padding-bottom: 0;
}

.analytics-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.analytics-rank-item {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 94px;
  border-color: rgba(65, 78, 104, 0.78);
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.08), transparent 42%),
    rgba(8, 12, 19, 0.46);
  padding: 12px;
}

.analytics-rank-item:first-child {
  border-color: rgba(246, 180, 75, 0.38);
  background:
    linear-gradient(135deg, rgba(246, 180, 75, 0.12), transparent 38%),
    rgba(12, 17, 26, 0.72);
}

.rank-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 124, 246, 0.32);
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.11);
  color: #d8d2ff;
  font-size: 12px;
  font-weight: 900;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.rank-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.rank-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background: rgba(17, 24, 35, 0.86);
  color: #dbe4f2;
  font-size: 11px;
  font-weight: 900;
}

.rank-brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}

.rank-value {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.rank-value strong {
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1;
}

.rank-value span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 760;
}

.rank-progress {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(65, 78, 104, 0.72);
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.82);
}

.rank-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b7cf6, #4f73ff);
}

.wide-panel {
  padding-bottom: 16px;
}

.analytics-cards,
.rank-list,
.dump-list {
  padding: 16px;
}

.dump-upload-form {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 0 16px 12px;
}

.user-active-switch {
  min-height: 60px;
  align-items: center;
}

.user-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.user-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111925;
  padding: 10px;
}

.user-card.inactive {
  opacity: 0.62;
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  color: #d8ccff;
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card strong {
  color: var(--ink-strong);
}

.user-card span {
  color: var(--muted);
  font-size: 12px;
}

.user-actions {
  display: flex;
  gap: 6px;
}

.user-actions button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.requisites-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.requisites-admin-form .span-2 {
  grid-column: 1 / -1;
}

.requisites-admin-form textarea {
  min-height: 74px;
  resize: vertical;
}

.dump-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dump-upload-progress {
  margin: 0;
}

.rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.rank-name {
  color: var(--ink-strong);
  font-weight: 800;
}

.rank-value {
  color: var(--amber);
  font-weight: 880;
}

.analytics-rank-list .analytics-rank-item {
  grid-template-columns: 34px minmax(0, 1fr);
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.admin-side {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.dump-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.dump-title {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 850;
}

.dump-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-card strong {
  display: block;
  margin-bottom: 6px;
}

.status-card {
  min-width: 0;
  overflow: hidden;
}

.import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.import-head strong {
  margin: 0;
}

.import-head span {
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1018;
  margin: 10px 0 12px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  transition: width 260ms ease;
}

.import-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 11px;
}

.import-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.import-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141d;
  padding: 7px 8px;
}

.import-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.import-row strong {
  color: var(--ink-strong);
  font-size: 13px;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  text-align: right;
}

.import-message {
  margin-top: 10px;
  max-height: 92px;
  overflow: auto;
  border: 1px solid rgba(40, 49, 66, 0.72);
  border-radius: 7px;
  background: rgba(15, 20, 29, 0.72);
  padding: 8px;
  color: #cfd8e6;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.import-history {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141d;
}

.import-history summary {
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  list-style-position: inside;
}

.import-history-list {
  display: grid;
  gap: 1px;
  max-height: 210px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.import-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 8px;
  background: rgba(16, 23, 34, 0.72);
}

.import-history-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d7e2ef;
}

.import-history-row strong {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-note {
  color: var(--muted);
  line-height: 1.45;
}

#view-admin {
  overflow: auto;
}

.admin-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 100%;
}

.admin-hero {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: end;
  border: 1px solid rgba(80, 96, 126, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(41, 199, 184, 0.13), transparent 44%),
    linear-gradient(235deg, rgba(167, 139, 250, 0.12), transparent 42%),
    #101722;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.admin-hero h1 {
  margin: 8px 0 9px;
  color: var(--ink-strong);
  font-size: 34px;
  line-height: 1.08;
}

.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #c6d0df;
  line-height: 1.58;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(40, 49, 66, 0.9);
  border-radius: 8px;
  background: rgba(12, 17, 26, 0.66);
  color: var(--ink);
  padding: 14px;
}

.admin-overview-card i,
.admin-side-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.32);
  border-radius: 8px;
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
}

.admin-overview-card strong {
  min-width: 0;
  color: var(--ink-strong);
  font-weight: 820;
}

.admin-overview-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: grid;
}

.admin-panel {
  overflow: hidden;
  border-color: rgba(53, 65, 86, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(20, 25, 34, 0.96);
}

.admin-panel .panel-head {
  border-bottom: 1px solid rgba(40, 49, 66, 0.72);
}

.admin-inline-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(40, 49, 66, 0.72);
  color: var(--muted);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 760;
}

.admin-side {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  min-height: calc(100vh - 110px);
  border-color: rgba(80, 96, 126, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #101722;
}

.admin-side-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-side-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  text-align: left;
}

.admin-nav-item:hover {
  border-color: rgba(80, 96, 126, 0.54);
  background: rgba(20, 30, 42, 0.64);
  color: var(--ink-strong);
}

.admin-nav-item.active {
  border-color: rgba(41, 199, 184, 0.42);
  background: rgba(41, 199, 184, 0.12);
  color: #9df8ee;
}

.admin-nav-item i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 820;
}

.admin-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  padding: 16px;
}

.file-picker-field {
  cursor: pointer;
}

.file-picker {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px dashed rgba(80, 96, 126, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(12, 17, 26, 0.72);
  padding: 16px;
  transition: border-color 140ms ease, background 140ms ease;
}

.file-picker:hover {
  border-color: rgba(41, 199, 184, 0.58);
  background: rgba(16, 24, 35, 0.88);
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker:focus-within {
  border-color: rgba(41, 199, 184, 0.72);
  box-shadow: 0 0 0 3px rgba(41, 199, 184, 0.12);
}

.file-picker-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 184, 0.32);
  border-radius: 8px;
  background: rgba(41, 199, 184, 0.1);
  color: #8cf2e8;
  font-size: 18px;
}

.file-picker-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-picker-copy strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.file-picker-copy small {
  color: var(--muted);
  font-size: 12px;
}

.file-picker-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(41, 199, 184, 0.36);
  border-radius: 7px;
  background: #18202b;
  color: #dce7f3;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

.file-picker input[type="file"]:disabled {
  cursor: not-allowed;
}

.file-picker:has(input[type="file"]:disabled) {
  opacity: 0.58;
  cursor: not-allowed;
}

.dump-upload-actions .primary,
.dump-actions .primary {
  gap: 8px;
}

.dump-card {
  border-color: rgba(53, 65, 86, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #111925;
}

.dump-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid rgba(40, 49, 66, 0.72);
  padding: 16px 20px 0;
}

.dump-summary article {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(8, 12, 19, 0.52);
  padding: 11px;
}

.dump-summary i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.14);
  color: #d8d2ff;
}

.dump-summary span {
  color: #aeb9c9;
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.dump-summary strong {
  color: var(--ink-strong);
  font-size: 21px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dump-state-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(80, 96, 126, 0.82);
  border-radius: 8px;
  background: rgba(8, 12, 19, 0.42);
  padding: 18px;
}

.dump-state-card > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.14);
  color: #d8d2ff;
}

.dump-state-card strong,
.dump-state-card span {
  display: block;
}

.dump-state-card strong {
  color: var(--ink-strong);
  font-size: 16px;
}

.dump-state-card span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.dump-state-card.empty > i {
  background: rgba(246, 180, 75, 0.14);
  color: var(--warning);
}

.dump-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  color: #d8ccff;
}

.dump-card-main {
  grid-area: main;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dump-card-top {
  grid-area: top;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dump-kicker {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dump-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(246, 180, 75, 0.34);
  border-radius: 999px;
  background: rgba(246, 180, 75, 0.12);
  color: #ffd796;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.dump-status.ready {
  border-color: rgba(57, 217, 138, 0.34);
  background: rgba(57, 217, 138, 0.12);
  color: #8ef0bd;
}

.dump-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.dump-metric-grid div {
  min-height: 64px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  border: 1px solid rgba(40, 49, 66, 0.9);
  border-radius: 8px;
  background: rgba(8, 12, 19, 0.48);
  padding: 9px;
}

.dump-metric-grid span,
.dump-metric-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dump-metric-grid span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dump-metric-grid strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.dump-hash {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(40, 49, 66, 0.72);
  padding-top: 9px;
}

.dump-hash span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dump-hash code {
  color: #c6d0df;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.dump-title {
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 880;
  line-height: 1;
}

.dump-meta {
  overflow-wrap: anywhere;
}

.dump-actions {
  grid-area: actions;
  display: grid;
  align-content: end;
  margin-top: auto;
  border-left: 1px solid rgba(40, 49, 66, 0.72);
  padding-left: 18px;
}

.dump-actions .primary {
  width: 100%;
  justify-content: center;
}

.user-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 62px;
  border-color: rgba(53, 65, 86, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    #111925;
}

.user-card-main {
  min-width: 0;
}

.user-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-card-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-state {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.1);
  color: #8ef0bd;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.user-state.inactive {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
  color: #ffaaaa;
}

#view-admin {
  padding: 16px;
  background:
    radial-gradient(circle at 18% 4%, rgba(167, 139, 250, 0.12), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(78, 114, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 17, 26, 0.4), transparent 340px);
}

.admin-layout {
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(76, 89, 118, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(140deg, rgba(167, 139, 250, 0.08), transparent 38%),
    #0d131d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.admin-side::before {
  content: "";
  height: 3px;
  margin: -16px -16px 2px;
  background: linear-gradient(90deg, #8b7cf6, #4f73ff 55%, #283142);
}

.admin-side-head {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(53, 65, 86, 0.74);
}

.admin-side-head .panel-title {
  letter-spacing: 0;
  font-size: 15px;
}

.admin-side-icon {
  width: 44px;
  height: 44px;
  border-color: rgba(167, 139, 250, 0.38);
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.18), rgba(78, 114, 255, 0.12));
  color: #ded8ff;
}

.admin-side-section {
  margin: 2px 0 -4px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(139, 124, 246, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.12), transparent 46%),
    rgba(8, 12, 19, 0.48);
  padding: 10px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.12);
  color: #d8ccff;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-card strong,
.admin-user-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.admin-user-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-db-signal {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(65, 78, 104, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(7, 10, 16, 0.46);
  padding: 10px;
}

.admin-db-signal > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(246, 180, 75, 0.12);
  color: var(--warning);
}

.admin-db-signal.tone-success > i {
  background: rgba(57, 217, 138, 0.12);
  color: var(--success);
}

.admin-db-signal.tone-danger > i {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

.admin-db-signal strong,
.admin-db-signal span {
  display: block;
  min-width: 0;
}

.admin-db-signal strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.admin-db-signal span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav {
  gap: 6px;
}

.admin-nav-item {
  position: relative;
  min-height: 46px;
  grid-template-columns: 36px minmax(0, 1fr);
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
  color: #aeb9c9;
  padding: 5px 9px;
}

.admin-nav-item::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: transparent;
}

.admin-nav-item i {
  background: rgba(255, 255, 255, 0.04);
  color: #c8d1e0;
}

.admin-nav-item:hover {
  border-color: rgba(88, 103, 137, 0.72);
  background: rgba(24, 32, 45, 0.9);
}

.admin-nav-item.active {
  border-color: rgba(131, 116, 242, 0.5);
  background:
    linear-gradient(90deg, rgba(131, 116, 242, 0.2), rgba(20, 29, 42, 0.84));
  color: #f3f1ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active::before {
  background: #8b7cf6;
}

.admin-nav-item.active i {
  background: rgba(139, 124, 246, 0.18);
  color: #ded8ff;
}

.admin-side-footer {
  display: grid;
  gap: 9px;
  margin-top: auto;
  border: 1px solid rgba(53, 65, 86, 0.78);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.45);
  padding: 12px;
}

.admin-side-footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-side-footer strong {
  color: var(--ink-strong);
  font-size: 12px;
  white-space: nowrap;
}

.admin-side-footer small {
  color: var(--muted);
  line-height: 1.38;
}

.admin-side-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cdd7e7;
  font-size: 12px;
  font-weight: 820;
}

.admin-side-status i {
  color: var(--success);
  font-size: 8px;
}

.admin-main {
  gap: 18px;
}

.admin-page.active {
  animation: admin-page-in 160ms ease both;
}

@keyframes admin-page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.72fr);
  border-color: rgba(76, 89, 118, 0.8);
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.2), transparent 46%),
    linear-gradient(235deg, rgba(79, 115, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #0f1622;
  padding: 28px;
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 72% 12%, rgba(139, 124, 246, 0.22), transparent 34%);
  opacity: 0.72;
}

.admin-hero > * {
  position: relative;
}

.admin-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.admin-hero h1 {
  max-width: 780px;
  font-size: 40px;
  line-height: 1.02;
}

.admin-hero p {
  max-width: 690px;
  color: #c9d3e4;
  font-size: 15px;
}

.admin-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.admin-hero-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(65, 78, 104, 0.78);
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.48);
  color: #cdd7e7;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 780;
}

.admin-hero-meta i {
  color: #d8d2ff;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.admin-hero-actions button,
.admin-panel button {
  min-height: 38px;
}

.admin-main button.primary,
.admin-hero-actions .primary {
  border-color: rgba(139, 124, 246, 0.42);
  background: #20243a;
  color: #f1efff;
  font-weight: 650;
}

.admin-main button.primary:hover,
.admin-hero-actions .primary:hover {
  border-color: rgba(167, 139, 250, 0.68);
  background: #272c45;
}

.admin-command-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(80, 96, 126, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(7, 10, 16, 0.56);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.admin-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(53, 65, 86, 0.78);
  padding-bottom: 13px;
}

.admin-command-head span,
.admin-command-head strong {
  display: block;
}

.admin-command-head span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-command-head strong {
  color: var(--ink-strong);
  font-size: 16px;
  white-space: nowrap;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-kpi-card {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(13, 19, 29, 0.9);
  padding: 10px;
}

.admin-kpi-card i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(139, 124, 246, 0.14);
  color: #d8d2ff;
  font-size: 13px;
}

.admin-kpi-card span {
  color: #aeb9c9;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.admin-kpi-card strong {
  color: var(--ink-strong);
  font-size: 21px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-kpi-card.is-loading strong {
  color: var(--muted);
}

.admin-command-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-command-actions button {
  justify-content: center;
  gap: 8px;
}

.admin-ops-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-ops-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(8, 12, 19, 0.42);
  cursor: pointer;
  padding: 12px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.admin-ops-card:hover {
  border-color: rgba(139, 124, 246, 0.58);
  background: rgba(139, 124, 246, 0.1);
  transform: translateY(-1px);
}

.admin-ops-card > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.14);
  color: #ded8ff;
}

.admin-ops-card strong,
.admin-ops-card span {
  display: block;
}

.admin-ops-card strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.admin-ops-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.admin-workflow-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-workflow-rail article {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(65, 78, 104, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent),
    rgba(7, 10, 16, 0.36);
  padding: 14px;
}

.admin-workflow-rail span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 124, 246, 0.34);
  border-radius: 999px;
  background: rgba(139, 124, 246, 0.12);
  color: #d8d2ff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.admin-workflow-rail strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.admin-workflow-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-overview-grid {
  align-self: stretch;
  gap: 12px;
}

.admin-overview-card {
  min-height: 134px;
  border-color: rgba(65, 78, 104, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(11, 16, 25, 0.74);
  padding: 16px;
}

.admin-overview-card i {
  border-color: rgba(139, 124, 246, 0.35);
  background: rgba(139, 124, 246, 0.12);
  color: #d8d2ff;
}

.admin-overview-card strong {
  font-size: 15px;
}

.admin-overview-card span {
  font-size: 12px;
  line-height: 1.48;
}

.admin-panel {
  min-height: 520px;
  border: 1px solid rgba(76, 89, 118, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    #101722;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.admin-panel .panel-head {
  min-height: 94px;
  align-items: center;
  border-bottom: 1px solid rgba(53, 65, 86, 0.82);
  background:
    radial-gradient(circle at 0% 0%, rgba(139, 124, 246, 0.16), transparent 32%),
    linear-gradient(90deg, rgba(139, 124, 246, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.015);
  padding: 18px 20px;
}

.admin-panel .panel-head h1 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.1;
}

.admin-panel .panel-head p {
  max-width: 860px;
  color: #aeb9c9;
}

.admin-panel .action-link {
  border-color: rgba(139, 124, 246, 0.36);
  background: rgba(139, 124, 246, 0.1);
  color: #e5e0ff;
}

.admin-panel .field span {
  color: #aeb9c9;
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  border-color: rgba(65, 78, 104, 0.92);
  background: rgba(8, 12, 19, 0.76);
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
  border-color: rgba(139, 124, 246, 0.72);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.12);
}

.user-form,
.requisites-admin-form,
.dump-upload-form {
  gap: 14px;
  padding: 18px 20px;
}

.user-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(120px, auto);
  border-bottom: 1px solid rgba(40, 49, 66, 0.7);
}

.user-active-switch {
  min-height: 64px;
  justify-content: center;
  border: 1px solid rgba(65, 78, 104, 0.72);
  border-radius: 8px;
  background: rgba(8, 12, 19, 0.42);
  padding: 0 12px;
}

.admin-inline-status {
  min-height: 42px;
  border-top: 0;
  border-bottom: 1px solid rgba(40, 49, 66, 0.68);
  background: rgba(8, 12, 19, 0.22);
  padding: 0 20px;
}

.user-list {
  gap: 10px;
  padding: 18px 20px 20px;
}

.user-card {
  min-height: 70px;
  border-color: rgba(65, 78, 104, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent),
    rgba(13, 19, 29, 0.94);
  padding: 12px;
}

.user-avatar {
  border-color: rgba(139, 124, 246, 0.34);
  background: rgba(139, 124, 246, 0.12);
  color: #d8d2ff;
}

.requisites-admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.requisites-admin-form .span-2 {
  grid-column: span 2;
}

.requisites-admin-form .button-row.span-2,
.requisites-admin-form label:nth-child(1),
.requisites-admin-form label:nth-child(6),
.requisites-admin-form label:nth-child(7),
.requisites-admin-form label:nth-child(10),
.requisites-admin-form label:nth-child(13),
.requisites-admin-form label:nth-child(14) {
  grid-column: 1 / -1;
}

.dump-upload-form {
  padding-bottom: 20px;
}

.file-picker {
  min-height: 132px;
  border-color: rgba(91, 105, 139, 0.92);
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.13), transparent 48%),
    rgba(8, 12, 19, 0.62);
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: rgba(167, 139, 250, 0.72);
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.18), transparent 48%),
    rgba(12, 17, 26, 0.9);
}

.file-picker-icon {
  border-color: rgba(139, 124, 246, 0.36);
  background: rgba(139, 124, 246, 0.13);
  color: #ded8ff;
}

.file-picker-action {
  border-color: rgba(139, 124, 246, 0.42);
  background: #20243a;
  color: #f1efff;
}

.dump-upload-actions {
  padding-top: 2px;
}

.dump-upload-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(65, 78, 104, 0.82);
  background: rgba(8, 12, 19, 0.82);
}

.dump-upload-progress .progress-fill {
  background: linear-gradient(90deg, #8b7cf6, #4f73ff);
}

.import-message {
  border: 1px solid rgba(65, 78, 104, 0.72);
  border-radius: 8px;
  background: rgba(8, 12, 19, 0.45);
  padding: 12px;
  color: #c9d3e4;
}

.dump-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 20px 20px;
}

.backup-list {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.backup-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(65, 78, 104, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 217, 138, 0.07), transparent 42%),
    rgba(13, 19, 29, 0.94);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.backup-card.missing {
  border-color: rgba(246, 180, 75, 0.35);
  background:
    linear-gradient(135deg, rgba(246, 180, 75, 0.1), transparent 42%),
    rgba(13, 19, 29, 0.94);
}

.backup-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.1);
  color: #8ef0bd;
}

.backup-card.missing .backup-icon {
  border-color: rgba(246, 180, 75, 0.3);
  background: rgba(246, 180, 75, 0.12);
  color: var(--warning);
}

.backup-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.backup-row strong,
.backup-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-row strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.backup-row span,
.backup-path,
.backup-restored {
  color: var(--muted);
  font-size: 12px;
}

.backup-row em {
  align-self: start;
  border: 1px solid rgba(139, 124, 246, 0.3);
  border-radius: 999px;
  background: rgba(139, 124, 246, 0.1);
  color: #d8d2ff;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.backup-path {
  overflow-wrap: anywhere;
}

.backup-actions {
  display: flex;
  justify-content: flex-end;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(65, 78, 104, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(12, 18, 28, 0.97);
  color: var(--ink);
  padding: 13px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  animation: toast-in 0.18s ease-out both;
  pointer-events: auto;
}

.toast i {
  margin-top: 1px;
}

.toast span {
  min-width: 0;
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.45;
}

.toast-success {
  border-color: rgba(57, 217, 138, 0.4);
}

.toast-success i {
  color: #8ef0bd;
}

.toast-danger {
  border-color: rgba(255, 91, 122, 0.42);
}

.toast-danger i {
  color: var(--danger);
}

.toast-info i {
  color: #9fb4ff;
}

.toast.leaving {
  animation: toast-out 0.18s ease-in both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.dump-card {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 220px);
  grid-template-areas:
    "top actions"
    "main actions";
  align-items: stretch;
  gap: 14px 18px;
  border-color: rgba(65, 78, 104, 0.88);
  background:
    linear-gradient(135deg, rgba(139, 124, 246, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(13, 19, 29, 0.94);
  padding: 16px;
}

.dump-icon {
  border-color: rgba(139, 124, 246, 0.34);
  background: rgba(139, 124, 246, 0.12);
  color: #d8d2ff;
}

.admin-import-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding: 20px;
}

.status-card,
.admin-note {
  border: 1px solid rgba(65, 78, 104, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(8, 12, 19, 0.56);
  padding: 16px;
}

.admin-note {
  color: #b5c0cf;
}

.tone-success {
  color: var(--success);
}

.tone-warning {
  color: var(--warning);
}

.tone-danger {
  color: var(--danger);
}

.dump-card {
  position: relative;
  min-height: 116px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr) minmax(150px, 180px);
  grid-template-areas: "top main actions";
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
}

.dump-card-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  min-width: 0;
  gap: 10px;
  padding-right: 94px;
}

.dump-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dump-card .dump-icon {
  width: 40px;
  height: 40px;
}

.dump-card-main {
  gap: 9px;
}

.dump-card .dump-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 24px;
  gap: 6px;
  padding: 0 8px;
  font-size: 10px;
}

.dump-card .dump-title {
  font-size: 20px;
}

.dump-card .dump-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dump-card .dump-metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.dump-card .dump-metric-grid div {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
}

.dump-card .dump-metric-grid span {
  letter-spacing: 0.04em;
}

.dump-card .dump-metric-grid strong {
  font-size: 12px;
}

.dump-card .dump-hash {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.dump-card .dump-hash code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dump-card .dump-actions {
  align-content: center;
  margin-top: 0;
  padding-left: 14px;
}

.dump-card .dump-actions .primary {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .refined-hero {
    grid-template-columns: 1fr;
  }

  .site-hero h1 {
    font-size: 44px;
  }

  .site-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid,
  .integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .data-node:nth-child(3n)::after {
    display: none;
  }

  .analytics-hero,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-hero-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-band {
    grid-template-columns: 1fr;
  }

  .site-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-copy-panel h1 {
    font-size: 40px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .footer-brand {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .compact-footer .footer-brand {
    border-right: 0;
  }

  .compact-footer .footer-links,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .requisites-layout,
  .requisites-list.two-column {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-landing {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .app-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar,
  #view-catalog.active,
  .split-view,
  .catalog-stack {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-ops-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workflow-rail {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .admin-side {
    min-height: calc(100vh - 110px);
  }

  .admin-import-layout {
    grid-template-columns: 1fr;
  }

  .view {
    height: auto;
    min-height: calc(100vh - 68px);
  }

  .filter-panel,
  .result-cards,
  .details-panel {
    overflow: visible;
  }

  .results-panel,
  .vehicle-page {
    min-height: auto;
  }

  .stats-strip,
  .analytics-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-actions,
  .site-nav {
    width: 100%;
  }

  .site-actions {
    justify-content: space-between;
  }

  .site-hero,
  .site-section,
  .site-footer-inner,
  .legal-hero,
  .requisites-layout {
    width: calc(100% - 28px);
  }

  .site-hero h1 {
    font-size: 34px;
  }

  .site-hero p {
    font-size: 15px;
  }

  .site-login-card {
    padding: 18px;
  }

  .hero-product {
    padding: 7px;
  }

  .hero-product-caption {
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-product-caption span {
    text-align: left;
  }

  .preview-body,
  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .preview-car {
    padding-right: 12px;
  }

  .preview-car em {
    position: static;
    width: fit-content;
  }

  .site-stat-grid,
  .site-feature-grid,
  .workflow-grid,
  .audience-grid,
  .data-map,
  .integration-grid,
  .auth-stat-grid.compact {
    grid-template-columns: 1fr;
  }

  .data-node {
    min-height: auto;
  }

  .data-node::after {
    display: none;
  }

  .site-feature {
    min-height: auto;
  }

  .audience-card,
  .integration-card {
    min-height: auto;
  }

  .integration-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .ops-band {
    gap: 18px;
    padding: 18px;
  }

  .ops-band h2 {
    font-size: 24px;
  }

  .ops-list li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .ops-list i {
    width: 36px;
    height: 36px;
  }

  .workflow-card {
    min-height: auto;
  }

  .auth-topline,
  .auth-shell {
    width: calc(100% - 28px);
  }

  .auth-topline {
    min-height: auto;
    padding: 14px 0;
  }

  .auth-shell {
    padding: 18px 0 36px;
  }

  .auth-copy-panel h1 {
    font-size: 32px;
  }

  .auth-footnote {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero {
    padding: 38px 0 20px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .requisites-layout {
    padding-bottom: 42px;
  }

  .requisites-card,
  .requisites-note {
    padding: 16px;
  }

  .site-footer-inner {
    gap: 14px;
    min-height: auto;
    padding: 16px;
  }

  .footer-brand {
    align-items: flex-start;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .footer-brand .brand-mark {
    width: 42px;
    height: 42px;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .compact-footer .footer-links {
    justify-content: flex-start;
  }

  .footer-links a {
    justify-content: flex-start;
    white-space: normal;
  }

  .footer-meta {
    gap: 7px;
  }

  .footer-meta span {
    justify-content: flex-start;
    white-space: normal;
  }

  .auth-pages {
    padding: 14px;
  }

  .auth-hero,
  .auth-card {
    padding: 18px;
  }

  .auth-hero h1 {
    font-size: 36px;
  }

  .auth-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    gap: 10px;
    padding: 12px;
  }

  .brand,
  .top-actions,
  .tabs {
    width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .brand-name,
  .brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tab {
    flex: 0 0 auto;
    padding: 0 11px;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar .logout-button {
    margin-left: auto;
  }

  .top-home-link span {
    display: none;
  }

  .env-pill {
    min-width: 0;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .view {
    padding: 10px;
    min-height: auto;
  }

  .filter-panel,
  .wide-panel,
  .results-panel,
  .details-panel,
  .admin-side,
  .vehicle-page {
    box-shadow: var(--shadow-soft);
  }

  .filter-panel {
    padding: 12px;
  }

  .stats-strip,
  .analytics-cards,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .analytics-hero {
    padding: 16px;
  }

  .analytics-hero h1 {
    font-size: 28px;
  }

  .analytics-hero-summary {
    grid-template-columns: 1fr;
  }

  .analytics-hero-summary article {
    min-height: 78px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
  }

  .analytics-hero-summary i {
    grid-row: span 2;
  }

  .analytics-hero-summary strong {
    justify-self: end;
    font-size: 22px;
  }

  .analytics-card {
    min-height: auto;
  }

  .analytics-density article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .analytics-density strong {
    justify-self: start;
  }

  .analytics-rank-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-rank-list {
    grid-template-columns: 1fr;
  }

  .analytics-rank-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dump-card {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "main"
      "actions";
  }

  .backup-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .backup-actions {
    grid-column: 1 / -1;
  }

  .backup-actions button {
    width: 100%;
    justify-content: center;
  }

  .backup-row {
    grid-template-columns: 1fr;
  }

  .dump-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-hero {
    padding: 18px;
  }

  .admin-hero h1 {
    font-size: 28px;
  }

  .admin-command-panel {
    padding: 14px;
  }

  .admin-command-actions,
  .admin-ops-board,
  .admin-workflow-rail {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-head,
  .admin-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-command-head strong {
    white-space: normal;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-main,
  .admin-side {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-side {
    position: static;
    min-height: auto;
  }

  .admin-overview-grid,
  .user-form,
  .requisites-admin-form {
    grid-template-columns: 1fr;
  }

  .admin-side-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .file-picker {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .file-picker-action {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .requisites-admin-form .span-2 {
    grid-column: auto;
  }

  .user-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dump-summary {
    grid-template-columns: 1fr;
    padding: 14px 14px 0;
  }

  .dump-metric-grid {
    grid-template-columns: 1fr;
  }

  .dump-actions {
    border-left: 0;
    border-top: 1px solid rgba(40, 49, 66, 0.72);
    padding-top: 12px;
    padding-left: 0;
  }

  .dump-status {
    width: fit-content;
  }

  .user-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head,
  .vehicle-page-head {
    align-items: flex-start;
  }

  .panel-head {
    flex-direction: column;
    padding: 12px;
  }

  .table-tools {
    width: 100%;
    justify-content: space-between;
  }

  .results-status {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .vehicle-page {
    height: auto;
    overflow: visible;
  }

  .vehicle-page-head {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .vehicle-page-head p {
    display: none;
  }

  .details-page {
    padding: 12px;
  }

  .details-hero {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .details-logo {
    width: 44px;
    height: 44px;
  }

  .details-title {
    font-size: 18px;
  }

  .breadcrumbs {
    gap: 5px;
  }

  .breadcrumb {
    max-width: 100%;
  }

  .result-card {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .result-meta,
  .result-actions {
    justify-content: flex-start;
  }

  .vehicle-modal {
    padding: 10px;
  }

  .vehicle-modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .vehicle-modal-hero,
  .vehicle-modal-facts {
    grid-template-columns: 1fr;
  }

  .vehicle-modal-hero {
    padding-right: 42px;
  }

  .vehicle-modal-actions {
    justify-content: stretch;
  }

  .vehicle-modal-actions button,
  .vehicle-modal-actions .button-like {
    width: 100%;
    justify-content: center;
  }

  .result-facts .fact {
    max-width: 100%;
  }

  .compare-table {
    min-width: 680px;
  }

  .compare-table th,
  .compare-table td {
    min-width: 150px;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    min-width: 170px;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .import-row {
    grid-template-columns: 1fr;
  }

  .import-row strong {
    text-align: left;
  }

  .select2-dropdown {
    max-width: calc(100vw - 20px);
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .topbar,
  .filter-panel,
  .stats-strip,
  .details-toolbar,
  .detail-search,
  .vehicle-modal,
  .compare-toolbar,
  .equipment-options-trigger,
  .compact-switch,
  .breadcrumbs {
    display: none !important;
  }

  .app-shell,
  .main,
  .view,
  .vehicle-page,
  .details-panel {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .view:not(.active),
  #view-catalog,
  #view-analytics,
  #view-admin {
    display: none !important;
  }

  .details-hero,
  .mini-metric,
  .group-card,
  .model-group,
  .serie-card,
  .modification-card,
  .equipment-card,
  .compare-table-wrap {
    break-inside: avoid;
    border-color: #ccc !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .compare-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .compare-table {
    min-width: 0;
    width: 100%;
  }

  .compare-table th,
  .compare-table td,
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: static;
    min-width: 0;
    background: #fff !important;
    color: #111 !important;
  }
}
