/* AeterMC site. Colors, radii and fonts come from tokens.css (copied from mcl/src/renderer/tokens.css). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-family-text); font-size: var(--font-size-base); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
a { color: var(--color-accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, .mono { font-family: var(--font-family-mono); font-size: var(--font-size-sm); }
code { background: var(--color-surface-2); padding: 1px 5px; border-radius: 4px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--color-text-3); }
.small { font-size: var(--font-size-sm); }
.lead { color: var(--color-text-2); }

/* Icons from icons.svg: line icons are drawn with the text color, the logo is filled with the accent */
.ic {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 14px; height: 14px; }
.logo { fill: var(--color-accent); transition: fill .25s; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar); background-clip: content-box;
  border-radius: 10px; border: 3px solid transparent;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--color-scrollbar-hover); }

/* ---------- layout ---------- */
.app { flex: 1; display: flex; min-height: 0; }

.sidebar {
  width: var(--size-sidebar); flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 14px 10px;
  overflow: hidden; white-space: nowrap;
  background: var(--color-bg-side);
  border-right: 1px solid var(--color-line);
  transition: width .15s ease, padding .15s ease, background-color .25s;
}

/* The logo is also the collapse button: on hover it turns into a panel icon (same as the launcher) */
.brand {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 6px; margin-bottom: 14px;
  border-radius: var(--radius-md);
  color: var(--color-text); text-align: left;
}
.brand:hover { background: var(--color-hover); }
.brand:focus:not(:focus-visible) { outline: none; }
.brand-logo { position: relative; width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; }
.brand-logo .logo { width: 28px; height: 28px; transition: opacity .1s; }
.brand-toggle {
  position: absolute; inset: 3px; width: 22px; height: 22px;
  color: var(--color-text); opacity: 0; transition: opacity .1s;
}
.brand:hover .brand-logo .logo, .brand:focus-visible .brand-logo .logo { opacity: 0; }
.brand:hover .brand-toggle, .brand:focus-visible .brand-toggle { opacity: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-family-display); font-size: var(--font-size-lg); font-weight: 700; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px;
  border-radius: var(--radius-md);
  color: var(--color-text-2);
  font-weight: var(--font-weight-medium);
}
.nav-item:hover { background: var(--color-hover); color: var(--color-text); text-decoration: none; }
.nav-item.active { background: var(--color-surface-2); color: var(--color-text); }
.nav-item.active .ic { color: var(--color-accent-text); }

/* Accent bar to the left of the active item: sidebar, launcher mock, wizard steps */
.nav-item.active::before,
.mock-side span.on::before,
.step.active::before {
  content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--color-accent);
}
.nav-item.active::before, .step.active::before { animation: bar-in .18s ease-out; }
@keyframes bar-in { from { transform: scaleY(0); } }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.mode-toggle {
  width: 100%; display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px; border-radius: var(--radius-md);
  color: var(--color-text-2);
}
.mode-toggle:hover { background: var(--color-hover); color: var(--color-text); }
/* The moon in a dark theme, the sun in a light one */
:root[data-mode="light"] .mode-toggle .ic-dark,
:root:not([data-mode="light"]) .mode-toggle .ic-light { display: none; }

.main { position: relative; flex: 1; min-width: 0; overflow-y: auto; scroll-behavior: smooth; }
.page {
  max-width: 1080px; margin: 0 auto;
  padding: 56px var(--size-page-padding-x);
  scroll-margin-top: 0;
}
.page + .page { border-top: 1px solid var(--color-line); }
.page-head { margin-bottom: 26px; }
.page-head h2 {
  font-family: var(--font-family-display); font-size: 28px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.page-head .lead { max-width: 560px; font-size: 15px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--size-control); padding: 0 14px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium); white-space: nowrap;
  transition: background-color .12s, transform .08s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: var(--size-control-lg); padding: 0 18px; font-size: var(--font-size-lg); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-line-strong); }
.btn-secondary:hover { background: var(--color-hover); }
.btn-ghost { color: var(--color-text-2); }
.btn-ghost:hover { background: var(--color-hover); color: var(--color-text); }
.btn[hidden] { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px;
  border-radius: 13px; border: 1px solid var(--color-line-strong);
  color: var(--color-text-2); font-size: var(--font-size-xs);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.pill {
  display: inline-flex; align-items: center; vertical-align: middle;
  height: 20px; padding: 0 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.pill-ok { background: var(--color-accent-soft); color: var(--color-accent-text); }
.pill-upd { background: var(--color-update-soft); color: var(--color-update); }
.pill-warn { background: var(--color-warn-soft); color: var(--color-warn); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  min-height: 100vh; padding-top: 40px; padding-bottom: 40px;
}
.hero h1 {
  font-family: var(--font-family-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em;
  margin: 18px 0 14px;
}
.hero .lead { font-size: 16px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }

/* launcher mock window */
.mock {
  border-radius: var(--radius-modal); overflow: hidden;
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg);
  box-shadow: var(--shadow-modal), 0 0 0 6px var(--color-accent-soft);
  font-size: var(--font-size-md);
  animation: rise .5s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* window buttons: two dashes and a cross (.x) */
.mock-titlebar {
  height: 26px; padding: 0 12px;
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  background: var(--color-bg-side); border-bottom: 1px solid var(--color-line);
}
.mock-titlebar i { width: 9px; height: 1.5px; background: var(--color-text-3); }
.mock-titlebar i.x { width: 9px; height: 9px; background: none; position: relative; }
.mock-titlebar i.x::before,
.mock-titlebar i.x::after {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 10px; height: 1.5px; background: var(--color-text-3);
  transform: rotate(45deg);
}
.mock-titlebar i.x::after { transform: rotate(-45deg); }

.mock-body { display: flex; min-height: 360px; }
.mock-side {
  width: 56px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0;
  background: var(--color-bg-side); border-right: 1px solid var(--color-line);
}
.mock-logo { width: 26px; height: 26px; margin-bottom: 12px; }
.mock-side span {
  position: relative;
  width: 36px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-md); color: var(--color-text-3);
}
.mock-side span.on { background: var(--color-surface-2); color: var(--color-accent-text); }

.mock-main { flex: 1; min-width: 0; padding: 16px 18px; }
.mock-label {
  margin: 4px 0 8px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-text-3);
}
.mock-build {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-accent-border);
}
.mock-build .block { width: 40px; height: 40px; flex-shrink: 0; }
.mock-build b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-build small { color: var(--color-text-3); font-size: var(--font-size-xs); }
.mock-play {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600;
}
.mock-play .ic { width: 14px; height: 14px; }
.mock-progress { margin: 12px 0 18px; }
.mock-progress-labels {
  display: flex; justify-content: space-between; margin-bottom: 5px;
  font-size: 11px; color: var(--color-text-3);
}
.mock-list { border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.mock-row + .mock-row { border-top: 1px solid var(--color-line); }
.mock-row .mi { width: 22px; height: 22px; border-radius: var(--radius-icon); flex-shrink: 0; opacity: .9; }
.mock-row .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- progress ---------- */
.progress-track { height: 6px; border-radius: 3px; background: var(--color-surface-2); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: var(--color-accent); transition: width .3s ease-out;
}
.progress-fill.indeterminate { width: 35%; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.progress-labels {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px;
  font-size: var(--font-size-sm); color: var(--color-text-3);
}

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line);
  transition: border-color .15s, transform .15s, background-color .25s;
}
.card:hover { border-color: var(--color-accent-border); transform: translateY(-2px); }
.card-icon {
  width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft); color: var(--color-accent-text);
}
.card-icon.upd { background: var(--color-update-soft); color: var(--color-update); }
.card h3 { font-size: var(--font-size-lg); font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--color-text-2); font-size: var(--font-size-md); }

/* ---------- themes ---------- */
/* dark / light switch above the grid */
.seg {
  display: inline-flex; padding: 3px; gap: 2px; margin-bottom: 16px;
  border-radius: var(--radius-md); background: var(--color-input); border: 1px solid var(--color-line);
}
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 14px; border-radius: var(--radius-sm);
  color: var(--color-text-2); font-weight: 500;
}
.seg button.active {
  background: var(--color-surface-2); color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.theme {
  text-align: left; padding: 8px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line);
  transition: border-color .15s, transform .15s;
}
.theme:hover { transform: translateY(-2px); border-color: var(--color-line-strong); }
.theme.active { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }

/* the mini launcher window of a theme card (colors are set inline by site.js) */
.theme-preview {
  display: flex; height: 84px; overflow: hidden;
  border-radius: var(--radius-md); border: 1px solid rgba(127,127,127,.18);
}
.theme-preview .tp-side { width: 26%; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.theme-preview .tp-side i { height: 6px; border-radius: 3px; opacity: .5; }
.theme-preview .tp-side i:first-child { opacity: 1; }
.theme-preview .tp-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.theme-preview .tp-card {
  flex: 1; padding: 5px; border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.theme-preview .tp-btn { width: 34px; height: 12px; border-radius: 3px; }
.theme-preview .tp-line { height: 5px; width: 60%; border-radius: 3px; opacity: .6; }
.theme-name { display: flex; align-items: center; gap: 6px; padding: 8px 4px 2px; font-weight: 500; }
.theme-name .ic { width: 14px; height: 14px; color: var(--color-accent-text); margin-left: auto; opacity: 0; }
.theme.active .theme-name .ic { opacity: 1; }

/* ---------- download wizard (installer window) ---------- */
.wizard {
  display: flex; min-height: 420px;
  border-radius: var(--radius-modal); overflow: hidden;
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg);
  box-shadow: var(--shadow-modal);
}

/* left column: logo and steps */
.wizard-side {
  width: 220px; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 18px 10px 14px;
  background: var(--color-bg-side); border-right: 1px solid var(--color-line);
}
.wizard-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; }
.wizard-brand .logo { width: 38px; height: 38px; flex-shrink: 0; }
.wizard-brand b {
  display: block;
  font-family: var(--font-family-display); font-size: var(--font-size-lg); line-height: 1.2;
}
.wizard-brand small { font-size: var(--font-size-xs); color: var(--color-text-3); }

.steps { display: flex; flex-direction: column; gap: 1px; }
.step {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px;
  border-radius: var(--radius-md);
  color: var(--color-text-3);
  transition: color .15s, background-color .15s;
}
/* the step number turns into a check mark once the step is done */
.step-num {
  width: 20px; height: 20px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--color-line-strong);
  font-size: var(--font-size-xs); font-weight: 600;
}
.step-num .ic { width: 12px; height: 12px; stroke-width: 2.6; display: none; }
.step.active { color: var(--color-text); background: var(--color-surface-2); }
.step.active .step-num { border-color: var(--color-accent); color: var(--color-accent-text); }
.step.done { color: var(--color-text-2); }
.step.done .step-num { background: var(--color-accent-soft); border-color: transparent; color: var(--color-accent-text); }
.step.done .step-num span { display: none; }
.step.done .step-num .ic { display: block; }
.wizard-side-foot { margin-top: auto; padding: 0 10px; font-size: var(--font-size-xs); color: var(--color-text-3); }

/* right column: one .screen per step */
.wizard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; padding: 26px 32px 12px; }
.screen.active { display: block; animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } }
.screen h3 {
  font-family: var(--font-family-display); font-size: var(--font-size-title); font-weight: 600;
  margin-bottom: 4px;
}
.screen .lead { max-width: 460px; }

/* step 1: setup / portable */
.opt-list { margin-top: 18px; border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; transition: background-color .12s; }
.opt + .opt { border-top: 1px solid var(--color-line); }
.opt:hover { background: var(--color-surface); }
.opt .grow { display: flex; flex-direction: column; }
.opt b { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt small { color: var(--color-text-3); font-size: var(--font-size-sm); margin-top: 2px; }
.opt-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--color-surface-2); color: var(--color-text-2);
}
.opt-icon .ic { width: 16px; height: 16px; }
.opt:has(input:checked) .opt-icon { background: var(--color-accent-soft); color: var(--color-accent-text); }

/* the real radio input is invisible on top of the drawn circle */
.radio { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.radio input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.radio span {
  position: absolute; inset: 0;
  border-radius: 50%; border: 1.5px solid var(--color-line-strong); transition: border-color .12s;
}
.radio input:checked + span { border-color: var(--color-accent); }
.radio input:checked + span::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--color-accent);
  animation: pop .2s cubic-bezier(.2, .9, .3, 1.3);
}
.radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--color-accent-soft); }

.req {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px;
  color: var(--color-text-3); font-size: var(--font-size-sm);
}
.req span { display: inline-flex; align-items: center; gap: 6px; }

/* steps 2 and 3: downloading, done */
.progress-hero, .done-hero { text-align: center; padding-top: 18px; }
.progress-hero .lead, .done-hero .lead { margin: 0 auto; }
.spinner-logo { width: 60px; height: 60px; margin: 0 auto 16px; }
.spinner-logo .logo { width: 100%; height: 100%; animation: logo-pulse 1.6s ease-in-out infinite; }
@keyframes logo-pulse { 50% { opacity: .55; transform: scale(.94); } }
.screen[data-screen="1"] .progress { margin: 34px auto 0; max-width: 460px; }
.done-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-text);
  animation: pop .25s cubic-bezier(.2, .9, .3, 1.3);
}
.done-icon .ic { width: 28px; height: 28px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.next-steps {
  list-style: none; counter-reset: n;
  max-width: 460px; margin: 22px auto 0;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden;
}
.next-steps li {
  counter-increment: n;
  display: flex; gap: 12px; padding: 10px 12px;
  color: var(--color-text-2); font-size: var(--font-size-md);
}
.next-steps li + li { border-top: 1px solid var(--color-line); }
.next-steps li::before {
  content: counter(n);
  width: 20px; height: 20px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--color-surface-2);
  color: var(--color-text); font-size: var(--font-size-xs); font-weight: 600;
}

.wizard-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--color-line); }
.wizard-foot .btn-primary { min-width: 130px; }

/* ---------- faq ---------- */
.faq {
  border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface);
}
.faq details + details { border-top: 1px solid var(--color-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--color-surface-2); }
.faq summary .ic { margin-left: auto; color: var(--color-text-3); transition: transform .18s; }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq details p { padding: 0 16px 16px; color: var(--color-text-2); max-width: 680px; }

.site-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--color-line);
  color: var(--color-text-2); font-size: var(--font-size-sm);
}
.site-foot .logo { width: 18px; height: 18px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  padding: 9px 16px; border-radius: var(--radius-md);
  background: var(--color-toast); color: var(--color-text); box-shadow: var(--shadow-toast);
  font-size: var(--font-size-md); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- collapsed sidebar (toggled by the logo, remembered) ---------- */
@media (min-width: 641px) {
  .sidebar-collapsed .sidebar { width: var(--size-sidebar-collapsed); padding-left: 8px; padding-right: 8px; }
  .sidebar-collapsed .brand { justify-content: center; padding: 0; }
  .sidebar-collapsed .brand-text,
  .sidebar-collapsed .nav-item span,
  .sidebar-collapsed .mode-label { display: none; }
  .sidebar-collapsed .nav-item, .sidebar-collapsed .mode-toggle { justify-content: center; padding: 0; }
  .sidebar-collapsed .nav-item.active::before { left: -8px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; gap: 36px; }
}

/* phones: sidebar becomes a bottom tab bar */
@media (max-width: 640px) {
  .app { flex-direction: column-reverse; }
  .sidebar {
    width: 100%; flex-direction: row; align-items: center;
    padding: 6px 8px; border-right: 0; border-top: 1px solid var(--color-line);
  }
  .brand, .nav-item span, .mode-label { display: none; }
  .nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav-item { width: 44px; height: 40px; justify-content: center; padding: 0; }
  .nav-item.active::before {
    left: 12px; right: 12px; top: auto; bottom: -6px;
    width: auto; height: 3px; border-radius: 3px 3px 0 0;
  }
  .sidebar-bottom { margin: 0; flex-direction: row; }
  .mode-toggle { width: 44px; height: 40px; justify-content: center; padding: 0; }
  .page { padding: 40px 16px; }
  .page-head h2 { font-size: 24px; }
  .mock-body { min-height: 0; }
  .mock-side { display: none; }
  .mock-play { padding: 0 10px; }
  .wizard { flex-direction: column; }
  .wizard-side { width: auto; padding: 14px 10px 10px; border-right: 0; border-bottom: 1px solid var(--color-line); }
  .wizard-brand { padding-bottom: 12px; }
  .steps { flex-direction: row; }
  .step { flex: 1; justify-content: center; padding: 0 4px; font-size: var(--font-size-xs); gap: 6px; }
  .step.active::before { display: none; }
  .wizard-side-foot { display: none; }
  .screen { padding: 20px 16px 10px; }
  .wizard-foot { padding: 12px 16px; flex-wrap: wrap; }
  #foot-note { width: 100%; }
}

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