
  /* Zar shop layout. Uses the shared tokens read-only; everything here is local to /zarshop/. */
  :root { --gutter: 24px; --panel-w: 360px; }
  body { margin: 0; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
  .hidden { display: none !important; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

  /* header: compact hairline bar, flat monochrome mark, no glow */
  .bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
  .bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; }
  .brand .z-mark-icon { width: 20px; height: 20px; }
  .brand span:last-child { font-weight: 400; color: var(--text-muted); }
  .bar nav a { font-size: 13.5px; }

  /* home */
  .intro { padding: 56px 0 32px; }
  .intro h1 { margin: 8px 0 0; }
  .intro p { margin: 12px 0 0; max-width: 520px; color: var(--text-muted); }
  .types { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding-bottom: 72px; }
  .type-card { display: grid; text-decoration: none; color: inherit; border: 1px solid var(--border); transition: border-color 150ms var(--ease-out); }
  .type-card:hover, .type-card:focus-visible { border-color: var(--border-strong); }
  .type-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
  .type-card .meta { display: grid; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--border); }
  .type-card .name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
  .type-card .sub { color: var(--text-muted); font-size: 12.5px; }

  /* product */
  .crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-muted); text-decoration: none; font-size: 13px; }
  .crumb:hover { color: var(--text); }
  .head { padding: 12px 0 20px; }
  .head h1 { margin: 6px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
  .head .edition { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }
  .product { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); gap: 40px; align-items: start; padding-bottom: 72px; }
  .stage-col { min-width: 0; position: sticky; top: 72px; }
  .stage { position: relative; width: 100%; height: min(72vh, 720px); min-height: 420px; background: #000; touch-action: none; overflow: hidden; }
  .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
  /* loader (UI patch "skeleton-loader-1"): the product photo holds the stage until usable 3D is on screen.
     One monochrome sheen + a 1px hairline track; text and bar only state what real events report. */
  .stage .z-skeleton { position: absolute; inset: 0; display: block; border: 0; background: #000; color: rgba(255,255,255,.72); --sweep: rgba(255,255,255,.06); transition: opacity 200ms var(--ease-out); }
  .stage .z-skeleton img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .58; transition: opacity 260ms var(--ease-out); }
  .stage .z-skeleton.done { opacity: 0; pointer-events: none; }
  .stage .z-skeleton.done::after { animation: none; }
  .ld-foot { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; display: grid; justify-items: center; gap: 10px; padding: 10px 14px; background: rgba(0,0,0,.72); }   /* square caption box keeps text legible over light cases */
  .ld-track { min-width: 140px; }
  .ld-track { position: relative; width: min(180px, 48%); height: 1px; overflow: hidden; background: rgba(255,255,255,.16); }
  .ld-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: rgba(255,255,255,.8); transition: width 180ms linear; }
  .ld-track.indet .ld-bar { width: 26%; transition: none; animation: ld-slide 1500ms var(--ease-camera) infinite; }
  @keyframes ld-slide { from { transform: translateX(-100%); } to { transform: translateX(385%); } }
  .ld-text { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 12px; line-height: 1.4; text-align: center; color: rgba(255,255,255,.72); }
  .ld-bytes { font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.5); }
  .ld-actions { display: flex; gap: 8px; }
  .ld-actions button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 12.5px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.32); cursor: pointer; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
  .ld-actions button:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
  .ld-actions button:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
  .sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255,255,255,.62); font-size: 12px; white-space: nowrap; pointer-events: none; transition: opacity 400ms var(--ease-out); }
  .hint.gone { opacity: 0; }

  .panel { display: grid; gap: 32px; min-width: 0; }
  .block > .z-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .story { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

  /* variation matrix: colour rows x edition columns */
  .matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .matrix .colhead { color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 2px; }
  .tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px; font: inherit; text-align: left; color: var(--text); background: transparent; border: 1px solid var(--border); cursor: pointer; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
  .tile:hover { background: var(--bg-hover); }
  .tile[aria-pressed="true"] { border-color: var(--border-strong); }
  .tile img { width: 44px; height: 44px; object-fit: cover; background: #000; display: block; }
  .tile b { display: block; font-weight: 500; font-size: 13.5px; }
  .tile small { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; }
  .sw { width: 9px; height: 9px; border: 1px solid var(--border); flex: 0 0 auto; }

  /* details: a list beside the model on desktop, chips under it on phones */
  .details { display: grid; border-top: 1px solid var(--border); }
  .dbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--text); text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; cursor: pointer; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
  .dbtn:hover { background: var(--bg-hover); }
  .dbtn[aria-pressed="true"] { border-left-color: var(--border-strong); background: var(--bg-hover); }
  .dbtn .n { width: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
  .dtext { margin: 10px 0 0; min-height: 1.5em; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
  .specs { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--border); }
  .specs li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
  .specs li b { font-weight: 400; color: var(--text); }

  .chips { display: none; }

  @media (max-width: 900px) {
    :root { --gutter: 16px; }
    .bar .wrap { height: 52px; }
    .intro { padding: 32px 0 24px; }
    .types { gap: 16px; padding-bottom: 56px; }
    .head { padding: 4px 0 14px; }
    .head h1 { font-size: 22px; }
    .head .edition { font-size: 13px; }
    .product { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 48px; }
    .stage-col { position: static; margin: 0 calc(-1 * var(--gutter)); }   /* the model gets the full phone width */
    .stage { height: 58vh; height: 58svh; min-height: 320px; max-height: 560px; }
    .panel { gap: 28px; padding-top: 20px; }
    .details-desk { display: none; }
    .chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 12px var(--gutter) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; padding: 0 14px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); cursor: pointer; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
    .chip[aria-pressed="true"] { border-color: var(--border-strong); background: var(--bg-hover); }
    .chips-text { padding: 2px var(--gutter) 0; margin: 6px 0 0; }
  }
  @media (max-width: 380px) { .tile { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; } .tile img { width: 36px; height: 36px; } }
  /* release candidate: 3D unavailable -> the still stays, with a quiet line where the hint sits */
  /* settled states: no 3D on this device, or the viewer reported an error -> full photo, message, no motion */
  .stage .z-skeleton.fail, .stage .z-skeleton.err, .stage .z-skeleton.stall { opacity: 1; pointer-events: auto; }
  .stage .z-skeleton.fail::after, .stage .z-skeleton.err::after, .stage .z-skeleton.stall::after { display: none; }
  .stage .z-skeleton.fail img, .stage .z-skeleton.err img, .stage .z-skeleton.stall img { opacity: 1; }
  .stage .z-skeleton.fail .ld-track, .stage .z-skeleton.err .ld-track, .stage .z-skeleton.stall .ld-track { display: none; }
  /* loader-2 N5: nothing keeps animating under a faded or settled overlay */
  .stage .z-skeleton.done .ld-bar, .stage .z-skeleton.fail .ld-bar, .stage .z-skeleton.err .ld-bar, .stage .z-skeleton.stall .ld-bar { animation: none; }
  .stage .z-skeleton.done::after { display: none; }
  .stage .z-skeleton.fail ~ .hint, .stage .z-skeleton.err ~ .hint, .stage .z-skeleton:not(.done) ~ .hint { display: none; }   /* no drag hint until 3D is usable */
  .foot { border-top: 1px solid var(--border); }
  .foot .wrap { display: flex; justify-content: center; padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .credit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-muted); font-size: 12.5px; text-decoration: none; transition: color 150ms var(--ease-out); }
  .credit:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .credit:focus-visible { color: var(--text); outline: 1px solid var(--border-strong); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) {
    .credit { transition: none; }
    .hint, .stage .z-skeleton, .stage .z-skeleton img, .ld-bar { transition: none; }
    .stage .z-skeleton::after { display: none; }                                     /* no sheen */
    .ld-track.indet .ld-bar { animation: none; width: 100%; opacity: .3; }           /* static track */
  }
  /* story-1: skip link, header nav + language menu, CJK fallbacks (read-only tokens; local to this page) */
  .skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); text-decoration: none; }
  .skip:focus { top: 8px; }
  .navr { display: flex; align-items: center; gap: 4px; }
  .navr > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-muted); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
  .navr > a:hover { color: var(--text); }
  .lang { position: relative; }
  .lang > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; list-style: none; cursor: pointer; color: var(--text-muted); font-size: 13.5px; white-space: nowrap; }
  .lang > summary::-webkit-details-marker { display: none; }
  .lang > summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .lang[open] > summary, .lang > summary:hover { color: var(--text); }
  .lang ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 11; margin: 0; padding: 4px 0; min-width: 168px; list-style: none; background: var(--bg-elevated); border: 1px solid var(--border); }
  .lang li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 14px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
  .lang li a:hover { color: var(--text); background: var(--bg-hover); }
  .lang li a[aria-current] { color: var(--text); }
  .lang li a[aria-current]::after { content: ""; width: 4px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
  :lang(ja) { font-family: "OpenAI Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; line-break: strict; }
  :lang(ko) { font-family: "OpenAI Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
  :lang(ja) .z-eyebrow, :lang(ko) .z-eyebrow, :lang(ja) .z-label, :lang(ko) .z-label, :lang(ja) .colhead, :lang(ko) .colhead, :lang(ja) .z-display, :lang(ko) .z-display, :lang(ja) .head h1, :lang(ko) .head h1 { letter-spacing: 0; }
  :lang(ja) .story, :lang(ja) .dtext, :lang(ja) .intro p { line-height: 1.8; }
  :lang(ko) .story, :lang(ko) .dtext, :lang(ko) .intro p { line-height: 1.7; }
  @media (max-width: 600px) { .brand span:last-child { display: none; } .navr > a, .lang > summary { padding: 0 8px; font-size: 13px; } }

/* ---- configurator (home page) additions ---- */
.hidden { display: none !important; }
.product { padding-top: 0; }
.cfg-note { margin: 0 0 14px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.part { padding: 12px 0 14px; border-top: 1px solid var(--border); }
.part:first-of-type { border-top: 0; padding-top: 0; }
.part-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.plabel { font-size: 13.5px; font-weight: 500; }
.pval { color: var(--text-muted); font-size: 12.5px; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 -4px; }
.swatch { position: relative; display: grid; place-items: center; width: 100%; min-height: 44px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-c { width: 26px; height: 26px; background: var(--c, transparent); border: 1px solid var(--border-strong); box-sizing: border-box; transition: outline-color 150ms var(--ease-out); outline: 2px solid transparent; outline-offset: 3px; }
.swatch.orig .chip-c { background: linear-gradient(135deg, transparent 46%, var(--text-muted) 47% 53%, transparent 54%); }
.swatch input:checked + .chip-c { outline-color: var(--text); }
.swatch input:focus-visible + .chip-c { outline-color: var(--text); outline-style: dashed; outline-width: 2px; outline-offset: 4px; }
.swatch:hover .chip-c { outline-color: var(--border-strong); }
.swatch input:checked:hover + .chip-c { outline-color: var(--text); }
.cust { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 2px; padding: 0 10px 0 0; font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.cust::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg) translateY(-2px); transition: transform 150ms var(--ease-out); }
.cust[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.cust:focus-visible, .cfg-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cdot { width: 18px; height: 18px; border: 1px solid var(--border-strong); background: var(--c, #808080); box-sizing: border-box; opacity: .55; }
.cdot.on { opacity: 1; }
.sliders[hidden] { display: none; }
.sliders { display: grid; gap: 4px; padding: 4px 0 6px; }
.sl { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 44px; font-size: 12.5px; color: var(--text-muted); }
.sl output { text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.sl input[type=range] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.sl input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--g, linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)); border: 1px solid var(--border-strong); box-sizing: border-box; }
.sl input[type=range]::-moz-range-track { height: 6px; background: var(--g, linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)); border: 1px solid var(--border-strong); box-sizing: border-box; }
.sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 26px; margin-top: -11px; background: var(--text); border: 2px solid var(--bg); box-sizing: border-box; }
.sl input[type=range]::-moz-range-thumb { width: 14px; height: 24px; background: var(--text); border: 2px solid var(--bg); border-radius: 0; box-sizing: border-box; }
.sl input[type=range]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#colour-block.off .part, #colour-block.off .swatches { opacity: .45; }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cfg-btn { min-height: 44px; padding: 0 14px; font: inherit; font-size: 13.5px; color: var(--text); background: transparent; border: 1px solid var(--border); cursor: pointer; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.cfg-btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--bg-hover); }
.cfg-btn:disabled { opacity: .45; cursor: default; }
.cfg-line { margin: 10px 0 0; min-height: 1.5em; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.cfg-err { color: var(--text); }
.cfg-err:not(:empty) { border-left: 2px solid var(--border-strong); padding-left: 10px; }
.share-privacy { margin: 12px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 900px) { .head { padding-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .chip-c, .cust::after, .cfg-btn { transition: none; } }
/* phones/tablets (portrait): the 3D view stays in view while the colour controls are used */
@media (max-width: 900px) and (min-height: 560px) {
  .stage-col { position: sticky; top: 52px; z-index: 6; background: var(--bg); padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .stage { height: 40vh; height: 40svh; min-height: 240px; max-height: 360px; }
  .chips { padding-top: 8px; }
  .chips-text:empty { display: none; }
  .panel :is(button, input, summary, a) { scroll-margin-top: 500px; }   /* a focused control is never hidden behind the sticky 3D view */
}

/* ---- rc9: finish toggle + sticker picker ---- */
.segs { display: flex; margin: 0; }
.seg { position: relative; flex: 1 1 0; display: grid; min-width: 0; cursor: pointer; }
.seg + .seg { margin-left: -1px; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 12px; font-size: 13.5px; border: 1px solid var(--border); box-sizing: border-box; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); text-align: center; }
.seg:hover span { background: var(--bg-hover); }
.seg input:checked + span { border-color: var(--text); background: var(--bg-hover); font-weight: 500; position: relative; z-index: 1; }
.seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; z-index: 2; }
#stk-count { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; text-transform: none; }
#stk-place { margin-top: -6px; }
.stk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stk { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 5px 10px 5px 8px; font: inherit; font-size: 13px; text-align: left; color: var(--text); background: transparent; border: 1px solid var(--border); cursor: pointer; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.stk img { width: 28px; height: 28px; object-fit: contain; background: var(--bg-hover); opacity: .4; filter: grayscale(1); }
.stk img:not([src]) { border: 1px dashed var(--border-strong); box-sizing: border-box; background: transparent; }
.stk[aria-pressed="true"] { border-color: var(--border-strong); background: var(--bg-hover); }
.stk[aria-pressed="true"] img { opacity: 1; filter: none; }
.stk span { overflow-wrap: anywhere; }
.stk:hover:not(:disabled) { border-color: var(--border-strong); }
.stk:disabled { opacity: .45; cursor: default; }
.stk:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#sticker-block.off .stk-grid { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .seg span, .stk { transition: none; } }
#stk-bytes, #stk-status, #stk-error { min-height: 0; margin-top: 8px; }
#stk-bytes:empty, #stk-status:empty, #stk-error:empty { margin: 0; }
/* rc10-4: two quiet small-print lines under the credit (text-muted = 4.95:1 on white, 7.9:1 on black: AA); wraps, no fixed height, nothing above moves */
.foot .foot-notes { max-width: 680px; margin: 0 auto; padding: 0 max(var(--gutter, 16px), env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)); text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.foot .foot-notes p { margin: 0 0 3px; text-wrap: balance; }
