:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #311330; color: #fff6fa; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 80% 0%, #8d3a7e 0, transparent 34rem), #311330; }
button, input, select { font: inherit; }
.app-shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.75rem 0 4.5rem; }
.intro { max-width: 45rem; margin-bottom: 2.25rem; }
.eyebrow { margin: 0 0 .55rem; color: #f8a7bf; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .7rem; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .92; letter-spacing: -.06em; }
.intro > p:last-child { margin-bottom: 0; color: #f0cad8; font-size: 1.1rem; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr); gap: 1.25rem; }
.controls, .results { border: 1px solid rgba(241, 116, 158, .3); border-radius: 1.25rem; background: rgba(73, 27, 72, .85); box-shadow: 0 1.5rem 4rem rgba(31, 5, 31, .25); }
.controls { padding: 1.5rem; }
label { display: block; margin-top: 1rem; color: #fff4f8; font-size: .94rem; font-weight: 700; }
label span { color: #ebc1d0; font-weight: 500; }
select, input[type="number"], input[type="file"], .controls > input:not(.is-hidden) { display: block; width: 100%; margin-top: .48rem; padding: .75rem .8rem; border: 1px solid #9e5d91; border-radius: .55rem; background: #351431; color: inherit; }
input[type="file"] { padding: .55rem; }
label small { display: block; margin-top: .35rem; color: #efc8d7; font-size: .78rem; font-weight: 450; line-height: 1.4; }
button { border: 0; border-radius: .6rem; background: #f1749e; color: #4c173f; font-weight: 800; cursor: pointer; }
.secondary { width: 100%; margin-top: 1rem; padding: .75rem; border: 1px solid #9e5d91; background: transparent; color: #ffd2df; }
.is-hidden { display: none; }
.field-note, .field-error { display: block; min-height: 1.2em; margin: .8rem 0 0; color: #efc8d7; font-size: .8rem; line-height: 1.4; }
.field-error { color: #ffafaf; }
.ordering-help { margin-top: 1.5rem; padding: 1rem; border: 1px solid rgba(241, 116, 158, .35); border-radius: .8rem; background: rgba(43, 14, 42, .46); }
.ordering-help p { margin: 0; color: #efc8d7; font-size: .84rem; line-height: 1.45; }
.ordering-help a { display: inline-block; margin-top: .65rem; color: #ffc0d3; font-size: .82rem; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: .18rem; }
.results { min-width: 0; padding: 1.5rem; }
.results-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .82; letter-spacing: -.07em; }
.view-switch { display: flex; padding: .2rem; border: 1px solid #8f527f; border-radius: .7rem; }
.view-switch button { padding: .5rem .6rem; background: transparent; color: #efc8d7; font-size: .72rem; }
.view-switch button.active { background: #f1749e; color: #4c173f; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.25rem; }
.stats span { padding: .8rem; border: 1px solid #8f527f; border-radius: .7rem; background: rgba(43, 14, 42, .46); }
.stats b, .stats small { display: block; }
.stats b { font-size: 1.4rem; }
.stats small { margin-top: .2rem; color: #efc8d7; font-size: .72rem; }
.preview { display: grid; place-items: center; min-height: 26rem; margin-top: 1rem; padding: 1.4rem; overflow: auto; border-radius: .9rem; background-color: #2a1029; background-image: linear-gradient(rgba(241, 116, 158, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 116, 158, .08) 1px, transparent 1px); background-size: 18px 18px; }
.overview-sheet { position: relative; width: min(100%, calc(42rem * var(--sheet-ratio))); aspect-ratio: var(--vinyl-width) / var(--overview-length); border: 1px solid #ffc2d5; background: rgba(255, 255, 255, .92); }
.overview-sheet .sticker { position: absolute; }
.sticker { min-width: 0; min-height: 0; border: 1px solid #672c66; background: #f1749e; overflow: hidden; }
.sticker.circle { border-radius: 50%; }
.sticker img { display: block; width: 100%; height: 100%; object-fit: contain; }
.inspection-cell { display: grid; place-items: center; width: min(20rem, 85%); aspect-ratio: var(--item-width) / var(--item-height); border: 1px dashed #f1749e; background: rgba(255, 255, 255, .1); }
.inspection-cell .sticker { width: 72%; height: 72%; }
.preview-note { margin: 1rem 0 0; color: #efc8d7; font-size: .8rem; line-height: 1.45; }
@media (max-width: 760px) { .app-shell { width: min(100% - 1.5rem, 42rem); padding: 2rem 0 2.5rem; } .workspace { grid-template-columns: 1fr; } .preview { min-height: 20rem; } .results-heading { flex-direction: column; } }
