:root {
  /* print-bed grey, graphite, PETG teal and a marigold "second filament" */
  --bg: #eef1f2; --surface: #ffffff; --ink: #17212a; --muted: #56616b;
  --line: #d5dce0; --accent: #0b6e65; --accent-bright: #0f8f82; --accent-ink: #ffffff; --spark: #f2b12e; --danger: #b8321f; --ok: #2f7d3b;
  --radius: 10px;
}
@font-face { font-family: "Archivo"; src: url(/fonts/archivo/archivo-latin-wdth-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #11171b; --surface: #182127; --ink: #e9eef0; --muted: #9aa7af; --line: #2a353c; --accent-bright: #3cc2b1; --danger: #f06a55; --ok: #6cc47a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header: one row, wordmark printed in two filaments, layer lines underneath */
header.top { background: var(--surface); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
header.top .layers { height: 4px; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 2px); }
.logo { font-family: "Archivo", system-ui, sans-serif; font-stretch: 118%; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  color: var(--accent); text-shadow: 0 2px 0 var(--spark); line-height: 1; padding-bottom: 2px; }
.logo:hover { text-shadow: 0 3px 0 var(--spark); }
.mainnav { display: flex; align-items: center; gap: 4px; }
.acct { display: flex; align-items: center; gap: 14px; white-space: nowrap; margin-left: auto; }
.navlink { font-family: "Archivo", system-ui, sans-serif; font-stretch: 106%; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.mainnav .navlink { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.mainnav .navlink:hover, .dd-btn[aria-expanded="true"] { background: var(--bg); }
.mainnav [aria-current="page"] { box-shadow: inset 0 -2px 0 var(--spark); border-radius: 8px 8px 0 0; }
.acct .navlink:hover { color: var(--accent); }
.dd { position: relative; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(23, 33, 42, .35); display: grid; z-index: 30; }
.dd-makers { grid-template-columns: repeat(3, 210px); }
.dd-makers a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.dd-makers a b { display: block; font-family: "Archivo", system-ui, sans-serif; font-stretch: 106%; font-size: 15px; }
.dd-makers a span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.dd-makers a:nth-child(-n+3) b { color: var(--accent); }
.dd-seasons { grid-template-columns: repeat(3, 160px); }
.dd-seasons a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--bg); outline: none; }
.menu-btn { display: none; }
header.top :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }

/* buttons & forms */
.btn { background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.big { padding: 14px 22px; font-size: 17px; }
form label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
form input, form select, form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }
form input[type=checkbox] { width: auto; margin-right: 8px; }
.check { font-weight: 400 !important; display: flex !important; align-items: flex-start; }
.msg { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* text */
h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 28px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
.muted { color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 28px; }

/* home */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 0 0 10px; max-width: 14ch; }
.hero p { font-size: 18px; max-width: 52ch; margin: 0 0 18px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 0; }
.stats b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* categories */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: var(--surface); display: inline-block; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* grid of cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--muted); }
.card img, .card .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f4f4f5; }
.card .noimg { display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--bg); }
.card .meta { padding: 10px 12px; }
.card .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .s { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }

/* model page */
.model { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin: 16px 0 24px; align-items: start; }
.viewer { width: 100%; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer canvas { display: block; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h1 { margin-top: 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 18px 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { margin-top: 20px; font-size: 14px; }

/* upload */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; background: var(--surface); display: block; font-weight: 600; }
.drop.over, .drop:hover { border-color: var(--accent); }

/* auth */
.authbox { max-width: 420px; margin: 40px auto; }

/* dialogs */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 20px; width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }

/* tables (admin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0; font-size: 14px; background: var(--surface); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; }
.links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .model { grid-template-columns: 1fr; }
  .acct { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .hero h1 { font-size: 34px; }
}

/* mould maker */
.lede { max-width: 62ch; font-size: 17px; }
.mm { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin: 20px 0; align-items: start; }
.mm > * { min-width: 0; }
.mm-viewer { position: relative; }
.mm-viewer .hint { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.mm-viewbar { justify-content: space-between; margin-top: 8px; font-size: 14px; }
.mm-toggle { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.mm-panel { position: sticky; top: 80px; }
.mm-h { font-size: 16px; margin: 22px 0 4px; }
.mm-h:first-child { margin-top: 0; }
.mm-drop { padding: 14px; margin-top: 10px; font-size: 14px; }
.mm-turn { margin-top: 10px; }
.mm-turn .btn { padding: 6px 10px; font-size: 14px; }
.mm-small { font-size: 13px; margin: 8px 0 0; }
.mm-types { display: grid; gap: 8px; margin-top: 8px; }
.mm-type { display: grid !important; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.mm-type input { grid-row: span 2; width: auto; margin-top: 4px; accent-color: var(--accent); }
.mm-type span { font-size: 13.5px; color: var(--muted); }
.mm-type:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mm-panel input[type=range] { padding: 0; accent-color: var(--accent); }
.mm-panel output { font-variant-numeric: tabular-nums; }
.mm-go { width: 100%; }
.mm-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 12px; }
.mm-facts b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.mm-facts span { color: var(--muted); font-size: 13px; }
.mm-parts { display: grid; gap: 8px; }
.mm-part { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mm-part div { display: grid; min-width: 0; }
.mm-part span { font-size: 13px; overflow-wrap: anywhere; }
.mm-steps { padding-left: 22px; max-width: 70ch; }
.mm-steps li { margin-bottom: 10px; }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .mm { grid-template-columns: 1fr; } .mm-panel { position: static; } }

/* mould maker v2 + image to 3D */
.mm-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 6px 0 4px; }
.mm-seg label { margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.mm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mm-seg span { display: block; padding: 7px 12px; font-size: 14px; border-right: 1px solid var(--line); }
.mm-seg label:last-child span { border-right: 0; }
.mm-seg input:checked + span { background: var(--ink); color: var(--bg); }
.mm-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.mm-auto { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); margin-left: 4px; }
.mm-reset { font-size: 13px; font-weight: 500; color: var(--accent); margin-left: 8px; }
.mm-scale { margin-top: 10px; gap: 8px; }
.mm-scale input { width: 84px; padding: 6px 8px; }
.mm-inline { margin: 0 !important; }
.mm-bed { margin-top: 8px; gap: 6px; }
.mm-bed input { width: 76px; padding: 6px 8px; }
.mm-note { background: var(--bg); border: 1px solid var(--accent); border-radius: var(--radius); padding: 8px 10px; font-size: 13.5px; margin: 10px 0 0; }
.mm-check { margin-top: 10px !important; }
.mm-ab { border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.mm-ab caption { text-align: left; font-size: 13px; padding-bottom: 4px; }
.mm-ab th, .mm-ab td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.mm-warn { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 10px 12px 10px 30px; font-size: 14px; }
.mm-warn li { margin: 3px 0; }
.mm-part { flex-wrap: wrap; }
.mm-part > div { flex: 1; min-width: 160px; }
.fit { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.fit.ok { color: var(--ok); border: 1px solid var(--ok); }
.fit.bad { color: var(--danger); border: 1px solid var(--danger); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; color: inherit; }
.i3-drop { display: grid !important; gap: 8px; justify-items: center; }
.i3-drop img { max-height: 120px; max-width: 100%; border-radius: 6px; }
.i3-view { margin: 0; }
.i3-flat { width: 100%; max-width: 100%; aspect-ratio: auto; image-rendering: auto; background: #222; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.i3-result { margin-top: 8px; }
.i3-actions { margin-top: 8px; }
.viewer[hidden], .i3-flat[hidden] { display: none !important; }

/* image to 3d: maker tabs */
.i3-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.i3-tab { cursor: pointer; margin: 0 !important; }
.i3-tab input { position: absolute; opacity: 0; pointer-events: none; }
.i3-tab span { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.i3-tab b { display: block; font-size: 15.5px; }
.i3-tab small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.i3-tab input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.i3-tab input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.i3-flat { background: #f6f3ec; }
textarea#txt { font-size: 17px; resize: vertical; }
@media (max-width: 800px) { .i3-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* home: free makers */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.maker { display: block; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.maker:hover { border-color: var(--ink); }
.maker b { display: block; font-size: 15px; }
.maker span { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; margin-top: 2px; }
@media (max-width: 900px) { .makers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hidden always wins over display rules on .btn, labels, etc. */
[hidden] { display: none !important; }

/* keychain maker */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.kc-preset { margin: 0 !important; cursor: pointer; }
.kc-preset input { position: absolute; opacity: 0; pointer-events: none; }
.kc-preset span { display: grid; place-items: center; min-height: 52px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 19px; font-weight: 400; line-height: 1.1; text-align: center; }
.kc-preset input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kc-preset input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#kcText { resize: vertical; font-size: 18px; }
.kc-colours { display: grid; gap: 10px; margin-top: 6px; }
.kc-sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kc-sw button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.kc-sw button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.kc-viewer { aspect-ratio: 4 / 3; }
/* hidden radios in segmented controls: keep them inside their label so they never widen the page */
.mm-seg label, .kc-preset { position: relative; }
.mm-seg input, .kc-preset input { width: 1px !important; height: 1px; padding: 0 !important; left: 0; top: 0; }
.i3-link { text-decoration: none; color: inherit; }
.i3-link span { border-style: dashed; }
.i3-link:hover span { border-color: var(--ink); }

/* share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; }
.share > .muted { font-size: 14px; margin-right: 2px; }
.share-btn { font: inherit; font-size: 13.5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: inherit; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }

/* ratings & reviews */
.stars { color: #e8a317; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }
.rating-link { text-decoration: none; color: inherit; }
.card-rating { color: var(--ink); }
.reviews { margin-top: 36px; }
.rev-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.rev-avg { display: flex; align-items: center; gap: 12px; }
.rev-avg > b { font-size: 44px; line-height: 1; font-family: var(--display, inherit); }
.rev-avg .stars { font-size: 20px; display: block; }
.rev-bars { margin-top: 12px; display: grid; gap: 4px; max-width: 320px; }
.rev-bars div { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.rev-bars i { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.rev-bars i b { display: block; height: 100%; background: #e8a317; }
.rev-form h3 { margin: 0 0 6px; font-size: 17px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; font-size: 30px; }
.star-pick label { margin: 0 !important; cursor: pointer; color: var(--line); position: relative; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label:has(input:checked) ~ label span[aria-hidden],
.star-pick label:hover span[aria-hidden], .star-pick label:hover ~ label span[aria-hidden] { color: #e8a317; }
.star-pick label:has(input:checked) span[aria-hidden] { color: #e8a317; }
.star-pick input:focus-visible ~ span[aria-hidden] { outline: 2px solid var(--accent); border-radius: 4px; }
.rev-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.rev-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.rev-h .rev-del { margin-left: auto; font-size: 13px; }
.rev p { margin: 6px 0 0; }
.badge { font-size: 11.5px; font-weight: 600; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 1px 7px; }
@media (max-width: 760px) { .rev-top { grid-template-columns: 1fr; } }
.star-pick span[aria-hidden] { font-size: 30px; line-height: 1; display: block; padding: 0 1px; }

/* custom orders */
.custom-order { margin: 16px 0 4px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.co-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.co-head b { font-size: 17px; }
.co-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.custom-order .btn { margin-top: 12px; width: 100%; }
.caps { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.order-steps { list-style: none; padding: 0; display: grid; gap: 8px; margin: 18px 0; }
.order-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.order-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.order-steps li.done { color: var(--ink); }
.order-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.order-steps li.now { color: var(--ink); font-weight: 600; }
.order-steps li.now::before { border-color: var(--accent); }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.paid, .pill.in_progress { color: var(--accent); border-color: var(--accent); }
.pill.delivered { color: var(--ok); border-color: var(--ok); }
.pill.cancelled, .pill.pending_payment { color: var(--muted); }
.big-name { font-size: 24px; font-weight: 700; letter-spacing: .04em; }

/* home: featured grid under the hero (4 per row, up to 4 rows) */
.featured { margin: 26px 0 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.feat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.feat-head h2 { margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .featured { padding: 12px; } }
.card-img { position: relative; }
.card-badge { position: absolute; left: 8px; bottom: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* admin dashboard */
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 20px; }
.ad-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; font-size: 15px; }
.ad-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.ad-count:not(:empty) { margin-left: 6px; background: var(--accent); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.ad-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 860px) { .ad-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ad-card:hover { border-color: var(--ink); }
.ad-card b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.ad-card span { color: var(--muted); font-size: 13.5px; }
.ad-card.hot { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .ad-two { grid-template-columns: 1fr; } }
.ad-list { padding-left: 20px; display: grid; gap: 8px; }
ul.ad-list { list-style: none; padding: 0; }
.ad-list li { display: flex; justify-content: space-between; gap: 10px; }
.ad-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--tile, #eee); display: inline-block; vertical-align: middle; }
.ad-pins { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: pin; }
.ad-pins li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; counter-increment: pin; }
.ad-pins li::before { content: counter(pin); width: 22px; text-align: center; color: var(--muted); font-weight: 700; }
.ad-filter { margin: 4px 0 14px; gap: 6px; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.ad-pay .order-steps li { align-items: flex-start; }
.ad-pay .order-steps li::before { margin-top: 3px; }
.ad-list li > .muted { white-space: nowrap; }


/* ===== speed & UX polish (Front-End Checklist pass) ===== */
/* Reserve the header's height until app.js adds it, and keep the footer below the fold, so nothing jumps (CLS). */
:root { --hdr: 68px; }
body > main:first-child { margin-top: var(--hdr); }
main { min-height: calc(100vh - var(--hdr)); }
@media (max-width: 800px) {
  :root { --hdr: 68px; }                     /* one slim row now that search lives on the page, so it can stay sticky */
  .hide-sm { display: none !important; }
  .acct { gap: 10px; }
}
/* Skip link (keyboard users) and clear focus rings */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
.card:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.stats { min-height: 58px; }
.card img { height: auto; }
.viewer { position: relative; }
.view3d { position: absolute; right: 12px; bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.viewer > img { width: 100%; height: 100%; object-fit: contain; }

/* hero: text + showcase collage + trust points */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; }
.eyebrow { font-size: 14px !important; font-weight: 600; color: var(--accent); margin: 0 0 8px !important; }
.hero h1 .hl { color: var(--accent); }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-show { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-4deg); }
.hero-show span { border-radius: 18px; background: var(--surface) center / cover no-repeat; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 16px 34px -16px rgba(23, 33, 42, .3); }
.hero-show span:nth-child(2) { transform: translateY(18px); }
.hero-show span:nth-child(3) { transform: translateY(-18px); }
.hero-chip { position: absolute; left: -14px; bottom: 22px; transform: rotate(4deg); background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 999px; font-size: 15px; box-shadow: 0 3px 0 var(--spark); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-show span { transition: transform .35s ease; }
  .hero-show:hover span:nth-child(1) { transform: translate(-6px, -6px); }
  .hero-show:hover span:nth-child(4) { transform: translate(6px, 6px); }
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-show { display: none; } }
.card { transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }

/* phones: sticky "Personalise it" bar on model pages with custom orders */
.order-bar { display: none; }
@media (max-width: 800px) {
  .order-bar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; justify-content: space-between; align-items: center;
    background: var(--accent); color: #fff; text-decoration: none; padding: 14px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent-bright); } .hero-show span { box-shadow: 0 10px 30px rgba(0,0,0,.4); } }

/* pricing */
.pr-head { text-align: center; padding: 30px 0 10px; }
.pr-head h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 0 10px; }
.pr-head .lede { margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 40px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.plan h2 { margin: 0; font-size: 21px; }
.plan .btn { text-align: center; margin-top: auto; }
.featured-plan { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(11, 110, 101, .14); }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-price { margin: 4px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: 34px; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pr-email { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pr-email .row { flex-wrap: nowrap; gap: 8px; }
.pr-email input[type=email] { flex: 1; min-width: 0; }
.faq { max-width: 760px; margin: 0 auto 40px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 2px; }

/* custom birthday */
.bd-head { padding: 26px 0 6px; max-width: 760px; }
.bd-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 10px; }
.bd-head .hl { color: var(--accent); }
.bd fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bd fieldset.panel { padding: 20px; border: 1px solid var(--line); }
.bd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 22px; }
@media (max-width: 900px) { .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-opt { margin: 0 !important; cursor: pointer; position: relative; }
.bd-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bd-opt span { display: grid; gap: 4px; height: 100%; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.bd-opt em { font-style: normal; font-weight: 700; color: var(--accent); }
.bd-opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.bd-opt input:checked + span { border: 2px solid var(--accent); padding: 13px; box-shadow: 0 8px 22px rgba(11, 110, 101, .12); }
.bd-opt input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.bd-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 40px; }
@media (max-width: 860px) { .bd-cols { grid-template-columns: 1fr; } }
.bd-sum { position: sticky; top: 84px; }
.bd-sum h2 { margin: 0; font-size: 20px; }

/* account */
.acc-plan { display: grid; gap: 12px; margin: 16px 0 28px; }
.acc-plan h2 { margin: 0; }
.acc-plan.on { border: 2px solid var(--ok); }

/* home: plans strip */
.plans-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 6px; }
.plans-strip a { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.plans-strip a:hover { border-color: var(--accent); }
.plans-strip b { display: block; font-size: 17px; }
.plans-strip span { color: var(--muted); font-size: 14px; }
.plans-strip i { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .plans-strip { grid-template-columns: 1fr; } }
.lic-note { font-size: 13.5px; margin-top: 4px; }
.pro-lock { font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.bd fieldset.panel legend { padding: 0 6px; }
/* reserve the option cards' space while prices load (no layout shift) */
#opts.bd-grid:empty { min-height: 132px; }
@media (max-width: 900px) { #opts.bd-grid:empty { min-height: 300px; } }

/* search lives on the page (home: under the free makers; results/category pages: above the list), not in the header */
.acct { margin-left: auto; }
.find { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; padding: 6px 6px 6px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.find:focus-within { border-color: var(--accent); }
.find svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 10px 4px; color: var(--ink); outline: none; }
.find .btn { padding: 12px 22px; font-size: 16px; }
.find-sm { margin: 18px 0 14px; max-width: 720px; }
.find-tags { font-size: 14px; margin: 4px 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.find-tags a { color: var(--ink); }
@media (max-width: 600px) { .find .btn { padding: 11px 14px; } .find input { font-size: 16px; } }
.hero .find-tags { font-size: 14px; margin: 6px 0 0 4px; }
.plans-strip[hidden] { display: none; }

/* "Get licence" strip on the owner's designs */
.lic-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--note-bg, #fff4ec); border: 1px solid #f3c9b4; }
.lic-cta span { flex: 1 1 260px; font-size: 14.5px; }
.lic-cta.on { background: var(--surface); border-color: var(--ok); }
.lic-cta.on a { font-weight: 600; }
@media (prefers-color-scheme: dark) { .lic-cta { background: #2d1f17; border-color: #6a3a22; } }

/* model page: reviews sit right under the picture / 3D view (desktop), and after the details on phones */
.model { grid-template-areas: "media info" "rev info"; }
.model-media { grid-area: media; }
.model-info { grid-area: info; align-self: start; }
.model-reviews { grid-area: rev; margin-top: 4px; min-width: 0; }
.model-reviews h2 { margin-top: 0; }
.model-reviews .rev-top { grid-template-columns: 1fr; gap: 14px; }
.model-reviews .rev-bars { max-width: none; }
@media (max-width: 800px) { .model { grid-template-areas: "media" "info" "rev"; } }

/* maker pages: how-to guide and FAQ under the tool (written by the server for search engines) */
.seo-guide { max-width: 760px; margin: 48px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.seo-guide h2 { font-size: 20px; margin: 26px 0 10px; }
.seo-guide h2:first-child { margin-top: 0; }
.seo-steps { padding-left: 22px; margin: 0; line-height: 1.55; }
.seo-steps li { margin: 6px 0; }
.seo-faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 8px 0; }
.seo-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.seo-faq details p { margin: 0; padding: 0 14px 14px; line-height: 1.55; color: var(--muted); }
.seo-more p { line-height: 1.9; }
/* reserve each maker's height until it mounts (measured; phones first) */
#maker:empty[data-r="cookie-cutter-maker"] { min-height: 2200px; } #maker:empty[data-r="cake-topper-maker"] { min-height: 2130px; }
#maker:empty[data-r="text-to-3d"] { min-height: 2250px; } #maker:empty[data-r="image-to-3d"] { min-height: 2000px; }
#maker:empty[data-r="mold"] { min-height: 1570px; } #maker:empty[data-r="keychain-maker"] { min-height: 2450px; }
@media (min-width: 901px) {
  #maker:empty[data-r="cookie-cutter-maker"] { min-height: 1190px; } #maker:empty[data-r="cake-topper-maker"] { min-height: 1145px; }
  #maker:empty[data-r="text-to-3d"] { min-height: 1120px; } #maker:empty[data-r="image-to-3d"] { min-height: 1355px; }
  #maker:empty[data-r="mold"] { min-height: 1120px; } #maker:empty[data-r="keychain-maker"] { min-height: 1490px; }
}

/* model page: structured descriptions and multi-file sets */
.desc p { margin: 0 0 10px; }
.desc ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.5; }
.desc li { margin: 3px 0; }
.desc-h { font-size: 16px; margin: 18px 0 8px; }
.desc-more { margin-top: 8px; }
.files { margin-top: 14px; }
.file-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); max-height: 360px; overflow: auto; background: var(--surface); }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.file-list li:first-child { border-top: 0; }
.file-list li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-list small { font-size: 12.5px; }
.file-list .linkbtn { font-size: 14px; white-space: nowrap; }
/* seasonal hubs */
.hub-head { margin: 8px 0 18px; }
.hub-meta { color: var(--muted); }
.hub-h { margin: 28px 0 12px; font-size: 20px; }
.hub-foot { max-width: 760px; margin: 40px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.hub-more { line-height: 1.9; margin-top: 12px; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.seasons a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; }
.seasons a:hover { border-color: var(--ink); }
/* QR code and Gridfinity makers */
.qr-flat { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.qr-flat canvas { width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 6px; image-rendering: pixelated; flex: none; }
.gf-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.gf-num .row { gap: 6px; flex-wrap: nowrap; align-items: center; }
.gf-num input { width: 56px; text-align: center; padding: 6px 4px; }
.gf-num .btn { padding: 6px 12px; min-width: 36px; }
.gf-num .muted { font-size: 13px; white-space: nowrap; }
/* hero: generator buttons and the pricing line (moved out of the header) */
.hero-cta { flex-wrap: wrap; }
.hero-price { margin: 12px 0 0; font-size: 14.5px; }
.hero-price a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
.hero-price a:hover { color: var(--ink); }
.hero-price b { color: var(--ink); }
#maker:empty[data-r="qr-code-generator"] { min-height: 1820px; } #maker:empty[data-r="gridfinity-bin-generator"] { min-height: 1495px; } #maker:empty[data-r="lithophane-maker"] { min-height: 2000px; }
@media (min-width: 901px) { #maker:empty[data-r="qr-code-generator"] { min-height: 1095px; } #maker:empty[data-r="gridfinity-bin-generator"] { min-height: 950px; } #maker:empty[data-r="lithophane-maker"] { min-height: 1355px; } }

/* header on small screens: logo, Upload and one Menu button; the nav opens as a sheet below */
@media (max-width: 860px) {
  header.top .wrap { gap: 12px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px "Archivo", system-ui, sans-serif; font-stretch: 106%; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
  .menu-btn::before { content: ""; width: 16px; height: 10px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
  .acct { gap: 10px; }
  .acct .hide-sm, .acct a.navlink[href^="/account"] { display: none; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 8px 16px 18px; gap: 0; max-height: calc(100vh - 68px); overflow: auto; box-shadow: 0 18px 30px -20px rgba(23, 33, 42, .4); }
  body.nav-open .mainnav { display: flex; }
  .mainnav .navlink { width: 100%; justify-content: space-between; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .dd-panel { position: static; box-shadow: none; border: 0; padding: 4px 0 10px; grid-template-columns: 1fr 1fr; }
  .dd-makers a { padding: 8px 4px; } .dd-seasons a { padding: 8px 4px; }
}
@media (max-width: 420px) { .logo { font-size: 19px; } .acct .navlink { font-size: 14px; } }
/* hero type: wide Archivo, one colour; the pricing line is a plain sentence */
.hero h1 { font-family: "Archivo", system-ui, sans-serif; font-stretch: 112%; font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; max-width: 16ch; }
.hero-price { color: var(--muted); }
.hero-price a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 3px; border: 0; }
.hero-price a:hover { color: var(--accent); }
@media (prefers-color-scheme: dark) { .logo, .dd-makers a:nth-child(-n+3) b { color: var(--accent-bright); } }
@media (max-width: 600px) { .hero-cta { gap: 8px; } .hero-cta .btn.big { padding: 11px 14px; font-size: 15.5px; flex: 1 1 auto; text-align: center; } }
/* icons: 1.75 px teal lines with one marigold "second filament" detail */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3.5px; color: var(--accent); margin-right: 7px; }
.ico .acc { stroke: var(--spark); }
.ico .accf { fill: var(--spark); stroke: none; }
.check .ico { margin: 2px 6px 0 0; }
.maker { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.maker .ico.mk { grid-row: span 2; width: 30px; height: 30px; margin: 2px 0 0; padding: 6px; box-sizing: content-box; border-radius: 9px; background: var(--bg); stroke-width: 1.6; }
.maker b, .maker span { grid-column: 2; }
.dd-makers a { display: grid !important; grid-template-columns: auto 1fr; column-gap: 10px; }
.dd-makers .ico.mk { grid-row: span 2; width: 22px; height: 22px; margin: 1px 0 0; padding: 5px; box-sizing: content-box; border-radius: 8px; background: var(--bg); stroke-width: 1.6; }
.dd-makers a:hover .ico.mk { background: var(--surface); }
@media (prefers-color-scheme: dark) { .ico { color: var(--accent-bright); } }

/* model page: picture / 3D stage with a slider of every design in a set */
.model-media { min-width: 0; }
.stage { position: relative; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); z-index: 1; }
.stage-img[hidden] { display: none; }
.stage-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(23,33,42,.12); }
.stage-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-nav:hover { border-color: var(--accent); color: var(--accent); }
.stage-nav.prev { left: 10px; } .stage-nav.next { right: 10px; }
.stage-cap { position: absolute; left: 12px; top: 10px; z-index: 2; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstrip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 2px 6px; scrollbar-width: thin; }
.pthumb { flex: none; width: 84px; scroll-snap-align: center; padding: 5px 5px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; gap: 4px; justify-items: center; font: inherit; color: var(--ink); }
.pthumb:hover { border-color: var(--muted); }
.pthumb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pthumb.on .plab { color: var(--accent); font-weight: 600; }
.pthumb .pimg { width: 72px; height: 72px; border-radius: 6px; background-color: var(--bg); background-repeat: no-repeat; overflow: hidden; display: grid; place-items: center; }
.pthumb .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pthumb .pnum { font-weight: 700; color: var(--muted); }
.plab { font-size: 11.5px; line-height: 1.25; width: 100%; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) { .stage-nav { width: 38px; height: 38px; } .pthumb { width: 72px; } .pthumb .pimg { width: 60px; height: 60px; } }

/* filament affiliate box on model pages */
.fil { margin-top: 14px; }
.fil-row { display: grid; gap: 8px; }
.fil-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.fil-card:hover, .fil-card:focus-visible { border-color: var(--accent); }
.fil-card small { display: block; font-size: 13px; }
.fil-mat { font: 700 13px/1 "Archivo", system-ui, sans-serif; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 6px 8px; min-width: 44px; text-align: center; }
.fil-go { font-weight: 600; color: var(--accent); }
.fil-note { font-size: 12.5px; margin: 6px 0 0; }
