:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b0f14;
  --bg-soft: #0e141c;
  --surface: #111821;
  --surface-2: #151e29;
  --surface-3: #1a2532;
  --text: #f2f6f9;
  --muted: #8794a5;
  --muted-2: #647184;
  --border: #222d39;
  --border-strong: #31404f;
  --accent: #7ce6ad;
  --accent-strong: #55d590;
  --accent-ink: #062414;
  --danger: #ff8a8a;
  --warning: #f1c66b;
  --shadow: 0 26px 70px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 82% -160px, rgba(124,230,173,.09), transparent 70%),
    radial-gradient(700px 420px at -10% 10%, rgba(88,139,255,.07), transparent 72%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.site-header,
.admin-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-3), var(--surface));
  color: var(--accent);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy small { font-size: 11px; color: var(--muted-2); }

.header-meta,
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot,
.secure-badge > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,230,173,.08);
}

.landing-hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: end;
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--border);
}

.kicker,
.card-label,
.section-index,
.panel-hint,
.step-number {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted-2);
}

.hero-copy h1,
.dashboard-heading h1,
.login-copy h1 {
  margin: 14px 0 18px;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 650;
}

.hero-copy p,
.dashboard-heading p,
.login-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-version-card {
  display: grid;
  gap: 8px;
  padding: 24px 0 4px 24px;
  border-left: 1px solid var(--border-strong);
}

.hero-version-card strong {
  font-size: 32px;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.hero-version-card .muted { color: var(--muted); font-size: 12px; line-height: 1.5; }

.section-block { padding: 72px 0; border-bottom: 1px solid var(--border); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  align-items: end;
  gap: 48px;
  margin-bottom: 28px;
}

.section-heading.compact { grid-template-columns: 1fr; }

.section-heading > div { display: flex; align-items: baseline; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; font-weight: 600; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }

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

.download-card,
.loading-card {
  min-height: 136px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.download-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-2px);
}

.download-card.recommended {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: linear-gradient(145deg, rgba(124,230,173,.055), rgba(255,255,255,.006));
}

.platform-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: #dbe4eb;
  border: 1px solid var(--border);
}

.platform-icon svg { width: 24px; height: 24px; fill: currentColor; }

.download-copy { min-width: 0; display: grid; gap: 4px; }
.download-copy strong { font-size: 15px; }
.download-copy > span { color: var(--muted); font-size: 12px; }
.download-copy small { color: var(--muted-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.download-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }

.recommend-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(124,230,173,.11);
  color: var(--accent) !important;
  font-size: 9px !important;
  font-weight: 750;
  white-space: nowrap;
}

.download-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dce4eb;
  font-size: 11px;
  font-weight: 650;
}

.download-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.release-info-grid {
  display: grid;
  grid-template-columns: 220px 250px minmax(0,1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.info-card {
  min-height: 140px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(255,255,255,.012);
  border-right: 1px solid var(--border);
}

.info-card:last-child { border-right: 0; }
.info-card strong { font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.notes-card p { margin: 0; color: var(--muted); line-height: 1.65; white-space: pre-wrap; font-size: 13px; }

.empty-state {
  grid-column: 1 / -1;
  min-height: 154px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--muted);
}

.empty-state strong { color: var(--text); }
.empty-state p { margin: 4px 0 0; font-size: 13px; }
.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
.empty-icon svg { width: 22px; height: 22px; fill: currentColor; }
.error-state .empty-icon { color: var(--danger); font-weight: 800; }

.loading-card { padding: 28px; display: grid; align-content: center; gap: 12px; }
.loading-line { width: 45%; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.loading-line.wide { width: 68%; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.history-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.008);
}

.history-item {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 180px;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child { border-bottom: 0; }
.history-index { padding-top: 4px; color: var(--muted-2); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.history-main { min-width: 0; display: grid; gap: 9px; }
.history-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.history-title-row strong { font-size: 15px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.history-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.history-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.history-platforms span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-2);
  background: var(--bg-soft);
  font-size: 9px;
}
.history-item time { justify-self: end; padding-top: 3px; color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.demo-badge,
.stable-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.demo-badge { background: rgba(241,198,107,.1); color: var(--warning); border: 1px solid rgba(241,198,107,.16); }
.stable-badge { background: rgba(124,230,173,.08); color: var(--accent); border: 1px solid rgba(124,230,173,.14); }
.history-loading { min-height: 98px; padding: 28px; display: grid; align-content: center; gap: 10px; border-bottom: 1px solid var(--border); }
.history-loading:last-child { border-bottom: 0; }
.admin-history { border-radius: 12px; }
.admin-history .history-item { grid-template-columns: 32px minmax(0,1fr) 150px; padding: 18px 4px; margin: 0 16px; }

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted-2);
  font-size: 11px;
}

.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer strong { color: var(--muted); }
.site-footer a, .text-link { color: var(--muted); text-decoration: none; transition: color .18s ease; }
.site-footer a:hover, .text-link:hover { color: var(--text); }

/* Admin */
.admin-topbar { margin-bottom: 0; }

.login-layout {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 410px;
  align-items: center;
  gap: 100px;
  padding: 72px 0;
}

.login-copy h1 { font-size: clamp(46px, 6vw, 72px); max-width: 700px; }

.login-feature-list {
  margin-top: 48px;
  max-width: 520px;
  border-top: 1px solid var(--border);
}

.login-feature-list > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.login-feature-list span { color: var(--muted-2); font-size: 10px; }
.login-feature-list p { margin: 0; color: #bac4ce; font-size: 12px; }

.login-card,
.admin-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17,24,33,.82);
  box-shadow: var(--shadow);
}

.login-card { padding: 28px; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.025em; font-weight: 600; }

.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 8px; color: #cbd3dc; font-size: 11px; font-weight: 600; }
.stack-form label > small { color: var(--muted-2); line-height: 1.5; font-weight: 400; }

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: 0;
  background: #0d131a;
  color: var(--text);
  padding: 12px 13px;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  box-shadow: 0 0 0 3px rgba(124,230,173,.07);
  background: #0f161e;
}

textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#697789 50%),linear-gradient(135deg,#697789 50%,transparent 50%); background-position: calc(100% - 17px) 17px,calc(100% - 12px) 17px; background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px; }

.primary-button,
.secondary-button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  justify-self: start;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { background: #dfe6ec; color: #0a1016; }
.secondary-button:hover { background: #fff; }
.full { width: 100%; justify-self: stretch; }
button:disabled { opacity: .55; cursor: wait; transform: none !important; }

.form-message { margin: 18px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.55; }
.form-message[data-tone="error"] { color: var(--danger); }
.form-message[data-tone="success"] { color: var(--accent); }

.dashboard { padding: 68px 0 90px; }

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 36px;
}

.dashboard-heading h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 14px; }

.session-chip {
  display: grid;
  grid-template-columns: 34px auto 32px;
  gap: 10px;
  align-items: center;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.session-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.session-chip > div { display: grid; gap: 2px; min-width: 0; }
.session-chip small { color: var(--muted-2); font-size: 9px; }
.session-chip strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover { background: var(--surface-3); color: var(--text); }

.dashboard-summary {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.01);
}

.summary-card.accent { background: linear-gradient(145deg, rgba(124,230,173,.07), rgba(255,255,255,.01)); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.summary-card strong { font-size: 23px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.summary-card small { color: var(--muted-2); font-size: 10px; }

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

.admin-card { padding: 24px; box-shadow: none; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.panel-heading > div:has(.step-number) { display: flex; align-items: center; gap: 10px; }
.panel-heading > div:has(.step-number) h2 { margin: 0; }

.file-drop {
  position: relative;
  min-height: 126px;
  display: grid !important;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 5px !important;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.012);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.file-drop:hover { border-color: #4d6072; background: rgba(255,255,255,.024); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-icon { font-size: 20px; color: var(--accent); }
.file-drop strong { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop small { max-width: 320px; font-size: 10px; }

.activity-card { margin-top: 12px; }

.text-button {
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.text-button:hover { color: var(--text); }

.release-preview {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(180px,.8fr) minmax(0,1.6fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
}

.preview-main { display: flex; align-items: center; gap: 12px; }
.preview-main > div { display: grid; gap: 2px; }
.preview-main small { color: var(--muted-2); font-size: 9px; }
.preview-main strong { font-size: 14px; font-variant-numeric: tabular-nums; }

.preview-assets { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-assets > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
}
.preview-assets b { font-size: 9px; font-weight: 650; }
.preview-assets small { color: var(--muted-2); font-size: 9px; }
.preview-assets .empty-inline { border-style: dashed; color: var(--muted-2); font-size: 10px; }

.release-preview > a { justify-self: end; color: var(--muted); text-decoration: none; font-size: 10px; }
.release-preview > a:hover { color: var(--text); }

.status-console {
  margin: 18px 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #090d12;
  color: #9aabba;
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding-top: 70px; }
  .hero-version-card { max-width: 360px; }
  .downloads-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .release-info-grid { grid-template-columns: 1fr 1fr; }
  .notes-card { grid-column: 1/-1; border-top: 1px solid var(--border); }
  .info-card:nth-child(2) { border-right: 0; }
  .login-layout { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .login-card { max-width: 540px; width: 100%; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
  .dashboard-summary .summary-card:first-child { grid-column: 1/-1; }
  .release-preview { grid-template-columns: 1fr; gap: 12px; }
  .release-preview > a { justify-self: start; }
  .history-item, .admin-history .history-item { grid-template-columns: 36px minmax(0,1fr); }
  .history-item time { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .site-shell, .admin-shell { width: min(100% - 28px, 1180px); }
  .site-header, .admin-topbar { min-height: 72px; }
  .brand-copy small, .header-meta { display: none; }
  .landing-hero { padding: 54px 0 48px; }
  .hero-copy h1, .login-copy h1 { font-size: clamp(38px, 13vw, 54px); }
  .hero-copy p, .login-copy > p { font-size: 14px; }
  .section-block { padding: 48px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .downloads-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 44px minmax(0,1fr); min-height: 124px; padding: 18px; }
  .platform-icon { width: 44px; height: 44px; }
  .download-action { grid-column: 2; justify-self: start; margin-top: 7px; }
  .release-info-grid { grid-template-columns: 1fr; }
  .info-card, .info-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .notes-card { grid-column: auto; border-top: 0; border-bottom: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer > div { display: grid; gap: 3px; }
  .login-layout { padding: 54px 0; }
  .login-card, .admin-card { padding: 20px; }
  .login-feature-list { margin-top: 32px; }
  .dashboard { padding-top: 50px; }
  .dashboard-heading { display: grid; gap: 24px; }
  .session-chip { width: 100%; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary .summary-card:first-child { grid-column: auto; }
  .history-item { grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 18px 14px; }
  .admin-history .history-item { grid-template-columns: 28px minmax(0,1fr); margin: 0 10px; padding: 16px 0; }
  .history-item time { grid-column: 2; }
}

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


/* Public download landing — light product-download experience */
.landing-body {
  color-scheme: light;
  margin: 0;
  color: #111827;
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-body * { box-sizing: border-box; }
.landing-body a { color: inherit; }
.landing-body button { font: inherit; }

.download-container,
.download-header-inner,
.download-os-inner {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.download-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6e9ee;
  backdrop-filter: blur(14px);
}

.download-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

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

.download-brand strong {
  font-size: 22px;
  letter-spacing: -.04em;
}

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

.download-nav a,
.download-admin-link {
  color: #28313f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.download-nav a:hover,
.download-admin-link:hover { color: #3159f5; }

.download-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.download-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 7px;
  background: #3159f5;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.download-header-cta:hover { background: #2348d8; }

.download-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.download-menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: #111827;
}

.download-os-bar {
  background: #f0f1f3;
  border-bottom: 1px solid #e1e4e8;
}

.download-os-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #424852;
  font-size: 16px;
}

.download-os-inner > span:first-child { margin-right: 2px; }

.download-os-inner button {
  padding: 4px 3px;
  border: 0;
  background: transparent;
  color: #20242b;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.download-os-inner button.is-active {
  color: #3159f5;
  font-weight: 750;
}

.download-hero {
  overflow: hidden;
  background: #fbfbfc;
  border-bottom: 1px solid #eceef2;
}

.download-hero-inner {
  padding: 78px 0 0;
  text-align: center;
}

.download-eyebrow {
  display: inline-block;
  color: #3159f5;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .045em;
}

.download-hero h1 {
  margin: 16px 0 12px;
  color: #0d1b52;
  font-size: clamp(40px, 4.1vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 760;
}

.download-hero > .download-container > p,
.download-hero-inner > p {
  margin-left: auto;
  margin-right: auto;
}

/* Marketing value statement stays readable without changing the existing hero layout. */
.download-hero-inner > .download-hero-value {
  max-width: 800px;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--site-muted, #5d626b);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.7;
  text-wrap: pretty;
}
@media (max-width: 660px) {
  .download-hero-inner > .download-hero-value {
    max-width: 94%;
    font-size: 15px;
    line-height: 1.6;
  }
}

#hero-subtitle {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 28px;
  color: #5d626b;
  font-size: 18px;
  line-height: 1.55;
}

.download-hero-actions {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}

.download-maintenance-notice {
  width: min(100%, 780px);
  margin: 24px auto 4px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dce2eb;
  border-left: 4px solid #3159f5;
  border-radius: 12px;
  background: #f7f9fd;
  color: #253044;
  text-align: left;
  box-shadow: 0 12px 30px rgba(14, 34, 80, .06);
}
.download-maintenance-label {
  color: #4264a0;
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .065em;
}
.download-maintenance-notice h2 {
  margin: 12px 0;
  color: #142b55;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.download-maintenance-notice p {
  margin: 0;
  color: #4b5668;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.download-maintenance-notice a {
  display: inline-flex;
  margin-top: 15px;
  color: #3159f5;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.download-hero-action-wrap {
  min-width: 272px;
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.download-hero-action-wrap > span {
  color: #60656e;
  font-size: 13px;
}

.download-main-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1.5px solid #0d1b52;
  border-radius: 8px;
  background: #fff;
  color: #0d1b52;
  text-decoration: none;
  font-size: 16px;
  font-weight: 780;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.download-main-button.primary {
  border-color: #3159f5;
  background: #3159f5;
  color: white;
}

.download-main-button:not(:disabled):hover { transform: translateY(-1px); }
.download-main-button.primary:not(:disabled):hover { background: #2348d8; border-color: #2348d8; }
.download-main-button:disabled { opacity: .45; cursor: not-allowed; }

.download-hero-meta {
  margin-top: 20px !important;
  margin-bottom: 8px !important;
  color: #777c85;
  font-size: 12px;
}

.download-trial-line {
  margin: 0 0 24px !important;
  color: #616773;
  font-size: 13px;
}

.download-trial-line a {
  color: #3159f5;
  font-weight: 750;
  text-underline-offset: 3px;
}

.download-cta-placeholder {
  width: 310px;
  height: 52px;
  border-radius: 8px;
  background: #eef0f3;
}

.download-inline-error {
  margin: 8px 0;
  color: #b42318;
  font-size: 14px;
}

.download-product-video {
  width: min(860px, 92%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dadde4;
  border-radius: 13px 13px 0 0;
  background: #0b0f14;
  box-shadow: 0 20px 50px rgba(31, 42, 68, .12);
}

.download-product-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.download-other-platforms {
  padding: 30px 0 32px;
  background: white;
}

.download-other-platforms p {
  margin: 0 0 4px;
  color: #5d626b;
  font-size: 15px;
}

.download-other-platforms button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #3159f5;
  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.download-discover {
  padding: 76px 0 84px;
  background: #fff;
}

.download-discover > .download-container > h2,
.download-faq h2 {
  margin: 0 0 38px;
  color: #0d1b52;
  text-align: center;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.035em;
}

.download-feature-banner {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fbfcfd;
}

.download-feature-banner-copy {
  padding: 42px 34px;
  align-self: center;
}

.download-feature-banner-copy h3 {
  max-width: 720px;
  margin: 10px 0 14px;
  color: #0d1b52;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.download-feature-banner-copy p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #5f646d;
  font-size: 16px;
  line-height: 1.55;
}

.download-feature-banner-copy strong {
  color: #535861;
  font-size: 15px;
}

.download-feature-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.download-art-panel {
  position: absolute;
  width: 260px;
  min-height: 165px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 22px;
  border: 1px solid #dfe4ea;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(31, 42, 68, .09);
  transform: rotate(-7deg);
}

.download-art-panel small { color: #8a92a0; font-size: 9px; }
.download-art-panel strong { color: #1d2533; font-size: 14px; }
.download-art-panel > span {
  width: 85%;
  height: 8px;
  border-radius: 10px;
  background: #eef1f5;
}
.download-art-panel > span:nth-of-type(2) { width: 65%; }
.download-art-panel > span:nth-of-type(3) { width: 75%; }

.panel-one { right: 105px; top: 70px; }
.panel-two { right: -50px; top: 16px; transform: rotate(8deg); }

.panel-two > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #59616c;
  font-size: 9px;
}

.panel-two i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55c48c;
}

.download-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.download-benefits article {
  min-height: 212px;
  padding: 28px 24px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
}

.download-benefit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #3159f5;
}

.download-benefit-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-benefits h3 {
  margin: 18px 0 6px;
  color: #20242b;
  font-size: 18px;
  letter-spacing: -.02em;
}

.download-benefits p {
  margin: 0;
  color: #62676f;
  font-size: 14px;
  line-height: 1.5;
}

.download-whats-new {
  padding: 82px 0;
  background: #f6f7f9;
  border-top: 1px solid #e8eaee;
  border-bottom: 1px solid #e8eaee;
}

.download-whats-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 70px;
  align-items: center;
}

.download-whats-grid h2,
.download-section-heading h2 {
  margin: 10px 0 12px;
  color: #0d1b52;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.07;
  letter-spacing: -.04em;
}

.download-whats-grid > div > p,
.download-section-heading > p {
  max-width: 520px;
  margin: 0;
  color: #646a73;
  line-height: 1.6;
}

.download-release-card {
  padding: 28px;
  border: 1px solid #dce0e6;
  border-radius: 12px;
  background: white;
}

.download-release-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eceef2;
}

.download-release-card-top span {
  color: #7b818b;
  font-size: 12px;
}

.download-release-card-top strong {
  color: #0d1b52;
  font-size: 28px;
  letter-spacing: -.04em;
}

.download-release-card > p {
  min-height: 48px;
  margin: 20px 0;
  color: #555c66;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.download-release-meta {
  display: flex;
  gap: 18px;
  color: #888e97;
  font-size: 11px;
}

.download-faq {
  padding: 82px 0 70px;
  background: white;
}

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

.download-faq-list details {
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: white;
}

.download-faq-list summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  color: #20242b;
  font-size: 16px;
  font-weight: 730;
  list-style: none;
  cursor: pointer;
}

.download-faq-list summary::-webkit-details-marker { display: none; }
.download-faq-list summary span { color: #111827; font-size: 20px; transition: transform .15s ease; }
.download-faq-list details[open] summary span { transform: rotate(180deg); }

.download-faq-list details p {
  margin: -4px 0 0;
  padding: 0 22px 24px;
  color: #626872;
  font-size: 14px;
  line-height: 1.65;
}

.download-previous {
  padding: 70px 0 84px;
  background: #fbfbfc;
  border-top: 1px solid #e8eaee;
}

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

.download-section-heading > div { flex: 1; }
.download-section-heading > p { max-width: 420px; font-size: 14px; }

.download-history-list {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: white;
}

.download-history-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 180px;
  gap: 28px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid #eceef2;
}

.download-history-item:last-child { border-bottom: 0; }

.download-history-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.download-history-title strong {
  color: #20242b;
  font-size: 16px;
}

.download-history-title span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff4db;
  color: #8c6413;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.download-history-title span.is-stable {
  background: #e9f8f0;
  color: #26734d;
}

.download-history-item p {
  margin: 8px 0 10px;
  color: #666c75;
  font-size: 13px;
  line-height: 1.55;
}

.download-history-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.download-history-platforms span {
  padding: 4px 7px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  color: #707680;
  font-size: 9px;
}

.download-history-item time {
  justify-self: end;
  color: #8a9099;
  font-size: 11px;
  white-space: nowrap;
}

.download-history-skeleton {
  height: 96px;
  background: linear-gradient(90deg, #fafafa, #f1f2f4, #fafafa);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.download-history-empty {
  margin: 0;
  padding: 24px;
  color: #767c86;
  font-size: 13px;
}

/* Minimal public footer: keep only brand, help/policy navigation and copyright. */
.download-footer {
  padding: 30px 0 20px;
  background: #f8f9fb;
  border-top: 1px solid #e8ebf0;
  color: #161a23;
}

.download-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.download-footer-brand {
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.download-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 2.6vw, 32px);
}

.download-footer-links a {
  color: #535d6c;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.65;
}

.download-footer-links a:hover,
.download-footer-links a:focus-visible {
  color: #161a23;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.download-footer-copy {
  margin: 16px 0 0;
  color: #7b8491;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .download-footer { padding: 24px 0 18px; }
  .download-footer-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .download-footer-links { gap: 10px 22px; }
  .download-footer-copy { margin-top: 14px; }
}

@media (max-width: 980px) {
  .download-nav { gap: 18px; }
  .download-nav a { font-size: 12px; }
  .download-feature-banner { grid-template-columns: 1fr minmax(280px, .7fr); }
  .download-benefits { grid-template-columns: repeat(2, 1fr); }
  .download-whats-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .download-container,
  .download-header-inner,
  .download-os-inner { width: min(100% - 32px, 1320px); }

  .download-header-inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .download-brand strong { font-size: 18px; }

  .download-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 18px;
    background: white;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: 0 12px 24px rgba(20,30,50,.08);
  }

  .download-nav.is-open { display: grid; gap: 0; }
  .download-nav a { padding: 12px 8px; font-size: 14px; border-bottom: 1px solid #eef0f3; }
  .download-nav a:last-child { border-bottom: 0; }

  .download-header-actions { gap: 11px; }
  .download-admin-link,
  .download-header-cta { display: none; }
  .download-menu-button { display: block; }

  .download-os-inner {
    min-height: 76px;
    padding: 12px 0;
    line-height: 1.6;
    font-size: 14px;
  }

  .download-os-inner > span:first-child {
    flex-basis: 100%;
    text-align: center;
    margin: 0 0 -4px;
  }

  .download-hero-inner { padding-top: 54px; }
  .download-hero h1 { font-size: clamp(36px, 9.5vw, 50px); }
  #hero-subtitle { font-size: 16px; }

  .download-hero-actions { gap: 16px; }
  .download-hero-action-wrap { min-width: min(270px, 46%); }
  .download-main-button { min-height: 50px; padding: 0 18px; font-size: 14px; }

  .download-product-video { width: min(90%, 760px); }

  .download-discover { padding: 60px 0 68px; }
  .download-feature-banner { grid-template-columns: 1fr; min-height: 0; }
  .download-feature-banner-copy { padding: 32px 26px; }
  .download-feature-art { min-height: 190px; }
  .panel-one { right: 120px; top: 42px; }
  .panel-two { right: -30px; top: 16px; }
  .download-benefits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .download-benefits article { min-height: 190px; padding: 22px 18px; }

  .download-whats-new,
  .download-faq,
  .download-previous { padding: 62px 0; }

  .download-section-heading { display: grid; gap: 10px; }
  .download-history-item { grid-template-columns: 1fr; gap: 10px; }
  .download-history-item time { justify-self: start; }

}

@media (max-width: 480px) {
  .download-container,
  .download-header-inner,
  .download-os-inner { width: min(100% - 24px, 1320px); }

  .download-os-inner { font-size: 13px; }

  .download-hero-inner { padding-top: 44px; }
  .download-hero h1 { font-size: 37px; }
  #hero-subtitle { font-size: 15px; }

  .download-hero-actions { display: grid; gap: 14px; }
  .download-hero-action-wrap { min-width: 0; width: 100%; max-width: 330px; }
  .download-main-button { width: 100%; }

  .download-product-video {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .download-other-platforms { padding: 24px 0; }
  .download-other-platforms p,
  .download-other-platforms button { font-size: 13px; }

  .download-discover > .download-container > h2,
  .download-faq h2 { margin-bottom: 26px; }

  .download-feature-banner-copy { padding: 26px 20px; }
  .download-feature-banner-copy p { font-size: 14px; }
  .download-feature-art { min-height: 170px; }
  .download-art-panel { width: 210px; min-height: 140px; padding: 18px; }
  .panel-one { right: 85px; }
  .panel-two { right: -55px; }

  .download-benefits { grid-template-columns: 1fr; }
  .download-benefits article { min-height: 0; }

  .download-release-card { padding: 20px; }
  .download-release-card-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .download-release-card-top strong { font-size: 24px; }

  .download-faq-list summary { min-height: 70px; padding: 0 16px; font-size: 14px; }
  .download-faq-list details p { padding: 0 16px 20px; font-size: 13px; }

  .download-history-item { padding: 18px 16px; }
}

/* Public guide */
.public-guide-body {
  background: #f6f8fb;
  color: #172036;
}

.public-guide-main {
  padding: 42px 0 72px;
}

.public-guide-container {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.public-guide-loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 14px;
}

.public-guide-body .guide-doc-page {
  gap: 24px;
  padding-bottom: 0;
}

.public-guide-body .guide-doc-hero,
.public-guide-body .guide-video-card,
.public-guide-body .guide-architecture-node,
.public-guide-body .guide-install-option,
.public-guide-body .guide-install-panel,
.public-guide-body .guide-step-card,
.public-guide-body .guide-prerequisites,
.public-guide-body .guide-tunnel-required {
  box-shadow: 0 10px 32px rgba(20, 35, 70, .05);
}

.public-guide-body .download-nav a[aria-current="page"] {
  color: #3159f5;
  font-weight: 800;
}

@media (max-width: 760px) {
  .public-guide-container {
    width: min(100% - 32px, 1180px);
  }

  .public-guide-main {
    padding: 28px 0 54px;
  }
}

@media (max-width: 480px) {
  .public-guide-container {
    width: min(100% - 24px, 1180px);
  }
}

.download-guide-promo {
  padding: 72px 0;
  background: #0d1b52;
  color: #fff;
}

.download-guide-promo-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.download-guide-promo-copy > span {
  display: block;
  color: #9fb2ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
}

.download-guide-promo-copy h2 {
  max-width: 650px;
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.download-guide-promo-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.65;
}

.download-guide-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  color: #0d1b52;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.download-guide-steps {
  display: grid;
  gap: 12px;
}

.download-guide-steps article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.download-guide-steps b {
  grid-row: 1 / span 2;
  color: #9fb2ff;
  font-size: 18px;
}

.download-guide-steps strong {
  font-size: 15px;
}

.download-guide-steps span {
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

@media (max-width: 900px) {
  .download-guide-promo-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .download-guide-promo {
    padding: 52px 0;
  }

  .download-guide-steps article {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }
}

/* Public pricing */
.download-pricing {
  padding: 84px 0;
  background: #f7f9fc;
}

.download-pricing-heading {
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.download-pricing-heading > div > span {
  display: block;
  margin-bottom: 8px;
  color: #3159f5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
}

.download-pricing-heading h2 {
  margin: 0;
  color: #0d1b52;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.download-pricing-heading p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.download-pricing-trial {
  min-width: 250px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  background: #fff;
  color: #0d1b52;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(13, 27, 82, .05);
}

.download-pricing-trial strong {
  font-size: 14px;
}

.download-pricing-trial span {
  color: #6d7482;
  font-size: 12px;
}

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

.download-pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 27, 82, .045);
}

.download-pricing-card.is-featured {
  border-color: #9db0ff;
  box-shadow: 0 18px 42px rgba(49, 89, 245, .12);
}

.download-pricing-card.is-loading {
  min-height: 410px;
  overflow: hidden;
}

.download-pricing-card.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #f4f6fa 8%, #fff 18%, #f4f6fa 33%);
  background-size: 220% 100%;
  animation: downloadPricingSkeleton 1.15s linear infinite;
}

@keyframes downloadPricingSkeleton {
  to { background-position-x: -220%; }
}

.download-pricing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.download-pricing-duration {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.download-pricing-card h3 {
  margin: 6px 0 0;
  color: #0d1b52;
  font-size: 19px;
  line-height: 1.25;
}

.download-pricing-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #3159f5;
  font-size: 10px;
  font-weight: 800;
}

.download-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 24px;
}

.download-pricing-price strong {
  color: #0d1b52;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.035em;
}

.download-pricing-price span {
  color: #7b8190;
  font-size: 12px;
}

.download-pricing-promo {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f6ff;
  color: #4d5870;
  font-size: 11px;
}

.download-pricing-promo b {
  color: #3159f5;
}

.download-pricing-promo s {
  margin-left: auto;
  color: #8a91a0;
}

.download-pricing-promo.is-placeholder {
  background: #f7f8fa;
  color: #858b98;
}

.download-pricing-features {
  display: grid;
  gap: 11px;
  margin: 20px 0 24px;
}

.download-pricing-features > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  align-items: start;
}

.download-pricing-features > div > span {
  color: #3159f5;
  font-size: 12px;
  font-weight: 900;
}

.download-pricing-features p {
  margin: 0;
  color: #596172;
  font-size: 12px;
  line-height: 1.55;
}

.download-pricing-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid #cfd6e3;
  border-radius: 9px;
  background: #fff;
  color: #0d1b52;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.download-pricing-button.primary {
  border-color: #3159f5;
  background: #3159f5;
  color: #fff;
}

.download-pricing-note {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #7a8190;
  font-size: 11px;
}

.download-pricing-note span::before {
  content: "•";
  margin-right: 7px;
  color: #3159f5;
}

.download-pricing-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fff;
  color: #667085;
  text-align: center;
  font-size: 13px;
}

.download-pricing-empty a {
  color: #3159f5;
  font-weight: 800;
}
.download-pricing-empty p { margin: 0 0 15px; }
.download-release-recovery {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 18px;
  border: 1px solid var(--site-line, #e1e6ef);
  border-radius: 12px;
  background: var(--site-panel, #fff);
  color: var(--site-text, #15203b);
  text-align: center;
}
.download-release-recovery p {
  margin: 0 0 14px;
  line-height: 1.6;
}
.download-pricing-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 14px 0 0;
  padding: 9px 15px;
  border: 1px solid var(--site-accent, #3159f5);
  border-radius: 9px;
  background: var(--site-accent, #3159f5);
  color: var(--site-on-accent, #fff);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.download-pricing-retry:disabled { opacity: .65; cursor: wait; }
.download-pricing-retry:focus-visible {
  outline: 3px solid var(--site-accent, #3159f5);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .download-pricing-retry { width: 100%; margin: 0 0 12px; }
}

@media (max-width: 900px) {
  .download-pricing-grid {
    grid-template-columns: 1fr;
  }

  .download-pricing-card {
    min-height: auto;
  }

  .download-pricing-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .download-pricing-trial {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .download-pricing {
    padding: 58px 0;
  }

  .download-pricing-card {
    padding: 20px;
  }

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

  .download-pricing-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* Homepage narrative refresh */
.landing-body {
  overflow-x: hidden;
}

.download-nav-mobile-actions {
  display: none;
}

.download-hero {
  padding: 88px 0 78px;
  background:
    radial-gradient(circle at 82% 16%, rgba(49, 89, 245, .10), transparent 29%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 68%);
}

.download-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  gap: 72px;
  align-items: center;
}

.download-hero-copy {
  min-width: 0;
}

.download-hero-copy .download-eyebrow {
  margin-bottom: 18px;
}

.download-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #0d1b52;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -.052em;
  font-weight: 780;
}

.download-hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #596274;
  font-size: 18px;
  line-height: 1.7;
}

.download-hero-primary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.download-hero-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #d1d7e2;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.download-hero-cta:hover {
  transform: translateY(-1px);
}

.download-hero-cta.primary {
  border-color: #3159f5;
  background: #3159f5;
  color: #fff;
}

.download-hero-cta.secondary {
  background: #fff;
  color: #0d1b52;
}

.download-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.download-hero-proof span {
  padding: 7px 10px;
  border: 1px solid #e0e5ef;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #646d7d;
  font-size: 11px;
  font-weight: 700;
}

.download-download-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #dde3ee;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 26px 70px rgba(23, 38, 84, .11);
}

.download-card-heading {
  display: grid;
  gap: 7px;
}

.download-card-heading > span {
  color: #3159f5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}

.download-card-heading > strong {
  color: #0d1b52;
  font-size: 27px;
  letter-spacing: -.035em;
}

.download-download-card #hero-subtitle {
  max-width: none;
  margin: 10px 0 0;
  color: #697183;
  font-size: 13px;
  line-height: 1.55;
}

.download-download-card .download-os-inner {
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  gap: 7px;
  margin: 20px 0 18px;
  padding: 0;
  color: #798091;
  font-size: 12px;
}

.download-download-card .download-os-inner button {
  padding: 7px 9px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #f8f9fc;
  color: #5f6879;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}

.download-download-card .download-os-inner button.is-active {
  border-color: #aebfff;
  background: #eef2ff;
  color: #3159f5;
}

.download-download-card .download-os-inner > span {
  display: none;
}

.download-download-card .download-hero-actions {
  min-height: 0;
  display: grid;
  justify-content: stretch;
  gap: 10px;
}

.download-download-card .download-hero-action-wrap {
  width: 100%;
  min-width: 0;
}

.download-download-card .download-main-button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
}

.download-download-card .download-hero-action-wrap > span {
  font-size: 11px;
}

.download-download-card .download-hero-meta {
  margin: 16px 0 0 !important;
  text-align: left;
}

.download-card-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
  color: #747c8a;
  font-size: 11px;
  line-height: 1.55;
}

.download-demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: 40px;
  align-items: end;
  margin: 72px auto 22px;
  width: min(960px, 100%);
}

.download-demo-heading > div > span,
.download-section-intro > span,
.download-section-kicker {
  display: block;
  color: #3159f5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}

.download-demo-heading h2 {
  margin: 8px 0 0;
  color: #0d1b52;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.07;
  letter-spacing: -.035em;
}

.download-demo-heading > p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.download-product-video {
  width: min(960px, 100%);
  border-radius: 16px;
}

.download-discover {
  padding: 92px 0;
}

.download-section-intro {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.download-section-intro h2 {
  margin: 9px 0 12px;
  color: #0d1b52;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.download-section-intro p {
  margin: 0 auto;
  max-width: 760px;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.download-section-intro.is-compact {
  margin-bottom: 28px;
}

.download-section-intro.is-compact h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.download-feature-kicker {
  display: block;
  color: #3159f5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .10em;
}

.download-feature-banner-copy strong {
  display: block;
  max-width: 700px;
  color: #3f4858;
  font-size: 13px;
  line-height: 1.6;
}

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

.download-benefits article {
  min-width: 0;
  min-height: 192px;
}

.download-benefits h3,
.download-benefits p {
  overflow-wrap: anywhere;
}

.download-guide-promo {
  padding: 86px 0;
}

.download-guide-promo-copy h2 {
  max-width: 720px;
}

.download-guide-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.download-guide-actions .download-guide-button {
  margin-top: 0;
  color: #0d1b52;
}

.download-guide-actions .download-guide-button:hover {
  background: #eef2ff;
  color: #0d1b52;
}

.download-guide-link {
  color: #c8d3ff;
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.download-guide-steps article {
  grid-template-columns: 48px minmax(0, 1fr);
}

.download-guide-steps span {
  line-height: 1.5;
}

.download-pricing-heading {
  align-items: center;
}

.download-pricing-card-top {
  min-width: 0;
}

.download-pricing-card-top > div {
  min-width: 0;
}

.download-pricing-card h3,
.download-pricing-price strong,
.download-pricing-promo,
.download-pricing-features p {
  overflow-wrap: anywhere;
}

.download-section-kicker {
  margin-bottom: 8px;
}

.download-inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: #3159f5;
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.download-faq {
  padding-top: 82px;
}

.download-faq .download-section-intro h2 {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .download-header-inner {
    gap: 22px;
  }

  .download-nav {
    gap: 18px;
  }

  .download-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    gap: 42px;
  }

  .download-hero-copy h1 {
    font-size: clamp(42px, 5vw, 60px);
  }
}

@media (max-width: 920px) {
  .download-hero-grid {
    grid-template-columns: 1fr;
  }

  .download-download-card {
    width: min(720px, 100%);
  }

  .download-demo-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

@media (max-width: 760px) {
  .download-nav-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
  }

  .download-nav-mobile-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #dce2ec !important;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
  }

  .download-nav-mobile-actions a.is-primary {
    border-color: #3159f5 !important;
    background: #3159f5;
    color: #fff;
  }

  .download-hero {
    padding: 58px 0 62px;
  }

  .download-hero-copy h1 {
    font-size: clamp(40px, 8vw, 52px);
  }

  .download-hero-lead {
    font-size: 16px;
  }

  .download-download-card {
    padding: 24px;
  }

  .download-card-heading > strong {
    font-size: 24px;
  }

  .download-demo-heading {
    margin-top: 54px;
  }

  .download-product-video {
    width: 100%;
    border-radius: 14px;
  }

  .download-discover {
    padding: 68px 0;
  }

  .download-section-intro {
    margin-bottom: 28px;
  }

  .download-feature-banner-copy {
    padding: 30px 24px;
  }

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

  .download-benefits article {
    min-height: 178px;
  }

  .download-guide-promo {
    padding: 66px 0;
  }

  .download-guide-actions {
    align-items: flex-start;
  }

  .download-pricing-heading {
    align-items: stretch;
  }

  .download-whats-grid {
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .download-hero {
    padding: 46px 0 52px;
  }

  .download-hero-copy h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .download-hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.62;
  }

  .download-hero-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-hero-cta {
    width: 100%;
  }

  .download-hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-hero-proof span {
    width: fit-content;
  }

  .download-download-card {
    padding: 19px;
    border-radius: 14px;
  }

  .download-download-card .download-os-inner {
    gap: 6px;
  }

  .download-download-card .download-os-inner button {
    flex: 1 1 auto;
    min-width: 86px;
  }

  .download-demo-heading {
    margin-top: 44px;
  }

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

  .download-feature-art {
    display: none;
  }

  .download-feature-banner {
    display: block;
  }

  .download-benefits {
    grid-template-columns: 1fr;
  }

  .download-benefits article {
    min-height: 0;
  }

  .download-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-guide-button {
    width: 100%;
  }

  .download-guide-link {
    text-align: center;
  }

  .download-guide-steps article {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .download-pricing-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-pricing-badge {
    align-self: flex-start;
  }

  .download-pricing-price {
    flex-wrap: wrap;
  }

  .download-pricing-promo s {
    margin-left: 0;
  }

  .download-release-meta {
    flex-wrap: wrap;
  }
}

#download,
#features,
#how-it-works,
#pricing,
#whats-new,
#previous {
  scroll-margin-top: 82px;
}

@media (max-width: 920px) {
  .download-feature-banner {
    grid-template-columns: 1fr;
  }

  .download-feature-art {
    min-height: 190px;
  }

  .panel-one {
    right: 34%;
    top: 38px;
  }

  .panel-two {
    right: 8%;
    top: 12px;
  }
}

@media (max-width: 880px) {
  .download-header-inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .download-brand strong {
    font-size: 18px;
  }

  .download-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: 0 12px 24px rgba(20,30,50,.08);
  }

  .download-nav.is-open {
    display: grid;
    gap: 0;
  }

  .download-nav > a {
    padding: 12px 8px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
  }

  .download-header-actions {
    gap: 11px;
  }

  .download-admin-link,
  .download-header-cta {
    display: none;
  }

  .download-menu-button {
    display: block;
  }

  .download-nav-mobile-actions {
    display: grid;
  }
}

/* Keep the original download-first hero while the rest of the homepage uses the refreshed narrative. */
.download-hero.download-hero-classic {
  padding: 0;
  background: #fbfbfc;
}

.download-hero-classic .download-product-video {
  width: min(860px, 92%);
  border-radius: 13px 13px 0 0;
}

@media (max-width: 760px) {
  .download-hero.download-hero-classic {
    padding: 0;
  }

  .download-hero-classic .download-product-video {
    width: min(90%, 760px);
    border-radius: 13px 13px 0 0;
  }
}

@media (max-width: 480px) {
  .download-hero.download-hero-classic {
    padding: 0;
  }

  .download-hero-classic .download-product-video {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
}

/* Public guide v2 — installation-first UX */
.public-guide-body {
  background: #f5f7fb;
  color: #172036;
}

.public-guide-main {
  padding: 34px 0 76px;
}

.public-guide-body .guide-doc-page-v2 {
  display: grid;
  gap: 28px;
  padding-bottom: 0;
}

.public-guide-body .guide-doc-hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(49, 89, 245, .10), transparent 34%),
    #fff;
  box-shadow: 0 18px 52px rgba(28, 45, 86, .07);
}

.public-guide-body .guide-doc-eyebrow {
  color: #3159f5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.public-guide-body .guide-doc-hero-v2 h1 {
  max-width: 820px;
  margin: 10px 0 0;
  color: #0d1b52;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.public-guide-body .guide-doc-hero-v2 p {
  max-width: 800px;
  margin: 16px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.72;
}

.public-guide-body .guide-doc-hero-v2 p b {
  color: #344054;
}

.guide-doc-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 210px;
}

.public-guide-body .guide-doc-download {
  min-height: 46px;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d3dbe8;
  border-radius: 9px;
  background: #fff;
  color: #0d1b52;
  font-size: 12px;
  font-weight: 800;
}

.public-guide-body .guide-doc-download-primary {
  border-color: #3159f5;
  background: #3159f5;
  color: #fff;
}

.public-guide-body .guide-doc-download-primary:hover {
  background: #2348d8;
  color: #fff;
}

.guide-quick-start {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(28, 45, 86, .055);
  scroll-margin-top: 96px;
}

.guide-quick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.guide-quick-head h2 {
  margin: 7px 0 0;
  color: #0d1b52;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.guide-quick-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.guide-quick-version {
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e0e6f0;
  border-radius: 11px;
  background: #f8faff;
}

.guide-quick-version span,
.guide-quick-version small {
  color: #7b8494;
  font-size: 10px;
}

.guide-quick-version strong {
  color: #0d1b52;
  font-size: 14px;
}

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

.guide-quick-grid > a {
  min-width: 0;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fafbfe;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.guide-quick-grid > a:hover {
  transform: translateY(-2px);
  border-color: #b7c5ff;
  box-shadow: 0 12px 26px rgba(49, 89, 245, .08);
}

.guide-quick-grid b {
  color: #3159f5;
  font-size: 11px;
  letter-spacing: .08em;
}

.guide-quick-grid strong {
  color: #172036;
  font-size: 14px;
  line-height: 1.3;
}

.guide-quick-grid span {
  color: #6d7584;
  font-size: 11px;
  line-height: 1.55;
}

.guide-quick-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cfd9f3;
  border-radius: 13px;
  background: #f3f6ff;
}

.guide-quick-download > div:first-child {
  display: grid;
  gap: 4px;
}

.guide-quick-download > div:first-child > span {
  color: #3159f5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}

.guide-quick-download > div:first-child > strong {
  color: #0d1b52;
  font-size: 15px;
}

.guide-quick-download > div:first-child > small {
  color: #6d7584;
  font-size: 11px;
  line-height: 1.5;
}

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

.guide-quick-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #3159f5;
  border-radius: 8px;
  background: #3159f5;
  color: #fff !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.guide-quick-primary.is-secondary {
  border-color: #c9d3e6;
  background: #fff;
  color: #0d1b52 !important;
}

.guide-quick-primary svg {
  width: 14px;
  height: 14px;
}

.guide-preflight {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding-top: 4px;
  color: #5f6878;
  font-size: 11px;
}

.guide-preflight strong {
  color: #172036;
}

.guide-preflight span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guide-preflight svg {
  width: 13px;
  height: 13px;
  color: #16a36a;
}

.guide-sticky-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #dde3ed;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(28,45,86,.06);
  backdrop-filter: blur(12px);
}

.guide-sticky-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 8px;
  color: #5a6475 !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
}

.guide-sticky-nav a:hover {
  background: #f1f4fa;
  color: #3159f5 !important;
}

.guide-sticky-nav small {
  color: #8d94a1;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-guide-body .guide-video-card-v2,
.guide-main-flow,
.public-guide-body .guide-troubleshooting-v2 {
  padding: 24px;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(28,45,86,.045);
}

.public-guide-body .guide-video-head h2,
.public-guide-body .guide-section-head h2 {
  color: #0d1b52;
}

.public-guide-body .guide-video-head h2 {
  font-size: 22px;
}

.public-guide-body .guide-video-head p,
.public-guide-body .guide-section-head p {
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.public-guide-body .guide-video-youtube-link {
  color: #3159f5;
  font-size: 11px;
  font-weight: 800;
}

.guide-main-flow {
  display: grid;
  gap: 26px;
}

.public-guide-body .guide-phase {
  display: grid;
  gap: 16px;
  scroll-margin-top: 130px;
}

.public-guide-body .guide-phase-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.public-guide-body .guide-phase-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #3159f5;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.public-guide-body .guide-phase-head h2 {
  margin: 0;
  color: #0d1b52;
  font-size: 25px;
  letter-spacing: -.03em;
}

.public-guide-body .guide-phase-head p {
  margin: 6px 0 0;
  color: #6d7584;
  font-size: 12px;
  line-height: 1.6;
}

.public-guide-body .guide-required,
.public-guide-body .guide-optional {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
}

.public-guide-body .guide-required {
  background: #fff1f0;
  color: #b42318;
}

.public-guide-body .guide-optional {
  background: #eef2ff;
  color: #3159f5;
}

.public-guide-body .guide-step-list {
  gap: 12px;
}

.public-guide-body .guide-step-card {
  grid-template-columns: minmax(300px, .86fr) minmax(360px, 1.14fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid #e1e6ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(28,45,86,.035);
  scroll-margin-top: 132px;
}

.public-guide-body .guide-step-card:nth-child(even) {
  background: #fbfcfe;
}

.public-guide-body .guide-step-number {
  width: 38px;
  height: 38px;
  border: 1px solid #bac8ff;
  border-radius: 10px;
  background: #eef2ff;
  color: #3159f5;
  font-size: 10px;
}

.public-guide-body .guide-step-kicker {
  color: #8a92a0;
  font-size: 8px;
}

.public-guide-body .guide-step-card h3 {
  margin-top: 3px;
  color: #172036;
  font-size: 17px;
}

.public-guide-body .guide-step-actions {
  gap: 8px;
  margin-top: 14px;
  color: #5e6777;
  font-size: 12px;
  line-height: 1.62;
}

.public-guide-body .guide-step-actions li::marker {
  color: #3159f5;
}

.public-guide-body .guide-callout {
  margin-top: 13px;
  padding: 11px 12px;
}

.public-guide-body .guide-callout-note {
  border: 1px solid #f1d49b;
  background: #fffaf0;
}

.public-guide-body .guide-callout p {
  color: #6c5b3f;
  font-size: 10px;
  line-height: 1.55;
}

.public-guide-body .guide-callout strong {
  color: #6f4b12;
  font-size: 10px;
}

.guide-step-result {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #cce8db;
  border-radius: 10px;
  background: #f2fbf7;
}

.guide-step-result > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #16885a;
}

.guide-step-result svg {
  width: 14px;
  height: 14px;
}

.guide-step-result p {
  margin: 3px 0 0;
  color: #3e6756;
  font-size: 10px;
  line-height: 1.5;
}

.guide-step-result strong {
  color: #176b4a;
}

.public-guide-body .guide-step-image {
  border: 1px solid #e0e5ed;
  border-radius: 11px;
  background: #f7f8fa;
}

.public-guide-body .guide-step-image img {
  max-height: 520px;
  object-fit: contain;
}

.public-guide-body .guide-step-extra-figure figcaption {
  color: #737c8c;
  font-size: 10px;
}

.guide-tunnel-stage {
  display: grid;
  gap: 18px;
  scroll-margin-top: 130px;
}

.guide-tunnel-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-tunnel-choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e0e6ef;
  border-radius: 13px;
  background: #fafbfe;
}

.guide-tunnel-choice-card.is-recommended {
  border-color: #b8c6ff;
  background: #f2f5ff;
}

.guide-tunnel-choice-card > div {
  min-width: 0;
}

.guide-tunnel-choice-card span {
  display: block;
  color: #3159f5;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
}

.guide-tunnel-choice-card h3 {
  margin: 5px 0 0;
  color: #172036;
  font-size: 15px;
}

.guide-tunnel-choice-card p {
  margin: 5px 0 0;
  color: #6d7584;
  font-size: 10px;
  line-height: 1.5;
}

.guide-tunnel-choice-card > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #c8d3e5;
  border-radius: 8px;
  background: #fff;
  color: #3159f5 !important;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.public-guide-body .guide-tunnel-panel {
  display: grid;
  gap: 14px;
}

.public-guide-body .guide-tunnel-method {
  padding: 18px;
  border: 1px solid #e0e6ef;
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 132px;
}

.public-guide-body .guide-tunnel-method-nodomain {
  border-color: #b9c7ff;
  background: #fbfcff;
}

.public-guide-body .guide-tunnel-method-head > span {
  color: #3159f5;
  font-size: 8px;
}

.public-guide-body .guide-tunnel-method-head h3 {
  color: #172036;
  font-size: 18px;
}

.public-guide-body .guide-tunnel-method-head p,
.public-guide-body .guide-tunnel-steps p {
  color: #667085;
  font-size: 11px;
  line-height: 1.58;
}

.public-guide-body .guide-tunnel-steps article {
  border-color: #e5e9f0;
  background: #fafbfc;
}

.public-guide-body .guide-tunnel-steps article > span {
  background: #eef2ff;
  color: #3159f5;
}

.public-guide-body .guide-tunnel-steps h3 {
  color: #172036;
  font-size: 13px;
}

.public-guide-body .guide-tunnel-command {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #f6f7f9;
}

.public-guide-body .guide-tunnel-command code {
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  color: #273244;
  font-size: 10px;
}

.guide-copy-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #cfd7e4;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.guide-copy-button:hover,
.guide-copy-button.is-copied {
  border-color: #9fb1ff;
  background: #eef2ff;
  color: #3159f5;
}

.public-guide-body .guide-tunnel-steps dd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-guide-body .guide-tunnel-example,
.public-guide-body .guide-tunnel-flow {
  border-color: #dde3ed;
  background: #f7f8fa;
  color: #344054;
}

.public-guide-body .guide-security-note {
  color: #8b3d34;
  background: #fff5f3;
  border-color: #f1c5bf;
}

.guide-anchor-offset {
  width: 0;
  height: 0;
  scroll-margin-top: 132px;
}

.guide-finish-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid #bfe1d2;
  border-radius: 13px;
  background: #f1faf6;
}

.guide-finish-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #dcf3e8;
  color: #148156;
}

.guide-finish-card svg {
  width: 17px;
  height: 17px;
}

.guide-finish-card strong {
  display: block;
  color: #155d42;
  font-size: 14px;
}

.guide-finish-card p {
  margin: 4px 0 0;
  color: #527463;
  font-size: 10px;
  line-height: 1.5;
}

.guide-finish-card > a {
  color: #147352 !important;
  font-size: 10px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.guide-optional-section {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  background: #fff;
  scroll-margin-top: 130px;
}

.guide-optional-section > summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.guide-optional-section > summary::-webkit-details-marker {
  display: none;
}

.guide-optional-section > summary > span {
  display: grid;
  gap: 3px;
}

.guide-optional-section > summary b {
  color: #3159f5;
  font-size: 8px;
  letter-spacing: .08em;
}

.guide-optional-section > summary strong {
  color: #172036;
  font-size: 15px;
}

.guide-optional-section > summary small {
  color: #778091;
  font-size: 10px;
}

.guide-optional-section > summary > svg {
  width: 16px;
  height: 16px;
  color: #697386;
  transition: transform .16s ease;
}

.guide-optional-section[open] > summary > svg {
  transform: rotate(90deg);
}

.guide-optional-content {
  padding: 0 20px 20px;
  border-top: 1px solid #edf0f4;
}

.public-guide-body .guide-vip-prerequisite {
  margin-top: 18px;
  border-color: #cdd8ff;
  background: #f4f6ff;
}

.public-guide-body .guide-vip-prerequisite h2 {
  color: #0d1b52;
}

.public-guide-body .guide-vip-prerequisite p {
  color: #667085;
}

.guide-trouble-checklist {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #f8f9fb;
  color: #525c6c;
  font-size: 10px;
  white-space: nowrap;
}

.guide-trouble-checklist b {
  color: #a0a7b3;
}

.public-guide-body .guide-trouble-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-guide-body .guide-trouble-grid article {
  border-color: #e1e6ee;
  background: #fafbfc;
}

.public-guide-body .guide-trouble-grid strong {
  color: #172036;
  font-size: 12px;
}

.public-guide-body .guide-trouble-grid p {
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

.guide-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 17px;
  background: #0d1b52;
  color: #fff;
}

.guide-support-card h2 {
  margin: 7px 0 0;
  font-size: 22px;
}

.guide-support-card p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.55;
}

.guide-support-card .guide-doc-eyebrow {
  color: #9fb2ff;
}

.guide-support-card > a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #0d1b52 !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .guide-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-guide-body .guide-step-card {
    grid-template-columns: 1fr;
  }

  .public-guide-body .guide-step-media-list {
    max-width: 760px;
  }

  .public-guide-body .guide-trouble-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-guide-main {
    padding-top: 22px;
  }

  .public-guide-body .guide-doc-page-v2 {
    gap: 18px;
  }

  .public-guide-body .guide-doc-hero-v2 {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .guide-doc-hero-actions {
    width: 100%;
    min-width: 0;
  }

  .public-guide-body .guide-doc-hero-v2 h1 {
    font-size: 36px;
  }

  .guide-quick-start {
    padding: 20px;
  }

  .guide-quick-head {
    flex-direction: column;
  }

  .guide-quick-version {
    width: 100%;
  }

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

  .guide-quick-download {
    grid-template-columns: 1fr;
  }

  .guide-quick-download-actions {
    justify-content: flex-start;
  }

  .guide-quick-primary {
    flex: 1 1 190px;
  }

  .guide-sticky-nav {
    top: 64px;
    margin-left: -4px;
    margin-right: -4px;
  }

  .public-guide-body .guide-video-card-v2,
  .guide-main-flow,
  .public-guide-body .guide-troubleshooting-v2 {
    padding: 18px;
  }

  .public-guide-body .guide-phase-head h2 {
    font-size: 22px;
  }

  .guide-tunnel-choice {
    grid-template-columns: 1fr;
  }

  .guide-tunnel-choice-card {
    grid-template-columns: 1fr;
  }

  .guide-tunnel-choice-card > a {
    justify-self: start;
  }

  .guide-finish-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .guide-finish-card > a {
    grid-column: 2;
  }

  .guide-support-card {
    grid-template-columns: 1fr;
  }

  .guide-support-card > a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .public-guide-body .guide-doc-hero-v2 {
    padding: 20px;
  }

  .public-guide-body .guide-doc-hero-v2 h1 {
    font-size: 31px;
  }

  .guide-quick-start {
    padding: 16px;
  }

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

  .guide-quick-grid > a {
    min-height: 0;
  }

  .guide-preflight {
    display: grid;
    align-items: start;
  }

  .public-guide-body .guide-step-card {
    padding: 14px;
  }

  .public-guide-body .guide-step-actions {
    font-size: 11px;
  }

  .public-guide-body .guide-step-image img {
    max-height: 360px;
  }

  .public-guide-body .guide-tunnel-method {
    padding: 12px;
  }

  .guide-optional-section > summary {
    padding: 16px;
  }

  .guide-optional-content {
    padding: 0 14px 14px;
  }

  .public-guide-body .guide-trouble-grid {
    grid-template-columns: 1fr;
  }

  .guide-trouble-checklist {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .guide-trouble-checklist b {
    transform: rotate(90deg);
    margin-left: 12px;
  }
}

/* Public guide v3 — docs-style layout inspired by modern API documentation */
.public-guide-container {
  width: min(1380px, calc(100% - 48px));
}

.public-guide-body .guide-doc-page-v2 {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px) 180px;
  column-gap: 28px;
  row-gap: 24px;
  align-items: start;
}

.public-guide-body .guide-doc-page-v2 > :not(.guide-doc-sidebar):not(.guide-page-toc):not(.guide-mobile-index) {
  grid-column: 2;
}

.public-guide-body .guide-doc-hero-v2 {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 8px 0 28px;
  border: 0;
  border-bottom: 1px solid #e5e9f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-guide-body .guide-doc-hero-v2 h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
}

.public-guide-body .guide-doc-hero-v2 p {
  max-width: 760px;
  font-size: 14px;
}

.guide-doc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.public-guide-body .guide-doc-download {
  min-width: 150px;
}

.guide-doc-sidebar {
  grid-column: 1;
  grid-row: 1 / span 60;
  align-self: start;
  position: sticky;
  top: 82px;
  z-index: 15;
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 8px 18px 20px 0;
  border: 0;
  border-right: 1px solid #e3e7ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guide-sidebar-title {
  display: grid;
  gap: 3px;
  padding: 0 8px;
}

.guide-sidebar-title strong {
  color: #111827;
  font-size: 15px;
}

.guide-sidebar-title span {
  color: #8a93a2;
  font-size: 10px;
}

.guide-sidebar-group {
  display: grid;
  gap: 2px;
}

.guide-sidebar-group > span {
  padding: 0 8px 6px;
  color: #9aa2af;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
}

.guide-doc-sidebar .guide-sidebar-group > a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #5e6878 !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.guide-doc-sidebar .guide-sidebar-group > a:hover {
  background: #eef2ff;
  color: #3159f5 !important;
}

.guide-doc-sidebar small {
  color: #9aa2af;
  font-size: 7px;
  text-transform: uppercase;
}

.guide-page-toc {
  grid-column: 3;
  grid-row: 1 / span 60;
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid #e4e8ef;
}

.guide-page-toc strong {
  margin-bottom: 7px;
  color: #4b5563;
  font-size: 10px;
}

.guide-page-toc a {
  padding: 5px 0;
  color: #8a93a2 !important;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.4;
}

.guide-page-toc a:hover {
  color: #3159f5 !important;
}

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

.public-guide-body .guide-quick-start {
  gap: 18px;
  padding: 22px;
  border-radius: 13px;
  box-shadow: none;
}

.guide-quick-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  overflow: hidden;
}

.guide-quick-grid > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e9edf3;
  border-radius: 0;
  background: #fff;
}

.guide-quick-grid > a:last-child {
  border-bottom: 0;
}

.guide-quick-grid > a:hover {
  transform: none;
  background: #f8faff;
  box-shadow: none;
}

.guide-quick-grid b {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
}

.guide-quick-grid strong {
  align-self: end;
}

.guide-quick-grid span {
  align-self: start;
}

.public-guide-body .guide-video-card-v2,
.public-guide-body .guide-main-flow,
.public-guide-body .guide-troubleshooting-v2 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-guide-body .guide-video-card-v2 {
  padding-top: 4px;
}

.public-guide-body .guide-video-frame {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
}

.public-guide-body .guide-main-flow {
  gap: 32px;
}

.public-guide-body .guide-section-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e9f0;
}

.public-guide-body .guide-phase {
  gap: 14px;
}

.public-guide-body .guide-phase-head {
  grid-template-columns: 38px minmax(0, 1fr);
}

.public-guide-body .guide-phase-index {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.public-guide-body .guide-step-card {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  box-shadow: none;
}

.public-guide-body .guide-step-card:nth-child(even) {
  background: #fff;
}

.public-guide-body .guide-step-media-list {
  max-width: none;
}

.public-guide-body .guide-step-image img {
  max-height: 560px;
  width: 100%;
  object-fit: contain;
}

.guide-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d8e0ee;
  border-radius: 10px;
  background: #f8faff;
  color: inherit !important;
  text-decoration: none;
}

.guide-next-step span {
  color: #8a93a2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.guide-next-step strong {
  color: #3159f5;
  font-size: 12px;
}

.guide-next-step:hover {
  border-color: #b7c5ff;
  background: #f1f4ff;
}

.public-guide-body .guide-tunnel-choice {
  gap: 10px;
}

.public-guide-body .guide-tunnel-choice-card,
.public-guide-body .guide-tunnel-method,
.public-guide-body .guide-optional-section {
  box-shadow: none;
}

.public-guide-body .guide-tunnel-method {
  border-radius: 11px;
}

.public-guide-body .guide-optional-section {
  grid-column: 2;
}

.guide-support-card {
  grid-column: 2;
}

@media (max-width: 1180px) {
  .public-guide-body .guide-doc-page-v2 {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .public-guide-body .guide-doc-page-v2 > :not(.guide-doc-sidebar):not(.guide-mobile-index) {
    grid-column: 2;
  }

  .guide-page-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .public-guide-container {
    width: min(100% - 32px, 860px);
  }

  .public-guide-body .guide-doc-page-v2 {
    display: block;
  }

  .guide-doc-sidebar,
  .guide-page-toc {
    display: none;
  }

  .guide-mobile-index {
    display: block;
    margin: 0 0 18px;
    border: 1px solid #dde4ee;
    border-radius: 10px;
    background: #fff;
  }

  .guide-mobile-index > summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: pointer;
    color: #172036;
    font-size: 12px;
    font-weight: 800;
  }

  .guide-mobile-index > div {
    display: grid;
    padding: 0 10px 10px;
    border-top: 1px solid #edf0f4;
  }

  .guide-mobile-index a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    border-bottom: 1px solid #f0f2f5;
    color: #5f6878 !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
  }

  .guide-mobile-index a:last-child {
    border-bottom: 0;
  }

  .guide-mobile-index small {
    color: #9aa2af;
    font-size: 7px;
    text-transform: uppercase;
  }

  .public-guide-body .guide-doc-page-v2 > * {
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .public-guide-container {
    width: min(100% - 24px, 860px);
  }

  .public-guide-body .guide-doc-hero-v2 {
    padding-top: 2px;
  }

  .public-guide-body .guide-doc-hero-v2 h1 {
    font-size: 30px;
  }

  .guide-doc-hero-actions {
    display: grid;
  }

  .public-guide-body .guide-doc-download {
    width: 100%;
  }

  .guide-quick-head {
    gap: 14px;
  }

  .guide-quick-grid > a {
    min-height: 78px;
  }

  .guide-next-step {
    align-items: flex-start;
    flex-direction: column;
  }
}

.public-guide-body .guide-doc-page-v2 > * {
  min-width: 0;
}

@media (max-width: 1180px) {
  .guide-trouble-checklist {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* Public support */
.download-support {
  padding: 84px 0;
  background: #ffffff;
}

.download-support[hidden] {
  display: none !important;
}

.download-support-heading {
  align-items: end;
  gap: 32px;
  margin-bottom: 26px;
}

.download-support-heading h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: #0d1b52;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.download-support-heading > p {
  max-width: 520px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

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

/* Public help must remain usable even when no Admin contact is configured. */
.download-support-fallback {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--site-line, #e1e6ef);
  border-radius: 12px;
  background: var(--site-panel, #fff);
  color: var(--site-text, #15203b);
}
.download-support-fallback p {
  margin: 0 0 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.download-support-fallback a {
  color: var(--site-accent, #3159f5);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-support-fallback a:focus-visible {
  outline: 3px solid var(--site-accent, #3159f5);
  outline-offset: 4px;
}

.download-support-card:only-child {
  grid-column: 1 / -1;
  max-width: 640px;
}

.download-support-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.download-support-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef2ff;
  color: #3159f5;
}

.download-support-icon.is-zalo {
  background: #eff8ff;
  color: #1570ef;
}

.download-support-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.download-support-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.download-support-card-copy > span {
  color: #7d8594;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.download-support-card-copy > strong {
  overflow-wrap: anywhere;
  color: #0d1b52;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
}

.download-support-card-copy > p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.download-support-card-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.download-support-card-actions button,
.download-support-card-actions a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.download-support-card-actions :is(button, a):focus-visible {
  outline: 2px solid var(--site-accent, #3159f5);
  outline-offset: 3px;
}

.download-support-card-actions a {
  border-color: #3159f5;
  background: #3159f5;
  color: #fff;
}

.download-support-card-actions button:hover {
  border-color: #aebdff;
  background: #f2f5ff;
  color: #3159f5;
}

.download-support-card-actions a:hover {
  background: #2448d9;
  color: #fff;
}

.download-support-note {
  color: #875a19;
  font-size: 12px;
  line-height: 1.55;
}

.download-support-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 18px;
}

.download-support-guide {
  color: var(--site-accent, #3159f5);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.download-support-guide:hover { text-decoration: underline; text-underline-offset: 3px; }
.download-support-guide:focus-visible { outline: 2px solid var(--site-accent, #3159f5); outline-offset: 4px; }

@media (max-width: 760px) {
  .download-support {
    padding: 62px 0;
  }

  .download-support-heading {
    align-items: start;
  }

  .download-support-heading > p {
    max-width: none;
  }

  .download-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .download-support-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 17px;
  }

  .download-support-icon {
    width: 44px;
    height: 44px;
  }

  .download-support-card-copy > strong {
    font-size: 18px;
  }

  .download-support-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-support-card-actions button,
  .download-support-card-actions a {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .download-support-card-actions { grid-template-columns: 1fr; }
}
