/* Wdeck — build guide */

/* ---------- hero ---------- */
.guide-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.guide-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.14), transparent 70%); pointer-events: none;
}
.guide-hero .wrap { position: relative; }
.guide-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.guide-hero .display { margin-block: 18px 18px; max-width: 14ch; }
.guide-hero .lede { margin: 0; max-width: 52ch; }

.guide-resume {
  display: grid; gap: 4px; padding: 16px 18px; min-width: 240px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(156, 92, 255, 0.14), rgba(59, 130, 246, 0.06));
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.guide-resume[hidden] { display: none; }
.guide-resume > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-hover); }
.guide-resume b { font-size: 16px; }
.guide-resume .btn { margin-top: 10px; justify-self: start; }

.phase-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.phase-card {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px 18px 14px; border: 0; border-radius: var(--r-lg); cursor: pointer; text-align: left;
  font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.03);
  transition: background-color 200ms, transform 260ms var(--ease);
}
.phase-card:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.phase-card.is-current { background: rgba(156, 92, 255, 0.1); }
.phase-card-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r); background: #0b0b11; }
.phase-icon { height: 48px; width: auto; max-width: 52px; display: block; }
span.phase-icon > svg { width: 100%; height: 100%; display: block; }
.phase-card-text { display: grid; gap: 2px; min-width: 0; }
.phase-card-text small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.phase-card-text b { font-size: 17px; font-weight: 650; }
.phase-card-text span { font-size: 13px; color: var(--muted); }
.phase-card-bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 3px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.phase-card-bar i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--grad); transition: width 400ms var(--ease); }

/* ---------- layout ---------- */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; padding-bottom: 48px; }

/* rail: a timeline without a box */
.guide-rail {
  position: sticky; top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; padding-right: 4px;
}
.guide-rail-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guide-bar { height: 3px; margin: 10px 0 8px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.guide-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 400ms var(--ease); }
.guide-list { list-style: none; margin: 0; padding: 0; position: relative; }
.guide-phase { margin: 18px 0 6px 34px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.guide-item { position: relative; }
/* the connecting line */
.guide-item::before { content: ""; position: absolute; left: 12px; top: -6px; bottom: -6px; width: 2px; background: rgba(255, 255, 255, 0.07); }
.guide-item.is-done::before { background: rgba(156, 92, 255, 0.45); }
.guide-item button {
  position: relative; width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 5px 8px 5px 0; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer;
  text-align: left; font: inherit; font-size: 14px; color: var(--muted); transition: color 160ms;
}
.guide-item button:hover { color: var(--text); }
.guide-dot {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #101016; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted);
  transition: background 220ms, color 220ms, box-shadow 220ms;
}
.guide-item.is-done .guide-dot {
  color: transparent; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.4l3.2 3.2L18 9.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat, rgba(124, 58, 237, 0.55);
}
.guide-item.is-active button { color: var(--text); font-weight: 600; }
.guide-item.is-active .guide-dot { background: var(--grad); color: #fff; box-shadow: 0 0 0 4px rgba(156, 92, 255, 0.18); }

/* ---------- step ---------- */
.guide-main { min-width: 0; }
.gstep[hidden] { display: none; }
.gstep.is-entering { animation: gstep-in 420ms var(--ease); }
@keyframes gstep-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); } }

.gstep-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.gstep-badge {
  display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 20px;
  background: linear-gradient(160deg, #1a1a24, #0e0e14); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gstep-icon { height: 58px; width: auto; max-width: 64px; display: block; }
span.gstep-icon { display: inline-block; }
span.gstep-icon > svg { width: 100%; height: 100%; display: block; }
.gstep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.gstep-time {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-2);
}
.gstep-time::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--primary-hover);
  background: linear-gradient(var(--primary-hover), var(--primary-hover)) 50% 25% / 1.5px 4px no-repeat;
}
.gstep-needs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gstep-needs em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.gstep-needs span { font-size: 12px; padding: 3px 9px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.05); color: var(--text-2); }

.gstep-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.gstep--wide .gstep-body { grid-template-columns: minmax(0, 1fr); }
.gstep-text .h2 { margin: 0 0 14px; }
.gstep-text > p { color: var(--muted); max-width: 60ch; }
.gstep-text .ticks li { padding: 6px 0; color: var(--text-2); }
.gstep-text .btn { margin-top: 16px; }
.gstep-text .note { margin-top: 18px; }
.gstep-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.gstep-visual { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.gstep-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #07070a; }
.gstep-media video, .gstep-media > img { display: block; width: 100%; height: auto; }
.gstep-media--3d { aspect-ratio: 4 / 3; background: radial-gradient(60% 60% at 50% 55%, rgba(156, 92, 255, 0.08), transparent 70%); overflow: visible; }
.gstep-media--3d > .viewer { position: absolute; inset: 0; aspect-ratio: auto; }

/* kit lists (parts, tools) */
.kit { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.kit li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 8px 12px 8px 6px; border-radius: var(--r); transition: background-color 160ms;
}
.kit li:hover { background: rgba(255, 255, 255, 0.04); }
.kit-icon { width: 56px; height: 56px; object-fit: contain; display: block; }
span.kit-icon > svg { width: 100%; height: 100%; display: block; }
.kit b { display: block; font-size: 15px; }
.kit small { display: block; font-size: 13px; color: var(--muted); }
.kit em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); padding: 3px 9px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.05); }
.kit a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary-hover); text-decoration: none; }
.kit a:hover { color: #fff; }
.kit--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.kit--tools li { grid-template-columns: 64px minmax(0, 1fr); }
.kit--tools .kit-icon { width: 64px; height: 64px; }

/* ---------- controls ---------- */
.guide-controls {
  position: sticky; bottom: 14px; z-index: 5; margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px;
  border-radius: 20px; background: rgba(11, 11, 17, 0.86); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.guide-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 14px; border: 0; border-radius: 14px;
  font: inherit; color: var(--text); background: transparent; cursor: pointer; text-align: left; transition: background-color 160ms;
}
.guide-btn > span:not(.arrow) { display: grid; min-width: 0; }
.guide-btn small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guide-btn b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-btn:hover { background: rgba(255, 255, 255, 0.05); }
.guide-btn:disabled { opacity: 0.35; cursor: default; background: none; }
.guide-btn--next { justify-self: end; text-align: right; background: var(--grad); }
.guide-btn--next:hover { background: var(--grad); filter: brightness(1.1); }
.guide-btn--next small { color: rgba(255, 255, 255, 0.75); }
.guide-dots { display: flex; gap: 5px; }
.guide-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); cursor: pointer; transition: background 200ms, width 260ms var(--ease); }
.guide-dots i.is-done { background: rgba(156, 92, 255, 0.55); }
.guide-dots i.is-active { width: 18px; border-radius: var(--pill); background: var(--grad); }

/* ---------- wiring checklist ---------- */
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.check {
  width: 100%; display: grid; grid-template-columns: 22px 24px minmax(0, 0.8fr) 14px minmax(0, 1.4fr); gap: 10px; align-items: center;
  padding: 8px 12px 8px 8px; border: 0; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono); font-size: 13px; color: var(--text-2); text-align: left; cursor: pointer;
  transition: background-color 180ms, color 180ms;
}
.check b { font-weight: 600; }
.check:hover, .check.is-on { background: rgba(255, 255, 255, 0.07); color: #fff; }
.check .arrow { color: var(--faint); }
.check .wire-swatch { width: 24px; }
.check-box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 180ms, box-shadow 180ms; }
.check[aria-pressed="true"] { color: #fff; }
.check[aria-pressed="true"] .check-box {
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat, var(--grad);
}
.check[aria-pressed="true"] > span:last-child, .check[aria-pressed="true"] b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.checklist-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.checklist-meter { display: grid; gap: 6px; flex: 1; font-size: 13px; color: var(--muted); }
.checklist-meter i { display: block; height: 3px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.checklist-meter b { display: block; height: 100%; width: 0; background: var(--grad); transition: width 300ms var(--ease); }

/* the diagram shows progress: wires not yet ticked stay dimmed */
.wiring--progress { margin: 0; }
.wiring--progress .wiring-dim { opacity: 0.62; }
.wiring--progress .wire.is-done .wire-line { opacity: 1; }
.wiring--progress .wire.is-done .wire-line { filter: none; }
.wiring--progress.is-active .wiring-dim { opacity: 0.78; }
.wiring--progress.is-active .wire.is-done:not(.is-on) .wire-line { opacity: 0.35; }
.wiring--progress .wire.is-on .wire-line { filter: drop-shadow(0 0 6px var(--c)); }

/* ---------- confirm dialog ---------- */
.confirm {
  width: min(420px, calc(100vw - 32px)); padding: 26px; border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
}
.confirm::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.confirm p { color: var(--muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .gstep-body { grid-template-columns: minmax(0, 1fr); }
  .gstep-visual { position: relative; top: 0; order: -1; }
  .kit--tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .phase-cards { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* the rail becomes a horizontal strip of step chips */
  .guide-rail { position: sticky; top: var(--header-h); z-index: 6; max-height: none; overflow: visible; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(4, 4, 6, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .guide-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .guide-list::-webkit-scrollbar { display: none; }
  .guide-phase { display: none; }
  .guide-item::before { display: none; }
  .guide-item button { grid-template-columns: 22px auto; padding: 5px 12px 5px 5px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.04); white-space: nowrap; font-size: 13px; }
  .guide-item.is-active button { background: rgba(156, 92, 255, 0.16); }
  .guide-dot { width: 22px; height: 22px; font-size: 9px; }
  .guide-dots { display: none; }
  .guide-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kit li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .kit li > a, .kit li > span.muted { grid-column: 2 / -1; }
  .kit-icon { width: 48px; height: 48px; }
}
@media (max-width: 560px) {
  .gstep-head { gap: 12px; }
  .gstep-badge { width: 60px; height: 60px; border-radius: 16px; }
  .gstep-icon { height: 44px; }
  .check { grid-template-columns: 20px 18px minmax(0, 0.8fr) 10px minmax(0, 1.3fr); gap: 7px; font-size: 12px; }
  .guide-btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .gstep.is-entering { animation: none; } }

/* Wiring: the diagram spans the full width above a two-column checklist */
.gstep--stack .gstep-body { grid-template-columns: minmax(0, 1fr); }
.gstep--stack .gstep-visual { position: relative; top: 0; order: -1; }
.gstep--stack .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.gstep--stack .gstep-text > p { max-width: 70ch; }
@media (max-width: 760px) { .gstep--stack .checklist { grid-template-columns: minmax(0, 1fr); } }
.kit li > span.muted { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

/* 3D view: hidden for a moment while it jumps to the next step's state, then fades in */
.gstep-media--3d .viewer canvas { transition: opacity 420ms var(--ease); }
.gstep-media--3d .viewer.is-switching canvas { opacity: 0; transition: none; }

/* Controls stay put at the bottom of the screen, centred on the step column */
.guide-controls {
  position: fixed; bottom: 16px; left: var(--ctrl-left, 16px); width: var(--ctrl-w, calc(100vw - 32px)); margin: 0;
}
.guide-main { padding-bottom: 96px; }
@media (max-width: 900px) {
  .guide-controls { left: 10px; width: calc(100vw - 20px); bottom: calc(var(--tabbar-h, 0px) + 18px); }
  .guide-main { padding-bottom: 150px; }
}

/* Rail: one section per phase, each with an animated icon and its own progress */
.guide-section { margin-top: 14px; }
.guide-section:first-child { margin-top: 6px; }
.guide-section-head {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 6px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, 0.03);
  font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: background-color 160ms;
}
.guide-section-head:hover { background: rgba(255, 255, 255, 0.06); }
.guide-section.is-current .guide-section-head { background: rgba(156, 92, 255, 0.12); }
.guide-section-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #0b0b11; }
.guide-section-icon > img, .guide-section-icon > span { height: 34px; width: auto; max-width: 38px; display: block; }
.guide-section-icon > span > svg { width: 100%; height: 100%; display: block; }
.guide-section-text { display: grid; gap: 4px; min-width: 0; }
.guide-section-text b { font-size: 13.5px; font-weight: 650; }
.guide-section-text small { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.guide-section-text small i { flex: 1; height: 3px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.guide-section-text small i::after { content: ""; display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--grad); transition: width 400ms var(--ease); }
.guide-section .guide-list-inner { list-style: none; margin: 6px 0 0; padding: 0; }
@media (max-width: 900px) {
  .guide-section, .guide-section-head { display: contents; }
  .guide-section-head > * { display: none; }
  .guide-section .guide-list-inner { display: contents; }
}

/* Rail title and resume card (visible in the one-screen layout) */
.guide-rail-title { display: none; }
.guide-rail-title p { margin: 8px 0 0; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.guide-rail .guide-resume { min-width: 0; margin: 0 0 14px; padding: 12px 14px; }
.guide-rail .guide-resume b { font-size: 14px; }

/* ---------- One-screen layout: nothing scrolls except inside the rail and the step text ---------- */
@media (min-width: 901px) and (min-height: 560px) {
  html, body { height: 100%; overflow: hidden; }
  .guide-hero { display: none; }
  .guide-rail-title { display: block; margin-bottom: 16px; }
  #main { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
  .guide {
    height: 100%; padding-block: 20px 16px; align-items: stretch;
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .guide-rail { position: relative; top: 0; max-height: none; height: 100%; }

  .guide-main { display: flex; flex-direction: column; min-height: 0; height: 100%; padding-bottom: 0; }
  .gstep { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .gstep[hidden] { display: none; }
  .gstep-head { margin-bottom: clamp(10px, 2vh, 20px); flex: none; }
  .gstep-body { flex: 1; min-height: 0; align-items: stretch; }
  .gstep-text {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 10px;
    scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
    padding-bottom: 24px;
  }
  .gstep-text .h2 { font-size: clamp(30px, 3.4vw, 52px); }
  .gstep-visual { position: relative; top: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
  .gstep-media { max-height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
  .gstep-media video, .gstep-media > img { max-height: 100%; width: auto; max-width: 100%; border-radius: var(--r-lg); }
  .gstep-media--3d { aspect-ratio: auto; height: 100%; }

  /* Wiring: checklist on the left, diagram on the right, as on the other steps */
  .gstep--stack .gstep-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
  .gstep--stack .gstep-visual { order: 0; }
  .gstep--stack .checklist { grid-template-columns: minmax(0, 1fr); }
  .gstep--stack .wiring { width: 100%; }

  /* Tools: two rows of two fit without scrolling */
  .gstep--wide .gstep-body { align-content: start; }

  /* Controls are part of the layout, not floating over it */
  .guide-controls { position: relative; left: auto; bottom: auto; width: auto; flex: none; margin-top: 14px; }
}
@media (min-width: 901px) and (min-height: 560px) and (max-width: 1180px) {
  .guide { grid-template-columns: 210px minmax(0, 1fr); }
  .gstep-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 901px) and (min-height: 560px) {
  .gstep--stack .check { padding-block: 6px; }
  .gstep--stack .checklist { gap: 3px; margin-top: 12px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .gstep-badge { width: 60px; height: 60px; border-radius: 16px; }
  .gstep-icon { height: 44px; }
  .gstep-text .h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
  .gstep-text > p { font-size: 15px; }
  .guide { padding-block: 14px 12px; }
  .guide-controls { margin-top: 10px; }
  .guide-rail-title p { font-size: 20px; }
}
