:root {
  --bg: #fff;
  --ink: #222;
  --muted: #6a6a6a;
  --line: #ebebeb;
  --line-strong: #ddd;
  --wash: #f7f7f7;
  --yellow: #ffd400;
  --yellow-press: #f0c800;
  --fail: #c13515;
  --safe: env(safe-area-inset-bottom, 0px);
  --radius: 12px;
  --max: 1180px;
  --tab: 58px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
html { color-scheme: light; }
body {
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab) + var(--safe));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.mark { font-weight: 700; letter-spacing: 0.18em; font-size: 13px; }
.zh { font-size: 15px; font-weight: 600; }
.nav-cam {
  appearance: none;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.view { display: block; }
.view[hidden] { display: none !important; }

.pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 40px;
}
.page-title {
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sec-head h2, .looks h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sec-lead, .section-lead, .hint-line {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.text-link {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-hero {
  position: relative;
  height: min(72vh, 680px);
  min-height: 480px;
  overflow: hidden;
  background: #1a1814;
}
.landing-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.landing-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.28) 46%, rgba(20, 18, 16, 0.08) 100%);
}
.landing-copy {
  position: absolute;
  left: max(24px, calc((100% - var(--max)) / 2 + 8px));
  bottom: 48px;
  max-width: 520px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.landing-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.lead {
  margin: 16px 0 28px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.cta:hover { background: var(--yellow-press); }
.cta:disabled { opacity: 0.45; cursor: default; }
.cta[data-mode="pause"] {
  background: var(--ink);
  color: #fff;
}
.cta[data-mode="pause"]:hover {
  background: #2a2a2a;
  color: #fff;
}
.cta.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta.ghost-ink {
  background: var(--bg);
  border: 1px solid var(--ink);
}
.empty .cta.ghost-ink { color: var(--ink); }

.stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 18px 20px;
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }

.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 12px;
}
.how-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 14px 16px;
  background: var(--wash);
  border-radius: 14px;
}
.how-item b {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.how-item span {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.eyebrow.ink {
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 11px;
  margin: 0 0 10px;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 4px;
}
.prompt-chips button {
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
}
.prompt-chips button:hover { border-color: var(--ink); }
.story {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 72px;
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.story img, .story-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  background: var(--wash);
  border: 2px solid var(--yellow);
}
.story-dot {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.story b { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; }

.look-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.look {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.look img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: var(--wash);
  display: block;
}
.look span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.space {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.space img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--wash);
  display: block;
}
.space span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}
.space small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.space.on img {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.space.soon img {
  filter: saturate(0.88);
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.base {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.base img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  background: var(--wash);
  display: block;
}
.base span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}
.base small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.base.on img {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.base-picker {
  margin-top: 28px;
}
.base-picker .sec-head {
  margin-bottom: 4px;
}
.base-picker .sec-lead {
  margin: 0 0 16px;
}

.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .sku-card {
  flex: 0 0 160px;
  width: 160px;
}

.empty {
  max-width: 420px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.empty h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.empty p { color: var(--muted); line-height: 1.5; }
.empty .cta { width: 100%; margin-top: 8px; }
.empty .prompt-chips { justify-content: center; margin: 18px 0 4px; }
.agent-box {
  text-align: left;
  margin: 22px 0 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.agent-box.compact {
  margin: 0 0 22px;
  padding: 12px;
}
.agent-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.agent-log:empty { display: none; }
.agent-msg {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.agent-msg.user { background: var(--wash); }
.agent-msg.agent { border: 1px solid var(--line); }
.agent-trace {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}
.agent-form { display: flex; gap: 8px; align-items: flex-end; }
.agent-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  resize: none;
}
.agent-form .cta { width: auto; margin: 0; white-space: nowrap; }
.agent-mode {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.confirm {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: start;
}
.confirm-photo {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--wash);
  min-height: 420px;
}
.confirm-photo img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  display: block;
}
.confirm-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.readout {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.readout b { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.06em; }
.readout span { display: block; }
.readout small { display: block; margin-top: 8px; color: var(--muted); font-weight: 500; }
.confirm-form h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.confirm-form h2:not(:first-of-type) { margin-top: 28px; }
.step-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.step-dots span {
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
}
.step-dots span.on { background: var(--ink); }
.step-nav { display: flex; gap: 10px; margin-top: 18px; }
.step-nav .cta { flex: 1; }
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices button {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
}
.choices button span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.choices button.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.choices button.on span { color: rgba(255, 255, 255, 0.7); }
.text-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 0;
}
.text-back:hover { color: var(--ink); }

.room-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0 6px;
}
.room-strip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--wash);
}
.room-strip p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.room-strip b { color: var(--ink); }

.feed-list { display: grid; gap: 22px; }
.feed-card {
  appearance: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.feed-card img.cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--wash);
  display: block;
}
.feed-card .thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.feed-card .thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--wash);
}
.feed-kicker { margin: 12px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.feed-card strong { display: block; margin-top: 4px; font-size: 20px; }
.feed-why { display: block; margin: 4px 0 8px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.feed-card small { display: block; margin-top: 4px; color: var(--muted); }
.feed-act {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 12px;
}

.gallery {
  display: grid;
  gap: 8px;
  min-width: 0;
  height: min(52vh, 520px);
  min-height: 360px;
}
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 1.4fr 1fr; }
.gallery.n3 {
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery.n3 .shot-hero { grid-row: 1 / span 2; }
.gallery.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n5 {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery.n5 .shot-hero { grid-column: 1; grid-row: 1 / span 2; }
.shot {
  margin: 0;
  background: var(--wash);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.stage-block { min-width: 0; }
.stage-block .cta { width: 100%; margin-top: 12px; }
.stage-block .text-link {
  display: block;
  margin: 10px auto 0;
  text-align: center;
}
.stage-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.gallery.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.gallery { position: relative; }

.book {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px;
  margin-top: 18px;
  background: var(--bg);
}
.book-kicker { margin: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.book-price { margin: 6px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.book-meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.reasons { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reasons li {
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.book-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.tweaks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 8px;
}
.tweak-hint {
  margin: 0 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }

.detail .cta.ghost-ink { width: auto; margin-top: 12px; }
.detail .stage-block .cta { width: 100%; }
.catalog { margin-top: 36px; }
.catalog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.sku-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.sku-card.on { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.sku-art {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--wash);
  width: 100%;
  object-fit: cover;
  display: block;
}
.sku-slot { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.sku-name { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.sku-dim { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sku-price { margin: 8px 0 0; font-size: 16px; font-weight: 700; }

.detail-links {
  display: grid;
  gap: 8px;
  margin: 28px 0 12px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare article {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.compare img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--wash); display: block; }
.compare .body { padding: 14px; }
.compare h3 { margin: 0; font-size: 16px; }
.compare ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--wash); }
.cart-row b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.cart-row span { display: block; margin-top: 2px; font-size: 14px; }
.cart-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.fails { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.fails h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.fail-chip { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fail-chip b { display: block; font-size: 13px; font-weight: 600; }
.fail-chip span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 40;
}

.buydock {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tab) + var(--safe));
  z-index: 15;
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.buydock[hidden] { display: none !important; }
.buydock span { display: block; font-size: 11px; color: var(--muted); }
.buydock strong { font-size: 20px; font-weight: 700; }
.dock-actions { display: flex; gap: 8px; }
.buydock button, .dock-buy {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--wash);
  color: var(--ink);
}
.dock-buy { background: var(--ink) !important; color: #fff !important; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe));
  height: calc(var(--tab) + var(--safe));
}
.tabbar a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.tabbar a.on { color: var(--ink); }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 30;
  display: grid;
  align-items: end;
}
.sheet[hidden] { display: none !important; }
.sheet-card {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(28px + var(--tab));
  max-height: 82vh;
  overflow: auto;
}
.sheet-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sheet-card h3 { margin: 0; font-size: 18px; }
.sheet-card header button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.status { margin: 12px 0 0; font-size: 14px; color: var(--fail); }
.broke { outline: 1px dashed var(--line-strong); }

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

@media (max-width: 960px) {
  .landing-hero { height: 78vh; min-height: 520px; }
  .landing-scrim {
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.15) 20%, rgba(20, 18, 16, 0.78) 100%);
  }
  .landing-copy { left: 20px; right: 20px; bottom: 28px; max-width: none; }
  .landing-copy h1 { font-size: 34px; }
  .how { grid-template-columns: 1fr; padding-top: 4px; }
  .look-grid { grid-template-columns: 1fr 1fr; }
  .space-grid { grid-template-columns: 1fr 1fr; }
  .base-grid { grid-template-columns: 1fr 1fr; }
  .confirm { grid-template-columns: 1fr; padding: 16px 16px 32px; gap: 20px; }
  .confirm-photo, .confirm-photo img { min-height: 220px; height: 38vh; }
  .gallery, .gallery.n2, .gallery.n3, .gallery.n4, .gallery.n5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px;
    height: auto;
    min-height: 0;
  }
  .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .gallery.n3 .shot-hero, .gallery.n5 .shot-hero {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .compare { grid-template-columns: 1fr; }
  #view-detail .pad { padding-bottom: 108px; }
}

@media (min-width: 961px) {
  .tabbar {
    position: sticky;
    top: 53px;
    bottom: auto;
    height: 48px;
    padding: 0 20px;
    max-width: var(--max);
    margin: 0 auto;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  body { padding-bottom: 0; }
  .buydock {
    position: sticky;
    bottom: 0;
  }
  .sheet-card { padding-bottom: 28px; max-width: 720px; margin: 0 auto; width: 100%; }
  .detail { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 28px; align-items: start; }
  .detail .text-back { grid-column: 1 / -1; }
  .detail .stage-block { grid-column: 1; }
  .detail .book { grid-column: 2; grid-row: 2; margin-top: 0; position: sticky; top: 120px; }
  .detail .base-picker { grid-column: 1 / -1; margin-top: 8px; }
  .detail .tweaks, .detail .catalog, .detail .detail-links, .detail .agent-box { grid-column: 1 / -1; }
}
