/* site.css - mippy.mipos.io. Phone-first: base rules target a 390 px screen, wider screens add on top.
   Colour tokens: the ShopMate palette (public/data/shopmate-colour.json). One orange token: --orange.
   Shared by the 3D pages too: they import /js/site/chrome.js and this file. */
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --orange: #FF6A00;
  --cream: #FFF4E5;
  --white: #FFFCF8;
  --ink: #1B1B1B;
  --grey: #B8ADA1;
  --line: #E6DED3;
  --muted: #6B6259;      /* text on cream: 5.6 : 1 */
  --cream-2: #FFEBD3;    /* a deeper cream for art backdrops */
  --sand: #F6ECDF;
  --gutter: 16px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(27, 27, 27, .03), 0 8px 24px -14px rgba(84, 52, 20, .28);
  --head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  --header-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-chrome { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 .7em; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.error { padding: 24px; background: var(--white); border-radius: var(--radius); }

/* ---------- chrome ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 244, 229, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(230, 222, 211, .7);
}
.site-header__inner { max-width: 1160px; margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand svg { display: block; }
.brand__name { font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.top-nav { display: none; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 252, 248, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -22px rgba(84, 52, 20, .45);
}
.bottom-nav a, .bottom-nav button {
  appearance: none; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; text-decoration: none; font-size: 11.5px; font-weight: 600; position: relative;
}
.bottom-nav [aria-current="page"] { color: var(--ink); }
.bottom-nav [aria-current="page"]::before {
  content: ""; position: absolute; top: 6px; width: 34px; height: 30px; border-radius: 12px; background: var(--cream-2); z-index: -1;
}
.bottom-nav svg { width: 22px; height: 22px; }
.more-sheet {
  width: min(560px, calc(100% - 20px)); max-height: 80svh; margin: auto auto 10px; padding: 8px 8px 12px;
  border: 1px solid var(--line); border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(60, 35, 10, .45);
}
.more-sheet::backdrop { background: rgba(27, 27, 27, .32); }
.more-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 4px 16px; }
.more-sheet__title { font-family: var(--head); font-weight: 800; font-size: 18px; margin: 0; }
.more-sheet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.more-sheet__list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px; border-radius: 16px; text-decoration: none; }
.more-sheet__list a:hover, .more-sheet__list a[aria-current="page"] { background: var(--cream); }
.more-sheet__list b { display: block; font-weight: 650; }
.more-sheet__list small { display: block; color: var(--muted); font-size: 13.5px; }
.site-footer { max-width: 1160px; margin: 64px auto 0; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 4px; }
body.chrome-overlay { padding: 0; }
body.chrome-overlay .site-header { position: fixed; left: 0; right: 0; background: rgba(255, 244, 229, .72); }

/* ---------- page layout ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.page-head { padding: 28px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(40px, 11vw, 64px); font-weight: 800; letter-spacing: -.03em; margin: 2px 0 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.lead { font-size: 18.5px; line-height: 1.5; color: #3B3733; max-width: 720px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.section { margin-top: 64px; scroll-margin-top: calc(var(--header-h) + 8px); }
.section__head { max-width: 760px; margin-bottom: 18px; }
.section__title { font-size: clamp(28px, 7.6vw, 38px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.section__title--sm { font-size: clamp(22px, 6vw, 28px); margin-bottom: 14px; }
.section__title .anchor { text-decoration: none; }
.section__title .anchor:hover::after { content: " #"; color: var(--orange); }
.h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.toc { margin: 18px calc(-1 * var(--gutter)) 0; }
.toc ul { list-style: none; margin: 0; padding: 4px var(--gutter) 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc li { flex: none; scroll-snap-align: start; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.toc a:hover { border-color: var(--ink); }

/* ---------- buttons, chips, tags ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--orange);
  box-shadow: 0 8px 20px -12px rgba(255, 106, 0, .8);
}
.btn:hover { background: #FF7D22; }
.btn--ghost { background: transparent; border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--white); }
.btn--sm { min-height: 44px; padding: 0 15px; font-size: 14.5px; }
.btn svg { flex: none; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer; }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 650 13px/1 var(--body); letter-spacing: .01em; white-space: nowrap; vertical-align: middle;
}
.chip--sm { height: 24px; padding: 0 9px; font-size: 12px; }
.chip--standard { background: var(--ink); color: var(--cream); border: 1.5px solid var(--ink); }
.chip--proposed { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.chip--open { background: var(--white); color: var(--ink); border: 1.5px dashed var(--orange); }
.chip__q { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.chip--sm .chip__q { width: 14px; height: 14px; font-size: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.tag--source { background: var(--ink); color: var(--cream); }
.tag--measured { background: var(--cream-2); border-color: var(--cream-2); }
.tag--inference { border-style: dashed; border-color: var(--orange); }
.tag--snippet, .tag--unverified { border-style: dashed; border-color: var(--grey); color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 600; }
.pill--link { text-decoration: none; min-height: 44px; background: var(--white); border: 1px solid var(--line); }
.pill--link:hover { border-color: var(--ink); }
.pill-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- cards and panels ---------- */
.panel, .rule, .card, .mini-card, .expr, .dd, .motion-card, .oq, .finding, .dl, .tile, .logo-tile, .count-card, .legend__item, .callout {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 18px; margin-top: 16px; }
.panel--quiet { background: transparent; box-shadow: none; border-style: dashed; }
.panel__label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.panel__side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.panel--split { display: grid; gap: 18px; }
.callout { padding: 16px 18px; background: var(--cream-2); border-color: #F7D9B6; font-weight: 500; }
.two, .tri { display: grid; gap: 14px; margin-top: 16px; }
.two > .panel, .tri > .panel { margin-top: 0; }
.mini-card { padding: 18px; }
.mini-card h3 { font-size: 18px; margin-bottom: 6px; }
.mini-card p { margin: 0; color: #3B3733; }
.fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fig__art { width: 100%; display: flex; justify-content: center; }
.fig__art svg { width: 100%; max-width: 420px; height: auto; }
.fig figcaption { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wide-art { margin: 0 0 12px; }
.wide-art svg { width: 100%; height: auto; display: block; }
.only-wide { display: none; }
.only-phone { display: block; }

/* ---------- home ---------- */
.hero { display: grid; gap: 8px; padding: 22px 0 6px; }
.hero__art { width: 210px; height: 210px; margin: 6px auto 12px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #FFE3C6 0%, var(--cream-2) 55%, rgba(255, 235, 211, 0) 72%); display: grid; place-items: center; }
.hero__art svg { width: 150px; height: auto; transform-origin: 50% 100%; }
.hero__title { font-size: clamp(56px, 18vw, 96px); font-weight: 800; letter-spacing: -.045em; margin: 0 0 12px; }
.hero__note { font-size: 14.5px; color: var(--muted); max-width: 640px; }
.legend { display: grid; gap: 10px; }
.legend__item { padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.legend__item p { margin: 0; color: #3B3733; }
.count-card { padding: 20px 18px; }
.meter { display: flex; gap: 4px; height: 18px; margin-bottom: 14px; }
.meter__seg { border-radius: 6px; min-width: 6px; }
.meter__seg--standard { background: var(--ink); }
.meter__seg--proposed { border: 2px solid var(--ink); background: var(--white); }
.meter__seg--open { border: 2px dashed var(--orange); background: var(--white); }
.count-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.count-list b { font-family: var(--head); font-size: 28px; font-weight: 800; margin-right: 2px; }
.cards { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 4px 14px; padding: 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(84, 52, 20, .5); }
.card__art { width: 96px; height: 96px; border-radius: 20px; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.card__art svg { width: 62px; height: auto; }
.card__art img { width: 84px; height: auto; }
.card__title { font-size: 18px; font-weight: 750; margin-bottom: 4px; }
.card__body p { margin: 0; font-size: 15px; line-height: 1.45; color: #4A453F; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.log li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.log time { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.log a, .log b { font-weight: 700; }
.log p { margin: 4px 0 0; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; margin-top: 6px; }

/* ---------- rules ---------- */
.rules { display: grid; gap: 12px; margin-top: 18px; }
.rule { padding: 12px 14px 10px; border-radius: 18px; scroll-margin-top: calc(var(--header-h) + 12px); }
.rule__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -8px 4px 0; }
.rule__text { font-size: 16px; line-height: 1.5; font-weight: 500; margin: 0 0 6px; }
.rule--open .rule__text { font-family: var(--head); font-weight: 700; font-size: 18.5px; line-height: 1.3; }
.rule__label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.rule__sides ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.rule__sides li { background: var(--cream); border-radius: 12px; padding: 9px 12px; }
.side__value { display: block; font-weight: 600; font-size: 15.5px; }
.side__where { display: block; font-size: 13.5px; color: var(--muted); }
.rule__rec { border-left: 4px solid var(--orange); background: #FFF6EC; border-radius: 4px 12px 12px 4px; padding: 10px 12px; margin-bottom: 10px; }
.rule__rec p:last-child { margin: 0; }
.rule__meta { font-size: 13px; color: var(--muted); margin: 0; }
.is-target { animation: target 2.4s ease-out 1; }
@keyframes target { 0%, 30% { box-shadow: 0 0 0 4px var(--orange); } 100% { box-shadow: var(--shadow); } }
.changes { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.changes__title { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.changes ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.changes time { font-weight: 700; }
.changes__by { color: var(--muted); }

/* ---------- mippy page ---------- */
.meet { display: grid; gap: 16px; align-items: center; }
.meet__art { width: 190px; height: 190px; margin: 0 auto; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; }
.meet__art svg { width: 130px; height: auto; transform-origin: 50% 100%; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font-weight: 700; font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.keylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.keylist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.key { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); font-weight: 800; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.measure { display: grid; gap: 8px; margin-top: 12px; }
.measure__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 12px; background: var(--cream); border-radius: 12px; }
.measure__row p { margin: 0; }
.measure__part { font-weight: 700; }
.measure__value { font-weight: 600; text-align: right; }
.measure__px { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.measure__note { grid-column: 1 / -1; font-size: 14px; color: #4A453F; }
.strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.tile { margin: 0; padding: 8px 8px 10px; text-align: center; border-radius: var(--radius-sm); box-shadow: none; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
.tile figcaption { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tile__note { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.swatches li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.35; }
.swatch { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); }
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.states li { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 14px; padding: 8px 10px; font-size: 14px; line-height: 1.3; }
.states__art svg { display: block; }
.tiers { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.tier { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 150px; font-size: 14px; line-height: 1.35; }
.tier p { margin: 0; }
.tier__art { min-height: 30px; display: flex; align-items: flex-end; }
.expr-grid { display: grid; gap: 12px; }
.expr { padding: 10px; display: grid; grid-template-columns: 172px 1fr; gap: 12px; align-items: center; scroll-margin-top: calc(var(--header-h) + 12px); }
.expr__arts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.expr__arts figure { margin: 0; background: var(--cream); border-radius: 14px; padding: 6px; text-align: center; }
.expr__arts img, .expr__arts svg { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
.expr__arts figcaption { font-size: 12px; color: var(--muted); font-weight: 600; }
.expr__none { display: grid; place-items: center; }
.expr__none p { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); text-align: center; }
.expr__top { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.expr__top h3 { font-size: 17px; }
.expr__body p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #4A453F; }
.pose-strip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.pose-strip__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pose-strip__head h3 { font-size: 20px; }
.pose-strip__head p { margin: 0; flex: 1 1 160px; }
.pose-strip__actions { display: flex; gap: 8px; }
.frames { list-style: none; margin: 12px -18px 0; padding: 0 18px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.frame { scroll-snap-align: start; }
.frame { background: var(--cream); border-radius: 14px; padding: 6px 6px 8px; text-align: center; }
.frame__art svg { width: 100%; height: auto; display: block; }
.frame__label { margin: 4px 0 0; font-size: 12.5px; line-height: 1.25; }
.frame__ss { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.defs { display: grid; gap: 4px 14px; margin: 0; }
.defs dt { font-weight: 700; }
.defs dd { margin: 0 0 8px; color: #3B3733; font-size: 15.5px; }
.motion-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin: 16px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.motion-card { scroll-snap-align: center; }
.swipe-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.motion-card { padding: 16px; scroll-margin-top: calc(var(--header-h) + 12px); }
.motion-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.motion-card__head h3 { font-size: 19px; }
.motion-card dl { margin: 0 0 6px; display: grid; gap: 2px; }
.motion-card dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 6px; }
.motion-card dd { margin: 0; font-size: 15px; line-height: 1.45; }
.dd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dd { padding: 10px 10px 12px; scroll-margin-top: calc(var(--header-h) + 12px); }
.dd__art { position: relative; background: var(--cream); border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 8px; }
.dd__art > div, .dd__art > img { position: absolute; inset: 6px; width: auto; height: auto; }
.dd__art svg { width: 100%; height: 100%; display: block; }
.dd__art img { width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; display: block; }
.dd__mark { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.dd__mark--do { background: #48A868; color: #fff; }
.dd__mark--dont { background: #E64B3C; color: #fff; }
.dd p { font-size: 14.5px; line-height: 1.35; margin: 0 0 6px; font-weight: 600; }
.dd .dd__meta { font-weight: 400; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dd .dd__meta .small { font-size: 12.5px; line-height: 1.35; }
.dd--dont .dd__art { background: #FBEDE7; }
.three-art { display: grid; place-items: center; background: var(--cream-2); border-radius: var(--radius); padding: 18px; }
.code { white-space: pre-wrap; word-break: break-word; background: var(--cream); border-radius: 12px; padding: 12px; margin: 0; font-size: 13px; line-height: 1.5; width: 100%; }

/* ---------- shopmate page ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.logo-tile { margin: 0; padding: 14px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: var(--radius-sm); box-shadow: none; }
.logo-tile img { height: 64px; width: 100%; object-fit: contain; }
.logo-tile figcaption { font-size: 13px; font-weight: 600; text-align: center; }
.logo-tile figcaption a { font-weight: 700; margin-left: 4px; display: inline-flex; min-height: 32px; align-items: center; }
.logo-tile--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.logo-tile--dark a { color: var(--cream); }
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.palette__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.palette__chip { display: block; height: 74px; border-bottom: 1px solid var(--line); }
.palette__text { display: flex; flex-direction: column; padding: 10px 12px; font-size: 14px; line-height: 1.35; gap: 2px; }
.contrast { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contrast li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 15px; }
.contrast .is-low b::after { content: " below AA"; font-weight: 500; color: var(--muted); font-size: 13px; }
.specimens { display: grid; gap: 12px; }
.specimen { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.specimen__sample { margin: 0 0 10px; }
.specimen--heading .specimen__sample { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 9vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.specimen--body .specimen__sample { font-family: var(--body); font-size: 20px; line-height: 1.45; }
.specimen__meta { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quotes li { display: flex; flex-direction: column; gap: 2px; }
.quotes q { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.arch { display: grid; gap: 10px; margin-top: 16px; }
.arch__summary { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.35; padding: 16px 18px; background: var(--cream-2); border-radius: var(--radius); margin: 0; }
.arch__level { display: grid; gap: 10px; position: relative; }
.arch__node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.arch__node b { font-family: var(--head); font-size: 17px; }
.arch__node p { margin: 4px 0 0; font-size: 14.5px; color: #4A453F; line-height: 1.4; }
.arch__node--hist { border-style: dashed; background: transparent; box-shadow: none; }
.arch__node--mippy { border: 2px solid var(--orange); }
.arch__side { display: grid; gap: 8px; }
.arch__note { font-size: 14.5px; padding: 10px 14px; border-radius: 12px; background: var(--sand); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--orange); }
.timeline li:last-child::before { background: var(--ink); border-color: var(--ink); }
.timeline__date { font-size: 13.5px; color: var(--muted); margin: 0 0 2px; }
.timeline p:last-child { margin: 0; font-size: 15.5px; }
.feature-grid { display: grid; gap: 10px; margin-top: 16px; }
.feature { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature img { width: 76px; height: 76px; object-fit: contain; background: var(--cream); border-radius: 14px; }
.feature h3 { font-size: 16.5px; margin-bottom: 2px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.4; color: #4A453F; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile--world { padding: 4px 4px 8px; background: var(--cream); border: 0; }
.tile--world figcaption { font-size: 12px; }
.pegs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; }
.pegs li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pegs__mippy { padding-left: 14px; border-left: 1px dashed var(--line); }
.panel--ref { background: repeating-linear-gradient(-45deg, var(--white) 0 14px, #FFF8F0 14px 28px); }
.refs { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.refs li { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--white); border: 1px dashed var(--grey); border-radius: 16px; padding: 10px; font-size: 13.5px; font-weight: 600; }
.refs img { height: 170px; width: auto; object-fit: contain; }

/* ---------- scenarios ---------- */
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin-top: 16px; width: 100%; }
.tab { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 8px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 14.5px; text-align: center; line-height: 1.15; }
.tab[aria-current="page"] { background: var(--ink); color: var(--cream); }
.scenario { margin-top: 28px; }
.plan { background: var(--cream); border-radius: 16px; padding: 10px 6px 6px; }
.plan svg { width: 100%; height: auto; display: block; max-width: 560px; margin: 0 auto; }
.plan-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.plan-legend li { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend__sw { display: inline-block; flex: none; width: 24px; height: 14px; border-radius: 4px; border: 1px solid #BFB3A5; vertical-align: -2px; }
.plan-legend__path { width: 22px; height: 0; border-top: 2.5px dashed var(--orange); }
.plan-legend__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; line-height: 1.4; }
.zones li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.zone-key { width: 26px; height: 26px; border-radius: 8px; border: 1px solid #BFB3A5; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15.5px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.product { display: grid; grid-template-columns: 26px 64px 1fr; gap: 10px; align-items: center; padding: 8px; background: var(--cream); border-radius: 14px; }
.product__n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.product__img { width: 64px; height: 64px; object-fit: contain; background: var(--white); border-radius: 12px; display: block; }
.product__img--none { background: repeating-linear-gradient(45deg, var(--white) 0 6px, var(--sand) 6px 12px); }
.product__text { display: flex; flex-direction: column; gap: 1px; font-size: 14.5px; line-height: 1.35; }
.props { margin: 0; padding-left: 24px; display: grid; gap: 8px; font-size: 15.5px; }
.props li { padding-left: 2px; }
.props li > span:first-child { margin-right: 6px; }
.mippy-here { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mippy-here > li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; background: var(--cream); border-radius: 14px; }
.mippy-here img, .mippy-here__vec { width: 64px; height: 64px; border-radius: 12px; background: var(--white); object-fit: contain; display: block; overflow: hidden; }
.mippy-here__vec svg { width: 100%; height: 100%; display: block; }
.mippy-here .pill--link svg { margin-right: 4px; }
.mippy-here li > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15.5px; line-height: 1.35; }
.mippy-here .pill--link { min-height: 36px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.stills { display: grid; gap: 10px; }
.stills img { width: 100%; border-radius: 14px; }
.stills-empty { border: 2px dashed var(--line); border-radius: 16px; padding: 22px 18px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 4px; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(230, 222, 211, .35) 12px 24px); }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: #3B3733; }
.bullets--plain { list-style: none; padding: 0; }
.bullets--plain li { background: var(--white); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }

/* ---------- downloads ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; appearance: none; font: inherit; font-weight: 650; font-size: 14.5px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter__n { font-size: 12px; opacity: .7; }
.dl-grid { display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px; border-radius: var(--radius-sm); scroll-margin-top: calc(var(--header-h) + 12px); }
.dl__preview { width: 86px; height: 86px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.dl__preview--dark { background: var(--ink); }
.dl__preview img { width: 100%; height: 100%; object-fit: contain; }
.dl__ext { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--muted); }
.dl__body { min-width: 0; }
.dl__title { font-weight: 700; margin: 0; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.dl__meta { margin: 2px 0; font-size: 13.5px; color: #4A453F; }
.dl__src { margin: 0 0 4px; overflow-wrap: anywhere; }
.dl__note { margin: 0 0 6px; color: #8A3B00; }
.dl__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ---------- open questions, research, change log ---------- */
.oq-count { font-size: 18px; }
.oq-count b { font-family: var(--head); font-size: 34px; font-weight: 800; }
.oq-list { display: grid; gap: 12px; }
.oq { padding: 14px 16px; border: 1.5px dashed #F2B98B; scroll-margin-top: calc(var(--header-h) + 12px); }
.oq__topic { font-size: 13.5px; font-weight: 650; color: var(--muted); flex: 1; }
.oq__q { font-size: 19px; font-weight: 750; line-height: 1.3; margin: 2px 0 12px; }
.oq__sides { display: grid; gap: 8px; margin-bottom: 10px; }
.side { background: var(--cream); border-radius: 14px; padding: 10px 12px; }
.side__label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.side .side__value { margin: 0; }
.side .side__where { margin: 2px 0 0; }
.tags { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin: 16px 0 0; font-size: 15px; }
.tags dd { margin: 0; color: #3B3733; }
.findings { display: grid; gap: 10px; }
.finding { padding: 14px 16px; scroll-margin-top: calc(var(--header-h) + 12px); }
.finding > .tag { margin-bottom: 8px; }
.finding p { margin: 0 0 6px; font-size: 15.5px; }
.finding__links { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; }
.finding__links a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }

/* ---------- motion: Mippy breathes (a moving hold) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .idle svg { animation: breathe 3.5s ease-in-out infinite; }
}
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.98, 1.02); } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .legend { grid-template-columns: repeat(3, 1fr); }
  .strip--4, .strip--poses { grid-template-columns: repeat(4, 1fr); }
  .strip--3 { grid-template-columns: repeat(3, 1fr); }
  .expr-grid { grid-template-columns: repeat(2, 1fr); }
  .dd-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .refs { grid-template-columns: repeat(4, 1fr); }
  .tri { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .arch__level--3 { grid-template-columns: repeat(3, 1fr); }
  .oq__sides { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .states { grid-template-columns: repeat(3, 1fr); }
  .meet { grid-template-columns: 220px 1fr; }
}
@media (min-width: 900px) {
  body { font-size: 17.5px; }
  body.has-chrome { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: #3B3733; }
  .top-nav a:hover { background: var(--white); }
  .top-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding-top: 40px; }
  .hero__art { order: 2; width: 380px; height: 380px; }
  .hero__art svg { width: 250px; }
  .panel--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
  .panel { padding: 24px; }
  .toc ul { flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card { grid-template-columns: 1fr; align-content: start; padding: 16px; }
  .card__art { width: 100%; height: 132px; }
  .card__art svg { width: 74px; }
  .card__art img { width: 104px; }
  .rules { display: block; columns: 2; column-gap: 14px; }
  .rules > .rule { break-inside: avoid; margin-bottom: 14px; }
  .expr-grid { grid-template-columns: repeat(2, 1fr); }
  .expr { grid-template-columns: 300px 1fr; padding: 12px; }
  .panel--plan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4px 28px; align-items: start; }
  .panel--plan > .panel__label { grid-column: 1 / -1; }
  .panel--plan > .plan { grid-row: 2 / span 3; }
  .panel--plan > .plan-legend { margin-top: 0; flex-direction: column; font-size: 15px; gap: 10px; }
  .tab { white-space: nowrap; }
  .dd-grid { grid-template-columns: repeat(5, 1fr); }
  .motion-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(7, 1fr); }
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
  .tabs { width: auto; display: inline-flex; }
  .tab { padding: 0 22px; }
  .scenario .two { grid-template-columns: 1fr 1fr; }
  .only-wide { display: block; }
  .only-phone { display: none; }
  .motion-grid { grid-auto-flow: row; grid-auto-columns: auto; margin: 16px 0 0; padding: 0; overflow: visible; }
  .swipe-hint { display: none; }
  .frames { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 12px 0 0; padding: 0; }
  .more-sheet { margin: auto; }
}
@media (min-width: 1200px) {
  .logo-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ---------- round 2: collapsed rule lists, sticky section index, 3D slots, kiosk, beats ---------- */
.rules-box { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.rules-box__summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer; border-radius: 18px; font-size: 15.5px; }
.rules-box__summary::-webkit-details-marker { display: none; }
.rules-box__summary:hover { background: var(--cream); }
.rules-box__text { flex: 1; line-height: 1.35; }
.rules-box__dots { display: inline-flex; gap: 4px; flex: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--standard { background: var(--ink); }
.dot--proposed { border: 2px solid var(--ink); }
.dot--open { border: 2px dashed var(--orange); }
.rules-box__chev { flex: none; color: var(--muted); transition: transform .2s ease; display: grid; place-items: center; width: 28px; height: 28px; }
.rules-box[open] > .rules-box__summary .rules-box__chev { transform: rotate(180deg); }
.rules-box[open] > .rules-box__summary { border-bottom: 1px dashed var(--line); border-radius: 18px 18px 0 0; }
.rules-box > .rules { margin: 0; padding: 12px; }
.rules-box .rule { box-shadow: none; background: #FFFDF9; }
.toc--sticky { position: sticky; top: var(--header-h); z-index: 15; margin-top: 14px; background: rgba(255, 244, 229, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(230, 222, 211, .8); }
.toc--sticky ul { padding-top: 6px; padding-bottom: 6px; flex-wrap: nowrap; }
.toc--sticky a { min-height: 40px; font-size: 14.5px; padding: 0 14px; }
.toc a[aria-current] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
body.has-toc [id] { scroll-margin-top: calc(var(--header-h) + 64px); }
.section--tight { margin-top: 36px; }
.cards3d { display: grid; gap: 12px; }
.card3d { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); text-decoration: none; background: var(--ink); color: var(--cream); box-shadow: 0 16px 30px -18px rgba(40, 20, 0, .6); transition: transform .15s ease; }
.card3d:hover { transform: translateY(-2px); }
.card3d__art { position: relative; width: 120px; height: 120px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #FFF4E5, #FFE3C6); display: grid; place-items: center; }
.card3d__art > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.card3d__art svg { width: 70px; height: auto; }
.card3d__shop { position: absolute; right: -6px; bottom: -6px; width: 62px !important; height: 62px !important; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.card3d__body { display: flex; flex-direction: column; gap: 4px; }
.card3d__title { font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.card3d__text { font-size: 14.5px; line-height: 1.4; color: #E9E1D6; }
.card3d__cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.beat { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 8px; background: var(--cream); border-radius: 14px; }
.beat__art { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--white); display: grid; place-items: center; }
.beat__img { width: 100%; height: 100%; object-fit: cover; }
.beat__vec, .beat__vec svg { width: 100%; height: 100%; display: block; }
.beat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.beat__key { font-size: 11.5px; font-weight: 800; color: #B34A00; letter-spacing: .06em; }
.beat__caption { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.beat code, .product code { font-size: 12px; overflow-wrap: anywhere; }
.beat .pill--link { min-height: 36px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; margin-top: 3px; }
.beat .pill--link svg { margin-right: 4px; }
.product { align-items: start; }
.product__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.product__where { font-size: 13.5px; color: #4A453F; }
.product--added { background: #FFF1E4; outline: 1.5px solid #FFB27A; }
.product__n--added { background: var(--orange); color: var(--ink); }
.product__img--svg { display: grid; place-items: center; padding: 4px; }
.product__img--svg svg { width: 100%; height: 100%; }
.plan-legend__dot--added { background: var(--orange); color: var(--ink); }
.plan-legend__star { display: inline-grid; place-items: center; }
.steps--plain { list-style: none; padding: 0; }
.kiosk-card { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; border: 1.5px solid #FFB27A; }
.kiosk-card__art { background: var(--cream); border-radius: 16px; padding: 8px 6px; display: grid; place-items: center; }
.kiosk-card__art svg { width: auto; height: 170px; max-width: 100%; }
.kiosk-card__name { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
.kiosk-card__desc { font-family: var(--head); font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.facts--plain { padding: 0; border: 0; background: none; font-size: 14.5px; grid-template-columns: 1fr; gap: 0 14px; margin: 8px 0; }
.facts--plain dt { margin-top: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.facts--plain dd { font-weight: 500; }
.gallery3d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery3d a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-size: 12.5px; font-weight: 600; font-family: ui-monospace, Consolas, monospace; text-align: center; }
.gallery3d img { width: 100%; height: auto; border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.frame--3d { background: #FFE9D2; }
.frame--3d a { display: block; }
.frame--3d img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.tile--3d img { border-radius: 10px; }
.three-art--img { padding: 0; overflow: hidden; }
.three-art--img img { width: 100%; height: auto; display: block; }
@media (min-width: 640px) {
  .cards3d { grid-template-columns: 1fr 1fr; }
  .kiosk-card { grid-template-columns: 150px 1fr; }
  .gallery3d { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .card3d { grid-template-columns: 170px 1fr; padding: 16px; }
  .card3d__art { width: 170px; height: 170px; }
  .card3d__shop { width: 84px !important; height: 84px !important; }
  .gallery3d { grid-template-columns: repeat(7, 1fr); }
  .kiosk-card { grid-template-columns: 170px 1fr; }
  .kiosk-card__art svg { height: 220px; }
  .facts--plain { grid-template-columns: auto 1fr; }
  .facts--plain dt { margin-top: 0; }
  .toc--sticky ul { flex-wrap: nowrap; }
}
/* round 2, pass 2: compact product anchors, full-height 3D frame */
.product { grid-template-columns: 64px 1fr; gap: 12px; padding: 10px; }
.product__media { position: relative; width: 64px; height: 64px; }
.product__media .product__img { width: 64px; height: 64px; }
.product__media .product__n { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 2px var(--cream); }
.product__label { font-size: 16px; }
.product__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
.product__status > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.product__status .chip--sm { height: 21px; padding: 0 8px; font-size: 11.5px; }
.product__desc { font-size: 14.5px; line-height: 1.4; }
.product__where { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.frame--3d { display: flex; flex-direction: column; }
.frame--3d a { flex: 1; min-height: 0; }
.frame--3d img { height: 100%; aspect-ratio: auto; }
@media (min-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
}