:root{--bg: #f6f3ec;--surface: #ffffff;--surface-2: #f1ede4;--text: #1d1b16;--muted: #6b665c;--border: #e2dccf;--accent: #f5c400;--accent-ink: #1d1b16;--red: #d01012;--green: #1f8a3b;--orange: #d9822b;--radius: 14px;--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .05);color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #15140f;--surface: #211f19;--surface-2: #2b2921;--text: #f3efe6;--muted: #a9a294;--border: #3a372e;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:ui-rounded,SF Pro Rounded,Nunito,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}a{color:inherit}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:clamp(1.5rem,4vw,2rem);letter-spacing:-.01em}h2{font-size:1.1rem}h3{font-size:1rem}.muted{color:var(--muted);font-weight:400}.small{font-size:.85rem}.error{color:var(--red)}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--accent);color:var(--accent-ink);box-shadow:0 2px #0000001f}.brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1.1rem;text-decoration:none}.tabs{display:flex;gap:4px}.tabs a{padding:8px 12px;border-radius:999px;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;gap:6px}.tabs a.active{background:var(--accent-ink);color:var(--accent)}.pill{background:var(--red);color:#fff;border-radius:999px;padding:0 7px;font-size:.75rem;line-height:1.5}.content{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:20px 16px 40px}.footer{padding:16px;text-align:center;font-size:.8rem;color:var(--muted)}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;gap:8px}.hero p{margin:6px 0 0;color:var(--muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}.card__head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.input{width:100%;font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text)}.input:focus{outline:2px solid var(--accent);outline-offset:1px}.button,.cta{font:inherit;font-weight:700;border:0;border-radius:10px;padding:10px 16px;background:var(--red);color:#fff;cursor:pointer;text-decoration:none;text-align:center;white-space:nowrap}.button:disabled{opacity:.55;cursor:not-allowed}.button--ghost{background:transparent;color:var(--text);border:1px solid var(--border)}.cta{display:block;white-space:normal;position:sticky;bottom:12px;padding:14px 18px;font-size:1.05rem;box-shadow:0 6px 20px #d0101259}.link-button{align-self:flex-start;background:none;border:0;padding:0;font:inherit;color:var(--muted);text-decoration:underline;cursor:pointer}.link-button.danger{color:var(--red)}.check{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.check input{width:18px;height:18px;accent-color:var(--red)}.swatch{display:inline-block;flex:none;border-radius:50%;border:1px solid rgb(0 0 0 / .25);vertical-align:-2px}.swatch--trans{opacity:.6;background-image:linear-gradient(135deg,transparent 45%,rgb(255 255 255 / .6) 50%,transparent 55%)!important}.color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}.color-chip{display:flex;align-items:center;gap:8px;font:inherit;font-size:.9rem;padding:8px 10px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;text-align:left}.color-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.color-chip.is-active{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);font-weight:700}.part-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;transition:opacity .15s}.part-grid.is-loading{opacity:.5}.part-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;font:inherit;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer;transition:transform .08s}.part-tile:active{transform:scale(.95)}.part-tile__name{font-size:.75rem;line-height:1.2;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.part-tile__num{font-size:.7rem;color:var(--muted)}.part-tile__count{position:absolute;top:4px;right:4px;min-width:24px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;font-weight:800;font-size:.8rem}.part-img{width:72px;height:72px;object-fit:contain;background:#fff;border-radius:8px}.part-img--small{width:44px;height:44px;flex:none}.part-img--none{display:inline-block;background:var(--surface-2)}.inv-group h3{display:flex;align-items:center;gap:8px;margin:8px 0 4px}.inv-list{list-style:none;margin:0;padding:0}.inv-list li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--border)}.inv-list li:last-child{border-bottom:0}.inv-list li.is-missing .qty{color:var(--red);font-weight:700}.inv-list__name{flex:1;min-width:0;font-size:.9rem}.qty{font-variant-numeric:tabular-nums;white-space:nowrap}.stepper{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:10px;overflow:hidden}.stepper button{width:36px;height:36px;border:0;background:var(--surface-2);color:var(--text);font-size:1.2rem;cursor:pointer}.stepper input{width:44px;height:36px;border:0;text-align:center;font:inherit;background:var(--surface);color:var(--text)}.filters{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 20px}.segmented{display:inline-flex;flex-wrap:wrap;background:var(--surface-2);border-radius:10px;padding:3px;gap:2px}.segmented button{font:inherit;font-size:.9rem;border:0;background:transparent;color:var(--text);padding:6px 10px;border-radius:8px;cursor:pointer}.segmented button.is-active{background:var(--surface);font-weight:700;box-shadow:var(--shadow),inset 0 0 0 1px var(--border)}.set-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.set-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;box-shadow:var(--shadow);transition:transform .12s}.set-card:hover{transform:translateY(-2px)}.set-card__img{position:relative;aspect-ratio:4 / 3;background:#fff;display:grid;place-items:center}.set-card__img img{max-width:92%;max-height:92%;object-fit:contain}.set-card__body{padding:12px;display:flex;flex-direction:column;gap:6px}.set-card__body p{margin:0}.set-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0}.badge{position:absolute;top:8px;left:8px;font-size:.75rem;font-weight:800;padding:3px 8px;border-radius:999px}.badge--manual{background:var(--accent);color:var(--accent-ink)}.difficulty{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)}.difficulty__studs{display:inline-flex;gap:2px}.stud{width:10px;height:10px;border-radius:50%;background:var(--border)}.stud--on{background:var(--orange)}.coverage{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:700}.coverage__bar{flex:1;height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.coverage__bar div{height:100%;border-radius:inherit}.coverage--ok .coverage__bar div{background:var(--green)}.coverage--ok span{color:var(--green)}.coverage--near .coverage__bar div{background:var(--orange)}.coverage--far .coverage__bar div{background:var(--red)}.back{font-weight:700;text-decoration:none;color:var(--muted)}.detail{flex-direction:row;flex-wrap:wrap;gap:20px}.detail__img{flex:1 1 280px;background:#fff;border-radius:10px;display:grid;place-items:center;min-height:200px}.detail__img img{max-width:100%;max-height:320px;object-fit:contain}.detail__info{flex:2 1 320px;display:flex;flex-direction:column;gap:10px}.detail__info p{margin:0}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.empty{text-align:center;padding:40px 0;display:flex;flex-direction:column;gap:12px;align-items:center}@media (max-width: 520px){.detail__img img{max-height:220px}.brand span{display:none}.color-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}.part-grid{grid-template-columns:repeat(3,1fr)}}.center{text-align:center}.manual{display:flex;flex-direction:column;gap:12px}.manual__head{display:flex;justify-content:space-between;align-items:center;gap:12px}.manual__head .back{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual__stage{position:relative;width:100%;height:min(68vh,640px);min-height:320px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);background:#eef3f9;touch-action:none}.manual__stage canvas{display:block;width:100%;height:100%}.manual__loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#4b5563;font-weight:700}.manual__overlay{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:flex-start;gap:10px;pointer-events:none}.manual__step-number{font-size:clamp(2rem,7vw,3.2rem);font-weight:800;line-height:1;color:#1d1b16}.manual__badge{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);background:#ffffffeb;color:#1d1b16;border-radius:999px;padding:4px 12px;font-size:.85rem;font-weight:700}.manual__badge--attach{left:auto;right:10px;background:var(--accent)}.manual__nav{display:flex;align-items:center;gap:12px}.manual__progress{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}.manual__progress input{width:100%;accent-color:var(--red)}.nav-btn{width:56px;height:56px;flex:none;border-radius:50%;border:0;background:var(--surface-2);color:var(--text);font-size:1.3rem;cursor:pointer}.nav-btn--next{background:var(--red);color:#fff}.nav-btn:disabled{opacity:.35;cursor:default}.callout{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;padding:6px 8px;background:#fff;border:2px solid #1d1b16;border-radius:8px;max-width:75%;color:#1d1b16}.callout__item{margin:0;display:flex;flex-direction:column;align-items:center}.callout__item img{width:52px;height:52px;object-fit:contain}.callout__item figcaption{font-weight:800;font-size:.85rem}.callout__multiplier{align-self:center;font-weight:800;padding-left:4px}.print__toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.print-doc{display:flex;flex-direction:column;gap:16px;color:#1d1b16}.print-page{background:#fff;width:100%;max-width:210mm;margin:0 auto;aspect-ratio:210 / 297;padding:10mm;box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden;display:flex;flex-direction:column}.print-cover{align-items:center;justify-content:center;text-align:center;gap:8mm;background:linear-gradient(180deg,#f5c400 0,#f5c400 28%,#fff 28%)}.print-cover h1{font-size:2.2rem}.print-cover__num{margin:0;font-weight:800;font-size:1.2rem}.print-cover__img{max-width:85%;max-height:45%;object-fit:contain}.print-cover__facts{display:flex;gap:8mm;align-items:center;font-size:1.1rem}.print-cover__credits{color:#6b665c;font-size:.8rem}.print-inventory{display:grid;grid-template-columns:repeat(5,1fr);gap:3mm;margin-top:5mm;align-content:start}.print-inventory figure{margin:0;text-align:center;font-size:.7rem;line-height:1.2}.print-inventory img{width:100%;max-width:64px;aspect-ratio:1;object-fit:contain}.print-inventory figcaption span{display:block;color:#6b665c}.print-steps{gap:6mm}.print-step{flex:1;min-height:0;display:flex;flex-direction:column;border-bottom:1px dashed #ccc;padding-bottom:4mm}.print-step:last-child{border-bottom:0}.print-step header{display:flex;align-items:flex-start;gap:4mm}.print-step__num{font-size:2.4rem;font-weight:800;line-height:1}.print-step__notes{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:.8rem;text-align:right}.callout--print{max-width:70%}.callout--print .callout__item img{width:44px;height:44px}.print-step__img{flex:1;min-height:0;width:100%;object-fit:contain}@page{size:A4 portrait;margin:0}@media print{body{background:#fff}.topbar,.footer,.no-print{display:none!important}.content{padding:0;max-width:none}.print-doc{gap:0}.print-page{width:210mm;height:297mm;max-width:none;aspect-ratio:auto;box-shadow:none;border:0;break-after:page;-webkit-print-color-adjust:exact;print-color-adjust:exact}}.success{color:var(--green);font-weight:700}.tips{margin:0;padding-left:1.2em;color:var(--muted);font-size:.9rem}.photo__controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.photo__color{flex:1 1 220px;display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:700}.review{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:12px}.review__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.review__row{display:flex;gap:10px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.review__row.is-off{opacity:.45}.review__crop{width:84px;height:84px;flex:none;object-fit:contain;border-radius:8px;background:var(--surface-2)}.review__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.review__choice{display:flex;align-items:center;gap:8px;font-size:.9rem}.review__choice>span:nth-child(2){flex:1;min-width:0}.confidence{flex:none;font-size:.75rem;font-weight:800;padding:2px 8px;border-radius:999px;color:#fff}.confidence--ok{background:var(--green)}.confidence--near{background:var(--orange)}.confidence--far{background:var(--red)}.tag{margin-left:6px;font-size:.7rem;font-weight:800;padding:1px 6px;border-radius:6px;background:var(--accent);color:var(--accent-ink)}.review__alts,.review__results{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.chip{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:.8rem;padding:4px 8px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;text-align:left}.chip img{width:26px;height:26px;object-fit:contain;background:#fff;border-radius:4px}.review__search{display:flex;flex-direction:column;gap:6px}.review__edit{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.review__color{display:inline-flex;align-items:center;gap:6px}.review__color select{font:inherit;font-size:.85rem;padding:6px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);max-width:180px}.stepper--small button,.stepper--small input{height:30px}.stepper--small button{width:30px}.stepper--small input{width:36px}.review__actions .button{white-space:normal;flex:1;max-width:340px}.review__actions{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;bottom:8px;background:var(--surface);padding:8px 0}.gate{min-height:100vh;display:grid;place-items:center;padding:16px;gap:12px;align-content:center}.login{width:100%;max-width:360px;align-items:center;text-align:center}.login .input,.login .button{width:100%}.field{display:flex;flex-direction:column;gap:6px;font-weight:700}.field input[type=range]{accent-color:var(--red)}.settings code{background:var(--surface-2);padding:1px 5px;border-radius:4px}
