body.has-bg{background-size:cover;background-position:center;background-attachment:fixed;background-repeat:no-repeat}body.has-bg .top h1{display:inline-flex;background:#f6f1e7e6;padding:6px 10px;border-radius:10px}.app{max-width:980px;margin:0 auto;padding:12px 14px 32px;display:grid;gap:14px}.top h1{margin:4px 0;display:flex;align-items:center;gap:12px}.top h1 .logo{height:52px;width:auto;display:block}.preview{display:grid;gap:8px;justify-items:center}.stage{position:relative;width:100%;max-width:520px;aspect-ratio:3 / 4;background:repeating-conic-gradient(#ece6d8 0% 25%,#f7f3ea 0% 50%) 0 0 / 22px 22px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;contain:layout paint}.layer{position:absolute;left:0;top:0;user-select:none;-webkit-user-drag:none}.chassis{width:100%;height:100%}.facade{transform-origin:0 0;max-width:none}.slot{display:grid;place-items:center;text-align:center;background:#9eaab8;border:6px solid #181c1c;border-radius:6px;color:#181c1c;font-weight:700;font-size:34px;line-height:1.2;letter-spacing:.04em;box-sizing:border-box;pointer-events:none}.slot span{opacity:.75}.placeholder{position:absolute;inset:0;margin:0;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted)}.loading{position:absolute;top:10px;right:10px;background:#fffdf8e6;border-radius:999px;padding:6px}.spinner{display:block;width:18px;height:18px;border:3px solid var(--line);border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.caption{margin:0;color:var(--muted);min-height:1.4em;text-align:center}.error{background:#fdecea;border:1px solid #e3a6a0;border-radius:var(--radius);padding:10px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;width:100%;max-width:520px}.error p{margin:0}.error button,.reset{background:var(--red);color:#fff;border:0;border-radius:8px;padding:10px 16px;min-height:44px}.reset{background:transparent;color:var(--red-dark);border:1px solid var(--red);justify-self:start}.controls{display:grid;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.side{display:grid;gap:14px}.specs{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.specs h2{margin:0 0 8px;font-size:1rem;color:var(--red-dark)}.specs dl{margin:0;display:grid;grid-template-columns:minmax(90px,36%) 1fr;gap:6px 12px}.specs dt{color:var(--muted);font-size:.9rem}.specs dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}.field{display:grid;gap:4px}.field label{font-weight:600}.field select{min-height:46px;padding:8px 10px;border:1px solid #b9ae98;border-radius:8px;background:#fff;width:100%}.field select:disabled{background:#efe9dc;color:#8b8274}.with-btn{display:flex;gap:8px}.with-btn select{flex:1;min-width:0}.icon-btn{flex:none;min-width:46px;min-height:46px;border:1px solid #b9ae98;background:#fff;border-radius:8px;color:var(--red-dark);display:grid;place-items:center;padding:0 10px}.icon-btn:disabled{background:#efe9dc;color:#b3a995;cursor:not-allowed}.words{border:1px solid var(--line);border-radius:12px;padding:14px;width:min(760px,96vw);max-height:90vh;max-height:90dvh;overflow:hidden;background:var(--card);color:var(--ink)}.words[open]{display:flex;flex-direction:column}.words::backdrop{background:#0006}.words-head{flex:none;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.words-head h2{margin:0;font-size:1.1rem}.words-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;overflow-y:auto;flex:1 1 auto;min-height:0;padding:2px}.word{display:grid;gap:4px;justify-items:center;align-content:start;padding:8px 6px;background:#fff;border:2px solid var(--line);border-radius:10px;text-align:center;font-size:.85rem}.word:hover{border-color:#b9ae98}.word[aria-pressed=true]{border-color:var(--red);background:#fdf1f0;font-weight:600}.word .thumb{position:relative;overflow:hidden;width:100%;height:96px;display:grid;place-items:center;background:repeating-conic-gradient(#ece6d8 0% 25%,#f7f3ea 0% 50%) 0 0 / 14px 14px;border-radius:6px}.word .thumb img{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain}.words-grid.k-colors{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.words-grid.k-colors .word .thumb{height:120px}.word .thumb.photo{background-repeat:no-repeat;background-color:#ddd}.word i.dot{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #0003;margin-right:6px;vertical-align:-1px}.words-grid.k-models{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}.words-grid.k-models .word .thumb img{mix-blend-mode:multiply}.words-grid.k-models .word .thumb{height:140px;background:#fff}.word .none{color:var(--muted);font-size:.8rem}.hint{margin:0;font-size:.88rem;color:var(--muted);min-height:1.2em}.error-inline{color:#9a1f17}@media(min-width:820px){.app{grid-template-columns:minmax(0,1fr) 340px;align-items:start;column-gap:28px}.top{grid-column:1 / -1}.side{position:sticky;top:12px}}
