:root {
  color-scheme: dark;
  --bg: #05090b;
  --bg-raised: #090f12;
  --surface: #0c1418;
  --surface-strong: #121d22;
  --surface-warm: #171713;
  --line: #25343a;
  --line-strong: #41555d;
  --text: #f2fafc;
  --muted: #9db0b8;
  --faint: #71858d;
  --accent: #24c7f4;
  --accent-soft: rgba(36, 199, 244, 0.14);
  --accent-strong: #83e6ff;
  --accent-ink: #001217;
  --danger: #ff6074;
  --success: #35dc91;
  --gold: #f2c14e;
  --violet: #a995ff;
  --blue: #29b8ff;
  --green: #20d882;
  --red: #ff4964;
  --neutral: #dce4e8;
  --topbar-height: 72px;
  --sidebar-width: 224px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body[data-faction="GREEN"] {
  --accent: #20d882;
  --accent-soft: rgba(32, 216, 130, 0.14);
  --accent-strong: #7af5ba;
  --accent-ink: #00150c;
}

body[data-faction="RED"] {
  --accent: #ff4964;
  --accent-soft: rgba(255, 73, 100, 0.14);
  --accent-strong: #ff9cab;
  --accent-ink: #1b0005;
}

body[data-faction="NEUTRAL"] {
  --accent: #d5bd72;
  --accent-soft: rgba(213, 189, 114, 0.14);
  --accent-strong: #f5df9b;
  --accent-ink: #191300;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

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

button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.56; }
[hidden] { display: none !important; }

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

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

.brand-mark {
  width: 48px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: var(--accent);
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg);
  clip-path: inherit;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.brand-mark-small { width: 38px; height: 42px; }
.brand-name { font-size: 13px; font-weight: 800; }
.kicker,
.section-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #081015;
  border: 1px solid var(--line);
  border-radius: 5px;
  flex: 0 0 auto;
}

.icon-button:hover { color: var(--text); border-color: var(--accent); }
.icon-button svg { width: 19px; height: 19px; }

.primary-button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 5px;
  font-weight: 800;
}

.primary-button { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); }
.secondary-button { color: var(--text); background: #0b1519; border: 1px solid var(--line-strong); }
.primary-button:hover,
.secondary-button:hover { filter: brightness(1.1); }
.primary-button svg,
.secondary-button svg { width: 19px; height: 19px; }

.text-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.text-button svg { width: 16px; height: 16px; }

/* Authentication */
.auth-view {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  background-color: var(--bg);
}

.auth-brand {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 78px;
  padding: calc(12px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 11, 0.96);
  backdrop-filter: blur(12px);
}

.auth-brand-home {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.public-brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.auth-brand-home > span { min-width: 0; display: grid; gap: 2px; }
.auth-brand-home strong { font-size: 14px; }
.auth-brand-home small { color: var(--muted); font-size: 11px; }

.public-nav { display: flex; align-items: center; gap: 26px; }
.public-nav > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.public-nav > a:hover { color: var(--text); }
.public-login-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--text);
  background: #0b1519;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-weight: 800;
}
.public-login-button svg { width: 18px; height: 18px; color: var(--accent-strong); }

.auth-main.public-site { display: block; min-height: 0; padding: 0; }

.public-hero {
  min-height: clamp(540px, calc(100dvh - 240px), 720px);
  position: relative;
  display: flex;
  align-items: center;
  background-color: #05090b;
  background-image: url("media/hero-map.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.public-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(1, 5, 7, 0.62); }
.public-hero::after { content: ""; position: absolute; inset: 0 42% 0 0; z-index: -1; background: rgba(1, 6, 9, 0.52); }
.public-hero-copy {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 76px max(32px, env(safe-area-inset-right)) 82px max(32px, env(safe-area-inset-left));
}
.public-status {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.public-status > span { width: 8px; height: 8px; background: var(--success); box-shadow: 0 0 13px rgba(53, 220, 145, 0.8); }
.public-hero h1 { max-width: 760px; margin: 0; font-size: 76px; line-height: 0.98; letter-spacing: 0; text-shadow: 0 3px 30px #000; }
.public-lead { max-width: 660px; margin: 25px 0 0; color: #d4e1e5; font-size: 22px; line-height: 1.55; text-shadow: 0 2px 14px #000; }
.public-hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 11px; }
.public-hero-actions .primary-button,
.public-hero-actions .secondary-button { min-height: 52px; text-decoration: none; }
#auth-view .public-city-portals-contact { min-width: 0; max-width: 100%; min-height: 48px; padding: 11px 15px; color: #e1e5e8; background: rgba(5, 6, 8, .72); border-color: #687177; font-size: 13px; font-weight: 600; }
#auth-view .public-city-portals-contact span { min-width: 0; overflow-wrap: anywhere; }
#auth-view .public-city-portals-contact svg { width: 18px; height: 18px; flex: 0 0 18px; }
#auth-view .public-city-portals-contact:hover { border-color: #e1e5e8; }
.city-portals-panel { padding-block: 24px; margin-block: 24px; border-block: 1px solid var(--line); scroll-margin-top: 24px; }
.city-portals-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.city-portals-heading h2 { margin: 0; font-size: 21px; }
.city-portals-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; }
.city-portals-form, .city-portals-history { min-width: 0; }
.city-portals-form fieldset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.city-portals-form label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.city-portals-form label:last-child { grid-column: 1 / -1; }
.city-portals-form :is(input, textarea) { width: 100%; min-width: 0; color: var(--text); background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; padding: 11px; font: inherit; font-size: 14px; }
.city-portals-form textarea { resize: vertical; min-height: 88px; }
.city-portals-form .form-message { min-height: 1.5em; margin-block: 12px; }
.city-portals-form .form-message[data-kind="error"] { color: var(--red); }
.city-portals-form .form-message[data-kind="success"] { color: var(--green); background: rgba(32, 216, 130, .08); border-left-color: var(--green); }
.city-portals-form .primary-button { max-width: 100%; }
.city-portals-form .primary-button span { min-width: 0; overflow-wrap: anywhere; }
.city-portals-history h3 { margin: 0 0 12px; font-size: 15px; }
.city-portals-list { list-style: none; margin: 0; padding: 0; }
.city-portals-request { padding-block: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.city-portals-request-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.city-portals-request h4 { margin: 0; font-size: 14px; font-weight: 700; }
.city-portals-request p { white-space: pre-wrap; margin: 9px 0 0; font-size: 13px; line-height: 1.5; }
.city-portals-request time { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.city-portals-status { font-size: 11px; font-weight: 700; color: var(--blue); }
.city-portals-status[data-status="RESOLVED"] { color: var(--green); }
.city-portals-status[data-status="REJECTED"] { color: var(--red); }
.city-portals-reply { border-left: 2px solid var(--line-strong); padding-left: 12px; margin-top: 12px; }
.city-portals-reply strong { font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .city-portals-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 420px) {
  .city-portals-form fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) {
  #auth-view .public-site .public-hero { height: auto; min-height: calc(100svh - 112px); }
  #auth-view .public-hero .public-hero-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 6px; }
  #auth-view .public-hero .public-city-portals-contact { width: auto; min-height: 40px; padding: 9px 12px; font-size: 12px; }
}
.public-availability { margin: 18px 0 0; color: #b8c7cc; font-size: 13px; }

.zbt-band,
.public-gameplay,
.public-news,
.auth-access,
.public-footer { padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); }
.zbt-band { padding-block: 62px; background: #0a1215; border-bottom: 1px solid var(--line); }
.zbt-band > *,
.public-gameplay > *,
.public-news > *,
.auth-access > *,
.public-footer { max-width: 1180px; margin-inline: auto; }
.public-section-heading { max-width: 720px; }
.public-section-heading h2,
.auth-access-copy h2 { margin: 9px 0 12px; font-size: 36px; line-height: 1.15; letter-spacing: 0; }
.public-section-heading > p:not(.kicker),
.auth-access-copy > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.zbt-steps { margin: 38px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line-strong); }
.zbt-steps li { min-width: 0; padding: 22px 22px 4px 0; display: grid; align-content: start; gap: 7px; border-top: 3px solid transparent; }
.zbt-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.zbt-steps li:first-child { border-top-color: var(--accent); }
.zbt-steps li:nth-child(2) { border-top-color: var(--green); }
.zbt-steps li:nth-child(3) { border-top-color: var(--red); }
.zbt-steps li:nth-child(4) { border-top-color: var(--gold); }
.zbt-steps span { color: var(--accent-strong); font-size: 12px; font-weight: 850; }
.zbt-steps strong { font-size: 16px; }
.zbt-steps small { color: var(--muted); font-size: 13px; line-height: 1.5; }

.public-gameplay { padding-block: 90px; background: var(--bg); }
.feature-row { max-width: 1180px; margin: 58px auto 0; display: grid; grid-template-columns: minmax(320px, 0.86fr) minmax(340px, 1.14fr); align-items: center; gap: 72px; }
.feature-row + .feature-row { margin-top: 90px; }
.feature-row img { width: 100%; height: 620px; display: block; object-fit: contain; object-position: center; background: #020506; border: 1px solid var(--line); }
.feature-row-skills img { grid-column: 2; grid-row: 1; height: 600px; }
.feature-row-skills > div { grid-column: 1; grid-row: 1; }
.feature-index { color: var(--accent-strong); font-size: 11px; font-weight: 850; }
.feature-row h3 { margin: 10px 0 16px; font-size: 32px; line-height: 1.18; }
.feature-row p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.feature-row ul { margin: 25px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.feature-row li { display: flex; align-items: center; gap: 11px; color: #dce8eb; font-size: 14px; line-height: 1.45; }
.feature-row li svg { width: 20px; height: 20px; color: var(--accent-strong); flex: 0 0 auto; }

.public-news { padding-block: 82px; background: #080d10; border-block: 1px solid var(--line); }
.news-feed { max-width: 1180px; margin: 38px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-feed article { min-width: 0; min-height: 260px; padding: 24px; display: flex; flex-direction: column; background: #0d161a; border: 1px solid var(--line); border-radius: 7px; }
.news-feed time { color: var(--muted); font-size: 12px; }
.news-feed article > span { width: fit-content; margin-top: 30px; color: var(--accent-strong); font-size: 10px; font-weight: 850; }
.news-feed h3 { margin: 10px 0 12px; font-size: 20px; line-height: 1.3; }
.news-feed p { margin: auto 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.auth-access { padding-block: 86px calc(86px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px); justify-content: center; align-items: start; gap: 86px; background: #0b1215; scroll-margin-top: 82px; }
.auth-access-copy { width: 100%; padding-top: 26px; }
.access-security { margin-top: 28px; padding: 16px 0; display: flex; gap: 12px; color: #c4d2d7; border-block: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.access-security svg { width: 21px; height: 21px; color: var(--success); flex: 0 0 auto; }
.auth-form-stack { width: 100%; max-width: 430px; }
.public-footer { min-height: 70px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 20px; color: var(--faint); background: #05090b; font-size: 12px; }

.auth-view[data-auth-mode="register"] .public-hero,
.auth-view[data-auth-mode="register"] .zbt-band,
.auth-view[data-auth-mode="register"] .public-gameplay,
.auth-view[data-auth-mode="register"] .public-news,
.auth-view[data-auth-mode="register"] .public-footer { display: none; }
.auth-view[data-auth-mode="register"] .auth-access { min-height: calc(100dvh - 78px); align-items: start; }

.auth-panel {
  width: 100%;
  display: grid;
  gap: 11px;
  padding: 28px;
  background: rgba(10, 17, 21, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-panel h2 { margin: 2px 0 13px; font-size: 25px; line-height: 1.2; letter-spacing: 0; }
.auth-panel label { margin-top: 3px; color: #cbd9de; font-size: 14px; font-weight: 700; }
.auth-panel .auth-control,
.search input,
.level-filter select,
.compact-search input {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: #071015;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.auth-panel .auth-control { padding: 0 13px; font-size: 16px; }
.auth-panel .auth-control:hover,
.auth-panel .auth-control:focus { border-color: var(--accent); }
.password-field { position: relative; }
.password-field > .auth-control { padding-right: 52px; }
.password-field .icon-button { position: absolute; top: 1px; right: 1px; border: 0; background: transparent; }
.form-message { margin: 0; color: var(--danger); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.form-message:not(:empty) { padding: 9px 11px; background: rgba(255, 73, 100, 0.08); border-left: 3px solid var(--danger); border-radius: 4px; }
.auth-note { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message-success { color: var(--green); }
.form-message-success:not(:empty) { background: rgba(32, 216, 130, 0.08); border-left-color: var(--green); }

.auth-divider {
  height: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; background: var(--line); }

.yandex-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
  color: #111214;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.yandex-button:hover { background: #f0f0f0; border-color: #f0f0f0; }
.yandex-button[aria-busy="true"] { color: #55585c; pointer-events: none; }
.email-registration-start { width: 100%; min-height: 50px; }

.identity-providers { display: grid; gap: 10px; }
.identity-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.identity-button img { flex: 0 0 auto; object-fit: contain; }
.identity-button span { min-width: 0; overflow-wrap: anywhere; }
.identity-button:hover { background: #f2f2f2; }
.identity-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.identity-button:disabled { cursor: wait; opacity: .65; }
.identity-button-apple {
  gap: 0;
  min-height: 50px;
  padding: 0 8px;
  border-color: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 25px;
}
.identity-button-apple img { width: 50px; height: 50px; }
.identity-button-apple:hover { background: #fff; }
.net-registration-panel .registration-actions:has(.primary-button[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 500px) {
  .net-registration-panel .faction-option > span {
    flex-direction: column;
    gap: 4px;
    padding-inline: 3px;
    font-size: 12px;
  }
}

.yandex-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ff0000;
  background: #f3f3f3;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.yandex-registration-panel,
.email-registration-panel,
.email-verification-panel { align-self: start; }
.registration-intro { margin: -4px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.registration-intro strong { color: var(--text); overflow-wrap: anywhere; }

.registration-status {
  min-height: 52px;
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd9de;
  font-size: 14px;
}

.registration-status::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.registration-fields { display: grid; gap: 10px; }
.field-hint { margin: -6px 0 1px; color: var(--faint); font-size: 12px; line-height: 1.4; }

.faction-picker,
.legal-fieldset { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.faction-picker legend,
.legal-fieldset legend { margin-bottom: 8px; padding: 0; color: #cbd9de; font-size: 14px; font-weight: 700; }
.faction-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

.faction-option { min-width: 0; margin: 0 !important; }
.faction-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  opacity: 0;
}

.faction-option > span {
  min-height: 50px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 8px;
  color: var(--muted);
  background: #071015;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 13px;
  text-align: center;
  touch-action: manipulation;
}

.faction-option i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.faction-option-blue i { background: var(--blue); }
.faction-option-green i { background: var(--green); }
.faction-option-red i { background: var(--red); }
.faction-option input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.faction-option input:checked + span { color: var(--text); border-color: var(--accent-strong); background: var(--accent-soft); }

.legal-documents { display: grid; border-top: 1px solid var(--line); }
.legal-document {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-consent {
  min-width: 0;
  min-height: 50px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  line-height: 1.35;
  touch-action: manipulation;
}

.legal-consent span { min-width: 0; overflow-wrap: anywhere; }

.auth-panel .legal-checkbox {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.legal-document-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}

.legal-document-link:hover { text-decoration: underline; }
.legal-document-link svg { width: 16px; height: 16px; flex: 0 0 auto; }

.registration-actions { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 9px; }
.registration-actions .primary-button,
.registration-actions .secondary-button { min-height: 50px; min-width: 0; padding-inline: 12px; touch-action: manipulation; }
.yandex-registration-panel .password-field .icon-button,
.email-registration-panel .password-field .icon-button { width: 48px; height: 48px; }
.yandex-registration-panel .auth-control,
.email-registration-panel .auth-control,
.email-verification-panel .auth-control { min-height: 50px; }
.yandex-registration-panel .auth-control[aria-invalid="true"],
.email-registration-panel .auth-control[aria-invalid="true"],
.email-verification-panel .auth-control[aria-invalid="true"],
.faction-picker[aria-invalid="true"] { border-color: var(--danger); }

.turnstile-slot {
  width: 100%;
  min-height: 54px;
  overflow: visible;
  border-radius: 5px;
}

.turnstile-slot[hidden] { display: none; }
.turnstile-slot > div,
.turnstile-slot iframe { max-width: 100%; }
.turnstile-slot altcha-widget {
  display: block;
  width: 100%;
  min-height: 54px;
  --altcha-max-width: 100%;
  --altcha-padding: 0.8rem;
  --altcha-checkbox-size: 26px;
  --altcha-color-base: #071015;
  --altcha-color-base-content: #f2fbff;
  --altcha-color-neutral: #60747d;
  --altcha-color-neutral-content: #e8f7fc;
  --altcha-color-primary: var(--accent);
  --altcha-border-color: #4c626d;
  --altcha-border-radius: 5px;
}
.turnstile-slot .altcha-main { max-width: 100%; }
.turnstile-slot .altcha-popover[data-variant="error"] {
  position: static;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  color: #ffc3cb;
  background: #2b0d13;
  border-color: rgba(255, 96, 116, 0.72);
  box-shadow: none;
  transform: none;
}
.turnstile-slot .altcha-popover[data-variant="error"] .altcha-popover-content { padding: 9px 11px; }
.turnstile-slot .altcha-popover[data-variant="error"] .altcha-popover-arrow { display: none; }
.captcha-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.captcha-status:empty { display: none; }
.captcha-status:not(:empty) { min-height: 20px; }
.captcha-status-error { color: var(--danger); }
.captcha-status-error:not(:empty) { padding: 9px 11px; background: rgba(255, 73, 100, 0.08); border-left: 3px solid var(--danger); border-radius: 4px; }
#login-submit { min-height: 50px; font-size: 16px; }
.email-verification-panel .primary-button,
.email-verification-panel .secondary-button { min-height: 50px; }
.verification-code { text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.verification-actions { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.verification-actions .secondary-button span { overflow-wrap: anywhere; }

/* Application shell */
.platform {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr);
  background: var(--bg);
}

.platform-topbar {
  min-width: 0;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: #060b0e;
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.topbar-brand,
.operator,
.operator-button { min-width: 0; display: flex; align-items: center; gap: 10px; }
.topbar-brand > div,
.operator-copy { min-width: 0; display: grid; gap: 2px; }
.topbar-brand strong { font-size: 13px; }
.topbar-brand span:not(.brand-mark) { color: var(--muted); font-size: 11px; }
.route-heading { min-width: 0; display: grid; gap: 2px; }
.route-heading span { color: var(--accent-strong); font-size: 10px; font-weight: 800; }
.route-heading strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator { justify-content: flex-end; }
.operator-button { padding: 4px 7px; color: var(--text); background: transparent; border: 0; border-radius: 5px; }
.operator-button:hover { background: var(--accent-soft); }
.operator-copy { text-align: right; }
.operator-copy strong,
.operator-copy span { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator-copy strong { font-size: 14px; }
.operator-copy span { color: var(--muted); font-size: 12px; }
.operator-rank-badge { width: 40px; height: 44px; display: grid; place-items: center; position: relative; color: var(--accent-strong); flex: 0 0 auto; }
.operator-rank-badge svg { width: 38px; height: 42px; stroke-width: 1.3; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 45%, transparent)); }
.operator-rank-badge strong { position: absolute; color: var(--text); font-size: 12px; }

.platform-body { min-width: 0; min-height: 0; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.platform-sidebar { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #070d10; border-right: 1px solid var(--line); }
.primary-nav { padding: 18px 12px; display: grid; align-content: start; gap: 5px; }
.primary-nav button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav button:hover { color: var(--text); background: #0b1418; }
.primary-nav button[aria-current="page"] { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.primary-nav svg { width: 20px; height: 20px; color: currentColor; }
.nav-badge { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 5px; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: 11px; font-weight: 850; }
.sidebar-footer { min-height: 66px; padding: 14px 18px; display: flex; align-items: center; gap: 9px; color: var(--faint); border-top: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.connection-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.platform-content { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: var(--bg); }
.route-view { width: 100%; height: 100%; }
.scroll-view,
.overview-view { overflow: auto; overscroll-behavior: contain; padding: 30px clamp(20px, 3.2vw, 48px) 44px; }
.section-heading { min-width: 0; margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h1,
.profile-identity h1 { margin: 4px 0 5px; font-size: 36px; line-height: 1.12; letter-spacing: 0; }
.section-heading p:not(.kicker),
.profile-identity p:not(.kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Dashboard */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); background: #080e11; }
.stat-strip > div { min-width: 0; min-height: 116px; padding: 19px 22px; display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span { color: var(--muted); font-size: 10px; font-weight: 800; }
.stat-strip strong { color: var(--text); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.stat-strip strong.metric-compact { font-size: 20px; white-space: nowrap; overflow-wrap: normal; }
.stat-strip div:nth-child(2) strong { color: var(--accent-strong); }
.stat-strip div:nth-child(4) strong { color: var(--gold); }
.stat-strip small { color: var(--faint); font-size: 11px; }
.overview-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.panel-title-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-title-row h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: 0; }
.metric-accent { color: var(--accent-strong); font-size: 16px; white-space: nowrap; }
[aria-labelledby="career-title"] .panel-title-row { flex-wrap: wrap; }
#profile-ap { max-width: 100%; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.rank-lockup { margin: 21px 0 16px; display: flex; align-items: center; gap: 14px; }
.rank-emblem,
.profile-emblem { width: 58px; height: 66px; display: grid; place-items: center; position: relative; color: var(--accent-strong); flex: 0 0 auto; }
.rank-emblem svg,
.profile-emblem svg { width: 100%; height: 100%; stroke-width: 1.1; }
.rank-emblem strong,
.profile-emblem strong { position: absolute; color: var(--text); font-size: 18px; }
.rank-lockup > div { min-width: 0; display: grid; gap: 4px; }
.rank-lockup > div strong { font-size: 18px; overflow-wrap: anywhere; }
.rank-lockup > div span { color: var(--muted); font-size: 13px; }
.progress-track { width: 100%; height: 7px; overflow: hidden; background: #1a262a; border-radius: 2px; }
.progress-track span { width: 0; height: 100%; display: block; background: var(--accent); transition: width 220ms ease; }
.progress-track .progress-fill-0 { width: 0; }.progress-track .progress-fill-5 { width: 5%; }.progress-track .progress-fill-10 { width: 10%; }.progress-track .progress-fill-15 { width: 15%; }.progress-track .progress-fill-20 { width: 20%; }.progress-track .progress-fill-25 { width: 25%; }.progress-track .progress-fill-30 { width: 30%; }.progress-track .progress-fill-35 { width: 35%; }.progress-track .progress-fill-40 { width: 40%; }.progress-track .progress-fill-45 { width: 45%; }.progress-track .progress-fill-50 { width: 50%; }.progress-track .progress-fill-55 { width: 55%; }.progress-track .progress-fill-60 { width: 60%; }.progress-track .progress-fill-65 { width: 65%; }.progress-track .progress-fill-70 { width: 70%; }.progress-track .progress-fill-75 { width: 75%; }.progress-track .progress-fill-80 { width: 80%; }.progress-track .progress-fill-85 { width: 85%; }.progress-track .progress-fill-90 { width: 90%; }.progress-track .progress-fill-95 { width: 95%; }.progress-track .progress-fill-100 { width: 100%; }
.panel-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.zbt-account-summary {
  min-width: 0;
  margin-top: 20px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  background: #0c171b;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
}
.zbt-summary-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 5px; }
.zbt-summary-icon svg { width: 23px; height: 23px; }
.zbt-account-summary h2 { margin: 3px 0 4px; font-size: 18px; }
.zbt-account-summary p { margin: 0; color: var(--muted); font-size: 13px; }
.zbt-status { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--muted); background: #081015; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.zbt-status[data-status="PENDING"] { color: var(--gold); border-color: rgba(242, 193, 78, 0.55); }
.zbt-status[data-status="APPROVED"] { color: var(--success); border-color: rgba(53, 220, 145, 0.55); }
.zbt-status[data-status="REJECTED"],
.zbt-status[data-status="REVOKED"] { color: var(--danger); border-color: rgba(255, 96, 116, 0.55); }
.compact-list { margin-top: 12px; display: grid; gap: 8px; }
.compact-task { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.compact-task:last-child { border-bottom: 0; }
.compact-task > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 5px; }
.compact-task svg { width: 17px; height: 17px; }
.compact-task div { min-width: 0; display: grid; gap: 3px; }
.compact-task strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-task small { color: var(--muted); font-size: 11px; }
.compact-task > strong { color: var(--accent-strong); font-size: 12px; }
.inventory-summary { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.inventory-summary > div { min-width: 0; min-height: 104px; padding: 14px; display: grid; place-items: center; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.inventory-summary > div:last-child { border-right: 0; }
.inventory-summary svg { width: 22px; height: 22px; color: var(--accent-strong); }
.inventory-summary div:nth-child(2) svg { color: var(--gold); }
.inventory-summary span { color: var(--muted); font-size: 11px; }
.inventory-summary strong { font-size: 22px; }
.event-preview { margin-top: 16px; min-height: 112px; padding-left: 16px; display: grid; align-content: center; gap: 6px; border-left: 3px solid var(--gold); background: var(--surface-warm); }
.event-preview strong { font-size: 17px; }
.event-preview span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.event-preview time { color: var(--gold); font-size: 12px; font-weight: 750; }

/* Map */
.map-route { display: grid; grid-template-rows: 58px minmax(0, 1fr); }
.map-toolbar { min-width: 0; padding: 7px 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; justify-content: space-between; gap: 14px; background: #080e11; border-bottom: 1px solid var(--line); }
.search { width: 100%; height: 44px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 42px; align-items: center; background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; }
.search:focus-within { border-color: var(--accent); }
.search > svg { width: 18px; height: 18px; justify-self: center; color: var(--muted); }
.search input { min-width: 0; min-height: 40px; padding: 0; border: 0; background: transparent; outline: 0; }
.search .icon-button { width: 40px; height: 40px; border: 0; background: transparent; }
.map-world-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); position: relative; }
.portal-list-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; background: rgba(7, 13, 17, 0.99); border-right: 1px solid var(--line); z-index: 20; }
.panel-heading { min-height: 60px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: grid; gap: 3px; }
.panel-heading strong { font-size: 15px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.filters { padding: 11px 12px 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-chip { min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 8px; color: var(--muted); background: #091116; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.filter-chip input { width: 15px; height: 15px; margin: 0; accent-color: currentColor; }
.filter-chip:has(input:checked) { color: var(--text); }
.filter-blue:has(input:checked) { border-color: var(--blue); }
.filter-green:has(input:checked) { border-color: var(--green); }
.filter-red:has(input:checked) { border-color: var(--red); }
.filter-neutral:has(input:checked) { border-color: var(--neutral); }
.level-filter { min-height: 52px; padding: 6px 12px 9px; display: grid; grid-template-columns: minmax(0, 1fr) 90px; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.level-filter select { min-height: 34px; padding: 0 8px; }
.portal-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.portal-row { width: 100%; min-height: 64px; padding: 9px 12px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--text); text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(37, 52, 58, 0.72); }
.portal-row:hover,
.portal-row[aria-current="true"] { background: var(--accent-soft); }
.portal-row-marker { width: 8px; height: 28px; border-radius: 2px; background: var(--neutral); }
.portal-row-marker.BLUE { background: var(--blue); }
.portal-row-marker.GREEN { background: var(--green); }
.portal-row-marker.RED { background: var(--red); }
.portal-row-copy { min-width: 0; display: grid; gap: 4px; }
.portal-row-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-row-copy span { color: var(--muted); font-size: 10px; }
.portal-row-level { color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.empty-state { margin: 0; padding: 20px 14px; color: var(--muted); text-align: center; font-size: 12px; }
.map-stage { min-width: 0; min-height: 0; position: relative; background: #141b1f; }
.map-canvas { width: 100%; height: 100%; }
.map-canvas .ol-viewport { background: #141b1f; }
.map-canvas .osm-dark-layer { filter: invert(100%) hue-rotate(180deg) brightness(240%) contrast(85%) saturate(45%); }
.map-canvas .ol-control button { background: #081116; color: var(--text); border-radius: 3px; }
.map-canvas .ol-control button:hover { background: var(--accent); color: var(--accent-ink); }
.map-canvas .ol-zoom { top: 12px; left: 12px; }
.map-canvas .ol-attribution { color: var(--muted); background: rgba(5, 9, 11, 0.86); }
.map-canvas .ol-attribution a { color: var(--accent-strong); }
.map-attribution { position: absolute; z-index: 5; left: 8px; bottom: 6px; padding: 3px 6px; color: #d7e3e8; background: rgba(5, 9, 11, 0.88); font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.map-attribution:hover,
.map-attribution:focus-visible { color: var(--accent-strong); }
.map-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.map-action { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--text); background: rgba(7, 14, 18, 0.94); border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); font-size: 12px; }
.map-action:hover { border-color: var(--accent); }
.map-action svg { width: 17px; height: 17px; }
.map-locate { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
.map-locate[aria-busy="true"] { border-color: var(--accent); opacity: .65; }
@media (max-width: 600px) {
  .map-actions .map-action { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
  .map-actions .map-action span { display: none; }
  body:has(#route-map:not([hidden])) .toast { bottom: calc(108px + env(safe-area-inset-bottom)); width: max-content; }
}
.map-loading,
.map-error { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 7; max-width: min(92%, 460px); min-height: 42px; margin: 0; padding: 10px 14px; display: flex; align-items: center; gap: 9px; color: var(--text); background: rgba(7, 14, 18, 0.96); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34); }
.map-error { color: #ffd1d6; border-color: var(--danger); }
.loader { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portal-detail { position: absolute; top: 12px; right: 12px; width: min(390px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; z-index: 15; background: rgba(8, 15, 19, 0.98); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52); }
.portal-watch-control { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.portal-watch-control[hidden] { display: none; }
.portal-watch-control .secondary-button { width: 100%; min-height: 44px; justify-content: center; }
.portal-watch-control p { min-height: 1.4em; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.portal-watch-control p[data-state="error"] { color: var(--danger); }
.detail-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(5, 9, 11, 0.9); }
.detail-image-wrap { width: 100%; aspect-ratio: 16 / 8; background: #030607; border-bottom: 1px solid var(--line); }
.detail-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-content { padding: 18px; }
.detail-faction { margin: 0 48px 5px 0; color: var(--accent-strong); font-size: 11px; font-weight: 750; }
.detail-faction.faction-BLUE { color: var(--blue); }
.detail-faction.faction-GREEN { color: var(--green); }
.detail-faction.faction-RED { color: var(--red); }
.detail-faction.faction-NEUTRAL { color: var(--neutral); }
.detail-content h2 { margin: 0; padding-right: 34px; font-size: 21px; line-height: 1.22; letter-spacing: 0; overflow-wrap: anywhere; }
.detail-stats { margin-top: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.detail-stats > div { min-width: 0; padding: 11px 8px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.detail-stats > div:first-child { padding-left: 0; }
.detail-stats > div:last-child { border-right: 0; }
.detail-stats span { color: var(--muted); font-size: 10px; }
.detail-stats strong { font-size: 14px; }
.energy-track { height: 4px; margin-top: 12px; background: #19252b; overflow: hidden; }
.energy-track span { width: 0; height: 100%; display: block; background: var(--accent); transition: width 220ms ease; }
.energy-track .energy-fill-0 { width: 0; }.energy-track .energy-fill-1 { width: 10%; }.energy-track .energy-fill-2 { width: 20%; }.energy-track .energy-fill-3 { width: 30%; }.energy-track .energy-fill-4 { width: 40%; }.energy-track .energy-fill-5 { width: 50%; }.energy-track .energy-fill-6 { width: 60%; }.energy-track .energy-fill-7 { width: 70%; }.energy-track .energy-fill-8 { width: 80%; }.energy-track .energy-fill-9 { width: 90%; }.energy-track .energy-fill-10 { width: 100%; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.detail-section p { margin: 0; color: #c8d6dc; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.coordinates { margin: 18px 0 0; color: var(--muted); font-size: 10px; }

/* Inventory and shop */
.content-toolbar { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-search { width: min(100%, 360px); height: 44px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; }
.compact-search:focus-within { border-color: var(--accent); }
.compact-search svg { width: 18px; height: 18px; justify-self: center; color: var(--muted); }
.compact-search input { min-width: 0; min-height: 40px; padding: 0 11px 0 0; border: 0; outline: 0; background: transparent; }
.segmented-control { min-width: 0; display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 5px; overflow-x: auto; }
.segmented-control button { min-height: 42px; padding: 0 14px; color: var(--muted); background: #091115; border: 0; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); font-weight: 800; }
.item-grid,
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.item-card,
.product-card { min-width: 0; min-height: 176px; padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.item-card:hover,
.product-card:hover { border-color: var(--line-strong); }
.item-card-header,
.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-icon,
.product-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 6px; }
.item-icon svg,
.product-icon svg { width: 23px; height: 23px; }
.item-quantity { color: var(--text); font-size: 24px; font-weight: 850; }
.item-card-copy,
.product-card-copy { min-width: 0; display: grid; align-content: start; gap: 5px; }
.item-card-copy strong,
.product-card-copy strong { font-size: 16px; overflow-wrap: anywhere; }
.item-card-copy span,
.product-card-copy span { color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.item-meta,
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 11px; }
.rarity { color: var(--violet); font-weight: 800; }
.rarity-common { color: var(--muted); }.rarity-rare { color: var(--blue); }.rarity-epic { color: var(--violet); }.rarity-legendary { color: var(--gold); }
.balance-block { min-width: 150px; padding: 10px 14px; display: grid; gap: 2px; text-align: right; background: var(--surface-warm); border-left: 3px solid var(--gold); }
.balance-block span { color: var(--muted); font-size: 10px; font-weight: 800; }
.balance-block strong { color: var(--gold); font-size: 23px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.product-card { min-height: 224px; }
.product-icon { color: var(--gold); background: rgba(242, 193, 78, 0.12); border-color: rgba(242, 193, 78, 0.3); }
.product-price { color: var(--gold); font-size: 18px; font-weight: 850; }
.buy-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); border-radius: 5px; font-weight: 800; }
.buy-button svg { width: 17px; height: 17px; }
.orders-panel { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; position: sticky; top: 0; }
.order-list { margin-top: 13px; display: grid; }
.order-row { min-width: 0; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-row strong { font-size: 13px; overflow-wrap: anywhere; }
.order-row span { color: var(--muted); font-size: 11px; }
.order-row .status-ok { color: var(--success); }.order-row .status-pending { color: var(--gold); }.order-row .status-failed { color: var(--danger); }
.inline-notice { margin: -8px 0 18px; padding: 12px 14px; color: var(--text); background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 13px; }
.route-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: 7px; }
.route-empty svg { width: 30px; height: 30px; color: var(--accent-strong); }
.route-empty strong { color: var(--text); font-size: 16px; }
.route-empty span { font-size: 13px; }

/* Missions and profile */
.streak-block { min-width: 142px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.streak-block svg { width: 28px; height: 28px; color: var(--gold); }
.streak-block div { display: grid; }
.streak-block strong { font-size: 24px; }
.streak-block span { color: var(--muted); font-size: 11px; }
.missions-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 24px; }
.subsection-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.subsection-heading h2 { margin: 0; font-size: 19px; }
.subsection-heading span { color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.mission-list,
.events-list { display: grid; }
.mission-card { min-width: 0; min-height: 116px; padding: 16px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.mission-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 6px; }
.mission-icon svg { width: 22px; height: 22px; }
.mission-copy { min-width: 0; display: grid; gap: 5px; }
.mission-copy strong { font-size: 15px; }
.mission-copy > span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.mission-progress { display: flex; align-items: center; gap: 9px; }
.mission-progress .progress-track { max-width: 240px; height: 5px; }
.mission-progress small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.claim-button { min-width: 104px; min-height: 42px; padding: 0 12px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); border-radius: 5px; font-weight: 800; }
.claim-button:disabled { color: var(--muted); background: #111b1f; border-color: var(--line); cursor: default; }
.event-card { min-width: 0; padding: 17px 0 17px 17px; display: grid; gap: 7px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--gold); }
.event-card strong { font-size: 15px; }
.event-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.event-card time { color: var(--gold); font-size: 11px; font-weight: 750; }
.profile-identity { min-width: 0; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; }
.profile-emblem { width: 76px; height: 86px; }
.profile-emblem strong { font-size: 23px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zbt-account-panel { grid-column: 1 / -1; }
.zbt-decision { margin-top: 14px; padding: 12px 14px; color: #d8e4e8; background: #081014; border-left: 3px solid var(--gold); font-size: 13px; line-height: 1.55; }
.zbt-form { margin-top: 18px; display: grid; gap: 14px; }
.zbt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zbt-form label,
.zbt-message-form label { display: grid; gap: 7px; color: #cbd9de; font-size: 13px; font-weight: 750; }
.zbt-form input,
.zbt-form textarea,
.zbt-message-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; color: var(--text); background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; resize: vertical; }
.zbt-form input:focus,
.zbt-form textarea:focus,
.zbt-message-form textarea:focus { border-color: var(--accent); }
.zbt-form .primary-button { width: fit-content; }
.zbt-download { margin-top: 18px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(53, 220, 145, 0.07); border: 1px solid rgba(53, 220, 145, 0.32); }
.zbt-download > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.zbt-download > div > svg { width: 28px; height: 28px; color: var(--success); flex: 0 0 auto; }
.zbt-download > div > span { min-width: 0; display: grid; gap: 3px; }
.zbt-download strong { font-size: 14px; }
.zbt-download small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.zbt-download .primary-button { flex: 0 0 auto; text-decoration: none; }
.zbt-correspondence { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.zbt-clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.zbt-client { min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.zbt-client-heading { display: flex; align-items: center; gap: 10px; }
.zbt-client-heading > svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.zbt-client-heading h3 { margin: 0; font-size: 18px; }
.zbt-client-heading > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.zbt-client-detail { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.zbt-client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.zbt-client-actions > :is(a, button) { min-height: 44px; max-width: 100%; text-decoration: none; }
.zbt-client-actions span { min-width: 0; overflow-wrap: anywhere; }
.zbt-clients .zbt-download { margin-top: 12px; padding: 0; background: none; border: 0; flex-direction: column; align-items: stretch; }
@media (max-width: 700px) {
  .zbt-clients { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .zbt-client-actions { flex-direction: column; align-items: stretch; }
  .zbt-client-actions > :is(a, button) { width: 100%; }
}
.zbt-correspondence-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.zbt-correspondence-heading h3 { margin: 4px 0 0; font-size: 16px; }
.zbt-correspondence-heading > span { color: var(--muted); font-size: 11px; text-align: right; }
.zbt-message-list { max-height: 340px; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; overflow-y: auto; list-style: none; }
.zbt-message { max-width: min(82%, 620px); padding: 11px 13px; display: grid; gap: 6px; background: #091216; border: 1px solid var(--line); border-radius: 6px; }
.zbt-message[data-sender="PLAYER"] { justify-self: end; border-color: rgba(36, 199, 244, 0.38); }
.zbt-message[data-sender="GM"] { justify-self: start; border-color: rgba(242, 193, 78, 0.38); }
.zbt-message p { margin: 0; color: #dce8eb; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.zbt-message span { color: var(--muted); font-size: 10px; }
.zbt-message-empty { color: var(--muted); font-size: 13px; }
.zbt-message-form { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.zbt-message-form textarea { min-height: 76px; }
.zbt-message-form .form-message { grid-column: 1 / -1; }
.profile-skills-panel { grid-column: 1 / -1; }
.profile-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.profile-stat { min-width: 0; padding: 14px 10px 0; display: grid; gap: 3px; border-right: 1px solid var(--line); }
.profile-stat:first-child { padding-left: 0; }.profile-stat:last-child { border-right: 0; }
.profile-stat strong { font-size: 20px; overflow-wrap: anywhere; }.profile-stat span { color: var(--muted); font-size: 11px; }
.medal-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.medal-tier-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.medal-tier-legend > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.tier-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.tier-bronze .tier-swatch { background: #b47a47; }.tier-silver .tier-swatch { background: #b9c5cc; }.tier-gold .tier-swatch { background: var(--gold); }.tier-platinum .tier-swatch { background: #8fe7e2; }.tier-ruby .tier-swatch { background: #ef4e78; }.tier-elite .tier-swatch { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.medal-card { min-width: 0; min-height: 116px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 10px; text-align: center; background: #091115; border: 1px solid var(--line); border-radius: 6px; }
.medal-card-emblem { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.medal-card-emblem svg { width: 30px; height: 30px; color: currentColor; }
.medal-card-emblem.winged svg:first-child { transform: rotate(20deg) scaleX(-1); }.medal-card-emblem.winged svg:last-child { transform: rotate(-20deg); }
.medal-card-emblem.winged svg:first-child,
.medal-card-emblem.winged svg:last-child { width: 20px; height: 20px; }
.medal-tier-1 .medal-card-emblem { color: #b47a47; }.medal-tier-2 .medal-card-emblem { color: #b9c5cc; }.medal-tier-3 .medal-card-emblem { color: var(--gold); }.medal-tier-4 .medal-card-emblem { color: #8fe7e2; }.medal-tier-5 .medal-card-emblem { color: #ef4e78; }.medal-tier-elite .medal-card-emblem { color: var(--violet); filter: drop-shadow(0 0 6px rgba(169, 149, 255, 0.45)); }
.medal-card strong { font-size: 12px; overflow-wrap: anywhere; }.medal-card span { color: var(--muted); font-size: 10px; }
.medal-card .medal-card-emblem { color: var(--faint); }.medal-card.medal-tier-1 .medal-card-emblem { color: #b47a47; }.medal-card.medal-tier-2 .medal-card-emblem { color: #b9c5cc; }.medal-card.medal-tier-3 .medal-card-emblem { color: var(--gold); }.medal-card.medal-tier-4 .medal-card-emblem { color: #8fe7e2; }.medal-card.medal-tier-5 .medal-card-emblem { color: #ef4e78; }.medal-card.medal-tier-elite .medal-card-emblem { color: var(--violet); }
.medal-empty { grid-column: 1 / -1; }
.skills-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.skill-row { min-width: 0; min-height: 62px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #091115; border: 1px solid var(--line); border-radius: 6px; }
.skill-row > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 5px; }
.skill-row svg { width: 18px; height: 18px; }.skill-row div { min-width: 0; display: grid; gap: 3px; }.skill-row strong { font-size: 13px; overflow-wrap: anywhere; }.skill-row small { color: var(--muted); font-size: 10px; }.skill-row > strong { color: var(--accent-strong); font-size: 13px; }

/* Chrono Atlas */
.notification-button { position: relative; flex: 0 0 auto; }
.notification-button .nav-badge { position: absolute; top: -5px; right: -7px; border: 2px solid #060b0e; }
.atlas-overview-strip { min-width: 0; margin: 4px 0 18px; padding: 16px 2px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.atlas-overview-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 6px; }
.atlas-overview-icon svg { width: 23px; height: 23px; }
.atlas-overview-strip h2 { margin: 3px 0 2px; font-size: 17px; }
.atlas-overview-strip p { margin: 0; color: var(--muted); font-size: 13px; }
.atlas-route { overflow-x: hidden; }
.atlas-heading { align-items: center; }
.atlas-quota { min-width: 96px; padding-left: 18px; display: grid; justify-items: end; gap: 2px; border-left: 1px solid var(--line); }
.atlas-quota span { color: var(--muted); font-size: 10px; font-weight: 800; }
.atlas-quota strong { color: var(--accent-strong); font-size: 25px; }
.atlas-toolbar { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.atlas-state { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 24px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: 7px; }
.atlas-state[data-state="error"], .atlas-state[data-state="forbidden"] { color: var(--danger); }
.atlas-state .text-button { flex-basis: 100%; justify-content: center; color: var(--accent-strong); }
.atlas-workspace { min-width: 0; display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); align-items: start; gap: 14px; }
.atlas-list-panel { padding-inline: 0; }
.atlas-list-panel > .panel-title-row { padding-inline: 20px; }
.atlas-list { min-width: 0; display: grid; }
.atlas-list > .route-empty { margin: 0 20px; }
.atlas-list-item { min-width: 0; width: 100%; padding: 14px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--text); text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); }
.atlas-list-item:hover { background: rgba(255, 255, 255, 0.025); }
.atlas-list-item[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.atlas-list-copy { min-width: 0; display: grid; gap: 4px; }
.atlas-list-copy strong, .atlas-list-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-list-copy strong { font-size: 14px; }.atlas-list-copy span { color: var(--muted); font-size: 11px; }
.atlas-route#route-atlas { max-width: 1280px; margin-inline: auto; }
body[data-faction="NEUTRAL"] #route-atlas { --accent: #dce4e8; --accent-strong: #f2fafc; --accent-soft: #dce4e81c; --accent-ink: #05090b; }
.atlas-heading { margin-bottom: 16px; gap: 12px; }
.atlas-brand, .atlas-heading-actions { display: flex; align-items: center; gap: 20px; }
.atlas-brand img { object-fit: contain; flex: 0 0 auto; }
.atlas-brand h1 { margin: 0; padding-left: 20px; border-left: 1px solid var(--line-strong); font-size: 29px; }
.atlas-heading .atlas-quota { min-width: 0; padding: 0; border: 0; background: transparent; }
.atlas-heading .atlas-quota span { font-size: 9px; }
.atlas-heading .atlas-quota strong { font-size: 20px; }
.atlas-cabinet-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.atlas-cabinet-tabs button { min-height: 58px; padding: 12px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 19px; font-weight: 650; }
.atlas-cabinet-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
#atlas-campaign-policy { padding: 10px 0 16px; margin: 0 0 12px; color: var(--muted); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 12px; line-height: 1.6; box-shadow: none; }
#route-atlas .atlas-toolbar { margin-bottom: 14px; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 8px; }
.atlas-cabinet-filters { flex-wrap: nowrap; gap: 5px; padding: 0; border: 0; background: transparent; }
.atlas-cabinet-filters button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 5px; font-size: 14px; }
.atlas-cabinet-filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); box-shadow: none; }
.atlas-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.atlas-tools .icon-button { width: 38px; height: 40px; border-color: transparent; background: transparent; }
.atlas-filter-menu { position: relative; }
.atlas-filter-menu summary { list-style: none; cursor: pointer; }
.atlas-filter-menu summary::-webkit-details-marker { display: none; }
.atlas-filter-menu[open] summary { color: var(--accent-strong); }
.atlas-filter-menu label { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; display: grid; gap: 10px; width: 220px; padding: 16px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; background: #0b1114; font-size: 12px; box-shadow: 0 8px 24px #0008; }
.atlas-filter-menu select { width: 100%; min-height: 40px; padding: 8px; color: var(--text); background: #080d10; border: 1px solid var(--line-strong); border-radius: 4px; }
.atlas-cabinet-search { width: 100%; max-width: none; margin-bottom: 16px; }
#route-atlas .atlas-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
#route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
#route-atlas .atlas-list-panel { padding: 0; max-height: none; overflow: visible; }
.atlas-list-heading { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; color: var(--muted); font-size: 11px; }
.atlas-list-heading h2 { margin: 0; font-size: 11px; font-weight: 500; }
.atlas-list-heading span { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.atlas-submission-row { min-width: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line-strong); overflow: hidden; }
.atlas-submission-row:last-child { border-bottom: 1px solid var(--line-strong); }
#route-atlas .atlas-list-item { position: relative; z-index: 1; padding: 0; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: start; border: 0; background: var(--bg); transform: translateX(var(--swipe-offset, 0px)); transition: transform 180ms ease; touch-action: pan-y; }
#route-atlas .atlas-list-item:hover { background: var(--bg); }
#route-atlas .atlas-list-item[aria-current="true"] { box-shadow: none; }
#route-atlas .atlas-list-item[aria-current="true"] .atlas-list-copy strong { color: var(--accent-strong); }
.atlas-submission-photo { display: grid; place-items: center; position: relative; width: 170px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; color: #819198; background: #192126; }
.atlas-submission-photo > svg { width: 42px; height: 42px; stroke-width: 1.3; }
.atlas-submission-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
#route-atlas .atlas-list-copy { padding-top: 3px; gap: 12px; }
#route-atlas .atlas-list-copy strong, #route-atlas .atlas-list-copy span { white-space: normal; overflow: visible; text-overflow: clip; }
#route-atlas .atlas-list-copy strong { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
#route-atlas .atlas-row-status { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
#route-atlas .atlas-row-status span { color: inherit; font-size: 14px; line-height: 1.45; }
.atlas-row-status svg { width: 20px; height: 20px; flex: 0 0 auto; }
#route-atlas .atlas-row-status.status-published { color: var(--green); }
#route-atlas .atlas-row-status.status-rejected, #route-atlas .atlas-row-status.status-publication_failed { color: var(--danger); }
#route-atlas .atlas-row-status.status-gm_needs_info, #route-atlas .atlas-row-status.status-needs_correction { color: var(--accent-strong); }
.atlas-row-date { color: var(--faint); font-size: 10px; }
.atlas-row-actions { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 2px; }
.atlas-row-actions .icon-button { width: 32px; height: 34px; border-color: transparent; background: transparent; }
.atlas-row-actions .icon-button svg { width: 20px; height: 20px; }
.atlas-swipe-actions { position: absolute; inset: 18px 0 18px auto; z-index: 3; display: flex; gap: 0; width: 112px; background: #080c0e; }
.atlas-swipe-actions .icon-button { width: 44px; height: 100%; min-height: 64px; border: 0; border-radius: 0; }
.atlas-swipe-actions .atlas-swipe-delete { width: 68px; color: #fff; background: #b7243d; border-radius: 0 6px 6px 0; }
.atlas-submission-row[data-swiping="true"] .atlas-row-actions { visibility: hidden; }
.atlas-submission-row[data-swiping="true"] .atlas-list-item { transition: none; }
.atlas-progress-compact { margin-top: 3px; }
.atlas-progress-compact .atlas-progress-stages { flex-wrap: nowrap; gap: 0; }
.atlas-progress-compact .atlas-progress-stages li { position: relative; flex: 1 1 0; padding: 0; border: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 5px; text-align: center; font-weight: 400; }
.atlas-progress-compact .atlas-progress-stages li::after { content: ""; position: absolute; top: 8px; left: calc(50% + 9px); width: calc(100% - 18px); height: 1px; background: var(--line-strong); }
.atlas-progress-compact .atlas-progress-stages li:last-child::after { display: none; }
.atlas-progress-compact .atlas-progress-stages li[aria-current="step"] { color: var(--accent-strong); font-weight: 700; }
.atlas-progress-compact .atlas-progress-stages svg { width: 17px; height: 17px; fill: var(--bg); }
#route-atlas .atlas-progress-compact .atlas-progress-stages span { color: inherit; font-size: 10px; line-height: 1.3; }
#route-atlas .atlas-detail { padding: 0 0 0 24px; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.atlas-detail-tools { margin-bottom: 18px; }
.atlas-new-button { width: 100%; min-height: 54px; margin-top: 24px; font-size: 17px; }
.atlas-new-panel { min-height: 330px; padding-block: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-bottom: 1px solid var(--line); text-align: center; }
.atlas-new-panel > svg { width: 36px; height: 36px; color: var(--accent-strong); }
.atlas-new-panel h2 { margin: 0; font-size: 23px; }
.atlas-new-panel p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.atlas-new-panel > .text-button { margin-top: 4px; }
@media (min-width: 1100px) {
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) .atlas-list-item { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) .atlas-submission-photo { width: 116px; }
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) .atlas-list-copy strong { font-size: 16px; }
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) .atlas-row-actions { flex-direction: column; }
}
@media (max-width: 1099px) {
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  #route-atlas .atlas-workspace:has(.atlas-detail:not([hidden])) .atlas-list-panel { display: none; }
  #route-atlas .atlas-detail { padding: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .atlas-brand, .atlas-heading-actions { gap: 12px; }
  .atlas-brand img { width: 32px; height: 36px; }
  .atlas-brand h1 { padding-left: 12px; font-size: 25px; }
  .atlas-cabinet-tabs { margin-bottom: 18px; }
  .atlas-cabinet-tabs button { min-height: 54px; font-size: 17px; }
  .atlas-cabinet-filters { gap: 0; }
  .atlas-cabinet-filters button { padding: 8px 9px; font-size: 12px; }
  .atlas-tools { gap: 0; }
  .atlas-tools .icon-button { width: 28px; height: 36px; }
  .atlas-tools .icon-button svg { width: 19px; height: 19px; }
  #route-atlas .atlas-list-item { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .atlas-submission-photo { width: 100px; aspect-ratio: 1; }
  .atlas-submission-row { padding: 16px 0; gap: 4px; }
  #route-atlas .atlas-list-copy { gap: 8px; }
  #route-atlas .atlas-list-copy strong { font-size: 16px; line-height: 1.25; }
  #route-atlas .atlas-row-status span { font-size: 12px; }
  .atlas-row-status svg { width: 17px; height: 17px; }
  .atlas-row-actions { flex-direction: column; }
  .atlas-row-actions .icon-button { width: 28px; height: 30px; }
  .atlas-row-date { display: none; }
  #route-atlas .atlas-progress-compact .atlas-progress-stages span { font-size: 8px; }
  .atlas-progress-compact .atlas-progress-stages li { gap: 4px; }
  .atlas-new-button { min-height: 50px; margin-top: 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #route-atlas .atlas-list-item { transition: none; } }
@media (max-width: 900px) {
  body:has(#route-atlas:not([hidden])) .toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); }
}
@media (max-width: 359px) {
  #route-atlas .atlas-list-item { grid-template-columns: 92px minmax(0, 1fr); row-gap: 8px; }
  #route-atlas .atlas-list-copy { display: contents; }
  #route-atlas .atlas-submission-photo { width: 92px; grid-column: 1; grid-row: 1 / 3; }
  #route-atlas .atlas-list-copy > strong { grid-column: 2; grid-row: 1; font-size: 15px; }
  #route-atlas .atlas-list-copy > .atlas-row-status { grid-column: 2; grid-row: 2; }
  #route-atlas .atlas-list-copy > .atlas-progress-compact { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
}
.atlas-status-pill { min-width: 0; max-width: 190px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; color: var(--muted); background: #091216; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; font-weight: 800; text-align: center; }
.atlas-status-pill.status-published, .atlas-status-pill.status-approved, .atlas-status-pill.status-community_recommended_accept { color: var(--green); border-color: color-mix(in srgb, var(--green) 48%, transparent); }
.atlas-status-pill.status-rejected, .atlas-status-pill.status-publication_failed { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 48%, transparent); }
.atlas-status-pill.status-gm_needs_info, .atlas-status-pill.status-needs_correction { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
.atlas-more { margin: 0 20px 16px; max-width: calc(100% - 40px); }
.atlas-more-status { margin: 8px 20px; }
.atlas-more-status:empty { display: none; }
.atlas-progress { min-width: 0; display: grid; gap: 10px; }
.atlas-progress h3 { margin: 0; font-size: 14px; }
.atlas-progress-stages { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.atlas-progress-stages li { min-width: 0; flex: 1 1 100px; padding: 8px 0; display: flex; align-items: flex-start; gap: 6px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; }
.atlas-progress-stages li[aria-current="step"] { color: var(--accent-strong); border-color: var(--accent); }
.atlas-progress-stages svg { width: 17px; height: 17px; flex: 0 0 auto; }
.atlas-progress-stages span { min-width: 0; overflow-wrap: anywhere; }
.atlas-detail { min-height: 360px; }
.atlas-detail-content { min-width: 0; display: grid; gap: 20px; }
.atlas-detail-content > .atlas-state { min-height: 310px; }
.atlas-detail-header, .review-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.atlas-detail-header > div, .review-header > div { min-width: 0; }
.atlas-detail-header h2, .review-header h2 { margin: 4px 0; font-size: 22px; overflow-wrap: anywhere; }
.atlas-detail-header p, .review-header p { margin: 0; color: var(--muted); font-size: 12px; }
.atlas-photo-grid { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.atlas-photo-grid figure { min-width: 0; margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #05090c; border: 1px solid var(--line); border-radius: 5px; }
.atlas-photo-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }
.atlas-photo-grid figcaption { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; color: #fff; background: rgba(0, 0, 0, 0.78); border-radius: 3px; font-size: 10px; }
.atlas-facts { margin: 0; display: grid; grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.atlas-facts dt, .atlas-facts dd { min-width: 0; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.atlas-facts dt { color: var(--muted); font-size: 11px; }.atlas-facts dd { color: var(--text); font-size: 13px; }
.atlas-copy-block, .atlas-checks, .atlas-timeline, .atlas-actions { min-width: 0; display: grid; gap: 10px; }
.atlas-copy-block h3, .atlas-checks h3, .atlas-timeline h3, .atlas-actions h3 { margin: 0; font-size: 14px; }
.atlas-copy-block p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.atlas-checks ul, .atlas-timeline ol { margin: 0; padding: 0; display: grid; list-style: none; }
.atlas-checks li { min-width: 0; padding: 8px 0; display: flex; align-items: center; gap: 8px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.atlas-checks li svg { width: 17px; height: 17px; color: var(--accent-strong); flex: 0 0 auto; }
.atlas-timeline li { min-width: 0; padding: 9px 0 9px 16px; position: relative; border-left: 1px solid var(--line-strong); }
.atlas-timeline li::before { content: ""; width: 7px; height: 7px; position: absolute; left: -4px; top: 15px; background: var(--accent); border-radius: 50%; }
.atlas-timeline li > div { display: flex; justify-content: space-between; gap: 12px; }
.atlas-timeline strong { font-size: 12px; }.atlas-timeline time { color: var(--muted); font-size: 10px; }
.atlas-timeline p { margin: 6px 0 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.atlas-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-danger-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, transparent); }
.atlas-action-form { padding-top: 16px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.atlas-action-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.atlas-action-form textarea, .review-form textarea, .review-form select, .quiet-hours input { width: 100%; min-width: 0; color: var(--text); background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; }
.atlas-action-form textarea, .review-form textarea { min-height: 94px; padding: 10px; resize: vertical; }
.atlas-confirm-check { min-height: 42px; grid-template-columns: auto minmax(0, 1fr) !important; align-items: center; }
.atlas-confirm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.review-card { max-width: 980px; margin-inline: auto; }
.review-card-content { min-width: 0; }.review-description { margin: 18px 0; display: grid; gap: 8px; }
.review-description p { margin: 0; color: var(--muted); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-form { display: grid; gap: 18px; }
.review-questions, .review-reasons { min-width: 0; margin: 0; padding: 0; display: grid; gap: 8px; border: 0; }
.review-questions > legend, .review-reasons > legend { margin-bottom: 4px; font-size: 16px; font-weight: 800; }
.review-question { min-width: 0; margin: 0; padding: 12px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; border: 0; border-top: 1px solid var(--line); }
.review-question legend { grid-column: 1 / -1; padding-bottom: 7px; font-size: 13px; font-weight: 700; }
.review-question label, .review-reasons label { min-width: 0; min-height: 42px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #081115; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.review-question label:has(input:checked), .review-reasons label:has(input:checked) { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.review-question input, .review-reasons input { width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.review-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-reasons > legend, .review-reasons > p { grid-column: 1 / -1; }
.review-outcome, .review-form > label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.review-form select { min-height: 44px; padding: 8px 10px; }
.notifications-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); align-items: start; gap: 14px; }
.notifications-list { margin: 14px 0 0; padding: 0; display: grid; list-style: none; }
.notification-row { min-width: 0; border-top: 1px solid var(--line); }
.notification-row[data-unread="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.notification-content { min-width: 0; width: 100%; padding: 13px 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; color: var(--text); text-align: left; background: transparent; border: 0; }
.notification-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent-strong); background: #071015; border: 1px solid var(--line); border-radius: 5px; }
.notification-icon svg { width: 18px; height: 18px; }
.notification-copy { min-width: 0; display: grid; gap: 4px; }
.notification-copy strong { font-size: 13px; overflow-wrap: anywhere; }.notification-copy span { color: var(--muted); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }.notification-copy time { color: var(--faint); font-size: 10px; }
.notifications-more { width: 100%; margin-top: 10px; }
.notification-preferences { position: sticky; top: 0; }
.preference-list { display: grid; }
.preference-row { min-height: 44px; padding: 8px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.preference-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.quiet-hours { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiet-hours label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.quiet-hours input { min-height: 42px; padding: 7px 8px; }
.notification-preferences .primary-button { width: 100%; margin-top: 12px; }

/* Dialogs */
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(0, 0, 0, 0.72); }
.confirm-dialog { width: min(100%, 420px); padding: 24px; position: relative; background: var(--surface-strong); border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58); }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); background: rgba(242, 193, 78, 0.12); border: 1px solid rgba(242, 193, 78, 0.3); border-radius: 6px; }
.dialog-icon svg { width: 24px; height: 24px; }
.confirm-dialog h2 { margin: 18px 48px 8px 0; font-size: 21px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.atlas-draft-delete-dialog { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; }
.atlas-draft-delete-dialog h2, .atlas-draft-delete-dialog .panel-note, .atlas-draft-delete-dialog .form-message { overflow-wrap: anywhere; }
.atlas-draft-delete-dialog .dialog-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atlas-draft-delete-dialog .dialog-actions button { min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.atlas-draft-delete-dialog .form-message { margin-top: 12px; }
@media (max-width: 400px) {
  .atlas-draft-delete-dialog .dialog-actions { grid-template-columns: minmax(0, 1fr); }
}
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 110; max-width: min(92vw, 480px); padding: 12px 16px; color: var(--text); background: #0b151a; border: 1px solid var(--accent); border-radius: 5px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 14px; }
.toast[data-kind="error"] { border-color: var(--danger); }
.mobile-nav,
.mobile-only { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 190px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .orders-panel { position: static; }
  .missions-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --topbar-height: 66px; }
  .platform { grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr) calc(70px + env(safe-area-inset-bottom)); }
  .platform-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .route-heading { display: none; }
  .topbar-brand .brand-mark { width: 32px; height: 36px; }
  .operator-copy span { display: none; }
  .operator-copy strong { max-width: 110px; }
  .platform-body { grid-template-columns: minmax(0, 1fr); }
  .platform-sidebar { display: none; }
  .mobile-nav { min-width: 0; padding: 4px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(8, minmax(74px, 1fr)); align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: #060b0e; border-top: 1px solid var(--line); z-index: 45; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav button { min-width: 0; min-height: 62px; padding: 5px 2px; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; border: 0; border-top: 2px solid transparent; font-size: 14px; }
  .mobile-nav button[aria-current="page"] { color: var(--accent-strong); border-top-color: var(--accent); }
  .mobile-nav svg { width: 22px; height: 22px; }
  .scroll-view,
  .overview-view { padding: 22px max(16px, env(safe-area-inset-right)) 34px max(16px, env(safe-area-inset-left)); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .zbt-account-summary { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .zbt-account-summary .secondary-button { grid-column: 2 / 4; justify-self: start; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas-workspace, .notifications-layout { grid-template-columns: minmax(0, 1fr); }
  .atlas-list-panel { max-height: 360px; overflow-y: auto; }
  .notification-preferences { position: static; }
  .profile-skills-panel { grid-column: auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .mobile-only { display: inline-flex; }
  .portal-list-panel { position: absolute; inset: 0 auto 0 0; width: min(90vw, 360px); z-index: 25; transform: translateX(-102%); transition: transform 180ms ease; box-shadow: 18px 0 50px rgba(0, 0, 0, 0.45); }
  .portal-list-panel.open { transform: translateX(0); }
  .portal-detail { top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: min(68%, 590px); }
  .map-actions { top: 10px; right: 10px; }
  .map-action { width: 44px; padding: 0; justify-content: center; }
  .map-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .map-canvas .ol-zoom { top: 10px; left: 10px; }
  .map-loading,
  .map-error { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .zbt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zbt-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature-row { grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr); gap: 36px; }
}

@media (max-width: 720px) {
  .auth-main.public-site { padding: 0; }
  .auth-brand { min-height: 68px; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; gap: 10px; }
  .public-brand-mark { width: 42px; height: 42px; }
  .auth-brand-home small,
  .public-nav > a { display: none; }
  .public-nav { margin-left: auto; gap: 8px; }
  .public-login-button { min-width: 46px; padding-inline: 12px; }
  .public-hero { min-height: max(540px, calc(100dvh - 210px)); background-position: 58% center; }
  .public-hero::before { background: rgba(1, 5, 7, 0.7); }
  .public-hero::after { inset: 0; background: rgba(1, 6, 9, 0.24); }
  .public-hero-copy { padding: 48px max(18px, env(safe-area-inset-right)) 54px max(18px, env(safe-area-inset-left)); }
  .public-status { font-size: 11px; line-height: 1.4; }
  .public-hero h1 { font-size: 48px; line-height: 1.02; }
  .public-lead { max-width: 520px; margin-top: 19px; font-size: 18px; line-height: 1.5; }
  .public-hero-actions { margin-top: 27px; display: grid; grid-template-columns: minmax(0, 1fr); }
  .public-hero-actions .primary-button,
  .public-hero-actions .secondary-button { width: 100%; }
  .zbt-band,
  .public-gameplay,
  .public-news,
  .auth-access,
  .public-footer { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .zbt-band { padding-block: 50px; }
  .public-section-heading h2,
  .auth-access-copy h2 { font-size: 30px; }
  .public-section-heading > p:not(.kicker),
  .auth-access-copy > p:not(.kicker) { font-size: 16px; }
  .zbt-steps { grid-template-columns: minmax(0, 1fr); margin-top: 30px; border-top: 0; }
  .zbt-steps li,
  .zbt-steps li + li,
  .zbt-steps li:nth-child(3) { padding: 16px 0 18px 18px; border-top: 0; border-left: 3px solid var(--line-strong); }
  .zbt-steps li:first-child { border-left-color: var(--accent); }
  .zbt-steps li:nth-child(2) { border-left-color: var(--green); }
  .zbt-steps li:nth-child(3) { border-left-color: var(--red); }
  .zbt-steps li:nth-child(4) { border-left-color: var(--gold); }
  .public-gameplay { padding-block: 62px; }
  .feature-row,
  .feature-row + .feature-row { margin-top: 38px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-row + .feature-row { margin-top: 68px; }
  .feature-row img,
  .feature-row-skills img { grid-column: 1; grid-row: 1; width: 100%; height: min(650px, 74dvh); }
  .feature-row > div,
  .feature-row-skills > div { grid-column: 1; grid-row: 2; }
  .feature-row h3 { font-size: 27px; }
  .feature-row p { font-size: 16px; }
  .public-news { padding-block: 58px; }
  .news-feed { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .news-feed article { min-height: 230px; }
  .auth-access { padding-block: 58px calc(58px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 430px); gap: 30px; }
  .auth-access-copy { padding-top: 0; }
  .auth-form-stack { margin-inline: auto; }
  .auth-view[data-auth-mode="register"] .auth-access-copy { display: none; }
  .auth-view[data-auth-mode="register"] .auth-access { min-height: calc(100dvh - 68px); }
  .public-footer { flex-direction: column; min-height: 86px; }
  .zbt-account-summary { grid-template-columns: 42px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .atlas-overview-strip { grid-template-columns: 42px minmax(0, 1fr); }
  .atlas-overview-strip .secondary-button { grid-column: 1 / -1; width: 100%; }
  .atlas-toolbar { align-items: stretch; flex-direction: column; }
  .atlas-toolbar .secondary-button { width: 100%; }
  .atlas-detail-header, .review-header { align-items: flex-start; flex-direction: column; }
  .review-question, .review-reasons { grid-template-columns: minmax(0, 1fr); }
  .zbt-summary-icon { width: 42px; height: 42px; }
  .zbt-account-summary .zbt-status { grid-column: 2; justify-self: start; }
  .zbt-account-summary .secondary-button { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .zbt-form-grid { grid-template-columns: minmax(0, 1fr); }
  .zbt-form .primary-button { width: 100%; }
  .zbt-download { align-items: stretch; flex-direction: column; }
  .zbt-download .primary-button { width: 100%; }
  .zbt-correspondence-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .zbt-correspondence-heading > span { text-align: left; }
  .zbt-message { max-width: 92%; }
  .zbt-message-form { grid-template-columns: minmax(0, 1fr); }
  .zbt-message-form .secondary-button { width: 100%; }
  .auth-panel { padding: 22px 18px; }
  .auth-panel h2 { font-size: 23px; }
  .auth-panel label,
  .auth-note,
  .form-message { font-size: 14px; }
  .yandex-registration-panel,
  .email-registration-panel,
  .email-verification-panel { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .field-hint,
  .legal-document-link { font-size: 13px; }
  .section-heading { align-items: flex-start; }
  .section-heading h1,
  .profile-identity h1 { font-size: 29px; }
  .section-heading p:not(.kicker),
  .profile-identity p:not(.kicker),
  .panel-note,
  .item-card-copy span,
  .product-card-copy span,
  .mission-copy > span,
  .event-card span,
  .event-preview span,
  .route-empty span { font-size: 14px; }
  .kicker,
  .section-label,
  .stat-strip span,
  .stat-strip small,
  .map-world-count,
  .panel-heading span,
  .filter-chip,
  .level-filter,
  .portal-row-copy span,
  .empty-state,
  .map-action,
  .map-loading,
  .map-error,
  .detail-faction,
  .detail-stats span,
  .detail-section h3,
  .coordinates,
  .item-meta,
  .product-meta,
  .order-row span,
  .streak-block span,
  .subsection-heading span,
  .mission-progress small,
  .event-card time,
  .profile-stat span,
  .medal-card span,
  .skill-row small { font-size: 14px; }
  .text-button,
  .compact-task small,
  .compact-task > strong,
  .item-card-copy strong,
  .product-card-copy strong,
  .order-row strong,
  .mission-copy strong,
  .event-card strong,
  .medal-card strong,
  .skill-row strong { font-size: 14px; }
  .map-toolbar { grid-template-columns: 44px minmax(0, 1fr); }
  .map-world-count { display: none; }
  .content-toolbar { align-items: stretch; flex-direction: column; }
  .compact-search { width: 100%; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1 0 auto; font-size: 14px; }
  .item-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-card,
  .product-card { min-height: 190px; }
  .mission-card { grid-template-columns: 48px minmax(0, 1fr); }
  .claim-button { grid-column: 1 / -1; width: 100%; }
  .detail-content { padding: 16px; }
  .detail-stats span { overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
  .auth-view { min-height: 100dvh; }
  .auth-brand-home strong { font-size: 12px; }
  .public-login-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .public-hero h1 { font-size: 42px; }
  .public-lead { font-size: 17px; }
  .legal-documents { min-width: 0; max-width: 100%; }
  .legal-document { min-width: 0; }
  .legal-consent { min-height: 48px; }
  .topbar-brand .brand-mark { display: none; }
  .topbar-brand strong { font-size: 14px; }
  .topbar-brand span:not(.brand-mark) { font-size: 14px; }
  .operator-copy strong { max-width: 90px; font-size: 14px; }
  .operator-button { padding-inline: 3px; }
  .section-heading { margin-bottom: 18px; }
  .overview-heading .secondary-button { width: 46px; padding: 0; }
  .overview-heading .secondary-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stat-strip > div { min-height: 104px; padding: 15px; }
  .stat-strip strong { font-size: 24px; }
  .stat-strip strong.metric-compact { font-size: 17px; }
  .tool-panel { padding: 16px; }
  .panel-title-row h2 { font-size: 17px; }
  .panel-title-row { align-items: flex-start; }
  .inventory-summary > div { min-height: 96px; padding: 10px 5px; }
  .item-grid,
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .item-card,
  .product-card { min-height: 178px; }
  .shop-heading,
  .missions-heading { align-items: stretch; flex-direction: column; }
  .balance-block { width: 100%; text-align: left; }
  .streak-block { justify-content: flex-start; }
  .profile-identity { align-items: flex-start; }
  .profile-emblem { width: 62px; height: 70px; }
  .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .profile-stat { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-stat:last-child { border-bottom: 0; }
  .medal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) and (max-height: 620px) {
  .auth-brand {
    min-height: 56px;
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: 7px;
  }
  .auth-brand .brand-mark { width: 34px; height: 38px; }
  .auth-main.public-site { padding: 0; }
  .public-hero { min-height: 520px; }
  .auth-panel { padding: 16px; gap: 8px; }
  .auth-panel h2 { margin: 1px 0 4px; font-size: 22px; }
  .auth-panel label { margin-top: 1px; }
  .auth-note { margin-top: 0; }
  .legal-documents { scroll-margin-block: 10px; }
  .legal-consent { padding-block: 4px; }
  .turnstile-slot altcha-widget { --altcha-padding: 0.65rem; }
}

@media (max-width: 380px) {
  .registration-actions { grid-template-columns: minmax(0, 1fr); }
  .legal-document { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 4px; }
  .legal-document-link { width: 100%; min-height: 48px; padding-left: 32px; }
}

@media (max-width: 360px) {
  .faction-options { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --topbar-height: 58px; }
  .platform { grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr); }
  .mobile-nav { display: none; }
  .platform-sidebar { display: grid; }
  .platform-body { grid-template-columns: 74px minmax(0, 1fr); }
  .primary-nav { padding: 5px; }
  .primary-nav button { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .primary-nav button span:not(.nav-badge),
  .sidebar-footer { display: none; }
  .portal-detail { top: 8px; bottom: 8px; left: auto; right: 8px; width: min(370px, 46vw); max-height: none; }
  .detail-image-wrap { aspect-ratio: 16 / 6; }
  .auth-main.public-site { padding: 0; }
  .public-hero { min-height: 480px; }
  .auth-panel { padding: 17px; gap: 7px; }
  .auth-panel h2 { margin-bottom: 5px; }
  .auth-view[data-auth-mode="register"] .auth-main { align-items: start; }
  .yandex-registration-panel,
  .email-registration-panel,
  .email-verification-panel { padding-bottom: max(17px, env(safe-area-inset-bottom)); }
}

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

.account-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.account-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }

.zbt-guide { margin-block: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.zbt-guide > summary { min-height: 44px; padding-block: 10px; color: var(--text); font-weight: 600; cursor: pointer; }
.zbt-guide > p { margin: 10px 0; }
.zbt-guide ol { margin: 12px 0; padding-inline-start: 24px; }
.zbt-guide li { padding-inline-start: 4px; margin-block: 10px; }
.zbt-guide li strong { color: var(--text); }
.zbt-guide li p { margin: 3px 0 0; }
.zbt-guide a:not([class]) { color: var(--accent); }
.zbt-client > .zbt-guide { padding-top: 8px; border-top: 1px solid var(--line); }
.public-footer { flex-wrap: wrap; }

/* Compact Atlas reviewer header on phones. */
@media (max-width: 600px) {
  .platform-topbar .topbar-brand span:not(.brand-mark) { display: none; }
  .platform-topbar .topbar-brand strong { font-size: 12px; line-height: 16px; }
  .platform-topbar .topbar-brand .brand-mark { display: none; }
}
@media (max-width: 360px) {
  .platform-topbar .operator-rank-badge { display: none; }
  .platform-topbar .operator { gap: 6px; }
  .platform-topbar .operator-copy strong { max-width: 70px; }
}

.atlas-location { min-width: 0; margin: 18px 0; }
/* Atlas review workspace, shared by desktop and narrow screens. */
#route-reviews > .section-heading { margin-bottom: 16px; align-items: center; }
#route-reviews > .section-heading h1 { font-size: 24px; line-height: 1.2; }
#route-reviews > .section-heading .kicker,
#route-reviews > .section-heading p:not(.kicker) { display: none; }
#review-card { max-width: none; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#review-card-content .review-header { align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
#review-card-content .review-header > div { flex: 1 1 240px; }
#review-card-content .review-header h2 { font-size: 24px; }
.review-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.review-evidence, .review-assessment { min-width: 0; }
.review-assessment { border-left: 1px solid var(--line); padding-left: 24px; }
.review-assessment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-assessment-heading h3 { font-size: 18px; margin: 0; }
.review-progress { display: block; width: 100%; height: 5px; border: 0; margin: 16px 0 20px; accent-color: var(--accent); }
.review-progress::-webkit-progress-bar { background: #3a4145; }
.review-progress::-webkit-progress-value { background: var(--accent); }
.review-photo-tabs { display: flex; gap: 12px; min-height: 44px; overflow-x: auto; }
.review-photo-tabs button { white-space: nowrap; border-radius: 0; border-bottom: 2px solid transparent; }
.review-photo-tabs [aria-selected="true"] { color: var(--accent-strong); border-bottom-color: var(--accent); }
.review-evidence .atlas-photo-grid { display: block; margin: 0; }
.review-evidence .atlas-photo-grid figure { margin: 0; aspect-ratio: auto; border-radius: 4px; background: #0b0d0f; }
.review-evidence .atlas-photo-grid figure[hidden] { display: none; }
.review-evidence .atlas-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.review-evidence .atlas-photo-grid a { display: block; }
.review-evidence .atlas-photo-grid figcaption { padding: 6px 10px; font-size: 12px; }
.review-photo-thumbnails { display: flex; gap: 10px; margin: 12px 0 18px; overflow-x: auto; }
.review-photo-thumbnail { flex: 0 0 106px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.review-photo-thumbnail img { display: block; width: 96px; height: 60px; object-fit: cover; margin-bottom: 6px; }
.review-photo-thumbnail[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.review-description { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.review-evidence > .review-coordinates { margin: 12px 0 4px; }
#route-reviews .review-questions { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }
#route-reviews .review-questions > legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
#route-reviews .review-question { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 38px); align-items: center; gap: 4px; min-height: 54px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.review-question-title { font-size: 13px; line-height: 1.4; }
#route-reviews .review-question label { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; margin: 0; padding: 3px 0; min-height: 44px; font-size: 11px; color: var(--muted); border: 0; border-radius: 0; background: transparent; }
#route-reviews input[type="radio"], #route-reviews input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
#route-reviews .review-outcome { display: grid; gap: 6px; padding: 0; margin: 0; border: 0; }
#route-reviews .review-outcome legend { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
#route-reviews .review-outcome label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; }
#route-reviews .review-form { gap: 18px; }
#route-reviews .review-form textarea { background: #111619; border-radius: 4px; }
#route-reviews .review-reasons { border: 0; padding: 0; margin: 0; }
#route-reviews .review-reasons[hidden] { display: none; }
.atlas-2gis { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent-strong); text-decoration: none; }
.atlas-2gis svg { width: 16px; height: 16px; }
.atlas-review-basemap { filter: grayscale(1) invert(1) brightness(.8); }
@media (max-width: 1120px) {
  .review-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .review-assessment { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
@media (max-width: 600px) {
  #review-card-content .review-header { align-items: flex-start; }
  #review-card-content .review-header > div { flex-basis: 100%; }
  #review-card-content .review-header h2 { font-size: 21px; }
  #route-reviews > .section-heading h1 { font-size: 20px; }
  #route-reviews .review-question { grid-template-columns: minmax(0, 1fr) repeat(3, 36px); }
}
.atlas-review-map { width: 100%; height: 320px; border: 1px solid #505a60; border-radius: 6px; overflow: hidden; background: #14181b; }
.atlas-nearby-list { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; overscroll-behavior: contain; }
.atlas-nearby-item { text-align: left; min-height: 44px; padding: 10px; border: 1px solid #505a60; border-radius: 6px; background: #14181b; color: #edf2f4; overflow-wrap: anywhere; }
.atlas-review-map .ol-attribution { max-width: calc(100% - 45px); font-size: 11px; }
@media (max-width: 600px) { .atlas-review-map { height: 270px; } }

/* Atlas guided review */
#route-reviews .review-question { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0; }
.review-question-copy { grid-column: 1 / -1; min-width: 0; }
.review-question-title { font-size: 14px; font-weight: 600; }
.review-question-hint { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
#route-reviews .review-question label { flex-direction: row; min-height: 44px; font-size: 13px; gap: 7px; cursor: pointer; }
#route-reviews .review-question label:has(input:checked) { color: var(--accent-strong); background: var(--panel); }
.review-summary { padding: 12px 0 12px 12px; border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.5; }
.review-expiry { font-size: 13px; }
.review-location-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; }
/* End Atlas guided review */

/* Explicit answers must remain readable in the narrow review column. */
#route-reviews .review-question label { padding: 9px 8px; justify-content: flex-start; align-items: flex-start; line-height: 1.4; }
#route-reviews .review-question label span { min-width: 0; overflow-wrap: anywhere; }
#route-reviews .review-question input { margin-top: 2px; }
@media (max-width: 600px) { #route-reviews .review-question { grid-template-columns: minmax(0, 1fr); } }

.atlas-map-links { min-width: 0; margin: 10px 0; font-size: 13px; }
.atlas-map-links-title { display: block; color: var(--muted); margin-bottom: 4px; }
.atlas-map-links ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0; }
.atlas-map-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.atlas-map-links svg { width: 14px; height: 14px; flex-shrink: 0; }

.review-current-photo {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin-top: 12px;
}
.resource-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.resource-state[hidden] { display: none; }
.resource-state-copy { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.resource-state[data-state="error"] { color: var(--text); border-bottom-color: #ff465c; }
.resource-state-retry { flex: 0 0 44px; width: 44px; min-height: 44px; }

/* Deferred gift delivery. */
.gift-code-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: auto; color: var(--text); border: 1px solid var(--line-strong); }
.gift-code-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.gift-code-form { display: grid; gap: 14px; text-align: left; }
.gift-code-form label { display: grid; gap: 6px; font-size: 13px; }
.gift-code-form input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: #080d11; font: inherit; }
.gift-code-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.gift-code-loot { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.pending-gifts { margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pending-gifts-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; }
.pending-gifts-heading h2 { margin: 0; font-size: 18px; }
.pending-gifts-list { display: grid; }
.pending-gift-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.pending-gift-row > svg { width: 21px; height: 21px; color: var(--accent-strong); }
.pending-gift-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pending-gift-copy small { color: var(--muted); }
.gift-claim-dialog { width: min(520px, calc(100vw - 32px)); text-align: left; }
.gift-claim-form { display: grid; gap: 16px; margin-top: 16px; }
.gift-claim-row { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.gift-claim-row > span { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.gift-claim-row small { color: var(--muted); font-size: 12px; }
.gift-claim-row input { width: 82px; min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: #080d11; font: inherit; }
.gift-claim-dialog h2 { padding-right: 36px; overflow-wrap: anywhere; }
.gift-claim-dialog .panel-note { overflow-wrap: anywhere; }
