/* EZ4X4 Images. Navy, EZ4X4 red, plenty of white, few words. */
:root {
  --navy: #1f3864;
  --navy-deep: #14264a;
  --red: #c8102e;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #16223b;
  --muted: #5d6982;
  --line: #e1e6ef;
  --soft: #eef2f8;
  --ok: #1c8a4b;
  --ok-soft: #e8f6ee;
  --bad-soft: #fdecef;
  --accent: var(--navy);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(20, 38, 74, .06), 0 8px 24px rgba(20, 38, 74, .06);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1422;
    --card: #161f33;
    --ink: #e8edf7;
    --muted: #9ba8c2;
    --line: #27324b;
    --soft: #1d2840;
    --ok: #4cc38a;
    --ok-soft: #14301f;
    --bad-soft: #3a1820;
    --accent: #6f95dc;
    --on-accent: #0d1422;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  min-height: 100dvh;
}
h1, h2, p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
small { color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- brand ---------- */
.brand { font-size: 19px; letter-spacing: .2px; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand i { font-style: normal; color: var(--red); }
.brand span { font-weight: 400; opacity: .85; }

/* ---------- top bar ---------- */
.top { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 28px; }
.top-brand { color: #fff; text-decoration: none; }
.places { display: flex; gap: 4px; flex: 1; }
.places a {
  color: rgba(255, 255, 255, .78); text-decoration: none; padding: 8px 14px; border-radius: 9px;
  font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px;
}
.places a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.places a[aria-current] { color: #fff; background: rgba(255, 255, 255, .16); }
.places .ico { display: none; }
.ico { width: 24px; height: 24px; }

.mine { position: relative; margin-left: auto; }
.mine summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: 15px;
}
.mine summary::-webkit-details-marker { display: none; }
.mine summary:hover, .mine[open] summary { background: rgba(255, 255, 255, .18); }
.mine-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 30;
}
.mine-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mine-head small { display: block; }
.mine-menu a, .mine-menu button {
  display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 9px; border: 0; background: none;
  color: var(--ink); font: inherit; text-decoration: none; cursor: pointer;
}
.mine-menu a:hover, .mine-menu button:hover { background: var(--soft); }
.mine-menu form { margin: 0; }

/* ---------- page ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; }
.page.narrow { max-width: 720px; }
.page-title { font-size: 28px; line-height: 1.2; margin-bottom: 18px; letter-spacing: -.2px; }
.block { margin-top: 30px; }
.block h2, .block-title { font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 10px 2px; font-weight: 700; }
.block-title { margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 26px; }
.lead { font-size: 18px; color: var(--muted); }
.actions { margin-top: 20px; }

/* ---------- avatars ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; color: #fff; font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-sm { width: 34px; height: 34px; font-size: 15px; }
.av-md { width: 44px; height: 44px; font-size: 18px; }
.av-lg { width: 60px; height: 60px; font-size: 24px; }
.av-xl { width: 92px; height: 92px; font-size: 36px; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line); }
.av-c0 { background: #1f3864; } .av-c1 { background: #c8102e; } .av-c2 { background: #2f6f8f; }
.av-c3 { background: #6a4c93; } .av-c4 { background: #3d7a55; } .av-c5 { background: #b3611b; }

/* ---------- home ---------- */
.hero { display: flex; align-items: center; gap: 26px; padding: 34px; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.4px; }
.hero .lead { margin-top: 8px; }
.empty { display: flex; align-items: center; gap: 24px; padding: 26px; }
.empty-tall { padding: 44px 30px; }
.empty-art { width: 128px; flex: none; }
.empty-title { font-size: 18px; font-weight: 700; }
.art-wall { fill: var(--soft); }
.art-roof { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art-open { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.art-door { fill: var(--navy); }
.art-line { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.art-rail { fill: var(--red); }
.art-floor { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .art-roof { stroke: #6f95dc; } .art-door { fill: #2b4a86; } }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-left: 5px solid var(--red); }
.crew { display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 22px 18px; }
.crew-one { width: 108px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.crew-one strong { margin-top: 8px; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon-tag { background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 600; }
.field > span small { margin-left: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select {
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%; min-height: 48px; font-weight: 400;
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.check { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer;
  padding: 11px 20px; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none; width: fit-content;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
@media (prefers-color-scheme: dark) { .btn-primary { background: #2f55a0; border-color: #2f55a0; } .btn-primary:hover { background: #3a63b5; border-color: #3a63b5; } }
.btn-wide { width: 100%; min-height: 52px; font-size: 17px; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.note { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; }
.note-ok { background: var(--ok-soft); color: var(--ok); }
.note-bad { background: var(--bad-soft); color: var(--red); }
@media (prefers-color-scheme: dark) { .note-bad { color: #ff8fa0; } }

.step { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; min-width: 0; }
.step legend { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.step legend b { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

.tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tone input { position: absolute; opacity: 0; }
.tone-card { display: grid; gap: 6px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.tone-name { font-weight: 700; }
.tone-sample { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tone input:checked + .tone-card { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--soft); }
.tone input:focus-visible + .tone-card { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.photo-pick { display: flex; align-items: center; gap: 22px; }
.photo-pick .muted { margin-top: 8px; }

/* ---------- sign-in and join ---------- */
body.bare { background: linear-gradient(180deg, var(--navy-deep) 0 230px, var(--bg) 230px); }
.gate { max-width: 440px; margin: 0 auto; padding-top: 22px; }
.gate-wide { max-width: 600px; }
.gate-brand { color: #fff; text-align: center; margin-bottom: 30px; }
.gate-brand .brand { font-size: 28px; }
.gate .card { box-shadow: 0 12px 40px rgba(20, 38, 74, .16); }
.gate .lead { margin-bottom: 22px; font-size: 16px; }
.gate-who { text-align: center; margin: -4px 0 22px; }
.gate-who h1 { font-size: 24px; margin-top: 14px; }
.gate-alt { text-align: center; margin-top: 18px; }
.gate-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }

/* ---------- team ---------- */
.rows > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.row form { margin: 0; }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-fold summary { list-style: none; cursor: pointer; }
.row-fold summary::-webkit-details-marker { display: none; }
.row-fold.is-off summary { opacity: .55; }
.fold-body { padding: 4px 18px 22px 76px; }
.fold-extra { margin-top: 16px; }
.you { font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.linkbox { border-left: 5px solid var(--ok); display: grid; gap: 12px; }
.copy-row { display: flex; gap: 10px; }
.copy-text { font-family: ui-monospace, Consolas, monospace !important; font-size: 14px !important; }

/* ---------- the door ---------- */
.door { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; animation: door-gone 0s linear forwards; }
.door-panel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(180deg, #24427a 0 2px, #1f3864 2px 40px, #162a50 40px 44px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  animation: door-up 1s cubic-bezier(.7, 0, .25, 1) forwards;
  will-change: transform;
}
.door-sign { text-align: center; color: #fff; padding: 30px 38px; background: rgba(13, 24, 48, .78); border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); max-width: min(86vw, 560px); }
.door-brand .brand { font-size: clamp(30px, 6vw, 46px); }
.door-text { margin-top: 12px; font-size: clamp(18px, 3.4vw, 24px); color: rgba(255, 255, 255, .9); }
.door-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--red); }
.door-handle { position: absolute; left: 50%; bottom: 34px; width: 92px; height: 12px; margin-left: -46px; border-radius: 8px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.door-skip { position: absolute; right: 18px; bottom: 30px; z-index: 2; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; animation: door-fade .3s linear 1.4s forwards; }
/* the first time: read the welcome, then the door rolls up */
.door-first { animation-delay: 3.200s; }
.door-first .door-panel { animation-duration: 1.500s; animation-delay: 1.700s; }
/* later: quick */
.door-short { animation-delay: 1.250s; }
.door-short .door-panel { animation-duration: .750s; animation-delay: .500s; }
.door.is-skipped { display: none; }
@keyframes door-up { to { transform: translateY(-103%); } }
@keyframes door-gone { to { visibility: hidden; pointer-events: none; } }
@keyframes door-fade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .door-panel { animation-name: door-fade; animation-duration: .350s !important; }
  .door-first { animation-delay: 2.100s; }
  .door-short { animation-delay: .900s; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top-in { height: 54px; padding: 0 14px; }
  .mine-name { display: none; }
  .mine summary { padding: 4px; }
  .places {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0; justify-content: space-around;
  }
  .places a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 12px; color: var(--muted); min-height: 52px; justify-content: center; }
  .places a:hover { background: none; color: var(--muted); }
  .places a[aria-current] { color: var(--accent); background: none; }
  .places .ico { display: block; }
  .page { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  body.bare .page { padding-bottom: 40px; }
  .page-title { font-size: 24px; }
  .pad { padding: 20px; }
  .hero { padding: 24px 20px; gap: 18px; }
  .hero h1 { font-size: 25px; }
  .hero .av-xl, .photo-pick .av-xl { width: 72px; height: 72px; font-size: 28px; }
  .lead { font-size: 16px; }
  .empty { flex-direction: column; text-align: center; gap: 14px; }
  .callout { flex-direction: column; align-items: stretch; }
  .callout .btn { width: 100%; }
  .crew { justify-content: space-around; }
  .crew-one { width: 31%; }
  .tones { grid-template-columns: 1fr; }
  .fold-body { padding-left: 18px; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
}

/* ================= step 2: products, gallery, compare ================= */
:root { --stage: #e4e8ef; }
@media (prefers-color-scheme: dark) { :root { --stage: #090e18; } }
.page.wide { max-width: 1560px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head-row .page-title { margin: 0; }
.search { flex: 0 1 360px; }
.crumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.crumb a { text-decoration: none; font-weight: 600; }
.sku { font-weight: 800; color: var(--accent); letter-spacing: .3px; margin-right: 6px; white-space: nowrap; }
.two { display: grid; grid-template-columns: 1fr 240px; gap: 14px; }
.fold-card { margin: 0 0 26px; }
.grid + .fold-card, .empty + .fold-card { margin-top: 28px; }
.fold-card > summary { list-style: none; cursor: pointer; padding: 16px 18px; }
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card[open] > summary { border-bottom: 1px solid var(--line); }
.pad-s { padding: 16px; }

/* gallery */
.shelf { margin-bottom: 30px; }
.shelf-head { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; text-decoration: none; color: var(--ink); margin: 0 2px 10px; font-size: 17px; }
.shelf-head small { margin-left: auto; }
.shelf-head:hover strong { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.grid-big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: block; transition: box-shadow .15s, border-color .15s; }
.tile:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.tile-img { display: block; aspect-ratio: 1; background: #fff; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 10px; font-size: 13px; border-top: 1px solid var(--line); }
.tile-foot small { font-size: 12px; white-space: nowrap; }
.tile-foot b { white-space: nowrap; }
.grid:not(.grid-big) .tile-foot { flex-direction: column; gap: 0; padding: 6px 9px; }
.tile-foot small.more { color: var(--accent); font-weight: 700; }
.empty-link { text-decoration: none; padding: 18px 20px; }

/* upload */
.drop { border-style: dashed; border-width: 2px; box-shadow: none; padding: 18px; }
.drop.is-over { border-color: var(--accent); background: var(--soft); }
.drop-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; cursor: pointer; }
.is-busy .btn { opacity: .5; pointer-events: none; }
.drop-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.drop-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px 11px; background: var(--soft); border-radius: 8px; font-size: 14px; overflow: hidden; }
.drop-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-list li small { flex: none; }
.drop-list li i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .2s; }
.drop-list li.is-ok i { background: var(--ok); }
.drop-list li.is-ok small { color: var(--ok); font-weight: 700; }
.drop-list li.is-bad i { background: var(--red); }
.drop-list li.is-bad small { color: var(--red); font-weight: 700; white-space: normal; text-align: right; }

/* compare */
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-top .crumb { margin: 0; }
.steps { display: inline-flex; gap: 4px; }
.step-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; font-size: 18px; color: var(--ink); }
.step-btn.is-off { opacity: .35; }
.cmp-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-weight: 600; font-size: 14px; border: 0; background: none; color: var(--ink); padding: 8px 14px; min-height: 38px; cursor: pointer; }
.seg button + button, .seg-read + button, button + .seg-read { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--soft); }
.seg button[aria-pressed=true] { background: var(--navy); color: #fff; }
.seg-read { min-width: 62px; text-align: center; align-self: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); padding: 0 6px; }

.cmp { display: grid; grid-template-columns: 256px minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.cmp h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; }
.cmp-versions { display: grid; gap: 8px; max-height: calc(100dvh - 170px); overflow: auto; padding: 2px; }
.ver { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 9px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; }
.ver.is-a { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.ver.is-b { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.ver.is-a.is-b { box-shadow: inset 4px 0 0 var(--navy), inset -4px 0 0 var(--red); }
.ver-thumb { grid-row: span 2; align-self: start; width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 7px; border: 1px solid var(--line); }
.ver-main { display: grid; min-width: 0; font-size: 14px; }
.ver-main small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-acts { grid-column: 2; display: flex; gap: 6px; }
.ver-acts .dl { margin-left: auto; }
.ab, .dl { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1.5px solid var(--line); font-weight: 800; font-size: 13px; text-decoration: none; color: var(--muted); background: var(--card); }
.ab:hover, .dl:hover { border-color: var(--accent); color: var(--ink); }
.ab[data-pick=a].is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ab[data-pick=b].is-on { background: var(--red); border-color: var(--red); color: #fff; }
.ver-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 7px; padding: 6px 9px; margin-top: 2px; }

.cmp-stage { position: relative; height: calc(100dvh - 170px); min-height: 420px; background: var(--stage); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pane { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.pane img { width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.tag { position: absolute; bottom: 12px; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; pointer-events: none; white-space: nowrap; }
.tag-a { left: 12px; background: var(--navy); }
.tag-b { right: 12px; background: var(--red); }
.handle { display: none; }
/* without JavaScript: the two pictures simply sit next to each other */
.cmp:not(.is-live) .cmp-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* with JavaScript */
.cmp.is-live .cmp-stage { touch-action: none; user-select: none; -webkit-user-select: none; }
.cmp.is-live[data-mode=slider] .pane, .cmp.is-live[data-mode=one] .pane { position: absolute; inset: 0; }
.cmp.is-live[data-mode=slider] .cmp-stage { cursor: ew-resize; }
.cmp.is-live[data-mode=one] .pane-b { display: none; }
.cmp.is-live[data-mode=side] .cmp-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line); }
.cmp.is-live[data-mode=side] .pane { background: var(--stage); }
.cmp.is-live.is-zoomed .cmp-stage { cursor: grab; }
.cmp.is-live[data-mode=slider] .handle { display: block; position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; cursor: ew-resize; z-index: 3; outline-offset: -4px; }
.handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 38, 74, .35); }
.handle span { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.handle span::before, .handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 0 2.500px 2.500px; margin-top: -5px; }
.handle span::before { left: 11px; transform: rotate(45deg); }
.handle span::after { right: 11px; transform: rotate(-135deg); }

.cmp-side { display: grid; gap: 12px; }
.code-big { font-size: 20px; font-weight: 800; }
.rename { display: grid; gap: 10px; margin-bottom: 12px; }
.form-tight { gap: 12px; }
.btn-wide-s { width: 100%; overflow: hidden; }
.btn-wide-s span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-side input:not([type=checkbox]):not([type=radio]):not([type=file]) { min-height: 42px; padding: 9px 12px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cmp { grid-template-columns: minmax(0, 1fr) 250px; }
  .cmp-stage { grid-column: 1; grid-row: 1; height: 62dvh; }
  .cmp-versions { grid-column: 2; grid-row: 1 / span 2; max-height: none; }
  .cmp-side { grid-column: 1; grid-row: 2; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
  .search { flex-basis: 100%; }
  .tile-foot { flex-direction: column; gap: 0; padding: 6px 8px; }
  .cmp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cmp-stage { grid-column: 1; grid-row: 1; height: 56dvh; min-height: 300px; }
  .cmp-versions { grid-column: 1; grid-row: 2; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .cmp-versions h2 { display: none; }
  .ver { flex: 0 0 82%; scroll-snap-align: start; }
  .cmp-side { grid-row: 3; }
  .cmp.is-live[data-mode=side] .cmp-stage, .cmp:not(.is-live) .cmp-stage { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .cmp-tools { width: 100%; justify-content: space-between; }
  .seg button { padding: 8px 11px; }
  .cmp-hint { display: none; }
}

/* ================= step 3: Amazon listings, approvals, comment pins ================= */
:root { --wait: #b7791f; --wait-soft: #fdf3dc; }
@media (prefers-color-scheme: dark) { :root { --wait: #e6b450; --wait-soft: #33290f; } }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-waiting { background: var(--wait-soft); color: var(--wait); }
.badge-rejected { background: var(--bad-soft); color: var(--red); }
@media (prefers-color-scheme: dark) { .badge-rejected { color: #ff8fa0; } }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--card); }
.dot-approved { background: var(--ok); } .dot-waiting { background: var(--wait); } .dot-rejected { background: var(--red); }
.legend { color: var(--muted); font-size: 13px; display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.legend .dot { margin-left: 10px; }
.head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-s { margin: -8px 0 18px; }
.after { margin-top: 16px; }
button:disabled { opacity: .4; cursor: default; }

.strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; text-decoration: none; }
.strip-one { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; }
.strip-one img { width: 100%; height: 100%; object-fit: contain; }
.strip-one .dot { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; }
.strip-one.is-empty { background: none; border-style: dashed; border-width: 2px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 14px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.slot { padding: 14px; display: grid; gap: 10px; align-content: start; scroll-margin-top: 80px; }
.slot.is-empty { box-shadow: none; border-style: dashed; border-width: 2px; background: none; }
.slot:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.slot-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slot-img { display: block; aspect-ratio: 1; background: #fff; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.slot-img img { width: 100%; height: 100%; object-fit: contain; }
.slot-blank { background: none; border: 0; display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 44px; font-weight: 800; }
.slot-meta { font-size: 13px; color: var(--muted); }
.slot-meta b { color: var(--ink); }
.pins-open { color: var(--red); font-weight: 700; }
.slot-why { font-size: 13px; background: var(--bad-soft); color: var(--ink); border-radius: 8px; padding: 7px 10px; }
.slot-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.slot-acts form { display: flex; gap: 6px; margin: 0; }
.slot-pick summary { list-style: none; cursor: pointer; font-size: 14px; }
.slot-pick summary::-webkit-details-marker { display: none; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; max-height: 220px; overflow: auto; }
.pick button { padding: 0; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.pick button:hover { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.pick img { width: 100%; height: 100%; object-fit: contain; }
.pick-up { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; }
.pick-up input[type=file] { max-width: 100%; font: inherit; font-size: 13px; color: var(--muted); }

.shop { display: grid; grid-template-columns: 74px minmax(0, 1.25fr) minmax(220px, .75fr); gap: 20px; padding: 22px; align-items: start; }
.shop-thumbs { display: grid; gap: 8px; }
.shop-thumbs a { display: block; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.shop-thumbs a.is-on { border-color: #e77600; box-shadow: 0 0 0 2px rgba(231, 118, 0, .3); }
.shop-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.shop-main { background: #fff; border-radius: 10px; aspect-ratio: 1; }
.shop-main img { width: 100%; height: 100%; object-fit: contain; }
.shop-side { display: grid; gap: 12px; align-content: start; }
.shop-title { font-size: 22px; line-height: 1.25; }
.shop-now { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ghost-lines { display: grid; gap: 9px; margin: 6px 0 10px; }
.ghost-lines i { height: 11px; border-radius: 6px; background: var(--soft); }
.ghost-lines i:nth-child(1) { width: 38%; height: 18px; } .ghost-lines i:nth-child(3) { width: 86%; } .ghost-lines i:nth-child(4) { width: 62%; }

.row-link { text-decoration: none; color: var(--ink); }
.row-link:hover { background: var(--soft); }
.row-thumb { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.count { min-width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex: none; }
.count-wait { background: var(--wait-soft); color: var(--wait); }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 28px; gap: 14px; align-items: center; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { width: 100%; height: 10px; display: block; }
.bar-bg { fill: var(--soft); } .bar-fill { fill: var(--red); }

.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; width: 100%; }
.btn-ok:hover { border-color: var(--ok); filter: brightness(1.08); }
.btn-no { width: 100%; }
.btn-no-go { background: var(--red); border-color: var(--red); color: #fff; width: 100%; }
@media (prefers-color-scheme: dark) { .btn-ok { color: #06220f; } }
.decide-form { display: grid; gap: 8px; margin: 10px 0 4px; }
.decide-now { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.no summary { list-style: none; }
.no summary::-webkit-details-marker { display: none; }
.no[open] summary { border-color: var(--red); color: var(--red); }
.no-body { display: grid; gap: 9px; margin-top: 12px; }
.no-body .check { font-size: 15px; }
.no-body .check input { accent-color: var(--red); }

.pin-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pin, .pin-no { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font: 800 13px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pin { position: absolute; margin: -14px 0 0 -14px; border: 2.500px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: pointer; pointer-events: auto; padding: 0; box-sizing: content-box; width: 24px; height: 24px; }
.pin.is-active { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--red), 0 2px 10px rgba(0, 0, 0, .5); z-index: 1; }
.pin.is-done, .thread.is-done .pin-no { background: #6b7a90; }
.pin.is-new, .pin-no.is-new { background: var(--navy); }
.cmp.is-live.is-pinning:not(.is-zoomed) .cmp-stage { cursor: crosshair; }
.thread { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.thread + .thread { border-top: 1px solid var(--line); border-radius: 0; }
.thread.is-active, .thread.is-new { background: var(--soft); border-radius: 10px; }
.thread.is-done .say { color: var(--muted); }
.thread-body { display: grid; gap: 6px; min-width: 0; }
.say { font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.thread-acts { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.pin-form { display: grid; gap: 8px; }
.pin-form textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; resize: vertical; }
.pin-form-row { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .slot { padding: 10px; }
  .shop { grid-template-columns: 1fr; padding: 14px; }
  .shop-thumbs { grid-template-columns: repeat(7, minmax(0, 1fr)); order: 2; }
  .shop-main { order: 1; } .shop-side { order: 3; }
  .bar-row { grid-template-columns: 120px minmax(0, 1fr) 24px; gap: 10px; font-size: 14px; }
  .head-acts { width: 100%; }
  .head-acts .btn { flex: 1; }
}
.slot > *, .pick button { min-width: 0; }
@media (max-width: 760px) {
  .row { padding: 12px 14px; gap: 10px; }
  .row-main strong { font-size: 15px; }
  .pick { grid-template-columns: repeat(3, 1fr); }
}


/* ================= step 4: the owner's phone screen and the shopper-size views ================= */
.seg a { font-weight: 600; font-size: 14px; color: var(--ink); padding: 8px 14px; min-height: 38px; text-decoration: none; display: inline-flex; align-items: center; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a:hover { background: var(--soft); }
.seg a[aria-current] { background: var(--navy); color: #fff; }

body.review-page .places { display: none; }
.page.review { max-width: 760px; padding: 0; }
.rv { display: flex; flex-direction: column; height: calc(100dvh - 60px); }
.rv-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.rv-back { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.rv-title { flex: 1; min-width: 0; display: grid; }
.rv-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.rv-pic { position: relative; max-width: 100%; max-height: 100%; display: flex; line-height: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.rv-pic img { max-width: 100%; max-height: calc(100dvh - 60px - 62px - 26px - 46px - 96px); width: auto; height: auto; border-radius: 12px; -webkit-user-drag: none; user-select: none; }
.rv-pic.is-asking { animation: rv-ask .9s ease 2; }
@keyframes rv-ask { 50% { box-shadow: 0 0 0 5px var(--red); } }
.rv-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 4px; }
.rv-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.rv-dots i.is-approved { background: var(--ok); } .rv-dots i.is-rejected { background: var(--red); } .rv-dots i.is-waiting { background: var(--wait); }
.rv-dots i.is-on { transform: scale(1.5); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.500px var(--ink); }
.rv-hint { text-align: center; font-size: 14px; color: var(--muted); padding: 2px 16px 8px; min-height: 46px; }
.rv-bar { display: flex; gap: 10px; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); }
.rv-bar .btn { flex: 1; min-height: 60px; font-size: 18px; width: auto; border-radius: 14px; }
.rv-yes { flex: 2 !important; background: var(--ok); border-color: var(--ok); color: #fff; }
.rv-no { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.rv-no-go { background: var(--red); border-color: var(--red); color: #fff; }
@media (prefers-color-scheme: dark) { .rv-yes { color: #06220f; } .rv-no { color: #ff8fa0; } }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(8, 14, 28, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-in { background: var(--card); color: var(--ink); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-height: 88dvh; overflow: auto; animation: sheet-up .2s ease-out; }
@keyframes sheet-up { from { transform: translateY(30%); opacity: 0; } }
.sheet-in h2 { font-size: 19px; }
.sheet-in textarea { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; resize: vertical; }
.sheet-reasons { display: grid; gap: 4px; }
.sheet-reasons .check { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; }
.sheet-reasons .check:has(input:checked) { border-color: var(--red); background: var(--bad-soft); }
.sheet-reasons input { accent-color: var(--red); }
.sheet-row { display: flex; gap: 10px; }
.sheet-row .btn { flex: 1; width: auto; min-height: 52px; }
.sheet-in .note { margin: 0; }
@media (min-width: 761px) { .sheet { align-items: center; } .sheet-in { border-radius: 20px; } }
@media (max-width: 760px) { .rv { height: calc(100dvh - 54px); } .rv-pic img { max-height: calc(100dvh - 54px - 62px - 26px - 46px - 96px); } }

/* shopper-size views */
.fake-search { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-size: 14px; max-width: 320px; margin-bottom: 18px; }
.results { display: flex; gap: 16px; overflow-x: auto; padding: 14px 0 6px; }
.result { flex: 0 0 218px; position: relative; }
.result img, .result .other { width: 218px; height: 218px; border-radius: 6px; }
.result img { object-fit: contain; background: #fff; border: 2px solid var(--navy); }
.other { background: var(--soft); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.3; }
.yours, .yours-inline { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 9px; }
.yours { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 1; }
.yours-inline { width: fit-content; }
.result .ghost-lines { margin-top: 12px; }
.result .ghost-lines i:nth-child(1), .p-result .ghost-lines i:nth-of-type(1) { width: 92%; height: 11px; }
.result .ghost-lines i:nth-child(2), .p-result .ghost-lines i:nth-of-type(2) { width: 44%; background: #f2c200; opacity: .8; }
.result .ghost-lines i:nth-child(3), .p-result .ghost-lines i:nth-of-type(3) { width: 30%; height: 16px; }
.phone-wrap { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.phone { width: 360px; max-width: 100%; border: 10px solid #1b2130; border-radius: 34px; padding: 18px 12px; background: var(--card); flex: none; }
.p-result { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.p-result img, .p-result .other { width: 140px; height: 140px; border-radius: 6px; }
.p-result img { object-fit: contain; background: #fff; }
.p-result .ghost-lines { margin: 0; }
.phone-say { flex: 1; min-width: 240px; display: grid; gap: 10px; }
.pickline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.pick-thumb { width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.pick-thumb.is-on { border-color: var(--navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.pick-thumb img { width: 100%; height: 100%; object-fit: contain; }
