:root {
  --bg: #f5f2ea; --card: #fffdf8; --ink: #1d2733; --muted: #5d6672; --line: #ddd6c6; --accent: #1b2f57;
  --quote: #7c2a22; --view: #e9e5da; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11161d; --card: #19202a; --ink: #e8e4da; --muted: #9aa3ad; --line: #2b3440; --accent: #9db4e0;
          --quote: #e0a090; --view: #0d1218; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 20px 64px; }
h1, h2 { font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 0 0 6px; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 0.85rem; }
header.site { margin-bottom: 28px; max-width: 760px; }
header.site p { color: var(--muted); font-size: 1.05rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.tile .media { position: relative; aspect-ratio: 3 / 2; background: var(--view); }
.tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .body { padding: 14px 16px 16px; }
.model { margin: 0 0 8px; font-family: "Avenir Next", system-ui, sans-serif; font-size: 0.9rem; color: var(--muted);
         text-transform: uppercase; letter-spacing: 0.06em; }
blockquote { margin: 8px 0 10px; padding: 0 0 0 12px; border-left: 3px solid var(--quote); font-style: italic; }
.parts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9rem; }
.parts span { color: var(--muted); }
.prov { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }
.draft { position: absolute; top: 10px; left: 10px; background: #b4462f; color: #fff; font: 600 0.72rem system-ui, sans-serif;
         letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; }
.draft.inline { position: static; vertical-align: middle; margin-left: 8px; }
.crumb { margin: 0 0 16px; font-family: system-ui, sans-serif; font-size: 0.9rem; }
header.item { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); gap: 28px; margin-bottom: 32px; }
header.item .hero img, header.item .hero video { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--view); display: block; }
@media (max-width: 820px) { header.item { grid-template-columns: 1fr; } }
section { margin: 0 0 36px; }
.viewer { position: relative; height: min(68vh, 620px); background: var(--view); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.vmsg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: system-ui, sans-serif; pointer-events: none; }
.vmsg button, .load3d { pointer-events: auto; }
button { font: 500 0.9rem system-ui, sans-serif; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line);
         background: var(--card); color: var(--ink); cursor: pointer; }
button.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cfg { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.renders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.renders figure { margin: 0; } .renders img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--view); display: block; }
.renders figcaption { font: 0.85rem system-ui, sans-serif; color: var(--muted); margin-top: 4px; text-transform: capitalize; }
table.params { border-collapse: collapse; min-width: min(520px, 100%); }
table.params th, table.params td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.params th { font: 500 0.9rem system-ui, sans-serif; color: var(--muted); white-space: nowrap; }
.scrub { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.scrub input[type=range] { flex: 1 1 260px; accent-color: var(--accent); }
#pblabel { font: 0.95rem system-ui, sans-serif; min-width: 16em; }
footer { margin-top: 48px; }
section.group { margin: 0 0 44px; }
h2.sec { font-size: 1.45rem; margin: 0 0 4px; }
.secintro { color: var(--muted); margin: 0 0 16px; max-width: 760px; }
.tile.pending { opacity: .8; }
.pendnote { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
            color: var(--muted); font: italic 1rem system-ui, sans-serif; }
.pick { position: absolute; top: 10px; right: 10px; background: #c28a1e; color: #fff; font: 600 0.72rem system-ui, sans-serif;
        letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; }
