* { box-sizing: border-box }
:root {
  color-scheme: light;
  --ink: #1d1d1f; --secondary: #55555c; --line: #d6d6db; --canvas: #f5f5f7;
  --blue: #0066cc; --blue-deep: #004e9d; --paper: #fff;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0 }
h1,h2,h3,p { margin: 0 }
h1 { font-size: clamp(36px,5vw,64px); line-height: 1.1; letter-spacing: -.055em }
h2 { font-size: 21px; letter-spacing: -.025em }
h3 { font-size: 16px }
button, input, select, textarea { font: inherit; color: inherit }
button, a, summary { touch-action: manipulation }
button,select,summary { cursor: pointer }
button,.quiet,.inline,.brand,summary { min-height: 44px; min-width: 44px }
button { background: #f3f4f6; border: 1px solid transparent; border-radius: 12px; padding: 9px 17px; font-weight: 600 }
button:hover:not(:disabled) { background: #e6e8ed }
button:disabled { cursor: default; opacity: .5 }
.primary,.solid { color: white; background: var(--blue); border-radius: 99px; padding-inline: 24px }
.primary:hover:not(:disabled),.solid:hover:not(:disabled) { background: var(--blue-deep) }
a { color: inherit; text-decoration: none }
.quiet,.inline,summary { display: inline-flex; align-items: center; color: var(--blue); background: transparent; font-weight: 500 }
summary { display: list-item; align-content: center }
:focus-visible { outline: 3px solid #1671ce; outline-offset: 3px }
.wrap { width: min(100%,1200px); margin: auto; padding-inline: clamp(18px,4vw,48px) }
.bar { background: var(--paper); border-bottom: 1px solid #e4e4e8 }
.head,.row,.tools,.upload,.panelhead,.titleline,.total,.qty,.tabs { display: flex; align-items: center; gap: 12px }
.head,.spread,.panelhead,.titleline,.upload,.total { justify-content: space-between }
.head { min-height: 60px }
.brand { display: inline-flex; align-items:center; gap:10px; font-size:21px; font-weight:700; letter-spacing:-.04em }
.brandmark { width:22px;height:22px;background:var(--ink);border-radius:6px;display:grid;place-items:center }
.brandmark::after { content:""; width:10px;height:10px;border:1.5px solid white;border-radius:3px;transform:rotate(-9deg) }
.intro { display:grid;justify-items:center;text-align:center;gap:13px;padding-block:clamp(58px,12vh,132px) }
.intro .primary { margin-top:14px;min-height:48px }
small,.hint,.mode,.preview-chip,.caption { color:var(--secondary);font-size:14px;line-height:1.55 }
.intro .availability { font-size:14px;color:#704a00;padding-top:8px }
.titleline { margin:38px 0 24px }
.titleline h1 { font-size:clamp(32px,4vw,46px) }
.layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:22px;align-items:start;padding-bottom:48px }
.panel,.metric { background:white;border-radius:20px;overflow:hidden }
.panelhead { padding:20px 24px;border-bottom:1px solid #ebebed }
.board { min-height:330px;height:clamp(330px,35vw,440px);display:grid;place-items:center;position:relative;background:#eaeaec;padding:20px 18px 44px }
.mount { line-height:0;max-width:100% }
.mount canvas { display:block;max-width:100%;max-height:clamp(255px,27vw,350px);width:auto;height:auto;touch-action:none;cursor:grab;box-shadow:0 4px 16px #0002 }
.mount canvas:active { cursor:grabbing }
.caption { position:absolute;bottom:11px }
.tools,.upload { padding:12px 22px;flex-wrap:wrap }
.tools { border-bottom:1px solid #eee }
.tools label { display:flex;align-items:center;gap:8px }
input[type=range] { accent-color:var(--blue);height:44px;width:94px }
.tools .quiet { padding-inline:7px }
.file { position:absolute;clip-path:inset(50%);width:1px;height:1px }
.controls,.pad { padding:24px }
.fieldgroup { margin-bottom:21px }
.fieldgroup h3 { margin-bottom:10px }
.choices,.swatches,.metrics { display:grid;gap:8px }
.choices { grid-template-columns:repeat(3,minmax(0,1fr)) }
.swatches { grid-template-columns:repeat(2,minmax(0,1fr)) }
.choice { background:white;border:1px solid var(--line);padding:10px 4px }
.choice small { display:block;font-size:12px }
.choice[aria-pressed=true] { background:#eff6ff;border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue) }
.finish { display:flex;justify-content:center;align-items:center;gap:7px;font-size:14px }
.swatch { width:16px;height:16px;border-radius:50%;border:1px solid #b3b5b8;background:linear-gradient(125deg,#b4b4b4,#fff,#a0a0a0) }
.swatch.Matte { background:#d3d3d0 }.swatch.MatteLuster {background:linear-gradient(110deg,#b2b2af,#ecebe7)}.swatch.MatteFine {background:repeating-linear-gradient(45deg,#ccc 0 1px,#ddd 1px 2px)}
.qty { gap:0;background:var(--canvas);border-radius:12px }
.qty button { min-width:44px;padding:0;background:transparent }
.qty output { min-width:20px;text-align:center;font-variant-numeric:tabular-nums }
.summary { margin-top:20px;padding-top:18px;border-top:1px solid var(--line) }
.total { margin-bottom:14px }
.price { font-size:30px;font-weight:700;letter-spacing:-.05em;font-variant-numeric:tabular-nums }
.big { width:100%;min-height:48px }
.payhint { text-align:center;margin-top:8px }
.notice,.error { background:#f2f6fb;color:#304965;padding:12px 15px;border-radius:10px }
.error { color:#8e261b;background:#fff2ee }
.notice:empty,.error:empty,[hidden] { display:none!important }
.mono { font-family:ui-monospace,Consolas,monospace;font-size:.93em }
.tabs { gap:4px;flex-wrap:wrap;margin-bottom:22px }
.tab { font-size:15px;background:transparent;color:var(--secondary);padding-inline:14px }
.tab.active { background:var(--ink);color:white }
.tabs #exit { margin-left:auto }
.metrics { grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px }
.metric { text-align:left;padding:18px 20px;font-weight:400 }
.metric span { color:var(--secondary);font-size:14px }
.metric strong { display:block;font-size:30px;letter-spacing:-.04em }
.form { max-width:800px }
.stack { display:grid;gap:18px }
.form label,.filters label { display:grid;gap:5px;font-size:15px }
input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea { display:block;min-height:44px;min-width:0;width:100%;padding:8px 12px;background:white;border:1px solid var(--line);border-radius:10px }
textarea { resize:vertical }
input[readonly] { color:var(--secondary) }
input[type=checkbox] { width:19px;height:19px;accent-color:var(--blue) }
.price-row { display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eee;padding-block:6px }
.price-row label { display:inline-flex;align-items:center;min-height:44px }
.price-row .amount input { width:82px }
.filters { display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px 24px 0 }
.record { display:grid;gap:6px;overflow-wrap:anywhere;padding-bottom:14px;border-bottom:1px solid var(--line) }
.record .row,.receipt .row { flex-wrap:wrap }
.record-photo { width:112px;height:112px;object-fit:contain;object-position:left center }
.status,.step { color:#215c52;font-weight:600 }
.facts,.receipt dl { display:grid;grid-template-columns:auto 1fr;gap:10px 20px;margin:0 }
dt { color:var(--secondary) }
dd { margin:0;overflow-wrap:anywhere }
.spec { padding-block:8px;color:var(--secondary);font-size:14px }
.spec p+p {margin-top:6px}
.qr { width:min(220px,100%);height:auto }
.qr-content { overflow-wrap:anywhere;white-space:pre-wrap }
.receipt { max-width:560px;margin:24px auto }
.receipt dl { margin-block:22px;padding-block:16px;border-block:1px solid var(--line) }
.receipt dd { text-align:right }
dialog { border:none;border-radius:20px;padding:26px;max-width:min(90vw,440px);box-shadow:0 10px 50px #0002 }
dialog::backdrop {background:#14141866}
dialog p {margin:14px 0}
#toast { position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:10px 18px;border-radius:12px;max-width:90vw;z-index:3 }
.staff main { padding-bottom:48px }
@media(max-width:740px) {
 .layout { grid-template-columns:1fr;gap:16px }
 .metrics { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px }
 .board { min-height:250px;height:310px }.mount canvas {max-height:242px}
 .controls,.pad,.panelhead {padding:18px}
 .tools,.upload {padding-inline:12px;gap:8px}
 .titleline {margin:24px 0 16px}.tabs #exit {margin-left:0}
 .filters label:first-child {width:100%}
}
@media(max-width:360px) { .wrap {padding-inline:12px}.tools input[type=range]{width:68px}.finish{font-size:13px} }

