:root {
  --ink: #101827;
  --ink-soft: #27364a;
  --muted: #64748b;
  --line: #d9e2ee;
  --soft-line: #e8eef6;
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --brand: #147db3;
  --brand-dark: #0f5f88;
  --accent: #f45a2a;
  --teal: #12957f;
  --amber: #ad6500;
  --rose: #be123c;
  --shadow: 0 18px 42px rgba(16, 24, 39, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1680px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-main-row,
.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-main-row {
  flex: 0 0 auto;
}

.mobile-top-actions {
  display: none;
}

.nav-panel {
  flex: 1;
  justify-content: space-between;
  min-width: 0;
}

.nav-menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-weight: 850;
}

.nav-menu-button span,
.nav-menu-button span::before,
.nav-menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.nav-menu-button span {
  position: relative;
}

.nav-menu-button span::before,
.nav-menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-menu-button span::before {
  top: -6px;
}

.nav-menu-button span::after {
  top: 6px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  color: var(--ink);
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  display: block;
  width: 38px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-actions a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.nav-actions form {
  margin: 0;
}

.mobile-dashboard-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20, 125, 179, .14);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 3px;
}

.language-switcher a {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.language-switcher a.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
}

.button,
.button-secondary,
.button-quiet {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 10px 20px rgba(20, 125, 179, .18);
}

.button:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--surface-alt);
}

.button-quiet {
  background: transparent;
  color: var(--brand);
}

.button-secondary.warning-action {
  color: var(--amber);
  border-color: rgba(173, 101, 0, .28);
}

.button-secondary.danger-action {
  color: var(--rose);
  border-color: rgba(190, 18, 60, .28);
}

.button-secondary:disabled,
.button-secondary.disabled {
  opacity: .52;
  cursor: not-allowed;
  box-shadow: none;
}

.main {
  flex: 1;
}

.band {
  border-bottom: 1px solid var(--soft-line);
}

.quiet-band {
  background: #fff;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.container {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(244, 247, 251, .96)),
    url("../img/logo-cm.png") no-repeat right 8% top 44px / 360px auto;
  padding: 66px 0 58px;
}

.hero-inner {
  max-width: 920px;
}

.hero-logo {
  display: block;
  width: min(360px, 78%);
  height: auto;
  margin: 0 0 24px;
}

.hero-logo-mark {
  display: block;
  width: min(180px, 52vw);
  height: auto;
  margin: 0 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy,
.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-actions form {
  margin: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

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

.impersonation-banner {
  position: sticky;
  top: 74px;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1d39b;
  background: #fff8ea;
  color: #6b3d00;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
}

.impersonation-banner div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.45;
}

.impersonation-banner form {
  margin: 0;
}

.message-stack {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 60;
  width: min(360px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  padding: 12px;
  box-shadow: 0 16px 34px rgba(16, 24, 39, .14);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.message.dismissed {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
}

.message-close {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  line-height: 1;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
  opacity: .72;
}

.message-close:hover {
  opacity: 1;
}

.message.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: var(--rose);
}

.message.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand-dark);
}

.message.success {
  border-color: #badfd6;
  background: #effaf7;
  color: var(--teal);
}

.message.warning {
  border-color: #f1d39b;
  background: #fff8ea;
  color: var(--amber);
}

.version-chip {
  display: inline-flex;
  margin-top: 28px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 48px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading h2,
.feature-block h2,
.split-feature h2 {
  max-width: 720px;
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.feature-block p,
.split-feature p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}

.feature-block,
.card,
.step,
.workspace-head,
.sidebar,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 24, 39, .02);
}

.feature-block {
  min-height: 230px;
  padding: 26px;
}

.feature-block.strong {
  background: #0f172a;
  color: #fff;
}

.feature-block.strong p {
  color: #d4dce8;
}

.feature-block h3 {
  margin: 20px 0 8px;
  font-size: 22px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef8fb;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

.strong .feature-icon {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

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

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
  min-height: 100%;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p,
.card li,
.step p {
  color: var(--muted);
  line-height: 1.58;
}

.card p,
.step p {
  margin: 0;
}

.plan-card {
  border-top: 4px solid var(--brand);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
}

.plan-card h3 {
  margin-bottom: 0;
}

.plan-card > p {
  min-height: 78px;
}

.plan-card .price {
  margin: 0;
}

.plan-card .plan-tag {
  width: fit-content;
  margin-top: 0;
}

.plan-card .feature-list {
  margin-top: 2px;
}

.plan-card .section-actions {
  margin-top: auto;
  padding-top: 16px;
}

.plan-card .section-actions form {
  display: inline-flex;
}

.duration-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.duration-choice {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(16, 24, 39, .04);
}

.duration-choice strong {
  font-size: 14px;
  line-height: 1.2;
}

.duration-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.duration-choice.active {
  border-color: #7bb8d4;
  background: #f0f9fd;
  box-shadow: inset 0 0 0 1px #7bb8d4, 0 12px 24px rgba(17, 124, 164, .08);
}

.discount-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e8f7f3;
  color: var(--teal);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.plan-discount[hidden] {
  display: none;
}

.app-card {
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card-grid {
  align-items: stretch;
}

.app-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.app-title-row h3 {
  margin: 0;
}

.app-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.app-meta,
.app-download-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.app-note {
  border-left: 3px solid var(--amber);
  padding-left: 10px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.status-card {
  min-height: 150px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 16px 0;
}

.price strong {
  font-size: 30px;
}

.price span {
  color: var(--muted);
}

.feature-list {
  padding-left: 18px;
  margin: 16px 0 0;
}

.plan-tag {
  display: inline-flex;
  margin-top: 10px;
  color: var(--amber);
  background: #fff8ea;
  border: 1px solid #f1d39b;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #badfd6;
  color: var(--teal);
  background: #effaf7;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.muted-pill {
  color: var(--muted);
  background: #f6f8fb;
  border-color: var(--soft-line);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.service-notice-panel {
  display: grid;
  gap: 16px;
}

.service-notice-head,
.payment-method-panel,
.help-support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.service-notice-head h2,
.payment-method-panel h2,
.help-support-panel h2 {
  margin: 0;
  font-size: 24px;
}

.payment-method-panel p,
.help-support-panel p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.service-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
  gap: 12px 18px;
  align-items: start;
  border: 1px solid var(--soft-line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

.service-notice h3 {
  margin: 6px 0 0;
  font-size: 18px;
}

.service-notice p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.service-notice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.notice-severity {
  display: inline-flex;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-notice.maintenance {
  border-left-color: var(--amber);
  background: #fffaf1;
}

.service-notice.issue {
  border-left-color: #d74d43;
  background: #fff6f5;
}

.service-notice.resolved {
  border-left-color: var(--teal);
  background: #f5fbf8;
}

.payment-method-panel {
  margin-bottom: 18px;
}

.payment-guidance {
  display: grid;
  gap: 10px;
}

.payment-trust-strip,
.wechat-payment-guide {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px 16px;
}

.payment-trust-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  background: #f4faf7;
  border-color: #c9e6dc;
}

.payment-trust-strip strong,
.wechat-payment-guide strong,
.setup-recovery-strip strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.payment-trust-strip p,
.wechat-payment-guide p,
.setup-recovery-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.payment-provider-mark {
  color: #635bff;
  font-size: 15px;
  font-weight: 900;
}

.wechat-payment-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff9ed;
  border-color: #ead39f;
}

.payment-badges {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 820;
}

.payment-badge strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

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

.help-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.help-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.help-card p,
.help-card li {
  color: var(--muted);
  line-height: 1.58;
}

.help-card ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

[dir="rtl"] .help-card ol {
  padding-right: 22px;
  padding-left: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.contact-assistant,
.contact-form-panel {
  min-height: 100%;
}

.contact-assistant {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-assistant .eyebrow,
.contact-assistant p {
  color: #d4dce8;
}

.contact-assistant h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.assistant-choice-list {
  display: grid;
  gap: 8px;
}

.assistant-choice {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

[dir="rtl"] .assistant-choice {
  text-align: right;
}

.assistant-choice:hover,
.assistant-choice.active {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .16);
}

.assistant-answer {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 16px;
}

.assistant-answer h3 {
  margin: 0;
  font-size: 18px;
}

.assistant-answer p {
  margin: 0;
  line-height: 1.58;
}

.contact-form-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 36px;
  align-items: center;
}

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

.check-list div {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 12px 14px;
  color: var(--ink-soft);
  font-weight: 750;
}

.check-list span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.page-title {
  padding: 54px 0 34px;
  background: #fff;
}

.page-title h1 {
  font-size: 42px;
}

.compact-title {
  padding: 42px 0 28px;
}

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

.step {
  padding: 24px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-weight: 850;
}

.step h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.split-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0 58px;
}

.sidebar {
  align-self: start;
  padding: 12px;
}

.sidebar a {
  display: block;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink-soft);
  font-weight: 750;
}

.sidebar a:hover {
  background: var(--surface-alt);
}

.sidebar-version {
  margin: 14px 8px 4px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.workspace-head {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.workspace-head h2 {
  margin: 0;
  font-size: 24px;
}

.app-bottom-nav {
  display: none;
}

.app-home {
  display: grid;
  gap: 14px;
}

.app-hero-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 14px 32px rgba(16, 24, 39, .06);
}

.app-hero-card.ready {
  border-color: rgba(18, 149, 127, .28);
}

.app-hero-card.pending {
  border-color: rgba(20, 125, 179, .28);
}

.app-state-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-state-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(18, 149, 127, .12);
}

.app-hero-card.pending .app-state-row {
  color: var(--brand);
}

.app-hero-card.pending .app-state-dot {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(20, 125, 179, .12);
}

.app-hero-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.app-hero-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.app-primary-action {
  min-width: min(100%, 240px);
}

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

.app-metrics-row article,
.quick-action-list a {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.app-metrics-row span,
.quick-action-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.app-metrics-row strong,
.quick-action-list strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

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

.quick-action-list a {
  display: grid;
  gap: 4px;
}

.quick-action-list a:hover {
  border-color: rgba(20, 125, 179, .32);
}

.support-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.compact-actions {
  margin-top: 0;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.report-filter-grid .field {
  margin-top: 0;
}

.report-filter-grid .compact-field {
  max-width: none;
}

.user-list-filter {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .8fr) auto;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.report-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

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

.conversion-panel {
  gap: 22px;
}

.conversion-head {
  align-items: flex-start;
}

.conversion-head h2 {
  margin: 5px 0 8px;
}

.privacy-safe-badge {
  flex: 0 0 auto;
  border: 1px solid #a9d8c9;
  border-radius: 999px;
  background: #edf9f5;
  color: #087561;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 850;
}

.conversion-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.conversion-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-interest-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 24px 24px 24px 0;
}

.page-interest-panel h3,
.conversion-breakdown-grid h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.page-interest-panel p,
.conversion-breakdown-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.page-interest-list {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.page-interest-list > div,
.conversion-breakdown-grid section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft-line);
  padding: 10px 0;
}

.page-interest-list span,
.conversion-breakdown-grid section > div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.page-interest-list strong,
.conversion-breakdown-grid section > div strong {
  color: var(--ink);
  font-size: 15px;
}

.funnel-list {
  display: grid;
  min-width: 0;
  padding: 12px 0 12px 24px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--soft-line);
  padding: 12px 0;
}

.funnel-row:last-child {
  border-bottom: 0;
}

.funnel-index {
  color: #91a3b7;
  font-size: 11px;
  font-weight: 900;
}

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

.funnel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.funnel-label strong {
  min-width: 0;
  font-size: 13px;
}

.funnel-label span,
.funnel-value small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.funnel-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.funnel-track > span {
  display: block;
  width: var(--funnel-width);
  height: 100%;
  border-radius: inherit;
  background: #147db3;
}

.funnel-row:nth-child(3n + 2) .funnel-track > span {
  background: #12957f;
}

.funnel-row:nth-child(3n) .funnel-track > span {
  background: #e17b24;
}

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

.funnel-value strong {
  font-size: 20px;
}

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

.conversion-breakdown-grid section {
  min-width: 0;
  border-top: 3px solid #cbd8e6;
  padding-top: 14px;
}

.metric-tile {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 16px;
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-tile strong {
  min-width: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
}

.report-metric strong {
  font-size: clamp(22px, 2vw, 30px);
}

.server-distribution-panel {
  gap: 18px;
}

.server-distribution-totals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.server-distribution-totals span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
}

.server-distribution-totals strong {
  color: var(--ink);
  font-size: 16px;
}

.server-distribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.server-distribution-card {
  min-width: 0;
  min-height: 220px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  border: 1px solid var(--soft-line);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.server-distribution-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.server-distribution-head > div {
  min-width: 0;
}

.server-distribution-head strong,
.server-distribution-head span {
  display: block;
}

.server-distribution-head > div > strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.server-distribution-head > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.server-state {
  flex: 0 0 auto;
  border: 1px solid #b9dfd5;
  border-radius: 999px;
  background: #eefaf7;
  color: #0d765f;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.server-state-full,
.server-state-paused {
  border-color: #e9a9b2;
  background: #fff1f3;
  color: #a82034;
}

.server-state-prepare-next-server,
.server-state-draining {
  border-color: #edca83;
  background: #fff9e9;
  color: #7a5700;
}

.server-user-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.server-user-count strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.server-user-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.server-capacity-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.server-capacity-track span {
  display: block;
  width: var(--server-capacity, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.server-distribution-meta {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.server-distribution-meta span {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.chart-card {
  position: relative;
  min-width: 0;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 39, .02);
  overflow: hidden;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}

.chart-head h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.chart-head > span {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-canvas {
  min-height: 286px;
  padding: 10px 14px 16px;
}

.report-chart-svg {
  width: 100%;
  height: 286px;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e6edf6;
  stroke-width: 1;
}

.chart-area {
  fill: var(--chart-color);
  opacity: .1;
}

.chart-line {
  fill: none;
  stroke: var(--chart-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-secondary {
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

.chart-point {
  fill: #fff;
  stroke: var(--chart-color);
  stroke-width: 3;
}

.chart-bar {
  fill: var(--chart-color);
  opacity: .82;
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-axis-label.end {
  text-anchor: end;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 128px;
  transform: translateY(-8px);
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 30px rgba(16, 24, 39, .14);
  padding: 10px 11px;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span,
.chart-tooltip small {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.chart-tooltip span {
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.chart-tooltip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

.data-table th {
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.transaction-filter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.transaction-filter-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.transaction-filter-form select {
  min-width: 180px;
  min-height: 42px;
}

.transaction-table {
  min-width: 980px;
}

.transaction-table td:first-child strong,
.transaction-table td:first-child small {
  display: block;
}

.transaction-table td:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.transaction-kind {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.transaction-kind-stripe {
  border-color: rgba(18, 149, 127, .24);
  color: #08705f;
  background: rgba(18, 149, 127, .09);
}

.transaction-kind-manual {
  border-color: rgba(244, 90, 42, .24);
  color: #b33d18;
  background: rgba(244, 90, 42, .09);
}

.metric-value-nowrap {
  white-space: nowrap;
  font-size: clamp(18px, 1.6vw, 22px);
}

.support-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: end;
  gap: 18px;
}

.user-list-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.single-search {
  align-items: center;
}

.support-search,
.support-access-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-search input,
.support-access-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.support-search input:focus,
.support-access-form input:focus {
  outline: 3px solid rgba(20, 125, 179, .16);
  border-color: var(--brand);
}

.support-list,
.support-log-list,
.purchase-report-list {
  display: grid;
  gap: 10px;
}

.support-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-count-row span {
  white-space: nowrap;
}

.support-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, .95fr) minmax(380px, 1.55fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 14px;
}

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}

.user-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

[dir="rtl"] .user-table th,
[dir="rtl"] .user-table td {
  text-align: right;
}

.user-table th {
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-table tr:last-child td {
  border-bottom: 0;
}

.user-table td {
  color: var(--ink);
  font-size: 14px;
}

.user-table td strong,
.user-table td span,
.user-table td small {
  display: block;
  overflow-wrap: anywhere;
}

.user-table td span,
.user-table td small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.42;
}

.user-table .status-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 6px 6px 0;
}

.usage-state {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  border: 1px solid #cbd9e7;
  border-radius: 999px;
  background: #f5f8fc;
  color: #496078 !important;
  padding: 4px 8px;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.usage-state-watch {
  border-color: #d9c879;
  background: #fffbea;
  color: #766116 !important;
}

.usage-state-alert {
  border-color: #efbb7a;
  background: #fff6e9;
  color: #8d4e08 !important;
}

.usage-state-review {
  border-color: #efa487;
  background: #fff1ec;
  color: #a63b18 !important;
}

.usage-state-action {
  border-color: #df8f99;
  background: #fff0f2;
  color: #a82034 !important;
}

.support-user,
.support-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.support-user strong,
.support-user span,
.support-meta span {
  overflow-wrap: anywhere;
}

.support-user span,
.support-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.support-meta .status-pill {
  width: fit-content;
  color: var(--teal);
}

.support-access-form .button {
  flex: 0 0 auto;
}

.customer-actions {
  display: grid;
  gap: 10px;
}

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

.customer-action-grid form,
.customer-action-grid .button-secondary {
  min-width: 0;
  width: 100%;
}

.customer-action-grid .button-secondary {
  padding-left: 10px;
  padding-right: 10px;
}

.user-action-grid {
  min-width: 184px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.user-action-grid form {
  min-width: 0;
}

.user-action-grid .button,
.user-action-grid .button-secondary,
.user-action-grid .support-access-disabled {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  justify-content: center;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.manual-access-form {
  min-width: 92px;
}

.manual-access-toggle {
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.manual-access-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.manual-access-toggle span {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d7dee8;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .18s ease, box-shadow .18s ease;
}

.manual-access-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 32, 50, .2);
  transition: transform .18s ease;
}

.manual-access-toggle input:checked + span {
  background: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(18, 149, 127, .35);
}

.manual-access-toggle input:checked + span::after {
  transform: translateX(18px);
}

.manual-access-toggle strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.support-access-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.support-log-row,
.purchase-report-row,
.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 12px 14px;
}

.purchase-report-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.purchase-report-row .purchase-amount {
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.purchase-report-row .purchase-amount strong {
  color: var(--text);
  font-size: 14px;
}

.support-log-row div,
.purchase-report-row div,
.empty-state {
  min-width: 0;
}

.support-log-row div,
.purchase-report-row div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.support-log-row span,
.purchase-report-row span,
.empty-state span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.pagination span:not(.button-secondary) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.customer-password-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.customer-password-form {
  max-width: 560px;
}

.success-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
}

.success-panel .lead,
.success-panel .status-pill,
.success-panel .section-actions {
  grid-column: 2;
  margin-top: 0;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #effaf7;
  border: 1px solid #badfd6;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--teal);
}

.copy-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.copy-box code {
  width: 100%;
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  color: var(--ink-soft);
}

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

.event-list div {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 10px 12px;
}

.event-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.setup-guide-panel {
  display: grid;
  gap: 20px;
}

.setup-recovery-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--soft-line);
  padding-top: 16px;
}

.setup-recovery-strip form,
.setup-recovery-strip button {
  margin: 0;
}

.setup-guide-heading {
  display: grid;
  gap: 8px;
}

.setup-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.setup-picker-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.setup-choice-row.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-choice {
  min-height: 78px;
  appearance: none;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

[dir="rtl"] .setup-choice {
  text-align: right;
}

.setup-choice:hover,
.setup-choice.active {
  border-color: rgba(20, 125, 179, .55);
  box-shadow: 0 12px 28px rgba(20, 125, 179, .12);
  transform: translateY(-1px);
}

.setup-choice.active {
  background: #f0f8fc;
}

.setup-choice strong {
  font-size: 14px;
  line-height: 1.25;
}

.setup-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.recommended-import-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
  border: 1px solid rgba(20, 125, 179, .24);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff 0%, #fff 58%, #f5fbf7 100%);
  box-shadow: 0 18px 42px rgba(16, 24, 39, .08);
  padding: 20px;
}

.recommended-app-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.recommended-app-main .app-logo {
  width: 70px;
  height: 70px;
}

.recommended-app-main h3 {
  margin: 10px 0 7px;
  font-size: 28px;
  line-height: 1.1;
}

.recommended-app-main p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

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

.setup-step-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  padding: 12px;
}

.setup-step-list li > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.setup-step-list strong {
  display: block;
  margin-bottom: 3px;
}

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

.setup-step-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-app-grid {
  align-items: stretch;
}

.setup-app-card {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.setup-app-card.recommended-app-card {
  border-color: rgba(18, 149, 127, .42);
  background: linear-gradient(135deg, #f2fbf8 0%, #fff 62%);
  box-shadow: 0 16px 34px rgba(18, 149, 127, .12);
}

.setup-app-reason {
  margin-top: 8px !important;
  color: var(--ink-soft) !important;
}

.recommended-badge {
  border-color: #badfd6;
  color: var(--teal);
  background: #effaf7;
}

.recommended-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.alternate-apps summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.alternate-apps[open] summary {
  margin-bottom: 10px;
}

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

.import-tile {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 16px;
}

.import-tile-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.import-tile .app-logo {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.import-tile-main div {
  min-width: 0;
}

.import-tile-actions {
  width: 96px;
  display: grid;
  align-items: center;
  gap: 7px;
}

.import-tile-actions .button,
.import-tile-actions .button-secondary {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.import-tile h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.import-tile .app-name-row h3 {
  margin: 0;
}

.import-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: normal;
}

.form-page {
  width: min(540px, calc(100% - 32px));
  margin: 56px auto;
}

.form-panel {
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-panel h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.field label {
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(20, 125, 179, .16);
  border-color: var(--brand);
}

.password-field-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-field-wrap input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 48px;
}

[dir="rtl"] .password-field-wrap input {
  padding-right: 12px;
  padding-left: 48px;
}

.password-toggle {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

[dir="rtl"] .password-toggle {
  right: auto;
  left: 8px;
}

.password-toggle:hover,
.password-toggle.active {
  background: var(--surface-alt);
  color: var(--brand);
  border-color: var(--soft-line);
}

.password-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M2.25%2012s3.5-6.25%209.75-6.25S21.75%2012%2021.75%2012%2018.25%2018.25%2012%2018.25%202.25%2012%202.25%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'%20fill='none'%20stroke='black'%20stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M2.25%2012s3.5-6.25%209.75-6.25S21.75%2012%2021.75%2012%2018.25%2018.25%2012%2018.25%202.25%2012%202.25%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'%20fill='none'%20stroke='black'%20stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.compact-field {
  max-width: 360px;
}

.setting-toggle-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  max-width: 720px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  cursor: pointer;
}

.setting-toggle-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.setting-toggle-row span {
  display: grid;
  gap: 5px;
}

.setting-toggle-row strong {
  color: var(--ink);
}

.setting-toggle-row small {
  color: var(--muted);
  line-height: 1.55;
}

.field ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--rose);
}

.form-errors {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: var(--rose);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}

.activation-help {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.activation-help .button-quiet {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0;
}

.captcha-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 14px;
}

.captcha-panel-copy {
  display: grid;
  gap: 4px;
}

.captcha-panel-copy strong {
  font-size: 14px;
}

.captcha-panel-copy span,
.captcha-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.captcha-state {
  grid-column: 1 / -1;
}

.captcha-state.verified {
  color: var(--teal);
}

.captcha-math {
  display: grid;
  grid-template-columns: auto minmax(84px, 128px);
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.captcha-question {
  min-width: 86px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 900;
  text-align: center;
}

.captcha-math input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.captcha-math input:focus {
  outline: 3px solid rgba(20, 125, 179, .16);
  border-color: var(--brand);
}

.captcha-button {
  min-width: 108px;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 36px;
  padding: 38px 0 30px;
}

.footer-brand-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-brand-panel p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta span {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-bottom {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  padding: 18px 0;
  font-size: 13px;
}

.legal-section {
  background: var(--page);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px);
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 1px 0 rgba(16, 24, 39, .02);
}

.legal-panel h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.72;
}

.legal-updated {
  color: var(--ink) !important;
  font-weight: 800;
}

.legal-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.72;
}

[dir="rtl"] .legal-list {
  padding-left: 0;
  padding-right: 22px;
}

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

.legal-panel a {
  color: var(--brand);
  font-weight: 800;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(640px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 46px rgba(16, 24, 39, .18);
  padding: 16px;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.dismissed {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 5px;
}

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

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

.install-prompt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(520px, calc(100% - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 46px rgba(16, 24, 39, .16);
  padding: 16px;
}

.install-prompt[hidden] {
  display: none;
}

.install-prompt strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}

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

.install-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.solution-card-personal,
.solution-tone-personal {
  --solution-color: #147db3;
  --solution-soft: #eef8fd;
}

.solution-card-gaming,
.solution-tone-gaming {
  --solution-color: #c84436;
  --solution-soft: #fff2f0;
}

.solution-card-development,
.solution-tone-development {
  --solution-color: #0d876f;
  --solution-soft: #eefaf6;
}

.solution-card-dedicated,
.solution-tone-dedicated {
  --solution-color: #34465c;
  --solution-soft: #f0f4f8;
}

.solution-card-router,
.solution-tone-router {
  --solution-color: #a45f00;
  --solution-soft: #fff8e8;
}

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

.solution-card {
  position: relative;
  min-width: 0;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-top: 4px solid var(--solution-color, var(--brand));
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(16, 24, 39, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.solution-card:hover {
  border-color: color-mix(in srgb, var(--solution-color, var(--brand)) 42%, #d9e2ee);
  box-shadow: 0 20px 38px rgba(16, 24, 39, .1);
  transform: translateY(-2px);
}

.solution-card-primary {
  grid-column: 1 / -1;
  min-height: 230px;
}

.solution-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--solution-soft, #eef8fd);
  color: var(--solution-color, var(--brand));
}

.solution-icon-wrap.large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.solution-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-icon-wrap.large .solution-icon {
  width: 38px;
  height: 38px;
}

.solution-badge {
  border: 1px solid color-mix(in srgb, var(--solution-color, var(--brand)) 28%, #d9e2ee);
  border-radius: 999px;
  background: var(--solution-soft, #eef8fd);
  color: var(--solution-color, var(--brand));
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.solution-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.solution-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.solution-device-preview,
.solution-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.solution-device-preview span,
.solution-chip-list span {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 780;
}

.solution-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--solution-color, var(--brand));
  font-size: 13px;
}

.solution-card-action span {
  font-size: 20px;
}

.solution-home-band {
  background: #fff;
}

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

.solution-home-link {
  --solution-color: var(--brand);
  --solution-soft: #eef8fd;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 12px;
}

.solution-home-link .solution-icon-wrap {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.solution-home-link strong,
.solution-home-link small {
  display: block;
  min-width: 0;
}

.solution-home-link strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.solution-home-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.specialized-strip {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(320px, 1.5fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.specialized-copy strong,
.specialized-copy span {
  display: block;
}

.specialized-copy strong {
  font-size: 15px;
}

.specialized-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.specialized-links a {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: var(--surface-alt);
  padding: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
}

.specialized-links .solution-icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.personal-plan-heading {
  margin-top: 30px;
}

.compact-heading h2 {
  font-size: 30px;
}

.solution-detail-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.solution-detail-title {
  border-bottom: 1px solid color-mix(in srgb, var(--solution-color, var(--brand)) 18%, #e8eef6);
  background: var(--solution-soft, #fff);
}

.solution-switcher-wrap {
  border-bottom: 1px solid var(--soft-line);
  background: #fff;
}

.solution-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.solution-switcher a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.solution-switcher a:hover,
.solution-switcher a.active {
  background: var(--surface-alt);
  color: var(--brand);
}

.solution-switcher .solution-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.solution-facts,
.solution-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.solution-fact {
  border-left: 4px solid var(--brand);
  padding: 6px 0 6px 20px;
}

[dir="rtl"] .solution-fact {
  border-right: 4px solid var(--brand);
  border-left: 0;
  padding-right: 20px;
  padding-left: 0;
}

.solution-fact h2,
.solution-policy-grid h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.solution-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-benefit-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.solution-benefit-list li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

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

.solution-process-step {
  border-top: 3px solid var(--brand);
  background: #fff;
  padding: 20px;
}

.solution-process-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.solution-process-step h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.solution-process-step p,
.solution-policy-grid p,
.solution-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.solution-policy-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: start;
}

.solution-notice {
  border: 1px solid #efd8a9;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fffaf0;
  padding: 20px;
}

.solution-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #704000;
}

[dir="rtl"] .solution-notice {
  border-right: 4px solid var(--amber);
  border-left-width: 1px;
}

.guides-title-band,
.guide-detail-head {
  padding: 48px 0 36px;
  background: #fff;
}

.guides-title-band h1,
.guide-detail-head h1 {
  max-width: 880px;
  margin: 0;
  font-size: 42px;
}

.guides-title-band .lead,
.guide-detail-head .lead {
  max-width: 760px;
}

.guide-search-band {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: #f6f9fc;
  padding: 24px 0;
}

.guide-search {
  display: grid;
  gap: 9px;
  max-width: 920px;
}

.guide-search label,
.guide-tree-search label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.guide-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.guide-search-control input,
.guide-tree-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  font: inherit;
}

.guide-search-control input:focus,
.guide-tree-search input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(20, 125, 179, .12);
}

.guide-category-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.guide-category-filter button {
  flex: 0 0 auto;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.guide-category-filter button.active,
.guide-category-filter button:hover {
  border-color: #102033;
  background: #102033;
  color: #fff;
}

.guides-results-band {
  padding-top: 32px;
}

.guide-results {
  display: grid;
  border-top: 1px solid var(--line);
}

.guide-result-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 110px 100px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  padding: 22px 8px;
  text-decoration: none;
}

.guide-result-row:hover {
  background: #f7fafc;
}

.guide-result-index {
  color: #9aabbd;
  font-size: 13px;
  font-weight: 900;
}

.guide-result-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.guide-result-copy small {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-result-copy strong {
  font-size: 21px;
}

.guide-result-copy > span {
  color: var(--muted);
  line-height: 1.55;
}

.guide-result-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

[dir="rtl"] .guide-result-meta {
  text-align: left;
}

.guide-result-action {
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

[dir="rtl"] .guide-result-action {
  text-align: left;
}

.guide-empty {
  padding: 48px 8px;
}

.guide-empty strong {
  font-size: 22px;
}

.guide-empty p {
  max-width: 640px;
  color: var(--muted);
}

.guide-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 850;
}

.guide-back-link > span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}

.guide-head-meta {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.guide-mobile-tree {
  display: none;
}

.guide-detail-band {
  border-top: 1px solid var(--soft-line);
  background: #f8fafc;
  padding: 34px 0 72px;
}

.guide-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 900px);
  justify-content: center;
  gap: 54px;
}

.guide-tree {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 14px 8px 14px 0;
}

[dir="rtl"] .guide-tree {
  padding-right: 0;
  padding-left: 8px;
}

.guide-tree > strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 14px;
}

.guide-tree ol,
.guide-mobile-tree ol {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

[dir="rtl"] .guide-tree ol,
[dir="rtl"] .guide-mobile-tree ol {
  padding-right: 22px;
  padding-left: 0;
}

.guide-tree ol::before,
.guide-mobile-tree ol::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 1px;
  background: #cbd8e6;
  content: "";
}

[dir="rtl"] .guide-tree ol::before,
[dir="rtl"] .guide-mobile-tree ol::before {
  right: 6px;
  left: auto;
}

.guide-tree li,
.guide-mobile-tree li {
  position: relative;
}

.guide-tree li::before,
.guide-mobile-tree li::before {
  position: absolute;
  top: 17px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 2px solid #9eb1c5;
  border-radius: 999px;
  background: #f8fafc;
  content: "";
}

[dir="rtl"] .guide-tree li::before,
[dir="rtl"] .guide-mobile-tree li::before {
  right: -20px;
  left: auto;
}

.guide-tree a,
.guide-mobile-tree a {
  display: block;
  border-radius: 6px;
  color: var(--muted);
  padding: 10px 9px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.guide-tree a:hover,
.guide-tree a.active,
.guide-mobile-tree a:hover {
  background: #eaf3f8;
  color: var(--brand);
}

.guide-tree-search {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.guide-tree-search input {
  padding: 10px 11px;
  font-size: 13px;
}

.guide-article {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.guide-step {
  scroll-margin-top: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 32px;
}

.guide-step-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.guide-step-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.guide-step h2 {
  margin: 4px 0 18px;
  font-size: 26px;
}

.guide-step > p {
  margin: 12px 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.guide-figure {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 9px;
  margin: 26px 0 20px;
  overflow: hidden;
}

.guide-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #eef3f7;
  object-fit: contain;
  box-shadow: 0 16px 38px rgba(16, 32, 51, .1);
}

.guide-figure figcaption {
  color: var(--muted);
  font-size: 12px;
}

.guide-tip {
  border-left: 4px solid var(--teal);
  background: #f0faf7;
  padding: 16px 18px;
}

[dir="rtl"] .guide-tip {
  border-right: 4px solid var(--teal);
  border-left-width: 0;
}

.guide-tip strong {
  display: block;
  color: #087561;
  font-size: 13px;
}

.guide-tip p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.guide-next {
  display: grid;
  gap: 7px;
  border: 1px solid #bdd1e2;
  border-radius: 8px;
  background: #edf6fb;
  color: inherit;
  padding: 24px;
}

.guide-next small {
  color: var(--brand);
  font-weight: 850;
  text-transform: uppercase;
}

.guide-next strong {
  font-size: 22px;
}

.guide-next span {
  color: var(--muted);
  line-height: 1.55;
}

.guide-return-row {
  display: flex;
  justify-content: flex-start;
}

.guide-return-row .guide-back-link {
  margin-bottom: 0;
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 48px;
  }

  .page-title h1 {
    font-size: 38px;
  }

  .feature-grid,
  .split-layout,
  .split-feature,
  .footer-inner,
  .help-grid,
  .contact-layout,
  .report-filter-grid,
  .support-toolbar,
  .support-row,
  .chart-grid,
  .report-data-grid {
    grid-template-columns: 1fr;
  }

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

  .specialized-strip {
    grid-template-columns: 1fr;
  }

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

  .solution-switcher {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .solution-switcher a {
    flex: 0 0 180px;
  }

  .solution-policy-grid {
    grid-template-columns: 1fr;
  }

  .guide-detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .service-notice-head,
  .payment-method-panel,
  .help-support-panel,
  .server-distribution-panel .support-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-distribution-totals {
    justify-content: flex-start;
  }

  .payment-badges {
    justify-content: flex-start;
  }

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

  .conversion-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .page-interest-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .funnel-list {
    padding-left: 0;
  }

  .setup-choice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .setup-step-row {
    grid-template-columns: 1fr;
  }

  .recommended-import-card {
    grid-template-columns: 1fr;
  }

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

  .plan-card > p {
    min-height: 52px;
  }
}

@media (max-width: 720px) {
  .payment-trust-strip,
  .wechat-payment-guide,
  .setup-recovery-strip {
    grid-template-columns: 1fr;
  }

  .setup-recovery-strip button {
    width: 100%;
  }

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

  .report-filter-grid .button {
    grid-column: 1 / -1;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 10px 0;
  }

  .nav-main-row {
    justify-content: space-between;
    width: 100%;
  }

  .mobile-top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0 2px;
  }

  .mobile-language-switcher {
    min-width: 0;
  }

  .mobile-dashboard-link {
    white-space: nowrap;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 12px 0 4px;
  }

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

  .nav-links,
  .nav-actions {
    width: 100%;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 6px;
  }

  .nav-links a,
  .nav-actions a,
  .nav-actions form,
  .nav-actions button {
    width: 100%;
  }

  .nav-actions button,
  .nav-actions .button {
    justify-content: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: stretch;
  }

  .desktop-language-switcher,
  .nav-dashboard-inline {
    display: none;
  }

  .language-switcher a {
    flex: 1;
    justify-content: center;
  }

  .compact-title {
    padding: 20px 0 12px;
  }

  .compact-title .eyebrow,
  .compact-title .lead {
    display: none;
  }

  .compact-title h1 {
    font-size: 24px;
  }

  .split-layout {
    width: min(100% - 24px, 1680px);
    padding: 14px 0 108px;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    gap: 12px;
  }

  .workspace-head,
  .app-hero-card {
    padding: 18px;
  }

  .app-hero-card h2 {
    font-size: 30px;
  }

  .app-hero-card p {
    font-size: 15px;
  }

  .app-primary-action,
  .app-home .section-actions,
  .app-home .button {
    width: 100%;
  }

  .app-metrics-row,
  .app-connect-metrics {
    grid-template-columns: 1fr;
  }

  .app-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(217, 226, 238, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 38px rgba(16, 24, 39, .18);
    padding: 6px;
    backdrop-filter: blur(12px);
  }

  .app-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 50px;
    border-radius: 8px;
    color: var(--muted);
    padding: 5px 3px;
    text-align: center;
  }

  .app-bottom-nav a svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .82;
  }

  .app-bottom-nav a strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-bottom-nav a.active {
    background: rgba(20, 125, 179, .1);
    color: var(--brand);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(244, 247, 251, .98)),
      url("../img/logo-cm.png") no-repeat right 16px top 34px / 180px auto;
    padding: 42px 0 44px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .page-title h1 {
    font-size: 32px;
  }

  .guides-title-band,
  .guide-detail-head {
    padding: 30px 0 24px;
  }

  .guides-title-band h1,
  .guide-detail-head h1 {
    font-size: 32px;
  }

  .guide-search-control {
    grid-template-columns: 1fr;
  }

  .guide-search-control .button {
    width: 100%;
  }

  .guide-result-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 4px;
  }

  .guide-result-meta,
  .guide-result-action {
    grid-column: 2;
    text-align: left;
  }

  [dir="rtl"] .guide-result-meta,
  [dir="rtl"] .guide-result-action {
    text-align: right;
  }

  .guide-detail-band {
    padding-top: 18px;
  }

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

  .guide-tree {
    display: none;
  }

  .guide-mobile-tree {
    display: block;
    border-top: 1px solid var(--line);
    background: #f8fafc;
    padding: 12px 0;
  }

  .guide-mobile-tree details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
  }

  .guide-mobile-tree summary {
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
  }

  .guide-mobile-tree ol {
    margin-top: 12px;
  }

  .guide-mobile-tree li::before {
    background: #fff;
  }

  .guide-step {
    padding: 20px 16px;
  }

  .guide-step-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .guide-step-heading > span {
    width: 36px;
    height: 36px;
  }

  .guide-step h2 {
    font-size: 22px;
  }

  .guide-figure {
    margin-right: 0;
    margin-left: 0;
  }

  .service-notice {
    grid-template-columns: 1fr;
  }

  .service-notice small {
    text-align: left;
  }

  [dir="rtl"] .service-notice small {
    text-align: right;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .feature-block h2,
  .split-feature h2 {
    font-size: 28px;
  }

  .message-stack {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .impersonation-banner {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .impersonation-banner .button-secondary {
    width: 100%;
  }

  .success-panel {
    grid-template-columns: 1fr;
  }

  .success-panel .lead,
  .success-panel .status-pill,
  .success-panel .section-actions {
    grid-column: auto;
  }

  .cards,
  .cards.four,
  .cards.three,
  .app-import-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .setup-choice-row,
  .setup-choice-row.compact {
    grid-template-columns: 1fr;
  }

  .setup-choice {
    min-height: 0;
  }

  .recommended-app-main {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .recommended-app-main .app-logo {
    width: 54px;
    height: 54px;
  }

  .recommended-app-main h3 {
    font-size: 22px;
  }

  .recommended-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .recommended-actions .button,
  .recommended-actions .button-secondary {
    justify-content: center;
    width: 100%;
  }

  .plan-card > p {
    min-height: 0;
  }

  .plan-card .section-actions,
  .plan-card .section-actions form,
  .plan-card .button {
    width: 100%;
  }

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

  .solution-grid,
  .solution-facts,
  .solution-process-grid,
  .solution-home-grid {
    grid-template-columns: 1fr;
  }

  .solution-card-primary {
    grid-column: auto;
  }

  .solution-card {
    min-height: 0;
    padding: 20px;
  }

  .solution-detail-heading {
    grid-template-columns: 1fr;
  }

  .solution-benefit-list,
  .specialized-links {
    grid-template-columns: 1fr;
  }

  .server-distribution-grid,
  .server-distribution-meta {
    grid-template-columns: 1fr;
  }

  .specialized-strip .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .import-tile {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .app-actions .button-secondary,
  .import-tile .button,
  .import-tile .button-secondary {
    justify-content: center;
    width: 100%;
  }

  .import-tile-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 78px;
  }

  .cookie-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button,
  .cookie-actions .button-quiet {
    flex: 1;
  }

  .install-prompt {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .install-actions {
    justify-content: flex-end;
  }

  .support-search,
  .support-access-form,
  .support-log-row,
  .purchase-report-row,
  .empty-state {
    grid-template-columns: 1fr;
  }

  .support-search,
  .support-access-form {
    align-items: stretch;
    flex-direction: column;
  }

  .support-access-form .button,
  .report-filter-grid .button,
  .support-search .button-secondary,
  .captcha-button {
    width: 100%;
  }

  .captcha-panel {
    grid-template-columns: 1fr;
  }

  .captcha-math {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .support-count-row,
  .customer-password-head {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-action-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .period-grid {
    grid-template-columns: 1fr;
  }

  .conversion-summary-grid,
  .conversion-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .funnel-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }

  .funnel-value {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 7px;
  }

  .funnel-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 340px) {
  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-grid .button {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    padding: 22px;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .import-tile-main {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .import-tile .app-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .import-tile-actions {
    grid-template-columns: 1fr;
  }
}
