:root { color-scheme: light; font: 14px Inter, Arial, sans-serif; color: #261e18; background: #f8f5ee; --line: #dcd4c8; --accent: #9d4c22; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1510px; margin: auto; padding: 24px clamp(16px, 4vw, 64px); }
header { margin: 0 0 18px; }
.studio-link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
h1 { font: 400 clamp(38px, 5vw, 68px)/1.02 'Playfair Display', Georgia, serif; margin: 5px 0 0; }
h1 small { color: #786c61; font: 500 .28em Inter, sans-serif; vertical-align: middle; margin-left: 4px; }
a { color: inherit; text-underline-offset: 3px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.stage, .panel { min-width: 0; border: 1px solid var(--line); background: #fffcf7; }
.scene { position: relative; width: 100%; min-height: 420px; height: min(65vh, 690px); overflow: hidden; background: #6e7050; }
.studio-canvas { display: block; width: 100%; height: 100%; }
.loading, .dimensions { position: absolute; z-index: 1; margin: 0; background: #2d231bdc; color: #fffaf2; padding: 9px 12px; pointer-events: none; }
.loading { top: 12px; left: 12px; }
.dimensions { bottom: 12px; left: 12px; font-variant-numeric: tabular-nums; }
.dimensions:empty { display: none; }
.view-bar, .presets, .downloads { display: flex; flex-wrap: wrap; gap: 6px; }
.view-bar { padding: 8px; }
button, input, select { font: inherit; color: inherit; }
button, select, input[type='number'] { min-height: 36px; border: 1px solid var(--line); background: #fffdf9; padding: 6px 9px; }
button, select, summary, .finishes label { cursor: pointer; }
button:hover, button[aria-pressed='true'] { border-color: var(--accent); }
button[aria-pressed='true'] { box-shadow: inset 0 -2px var(--accent); background: #f3e8d8; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { padding: 16px; display: grid; gap: 14px; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend, summary { padding: 0; margin: 0 0 8px; font-weight: 700; }
.finishes label { display: grid; grid-template-columns: auto auto 1fr; gap: 9px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); }
.finishes label + label { margin-top: 6px; }
.finishes label:has(:checked) { border-color: var(--accent); background: #f7eee0; }
.finishes input { margin: 0; accent-color: var(--accent); }
.finishes small { display: block; color: #6a5c50; font-size: 11px; margin-top: 3px; }
.chip { width: 26px; height: 26px; border: 1px solid #0002; background-size: cover; }
.gold { background-color: #b68a39; }
.silver { background-color: #b4a899; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair label, details label { font-size: 12px; font-weight: 500; }
.pair input, .pair select, details select { width: 100%; margin-top: 4px; }
.hint { font-size: 11px; color: #6c6258; margin: 7px 0; line-height: 1.4; }
.hint.invalid { color: #9d391f; }
.presets button { min-height: 32px; font-size: 12px; }
details { border-top: 1px solid var(--line); padding-top: 10px; }
details summary { margin: 0; }
details label { display: block; margin-top: 9px; }
details output { float: right; }
details input[type='range'] { display: block; width: 100%; accent-color: var(--accent); }
.downloads { align-items: center; font-size: 12px; justify-content: space-between; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 0; color: #62574b; font-size: 12px; }
@media (max-width: 790px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; } .scene { min-height: 300px; height: 52vh; } .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 470px) { main { padding: 15px 10px; } .panel { grid-template-columns: minmax(0, 1fr); } .view-bar { gap: 4px; } .view-bar button { font-size: 12px; padding-inline: 6px; } }
