:root{--enamel:#215e4a;--enamel-soft:#e5eee7;--chalk:#f6f7f4;--paper:#fff;--ink:#26362e;--steel:#dce2dc;--muted:#66746b;--rust:#a53d2b;--warning:#826321;--space:16px}*{box-sizing:border-box}body{margin:0;background:var(--chalk);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit}button,a,input,select{min-height:44px}button{border:1px solid var(--steel);border-radius:6px;padding:9px 14px;color:var(--ink);background:var(--paper);cursor:pointer}button:hover{background:var(--enamel-soft)}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--enamel);border-color:var(--enamel);color:white}button.danger{color:var(--rust)}button.text{border-color:transparent;background:transparent;padding:6px}input,select,textarea{width:100%;border:1px solid #b8c5bc;border-radius:5px;padding:10px;background:white;color:var(--ink)}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #87b49b;outline-offset:2px}label{display:block;font-weight:600;margin:14px 0 6px}label small{font-weight:400;color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px}h2{font-size:19px}h3{font-size:16px}small,.muted{color:var(--muted)}.brand{font-size:20px;font-weight:750;letter-spacing:1px}.brand small{display:block;font-size:12px;letter-spacing:3px;font-weight:500;margin-top:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:206px;border-right:1px solid var(--steel);padding:28px 20px;background:var(--chalk);display:flex;flex-direction:column;gap:28px}.nav{display:grid;gap:6px}.nav button{text-align:left;background:transparent;border:0}.nav button.active{background:var(--enamel-soft);color:var(--enamel);font-weight:700}.identity{margin-top:auto;border-top:1px solid var(--steel);padding-top:16px}.identity small{display:block}.shell{margin-left:206px;padding:26px 32px 50px;max-width:1510px}.pilot{font-size:13px;color:var(--enamel);margin-bottom:14px;display:flex;justify-content:space-between;gap:10px}.topline,.sectionline,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.topline{margin-bottom:24px}.actions{display:flex;flex-wrap:wrap;gap:8px}.stack{display:grid;gap:14px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:var(--paper);border:1px solid var(--steel);border-radius:8px;padding:20px}.card h3{margin-bottom:6px}.sectionline{margin:22px 0 12px}.tag{display:inline-block;vertical-align:middle;padding:2px 7px;background:#edf0ec;border-radius:4px;font-size:12px;font-weight:600;white-space:nowrap}.tag.warn{background:#f6efdc;color:var(--warning)}.tag.good{background:var(--enamel-soft);color:var(--enamel)}.tag.bad{background:#f8e8e3;color:var(--rust)}.notice{padding:12px 14px;border-left:3px solid var(--warning);background:#f8f3e7;font-size:14px;margin:12px 0}.error{background:#faeae5;border-left-color:var(--rust);color:#802d21}.success{background:var(--enamel-soft);border-left-color:var(--enamel);color:var(--enamel)}.empty{padding:30px 18px;border:1px dashed var(--steel);color:var(--muted);text-align:center;border-radius:6px}.filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.filter select{width:auto;min-width:130px;max-width:100%}.segments{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.segments button.active{background:var(--enamel);color:white;border-color:var(--enamel)}.counts{display:flex;gap:22px;margin:14px 0}.counts strong{font-size:23px;display:block;line-height:1.25}.counts small{font-size:12px}.task{border-left:3px solid var(--enamel)}.task.blocked{border-left-color:#b49b62}.task.pending{border-left-color:#b49b62}.task.done{border-left-color:var(--steel)}.task footer{margin-top:12px;padding-top:12px;border-top:1px solid var(--steel);display:flex;justify-content:space-between;align-items:center;gap:8px}.readiness{display:grid;grid-template-columns:1fr 1fr;margin:14px 0;border:1px solid var(--steel);border-radius:5px;overflow:hidden}.readiness>div{padding:11px 12px}.readiness>div+div{border-left:1px solid var(--steel)}.readiness strong{display:block;font-size:14px}.rail{height:4px;background:#e9ede8;margin:8px 0}.rail i{display:block;height:100%;background:var(--enamel)}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;border-bottom:1px solid var(--steel);padding:12px 10px;vertical-align:top}th{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}td.numeric{text-align:right;white-space:nowrap}.subtle{font-size:13px;color:var(--muted);margin-top:5px}.bottomnav{display:none}.boot{padding:60px;text-align:center}.login{max-width:430px;margin:9vh auto;padding:28px}.login .brand{margin-bottom:30px}.login h1{margin-bottom:12px}.login button.primary{width:100%;margin-top:22px}dialog{border:1px solid var(--steel);border-radius:10px;width:min(680px,calc(100% - 24px));max-height:90dvh;padding:0;color:var(--ink)}dialog::backdrop{background:#182a2266}dialog .modalhead{position:sticky;top:0;background:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--steel);z-index:1}.modalbody{padding:6px 20px 20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.formfooter{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;border-top:1px solid var(--steel);padding-top:16px}.dynamicrow{display:flex;gap:8px;margin:8px 0;align-items:center}.dynamicrow select,.dynamicrow input{min-width:0}.dynamicrow input[type=number]{max-width:110px}.dynamicrow button{flex-shrink:0}.details{margin-top:14px}.details summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}.due{color:var(--rust);font-weight:600}.rowwrap{flex-wrap:wrap}.wide{grid-column:1/-1}#connection{font-size:12px;white-space:nowrap}.modelnote{margin-top:8px;font-size:13px}.reportnote{white-space:pre-wrap}.audit-type{font-weight:650}.checklabel{display:flex;gap:10px;align-items:center}.checklabel input{width:20px;min-height:20px}.lineitem{padding:12px 0;border-bottom:1px solid var(--steel)}@media(min-width:1200px){.taskgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){body{font-size:15px}.sidebar{display:none}.shell{margin:0;padding:18px 16px 105px}.pilot{font-size:11px;display:block}.pilot #connection{display:block;margin-top:3px}.topline{margin-bottom:18px;align-items:flex-start}.topline h1{font-size:25px}.topline .muted{font-size:13px}.grid{grid-template-columns:1fr;gap:12px}.card{padding:16px}.bottomnav{position:fixed;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--steel);display:flex;z-index:3;padding:6px 6px max(6px,env(safe-area-inset-bottom))}.bottomnav button{flex:1;padding:8px 2px;border:0;background:transparent;font-size:13px;min-height:51px;border-radius:5px}.bottomnav button.active{color:var(--enamel);background:var(--enamel-soft);font-weight:700}.bottomnav .symbol{display:block;font-size:18px;line-height:22px}.counts{gap:20px}.formgrid{grid-template-columns:1fr}.login{margin:4vh 12px}.filter select{flex:1;min-width:110px}.tablewrap{margin:0 -4px}th,td{padding:10px 6px}.readiness{font-size:13px}.dynamicrow{flex-wrap:wrap}.dynamicrow select{flex:1;min-width:100px}.dynamicrow input{flex:1}.modalhead h2{font-size:18px}dialog{max-height:94dvh}.sectionline{margin-top:18px}.actions button{padding:8px 11px}}

.mobile-logout{display:none}@media(max-width:760px){.mobile-logout{display:inline-block}}

/* Shop-floor employee views: one-handed reporting, quantities before controls. */
.employee-app{max-width:720px;min-height:100dvh;margin:0 auto;background:var(--chalk);padding-bottom:90px}
.employee-header{background:var(--enamel);color:white;margin:0;padding:24px 20px;align-items:center}
.employee-header .muted,.employee-brand{color:#d2e4d9;font-size:13px}.employee-brand{letter-spacing:1px;margin-bottom:6px}
.employee-header .actions{flex-wrap:nowrap}.employee-header button{background:transparent;color:white;border-color:#6a9884;padding:8px 11px}
.employee-content{padding:18px 16px 28px}.employee-preview{padding:10px 16px;background:#f5ebd2;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.employee-search{display:flex;gap:8px;margin-bottom:14px}.employee-search input{min-width:0}.employee-search button{flex-shrink:0}
.employee-segments{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px}.employee-segments button{flex-shrink:0;border:0;background:#e9ede8;padding:10px 12px;font-size:14px}.employee-segments button.active{background:var(--enamel);color:white}.employee-segments small{margin-left:5px;color:inherit}
.employee-hint{color:var(--muted);font-size:12px;margin:4px 0 14px}.employee-order{background:white;border:1px solid var(--steel);border-radius:8px;padding:18px}.employee-order .tag+.tag{margin-left:5px}.employee-order h2{font-size:21px;margin:16px 0 14px;overflow-wrap:anywhere}
.employee-details{margin:0;display:grid;gap:8px;font-size:14px}.employee-details>div{display:flex;gap:12px}.employee-details dt{min-width:64px;color:var(--muted)}.employee-details dd{margin:0;overflow-wrap:anywhere}
.employee-route{display:flex;gap:10px;margin:20px -4px 12px;overflow-x:auto;padding:0 4px 12px}.employee-route>button{background:var(--chalk);border:0;flex:0 0 130px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;white-space:normal}.employee-route>button>span:not(.employee-ring){font-size:14px}.employee-ring{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--enamel) var(--progress),var(--steel) 0)}.employee-ring strong{border-radius:50%;background:var(--chalk);display:grid;place-items:center;width:58px;height:58px;font-size:19px;color:var(--enamel)}
.employee-order footer,.employee-task footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--steel);padding-top:14px}.employee-task h2{font-size:21px;margin:12px 0 5px}.employee-task footer{font-size:13px;margin-top:12px}.employee-task footer button{flex-shrink:0}
.employee-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0;padding:16px 0;border-top:1px solid var(--steel);border-bottom:1px solid var(--steel)}.employee-counts strong{display:block;font-size:25px;line-height:1.4}.employee-counts small{font-size:12px;white-space:nowrap}.good-number{color:var(--enamel)}.bad-number{color:var(--rust)}.pending-number{color:var(--warning)}
.employee-nav.bottomnav{display:flex;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);padding:6px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--steel);background:white;z-index:3}.employee-nav button{flex:1;border:0;background:transparent;padding:6px 2px;font-size:13px}.employee-nav .symbol{display:block;font-size:21px}.employee-nav button.active{color:var(--enamel);background:var(--enamel-soft)}
.employee-record-qty{margin:14px 0;font-size:16px}.employee-record-qty strong{font-size:24px}.employee-person{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--steel)}.employee-person>span{color:var(--muted);margin-right:12px}.employee-person small{width:100%;font-size:12px}
.employee-report input[type=number]{font-size:26px;min-height:64px}.employee-review-note{margin:20px 0;font-size:14px;background:var(--chalk);padding:14px;border-radius:5px}.employee-report-footer{position:sticky;bottom:0;background:white;padding:14px 0 max(14px,env(safe-area-inset-bottom));margin-top:14px}.employee-report-footer button{flex:1;min-height:52px;padding:10px 6px}.employee-report .modalhead h2{font-size:21px}.employee-report .modalbody{padding-bottom:0}
@media(max-width:760px){.employee-header{padding:20px 16px;margin-bottom:0}.employee-header h1{font-size:26px}.employee-content{padding-top:16px}.employee-order{padding:16px}.employee-report{width:100%;max-width:100%;max-height:96dvh;margin:auto 0 0;border-radius:14px 14px 0 0;border-bottom:0}.employee-report .modalhead{padding:16px}.employee-report .modalbody{padding:0 16px}.employee-report .employee-counts{margin-top:16px}.employee-header .actions{gap:6px}}

.employee-report-instruction{margin:16px 0;color:var(--muted);font-size:14px}

/* Production wallboard: approved production, distinct units and visible data scope. */
.production-screen{--screen-bg:#061b2b;--screen-panel:#092235;--screen-border:#23485e;--screen-text:#d9e9f2;--screen-muted:#8daabd;--screen-blue:#29b6ef;min-height:100dvh;background:var(--screen-bg);color:var(--screen-text);padding:14px 18px;font-size:14px}
.screen-header{margin:0 0 12px;padding:0 0 14px;border-bottom:1px solid var(--screen-border)}.screen-header h1{font-size:25px;letter-spacing:2px;text-align:center}.screen-header small{display:block;color:var(--screen-muted);font-size:12px}.screen-header .actions{justify-content:flex-end}.production-screen button{background:#10334a;border:1px solid #295976;color:#cdeafa;min-height:36px;font-size:13px;padding:6px 12px}.production-screen button:hover{background:#175071}.production-screen button:focus-visible,.production-screen select:focus{outline:2px solid var(--screen-blue)}
.screen-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.screen-tabs button.active{background:#14628b;border-color:#36b8f0;color:#fff}.screen-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:10px}.screen-filters label{margin:0;font-size:11px;color:var(--screen-muted);font-weight:400}.screen-filters select{display:block;min-height:36px;padding:6px 24px 6px 9px;margin-top:4px;background:#0c2b40;color:var(--screen-text);border-color:var(--screen-border);font-size:13px;max-width:330px}.screen-sync{font-size:12px;margin-left:auto;color:#55cda8;padding-bottom:7px}.screen-note,.screen-footer{font-size:12px;color:var(--screen-muted);margin:9px 0}.screen-footer{text-align:center;margin-top:18px}.screen-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:12px}.screen-column,.screen-center{display:flex;flex-direction:column;gap:12px;min-width:0}.screen-column>.screen-panel{flex:1}.screen-panel{border:1px solid var(--screen-border);border-radius:5px;min-width:0;background:var(--screen-panel);overflow:hidden}.screen-panel>header{background:#0c2b40;border-bottom:1px solid var(--screen-border);padding:9px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between}.screen-panel h2{font-size:14px;margin:0;border-left:3px solid var(--screen-blue);padding-left:8px}.screen-panel header>span{font-size:11px;color:var(--screen-muted)}.screen-panel-body{padding:12px;min-width:0}.screen-panel svg{display:block;width:100%;height:auto;margin-top:8px}.screen-panel svg text{fill:#a9c2d1;font-size:10px}.screen-gridline{stroke:#244455;stroke-width:1}.screen-legend{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;font-size:11px}.screen-legend i{display:inline-block;width:7px;height:7px;margin-right:5px}.screen-empty{min-height:115px;display:grid;place-content:center;padding:20px;color:var(--screen-muted);font-size:13px;text-align:center}.screen-data{font-size:12px;color:var(--screen-muted);margin-top:8px}.screen-data summary{cursor:pointer;padding:4px}.screen-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.screen-metric{padding:12px 14px;background:#0b293d;border:1px solid var(--screen-border);border-radius:4px}.screen-metric>span{display:block;font-size:12px;color:#8bcbee}.screen-metric>strong{font-size:28px;display:block;line-height:1.4;color:#f2f8fc}.screen-metric small{font-size:11px;color:var(--screen-muted)}.screen-metric.danger>strong,.screen-red{color:#ff7276!important}.screen-metric.warning>strong,.screen-yellow{color:#efc365!important}.screen-green{color:#35d8a3}.screen-output{display:flex;gap:20px;flex-wrap:wrap;min-height:45px;align-items:center}.screen-unit{font-size:13px;color:var(--screen-muted)}.screen-unit strong{font-size:30px;color:#35d8a3}.screen-workshops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.screen-workshops article+article{border-left:1px solid var(--screen-border);padding-left:16px}.screen-workshop-title{display:flex;gap:9px;align-items:center}.screen-workshop-title>span{font-size:14px;color:#32bbea}.screen-workshop-title h3{font-size:17px}.screen-workshop-counts{display:flex;justify-content:space-between;gap:10px;padding:10px 0;color:var(--screen-muted);font-size:11px}.screen-workshop-counts b{display:block;font-size:24px;color:var(--screen-text)}.screen-workshops p{font-size:11px;color:var(--screen-muted)}.screen-join{padding-top:13px;margin-top:12px;border-top:1px solid var(--screen-border);text-align:center;color:#6bbbe4;font-size:12px}.screen-lower{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}.screen-scroll{overflow:auto;max-height:420px}.screen-lower .screen-scroll{max-height:300px}.screen-center .screen-scroll{max-height:175px}.production-screen table{font-size:12px;background:transparent;width:100%;table-layout:auto}.production-screen th{color:#9ebace;background:#10344b;position:sticky;top:0;z-index:1;font-size:11px;white-space:nowrap}.production-screen th,.production-screen td{border-bottom:1px solid #1b3b4e;padding:10px 9px;vertical-align:middle}.production-screen td{min-width:75px;overflow-wrap:anywhere}.production-screen tr:nth-child(even){background:#0c293b}.production-screen td small{display:block;color:#87aabd;font-size:11px;margin-top:3px}.production-screen button.screen-link{padding:0;min-height:30px;border:0;background:transparent;color:#36bbf2;font-weight:650}.screen-progress{height:5px;background:#193c50;min-width:95px;overflow:hidden;margin-bottom:5px}.screen-progress>span{display:block;background:#25b8ed;height:100%}.screen-quality{display:flex;gap:22px;align-items:center;justify-content:center;padding:28px 10px}.screen-quality small{display:block;color:var(--screen-muted);font-size:11px}.screen-donut{flex-shrink:0;border-radius:50%;width:112px;height:112px;background:conic-gradient(#ff7276 var(--quality),#35d8a3 0);display:grid;place-content:center}.screen-donut>strong{display:grid;place-content:center;border-radius:50%;background:var(--screen-panel);width:90px;height:90px;text-align:center;font-size:24px}.screen-ranking>div{display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:10px;margin:16px 0;font-size:12px}.screen-ranking .screen-progress{min-width:25px}.production-screen .notice.error{background:#452532;color:#ffd4d4;border-color:#ff7276}.screen-wide{margin-top:14px}
@media(min-width:1700px){.screen-overview{grid-template-columns:minmax(0,1fr) minmax(0,2.1fr) minmax(0,1fr)}.screen-column .screen-panel-body{padding:14px 18px}.screen-column svg{max-height:210px}.screen-metric>strong{font-size:32px}}
@media(max-width:1100px){.screen-header{flex-wrap:wrap}.screen-header h1{order:-1;width:100%;text-align:left;font-size:23px}.screen-overview{grid-template-columns:1fr 1fr}.screen-center{grid-column:1/-1;grid-row:1}.screen-lower{grid-template-columns:1fr}.screen-column{grid-row:2}.screen-filters select{max-width:260px}}
@media(max-width:600px){.production-screen{padding:14px 10px}.screen-header .actions{gap:6px}.production-screen button{min-height:42px;padding:7px 9px}.screen-header h1{font-size:21px}.screen-overview{display:flex;flex-direction:column}.screen-center{order:-1}.screen-summary{grid-template-columns:1fr 1fr}.screen-metric>strong{font-size:26px}.screen-workshops{gap:10px}.screen-workshops article+article{padding-left:10px}.screen-workshop-counts{gap:5px}.screen-workshop-counts b{font-size:22px}.screen-workshop-title h3{font-size:16px}.screen-workshops p{line-height:1.7}.screen-filters{gap:8px}.screen-filters label{flex:1;min-width:135px}.screen-filters select{max-width:100%;width:100%}.screen-sync{width:100%;margin:0}.screen-lower{display:flex;flex-direction:column}.screen-panel header{align-items:flex-start}.screen-quality{padding:15px}.screen-tabs{gap:6px}.screen-tabs button{font-size:12px}}
.screen-live-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.screen-live-summary .screen-output{min-height:35px;gap:7px}.screen-live-summary .screen-unit strong{font-size:26px}
@media(min-width:1500px) and (min-height:850px){.screen-overview{height:calc(100dvh - 288px);min-height:680px;grid-template-rows:minmax(0,1fr) 220px}.screen-center,.screen-column,.screen-lower{min-height:0}.screen-center>.screen-panel:last-child{flex:1;min-height:150px}.screen-center>.screen-panel:last-child .screen-panel-body{padding:8px}.screen-center .screen-scroll{max-height:125px}.screen-lower .screen-scroll{max-height:155px}.screen-workshop-counts{padding:6px 0}.screen-metric{padding:8px 10px}.screen-metric>strong{font-size:27px}.screen-panel h2{font-size:13px}.screen-column>.screen-panel{min-height:0}.screen-column .screen-panel-body{padding:8px 12px}.screen-column svg{max-height:145px}.screen-quality{padding:12px 6px}.screen-ranking>div{margin:10px 0}.screen-column .screen-empty{min-height:80px}.screen-data .screen-scroll{max-height:130px}.screen-data[open]{position:relative;z-index:2;background:var(--screen-panel)}}
@media(max-width:1499px){.screen-live-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.screen-live-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Product configuration: sales select physical components, then verify quantities. */
.product-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:.1em;color:var(--green,#215e4a);margin-bottom:8px}.product-intro h2{font-size:25px;margin-bottom:8px}.product-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.product-toolbar input{max-width:300px}.product-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.product-card{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e0e6e3;border-radius:12px;padding:20px;min-width:0}.product-card>div:nth-child(2){flex:1;min-width:0}.product-card h3{margin-bottom:5px}.product-card .tag{margin-top:8px}.product-code{width:82px;flex-shrink:0;font-size:23px;font-weight:700;letter-spacing:-.03em;color:#215e4a}.product-code small{display:block;color:#687b72;font-weight:400;font-size:12px;margin-top:4px;letter-spacing:0}.product-modal{width:min(1120px,calc(100vw - 32px));max-width:1120px}.config-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}.config-visual{align-self:start;position:sticky;top:0}.product-image{position:relative;width:100%;background:#fff}.product-image img{width:100%;height:auto;display:block}.product-image svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.product-visual-caption{text-align:center;font-size:16px;font-weight:650;margin:8px 0}.product-hotspots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0}.product-hotspots button{font-size:13px;padding:8px 12px;min-height:40px}.config-controls{min-width:0}.config-option{border-top:1px solid #e2e7e4;padding:12px 0}.config-option label{margin-top:0}.config-option p{margin:6px 0 0;font-size:12px;line-height:1.6}.config-custom label{margin-top:8px}.config-footer{position:sticky;bottom:-24px;background:#fff;border-top:1px solid #dce4df;padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;z-index:2}.config-footer span{font-size:13px;color:#52675d}.product-quantity-chain{display:flex;gap:24px;flex-wrap:wrap;padding:12px 0;font-size:14px}.product-bom-table{font-size:13px}.product-bom-table td:nth-child(2){max-width:480px;overflow-wrap:anywhere}.product-bom-table th:nth-child(3),.product-bom-table td:nth-child(3),.product-bom-table th:nth-child(4),.product-bom-table td:nth-child(4){white-space:nowrap}.product-snapshot{background:#f3f6f4;padding:16px;border-radius:8px;margin:14px 0}.product-snapshot p{margin:5px 0}.product-snapshot small{color:#687b72}.product-basket-lines .lineitem{padding:18px 0}.product-basket-lines .actions{margin-top:12px}.product-basket-lines p{overflow-wrap:anywhere}
@media(max-width:1100px){.product-catalog{grid-template-columns:1fr}}
@media(max-width:640px){.product-intro{align-items:flex-start;flex-direction:column;gap:12px}.product-intro h2{font-size:22px}.product-toolbar{flex-direction:column;align-items:stretch;gap:8px}.product-toolbar input{max-width:none}.product-toolbar .segments{margin-bottom:0}.product-card{padding:14px;flex-wrap:wrap;gap:12px}.product-code{width:64px;font-size:20px}.product-card>button{width:100%}.product-modal{width:100vw;max-width:100vw;max-height:96dvh;margin:auto 0 0;border-radius:16px 16px 0 0}.config-layout{grid-template-columns:1fr;gap:16px}.config-visual{position:static}.product-image{max-width:260px;margin:auto}.config-visual>.subtle{font-size:11px}.product-hotspots{gap:6px}.config-footer{bottom:-16px;gap:10px;padding:12px 0}.config-footer button{flex-shrink:0}.product-quantity-chain{gap:12px}.product-bom-table{min-width:650px}.config-controls .formgrid{grid-template-columns:1fr 1fr}.config-controls select{min-width:0}.product-visual-caption{font-size:14px}}

/* Count edits stay beside the unit; optional packaging remains visible when excluded. */
.quantity-editor{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end}.quantity-editor input{width:100px;min-height:42px;padding:7px 8px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.zip-bag-switch{margin:4px 0 4px 8px;min-height:36px;padding:5px 10px;font-size:12px;border-radius:5px;background:var(--enamel-soft);color:var(--enamel)}.zip-bag-switch[aria-checked=false]{background:#f3f4f2;color:var(--muted)}.product-bom-table .numeric{min-width:140px}.config-footer .actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:640px){.config-footer{align-items:flex-start}.config-footer .actions{gap:6px}.config-footer .actions button{padding:9px 10px;font-size:13px}.config-footer>span{max-width:38%}}

/* Each order carries two workshop routes; rings count approved good output only. */
.order-card{min-width:0}.order-processes{margin:14px 0 18px;border:1px solid var(--steel);border-radius:7px;overflow:hidden}.process-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;padding:10px 12px;background:var(--chalk);font-size:13px;font-weight:600}.process-caption span{font-size:11px;color:var(--muted);font-weight:400}.process-workshop{padding:12px 10px 6px;min-width:0}.process-workshop+.process-workshop{border-top:1px solid var(--steel)}.process-workshop-heading{display:flex;justify-content:space-between;gap:8px;padding:0 2px 8px;font-size:13px}.process-workshop-heading small{font-size:11px;color:var(--muted)}.process-track{display:flex;align-items:flex-start;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 8px;scrollbar-width:thin;scrollbar-color:#bacac0 transparent}.process-track:focus-visible{outline:2px solid var(--enamel);outline-offset:-2px}.process-node{flex:0 0 116px;border:0;background:transparent;border-radius:5px;padding:5px 3px;display:flex;flex-direction:column;align-items:center;gap:5px;white-space:normal;color:var(--ink);min-width:0}.process-node:hover{background:var(--chalk)}.process-node:focus-visible{outline:2px solid var(--enamel);outline-offset:-2px}.process-ring{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:conic-gradient(var(--enamel) var(--process-progress),#e6ebe7 0);flex-shrink:0}.process-ring strong{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--enamel);font-size:16px;font-variant-numeric:tabular-nums}.process-ring.complete strong{background:var(--enamel-soft)}.process-name{font-size:12px;font-weight:600;line-height:1.5;min-height:36px;width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.process-material{font-size:10px;line-height:1.4;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.process-count{font-size:10px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.process-pending,.process-blocked,.process-status{font-size:10px;line-height:1.5}.process-pending{color:#8b641c;background:#fbf3df;border-radius:3px;padding:0 5px}.process-blocked{color:#8b641c}.process-status{color:var(--muted)}.process-link{flex:0 0 18px;margin-top:21px;text-align:center;color:#adbcb3}.process-link.independent{color:transparent}.process-empty{font-size:12px;color:var(--muted);padding:8px 4px}.process-detail-note{font-size:13px;color:var(--muted);margin:12px 0}@media(max-width:640px){.process-node{flex-basis:106px}.process-link{flex-basis:12px}.process-workshop{padding:10px 8px 5px}.process-caption{padding:9px 10px}}

.artwork-upload{border-top:1px solid var(--steel);padding:8px 0 12px}.artwork-upload input[hidden]{display:none}.artwork-upload img{display:block;width:100%;max-height:170px;object-fit:contain;background:#f8f9f7;margin:10px 0;border:1px solid var(--steel)}.artwork-upload [data-artwork-preview]>.subtle{display:block;overflow-wrap:anywhere}.order-artworks{margin:14px 0;padding:12px;background:var(--chalk);border:1px solid var(--steel);border-radius:5px}.order-artworks h3{font-size:14px}.artwork-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}.artwork-grid figure{margin:0;min-width:0}.artwork-grid img{width:100%;height:130px;object-fit:contain;background:white;border:1px solid var(--steel);display:block}.artwork-grid figcaption{font-size:12px;margin-top:5px}.artwork-grid small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.artwork-instruction{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.employee-report .artwork-grid img{height:95px}

.employee-order,.employee-task,.order-artworks{min-width:0}.employee-content>.stack{min-width:0}
.data-tool-table{max-width:100%;overflow-x:auto}.data-tool-table th,.data-tool-table td{white-space:nowrap}

.process-history{padding:8px 12px;border-bottom:1px solid var(--steel);font-size:12px;color:var(--muted)}.process-history summary{cursor:pointer;min-height:28px}.process-history button{font-size:11px;padding:3px 8px;min-height:30px}.process-history p{margin-top:8px}

.org-tabs{margin-bottom:20px;flex-wrap:wrap}.org-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.org-filters label{flex:1;min-width:130px;margin:0}.org-filters input,.org-filters select{margin:6px 0 0;width:100%}.org-table{min-width:720px}.org-table td{vertical-align:middle}.org-table small{color:var(--muted,#64736b)}@media(max-width:600px){.org-tabs button{flex:1 1 40%}.org-filters label{flex:1 1 40%}.org-filters button{flex:1}.org-table{min-width:650px}}
.frame-hole-check{margin:12px 0;padding:13px 15px;border:1px solid #b7782f55;border-left:4px solid #b7782f;border-radius:12px;background:#fff5df;color:#49351f;line-height:1.65}.frame-hole-check strong{display:block;font-size:13px}.frame-hole-check p{margin:4px 0;font-weight:650}.frame-hole-check small{display:block;color:#735a3b}.frame-hole-check.mismatch{border-color:#b6423c;background:#fff0ed;color:#7b211e}.frame-hole-row{margin:6px 0 0;padding:6px 8px;border-radius:7px;background:#fff2cf;color:#684515;font-weight:650;font-size:11px}
/* Phone forms and handoff reminders: keep labels, choices and actions readable. */
@media(max-width:760px){
 dialog{width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top));margin:auto 0 0;border-radius:18px 18px 0 0;overflow:auto}
 dialog .modalhead{padding:16px 18px;align-items:center}
 dialog .modalbody{padding:12px 18px max(24px,env(safe-area-inset-bottom));overflow-wrap:anywhere}
 dialog label{display:block;font-weight:650;margin-top:14px;margin-bottom:6px}
 dialog input,dialog select,dialog textarea{font-size:16px;min-height:48px;width:100%;max-width:100%}
 dialog textarea{min-height:88px}
 dialog .formfooter{position:sticky;bottom:0;background:var(--paper);padding:12px 0 max(12px,env(safe-area-inset-bottom));z-index:2}
 dialog .formfooter button{min-height:48px;flex:1}
 #outsource-driver-choice{padding:10px 14px;margin-top:12px;border:1px solid var(--steel);border-radius:10px;background:var(--chalk)}
 #outsource-driver-choice[hidden]{display:none}
 #outsource-driver-choice .subtle{line-height:1.5}
 #content .card .actions button{min-height:44px}
}

/* Cost tables and preview use the available desktop width; phones scroll the table. */
dialog:has([data-cost]) { width: min(1200px, 96vw); max-width: 96vw; }

.shared-product-library iframe{display:block;width:100%;height:calc(100vh - 230px);min-height:620px;border:1px solid #dce4ef;border-radius:12px;background:#f5f8fc}.erp-production-config{margin-top:24px}.erp-production-config>summary{cursor:pointer;padding:16px;font-weight:700;background:#edf3ff;border-radius:8px}.erp-production-config[open]>summary{margin-bottom:18px}

/* Each carton-count alternative owns its dimensions and loading counts. */
.packaging-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.packaging-plan-card{border:1px solid #d7e1ef;border-radius:12px;padding:10px;min-width:0;background:#fff}.packaging-plan-card.selected{border:2px solid #2563eb;padding:9px}.packaging-plan-card>button{width:100%;font-weight:700;margin-bottom:12px}.packaging-plan-card.selected>button{background:#2563eb;color:#fff}.packaging-plan-card fieldset{padding:6px;border:0;margin:0 0 10px;min-width:0}.packaging-plan-card legend{font-size:12px;color:#526581}.pack-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.packaging-plan-card label{display:block;font-size:12px;color:#526581}.packaging-plan-card input{width:100%;min-width:0;padding:7px 3px}.pack-loads{display:grid;gap:6px;border-top:1px solid #e4eaf2;padding-top:10px}.packaging-plan-card input[readonly]{background:#f6f8fc}#packaging-save-status{display:block;font-size:13px;margin-top:8px;color:#526581}@media(max-width:600px){.packaging-plan-grid{grid-template-columns:1fr}.pack-loads{grid-template-columns:repeat(3,minmax(0,1fr))}}
