.scan-result-layout-0{display:none}
.scan-result-layout-1{display:none}
.scan-result-layout-2{margin-bottom:8px}
.scan-result-layout-3{font-size:13px;color:#495057;margin-bottom:12px}
.scan-result-layout-4{display:flex;gap:10px;flex-wrap:wrap}
.scan-result-layout-5{flex:1;margin:0}
.scan-result-layout-6{flex:1;margin:0;display:none}
.scan-result-layout-7{flex:1;margin:0}
.scan-result-layout-8{flex:1;margin:0}
.scan-result-layout-9{display:none}
.scan-result-layout-10{width:100%;box-sizing:border-box;min-height:44px;margin-top:10px}
.scan-result-layout-11{display:none}
.scan-result-layout-12{color:var(--dark)}
.scan-result-layout-13{font-size:12px;color:var(--muted);margin:6px 0 10px}
.scan-result-layout-14{display:none;width:100%;border-radius:10px;background:#000}
.scan-result-layout-15{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.scan-result-layout-16{display:none}
.scan-result-layout-17{display:none}
.scan-result-layout-18{font-size:12px;color:var(--muted);margin-top:8px}
.scan-result-layout-19{display:none}
.scan-result-layout-20{font-size:12px;color:#2b8a3e;margin-bottom:8px}
.scan-result-layout-21{font-size:13px;color:#495057;margin-bottom:10px}
.scan-result-layout-22{display:none}
.scan-result-layout-23{margin-top:0}
.scan-result-layout-24{display:none}
.scan-result-layout-25{margin-top:0}
.scan-result-layout-26{display:none;font-size:11px;color:var(--muted);margin-bottom:6px}
.scan-result-layout-27{display:none;font-size:13px;color:#2b8a3e;margin-top:8px}
.scan-result-layout-28{display:none;font-size:12px;color:var(--muted);margin-top:6px}
.scan-result-layout-29{display:none}
.scan-result-layout-30{display:none;margin-top:10px}
.scan-result-layout-31{width:100%;border-radius:10px;background:#000}
.scan-result-layout-32{display:flex;gap:8px;margin-top:8px}
.scan-result-layout-33{display:none;font-size:12px;color:var(--muted);margin-top:6px}
.scan-result-layout-34{display:none}
.scan-result-layout-35{margin-top:0}
.scan-result-layout-36{font-size:13px;color:#495057}
.scan-result-layout-37{display:none}
.scan-result-layout-38{display:none}
.scan-result-layout-39{display:none}

.btn-teal { background:#0ca678; color:#fff; }
.btn-teal:active { background:#099268; }
.prep-step { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid #f1f3f5; }
.prep-step:last-child { border-bottom:none; }
.prep-num { flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:#e9ecef; color:#868e96; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.prep-step.active .prep-num { background:#2f9e44; color:#fff; }
.prep-step.done .prep-num { background:#2b8a3e; color:#fff; }
.prep-step.pending { opacity:.45; }
.prep-body { flex:1; font-size:13px; color:#495057; }
.prep-step.done .prep-body { text-decoration:line-through; color:#adb5bd; }
.prep-actions { display:none; margin-top:8px; gap:8px; flex-wrap:wrap; }
.prep-step.active .prep-actions { display:flex; }
.prep-btn { font-size:13px; padding:8px 14px; border-radius:8px; border:1px solid #2f9e44; background:#2f9e44; color:#fff; cursor:pointer; }
.idea-row { display:flex; gap:10px; align-items:flex-start; font-size:13px; color:#495057; margin-bottom:10px; }
.idea-row i { color:#2f9e44; font-size:16px; margin-top:2px; }
.prep-btn.ghost { background:#fff; color:#2f9e44; }
.prep-btn:disabled { opacity:.5; cursor:default; }
.coin { display:inline-block; vertical-align:-3px; }
.eco-item { display:block; padding:10px 0; border-bottom:1px solid #f1f3f5; cursor:pointer; text-decoration:none; }
.eco-item:last-child { border-bottom:none; }
.eco-item b { color:var(--dark); font-size:14px; }
.fact-chip { display:inline-block; background:#ebfbee; color:#2b8a3e; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:600; margin:0 6px 6px 0; }

.scan-capture-layout-41{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.scan-capture-layout-42{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.scan-capture-layout-43{top:14px;left:14px;border-right:none;border-bottom:none}
.scan-capture-layout-44{top:14px;right:14px;border-left:none;border-bottom:none}
.scan-capture-layout-45{bottom:14px;left:14px;border-right:none;border-top:none}
.scan-capture-layout-46{bottom:14px;right:14px;border-left:none;border-top:none}
.scan-capture-layout-47{display:none}
.scan-capture-layout-48{margin:12px 0}
.scan-capture-layout-49{width:100%;min-height:44px}
.scan-capture-layout-50{margin-bottom:12px}
.scan-capture-layout-51{display:none}
.scan-capture-layout-52{display:none}
.scan-capture-layout-53{margin-bottom:12px}
.scan-capture-layout-54{display:none}
.scan-capture-layout-55{margin-bottom:8px}
.scan-capture-layout-56{margin-bottom:12px}
.scan-capture-layout-57{display:none;position:fixed;inset:0;z-index:999;background:rgba(10,20,10,.55);align-items:center;justify-content:center;flex-direction:column;color:#fff}
.scan-capture-layout-58{width:44px;height:44px;border:4px solid rgba(255,255,255,.25);border-top-color:#7bd88f;border-radius:50%;animation:scanspin .8s linear infinite}
.scan-capture-layout-59{margin-top:14px;font-weight:600}
@keyframes scanspin{to{transform:rotate(360deg)}}
/* Progressive scan flow; legacy acceptance panels never compete with server verdict. */
#sr-eco-card,#sr-prep-card,#sr-detail-card,#sr-cta-hint{display:none!important}
[hidden],.picker-tile[hidden]{display:none!important}
.scan-step-label{color:var(--muted);font-size:12px;margin:16px 0 4px}
.scan-photo-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}
.scan-photo-item{flex:0 0 72%;max-width:300px;min-width:0;scroll-snap-align:start}
.scan-photo-item:only-child{flex-basis:100%;max-width:none}
.scan-photo-preview{width:100%;height:190px;object-fit:contain;border-radius:12px;background:#f4f6f3}
.scan-photo-caption{font-size:12px;color:var(--muted);padding:6px 0}
#sr-waste-card .btn{flex:1 1 140px!important;min-height:44px;box-sizing:border-box}
#sr-restart{font-size:13px;flex-basis:100%!important}
#sr-correct{background:white;color:var(--dark);border:1px solid var(--line)}
#sr-add-photo{background:white;color:var(--dark);border:1px solid var(--line)}
.scan-known-facts summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;line-height:1.5}
.scan-known-facts p{border-top:1px solid var(--line);padding-top:8px;line-height:1.5}
#sr-clarify-card h2,#sr-rule-status h2,.scan-destination-start h2,.scan-section-heading{font-size:19px;line-height:1.4;margin:0 0 10px}
#sr-clarify-card .scan-action{min-height:44px}
#sr-picker-card{scroll-margin-top:16px}#sr-picker{max-height:340px;overflow:auto}
#sr-picker-count{font-size:13px;color:var(--muted)}
.scan-destination-start .btn{margin-bottom:0;width:100%;box-sizing:border-box}
#sr-destination-panel,#sr-rule-status{scroll-margin-top:16px}
#collection-options label{display:block;font-weight:600;font-size:13px;margin:12px 0 6px}
#collection-options select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--card);color:var(--dark);font:inherit}
#collection-options h2{font-size:17px}#collection-result{font-size:14px;line-height:1.5}
#collection-result section{border-top:1px solid var(--line);padding:12px 0}
#collection-result h3{font-size:16px;margin:0 0 8px}
#sr-rule-status .facet-search{width:100%;box-sizing:border-box;min-height:44px;margin-bottom:10px}
.scan-point-choices{display:grid;gap:10px}.scan-point-choices .point-choice{display:block;width:100%;box-sizing:border-box;text-align:left;border:1px solid var(--line);border-radius:12px;background:white;color:var(--dark);padding:14px;font:inherit;font-weight:600;cursor:pointer}
.point-choice small{display:block;font-weight:400;margin-top:6px;line-height:1.45;color:var(--muted)}.point-choice .point-choice-action{color:#176855;font-weight:600}
.scan-point-choices .point-choice:hover{border-color:#176855}
.scan-destination-start,.scan-point-choices,.scan-photo-strip{min-width:0}
#sr-rule-status :is(button,a),#sr-picker-cancel{min-height:44px}
.scan-point-stack{margin-top:16px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.spinner{animation:none}}

.scan-needs-identification #sr-correct{background:var(--green);color:white;border-color:var(--green);order:-1;flex-basis:100%!important}
/* Result actions remain distinct at narrow widths, including theme overrides. */
#sr-waste-card .scan-result-layout-4{display:grid;grid-template-columns:1fr;gap:10px}
#sr-waste-card .btn{display:flex;align-items:center;justify-content:center;margin:0;padding:12px;text-align:center}
#sr-picker-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#sr-picker .picker-tile{min-height:48px;white-space:normal;text-align:left;font:inherit;padding:12px;cursor:pointer}

.scan-question-actions{display:flex;flex-wrap:wrap;gap:8px}
#sr-clarify-card .facet-options{max-height:280px;overflow:auto}
