:root { --bg:#17120e; --panel:#241c15; --line:#3a2d22; --text:#f3e9dc; --muted:#b8a48f; --accent:#ff8c1a; --accent2:#ffb347; --ok:#8fd36b; --bad:#ff7a6b; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; background:var(--bg); color:var(--text); line-height:1.45; }
a { color:var(--accent2); }
header.top { padding:12px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
header.top .brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
header.top .brand img { width:28px; height:28px; }
header.top h1 { font-size:18px; margin:0; letter-spacing:.3px; }
header.top .tag { color:var(--muted); font-size:13px; }
header.top nav { margin-left:auto; display:flex; gap:16px; font-size:14px; }
header.top nav a { color:var(--muted); text-decoration:none; }
header.top nav a:hover, header.top nav a.cta { color:var(--accent2); }
footer.site { border-top:1px solid var(--line); padding:18px 20px 28px; color:var(--muted); font-size:13px; display:flex; gap:18px; flex-wrap:wrap; align-items:center; }
footer.site a { color:var(--muted); }
footer.site .spacer { flex:1; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px; }
.step { font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--accent2); margin:0 0 8px; }
.drop { border:2px dashed var(--line); border-radius:10px; padding:22px; text-align:center; color:var(--muted); cursor:pointer; }
.drop.over { border-color:var(--accent); color:var(--text); }
.drop input { display:none; }
label.row { display:grid; grid-template-columns: 1fr 52px; align-items:center; gap:8px; font-size:13px; margin:10px 0 2px; }
label.row b { font-weight:500; }
label.row output { color:var(--muted); text-align:right; font-variant-numeric: tabular-nums; }
input[type=range] { width:100%; accent-color:var(--accent); }
.hint { font-size:12px; color:var(--muted); margin:2px 0 6px; }
select, button, input[type=email], input[type=text] { font: inherit; }
select, input[type=email], input[type=text] { width:100%; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:#1b140f; color:var(--text); }
button.primary, a.button { display:inline-block; width:100%; margin-top:12px; padding:12px 16px; border:0; border-radius:10px; background:var(--accent); color:#1a0f05; font-weight:700; cursor:pointer; text-align:center; text-decoration:none; }
button.primary:disabled { opacity:.45; cursor:default; }
button.secondary { width:100%; margin-top:8px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#1b140f; color:var(--accent2); cursor:pointer; }
a.button.inline, button.primary.inline { width:auto; }
.progress { height:8px; background:#120d09; border-radius:6px; overflow:hidden; margin-top:10px; display:none; }
.progress i { display:block; height:100%; width:0; background:linear-gradient(90deg, var(--accent), var(--accent2)); transition:width .4s; }
.status { font-size:13px; color:var(--muted); min-height:18px; margin-top:6px; }
.views { display:grid; grid-template-rows:auto 1fr; gap:12px; }
.imgs { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; }
.imgs figure { margin:0; background:#0e0a07; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.imgs figure.off { display:none; }
.imgs img { width:100%; display:block; max-height:46vh; object-fit:contain; background:#000; }
.imgs figcaption { font-size:12px; color:var(--muted); padding:6px 10px; }
.viewer { position:relative; min-height:420px; background:#0e0a07; border-radius:10px; border:1px solid var(--line); overflow:hidden; }
.viewer canvas { display:block; width:100%; height:100%; }
.viewer .empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; text-align:center; padding:20px; }
.downloads { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.downloads a { padding:9px 12px; border-radius:8px; background:#1b140f; border:1px solid var(--line); color:var(--accent2); text-decoration:none; font-size:13px; }
.downloads a.main { background:var(--accent); color:#1a0f05; font-weight:700; border-color:transparent; }
.downloads a small { color:var(--muted); font-weight:400; }
.downloads a.main small { color:#4a2a0a; }
.stats { font-size:12px; color:var(--muted); margin-top:8px; line-height:1.5; }
.styles { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:6px 0 4px; }
.stylecard { display:flex; flex-direction:column; gap:3px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#1b140f; cursor:pointer; font-size:13px; }
.stylecard small { color:var(--muted); font-size:11px; line-height:1.3; }
.stylecard input { display:none; }
.stylecard:has(input:checked) { border-color:var(--accent); background:#2a1c10; }
.busy { position:fixed; inset:0; background:rgba(10,7,5,.72); display:flex; align-items:center; justify-content:center; z-index:50; backdrop-filter:blur(2px); }
.busy[hidden] { display:none; }
.busy-card { width:min(420px, 86vw); background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px 24px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.busy-title { font-size:16px; font-weight:600; margin-bottom:12px; }
.busy-bar { height:10px; background:#120d09; border-radius:6px; overflow:hidden; }
.busy-bar i { display:block; height:100%; width:0; background:linear-gradient(90deg, var(--accent), var(--accent2)); transition:width .5s ease; }
.busy-stage { font-size:13px; color:var(--muted); margin-top:10px; min-height:18px; }
.toggle { font-size:13px; color:var(--muted); display:flex; gap:8px; align-items:center; margin-top:8px; }
.seg { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:10px; overflow:hidden; margin:4px 0 8px; }
.seg.off { display:none; }
.seg input { display:none; }
.seg label { padding:9px 6px; text-align:center; font-size:13px; cursor:pointer; color:var(--muted); background:#1b140f; }
.seg label b { display:block; font-weight:600; color:var(--text); }
.seg label small { font-size:11px; }
.seg input:checked + label { background:var(--accent); color:#3a2208; }
.seg input:checked + label b { color:#1a0f05; }
.note { font-size:12px; color:var(--muted); background:#1b140f; border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin:0 0 8px; line-height:1.45; }
.note.warn { border-color:#7a4a12; color:#ffcf8a; }
.note.ok { border-color:#3f6b2d; color:#cdeab9; }
.note.off { display:none; }
/* purchase box */
.buy { margin-top:12px; border:1px solid var(--line); border-radius:12px; padding:14px; background:#1b140f; }
.buy h3 { margin:0 0 6px; font-size:16px; }
.buy ul { margin:6px 0 10px 18px; padding:0; font-size:13px; color:var(--muted); }
.buy .price { font-size:22px; font-weight:700; color:var(--accent2); }
.buy .fine { font-size:12px; color:var(--muted); margin-top:8px; }
.buy input[type=email] { margin-top:8px; }
/* landing */
.hero { display:grid; grid-template-columns: 1.1fr 1fr; gap:28px; align-items:center; padding:40px 24px 24px; max-width:1100px; margin:auto; }
.hero h2 { font-size:clamp(28px, 4vw, 44px); line-height:1.1; margin:0 0 14px; }
.hero p.lead { font-size:17px; color:var(--muted); margin:0 0 18px; }
.hero img { width:100%; border-radius:16px; border:1px solid var(--line); box-shadow:0 30px 80px rgba(0,0,0,.45); }
.hero .ctas { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hero .ctas .sub { font-size:13px; color:var(--muted); }
section.band { max-width:1100px; margin:auto; padding:28px 24px; }
section.band h3 { font-size:22px; margin:0 0 14px; }
.tipband { padding-top:0; }
.tipcard { display:grid; grid-template-columns: 1fr 1.1fr; gap:22px; align-items:center; background:#1b140f; border:1px solid var(--line); border-radius:16px; padding:18px; }
.tipcard img { width:100%; border-radius:10px; border:1px solid var(--line); }
.tipcard .n { font-size:12px; letter-spacing:.08em; color:var(--accent); font-weight:700; margin-bottom:6px; }
.tipcard h4 { margin:0 0 8px; font-size:20px; }
.tipcard p { margin:0; color:var(--muted); line-height:1.5; }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:14px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px; }
.card .n { color:var(--accent); font-weight:700; font-size:13px; letter-spacing:1px; }
.card h4 { margin:6px 0 6px; font-size:16px; }
.card p { margin:0; color:var(--muted); font-size:14px; }
.pricebox { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.pricebox.one { grid-template-columns:1fr; max-width:560px; }
.pricebox .plan p { color:var(--muted); font-size:14px; line-height:1.5; flex:1; }
.pricebox .plan .button { margin-top:12px; }
.pricebox .big { font-size:40px; font-weight:800; color:var(--accent2); }
.faq details { border-bottom:1px solid var(--line); padding:10px 0; }
.faq summary { cursor:pointer; font-weight:600; }
.faq p { color:var(--muted); margin:8px 0 0; font-size:14px; }
.prose { max-width:760px; margin:auto; padding:28px 24px 48px; }
.prose h2 { margin-top:0; }
.prose h3 { margin-top:24px; }
.prose p, .prose li { color:var(--muted); font-size:15px; }
.prose li { margin:4px 0; }
.jobgrid { display:grid; grid-template-columns: 1.2fr 1fr; gap:16px; padding:16px; max-width:1200px; margin:auto; }
.jobgrid .right { display:grid; gap:12px; align-content:start; }
.pill { display:inline-block; padding:3px 9px; border-radius:999px; font-size:12px; border:1px solid var(--line); color:var(--muted); }
.pill.paid { border-color:#3f6b2d; color:var(--ok); }
@media (max-width: 900px) { .hero, .jobgrid, .pricebox, .tipcard { grid-template-columns:1fr; } }
/* paywall plans + Unlimited pass */
.plans { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.plans.one { grid-template-columns:1fr; }
.plan { position:relative; border:1px solid var(--line); border-radius:10px; padding:12px; background:#15100c; display:flex; flex-direction:column; }
.plan.best { border-color:var(--accent); }
.plan .badge { position:absolute; top:-9px; right:10px; background:var(--accent); color:#1a0f05; font-size:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; padding:2px 7px; border-radius:999px; }
.plan .p { font-size:22px; font-weight:800; color:var(--accent2); line-height:1.1; }
.plan small { display:block; color:var(--muted); font-size:12px; margin-top:4px; flex:1; }
.plan button.primary { margin-top:10px; padding:10px 12px; font-size:14px; }
.pricebox .plan .p { font-size:40px; }
button.ghost { padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; }
.restore { position:fixed; right:16px; top:64px; z-index:50; width:min(360px, calc(100vw - 32px)); background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px; box-shadow:0 12px 40px rgba(0,0,0,.5); font-size:14px; }
.restore p { color:var(--muted); font-size:13px; margin:6px 0 10px; }
.restore .row { display:flex; gap:8px; align-items:center; margin-top:8px; }
.restore .row button.primary { margin-top:0; }
@media (max-width: 560px) { .plans { grid-template-columns:1fr; } }

/* night view controls */
.toggle .sep { width:1px; height:14px; background:var(--line); margin:0 4px; }
.toggle .glowrow { display:inline-flex; align-items:center; gap:6px; margin-left:6px; }
.toggle .glowrow input[type=range] { width:120px; margin:0; }
.toggle input[type=checkbox]:disabled + label { opacity:.45; }

/* v2026-10-26: groups, printer picker, capture buttons, gallery, admin */
.toggle .spacer { flex:1; }
button.ghost.small { padding:5px 9px; font-size:12px; border-radius:8px; }
button.ghost:disabled { opacity:.4; cursor:default; }
.photolist { margin-top:8px; display:grid; gap:6px; }
.photorow { display:grid; grid-template-columns:22px 1fr 1.2fr auto; gap:8px; align-items:center; font-size:12px; }
.photorow .n { width:22px; height:22px; border-radius:50%; background:var(--accent); color:#1a0f05; font-weight:700; display:flex; align-items:center; justify-content:center; }
.photorow .fn { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.photorow input { padding:6px 8px; font-size:12px; }
.bedrow { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
.bedrow input { padding:7px 8px; font-size:13px; }
.stylecard.nofit { opacity:.4; cursor:not-allowed; position:relative; }
.stylecard.nofit::after { content:"too big for your printer"; font-size:10px; color:var(--bad); }
.gallery { max-width:1200px; margin:auto; padding:20px 24px 40px; }
.gallery .grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.gallery figure { margin:0; background:#0e0a07; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.gallery img { width:100%; aspect-ratio:1; object-fit:cover; display:block; background:#000; }
.gallery figcaption { padding:8px 10px; font-size:13px; }
.gallery figcaption small { display:block; color:var(--muted); font-size:11px; }
.gallery .empty { color:var(--muted); padding:40px; text-align:center; }
.gal-box { margin-top:12px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#1b140f; font-size:13px; }
.gal-box h4 { margin:0 0 6px; font-size:14px; }
.gal-box img { width:120px; border-radius:8px; float:right; margin:0 0 6px 10px; }
.gal-box .row { display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.gal-box input[type=text] { flex:1; min-width:140px; }
.gal-box button.primary { width:auto; margin:0; padding:8px 12px; font-size:13px; }
/* admin */
.admin { max-width:1300px; margin:auto; padding:16px 20px 40px; font-size:13px; }
.admin .kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px; margin:12px 0; }
.admin .kpi { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.admin .kpi b { display:block; font-size:22px; color:var(--accent2); }
.admin table { width:100%; border-collapse:collapse; font-size:12px; }
.admin th, .admin td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.admin th { color:var(--muted); font-weight:500; position:sticky; top:0; background:var(--bg); }
.admin tr.paid td:first-child { border-left:3px solid var(--ok); }
.admin tr.refunded td { opacity:.55; }
.admin .actions button { padding:4px 8px; font-size:11px; margin:1px; }
.admin .bar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:10px 0; }
.admin .bar input[type=text], .admin .bar input[type=email] { width:auto; min-width:200px; padding:7px 9px; }
.admin h3 { margin:22px 0 8px; font-size:16px; }
.admin .mono { font-family:ui-monospace, Menlo, monospace; font-size:11px; }
.admin .galgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.admin .galgrid figure { margin:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#0e0a07; }
.admin .galgrid img { width:100%; aspect-ratio:1; object-fit:cover; display:block; }
.admin .galgrid figcaption { padding:6px; font-size:11px; }
.admin .galgrid .pending { border-color:var(--accent); }
.login { max-width:420px; margin:60px auto; }

/* print & ship */
.print-box { margin-top:12px; border:1px solid var(--line); border-radius:12px; padding:14px; background:#1b140f; font-size:13px; }
.print-box h3 { margin:0 0 6px; font-size:16px; }
.print-box details > summary { cursor:pointer; color:var(--accent2); font-weight:600; margin-top:6px; }
.print-box .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.print-box .grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.print-box input[type=text], .print-box input[type=email], .print-box select { margin-top:8px; }
.print-box label.row { display:block; margin-top:10px; }
.print-box label.row small { color:var(--muted); font-weight:400; }
.print-box .fine { font-size:12px; color:var(--muted); margin-top:8px; }
.print-box .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.print-box .row button.primary { width:auto; margin:0; padding:10px 14px; }
.swatches { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.swatch { display:inline-flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer; padding:4px; border-radius:8px; border:1px solid transparent; width:58px; }
.swatch input { position:absolute; opacity:0; width:0; height:0; }
.swatch .dot { width:26px; height:26px; border-radius:50%; border:2px solid #000; box-shadow:0 0 0 1px var(--line); }
.swatch small { font-size:10px; color:var(--muted); text-align:center; line-height:1.1; max-width:56px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.swatch:has(input:checked) { border-color:var(--accent); background:#2a1d12; }
.swatch:has(input:checked) .dot { box-shadow:0 0 0 2px var(--accent); }
.swatch.out { opacity:.35; cursor:default; }
.quote { margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#15100c; display:flex; gap:10px; align-items:center; }
.quote.ready { display:block; border-color:var(--accent); }
.quote .big { font-size:22px; font-weight:800; color:var(--accent2); }
.quote .big small { font-size:13px; font-weight:400; color:var(--muted); }
.spin { width:16px; height:16px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin 1s linear infinite; flex:none; }
@keyframes spin { to { transform:rotate(360deg); } }
.order-card { margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#15100c; font-size:13px; }
.order-card .head { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.order-card .head a.small { font-size:12px; margin-left:auto; }
.order-card .meta { margin-top:6px; color:var(--muted); }
.order-card .addr { margin-top:8px; color:var(--muted); font-size:12px; line-height:1.4; }
.order-card .colour i { display:inline-block; width:11px; height:11px; border-radius:50%; vertical-align:-1px; margin-right:4px; border:1px solid #000; }
.pill.bad { border-color:#7a2a2a; color:#ff9a9a; }
.timeline { list-style:none; display:flex; margin:10px 0 4px; padding:0; gap:0; }
.timeline li { flex:1; position:relative; text-align:center; font-size:11px; color:var(--muted); padding-top:16px; }
.timeline li i { position:absolute; top:0; left:50%; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:#2a1d12; border:2px solid var(--line); box-sizing:border-box; }
.timeline li::before { content:""; position:absolute; top:5px; left:0; right:0; height:2px; background:var(--line); }
.timeline li:first-child::before { left:50%; } .timeline li:last-child::before { right:50%; }
.timeline li.done i, .timeline li.now i { background:var(--accent); border-color:var(--accent); }
.timeline li.done::before { background:var(--accent); }
.timeline li.now { color:var(--accent2); font-weight:700; }
.timeline li.now i { box-shadow:0 0 0 3px #4a2a0a; }
.orderpage { max-width:720px; margin:auto; padding:16px; }
.orderpage .order-card { margin-top:0; }
.admin table tr.cancelled td { opacity:.5; }
@media (max-width:640px) { .print-box .grid3 { grid-template-columns:1fr 1fr; } .print-box .grid3 > div[style] { grid-column:span 2; } .timeline li { font-size:10px; } }
