header a { color: #466b54; display: inline-block; margin-bottom: 10px }
main { max-width: 740px }
.setup { padding: 10px 16px }
.direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.direct label, #find label { display: grid; gap: 4px; font-size: 13px; color: #4a5b4e }
.direct select { min-width: 0; padding: 6px 4px }
.preview-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; width: 100% }
#parts { display: grid; grid-template-columns: repeat(2, 42px); gap: 4px; align-content: center }
#parts button { min-height: 37px; padding: 3px 0; display: grid; place-items: center; gap: 1px; line-height: 1.05 }
#parts button[data-selected="true"] { background: #eff6ea; border-color: #59896b }
#parts .tool-icon { font-size: 15px }
#parts strong { font-size: 10px; font-weight: 550 }
.views { display: flex; gap: 8px }
#reset { margin-inline-start: 6px; color: #546457 }
.preview-board { justify-self: center; width: min(100%, 340px); --board-ratio: 1 }
#outfit-code .actions { margin-top: 8px }
#status:empty { display: none }
dialog { color: inherit; background: #fffef9; border: 1px solid #dfded0; border-radius: 19px; width: min(760px, 94vw); max-height: 86vh; padding: 18px }
dialog::backdrop { background: #24332c88 }
#find { display: flex; align-items: end; gap: 8px }
#find label { flex: 1 }
#results { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) }
#results .item img { height: 78px }

#preview-hint { margin: 0; font-size: 13px }

html { scrollbar-gutter: stable }
html:has(#picker[open]) { overflow: hidden }
body:has(#picker[open]) { position: fixed; inset: var(--picker-scroll-top, 0) 0 auto; }
#picker { overflow: auto; overscroll-behavior: contain }
