/* Nato Style — site 2026. Hand-written, no framework. */

:root {
  --bg: #171821;
  --bg-2: #1b1c2b;
  --panel: #1f2130;
  --panel-2: #23252f;
  --line: #32354a;
  --line-2: #3d4057;
  --fg: #d9dae3;
  --fg-strong: #f0f1f6;
  --muted: #9a9cab;
  --dim: #6f7284;
  --accent: #a9aed6;
  --accent-2: #4b4f7d;
  --accent-ink: #191a26;
  --radius: 6px;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --head: 68px;
  --sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

code {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86em;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  z-index: 200;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(var(--maxw), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
}

.brand-word {
  color: var(--fg-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.brand:hover .brand-word {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover {
  color: var(--fg-strong);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a[aria-current="true"] {
  color: var(--fg-strong);
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.head-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.head-link:hover {
  color: var(--accent);
}

.profile {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.profile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(169, 174, 214, 0.045) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.hero > * {
  position: relative;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(169, 174, 214, 0.08);
}

.hero-title {
  margin: 24px 0 0;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
}

.lead {
  max-width: 58ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: #bcc0e2;
  border-color: #bcc0e2;
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 40px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta dt {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 7px 0 0;
  color: var(--fg);
  font-size: 13px;
}

.hero-meta dd i {
  color: var(--dim);
  font-style: normal;
}

.meta-copy {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.meta-copy:hover {
  color: var(--accent);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(52px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 32px;
}

.sec-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

h2 {
  margin: 0;
  color: var(--fg-strong);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sec-note {
  max-width: 42ch;
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

/* ---------- start ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.step {
  padding: 22px 26px 0 0;
  border-right: 1px solid var(--line);
}

.step + .step {
  padding-left: 26px;
}

.step:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 12px 0 8px;
  color: var(--fg-strong);
  font-size: 16px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.start-note {
  margin: 26px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.start-note a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.start-note a:hover {
  color: var(--accent);
}

/* ---------- downloads ---------- */

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

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.dl-card--win {
  border-top-color: var(--accent);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dl-os {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dl-ver {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.dl-card h3 {
  margin: 0 0 6px;
  color: var(--fg-strong);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dl-size {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.dl-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.dl-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--fg);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.dl-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dl-link--main {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.dl-link--main:hover {
  background: #bcc0e2;
  border-color: #bcc0e2;
  color: var(--accent-ink);
}

.dl-link .arrow {
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.dl-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.55;
}

.dl-foot {
  margin: 20px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.dl-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.dl-foot a:hover {
  color: var(--accent);
}

/* ---------- faq ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 78ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- footer ---------- */

.site-foot {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.foot-brand .brand {
  width: fit-content;
}

.foot-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.foot-brand .brand-word {
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.foot-brand p {
  max-width: 32ch;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}

.foot-col h4 {
  margin: 0 0 12px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .step:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 22px;
  }

  .step:nth-child(4) {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 22px;
  }

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

  .foot-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: var(--head);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--pad) 22px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(50, 53, 74, 0.6);
    font-size: 14px;
  }

  .nav a::after {
    display: none;
  }

  .head-actions {
    margin-left: 0;
  }

  .head-link {
    display: none;
  }

  .head-inner {
    gap: 14px;
  }

  .sec-head {
    grid-template-columns: auto 1fr;
    gap: 14px 18px;
  }

  .sec-note {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

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

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero-logo {
    width: 100%;
  }

  .hero-meta {
    gap: 16px 20px;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }

  .cta {
    flex-direction: column;
  }

  .brand-word {
    font-size: 12.5px;
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:first-child {
    padding-top: 22px;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    margin-top: 0;
    border-top: 0;
  }

  .step:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- account & gate ---------- */

[hidden] {
  display: none !important;
}

.auth-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
}

.auth-entry-name {
  max-width: 14ch;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.auth-entry:hover .auth-entry-name {
  color: var(--accent);
}

.auth-entry .profile.is-user,
.profile.is-user {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.install-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(110deg, var(--bg-2), var(--panel));
}

.gate-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.install-gate h3 {
  margin: 10px 0 6px;
  color: var(--fg-strong);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.install-gate p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.gate-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.account {
  padding-bottom: clamp(56px, 7vw, 90px);
}

.acc-head {
  padding: clamp(44px, 6vw, 76px) 0 30px;
}

.acc-head h1 {
  max-width: 22ch;
  margin: 20px 0 0;
  color: var(--fg-strong);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.acc-sub {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-top: 10px;
}

.auth-copy h2 {
  margin: 0;
  color: var(--fg-strong);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-points {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.auth-points li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.auth-points strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.auth-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-note {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}

.auth-note a,
.form-note a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.auth-note a:hover,
.form-note a:hover {
  color: var(--accent);
}

.auth-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 7px;
  background: var(--bg);
}

.auth-tab {
  padding: 10px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-tab:hover {
  color: var(--fg-strong);
}

.auth-tab[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--fg-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.auth-form {
  margin-top: 22px;
}

.field + .field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg-strong);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease;
}

.field input::placeholder {
  color: var(--dim);
}

.field input:focus {
  border-color: var(--accent);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 154, 154, 0.28);
  border-radius: 5px;
  background: rgba(217, 154, 154, 0.07);
  color: #d99a9a;
  font-size: 12px;
  line-height: 1.5;
}

.btn--wide {
  width: 100%;
  justify-content: center;
}

.btn--small {
  padding: 9px 14px;
  font-size: 12px;
}

.auth-submit {
  margin-top: 20px;
}

.auth-submit.is-busy {
  opacity: 0.65;
  cursor: default;
}

.form-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.55;
}

.cabinet {
  padding-top: 6px;
}

.cab-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.cab-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.cab-id h2 {
  margin: 0;
  color: var(--fg-strong);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cab-id p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.cab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h3 {
  margin: 0;
  color: var(--fg-strong);
  font-size: 17px;
  font-weight: 600;
}

.panel-meta {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.stat-grid > div {
  padding: 16px;
  background: var(--panel);
}

.stat-grid dt {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-grid dd {
  margin: 7px 0 0;
  color: var(--fg-strong);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-grid small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 11px;
}

.stat-time {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-time span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-time strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mode-stats {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mode-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(50, 53, 74, 0.55);
  color: var(--muted);
  font-size: 12px;
}

.mode-stats li:last-child {
  border-bottom: 0;
}

.mode-stats li span:last-child {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.stats-empty {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}

.skin-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.skin-stage {
  display: grid;
  min-height: 228px;
  place-items: center;
  padding: 16px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(169, 174, 214, 0.1), transparent 62%),
    var(--bg-2);
}

.skin-figure {
  --px: 6px;
  --skin: none;
  position: relative;
  width: calc(var(--px) * 16);
  height: calc(var(--px) * 32);
}

.skin-part {
  position: absolute;
  background-image: var(--skin);
  background-repeat: no-repeat;
  background-size: calc(var(--px) * 64) calc(var(--px) * 64);
  image-rendering: pixelated;
}

.skin-head,
.skin-hat {
  top: 0;
  left: calc(var(--px) * 4);
  width: calc(var(--px) * 8);
  height: calc(var(--px) * 8);
  background-position: calc(var(--px) * -8) calc(var(--px) * -8);
}

.skin-hat {
  background-position: calc(var(--px) * -40) calc(var(--px) * -8);
}

.skin-body,
.skin-jacket {
  top: calc(var(--px) * 8);
  left: calc(var(--px) * 4);
  width: calc(var(--px) * 8);
  height: calc(var(--px) * 12);
  background-position: calc(var(--px) * -20) calc(var(--px) * -20);
}

.skin-jacket {
  background-position: calc(var(--px) * -20) calc(var(--px) * -36);
}

.skin-arm-r,
.skin-sleeve-r {
  top: calc(var(--px) * 8);
  left: 0;
  width: calc(var(--px) * 4);
  height: calc(var(--px) * 12);
  background-position: calc(var(--px) * -44) calc(var(--px) * -20);
}

.skin-sleeve-r {
  background-position: calc(var(--px) * -44) calc(var(--px) * -36);
}

.skin-arm-l,
.skin-sleeve-l {
  top: calc(var(--px) * 8);
  left: calc(var(--px) * 12);
  width: calc(var(--px) * 4);
  height: calc(var(--px) * 12);
  background-position: calc(var(--px) * -36) calc(var(--px) * -52);
}

.skin-sleeve-l {
  background-position: calc(var(--px) * -52) calc(var(--px) * -52);
}

.skin-leg-r,
.skin-pant-r {
  top: calc(var(--px) * 20);
  left: calc(var(--px) * 4);
  width: calc(var(--px) * 4);
  height: calc(var(--px) * 12);
  background-position: calc(var(--px) * -4) calc(var(--px) * -20);
}

.skin-pant-r {
  background-position: calc(var(--px) * -4) calc(var(--px) * -36);
}

.skin-leg-l,
.skin-pant-l {
  top: calc(var(--px) * 20);
  left: calc(var(--px) * 8);
  width: calc(var(--px) * 4);
  height: calc(var(--px) * 12);
  background-position: calc(var(--px) * -20) calc(var(--px) * -52);
}

.skin-pant-l {
  background-position: calc(var(--px) * -4) calc(var(--px) * -52);
}

.skin-figure[data-model="slim"] .skin-arm-r,
.skin-figure[data-model="slim"] .skin-sleeve-r {
  left: calc(var(--px) * 1);
  width: calc(var(--px) * 3);
}

.skin-figure[data-model="slim"] .skin-arm-l,
.skin-figure[data-model="slim"] .skin-sleeve-l {
  left: calc(var(--px) * 12);
  width: calc(var(--px) * 3);
}

.skin-empty {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.skin-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.model-pick {
  display: flex;
  gap: 6px;
}

.model-pick label {
  position: relative;
  cursor: pointer;
}

.model-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.model-pick span {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.model-pick input:checked + span {
  border-color: var(--accent);
  background: rgba(169, 174, 214, 0.07);
  color: var(--accent);
}

.model-pick input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.file-drop {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.file-drop:hover {
  border-color: var(--accent);
}

.file-drop input {
  display: none;
}

.file-drop-title {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.file-drop-note {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.skin-controls .btn {
  margin-top: 14px;
}

.skin-controls .form-error {
  margin-top: 12px;
}

.skin-controls .form-note {
  margin-top: 10px;
}

.cab-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-2), var(--panel));
}

.cab-download h3 {
  margin: 0;
  color: var(--fg-strong);
  font-size: 18px;
  font-weight: 600;
}

.cab-download p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 1020px) {
  .auth-panel {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
  }

  .cab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .install-gate {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .gate-actions {
    width: 100%;
  }

  .gate-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .skin-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .acc-head h1 {
    font-size: 32px;
  }

  .auth-points li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-card,
  .panel {
    padding: 18px;
  }

  .stat-grid > div {
    padding: 13px;
  }

  .stat-grid dd {
    font-size: 24px;
  }

  .cab-userbar {
    align-items: center;
  }

  .cab-id {
    flex: 1;
  }

  .cab-id h2 {
    max-width: none;
  }

  .cab-id p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .skin-layout {
    grid-template-columns: 1fr;
  }

  .skin-stage {
    min-height: 210px;
  }

  .cab-download {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cab-download .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-entry-name {
    max-width: 9ch;
    font-size: 10px;
  }
}
