/* Stage 8: Fabric & Trims Library, Fit & QC Studio */
.s8 h3{margin:22px 0 8px;font:600 15px "DM Sans",sans-serif}.s8 h3 small{font-weight:500;color:#6b6b66;margin-left:6px}
.ml-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:16px;align-items:start}.ml-list{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
.ml-tb{display:flex;gap:6px;margin-bottom:8px}.ml-tb input{flex:1;min-width:0}.ml-items{list-style:none;margin:10px 0 0;padding:0}.ml-items li{display:flex;align-items:stretch;border:1px solid #e3ddd1;border-radius:10px;margin-bottom:6px;background:#fff}.ml-items li.on{border-color:#214538;box-shadow:0 0 0 2px rgba(33,69,56,.15)}
.ml-cb{display:grid;place-items:center;padding:0 6px 0 9px}.ml-items button{all:unset;cursor:pointer;flex:1;display:grid;grid-template-columns:30px 1fr;gap:8px;padding:9px 10px 9px 0;align-items:center}.ml-sw{width:28px;height:28px;border-radius:7px;border:1px solid rgba(0,0,0,.12)}.ml-n b{display:block;font:600 14px "DM Sans",sans-serif}.ml-n small{color:#6b6b66;font-size:12px}
.ml-tags{grid-column:2;display:flex;gap:4px;flex-wrap:wrap}.ml-tags i{font:600 10.5px "DM Sans",sans-serif;font-style:normal;padding:2px 7px;border-radius:99px;background:#f1ece2;color:#555}.ml-tags i.ok{background:#d8efe1;color:#14603a}.ml-tags i.warn{background:#fbe3c4;color:#7a4a00}
.ml-dh{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:flex-start}.ml-dh h2{margin:2px 0 0}.ml-id{font:600 12px ui-monospace,Menlo,monospace;color:#a9481f}
.ml-props{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.ml-pr{border:1px solid #ebe5da;border-radius:10px;padding:8px 10px;background:#fffdf9}.ml-pr label{display:flex;flex-direction:column;gap:4px;font-size:12.5px}.ml-pr label small{color:#888}.ml-src{margin-top:6px;width:100%;font-size:12px}.ml-src.lab{border-color:#1a7a45;color:#14603a;font-weight:700}.ml-src.supplier{border-color:#d9a441}
.ml-subs{display:flex;flex-wrap:wrap;gap:8px 16px}.ml-test{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ml-test>*{flex:1 1 120px;min-width:0}.ml-test button{flex:0 0 auto}.ml-used{margin:0;padding-left:18px}.ml-hist{margin-top:14px}.ml-hist table{font-size:12.5px}.ml-imp{margin:10px 0}
.fq-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.fq-list button{all:unset;cursor:pointer;border:1px solid #e3ddd1;border-radius:10px;padding:9px 11px;background:#fff;display:flex;flex-direction:column;gap:2px}.fq-list button.on{border-color:#214538;box-shadow:0 0 0 2px rgba(33,69,56,.15)}.fq-list small,.fq-list span{font-size:12px;color:#6b6b66}
.fq-m input{width:90px}.fq-m tr.ok td:nth-child(5),.fq-m tr.ok td:nth-child(6){color:#14603a;font-weight:700}.fq-m tr.no td:nth-child(5),.fq-m tr.no td:nth-child(6){color:#b03a2e;font-weight:700}.fq-m tr.no{background:#fbefec}
.fq-i input,.fq-i select{min-width:90px;width:100%}.fq-i tr.sev-critical td:first-child{box-shadow:inset 3px 0 #b03a2e}.fq-i tr.sev-major td:first-child{box-shadow:inset 3px 0 #e09a00}.fq-i tr.st-verified{opacity:.6}.fq-from{display:block;font-size:11px;color:#a9481f}
.fq-ph{display:flex;flex-wrap:wrap;gap:10px}.fq-ph figure{margin:0;width:170px;display:flex;flex-direction:column;gap:4px}.fq-ph img{width:170px;height:200px;object-fit:cover;border-radius:8px;border:1px solid #e3ddd1}.fq-add{display:grid;place-items:center;width:170px;height:200px;border:2px dashed #d8d0c3;border-radius:8px;cursor:pointer;color:#6b6b66}
.fq-ba{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:560px;margin:10px 0}.fq-ba figure{margin:0}.fq-ba img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}.fq-ba span{display:grid;place-items:center;aspect-ratio:3/4;background:#f3efe8;border-radius:8px;color:#888}.fq-c td.ok{color:#14603a}.fq-c td.no{color:#b03a2e;font-weight:700}.fq-notes{display:flex;flex-direction:column;gap:4px;margin-top:10px}
@media(max-width:900px){.ml-grid{grid-template-columns:1fr}.ml-list{position:static;max-height:none}}
/* Stage 9: Style Tracker */
.pl-f{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.pl-f label{display:flex;flex-direction:column;gap:4px;font-size:13px}.pl-mode{display:flex;border:1px solid #d8d0c3;border-radius:9px;overflow:hidden}.pl-mode button{border:0;border-radius:0;background:#fff;padding:9px 12px;cursor:pointer;font:600 13px "DM Sans",sans-serif}.pl-mode button[aria-pressed=true]{background:#214538;color:#fff}
.pl-t td{vertical-align:top}.pl-t select{min-width:130px}.pl-id{font:700 12.5px ui-monospace,Menlo,monospace;color:#a9481f}
.pl-flag{display:inline-block;margin:0 4px 4px 0;padding:3px 8px;border-radius:99px;font:600 11.5px "DM Sans",sans-serif;background:#f1ece2;color:#555}.pl-flag.bad{background:#f6dcd7;color:#8a2a1f}.pl-flag.ok{background:#d8efe1;color:#14603a}
.pl-kb{display:grid;grid-template-columns:repeat(6,minmax(170px,1fr));gap:10px;overflow-x:auto;margin-top:14px}.pl-col{background:#f6f2ea;border-radius:12px;padding:10px;min-height:120px}.pl-col h3{margin:0 0 8px;font:700 13px "DM Sans",sans-serif}.pl-col h3 small{color:#888;font-weight:500}
.pl-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;width:100%;background:#fff;border:1px solid #e3ddd1;border-radius:10px;padding:9px 10px;margin-bottom:8px}.pl-card:hover{border-color:#214538}.pl-card small{color:#6b6b66;font-size:11.5px}.pl-card em{font-style:normal;font-size:12px;color:#214538}.pl-card em.bad{color:#8a2a1f}
.pl-att{margin:6px 0 4px}.pl-tabs{display:flex;gap:4px;border-bottom:1px solid #e3ddd1;margin:14px 0 12px;overflow-x:auto}.pl-tabs button{border:0;background:none;padding:9px 12px;font:600 13.5px "DM Sans",sans-serif;cursor:pointer;border-bottom:2px solid transparent;color:#5d5d58;white-space:nowrap}.pl-tabs button[aria-selected=true]{color:#214538;border-bottom-color:#214538}
.pl-m input,.pl-m select{width:100%;min-width:100px}.pl-m tr.done{opacity:.7}.pl-m tr.late td:first-child{box-shadow:inset 3px 0 #b03a2e}.pl-m .bad{color:#b03a2e}
.pl-c{list-style:none;padding:0;margin:0}.pl-c li{border:1px solid #e9e2d6;border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fff}.pl-c li>div{display:flex;gap:8px;align-items:center}.pl-c li>div button{margin-left:auto}.pl-c p{margin:6px 0 0}.pl-reply{color:#214538}.pl-rl{display:flex;flex-direction:column;gap:3px;margin-top:6px;font-size:12px}
.pl-cnew{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.pl-cnew>*{flex:1 1 200px}.pl-cnew button,.pl-cnew label.button{flex:0 0 auto}.pl-files{padding-left:18px}.pl-files li{margin-bottom:6px}.pl-h{list-style:none;padding:0;margin:0}.pl-h li{padding:6px 0;border-bottom:1px dashed #e3ddd1}.pl-h small{display:inline-block;min-width:96px;color:#6b6b66}.pl-up{margin:0;padding-left:18px}
.metric.bad{background:#fbefec;border-color:#efc9c1}
@media(max-width:900px){.pl-f{grid-template-columns:1fr 1fr}}
.v3 input{width:100%;min-width:70px}.v3 td:first-child input{min-width:220px}.v3 tr.ok td:nth-child(6),.v3 tr.ok td:nth-child(7){color:#14603a;font-weight:700}.v3 tr.no{background:#fbefec}.v3 tr.no td:nth-child(6),.v3 tr.no td:nth-child(7){color:#b03a2e;font-weight:700}.v3-verdict{font:700 12px 'DM Sans',sans-serif;padding:4px 10px;border-radius:99px;background:#efe6d5}.v3-verdict.ok{background:#d8efe1;color:#14603a}.v3-verdict.no{background:#f6dcd7;color:#8a2a1f}.v3-h{border-top:1px solid #eee7da;padding:10px 0}.v3-h ul{margin:6px 0 0;padding-left:18px}.ml-3d{border:1px solid #d9e3dc;background:#f4f8f5;border-radius:10px;padding:10px 14px;margin-top:8px}.fq-ba figcaption{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;margin-top:4px}
