/* Momatio Asset Lab. Dark, big type, 4.5:1 contrast or better. Works from 360 px up. */
:root {
  --bg: #0d0f12;
  --panel: #161a20;
  --panel-2: #1e242c;
  --line: #333b47;
  --text: #eef0f3;
  --muted: #b2bac6;
  --accent: #ffb454;
  --accent-ink: #1a1204;
  --link: #8ccaff;
  --good: #8fe0a0;
  --bad: #ff9c9c;
  --code-bg: #0a0c0f;
  --radius: 14px;
  --gutter: 16px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1rem/1.55 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
/* the skip link and the site menu come from /nav.js (momatio.com's one shared menu); the page only names itself below */
nav[data-mo-nav] { min-height: 51px; }
/* line the shared menu, its "What's new" strip and its sister-sites footer up with this page's own column (1180 px, same gutter) */
nav.mo-nav, aside.mo-new, footer.mo-foot { max-width: 1180px; padding-left: var(--gutter); padding-right: var(--gutter); }

/* header + footer */
.top { border-bottom: 1px solid var(--line); background: #0a0c0f; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { color: var(--text); font-weight: 700; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-sub { color: var(--accent); font-weight: 600; }
.brand-mark { width: 22px; height: 22px; border: 3px solid var(--accent); border-radius: 5px; transform: rotate(45deg) scale(.82); display: inline-block; }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 56px; background: #0a0c0f; }
.foot-line { font-size: 1.1rem; margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { display: inline-block; padding: 6px 0; }

/* library */
.hero-block { padding: clamp(36px, 8vw, 84px) 0 clamp(20px, 4vw, 36px); background: radial-gradient(1200px 420px at 15% -10%, #2a2013 0%, rgba(13,15,18,0) 70%); }
.big { font-size: clamp(2.3rem, 9vw, 4.8rem); letter-spacing: -0.03em; margin: 0 0 .35em; }
.lede { font-size: clamp(1.2rem, 3.2vw, 1.6rem); line-height: 1.4; max-width: 34em; margin-bottom: .7em; }
.fine { color: var(--muted); font-size: 1rem; margin: 0; }
.lib { padding-top: 12px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 14px; }
.filters[hidden] { display: none; }
.filter-row { display: flex; gap: 12px 14px; align-items: center; flex-wrap: wrap; }
.filter-label { color: var(--muted); font-size: 1rem; min-width: 5.5em; }
.filters-in { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; font-size: 1rem;
}
.pill:hover { border-color: #5b6676; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill-n { opacity: .8; margin-left: 4px; font-size: .95em; }
.count { color: var(--muted); font-size: 1rem; margin: 6px 0 14px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card-li[hidden] { display: none; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; height: 100%; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.card-img { aspect-ratio: 16 / 9; background: #0a0c0f; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { height: 100%; display: grid; place-items: center; color: var(--muted); }
.card-body { padding: 16px 18px 20px; }
.card-title { font-size: 1.3rem; margin: 0 0 10px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 1rem; margin: 0; }
.card-pack { color: var(--muted); font-size: 1rem; margin: 8px 0 0; }
.empty { font-size: 1.2rem; color: var(--muted); padding: 40px 0; }
.chip { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 1rem; color: var(--text); margin: 0 8px 6px 0; }
.chip-cat { border-color: #6b5530; color: var(--accent); text-transform: capitalize; }
.chip-pack { border-color: #2f5b7a; color: var(--link); }
.chip-new { color: var(--good); border-color: #2d5a3a; font-size: .95rem; vertical-align: middle; }

/* asset page */
.crumbs { padding-top: 20px; padding-bottom: 4px; }
.crumbs a { display: inline-block; padding: 8px 0; }
.asset-head h1 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); margin-bottom: .3em; }
.chips { margin: 0 0 14px; }
.brief { max-width: 62ch; margin-bottom: .6em; }
.label { display: inline-block; color: var(--accent); font-size: 1rem; font-weight: 600; margin-right: 8px; text-transform: uppercase; letter-spacing: .04em; }
.honest { color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; max-width: 62ch; margin-top: 18px; }
.sample-banner { background: #3a1d1d; color: #ffd0d0; border: 1px solid #7a3a3a; padding: 10px 14px; border-radius: 10px; display: inline-block; }
.block { padding-top: clamp(32px, 6vw, 56px); }
.sec-note { color: var(--muted); max-width: 66ch; }
.btn {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 12px 20px; min-height: 48px; font-weight: 700; cursor: pointer; font-size: 1.05rem;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 16px; min-height: 44px; font-size: 1rem; background: var(--panel-2); color: var(--text); border: 1px solid #4a5463; font-weight: 600; }
.btn-sm:hover { border-color: var(--accent); filter: none; }
.btn-sm[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.viewer-bar h2 { margin: 0; }
.vpills { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer {
  position: relative; width: 100%; height: clamp(340px, 62vh, 640px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #2b3340 0%, #171b22 62%, #101318 100%);
}
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); z-index: 2; pointer-events: none; }
.viewer-msg[hidden] { display: none; }
.viewer-hint { position: absolute; left: 12px; top: 12px; background: rgba(10,12,15,.78); border-radius: 8px; padding: 6px 12px; font-size: 1rem; color: var(--text); z-index: 3; pointer-events: none; transition: opacity .6s; }
.viewer-hint.gone { opacity: 0; }
.viewer-tools { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; z-index: 3; }
.viewer-tools .btn-sm { background: rgba(22,26,32,.92); }
.viewer-tools .btn-sm[aria-pressed="true"] { background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 0; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.fact dt { color: var(--muted); font-size: 1rem; }
.fact dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 700; }
.media-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tt img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #0a0c0f; }
.tt-frames { touch-action: pan-y; cursor: ew-resize; user-select: none; }
.tt-cap { margin: 10px 4px 0; color: var(--muted); font-size: 1rem; }
.views { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.view-btn { display: block; width: 100%; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; text-align: left; }
.view-btn:hover { border-color: var(--accent); }
.view-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.view-btn span { display: block; padding: 8px 12px; font-size: 1rem; color: var(--muted); }
.vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ver { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; grid-template-columns: 1fr; }
.ver-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0a0c0f; }
.ver-meta { color: var(--muted); font-size: 1rem; margin-bottom: 8px; }
.notes p, .notes ul { margin-bottom: .7em; }
.notes ul { padding-left: 1.3em; }
.notes code, .sec-note code { font-family: var(--mono); font-size: .92em; background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.ver-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.about-list { display: grid; gap: 12px; margin: 0; max-width: 70ch; }
.about-list div { border-top: 1px solid var(--line); padding-top: 10px; }
.about-list dt { color: var(--muted); font-size: 1rem; }
.about-list dd { margin: 2px 0 0; font-size: 1.05rem; }

/* replay */
.replay { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rp-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rp-tabs-label { color: var(--muted); font-size: 1rem; margin-right: 4px; }
.rp-status { padding: 10px 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 1rem; min-height: 46px; display: flex; gap: 8px; align-items: center; }
.rp-status strong { color: var(--accent); font-weight: 600; }
.rp-screen { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; }
.rp-side { order: 1; border-bottom: 1px solid var(--line); min-width: 0; }
.rp-feed-wrap { order: 2; min-width: 0; }
.rp-feed { height: 340px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: auto; }
.rp-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; animation: rp-in .3s ease-out; flex: none; }
@keyframes rp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rp-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; font-size: 1rem; }
.rp-kind { font-weight: 700; color: var(--accent); }
.rp-who { color: var(--muted); }
.rp-at { color: var(--muted); margin-left: auto; font-family: var(--mono); font-size: .95rem; }
.rp-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.5; }
.rp-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rp-imgs:empty { display: none; }
.rp-imgs button { padding: 0; border: 1px solid var(--line); background: #0a0c0f; border-radius: 10px; overflow: hidden; cursor: zoom-in; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.rp-imgs button.on { opacity: 1; transform: none; }
.rp-imgs img { height: 96px; width: auto; max-width: 100%; }
.rp-imgs button.big img { height: auto; max-height: 220px; max-width: 100%; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rp-chips:empty { display: none; }
.rp-chips span { font-size: 1rem; background: #0a0c0f; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--text); opacity: 0; transition: opacity .3s; }
.rp-chips span.on { opacity: 1; }
.kind-error { border-color: #7a3a3a; }
.kind-error .rp-kind { color: var(--bad); }
.kind-done { border-color: #2d5a3a; }
.kind-done .rp-kind { color: var(--good); }
.kind-review .rp-kind { color: var(--link); }
.kind-fix .rp-kind { color: #ffd27a; }
.rp-caret { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: text-bottom; margin-left: 1px; animation: rp-blink 1s steps(2, start) infinite; }
@keyframes rp-blink { to { visibility: hidden; } }
.rp-code { background: var(--code-bg); }
.rp-code-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 1rem; background: #11151a; }
.rp-file { font-family: var(--mono); color: var(--text); font-weight: 600; }
.rp-mode { color: var(--muted); }
.rp-pre { margin: 0; height: 290px; overflow: auto; padding: 12px 16px; font: 16px/1.5 var(--mono); color: #dfe4ea; tab-size: 4; white-space: pre; }
.rp-pre.empty { color: var(--muted); white-space: normal; display: grid; place-items: center; text-align: center; font-family: var(--sans); font-size: 1.05rem; }
.tok-k { color: #ff9ac1; }
.tok-s { color: #a6e3a1; }
.tok-c { color: #98a3b3; font-style: italic; }
.tok-n { color: #ffcf7a; }
.tok-b { color: #8ccaff; }
.dl { display: block; min-width: max-content; padding: 0 6px; margin: 0 -6px; }
.dl-add { background: rgba(70, 190, 110, .16); }
.dl-del { background: rgba(255, 90, 90, .16); }
.dl-hunk { color: #98a3b3; background: rgba(120, 140, 200, .12); }
.dl-meta { color: #98a3b3; }
.rp-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(13, 15, 18, .86); text-align: center; padding: 20px; }
.rp-over[hidden] { display: none; }
.rp-over p { margin: 12px 0 0; color: var(--muted); max-width: 32ch; }
.rp-over .btn { font-size: 1.2rem; padding: 16px 30px; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-top: 1px solid var(--line); background: #11151a; position: sticky; bottom: 0; z-index: 6; }
.rp-play { min-width: 112px; }
.rp-scrub { flex: 1 1 200px; min-width: 120px; height: 44px; accent-color: var(--accent); cursor: pointer; }
.rp-time { font-family: var(--mono); font-size: 1rem; color: var(--muted); min-width: 6.5em; text-align: right; }
.rp-speeds { display: flex; gap: 6px; }
.rp-speeds .btn-sm { min-width: 52px; padding: 8px 10px; }

/* lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--text); }
.lb::backdrop { background: rgba(0, 0, 0, .86); }
.lb-in { display: grid; gap: 10px; justify-items: center; }
.lb img { max-width: 94vw; max-height: 80vh; border-radius: 10px; background: #000; }
.lb-cap { margin: 0; text-align: center; }
.lb-close { position: fixed; right: 14px; top: 14px; }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .media-grid { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: start; }
  .views { grid-template-columns: repeat(3, 1fr); }
  .ver { grid-template-columns: 300px 1fr; }
  .rp-screen { grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); }
  .rp-feed-wrap { order: 1; border-right: 1px solid var(--line); }
  .rp-side { order: 2; border-bottom: 0; }
  .rp-feed { height: 460px; }
  .rp-pre { height: 413px; }
  .rp-bar { position: static; }
}
@media (max-width: 560px) {
  .filters { gap: 6px; }
  .filter-row { display: block; }
  .filter-label { display: block; min-width: 0; margin-bottom: 4px; }
  .filters-in { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: thin; }
  .pill { flex: none; padding: 8px 14px; }
  .hero-block { padding-bottom: 8px; }
}
@media (max-width: 480px) {
  .viewer-tools { gap: 6px; }
  .viewer-tools .btn-sm { padding: 6px 10px; font-size: .9rem; }
  .rp-bar { gap: 8px 10px; }
  .rp-play { min-width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rp-card, .rp-caret { animation: none; }
  .rp-imgs button, .rp-chips span, .card { transition: none; }
}

/* without JavaScript the viewer tools and loading text have nothing to do */
html:not(.js) #viewer-msg, html:not(.js) .viewer-tools, html:not(.js) .viewer-hint { display: none; }
.viewer-nojs { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

/* "Watch it appear in Blender": one muted clip per version, above the replay */
.appear { max-width: 800px; }
.appear-ver { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.appear-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #3b3b3b; border: 1px solid var(--line); border-radius: var(--radius); }
.appear-video[hidden], .appear-none[hidden] { display: none; }
.appear-none { margin: 0; padding: 28px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.appear-note { margin: 12px 0 0; max-width: 66ch; color: var(--muted); font-size: 1rem; }

/* "Seen in Dispersed 3D": one quiet line under an asset's title, and on its kit card */
.used-in { margin: 0 0 14px; font-size: 1.05rem; }
.used-in a { display: inline-block; padding: 4px 0; }

/* the library's one line pointing at the kit */
.kit-line { margin-top: 10px; }

/* The Dispersed Camp Kit: a grid of cards (picture, real size, triangles, file size), then the build videos */
.kit-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.kit-card:hover, .kit-card:focus-within { border-color: var(--accent); }
.kit-link { display: block; color: inherit; text-decoration: none; }
.kit-link:hover { color: inherit; }
.kit-link:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.kit-card .used-in { margin: 0; padding: 0 18px 14px; }
.kit-facts { margin: 0; display: grid; gap: 4px; }
.kit-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.kit-facts dt { color: var(--muted); font-size: 1rem; }
.kit-facts dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.clip { margin: 0; }
.clip figcaption { margin-top: 8px; font-size: 1.05rem; }
.clip figcaption a { display: inline-block; padding: 4px 0; font-weight: 600; }
.kit-close { font-size: 1.2rem; margin: 0; max-width: 40em; }
.kit-close a { display: inline-block; padding: 6px 0; }

/* Ask the Lab: the request form and the public build queue (out/ask/) */
.ask-form, .ask-thanks { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 26px; max-width: 46rem; }
.ask-form { border-top: 4px solid var(--accent); }
.ask-thanks { border-top: 4px solid var(--good); }
.ask-thanks:focus { outline: none; }
.ask-thanks h2 { margin-top: 0; }
.ask-thanks .thanks-links a { display: inline-block; padding: 10px 0; margin-right: 22px; font-weight: 600; }
.ask-field { margin: 0 0 22px; }
.ask-field label { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin: 0 0 7px; }
.ask-field input[type="text"], .ask-field textarea {
  display: block; width: 100%; min-height: 48px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text);
  background: var(--code-bg); border: 1.5px solid #7d8794; border-radius: 8px; padding: 10px 12px;
}
.ask-field textarea { min-height: 112px; resize: vertical; }
.ask-field [aria-invalid="true"] { border: 2px solid var(--bad); }
.ask-hint { margin: 7px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.ask-err { margin: 7px 0 0; color: var(--bad); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.ask-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ask-result { margin: 0 0 18px; padding: 12px 14px; background: #3a1d1d; border-left: 4px solid var(--bad); color: var(--text); font-weight: 600; }
.ask-send { min-width: 220px; min-height: 52px; font-size: 1.1rem; }
.ask-send[disabled] { background: #6d7684; color: #fff; cursor: progress; filter: none; }
.queue { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; max-width: 46rem; }
.queue[hidden] { display: none; }
.queue-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.queue-item p { margin: 0 0 8px; }
.queue-item p:last-child { margin-bottom: 0; }
.queue-need { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.queue-meta, .queue-note { color: var(--muted); overflow-wrap: anywhere; }
.queue-item .chip { margin-bottom: 8px; }
.queue-item .chip-done { color: var(--good); border-color: #2d5a3a; }
.queue-item .chip-building { color: var(--accent); border-color: #6b5530; }
.queue-open a { display: inline-block; padding: 8px 0; font-weight: 600; }
.queue-waiting { font-size: 1.1rem; max-width: 46rem; }
@media (max-width: 600px) {
  .ask-form, .ask-thanks { padding: 18px 14px 20px; }
  .ask-send { width: 100%; }
}

/* "Studio render": a product-style still and a wireframe still (assetgen studio). No video, nothing spins: the point is clarity. */
.studio { display: grid; gap: 16px; grid-template-columns: 1fr; }
.studio figure { margin: 0; min-width: 0; }
.studio a { display: block; }
.studio img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #101014; border: 1px solid var(--line); border-radius: var(--radius); }
.studio a:hover img, .studio a:focus-visible img { border-color: var(--accent); }
.studio figcaption { margin: 8px 2px 0; color: var(--muted); font-size: 1rem; }
.studio-note { margin-top: 0; }

/* the 3D viewer opens on a still picture (the version's hero render) and loads the model when it is about to be seen */
.viewer-poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #1a1f27; pointer-events: none; transition: opacity .35s ease-out, visibility 0s; }
.viewer-poster.gone { opacity: 0; visibility: hidden; transition: opacity .35s ease-out, visibility 0s .35s; }
.viewer-msg { inset: auto 12px 16px 12px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); display: block; padding: 10px 16px; z-index: 3;
  background: rgba(10, 12, 15, .86); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.viewer-msg[hidden] { display: none; }
.viewer-go { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; min-width: 220px; width: max-content; max-width: calc(100% - 24px); white-space: nowrap; }
.viewer-go[hidden] { display: none; }
.viewer--wait .viewer-tools, .viewer--wait .viewer-hint { display: none; }
.viewer-nojs { inset: auto 12px 12px 12px; z-index: 3; padding: 10px 16px; background: rgba(10, 12, 15, .86); border: 1px solid var(--line); border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .viewer-poster, .viewer-poster.gone { transition: none; } }

/* "Made with": the credits for a model built from free third-party pieces. Plain text, visible on the page, never behind a click. */
.credits { margin-top: 28px; max-width: 70ch; }
.credits[hidden] { display: none; }
.credits h3 { margin-bottom: .35em; }
.credits-note { color: var(--muted); margin-bottom: .6em; }
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.credits-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.cr-part { display: block; font-weight: 700; color: var(--text); }
.cr-rest { display: block; color: var(--text); font-size: 1.05rem; }
.cr-rest a { display: inline-block; padding: 4px 0; }

/* a long unbreakable word in a version's notes (a web address, a file path) must wrap, never widen the page on a phone */
.ver-body, .notes, .credits { min-width: 0; overflow-wrap: anywhere; }
