:root {
  --bg: #f4faf6;
  --bg-soft: #ecf6ef;
  --surface: #ffffff;
  --surface-soft: #f8fbf8;
  --text: #1f2d26;
  --muted: #66766d;
  --muted-strong: #3f5148;
  --border: #d9e8df;
  --border-strong: #bed6c7;
  --primary: #2f7d61;
  --primary-strong: #216449;
  --primary-soft: #e6f3eb;
  --warning: #9a6630;
  --danger: #b44355;
  --danger-soft: #fff0f2;
  --success: #2f7d61;
  --success-soft: #e8f7ee;
  --shadow: 0 20px 50px rgba(47, 92, 68, 0.12);
  --shadow-soft: 0 12px 30px rgba(47, 92, 68, 0.08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --panel-width: 760px;
  --form-width: 560px;
  --mobile-safe-bottom: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

html {
  scroll-padding-top: 132px;
}

body.theme-cyber {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font: 16px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(117, 174, 124, 0.2), transparent 30%),
    linear-gradient(180deg, #f8fcf9 0%, var(--bg) 46%, #eef7f1 100%);
}

body.theme-cyber.is-front-field-active {
  --mobile-safe-bottom: 14px;
}

img {
  display: block;
  max-width: 100%;
}

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

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(47, 125, 97, 0.28);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(190, 214, 199, 0.72);
  background: rgba(248, 252, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 12px;
}

.brand-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.header-download {
  display: inline-flex;
  align-items: center;
}

.site-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.site-status-pill-success {
  color: var(--success);
  border-color: rgba(47, 125, 97, 0.24);
  background: var(--success-soft);
}

.site-status-pill-warning {
  color: var(--warning);
  border-color: rgba(154, 102, 48, 0.24);
  background: #fff7eb;
}

.site-status-pill-danger {
  color: var(--danger);
  border-color: rgba(180, 67, 85, 0.22);
  background: var(--danger-soft);
}

.site-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.header-dropdown {
  position: relative;
}

.header-dropdown > summary {
  list-style: none;
}

.header-dropdown > summary::-webkit-details-marker {
  display: none;
}

.btn-header__caret {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.header-dropdown[open] .btn-header__caret {
  transform: translateY(2px) rotate(225deg);
}

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 208px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.header-dropdown__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.header-dropdown__item:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--primary-soft);
}

.header-dropdown__item--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.tabs,
.subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
}

.tab-link,
.subtab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tab-link__icon {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
}

.tab-link:hover,
.subtab-link:hover {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.tab-link.is-active,
.subtab-link.is-active {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
  transform: translateY(-1px);
}

.tab-link.is-active .tab-link__icon {
  opacity: 1;
  background: #ffffff;
}

.site-main {
  padding: 28px 0 calc(48px + var(--mobile-safe-bottom));
}

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(190, 214, 199, 0.78);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 241, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.welcome-kicker {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 900;
}

.welcome-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome-copy h2 span {
  display: block;
}

.welcome-copy p:not(.welcome-kicker) {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.welcome-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.welcome-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 900;
}

.welcome-steps strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.welcome-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.panel-stack {
  display: block;
}

.panel {
  margin-top: 0;
}

.card,
.disclaimer,
.maintenance-card {
  border-radius: var(--radius-xl);
}

.card {
  width: min(var(--panel-width), 100%);
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.card-head {
  max-width: var(--form-width);
  margin: 0 auto 22px;
  text-align: left;
}

.card-head p {
  margin: 0 0 6px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 900;
}

.card-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.card-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.server-message-stack {
  display: grid;
  gap: 10px;
  max-width: var(--form-width);
  margin: 0 auto 16px;
}

.server-message-stack.is-inline {
  margin-top: 0;
}

.server-message-stack:empty {
  display: none;
}

.form {
  display: grid;
  gap: 14px;
  max-width: var(--form-width);
  margin: 0 auto;
  text-align: left;
}

.form-fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset:disabled {
  opacity: 0.58;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(47, 125, 97, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  scroll-margin-top: 128px;
}

.field input::placeholder {
  color: #8a9a91;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 125, 97, 0.12);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-busy="true"] {
  cursor: not-allowed;
  transform: none;
  opacity: 0.64;
}

.btn-primary {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(47, 125, 97, 0.2);
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-recharge,
.btn-register,
.btn-buy,
.btn-guide {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-secondary {
  color: var(--primary-strong);
  border-color: var(--border-strong);
  background: #ffffff;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-header {
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  min-height: 54px;
}

.btn-link {
  text-decoration: none;
}

.callout {
  max-width: var(--form-width);
  margin: 0 auto 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.callout-important {
  border-color: rgba(180, 67, 85, 0.24);
  background: var(--danger-soft);
  color: var(--danger);
}

.callout-success {
  border-color: rgba(47, 125, 97, 0.24);
  background: var(--success-soft);
  color: var(--success);
}

.callout-inline {
  margin-bottom: 14px;
}

.noscript-callout {
  width: min(var(--panel-width), 100%);
  margin-bottom: 20px;
}

.visually-hidden-copy-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guide-switcher,
.guide-pages,
.subtabs {
  max-width: var(--form-width);
  margin-left: auto;
  margin-right: auto;
}

.guide-switcher {
  display: flex;
  width: fit-content;
  margin-top: 0;
}

.guide-pages {
  margin-top: 16px;
}

.guide-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  text-align: left;
}

.guide-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.guide-page[hidden] {
  display: none !important;
}

.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted-strong);
}

.steps li + li {
  margin-top: 8px;
}

.steps li::marker {
  color: var(--primary);
  font-weight: 900;
}

.faq details {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.faq details + details {
  margin-top: 8px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

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

.faq ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-row--form-note {
  justify-content: space-between;
  max-width: var(--form-width);
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cta-row--buy {
  justify-content: space-between;
  max-width: var(--form-width);
  margin-left: auto;
  margin-right: auto;
}

.cta-row--buy-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.purchase-methods {
  display: grid;
  gap: 0;
  width: min(var(--form-width), 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.purchase-method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.purchase-method-row:first-child {
  padding-top: 0;
}

.purchase-method-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.purchase-method-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.purchase-method-row__body h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.purchase-method-row__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.purchase-method-link {
  min-width: 120px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.note-strong {
  color: var(--muted-strong);
  font-weight: 800;
}

.warning {
  color: var(--muted-strong);
  font-weight: 800;
}

.site-footer {
  padding: 0 0 44px;
}

.disclaimer {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 24px 26px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.disclaimer h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.disclaimer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.disclaimer-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.disclaimer-list li {
  line-height: 1.7;
}

.maintenance-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 56px;
}

.maintenance-panel {
  width: 100%;
}

.maintenance-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 42px 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(154, 102, 48, 0.24);
  border-radius: 999px;
  background: #fff7eb;
  color: var(--warning);
  font-size: 13px;
  font-weight: 900;
}

.maintenance-card h1 {
  margin: 16px 0 14px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.16;
}

.maintenance-copy {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.maintenance-copy p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 35, 28, 0.48);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 11vh auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-dialog--warn {
  border-color: rgba(154, 102, 48, 0.24);
}

.modal-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.modal-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.kv {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.kv-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kv-row + .kv-row {
  margin-top: 10px;
}

.kv-row span {
  min-width: 72px;
  color: var(--muted);
  font-weight: 800;
}

.kv-row code {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  user-select: all;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.modal-actions--split {
  justify-content: space-between;
}

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-color: rgba(47, 125, 97, 0.28);
}

.toast-error {
  border-color: rgba(180, 67, 85, 0.28);
}

.toast-info {
  border-color: rgba(154, 102, 48, 0.28);
}

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

@media (max-width: 960px) {
  .welcome-panel {
    grid-template-columns: 1fr;
  }

  .header-topline {
    align-items: flex-start;
  }

  .brand-row {
    flex-direction: column;
    gap: 4px;
  }

  .tabs {
    width: 100%;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 112px;
  }

  .shell {
    width: min(100vw - 18px, 1120px);
  }

  .site-header {
    padding: 10px 0;
  }

  .header-topline {
    gap: 8px;
    margin-bottom: 8px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .site-status-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .btn-header {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .btn-header__label-prefix {
    display: none;
  }

  .btn-header__caret {
    display: none;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
  }

  .tabs.tabs--compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .tabs .tab-link {
    min-width: 0;
    min-height: 34px;
    padding: 0 5px;
    border-radius: 9px;
    gap: 0;
    font-size: 13px;
  }

  .tabs .tab-link__icon {
    display: none;
  }

  .tab-link__label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-dropdown__menu {
    right: 0;
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 10px;
    border-radius: 14px;
  }

  .site-main {
    padding: 16px 0 calc(32px + var(--mobile-safe-bottom));
  }

  .welcome-panel {
    gap: 18px;
    margin-bottom: 14px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .welcome-copy h2 {
    font-size: 32px;
  }

  .welcome-copy p:not(.welcome-kicker) {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .welcome-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .welcome-actions .btn {
    width: 100%;
  }

  .welcome-steps {
    gap: 10px;
  }

  .welcome-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
  }

  .welcome-steps span {
    width: 34px;
    height: 34px;
  }

  .card,
  .disclaimer,
  .maintenance-card {
    border-radius: 16px;
  }

  .card {
    padding: 20px 14px 16px;
  }

  .card-head {
    margin-bottom: 16px;
  }

  .card-head h2 {
    font-size: 24px;
  }

  .card-head span {
    font-size: 14px;
  }

  .form,
  .form-fieldset {
    gap: 10px;
  }

  .field label {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .field input {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
    scroll-margin-top: 88px;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .btn-block {
    min-height: 44px;
  }

  .callout {
    padding: 11px 12px;
    font-size: 13px;
  }

  .subtabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .subtabs::-webkit-scrollbar {
    display: none;
  }

  .subtab-link,
  .header-dropdown__item {
    width: auto;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .guide-card {
    padding: 15px 13px;
  }

  .steps {
    padding-left: 18px;
    font-size: 14px;
  }

  .purchase-method-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px 0;
  }

  .purchase-method-link {
    width: 100%;
  }

  .cta-row,
  .cta-row--buy {
    align-items: stretch;
    justify-content: center;
  }

  .note,
  .note-strong {
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
  }

  .disclaimer {
    padding: 18px 14px;
  }

  .disclaimer h3,
  .modal-title {
    font-size: 19px;
  }

  .disclaimer p,
  .disclaimer-list {
    font-size: 13px;
  }

  .modal-dialog {
    width: min(520px, calc(100vw - 22px));
    margin-top: 9vh;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .modal-desc {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .kv {
    padding: 11px 12px;
  }

  .kv-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .kv-row + .kv-row {
    margin-top: 12px;
  }

  .kv-row span {
    min-width: 0;
    font-size: 12px;
  }

  .kv-row code {
    width: 100%;
    font-size: 13px;
    word-break: break-all;
  }

  .modal-actions {
    margin-top: 14px;
  }

  .modal-actions--split {
    flex-direction: column-reverse;
  }

  .site-footer {
    padding-bottom: calc(24px + var(--mobile-safe-bottom));
  }

  body.theme-cyber.is-front-field-active .site-header {
    padding: 8px 0;
  }

  body.theme-cyber.is-front-field-active .site-status-pill {
    display: none;
  }

  body.theme-cyber.is-front-field-active .brand-subtitle {
    display: none;
  }

  body.theme-cyber.is-front-field-active .tabs .tab-link {
    min-height: 30px;
    padding: 0 2px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .shell {
    width: min(100vw - 14px, 1120px);
  }

  .brand {
    font-size: 18px;
  }

  .site-status-pill {
    padding: 0 8px;
    font-size: 11px;
  }

  .tabs .tab-link {
    min-height: 30px;
    padding: 0 2px;
    font-size: 12px;
  }

  .welcome-copy h2 {
    font-size: 28px;
  }

  .card {
    padding-left: 12px;
    padding-right: 12px;
  }
}
