@font-face{font-family:NavzWordmark;src:url('/product-demo/production/fonts/NotoSansDevanagari-Medium-NNTPYBRL.ttf') format('truetype');font-display:swap}
@font-face{font-family:Navz;src:url('/product-demo/production/fonts/latin-0-Y2PJ5BOZ.ttf')}*{box-sizing:border-box}body{margin:0;background:#f6f7fa;color:#25272d;font:15px Navz,Inter,system-ui,sans-serif;line-height:1.5;--ink:#25272d;--line:#dfe2e8;--accent:#6463a7;--mint:#eeefff;--copper:#6867b5;--white:#fff}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible{outline:3px solid #6564ac}button{cursor:pointer}h1,h2,h3,p{margin:0 0 12px}h1{font-size:25px;line-height:1.2}h2{font-size:23px;letter-spacing:-.6px}h3{font-size:17px}small{display:block;color:#626975;font-size:12px}svg.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}svg.fan-art{width:68px;height:68px}.muted{color:#626975;font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#626975}.rail{position:fixed;inset:0 auto 0 0;width:64px;background:#edf0f5;border-right:1px solid #dfe2e8;display:flex;flex-direction:column;align-items:center;padding:12px 4px;z-index:30}.logo{width:35px;height:35px;margin-bottom:12px}.rail nav{display:flex;flex-direction:column;gap:4px;width:100%}.rail-btn{border:0;background:none;display:flex;align-items:center;justify-content:center;width:48px;min-height:43px;margin:0 auto;border-radius:9px;color:#25272d;position:relative;text-decoration:none}.rail-btn.active{background:#25272d;color:white}.rail-btn>span{display:none;position:absolute;left:54px;top:5px;white-space:nowrap;background:#25272d;color:white;padding:8px 12px;border-radius:7px;box-shadow:0 4px 12px #0002}.rail-btn:hover>span,.rail-btn:focus-visible>span{display:block}.rail>a{margin-top:auto}.workspace{margin-left:64px}.top{min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:14px 28px;background:white;border-bottom:1px solid #dfe2e8;gap:14px}.top h1{margin:3px 0 0}.top-controls{display:flex;align-items:center;gap:12px}.industry{border:1px solid #dfe2e8;border-radius:12px;background:#fff;display:flex;align-items:center;gap:10px;padding:8px 12px}.industry .fan-art{width:30px;height:30px}.industry small{font-size:10px}.role-control{font-size:10px;color:#626975}.role-control select{display:block;border:0;font-size:14px;text-transform:capitalize;background:none}.context-bar{padding:10px 28px;display:flex;gap:20px;align-items:center;font-size:12px;border-bottom:1px solid #e4e6ec;flex-wrap:wrap}.context-bar .text{margin-left:auto}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6463a7;margin-right:5px}main{max-width:1600px;margin:auto;padding:22px 28px}.panel{background:white;border:1px solid #dfe2e8;border-radius:16px;padding:22px;margin-bottom:20px;box-shadow:0 2px 4px #25272d03}.section-title,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.toolbar{justify-content:flex-start;margin:14px 0}.btn{border:1px solid #d4d8e2;background:white;color:#25272d;min-height:44px;padding:10px 15px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:hover{background:#f1f2fa;border-color:#a7a9c6}.btn.primary{background:#25272d;color:white;border-color:#25272d;box-shadow:0 3px 8px #25272d15}.btn.primary:hover{background:#41434d}.btn.small{font-size:12px;min-height:38px;padding:8px 12px}.btn.text,.link{border:0;background:none;padding:4px 0;color:#4f4e8b;text-align:left;font-weight:600;min-height:28px;text-decoration:underline;text-underline-offset:3px}.icon-button{padding:9px;min-width:42px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.metric{padding:18px 20px;border:1px solid #dfe2e8;border-radius:14px;background:white;text-align:left;display:grid;grid-template-columns:minmax(0,1fr);gap:5px}.metric span{font-size:13px}.metric strong{font-size:32px;line-height:1.2}.metric small{font-size:11px}.danger{color:#a63e32}.warning{color:#8a611d}.good{color:#366b52}.tag{display:inline-flex;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:600;background:#eef0f5;color:#505867;line-height:1.3}.tag.warning{background:#fff4d9;color:#78551a}.tag.danger{background:#fceae6;color:#94382c}.tag.good{background:#eaf4ee;color:#2e654b}.floor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.product-art{display:flex;align-items:center;gap:14px}.product-art small{margin-top:5px}.floor-scroll{overflow-x:auto;padding-top:20px}.floor{min-width:840px}.store-marker{display:flex;align-items:center;gap:10px;color:#626975;margin-bottom:14px;font-size:13px}.store-marker small{margin-left:auto}.stations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.station-card{position:relative;padding:16px;text-align:left;background:#f7f8fb;border:1px solid #d9dde6;border-radius:13px;color:#25272d;min-height:220px}.station-card:not(:last-child):after{content:'→';position:absolute;right:-20px;top:50%;color:#8586b5}.station-card.selected{background:#f0f0ff;border:2px solid #6765ad;padding:15px;box-shadow:0 5px 14px #6463a711}.station-top{display:flex;justify-content:space-between;align-items:center;color:#626975;font-size:11px;margin-bottom:15px}.station-card h3{font-size:17px}.worker-name{font-size:13px;color:#626975}.station-output{display:flex;align-items:center;gap:8px;margin-top:18px}.station-output>b{font-size:34px;line-height:1}.station-output small{font-size:10px}.station-output>span{font-size:12px}.progress{height:6px;background:#e4e7ef;border-radius:10px;overflow:hidden;margin:13px 0}.progress>i{display:block;height:100%;background:#7776bc;border-radius:10px;transition:width .3s}.progress.large{height:12px}.station-card>.tag{margin-bottom:7px}.station-card>small{font-size:10px}.worker-lane{height:85px;position:relative;margin-top:8px;border-bottom:1px dashed #dfe2e8}.moving-worker{position:absolute;left:calc((var(--position) + .5)*25% - 24px);top:0;transition:left .8s ease;text-align:center}.walker{width:46px;height:65px;overflow:visible}.walker .leg,.walker .arm{stroke:#353644;stroke-width:5;stroke-linecap:round;fill:none}.moving-worker>span{font-size:10px;display:block;background:white;border-radius:4px}.walking .leg.left{animation:step .25s alternate infinite}.walking .leg.right{animation:step .25s alternate-reverse infinite}.walking .walker-body{animation:bob .2s alternate infinite}.scroll-help{font-size:11px;color:#626975;margin-top:15px}.split{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.brief{background:#f1f1fb}.brief h2{font-size:30px;margin-top:12px;max-width:330px}.brief p{max-width:440px}.brief .primary{margin:10px 0}.alert-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #edf0f5}.alert-row:last-child{border:0}.alert-row>div{flex:1}.alert-row p{font-size:12px;margin:4px 0}.signal{background:#fff4d9;padding:9px;border-radius:10px}.signal.danger{background:#fceae6}.empty{text-align:center;padding:32px 15px;color:#626975}.empty>.icon{width:35px;height:35px;margin-bottom:12px}.empty h3{color:#25272d}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.tabs .btn{background:white;border-bottom:3px solid #dfe2e8}.tabs .active{background:#25272d;color:white;border-color:#25272d;border-bottom-color:#8784d0}.prominent .btn{min-width:160px;min-height:52px;font-weight:600}.table-scroll{overflow-x:auto;max-width:100%;margin-top:12px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#626975;background:#f7f8fb;white-space:nowrap}td,th{padding:13px 12px;border-bottom:1px solid #e8ebf1;vertical-align:middle}td:first-child{min-width:175px}td .btn.text{font-size:12px}td small{font-size:10px;margin-top:3px}tbody tr:hover{background:#fafaff}.item-name{display:flex;gap:10px;align-items:center}.mini-icon{padding:8px;background:#f0f1f7;border-radius:9px}.mini-icon .fan-art{width:24px;height:24px}.breakdown{display:flex;gap:2px;width:150px;height:9px;overflow:hidden;border-radius:6px;background:#eceef4;margin:4px 0 8px}.breakdown i{min-width:3px}.used{background:#6968ad}.wip{background:#b5b2da}.reject{background:#c57b5e}.scrap{background:#9b855d}.loss{background:#d6af6b}.loose{background:#819cad}.gap{background:#bd5347}.unknown{background:repeating-linear-gradient(45deg,#ddd 0px,#ddd 3px,#fff 3px,#fff 6px)}.search{border:1px solid #d4d8e2;border-radius:9px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:white}.search input{border:0;min-width:170px;width:100%;padding:0;background:transparent}.reason-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.reason-grid article{border-bottom:2px solid #e3e3f0;padding:14px;background:#f7f8fb;border-radius:9px}.reason-grid h3{font-size:13px;margin:10px 0}.reason-grid strong{font-size:26px}.material-hero{display:flex;align-items:center;gap:18px}.large-icon{background:#eeefff;padding:15px;border-radius:14px;color:#565491}.large-icon svg{width:35px;height:35px}.material-journey{display:flex;gap:18px;align-items:center;overflow-x:auto;padding:25px 0}.material-journey>span{min-width:180px;background:#f7f8fb;padding:18px;border-radius:12px}.material-journey b{font-size:24px;display:block;margin:8px 0}.material-journey small{margin-bottom:8px}.material-journey>i{font-size:24px;color:#7776bc}.round-location{display:flex;align-items:center;gap:16px;margin-bottom:16px}.round-location .toolbar{margin-left:auto}.round-location h2{margin:3px 0 5px}.round-location p{margin:0;font-size:12px}.mini-route{display:flex;align-items:center;gap:8px;margin-bottom:20px;overflow-x:auto}.mini-route button{display:flex;gap:9px;align-items:center;border:1px solid #dfe2e8;border-radius:8px;padding:9px;background:white;font-size:12px;white-space:nowrap}.mini-route button.selected{background:#eeefff;border-color:#7776bc}.round-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px}.station-illustration{height:180px;display:flex;gap:24px;align-items:center;justify-content:center;border-bottom:1px solid #e4e6ed;margin-bottom:20px;background:radial-gradient(#dddde8 1px,transparent 1px);background-size:18px 18px;border-radius:10px}.station-illustration>.fan-art{width:120px;height:140px}.inputs{display:flex;flex-direction:column;gap:8px}.inputs>span{display:grid;grid-template-columns:25px auto;gap:0 8px}.inputs small{grid-column:2;font-size:10px}.output-number{display:flex;gap:15px;align-items:center;margin:18px 0}.output-number>b{font-size:64px;line-height:1}.station-scene>.btn{margin-bottom:10px}.assistant-name{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:600;margin-bottom:20px}.assistant-name img{width:36px;height:36px}.assistant-name small{font-size:10px;font-weight:400}.bubble{padding:16px;background:#eff0f9;border-radius:2px 14px 14px 14px;margin:12px 0 18px;line-height:1.7}.quick-facts>div{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee;font-size:12px}.quick-facts b{margin-left:auto}.quick-facts small{font-size:10px}.conversation>.btn{margin:5px 5px 5px 0}.next-step{margin-top:20px;border-top:1px solid #e8ebf1;padding-top:16px}.notice{background:#fff8e7;border-left:3px solid #cfa958;padding:12px 16px;margin:15px 0;font-size:13px}.review-card{border-top:1px solid #e4e6ed;padding:20px 0}.review-body{display:grid;grid-template-columns:1fr 230px;gap:24px}.review-journey{display:flex;flex-direction:column;gap:10px}.review-journey span{padding:9px 12px;border-left:3px solid #ddd;background:#f7f8fb;font-size:12px}.review-journey .done{border-color:#6e8c7d}.summary-text{font-size:23px;line-height:1.6;max-width:850px}.settings-row{display:flex;align-items:center;gap:30px;flex-wrap:wrap;padding:20px 0}.settings-row label{max-width:280px}.settings-row input[type=number]{width:110px}.industry-list{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}footer{font-size:11px;color:#626975;text-align:center;padding:10px 20px 25px}dialog{border:1px solid #dfe2e8;border-radius:18px;max-width:850px;width:calc(100% - 32px);max-height:90vh;padding:24px;box-shadow:0 25px 100px #17192440;color:#25272d}dialog::backdrop{background:#20233266;backdrop-filter:blur(3px)}dialog>header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}dialog h2{font-size:23px;margin:0}dialog label{display:block;margin:12px 0}input,select,textarea{border:1px solid #ccd1dc;border-radius:7px;padding:10px;background:white;color:#25272d;max-width:100%}textarea{display:block;width:100%;min-height:90px;margin-top:7px}input[type=number]{width:100%;margin-top:6px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle;accent-color:#6463a7}.error{color:#a43e31;background:#fff2ef;padding:10px;border-radius:8px}.error:empty{display:none}fieldset{border:0;border-top:1px solid #dfe2e8;margin:0;padding:18px 0}legend{font-weight:600}fieldset p{font-size:12px;color:#626975}.count-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.count-grid label{font-size:12px}.form-actions{display:flex;gap:10px;margin-top:16px}.calculation>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #eee}.calculation>div:nth-last-child(-n+3){font-weight:700;background:#f3f3fa;padding:10px}.qr-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.qr-options .btn{flex-wrap:wrap;padding:20px}.qr-options small{width:100%}.search-result{display:block;width:100%;border:0;background:none;padding:14px;text-align:left;border-bottom:1px solid #eee}.search-result:hover{background:#f2f2fb}.tour li{padding:10px}.tour p{font-size:13px}.upload{padding:16px;border:1px dashed #aaa;border-radius:10px}.upload input{display:block;margin-top:8px}.arrival-motion{display:flex;align-items:center;gap:14px;background:#eeefff;padding:8px 20px;border-radius:10px;margin-bottom:16px}.arrival-motion .walker{animation:travel 1s both}details{margin:14px 0}summary{cursor:pointer;font-weight:600;font-size:13px}details p{margin-top:10px}blockquote{margin:10px 0;padding:12px 16px;background:#f3f4fa;border-left:3px solid #8583bd}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(100px);background:#25272d;color:white;padding:13px 20px;border-radius:10px;z-index:100;transition:.2s;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0)}@keyframes step{to{transform:rotate(15deg)}}@keyframes bob{to{transform:translateY(-2px)}}@keyframes travel{from{transform:translateX(-15px)}to{transform:translateX(15px)}}@media(min-width:1600px){.floor{min-width:1000px}.station-card{min-height:240px}}@media(max-width:1000px){.top{padding:12px 18px}.top-controls{gap:6px}.industry small{display:none}main{padding:18px}.metrics{gap:10px}.metric{padding:13px}.metric span{font-size:11px}.split,.round-grid{grid-template-columns:1fr}.floor-heading{align-items:flex-start}.review-body{grid-template-columns:1fr}.review-journey{flex-direction:row;flex-wrap:wrap}.context-bar{padding:10px 18px;gap:10px}}@media(max-width:650px){.rail{width:52px;padding:8px 2px}.rail-btn{width:42px;min-height:40px}.rail .logo{width:30px;height:30px}.workspace{margin-left:52px}.top{align-items:flex-start;flex-direction:column;padding:12px}.top h1{font-size:22px}.top-controls{width:100%;justify-content:space-between;gap:4px}.industry{padding:5px;font-size:11px}.industry .fan-art{width:24px;height:24px}.top-controls .btn{font-size:11px;padding:7px;min-height:38px}.role-control select{font-size:12px}main{padding:12px}.context-bar{padding:8px 12px;font-size:10px}.context-bar>span:last-of-type{display:none}.metrics{grid-template-columns:1fr 1fr;gap:8px}.metric{padding:12px;display:block}.metric strong{display:block;font-size:29px;margin:5px 0}.metric small{font-size:10px}.panel{padding:15px;border-radius:12px}.floor-heading{display:block}.floor-heading>div:last-child{margin-top:10px}.product-art{gap:8px}.product-art small{font-size:10px}.floor{min-width:960px}.floor-scroll{scroll-snap-type:x proximity}.station-card{scroll-snap-align:center}.stations{gap:18px}.station-card h3{font-size:16px}.station-card:not(:last-child):after{right:-16px}.round-location{flex-wrap:wrap;gap:10px}.round-location .toolbar{width:100%;margin:0}.round-location h2{font-size:21px}.round-location .large-icon{padding:10px}.round-location .large-icon svg{width:25px;height:25px}.mini-route button span{display:none}.mini-route button{width:40px;justify-content:center}.prominent{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.prominent .btn{min-width:0;font-size:11px;padding:7px;min-height:50px}.round-grid{gap:0}.station-illustration{height:140px}.station-illustration>.fan-art{width:90px;height:110px}.output-number>b{font-size:48px}.reason-grid{grid-template-columns:1fr 1fr}.count-grid{grid-template-columns:1fr 1fr}.count-grid label{font-size:11px}.count-grid label:last-child{grid-column:1 / -1}.tabs .btn{font-size:11px}.summary-text{font-size:18px}.qr-options{grid-template-columns:1fr}dialog{padding:18px}.table-scroll td,.table-scroll th{padding:10px}.alert-row{flex-wrap:wrap}.settings-row{gap:10px}.floor-scroll:after{content:'Swipe or scroll to see all 4 stations →';font-size:11px;color:#8a611d;position:sticky;left:0;display:block;padding-top:10px}.rail nav{gap:2px}.rail-btn>span{left:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-width:500px}.count-picker{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px}.count-picker .btn{font-size:12px;flex:1;white-space:nowrap}.count-picker .active{background:#25272d;color:white}.count-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #eee;padding-top:14px}.count-nav span{font-size:12px}.count-materials fieldset[hidden]{display:none}body[data-role=worker] .station-illustration{height:145px}body[data-role=worker] .station-illustration>.fan-art{height:110px;width:95px}@media(max-width:650px){body[data-role=worker] .rail{inset:auto 0 0;width:100%;height:70px;padding:4px 6px;flex-direction:row;justify-content:space-evenly;background:#fff;border-top:1px solid #dfe2e8}body[data-role=worker] .rail .logo,body[data-role=worker] .rail>a{display:none}body[data-role=worker] .rail nav{flex-direction:row;justify-content:space-around}body[data-role=worker] .rail-btn{min-width:54px;min-height:56px;display:flex;flex-direction:column;gap:3px;border-radius:8px}body[data-role=worker] .rail-btn>span{display:block;position:static;background:none;color:inherit;padding:0;box-shadow:none;font-size:10px}body[data-role=worker] .workspace{margin-left:0;padding-bottom:75px}body[data-role=worker] .top{padding:10px 14px}body[data-role=worker] .top h1{font-size:20px}body[data-role=worker] .top .eyebrow{font-size:9px}body[data-role=worker] .context-bar{padding:7px 14px}body[data-role=worker] .context-bar>span:nth-child(2){display:none}body[data-role=worker] .round-location .large-icon{display:none}body[data-role=worker] .round-location .toolbar{justify-content:space-between}body[data-role=worker] .round-location .toolbar .btn{min-height:44px}body[data-role=worker] .mini-route{justify-content:center}body[data-role=worker] .station-illustration{height:100px;margin-bottom:12px}body[data-role=worker] .station-illustration>.fan-art{width:60px;height:80px}body[data-role=worker] .station-scene{padding:12px}body[data-role=worker] .output-number{margin:10px 0}body[data-role=worker] .output-number>b{font-size:36px}body[data-role=worker] .station-scene .muted,body[data-role=worker] .station-scene details{display:none}body[data-role=worker] .round-grid .conversation{padding:15px}body[data-role=worker] .quick-facts{display:none}.count-picker .btn{flex:none;min-width:110px;max-width:150px;white-space:normal;flex-direction:column;font-size:11px;padding:8px}.count-grid{grid-template-columns:1fr}.count-grid label:last-child{grid-column:auto}.count-grid label{font-size:14px;margin:3px 0}.count-grid input{min-height:48px;font-size:22px}.count-nav .btn{font-size:11px;padding:8px;min-height:44px}.count-nav span{font-size:10px;min-width:65px;text-align:center}.form-actions{flex-wrap:wrap}.form-actions>.primary{flex:1}.count-materials fieldset{padding:12px 0}.count-picker{padding-bottom:6px}dialog{max-height:94dvh;padding:16px}.round-location h2{font-size:23px}}
@media(max-width:650px){.count-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible}.count-picker .btn{min-width:0;max-width:none;padding:7px 4px;font-size:10px;line-height:1.3}.count-grid label{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:60px}.count-grid input{width:100px;min-width:100px;margin:0}.count-nav{flex-wrap:wrap}.count-nav .btn{flex:1}.count-nav span{order:-1;width:100%}.form-actions{position:sticky;bottom:-16px;background:white;padding:12px 0 6px;border-top:1px solid #e4e6ed}.sample-transcript{padding:10px;background:#eff0f9;border-radius:8px}.sample-transcript summary{font-size:12px}.sample-transcript p{font-size:12px}dialog>p{font-size:12px}dialog>header{margin-bottom:10px}dialog h2{font-size:20px}}
.worker-material-cards{display:none}@media(max-width:820px){body[data-role=worker] .worker-material-panel>.table-scroll{display:none}body[data-role=worker] .worker-material-cards{display:block}.worker-material-cards article{padding:14px 0;border-bottom:1px solid #e2e5ef}.worker-material-cards article:first-child{padding-top:0}.worker-material-cards h3{font-size:16px;margin-bottom:8px}.worker-material-cards .section-title{gap:2px}.worker-balance{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.worker-balance span{font-size:11px;color:#626975}.worker-balance b{display:block;color:#25272d;font-size:23px;margin-top:4px}.worker-material-cards .breakdown{width:100%;height:10px}.worker-material-cards .toolbar{gap:8px}.worker-material-cards p{font-size:14px}.worker-material-cards .btn{min-height:44px}}
/* Material clarity · shared compact structures, 17 November */
.header-search{flex:1;max-width:420px;min-width:180px;justify-content:flex-start;color:#626975;background:#f6f7fa}.header-search span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top{padding:12px 22px}.context-bar{padding:8px 22px;gap:22px}.context-bar small{font-size:10px}.context-bar b{font-size:12px;font-weight:550}.badge,.rail-count{background:#fff0c7;color:#765015;border-radius:20px;min-width:20px;padding:1px 5px;font-size:11px}.rail-count{position:absolute;top:0;right:0}.material-summary{padding:16px 20px}.material-summary h2{font-size:18px}.material-summary-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;margin:10px 0}.summary-category{border:0;border-right:1px solid var(--line);background:none;text-align:left;padding:10px;min-height:75px;color:var(--ink)}.summary-category:last-child{border:0}.summary-category span{display:flex;gap:6px;align-items:center;font-size:12px;line-height:1.35}.summary-category b{display:block;font-size:14px;margin-top:8px}.summary-category:hover{background:#f6f7fa}.status-legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:12px}.status-legend span{display:flex;gap:5px;align-items:center}.status-legend .icon{width:16px;height:16px}.input-panel{margin:16px 0}.input-panel h3{font-size:16px}.input-source{padding:12px 0;border-bottom:1px solid var(--line)}.input-source .section-title{gap:5px}.input-source strong{font-size:14px}.source-facts{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:8px 0}.source-facts b{margin-left:5px}.usage-rule{background:#f5f6fa;padding:7px 10px;font-size:12px;margin:8px 0}.input-source .btn.text{font-size:12px}.input-panel>.muted{margin-top:10px}.material-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.material-option{justify-content:flex-start;text-align:left;padding:9px;min-width:0}.material-option b{font-size:13px}.material-option small{font-size:11px}.material-option.warning{background:#fff9eb;border-color:#ead8b3}.material-option.danger{background:#fff1ef;border-color:#eac8c1}.reconcile-status{display:flex;gap:10px;align-items:flex-start;padding:12px;margin:12px 0;background:#f7f8fa;border-left:3px solid currentColor}.reconcile-status b{font-size:14px}.stage-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:20px 0}.stage-flow article{border-top:3px solid #7776bc;background:#f7f8fb;padding:15px;position:relative;border-radius:8px}.stage-flow article:not(:last-child):after{content:'→';position:absolute;right:-17px;top:45%;color:#626975}.stage-number{display:inline-grid;place-items:center;border-radius:50%;background:#25272d;color:white;width:25px;height:25px;margin-bottom:10px}.stage-flow h3{font-size:15px}.stage-flow p{font-size:13px}.stage-flow .fan-art{width:22px;height:22px}.stage-flow small{margin-bottom:10px}.station-card{min-height:200px}.station-top{margin-bottom:10px}.station-output{margin-top:12px}.station-illustration{display:none}.round-grid{align-items:start}.material-summary-grid .icon{width:18px;height:18px}.breakdown>i:not(.gap):not(.unknown){background:#a3a7b5}.breakdown .gap{background:#c25b4b}.breakdown .unknown{background:#e9c56c}
@media(max-width:1100px){.material-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-category{border-bottom:1px solid var(--line)}.top{flex-wrap:wrap}.header-search{order:3;max-width:none;flex-basis:100%}.stage-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-flow article:nth-child(2):after{display:none}}
@media(max-width:600px){.top{padding:12px;gap:10px}.top h1{font-size:22px}.top-controls{gap:6px;flex-wrap:wrap}.industry{padding:6px}.industry small{display:none}.context-bar{padding:8px 12px;gap:10px;display:grid;grid-template-columns:1fr 1fr}.context-bar>.text{margin:0;justify-self:start}.header-search{min-height:42px}.material-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.material-summary{padding:14px}.stage-flow{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;gap:16px}.stage-flow article{min-width:82%;scroll-snap-align:start}.stage-flow article:after{display:none}.input-source .section-title{align-items:flex-start;flex-direction:column}.material-options{grid-template-columns:1fr 1fr}.material-option{font-size:12px}.source-facts{gap:8px}.status-legend{gap:10px}.metrics{gap:8px}.metric{padding:12px}.metric strong{font-size:28px}.round-location .toolbar{flex-wrap:wrap}.input-panel .muted{font-size:12px}}
.stage-flow .fan-art,td .fan-art{width:24px;height:24px}.summary-category:has(b):hover{border-radius:6px}.worker-material-panel>details{margin-top:16px}.worker-material-panel>details>summary{font-weight:600;padding:10px;background:#f6f7fa;border-radius:8px}
@media(max-width:600px){.context-bar>span{display:block!important}.round-location{padding-top:8px}.round-location h2{font-size:22px}.mini-route{margin:10px 0}.top-controls .btn{min-height:38px}.header-search{max-width:none;width:100%}}
/* Plain worker questions and readable balances */
.context-bar{display:flex;gap:18px;align-items:center}.context-bar>span{font-size:14px}.context-bar i{font-style:normal;margin:0 7px;color:#8a8e99}.context-bar>.text:last-child{margin-left:auto}.badge{font-size:15px;font-weight:750;min-width:28px;padding:3px 8px}.station-output{gap:14px;align-items:center}.station-output>span{display:flex;flex-direction:column;gap:4px}.station-output>i{font-size:24px;font-style:normal;color:#767b87}.station-output b{font-size:32px}.station-output small{font-size:12px}.station-card .tag.warning{font-size:13px;border:1px solid #e4c268;padding:7px 9px}.station-card>small{font-size:12px;line-height:1.5}.reason-highlights{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 18px;padding:12px 16px;background:#fff;border-block:1px solid var(--line);font-size:13px}.row-equation{display:flex;gap:9px;align-items:center;min-width:300px;font-size:11px;margin-bottom:8px}.row-equation b{display:block;font-size:14px}.row-equation i{font-size:22px;font-style:normal;color:#7a7f8a}.guided-round{max-width:840px;margin-inline:auto}.guide-progress{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:22px}.guide-progress span{padding:8px 12px;font-size:13px;border-bottom:3px solid #dfe2e8;color:#646a75}.guide-progress span.active{border-color:#6463a7;color:#25272d;font-weight:700}.guide-progress i{font-style:normal;color:#989ca6}.guided-question{text-align:center}.guided-question .large-icon{margin:auto auto 12px}.guided-question h2{font-size:28px;max-width:540px;margin:10px auto 22px;line-height:1.25}.guided-question .toolbar{justify-content:center}.made-total{display:flex;align-items:baseline;justify-content:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.made-total>b{font-size:64px;line-height:1}.made-total span{font-size:17px}.made-total small{flex-basis:100%;font-size:14px}.available-strip{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0;padding:14px 0;border-block:1px solid var(--line)}.available-strip>span{font-size:13px;flex:1;min-width:145px}.available-strip b{display:block;font-size:16px;margin-top:6px}.worker-secondary{display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between;margin:18px 0}.worker-secondary .text{font-size:13px}.material-picks{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0}.material-picks>span{padding:8px;background:#f4f5f9;border-radius:8px;font-size:13px}.guided-count-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.guided-count-meta>span{font-size:12px;white-space:nowrap}.big-count{display:flex;flex-direction:column;align-items:center;font-size:16px}.big-count input{font-size:46px!important;text-align:center;max-width:260px!important;min-height:85px!important;padding:10px!important}.source-facts{font-size:15px;gap:18px}.input-source strong{font-size:18px}.input-source details{margin-top:10px}.input-source summary{font-size:13px}.stage-flow article{display:flex;flex-direction:column}.stage-flow article>.link{margin-top:auto;align-self:flex-start;padding-top:14px}.stage-flow article p .link{font-size:13px;text-align:left}.balance-equation{display:flex;gap:14px;align-items:center;background:#f6f7fa;padding:16px;border-radius:10px;margin:12px 0;font-size:13px}.balance-equation>span{flex:1}.balance-equation b{display:block;font-size:24px}.balance-equation>i{font-size:24px;font-style:normal}.balance-result{display:grid;gap:8px;padding:14px;border-left:4px solid currentColor;margin:12px 0;background:#fafafa}.large-allocation{display:grid;gap:14px;margin:22px 0}.large-allocation>div{display:grid;grid-template-columns:1fr auto;gap:5px}.large-allocation i{grid-column:span 2;height:10px;background:linear-gradient(to right,#7776bc var(--share),#edf0f5 var(--share));border-radius:8px}.guided-round>details{background:#f7f8fb;padding:12px;border-radius:8px}.guided-round>small{font-size:11px}
@media(max-width:600px){.context-bar{display:flex;gap:8px;flex-wrap:wrap;padding:10px 12px}.context-bar>span{flex-basis:100%;font-size:12px}.context-bar>.text:last-child{margin-left:auto}.guided-round{padding:16px}.guided-question h2{font-size:24px;margin-bottom:16px}.made-total>b{font-size:54px}.guide-progress{gap:4px;margin-bottom:16px}.guide-progress span{font-size:12px;padding:6px 8px}.worker-secondary{gap:12px}.available-strip{margin:14px 0}.available-strip>span{min-width:130px}.balance-equation{gap:7px;padding:10px;font-size:11px}.balance-equation b{font-size:18px}.big-count input{font-size:38px!important;min-height:70px!important}.guided-count-meta{align-items:flex-start}.guided-count-meta b{font-size:14px}.reason-highlights{padding:12px;gap:8px}.station-card{min-height:210px}}
.guided-question .large-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:16px}.count-review-cards{display:grid;gap:12px}.count-review-cards article{padding:14px 0;border-bottom:1px solid var(--line)}.review-quantities{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0}.review-quantities span{font-size:13px}.review-quantities b{display:block;font-size:18px}.count-review-cards small{margin:8px 0}
.material-summary-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.stage-flow article>.link{min-height:44px}.metric small{line-height:1.5}.guided-round .worker-secondary{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:600px){.material-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Count comparisons and compact action groups, 17 November review. */
.count-comparison{display:grid;gap:3px;min-width:160px}.count-comparison strong{font-size:24px;color:var(--ink,#24272b)}.count-comparison>span{font-size:12px}.quiet-category{opacity:.65}.inline-reasons{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e1e2e8;padding-top:12px}.shift-group{padding:12px 0;border-top:1px solid #e1e2e8}.shift-group h3{margin:0 0 8px}.material-summary-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.station-card .tag{align-self:flex-start}.table-scroll td small{display:block}.settings-row{flex-wrap:wrap}@media(max-width:600px){.material-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-category{min-width:0}.count-comparison strong{font-size:21px}}

/* Hierarchy review: shared navigation, grouped material destinations, side details. */
.material-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:16px 0}.material-group{min-width:0;border-left:1px solid var(--line);padding-left:20px}.material-group:first-child{border-left:0;padding-left:0}.material-group h3{font-size:21px;line-height:1.3;display:flex;gap:10px;align-items:center;min-height:38px}.material-group h3 .fan-art{width:24px;height:24px}.material-category{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:11px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;color:var(--ink);font-size:13px}.material-category b{text-align:right;font-size:14px}.material-category:hover{background:var(--mint)}.material-category.quiet-category{opacity:1;color:#737985}.material-category.quiet-category b{font-weight:400;font-size:12px}.material-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.material-toolbar .tabs{margin:0}.inline-filter{display:flex;gap:8px;align-items:center;font-size:13px}.inline-filter select{padding:10px;border:1px solid var(--line);background:white;border-radius:8px}.compact-industry{padding:8px;width:44px;height:44px}.compact-industry .fan-art{width:26px;height:26px}.shift-summary-button{white-space:nowrap;font-weight:650}.settings-menu{display:grid;gap:12px}.settings-menu h3{border-top:1px solid var(--line);padding-top:16px;margin-top:8px}.settings-menu label select{display:block;width:100%;padding:10px}.settings-menu .toolbar{margin:0}.shift-output{display:flex;align-items:center;gap:28px;padding:18px;background:var(--mint);border-radius:12px;margin:16px 0 24px}.shift-output>div{display:grid;gap:5px}.shift-output strong{font-size:32px}.shift-output span{font-size:13px}.station-material-status{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.selected-product{background:var(--mint)}dialog.drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(600px,100vw);max-width:100vw;border-radius:16px 0 0 16px;padding:24px;overflow:auto}dialog.drawer header{position:sticky;top:-24px;background:white;z-index:1;padding-top:12px}dialog.device-dialog{width:440px;max-width:calc(100vw - 16px);height:92dvh;max-height:92dvh;padding:14px;display:none;flex-direction:column;gap:8px}dialog.device-dialog[open]{display:flex}dialog.device-dialog.tablet{width:850px}dialog.device-dialog header h2{font-size:17px}dialog.device-dialog p{font-size:12px;margin:0}dialog.device-dialog iframe{border:1px solid var(--line);border-radius:14px;width:100%;min-height:0;flex:1;background:var(--white)}.embedded-preview .compact-industry{display:none}.embedded-preview footer{font-size:10px}
@media(max-width:900px){.material-groups{grid-template-columns:1fr;gap:18px}.material-group{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.material-group:first-child{border-top:0;padding-top:0}.material-group h3{min-height:0}.material-category{padding:9px 0}.shift-output{gap:16px;flex-wrap:wrap}.top-controls{gap:6px;flex-wrap:wrap}.shift-summary-button{font-size:13px;padding:8px 10px}.material-toolbar .tabs{gap:4px}.material-toolbar .tabs .btn{padding:8px;font-size:12px}}@media(max-width:600px){dialog.drawer{border-radius:0;width:100%;padding:18px}.shift-output strong{font-size:25px}.shift-output .fan-art{width:45px;height:45px}.material-toolbar{align-items:stretch}.inline-filter{margin-left:auto}.material-group h3{font-size:21px}}

.embedded-preview .top{min-height:58px;padding:10px 14px;flex-wrap:nowrap}.embedded-preview .top h1{font-size:20px}.embedded-preview .header-search{width:40px!important;min-width:40px;flex:0 0 40px!important;order:0!important;padding:8px}.embedded-preview .header-search span{display:none}.embedded-preview .context-bar{padding:6px 14px;gap:8px}.embedded-preview .top-controls{flex-wrap:nowrap}.embedded-preview main{padding-top:14px}.embedded-preview .top .eyebrow{font-size:8px}

/* Materials stay distinct; scale by line, then station. */
.material-total{display:flex!important;gap:10px;justify-content:space-between;align-items:baseline;margin:3px 0}.material-total>span{font-size:11px;font-weight:400;color:var(--ink);text-align:left}.material-total strong{font-size:13px;white-space:nowrap}.material-category>b{min-width:0;flex:1}.material-category>span{flex:0 0 40%}.factory-scale{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.line-selector{display:flex;gap:10px;overflow:auto;padding:3px 0 16px;margin-bottom:12px}.line-selector button{display:grid;gap:7px;text-align:left;min-width:175px;padding:14px;background:var(--white);border:1px solid var(--line);border-radius:10px}.line-selector button.active{background:var(--mint);border-color:var(--accent);box-shadow:inset 0 -3px var(--accent)}.line-selector span{font-size:11px}.route-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.next-actions-title{margin-top:28px}.app-menu{width:min(420px,100vw)!important}.selected-product{box-shadow:inset 3px 0 var(--accent)}td .tag.neutral{color:var(--ink);font-weight:650}.factory-scale small{max-width:550px}@media(max-width:650px){.factory-scale{align-items:flex-start;flex-direction:column}.material-category{gap:10px}.material-total{flex-direction:column;gap:0}.material-total>span{font-size:12px}}

/* Material clarity: definitions accompany quantities, overview keeps all lines visible. */
.material-category>span:first-child{display:grid;gap:5px;max-width:58%}.material-category>span:first-child strong{font-size:13px}.material-category>span:first-child small{font-size:12px;line-height:1.45;font-weight:400;color:var(--muted)}
.source-equation{padding:8px 0}.source-equation small{display:block;line-height:1.5}.input-source .source-facts{align-items:start}.input-source .source-facts small{display:block;line-height:1.5}.factory-overview{margin:20px 0}.overview-line{display:grid;grid-template-columns:92px repeat(4,minmax(0,1fr));gap:8px;align-items:stretch;margin:10px 0}.overview-line>b{align-self:center}.overview-station{display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:inherit;cursor:pointer}.overview-station>.icon{width:20px;height:20px}.overview-station span,.overview-station small{font-size:12px}.overview-station:hover{border-color:currentColor}.overview-station:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:700px){.overview-line{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-line>b{grid-column:1/-1}.material-category>span:first-child{max-width:55%}}

.store-balance{display:grid;grid-template-columns:24px 1fr;gap:6px 10px;max-width:310px;padding:12px;background:var(--surface-soft,#f5f6fa);border-radius:12px}.store-balance small{grid-column:2;line-height:1.5}

.overview-station>svg{width:24px;height:24px;max-width:24px;flex:none}.overview-station{gap:4px;padding:10px}.overview-station>.tag{align-self:flex-start}

/* Dashboard leads with stations; material checks use one compact table. */
.material-summary .section-title{margin-bottom:12px}.material-summary td{padding-top:10px;padding-bottom:10px}.material-summary .tag{white-space:normal}.order-actions{display:grid;justify-items:start;gap:6px}.recipe-note{padding-left:10px}.dashboard-line .factory-scale{margin-bottom:8px}.dashboard-line .line-selector{margin:8px 0}.dashboard-line .floor-heading{margin-top:10px}

.dashboard-lines{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.dashboard-lines .tabs{margin:0;flex:1}.dashboard-lines>.link{white-space:nowrap}.dashboard-line .product-art>svg{width:36px;height:36px}.dashboard-line .floor-heading{margin-bottom:10px}.dashboard-line .station-card{min-height:250px}@media(max-width:700px){.dashboard-lines .tabs{flex-basis:100%}.dashboard-line .station-card{min-height:230px}}

.material-terms{margin-top:12px}.material-terms dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.material-terms dt{font-weight:600}.material-terms dd{margin:4px 0;font-size:13px;color:#626975}

.dashboard-lines .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:5px}.dashboard-lines .tabs button{flex:0 0 auto;white-space:nowrap}@media(max-width:700px){.dashboard-lines .tabs{scroll-snap-type:x proximity}.dashboard-lines .tabs button{scroll-snap-align:start}.dashboard-lines{gap:8px}}

.attention-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.attention-top .section-title h2{margin:0}.other-attention{display:flex;align-items:center;gap:12px;margin:12px 0;flex-wrap:wrap}.order-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.order-metrics span{display:grid;gap:4px}.order-metrics b{font-size:30px}.shared-line-details{margin-top:18px}.shared-line-details>summary{padding:12px;background:#f6f7fa;border-radius:10px}.handover-record{border-left:3px solid var(--accent);padding:10px 16px;margin:12px 0}.pending-receipts{display:grid;gap:8px;margin:12px 0}.attention-top .btn{min-height:44px}.material-summary .btn.text{min-height:36px}#modal details .panel{border:0;padding:12px 0;box-shadow:none}

.recorded-patterns{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:13px}

.task-finding{margin-top:5px}.task-finding>b{font-size:12px;font-weight:400;color:#626975}

.compact-attention{padding:16px 20px}.compact-attention h2{font-size:20px}.reason-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0}.reason-filter{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:9px;text-align:left;color:var(--ink);font-size:12px}.reason-filter span{flex:1}.reason-filter b{font-size:18px}.reason-filter.active{background:var(--ink);border-color:var(--ink);color:white;box-shadow:inset 0 -3px var(--accent)}.reason-filter:hover{border-color:var(--accent)}.filter-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;font-size:13px}.filter-result span{color:#626975}.materials-results .tabs{margin:0}.materials-results .section-title{margin-bottom:6px}.explanation-entry{padding:10px 0;border-bottom:1px solid var(--line)}@media(max-width:1000px){.reason-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.reason-filter-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:7px}.reason-filter{min-width:156px;scroll-snap-align:start}.compact-attention{padding:14px}.compact-attention .section-title{gap:6px}}

.materials-results .search{min-width:0;width:min(320px,100%)}.materials-results .search input{min-width:0;width:100%}

/* Page sections open over the page; no second permanent rail. */
.section-menu{position:fixed;left:70px;width:260px;max-width:calc(100vw - 82px);max-height:calc(100dvh - 24px);overflow:auto;z-index:60;background:white;border:1px solid #dfe2e8;border-radius:12px;padding:8px;box-shadow:0 12px 40px #25272d25}.section-menu[hidden]{display:none}.section-menu>strong{display:block;padding:10px;font-size:13px}.section-jump{width:100%;display:flex;gap:10px;align-items:center;text-align:left;min-height:44px;border:0;border-radius:8px;padding:10px;background:transparent;color:#25272d;cursor:pointer;font:inherit;font-size:13px}.section-jump.active{background:#eeefff;border-left:3px solid #7776bc}.section-jump:hover,.section-jump:focus-visible{background:#f0f1f7;outline:2px solid #7776bc}.section-jump .icon{width:18px;height:18px;flex-shrink:0}.section-target{scroll-margin-top:100px}.section-target:focus{outline:2px solid #7776bc;outline-offset:4px}.section-menu-trigger{font-size:12px;padding:5px 9px;min-height:36px;margin-left:auto}
@media(max-width:650px){.section-menu{left:58px}body[data-role=worker] .section-menu{left:12px;top:auto!important;bottom:76px;max-width:calc(100vw - 24px);width:280px}.section-menu-trigger{min-height:44px}.section-target{scroll-margin-top:20px}}

.round-banner{padding:16px 20px;margin-bottom:16px;background:#fff;border:1px solid #dfe2e8;border-left:4px solid #7776bc;border-radius:12px}.round-banner h2{font-size:18px}.round-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}.round-facts>div{border-right:1px solid #e6e8ed;padding-right:10px}.round-facts>div:last-child{border:0}.round-facts span{display:block;font-size:12px;color:#626975}.round-facts b{display:block;font-size:19px;margin:5px 0}.round-facts small{font-size:11px}.demo-clock{font-size:12px;margin-left:auto}.round-banner .toolbar{flex-wrap:wrap}@media(max-width:650px){.round-banner{padding:12px}.round-facts{grid-template-columns:1fr;gap:10px}.round-facts>div{border:0;border-bottom:1px solid #e6e8ed;padding-bottom:8px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.round-facts b{font-size:16px;margin:0}.round-facts small{grid-column:1/-1}.round-banner .btn{min-height:44px}.round-banner .section-title{flex-wrap:wrap}.demo-clock{margin:0}}

.round-schedule-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.station-round-hint{margin:8px 0}.station-round-hint small{font-size:11px}

/* Compact global actions; detailed preferences live in the Menu. */
.top{justify-content:space-between}.top-controls{margin-left:auto;justify-content:flex-end}.compact-search,.header-approval{position:relative;width:44px;min-width:44px;min-height:44px;padding:10px}.header-approval .badge{position:absolute;right:-3px;top:-4px}.search-dialog{width:min(640px,calc(100vw - 28px));margin:auto;max-height:80dvh}.search-dialog .search{padding:14px}.search-dialog input{font-size:16px}.transfer-status-filters{margin:0 0 18px}.transfer-status-filters .attention-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}@media(max-width:650px){.top{flex-direction:row;align-items:center;gap:10px}.top-controls{width:auto;gap:5px}.top-controls .icon-button{min-width:40px;min-height:44px}.shift-summary-button span{display:none}.shift-summary-button{width:40px;padding:8px!important}.top h1{font-size:21px}.top .eyebrow{font-size:8px}.embedded-preview .top-controls{flex-wrap:wrap}.embedded-preview .top-controls .small{font-size:11px}}

.stock-intro p{margin:6px 0}.stock-stats{display:flex;gap:32px;flex-wrap:wrap;margin:16px 0}.stock-stats>div{flex:1;min-width:150px}.stock-stats b{display:block;font-size:27px}.stock-stats span{display:block;font-size:12px;color:#626975}.stock-stage-bar{display:flex;width:180px;height:7px;border-radius:8px;overflow:hidden;margin:6px 0 10px}.stock-stage-bar span{background:var(--stage);min-width:3px}.stock-filters{margin:12px 0;flex-wrap:wrap}.stock-filters label{font-size:12px}.stock-filters select{margin-left:8px}.stock-intro small{max-width:1000px}.search-dialog #search-results{margin-top:12px}@media(max-width:650px){.stock-stats{gap:14px}.stock-stats>div{min-width:120px}.stock-stats b{font-size:23px}.stock-filters label{width:100%}}

.search-result .icon,.search-result .fan-art{width:22px;height:22px;vertical-align:middle;margin-right:8px}.search-result{min-height:48px}

.stock-dialog{width:min(1000px,calc(100vw - 24px))}.stock-upload-steps{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:10px 0 18px;color:#626975}.stock-upload-steps b{color:#25272d;border-bottom:3px solid #7776bc;padding-bottom:6px}.stock-add-options,.stock-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stock-add-options .upload{display:flex;flex-direction:column;gap:8px;margin:0}.stock-entry-grid input{display:block;width:100%;margin-top:6px}.stock-dialog td input{min-width:95px;margin:0}.stock-dialog td select{min-width:100px}.stock-dialog td:first-child select{min-width:200px}.stock-dialog .toolbar{margin-top:16px;flex-wrap:wrap}.invoice-preview{width:100%;max-height:360px;object-fit:contain;min-height:200px;border:1px solid #dfe2e8}.stock-dialog .table-scroll{margin-bottom:14px;overflow-x:auto;max-width:100%;min-width:0}.stock-dialog form,.stock-entry-grid>label{min-width:0}.stock-dialog{max-width:calc(100vw - 24px);overflow-x:hidden}@media(max-width:650px){.stock-add-options,.stock-entry-grid{grid-template-columns:1fr}.stock-dialog{padding:16px}.stock-upload-steps{gap:8px}.stock-dialog .toolbar .btn{min-height:44px}}

/* Shift-aware production: shared compact context and bounded review surfaces. */
.shift-context{background:#fff;align-items:center;gap:12px}.shift-context>div{flex:1;min-width:220px}.shift-context b{font-size:15px}.shift-context small{display:block}.shift-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.loss-summary{margin:5px 0}.loss-summary small{font-size:12px}.trend-chart{display:grid;gap:8px;margin:20px 0}.trend-chart button{display:grid;grid-template-columns:minmax(170px,1fr) 2fr minmax(140px,1fr);gap:12px;align-items:center;border:0;background:#f5f6f9;border-radius:8px;padding:12px;text-align:left;min-height:44px}.trend-chart i{height:14px;border-radius:5px;background:linear-gradient(to right,#6463a7 var(--fill),#e2e4eb var(--fill))}.breakdown[data-loss-tone="good"] .gap{background:#73a68a}.breakdown[data-loss-tone="warning"] .gap{background:#d4af5f}.breakdown[data-loss-tone="neutral"] .gap{background:#a0a5b0}dialog{max-width:calc(100vw - 24px)}dialog .table-scroll{overflow-x:auto;max-width:100%}dialog form{min-width:0}#shift-choose{display:flex;gap:14px;align-items:end;flex-wrap:wrap}#shift-choose label{flex:1;min-width:150px}#shift-choose input,#shift-choose select{width:100%}#guide-unit{max-width:100%;width:100%;margin:4px 0 10px}.shift-choices .btn{white-space:normal}#shift-photo-preview img{max-height:220px}
@media(max-width:650px){.shift-context{padding:10px 14px}.shift-context>div{min-width:100%;flex-basis:100%}.trend-chart button{grid-template-columns:1fr;gap:5px}.shift-context .btn{min-height:44px}.stock-entry-grid{grid-template-columns:1fr}.loss-summary .tag{white-space:normal}}
@media(prefers-reduced-motion:reduce){.trend-chart *{transition:none;animation:none}}
/* Focused refinement: task-first worker, compact evidence and purposeful one-shot motion. */
[hidden]{display:none!important}.row-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.material-compact td{vertical-align:top;padding:14px 12px}.material-compact th:nth-child(3){min-width:150px}.material-compact td>strong{font-size:20px}.material-compact .loss-summary small{max-width:200px}.compact-round{display:flex;align-items:center;justify-content:center;gap:20px;padding:10px 14px;margin:10px auto 16px;background:#f1f2f8;border-radius:10px;max-width:840px}.compact-round span{font-size:13px}.compact-round b{display:block;font-size:15px}.round-details{margin:16px auto;max-width:840px}.round-details>summary{padding:14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.setup-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:18px;padding-bottom:5px}.setup-tabs button{white-space:nowrap;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 16px;font:inherit;font-weight:600}.setup-tabs button[aria-selected=true]{background:#292c36;color:#fff;border-color:#292c36;box-shadow:inset 0 -3px #9392d0}.trend-filters{align-items:flex-end;flex-wrap:wrap}.trend-filters label{min-width:130px}.table-scroll:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #7471b6;outline-offset:3px}.btn{transition:background-color .16s,box-shadow .16s,transform .16s}.btn:hover{box-shadow:0 3px 10px #1e233111}.btn:active{transform:translateY(1px)}.arrival-motion{overflow:hidden;justify-content:center;gap:16px}.arrival-motion .walker{animation:purposeful-walk .95s ease-in-out both}.toast.show{animation:saved-arrival .22s ease-out}.progress i{transition:width .45s ease-out}.mini-route button.selected{box-shadow:inset 0 -3px #7976bd}
@keyframes purposeful-walk{from{transform:translateX(-95px);opacity:.35}to{transform:translateX(0);opacity:1}}@keyframes saved-arrival{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:650px){body[data-page=round] #main{padding:10px}body[data-page=round] .round-location{padding:8px 0;gap:8px;display:flex;flex-wrap:wrap}body[data-page=round] .round-location .large-icon{display:none}body[data-page=round] .round-location h2{font-size:21px;margin:4px 0}body[data-page=round] .round-location p{margin:4px 0;font-size:13px}body[data-page=round] .round-location .toolbar{width:auto;margin-left:auto}body[data-page=round] .round-location .toolbar .btn{min-height:44px}body[data-page=round] .mini-route{margin:6px 0;gap:4px}body[data-page=round] .mini-route button{min-width:44px;min-height:44px}body[data-page=round] .mini-route button span{display:none}body[data-page=round] .shift-context{padding:8px 12px;gap:6px}body[data-page=round] .shift-context small{font-size:11px}body[data-page=round] .shift-context>.text{display:none}.compact-round{gap:12px;padding:8px;margin:6px 0 10px;justify-content:space-between}.compact-round span{font-size:11px}.compact-round b{font-size:13px}.compact-round .btn{min-height:44px}.guided-round{padding:14px}.guided-question .large-icon{display:none}.guided-question h2{font-size:22px;margin:8px auto 12px}.guide-progress{margin-bottom:10px}.made-total>b{font-size:44px}.made-total{margin-bottom:12px}.setup-tabs{scroll-snap-type:x mandatory}.setup-tabs button{scroll-snap-align:start}.material-compact{min-width:780px}.trend-filters label{flex:1;min-width:130px}.round-details{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.reason-more{grid-column:1/-1}.reason-more>summary{padding:10px 0;min-height:44px;cursor:pointer;font-weight:600}.reason-more>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:8px 0}.transfer-symbol{display:inline-flex;margin-right:6px;vertical-align:middle}#toast.show{animation:saved-arrival .22s ease-out}
@media(max-width:650px){body[data-page=round] .mini-route{display:none}body[data-page=round] .round-location>div>small{display:none}body[data-page=round] .round-location .toolbar{margin-top:0}body[data-page=round] .round-location{padding:4px 0;margin-bottom:6px}body[data-page=round] .shift-context small{display:none}body[data-page=round] .shift-context{align-items:center;justify-content:space-between}body[data-page=round] .shift-context>div{flex:1;font-size:12px}body[data-page=round] .section-menu-trigger{display:none}body[data-page=round] .guide-progress{margin-bottom:4px}body[data-page=round] .guided-question> .eyebrow{display:none}body[data-page=round] .guided-question h2{font-size:20px;margin-top:6px}body[data-page=round] .guided-round{padding:12px}body[data-page=round] .station-tabs{margin:6px 0}.round-location .toolbar{gap:6px}}

.compact-attention .reason-more{margin:0;padding:0;border:0;background:transparent}.compact-attention .reason-more>summary{padding:8px 0}.compact-attention>small{margin-top:4px}

.material-compact td:nth-child(4)>b,.material-compact td:nth-child(4)>.text{display:block;margin-bottom:5px}.material-compact td:nth-child(4)>span{display:block}
.worker-policy{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0;border-block:1px solid var(--line);margin-top:14px}.worker-policy>span{font-size:13px;display:flex;align-items:center;gap:8px}.policy-choice{display:flex;align-items:center;gap:10px;min-height:44px}.policy-choice input{width:20px!important;min-height:20px!important}.policy-choice .icon{width:20px;height:20px}.worker-policy .btn{min-height:44px}

/* Distinct task surfaces: neutral canvas, white modules, labelled structural bands. */
body{--module-canvas:#f3f4f6;--module-soft:#f1f3f6;--module-edge:#c6ccd5;background:var(--module-canvas)}
/* One shared module treatment across every production page. Topic identity,
   never position, selects the structural accent. Status colours remain separate. */
main>.panel{--module-band:var(--ink);background:var(--white);border:1px solid var(--module-edge);border-top:4px solid var(--module-band);box-shadow:0 2px 6px #25272d0c;margin-bottom:18px}
main>.dashboard-line,main>.materials-results,main>.guided-round,main>.worker-material-panel,
body[data-page=map] main>.panel,body[data-page=plan] main>.panel,
body[data-page=dispatch] main>.panel,body[data-page=material] main>.panel,
body[data-page=review] main>.panel,body[data-page=history] main>.panel,
body[data-page=trends] main>.panel,body[data-page=setup] main>.panel,
body[data-page=stock] main>.panel:not(.stock-intro){--module-band:var(--accent)}
main>.panel>.section-title,main>.panel>h2{color:var(--ink)}
main>.panel>.section-title{padding-bottom:12px;border-bottom:1px solid var(--line)}
main>.panel>h2{padding-bottom:12px;border-bottom:1px solid var(--line)}
/* The worker entry sits inside its existing module; no extra nesting or rail. */
.worker-material-panel>.material-entry{background:var(--module-soft)}
@media(max-width:600px){main>.panel{margin-bottom:12px}main>.panel>.section-title,main>.panel>h2{padding-bottom:10px}}
@media print{main>.panel{box-shadow:none;border-color:var(--ink)}}
.shift-hub{border-top:4px solid var(--ink)!important}.summary-output{border-top:4px solid var(--accent)!important}
.worker-entry-tabs{gap:8px}.worker-entry-tabs .btn{min-height:48px;display:inline-flex;gap:8px;align-items:center}.worker-entry-tabs .icon{width:20px;height:20px}
.material-entry{background:var(--module-soft);border-bottom:1px solid var(--line);padding:16px;margin:-1px -1px 18px;border-radius:12px 12px 0 0}.material-entry h3{display:flex;gap:8px;align-items:center}.material-entry-actions{display:flex;gap:8px;flex-wrap:wrap}.material-entry-actions .btn{display:inline-flex;gap:6px;align-items:center;min-height:44px}.material-update-list{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:12px}.material-update-list>span{flex:1 1 180px}.material-update-list small{font-size:13px}
.readiness-dialog{width:min(1080px,96vw);max-width:96vw}.readiness-heading{display:flex;gap:14px;align-items:center}.readiness-heading p{margin:0}.readiness-result{background:var(--module-soft);padding:14px;margin:16px 0;border-radius:10px}.readiness-result p{margin:8px 0 0}.readiness-dialog td input{width:76px;min-height:44px}.readiness-assumptions{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.readiness-assumptions p{font-size:14px}.order-actions{gap:6px}.order-own-progress>.primary{margin-bottom:16px}
@media(max-width:600px){.worker-entry-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.worker-entry-tabs .btn{white-space:normal;justify-content:center}.worker-entry-tabs .btn:last-child{grid-column:1/-1}.material-entry{padding:12px}.material-entry-actions{display:grid;grid-template-columns:1fr}.material-entry-actions .btn{justify-content:flex-start}.shift-hub .toolbar{display:grid;grid-template-columns:1fr 1fr}.shift-hub h2{font-size:20px}.readiness-dialog{padding:16px}}

.shift-hub{padding:16px 20px!important}.shift-hub .section-title{margin-bottom:10px}.shift-hub h2{font-size:20px;margin-bottom:4px}.shift-hub .toolbar{margin-bottom:0}.readiness-dialog table td{padding-top:10px;padding-bottom:10px}
.order-readiness-callout,.po-module{background:var(--white);border:1px solid var(--module-edge);box-shadow:0 2px 6px #25272d0c;border-top:4px solid var(--accent);border-radius:12px;padding:16px;margin:16px 0}.po-dialog{background:var(--module-canvas)}.po-module h3,.order-readiness-callout h3{font-size:18px;margin-bottom:10px}.po-products{border-top-color:var(--ink)}.po-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.po-fields input{width:100%;min-height:44px}.po-steps{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:16px}.po-steps b{color:var(--ink)}.po-steps span{color:#626975}.po-upload{display:block;padding:20px;background:var(--white);border:2px dashed var(--accent);border-radius:12px}.po-upload input{display:block;margin-top:12px}.po-document iframe{width:100%;height:320px;border:1px solid var(--line)}.po-document img{max-width:100%;max-height:360px;object-fit:contain}.po-dialog td input{min-width:80px;width:100%}.po-dialog td select{min-width:110px}.po-dialog table{width:100%}.po-dialog td{padding:10px 6px}.po-dialog .table-scroll{max-width:100%}.drawer>.panel{background:var(--white);border:1px solid var(--module-edge);border-top:4px solid var(--accent);margin-top:16px}
@media(max-width:600px){.po-fields{grid-template-columns:1fr}.po-module,.order-readiness-callout{padding:12px}.po-dialog>header h2{font-size:22px}}

.po-fields label{margin:0;gap:4px}.po-fields input{margin:0;padding:9px 10px}.po-fields{gap:12px 16px}.po-dialog .po-module{margin:12px 0}.po-dialog .notice{margin:12px 0;padding:10px}.po-dialog .po-module p:last-child{margin-bottom:0}

/* Task-sized right drawers: brief explanations fit content; work stays spacious. */
#modal{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0 0 0 auto!important;width:min(680px,94vw)!important;min-width:0!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:1px solid var(--line);border-radius:18px 0 0 18px;overflow:auto;padding:20px;background:var(--module-canvas);transform:none;box-shadow:-12px 0 50px #20253224}
#modal[data-size=medium],#modal[data-size=work]{inset:12px 0 auto auto;height:auto!important;max-height:calc(100dvh - 24px)!important}
#modal.device-dialog{inset:0 0 0 auto;height:100dvh!important;max-height:100dvh!important}
#modal[data-size=work]{width:min(820px,94vw)!important}
#modal[data-size=wide]{width:min(1120px,94vw)!important}
#modal[data-size=compact]{inset:16px 0 auto auto;width:min(440px,94vw)!important;height:auto!important;max-height:calc(100dvh - 32px)!important;border-radius:18px 0 0 18px;background:white}
#modal[data-size=compact]>header{background:white;padding-top:4px}
#modal[data-size=compact]>p{font-size:15px;line-height:1.6;margin:12px 0;color:#4c5460}
#modal #dialog-error:empty{display:none}
#modal[data-size=compact]>header h2{font-size:20px}
#modal::backdrop{background:#20233238;backdrop-filter:blur(2px)}
@media(prefers-reduced-motion:no-preference){#modal[open]{animation:drawer-arrive .16s ease-out}@keyframes drawer-arrive{from{opacity:0;translate:16px 0}to{opacity:1;translate:0 0}}}
#modal>header{position:sticky;top:-20px;z-index:5;background:var(--module-canvas);padding:14px 0;border-bottom:1px solid var(--line);gap:12px;align-items:center}
#modal>header h2{font-size:24px;line-height:1.25;margin:0;flex:1;min-width:0}
#modal>header .icon-button{flex:none;min-height:44px;min-width:44px}
#modal .table-scroll{max-width:100%;overflow-x:auto}
#modal.device-dialog iframe{display:block;width:100%;max-width:100%;height:calc(100dvh - 160px);margin:auto}
#modal.device-dialog.phone iframe{max-width:390px}
/* Shared drawer fields: labels above controls, consistent touch targets, no hidden clipping. */
#modal :is(form,.inspection-scope) label:has(>input:not([type=checkbox]):not([type=radio]),>select,>textarea){display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;font-size:14px;line-height:1.4}
#modal label>:is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;margin:0;min-height:44px}
#modal label>textarea{min-height:86px;resize:vertical}
#modal :is(.toolbar,.entry-submit){flex-wrap:wrap;gap:10px}
#modal form>.btn.primary{margin-top:12px}
#modal .entry-submit{padding:14px 0 4px;border-top:1px solid var(--line);margin-top:16px}
#modal>details{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
#modal>details summary{cursor:pointer;min-height:32px}
#modal .inspection-scope{align-items:start}
#modal .stock-entry-grid{padding:14px;background:white;border:1px solid var(--line);border-radius:12px;gap:12px 16px}
#modal .stock-entry-grid label{margin:0}
#modal #stock-draft th{font-size:13px;text-transform:none;letter-spacing:0}
#modal #stock-draft .table-scroll{background:white;border:1px solid var(--line);border-radius:10px;margin:12px 0}
#modal #inspection-settings{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0}
#modal #inspection-settings>label:first-child{margin-top:0}
#modal :is(.inspection-confirm,label:has(>input[type=checkbox])){line-height:1.5}
#modal .inspection-confirm{align-items:flex-start}
#modal .inspection-confirm input{flex:none}
.quantity-control{display:flex;align-items:center;gap:8px;margin:0!important}.quantity-control input{width:110px!important;min-height:44px}.capacity-number{font-size:22px;display:block}.readiness-outcome{border-top-color:var(--ink)}.readiness-outcome h3{font-size:22px}.readiness-dialog .po-module p{margin:8px 0}.readiness-dialog table th{white-space:normal}.readiness-dialog .toolbar{flex-wrap:wrap}.readiness-dialog .po-module{margin:12px 0}
@media(max-width:700px){#modal,#modal[data-size=wide],#modal[data-size=work]{width:100vw!important;max-width:100vw!important;border-radius:0}#modal[data-size=compact]{width:calc(100vw - 12px)!important;inset:8px 0 auto auto;max-height:calc(100dvh - 16px)!important;border-radius:14px 0 0 14px}}
@media(max-width:600px){#modal{padding:14px}#modal>header{top:-14px}#modal>header h2{font-size:21px}.quantity-control input{width:82px!important}.capacity-number{font-size:18px}.readiness-dialog th,.readiness-dialog td{padding:10px 8px}}

@media(max-width:600px){.capacity-table,.capacity-table tbody,.capacity-table tr{display:block;width:100%;min-width:0}.capacity-table thead{display:none}.capacity-table td{display:block;width:100%;box-sizing:border-box;border:0;padding:8px!important}.capacity-table td:nth-child(2)::before{content:"Quantity to check";display:block;font-size:12px;margin-bottom:5px}.capacity-table td:nth-child(3)::before{content:"Stock supports up to";display:block;font-size:12px;margin-bottom:5px}.capacity-table tr{border-bottom:1px solid var(--line)}.capacity-table .quantity-control{justify-content:flex-start}.capacity-table small{max-width:none}.capacity-table .capacity-number{font-size:24px}}

/* Continuous module enclosure; top accent identifies the topic, grey edges define its boundary. */
main>.shift-hub,main>.round-banner,main>.summary-output,#modal>.panel{border-right:1px solid var(--module-edge);border-bottom:1px solid var(--module-edge);border-left:1px solid var(--module-edge)}

/* Worker count: label, value and unit stay together; secondary explanations collapse. */
.material-entry-context{display:grid;gap:4px;margin:10px 0}.material-switch{display:flex;gap:7px;overflow-x:auto;padding:8px 0;scroll-snap-type:x proximity}.material-switch .btn{white-space:nowrap;flex:none;scroll-snap-align:start}.material-entry-drawer .material-quick-card{margin:10px 0;padding:14px}.material-quick-card .section-title{margin-bottom:10px}.material-quick-card h3{display:flex;align-items:center;gap:8px;margin:0}.material-quick-card h3 .icon{width:24px;height:24px}.material-input-fact{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;margin:6px 0 12px;font-size:13px}.material-input-fact b{font-size:18px}.material-input-fact small{flex-basis:100%;font-size:11px}.material-number{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr);gap:10px;align-items:center;margin:8px 0!important;padding:8px 0;border-bottom:1px solid var(--line)}.material-number>span{font-size:15px;font-weight:600}.material-number>div{display:flex;gap:5px;align-items:center;min-width:0}.material-number input{width:100%;min-width:0;min-height:48px;padding:8px;font-size:22px;margin:0}.material-number select{width:76px;min-width:65px;min-height:48px;margin:0;padding:6px}.material-more{margin:12px 0;border-top:1px solid var(--line);padding-top:10px}.material-more summary{font-weight:600;min-height:36px;cursor:pointer}.material-more p{font-size:13px;line-height:1.5}.material-more label input{min-height:44px}.material-save-bar{display:flex;gap:10px;align-items:center;position:sticky;bottom:-20px;background:var(--module-canvas);padding:12px 0}.round-source-details{margin:12px 0}.round-source-details summary{font-size:13px;cursor:pointer}.material-entry-drawer .po-module>h3{font-size:20px}
@media(max-width:600px){.material-entry-drawer .material-quick-card{padding:12px}.material-number{grid-template-columns:minmax(110px,1fr) minmax(130px,1fr);gap:8px}.material-number>span{font-size:14px}.material-number input{font-size:24px}.material-save-bar{bottom:-14px}.material-entry-context{font-size:13px}.material-entry-drawer .material-switch{margin:0}.material-switch .btn{font-size:12px}.material-quick-card h3{font-size:18px}}

/* One review for the station: compact table on desktop, labelled material cards on phones. */
.batch-material-table{width:100%;table-layout:fixed}.batch-material-table th:first-child{width:29%}.batch-material-table th:nth-child(2){width:27%}.batch-material-table td{vertical-align:top;padding:12px 10px}.batch-material-table td:first-child>b{display:flex;gap:6px;align-items:center}.batch-material-table .icon{width:20px;height:20px;flex:none}.batch-input{display:block;font-size:13px;margin:5px 0}.batch-left{margin:0!important}.batch-left>span{display:none}.batch-left>div,.batch-extra>div{display:flex;gap:5px;align-items:center}.batch-left input{width:100%;min-width:0;font-size:22px;min-height:48px;padding:8px;margin:0}.batch-left select{width:68px;min-width:60px;min-height:48px;padding:6px;margin:0}.batch-others summary{font-weight:600;cursor:pointer;min-height:44px}.batch-others summary small{font-weight:400;line-height:1.4}.batch-extra{display:grid;grid-template-columns:1fr 115px;gap:8px;align-items:center;margin:8px 0!important;font-size:13px}.batch-extra input{width:75px;min-height:44px;padding:5px;margin:0}.batch-others label>input,.batch-others label>select{width:100%;min-height:44px;margin:4px 0}.batch-material-module{padding:8px!important}.round-issue{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.round-issue>b{flex:1}.round-issue>span{font-size:13px}
@media(max-width:700px){.batch-material-table,.batch-material-table tbody{display:block}.batch-material-table thead{display:none}.batch-material-table tr{display:block;padding:12px;border-bottom:2px solid var(--module-edge)}.batch-material-table td{display:block;width:100%;padding:5px 0}.batch-material-table .batch-left{display:flex;align-items:center;gap:12px}.batch-left>span{display:block;flex:1;font-size:14px;font-weight:600}.batch-left>div{width:160px}.batch-left input{width:85px}.batch-others summary{padding:8px 0}.batch-material-module{padding:0!important}.batch-material-table td:first-child>small{font-size:11px}.batch-material-table .batch-input{display:inline-block;margin-right:8px}.batch-material-table tr:last-child{border-bottom:0}}
/* Floor plan uses compact machine symbols; details stay in the shared drawer. */
.factory-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.factory-view-tabs{margin:10px 0}.product-picker{position:relative;z-index:8}.product-picker summary{cursor:pointer;border:1px solid var(--module-edge);border-radius:8px;padding:12px;background:white;font-weight:600;list-style:none}.product-picker-menu{position:absolute;right:0;top:100%;width:340px;max-width:80vw;max-height:360px;overflow:auto;background:white;border:1px solid var(--module-edge);box-shadow:0 10px 30px #20242b22;border-radius:10px;padding:12px;display:grid;gap:8px}.product-picker-menu .btn{text-align:left;white-space:normal}.product-picker-menu [aria-pressed=true]{background:#eef0f9;border-color:var(--accent)}.selected-products{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.factory-floor-scroll{overflow:auto;border:1px solid var(--module-edge);border-radius:12px;background:#fafbfc;margin:12px 0}.factory-floor-canvas{position:relative;min-width:760px;background:linear-gradient(#e5e8ed80 1px,transparent 1px),linear-gradient(90deg,#e5e8ed80 1px,transparent 1px);background-size:20px 20px;isolation:isolate;border:5px solid #cbd0d7}.floor-north{position:absolute;top:8px;left:12px;font-size:12px;color:#626975}.floor-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.floor-machine{position:absolute;transform:translate(-50%,-50%);width:110px;min-height:68px;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:2px 5px;text-align:left;padding:8px;border:1px solid var(--line-color);border-left:4px solid var(--line-color);border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 2px 4px #25272d10;cursor:pointer}.floor-machine svg{width:26px!important;height:26px!important;color:var(--line-color);grid-row:span 2}.floor-machine>b{font-size:11px;line-height:1.3}.floor-machine>small{font-size:10px;color:var(--line-color)}.machine-attention{position:absolute;right:-4px;top:-4px;width:10px;height:10px;border-radius:50%;background:#c58619;border:2px solid white}.floor-machine:hover,.floor-machine:focus-visible,.floor-area:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.floor-area{position:absolute;transform:translate(-50%,-50%);background:#e9edf1aa;border:2px dashed #acb5c1;color:#525e70;font:600 12px inherit;border-radius:4px;z-index:-1}.is-editing .floor-area{z-index:0}.is-editing .floor-machine{z-index:2}.is-editing [data-floor-move]{cursor:grab;touch-action:none}.is-editing [data-floor-move]:active{cursor:grabbing}.floor-line-key{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;align-items:center;margin:8px 0}.floor-line-key span{display:flex;gap:5px;align-items:center}.floor-line-key i{width:12px;height:4px;background:var(--line-color);display:inline-block}.floor-edit-help{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;background:#f3f1fb;padding:8px 12px;border-radius:8px}.overview-line{margin-bottom:8px}.overview-station{padding:8px!important}.factory-view-tabs .active{box-shadow:inset 0 -4px var(--accent,#6966ba)}
.flow-selector{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.flow-selector .search{max-width:320px}.flow-product-options{display:flex;gap:8px;overflow-x:auto;flex-basis:100%;padding-bottom:8px}.flow-product-options .btn{white-space:nowrap}.product-flow-lane{margin:16px 0;padding:14px;border:1px solid var(--module-edge);border-left:4px solid var(--route-color);border-radius:10px;background:#fff}.product-flow-lane h3{font-size:17px}.route-color-key{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--route-color);margin-right:7px}.route-stations{display:flex;gap:38px;overflow-x:auto;padding:10px 4px 14px}.route-node{position:relative;flex:1;min-width:155px;max-width:230px;border:1px solid var(--module-edge);border-top:3px solid var(--route-color);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:5px;background:#f8f9fb}.route-node:not(:last-child)::after{content:'➜';position:absolute;left:100%;top:42%;width:38px;border-top:2px dotted var(--route-color);color:var(--route-color);text-align:right;font-size:18px;line-height:0}.route-node>.icon{width:26px;height:26px;color:var(--route-color)}.route-node>b{font-size:14px}.route-node .tag{font-size:10px;white-space:normal}.route-sequence{position:absolute;right:9px;top:9px;font-size:12px;color:var(--route-color)}.route-node .btn{min-height:32px;margin-top:auto;align-self:stretch;padding:5px 8px}.flow-selector>span{font-size:12px;color:#626975}.factory-view-tabs .btn{min-height:44px}
@media(max-width:700px){.factory-view-tabs{display:flex;overflow:auto;flex-wrap:nowrap}.factory-view-tabs .btn{white-space:nowrap}.product-flow-lane{padding:10px}.route-stations{scroll-snap-type:x proximity}.route-node{scroll-snap-align:start;min-width:180px}.floor-north{font-size:13px}}


.route-node>svg{width:24px!important;height:24px!important;flex:none}.route-node{gap:4px;padding:10px;min-width:165px}.route-node>b{font-size:13px;line-height:1.3;min-height:34px}.route-node small{font-size:11px;line-height:1.3}.route-updated{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.route-shared{position:absolute;right:26px;top:9px;font-size:11px;color:var(--route-color)}.route-stations{gap:28px;padding:6px 2px 10px;align-items:stretch}.route-node:not(:last-child)::after{width:28px}.product-flow-lane{padding:10px;margin:10px 0}.product-flow-lane .section-title{margin-bottom:6px}.product-flow-lane h3{font-size:15px}.route-facts{white-space:nowrap}
@media(max-width:700px){.product-picker-menu{left:0;right:auto;width:min(340px,calc(100vw - 120px));max-width:none}.product-picker-menu .search{width:100%;min-width:0}.factory-view-toolbar{gap:0}.floor-machine{min-height:68px}}
.guide-journey{padding:10px 12px;background:#f4f5f9;border-radius:8px;margin-bottom:12px;font-size:13px}.guide-steps{padding-left:28px;display:grid;gap:16px;line-height:1.6}.guide-steps li::marker{font-weight:700;color:var(--accent)}[data-guide-search][hidden]{display:none}body[data-page=guide] td .icon{width:20px;height:20px;vertical-align:middle}body[data-page=guide] td{padding:10px}
@media(max-width:700px){body[data-page=guide] .table-scroll{overflow:visible}body[data-page=guide] table,body[data-page=guide] tbody{display:block;min-width:0}body[data-page=guide] thead{display:none}body[data-page=guide] tr{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:10px 0;border-bottom:1px solid var(--module-edge)}body[data-page=guide] tr[hidden]{display:none}body[data-page=guide] td{padding:2px;border:0}body[data-page=guide] td:first-child{grid-column:1;font-size:11px;color:var(--muted)}body[data-page=guide] td:nth-child(2){grid-column:1;grid-row:2;font-size:13px}body[data-page=guide] td:nth-child(3){grid-column:1;grid-row:3;font-size:11px}body[data-page=guide] td:last-child{grid-column:2;grid-row:1/4;align-self:center}body[data-page=guide] .search{width:100%;max-width:none}}

/* Page emphasis and compact shared modules; status colours keep their meaning. */
body{--page-mark:#6968a3;--page-wash:#f5f4fa}body[data-page=stock],body[data-page=materials]{--page-mark:#657c83;--page-wash:#f2f6f6}body[data-page=plan],body[data-page=dispatch]{--page-mark:#6c7691;--page-wash:#f3f5f9}body[data-page=daily],body[data-page=review]{--page-mark:#92774d;--page-wash:#faf7f0}
main>.panel{padding:16px;margin-bottom:14px}main>.panel>.section-title:first-child{background:var(--page-wash);border-left:3px solid var(--page-mark);padding:9px 12px;margin:-2px -2px 12px;border-radius:7px}.section-title h2{margin:0}.section-title p{margin:5px 0}.stock-view-header{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.stock-stats{margin:10px 0;gap:20px}.overview-line{margin-bottom:6px}.overview-station{gap:2px!important}.quick-trigger{background:var(--page-wash);border-color:var(--page-mark);font-weight:600}.quick-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.quick-action{display:flex;align-items:center;gap:12px;text-align:left;padding:15px;background:white;border:1px solid var(--module-edge);border-left:3px solid var(--page-mark);border-radius:8px;cursor:pointer;color:var(--ink)}.quick-action svg{width:24px;height:24px;flex:none;color:var(--page-mark)}.quick-action b{flex:1}.quick-action:hover{background:var(--page-wash)}.cost-summary{display:flex;gap:24px;flex-wrap:wrap;margin:12px 0}.cost-summary>div{flex:1;min-width:220px;padding:12px;background:#faf7f0;border:1px solid #e7d9bf;border-radius:8px}.cost-summary b{display:block;font-size:28px}.metrics .metric[data-act=cost-impact]{background:#fffaf0;border-color:#dec99b}.metrics .metric[data-act=cost-impact] small{max-width:240px}
@media(max-width:700px){main>.panel{padding:12px}.quick-action-list{grid-template-columns:1fr}.quick-action{padding:12px;min-height:48px}.top-controls .quick-trigger{font-size:12px;padding:8px}.cost-summary{gap:8px}.cost-summary>div{min-width:0;flex-basis:100%}}

/* Factory identity accents: independent of operational status. */
.identity-dot,.route-color-key{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--line-color,var(--route-color));margin-right:7px;flex:none}.line-identity{display:inline-flex;align-items:center}.overview-line{padding:10px;border:1px solid color-mix(in srgb,var(--line-color) 40%,white);border-left:5px solid var(--line-color);border-radius:12px;background:color-mix(in srgb,var(--line-color) 12%,white)}.overview-line>b{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px;border:0;border-radius:7px;background:var(--line-color);color:white;font-size:16px}.overview-line>b small{color:white;opacity:.95;font-weight:400}.overview-line>b .identity-dot{display:none}.overview-line .overview-station{background:color-mix(in srgb,var(--line-color) 3%,white);border-color:color-mix(in srgb,var(--line-color) 35%,white)}.overview-line .overview-station:hover{background:color-mix(in srgb,var(--line-color) 9%,white)}.overview-line .machine-title>.icon{color:var(--line-color)}.overview-station{border-top:3px solid var(--line-color)!important}.overview-line.focused-line{outline:2px solid var(--line-color);outline-offset:5px;border-radius:9px}.line-output-bar{height:5px;background:#edf0f4;border-radius:4px;max-width:160px;margin:5px 0}.line-output-bar i{display:block;height:100%;background:var(--line-color);border-radius:4px}.product-flow-lane{border-left:4px solid var(--route-color)}.selected-products>span .btn{border-left:3px solid var(--route-color)}.route-sequence{background:var(--route-color);color:white}.home-production td{vertical-align:middle}.home-production .section-title .icon,.material-summary .section-title .icon{margin-right:6px}.product-floor-route{opacity:.8;stroke-linecap:round}.routes-visible .line-floor-route{opacity:.22}.line-floor-route{opacity:.65}.floor-connections{overflow:visible}.factory-view-toolbar{flex-wrap:wrap}

.status-key-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b68a36;margin-right:5px}

/* Configurable workspace and compact page-specific summaries. */
.page-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:16px;background:white;border:1px solid #dfe2e8;border-radius:12px;padding:12px 16px}.page-summary>div{border-right:1px solid #e6e8ed;padding-right:10px}.page-summary>div:last-child{border:0}.page-summary strong{display:block;font-size:20px;line-height:1.4}.module-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.module-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9dde6;border-radius:10px;padding:16px;background:#fafbfc;cursor:pointer}.module-option:has(input:checked){border-color:#7777a3;background:#f4f4fb}.module-option input{width:20px;height:20px;margin:2px 0;flex:none}.module-option small{margin-top:5px}.rail nav{overflow-y:auto;min-height:0}.floor-person{position:absolute;transform:translate(-50%,-10%);display:flex;gap:2px;align-items:center;border:0;background:#ffffffeb;border-radius:6px;padding:2px 4px;z-index:4;min-height:44px;max-width:none;width:max-content;text-align:left;font-size:12px;color:#25272d}.floor-person svg{width:24px;height:40px;flex:none}.floor-person small{font-size:9px;white-space:nowrap}.floor-person:hover{outline:2px solid #7777a3}.floor-person span{overflow:visible}.floor-person .floor-phone{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.setup-tabs{overflow-x:auto}.module-option b{font-size:16px}@media(max-width:700px){.module-picker{grid-template-columns:1fr}.page-summary{grid-template-columns:1fr 1fr;padding:10px}.page-summary strong{font-size:18px}}

/* Connected sales workspace: compact grouping, one title, contextual drawers. */
.orders-submenu{position:fixed;left:64px;top:140px;z-index:80;background:white;border:1px solid #d8dbe1;box-shadow:0 8px 28px #20273520;border-radius:14px;padding:8px;display:grid;gap:4px;min-width:225px}.orders-submenu .btn{text-align:left;justify-content:flex-start}.connected-tabs{display:flex;gap:6px;overflow:auto;padding:10px 0}.connected-tabs .btn{white-space:nowrap;flex-shrink:0}.connected-order-meta{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:14px}.connected-body{margin-top:6px}.order-customer-filter{min-width:220px}.order-customer-filter select{margin:0}.connected-body .panel{margin:0;border:0;box-shadow:none}.connected-body table{width:100%}@media(max-width:600px){.orders-submenu{left:50px;top:110px;max-width:calc(100vw - 60px)}.connected-order-meta{gap:8px}.order-customer-filter{width:100%}}

.page-menu-title{font:inherit;font-weight:inherit;color:inherit;border:0;background:transparent;padding:0;display:flex;align-items:center;gap:8px;cursor:pointer}.page-menu-title span{font-size:.75em;color:#555}.orders-submenu{max-height:calc(100vh - 140px);overflow:auto}.rail .orders-submenu{display:grid;flex:none;width:230px;padding:8px;overflow:auto}.stock-view-header{gap:10px;flex-wrap:wrap}.stock-intro>.stock-stats{margin-top:0}.stock-intro>.stock-stats+small{display:block;margin:4px 0 10px}

.stock-intro .stock-view-header{padding:10px 0;margin:8px 0;min-height:0}.stock-intro .stock-view-header .toolbar{margin:0}.stock-intro .stock-view-header .tabs{margin:0}

/* Factory setup: searchable task directory, focused editors, no long tab rail. */
.setup-hub{padding:16px}.setup-search-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.setup-search-row .search{width:min(460px,100%)}.setup-group{margin:0;padding:0;border:0;background:transparent}.setup-group h2{font-size:15px;letter-spacing:.02em;background:#f1f3f6;padding:9px 12px;margin:12px 0 0;border-radius:6px}.setup-option{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(150px,auto) 16px;width:100%;gap:12px;align-items:center;border:0;border-bottom:1px solid #e4e6eb;background:white;text-align:left;padding:12px;color:inherit;cursor:pointer;font:inherit}.setup-option:hover,.setup-option:focus-visible{background:#f5f6fb}.setup-option-icon{width:34px;height:34px;display:grid;place-items:center;background:#eef0f6;border-radius:9px}.setup-option-name b{display:block;font-size:16px}.setup-option-name small{display:block;font-size:14px;color:#59606b;margin-top:2px}.setup-option-value{font-size:14px;color:#3b4250;text-align:right}.setup-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:16px}.setup-tools>span{font-size:14px;color:#59606b;margin-right:auto}.setup-drawer-context{font-size:14px;color:#59606b;margin:0 0 12px}.setup-editor>.panel{margin:0;border:0;box-shadow:none;padding:0;background:transparent}.setup-editor .section-title:empty{display:none}.setup-line-filter{display:flex;gap:12px;align-items:center;width:fit-content;margin-bottom:12px}.setup-line-filter select{min-width:160px}.setup-option[hidden],.setup-group[hidden]{display:none!important}.setup-editor [hidden]{display:none!important}@media(max-width:650px){.setup-search-row{display:block}.setup-search-row>small{display:none}.setup-option{grid-template-columns:32px minmax(0,1fr) 12px;gap:8px;padding:12px 6px}.setup-option-value{grid-column:2;text-align:left;margin-top:0}.setup-option>span:last-child{grid-column:3;grid-row:1}.setup-option-name small{font-size:13px}.setup-hub{padding:12px}}

.setup-group h2{padding:7px 12px;margin-top:8px}.setup-option{padding-top:8px;padding-bottom:8px}.setup-tools{padding-top:12px}

/* Quantity meaning is text + symbol + colour, distinct from red/amber risk. */
.quantity-meaning{border:1px solid #b9c6d3;border-left:5px solid #315d89;background:#edf4fc;color:#183f66;padding:12px 16px;border-radius:10px;font-size:1rem;line-height:1.5}.quantity-meaning.increment{border-color:#566473;background:#edf0f3;color:#253546}.quantity-meaning.snapshot{border-color:#3e787b;background:#eff8f7;color:#164e50}.quantity-modes,.quantity-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.quantity-modes .active{border:2px solid #315d89;background:#edf4fc;color:#183f66;font-weight:750}.quantity-pair input{font-size:1.5rem;font-weight:700}.quantity-confirm{display:flex;align-items:flex-start;gap:10px;padding:12px 0}.quantity-confirm input{width:24px!important;height:24px!important;flex:0 0 24px}.data-clarity-strip{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 0;color:#384451;font-size:.875rem}.missing-data{color:#744b00!important;background:#fff5d9!important;border:1px solid #d6b569!important;white-space:normal!important;text-align:left}.recording-complete{display:block;color:#425364}.reconcile-group th{background:#edf1f5;font-size:1rem}.shift-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shift-summary-grid article{display:flex;flex-direction:column;gap:7px;border-right:1px solid #d2dbe4;padding-right:16px}.shift-summary-grid article:last-child{border:0}.shift-summary-grid strong{font-size:1.3rem}.shift-summary-grid .btn{align-self:flex-start}.shift-comparison{margin-bottom:16px}@media(max-width:650px){.quantity-pair,.quantity-modes{grid-template-columns:1fr}.shift-summary-grid{grid-template-columns:1fr}.shift-summary-grid article{border-right:0;border-bottom:1px solid #d2dbe4;padding:0 0 12px}.data-clarity-strip{align-items:flex-start}}

/* Compact shift overview and aligned station facts. */
.compact-shift-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.shift-fact{border:1px solid #d8dfe6;border-radius:10px;background:#f7f9fb;padding:12px;text-align:left;display:flex;flex-direction:column;gap:6px;color:#25303d;min-width:0;cursor:pointer}.shift-fact>span{font-size:.9rem;font-weight:650}.shift-fact strong{font-size:1.7rem;line-height:1.2}.shift-fact strong small{font-size:.9rem;font-weight:500}.shift-fact>small{font-size:.8rem}.shift-fact.loss-attention{background:#fff7e6;border-color:#d7b977}.shift-fact.count-attention{background:#edf4fb;border-color:#a9bfd5}.current-shift-summary .section-title{margin-bottom:10px}.aligned-station{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(28px,auto) 18px 16px minmax(30px,auto) auto!important;gap:5px 8px!important;align-content:stretch!important}.aligned-station>strong{align-self:start}.station-count{font-size:1.35rem;font-weight:700}.station-count small{font-size:.8rem;font-weight:500}.station-person,.station-updated{color:#455566}.station-data-state{font-size:.8rem;line-height:1.35}.entry-missing-label{display:block;color:#284f75;background:#edf4fb;border-left:3px solid #6387ac;padding:6px;border-radius:4px}.station-pace{display:flex;flex-direction:column;gap:5px;margin-top:auto;align-self:end}.station-pace .tag{white-space:normal}.selected-product-control{background:#edf4fb;border:1px solid #91adc8!important;color:#244966!important}.selected-product-control b{display:inline-flex;border-radius:20px;background:#244966;color:white;padding:1px 8px}.reason-filter-grid{display:grid!important;overflow:visible!important}.reason-filter-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:8px!important}.reason-filter{min-width:0!important;width:auto!important}.production-reasons{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.production-reasons label{display:grid;grid-template-rows:42px auto;align-items:start;margin:0}.production-reasons input,.production-reasons select{margin:0;width:100%;min-height:46px}.entry-question{font-weight:700}.entry-question select{font-weight:600}.quantity-meaning{margin:10px 0;padding:10px 12px}.made-total>b{color:#214f79!important;background:#edf4fb;border:1px solid #b7ccdf;border-radius:12px;padding:8px 18px}.shift-section-tabs{margin-bottom:12px}.shift-section-tabs .btn{min-height:44px}@media(max-width:900px){.compact-shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.production-reasons{grid-template-columns:1fr}.production-reasons label{grid-template-rows:auto auto;gap:6px}.shift-fact{padding:10px}.shift-fact strong{font-size:1.4rem}.reason-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.overview-station.aligned-station .station-count{font-size:1.35rem!important;display:flex;align-items:baseline;gap:6px}.overview-station.aligned-station .station-count small{font-size:.8rem!important}.aligned-station .station-count small{display:inline}.aligned-station .station-pace .tag{font-size:.8rem}.aligned-station .station-updated{line-height:1.3}
.missing-data{color:#284f75!important;background:#edf4fb!important;border-color:#b0c7dd!important}
/* Attention is grouped by purpose, not a flat wall of filters. */
.attention-groups{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin:12px 0}.attention-group{border:1px solid #d6dee6;border-radius:10px;background:#f8fafc;padding:12px}.attention-group.action{border-color:#ddc79b;background:#fffbf1}.attention-group.cause{border-color:#b9cbd8;background:#f3f8fc}.attention-group h3{font-size:.95rem;margin:0 0 8px;color:#263643}.attention-filter{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:8px;background:transparent;border:1px solid transparent;border-radius:7px;width:100%;padding:8px;min-height:44px;text-align:left;color:#344250;cursor:pointer}.attention-filter span{font-size:.9rem}.attention-filter b{min-width:28px;text-align:center;background:white;border:1px solid #dce2e8;border-radius:6px;padding:2px 5px}.attention-filter.active{background:#25323f;color:#fff;border-color:#25323f}.attention-filter.active b{background:#fff;color:#25323f}.attention-filter:hover:not(.active){background:#e9eef3}.expanded-stock-stats,.trend-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.expanded-stock-stats>div,.trend-kpis>div{border:1px solid #dce2e8;background:#f8fafc;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:5px}.expanded-stock-stats span,.trend-kpis span{font-size:.9rem;color:#344250}.expanded-stock-stats b,.trend-kpis strong{font-size:1.5rem}.trend-kpis small{font-size:.8rem;color:#52616e;line-height:1.4}.trend-visuals{display:grid;grid-template-columns:1fr 1fr;gap:16px}.trend-visuals h2{font-size:1.1rem}.material-loss-trend{display:grid;gap:8px;margin-top:14px}.material-loss-trend button{display:grid;grid-template-columns:1fr auto;gap:6px;text-align:left;align-items:center;background:#f8fafc;border:1px solid #dce2e8;border-radius:8px;padding:10px;color:#344250;cursor:pointer}.material-loss-trend small{grid-column:1/-1}.trends-overview .trend-filters{margin-bottom:14px}.trend-chart i{transition:width .18s ease}@media(max-width:950px){.attention-groups{grid-template-columns:1fr 1fr}.attention-group.records{grid-column:1/-1}.attention-group.records>div{display:grid;grid-template-columns:repeat(3,1fr)}.trend-visuals{grid-template-columns:1fr}}@media(max-width:600px){.attention-groups{grid-template-columns:1fr}.attention-group.records>div{grid-template-columns:1fr}.expanded-stock-stats,.trend-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.expanded-stock-stats b,.trend-kpis strong{font-size:1.2rem}}@media(prefers-reduced-motion:reduce){.trend-chart i{transition:none}}
@media(min-width:1100px){.expanded-stock-stats,.trend-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.expanded-stock-stats>div,.trend-kpis>div{padding:10px}.expanded-stock-stats span,.trend-kpis span{min-height:2.5em}.expanded-stock-stats b,.trend-kpis strong{font-size:1.25rem}.trend-filters{display:grid!important;grid-template-columns:1fr 1fr 1.3fr 1fr 1.6fr;gap:10px!important}.trend-filters label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}.trend-filters input,.trend-filters select{width:100%;min-width:0!important}}
.trend-kpis .trend-loss-value{background:#fff7e6;border-color:#d7b977}

/* Shift lifecycle: one context pill and compact task groups, shared drawer. */
.shift-pill{display:flex;align-items:stretch;border:1px solid #c8cbd2;border-left:4px solid #66717e;border-radius:12px;background:#f1f3f5;max-width:440px;flex-shrink:1;overflow:hidden}
.shift-pill.current{border-left-color:#5455a6;background:#f1f0fc}.shift-pill.future{border-left-color:#a36b24;background:#fff8eb}
.shift-pill button{border:0;background:transparent;cursor:pointer;min-width:38px;min-height:44px;color:#272d38;font:inherit;padding:6px 9px}.shift-pill>button:not(.shift-pill-label){font-size:23px}.shift-pill button:hover{background:#00000009}.shift-pill-label{display:flex;flex-direction:column;justify-content:center;gap:2px;text-align:left}.shift-pill-label b{font-size:14px}.shift-pill-label span{font-size:13px}.top{gap:10px;flex-wrap:wrap}.top-controls{margin-left:auto}.close-facts{display:flex;flex-wrap:wrap;gap:8px 20px;padding:10px 0}.close-facts span{font-size:14px}.close-progress{display:flex;gap:5px;margin:10px 0 14px}.close-progress span{flex:1;background:#f1f3f5;border-bottom:3px solid #cdd0d7;padding:10px 8px;font-size:14px;font-weight:650}.close-progress .active{background:#edecfc;border-color:#5553a5}.close-progress .done{border-color:#568069}.drawer-step-footer{display:flex;justify-content:space-between;gap:10px;position:sticky;bottom:0;padding:12px 0;background:white;border-top:1px solid #d9dce2;z-index:2}.closing-alert,.closing-queue{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff8e9;border:1px solid #e8d6ad;border-radius:10px;margin-bottom:10px}.closing-queue{flex-wrap:wrap}.closing-queue .btn{margin-left:auto}.close-summary small{display:block}.btn:disabled,button:disabled{opacity:.5;cursor:not-allowed}.shift-context{display:none}
@media(max-width:800px){.top .shift-pill{order:3;max-width:none;width:100%}.shift-pill-label{flex:1}.close-progress{flex-wrap:wrap}.close-progress span{flex:1 1 40%}.close-facts{gap:8px 12px}.closing-alert{flex-wrap:wrap}.top-controls{gap:4px}}
@media(prefers-reduced-motion:no-preference){.close-progress .active{animation:shift-step-in .18s ease-out}@keyframes shift-step-in{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}}

/* DENSITY-1120: shared action alignment and compact, readable modules. */
.page-toolbar{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(180px,1.3fr) auto;gap:12px;align-items:center}.page-toolbar .search{width:100%;max-width:440px;justify-self:center}.page-add{justify-self:end;margin-left:auto}.page-toolbar select{max-width:100%}.stat-detail{font-size:13px;color:#526070}.shift-pill{flex-wrap:wrap}.shift-pill .shift-attention{font-size:13px;font-weight:650;background:#fff1ce;border-left:1px solid #dfc894}.shift-pill .shift-return{font-size:13px}.machine-title{display:flex;align-items:center;gap:6px;grid-column:1;grid-row:1}.machine-title svg{width:20px!important;height:20px!important;flex:none}.machine-title strong{font-size:14px;line-height:1.3}.aligned-station .station-person{grid-column:1;grid-row:2;margin:0}.aligned-station .station-count{grid-column:2;grid-row:1/3;text-align:right;display:flex;flex-direction:column;align-self:start}.aligned-station .station-updated{grid-column:1/-1;grid-row:3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aligned-station .station-data-state{grid-column:1/-1;grid-row:4}.aligned-station .station-pace{grid-column:1/-1;grid-row:5}.route-machine-title{display:flex;gap:7px;align-items:center;min-height:38px}.route-machine-title svg{width:22px;height:22px;flex:none}.route-machine-title b{font-size:14px;line-height:1.3}.route-shared{position:static;align-self:flex-start}.selected-product-control{background:#f7f8fa;border-color:#cbd1d8!important;color:#263341!important}.attention-groups{gap:8px;margin:8px 0}.attention-group{padding:8px}.attention-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.attention-filter{padding:5px;gap:5px}.attention-filter span{font-size:13px}.attention-filter svg{width:18px;height:18px}.attention-filter b{min-width:22px;padding:1px 4px}.compact-attention .section-title{padding-top:8px;padding-bottom:8px;margin-bottom:6px}.close-summary{padding:12px!important}.close-summary .section-title{padding:8px 10px!important;margin-bottom:6px!important}.close-summary h2{font-size:20px}.close-facts{gap:8px 20px;padding:8px 0}.close-facts span{display:flex;align-items:baseline;gap:6px;font-size:13px}.close-facts span>b{font-size:22px;line-height:1.1}.floor-phone{white-space:nowrap;color:#26364b}
@media(max-width:1100px){.attention-groups{grid-template-columns:1fr}.attention-group{display:grid;grid-template-columns:120px 1fr;align-items:center}.attention-group h3{margin:0}.attention-group>div{grid-template-columns:repeat(4,minmax(0,1fr))}.page-toolbar{grid-template-columns:1fr 1.3fr auto}}
@media(max-width:650px){.page-toolbar{grid-template-columns:1fr auto}.page-toolbar .search{grid-column:1/-1;grid-row:2;max-width:none}.page-toolbar .page-add{grid-column:2;grid-row:1}.attention-group{display:block}.attention-group>div{grid-template-columns:repeat(2,minmax(0,1fr))}.attention-group h3{margin-bottom:5px}.shift-pill-label{min-width:0}.shift-pill .shift-attention{margin-left:auto}.close-facts{gap:10px}.close-facts span{flex:1 1 42%}.overview-line .aligned-station{min-width:200px}}

@media(max-width:650px){.top-controls>[data-act="feature-guide"],.top-controls>.shift-summary-button,.top-controls>.section-menu-trigger{display:none!important}.top-controls{width:100%;justify-content:flex-end;gap:4px}.top-controls .btn{padding-left:8px;padding-right:8px}.top .shift-pill{margin-top:0}}

/* Keep Stock's title and metadata together; no separate header card. */
.stock-header-note{display:flex;align-items:center;gap:6px;border:0;padding:2px 0;background:none;color:#535b68;font:inherit;font-size:13px;text-align:left;max-width:100%;flex-wrap:wrap}.stock-header-note.historical{color:#80591f}.stock-header-note:focus-visible{outline:2px solid var(--accent)}
body[data-page=stock] .top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px}body[data-page=stock] .top>div:first-child{min-width:0}body[data-page=stock] .top-controls{margin-left:0}
@media(max-width:700px){body[data-page=stock] .top{grid-template-columns:minmax(0,1fr)}body[data-page=stock] .top-controls{justify-content:flex-start;width:100%;gap:6px}body[data-page=stock] .top-controls .quick-trigger{font-size:0;min-width:40px;padding:8px}body[data-page=stock] .top-controls .quick-trigger:before{content:'+';font-size:22px}body[data-page=stock] .stock-header-note{font-size:13px}}

/* First-time setup: one compact story, outcomes backed by saved records. */
.journey{background:linear-gradient(115deg,var(--white) 55%,var(--mint));border-color:var(--accent)}
.journey-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.journey-heading h2{font-size:28px;margin:4px 0 8px}.journey-heading p{margin:0}.journey-progress{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:4px 10px;min-width:130px}.journey-progress>b{font-size:28px}.journey-progress>span{font-size:14px}.journey-progress progress{grid-column:1/-1;width:100%;height:8px;accent-color:var(--accent)}
.journey-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.journey-stop{display:flex;align-items:flex-start;gap:10px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:14px;color:var(--ink);min-width:0}.journey-stop.selected{border-color:var(--accent);box-shadow:inset 0 -3px var(--accent)}.journey-stop.complete .journey-symbol{color:#366b52;background:#eaf4ee}.journey-stop b{font-size:16px;display:block;line-height:1.35}.journey-stop small,.journey>small{font-size:14px;line-height:1.45;margin-top:6px}.journey-symbol{display:grid;place-items:center;background:var(--mint);color:var(--accent);width:36px;height:36px;flex-shrink:0;border-radius:10px}.journey-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;border-top:1px solid var(--line);padding-top:12px}.journey-footer>span{max-width:650px}.journey-choices{display:grid;gap:10px;margin:18px 0}.journey-choices>button{display:grid;grid-template-columns:28px 1fr;text-align:left;gap:3px 12px;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px;color:var(--ink)}.journey-choices>button:hover{border-color:var(--accent);background:var(--mint)}.journey-choices>button>.icon{grid-row:span 2;color:var(--accent)}.journey-choices>button>span{font-size:14px}.journey-success{background:var(--mint);border-radius:12px;padding:20px;margin:12px 0}.journey-success>.icon{width:34px;height:34px;color:#366b52;margin-bottom:10px}#journey-counts input,#journey-counts select{min-width:80px;width:100%}#journey-counts th:nth-child(2){min-width:190px}
@media(prefers-reduced-motion:no-preference){.journey-stop{transition:transform 160ms,border-color 160ms}.journey-stop:hover{transform:translateY(-3px)}.journey-success>.icon{animation:drawer-in 180ms ease-out}}
@media(max-width:1100px){.journey-path{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.journey-heading{align-items:flex-start}.journey-heading h2{font-size:24px}.journey-progress{min-width:75px;grid-template-columns:1fr}.journey-path{grid-template-columns:1fr;gap:8px;margin:14px 0}.journey-stop{padding:12px}.journey-footer{align-items:stretch;flex-direction:column;gap:10px}}
/* Owner refinement: two optional starting points, no compulsory setup checklist. */
.journey-simple .journey-path{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0}.journey-simple .journey-heading>.icon{width:42px;height:42px;color:var(--accent)}.journey-simple .journey-heading h2{font-size:24px}.journey-simple .journey-stop{align-items:center;padding:16px}.journey-optional{padding-top:12px;border-top:1px solid var(--line)}.journey-optional summary{cursor:pointer;font-weight:600;min-height:40px}.journey-optional p{margin:4px 0}.journey-simple>small{margin-top:4px}@media(max-width:600px){.journey-simple .journey-path{grid-template-columns:1fr}.journey-simple .journey-heading>.icon{display:none}}

/* A few concrete tap choices; the preview changes, real factory records do not. */
#modal.welcome-dialog{width:min(1000px,94vw)!important;height:auto!important;max-height:calc(100dvh - 24px);inset:12px 0 auto auto}.factory-welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.welcome-questions>section{padding:14px 0;border-bottom:1px solid var(--line)}.welcome-questions h3{font-size:17px}.welcome-picks{display:flex;gap:8px;flex-wrap:wrap}.welcome-picks .btn{min-width:52px}.welcome-preview{background:var(--mint);border:1px solid var(--line);border-radius:16px;padding:16px;align-self:start}.welcome-roof{display:flex;gap:10px;align-items:center;margin-bottom:14px}.welcome-roof>.icon{width:30px;height:30px}.welcome-floor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.welcome-area{background:var(--white);border:1px solid var(--area);border-top:4px solid var(--area);border-radius:9px;padding:10px;display:grid;gap:4px;font-size:14px}.welcome-area>span{font-size:13px;color:var(--ink)}.welcome-machine-space{border:1px dashed var(--line);text-align:center;padding:8px}.welcome-people{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0}.welcome-people>span{display:flex;flex-wrap:wrap;max-width:140px;color:var(--accent)}.welcome-people .icon{width:23px;height:23px}.welcome-preview>small{font-size:14px;line-height:1.5}.welcome-business{padding:10px 0;border-top:1px solid var(--line);font-size:14px}.welcome-customer-question{margin:14px 0 8px}@media(prefers-reduced-motion:no-preference){.welcome-area,.welcome-people{animation:drawer-in 200ms ease-out}}@media(max-width:700px){#modal.welcome-dialog{width:100vw!important;max-width:100vw;max-height:100dvh;inset:0 0 auto auto}.factory-welcome{grid-template-columns:1fr}.welcome-questions>section{padding:10px 0}.welcome-questions>p{margin-bottom:0}}
/* Editable counts and actual module choices; only Continue uses the solid primary style. */
.welcome-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.welcome-numbers label{font-size:14px;font-weight:600}.welcome-numbers input{display:block;width:100%;min-height:48px;font-size:21px;padding:8px;border:1px solid var(--line);border-radius:8px;background:white}.welcome-modules{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.welcome-module{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px;background:white;cursor:pointer}.welcome-module:has(input:checked){border-color:var(--accent);background:var(--mint)}.welcome-module input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.welcome-module .icon{width:20px;height:20px}.welcome-module b{font-size:14px}.welcome-module small{font-size:12px;line-height:1.35}.welcome-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:16px;border-top:1px solid var(--line);margin-top:16px}.welcome-footer span{font-size:14px}.welcome-continue{min-height:50px;font-weight:700;white-space:nowrap}#welcome-removal{display:block;margin-top:12px}#welcome-removal[hidden],#welcome-customers[hidden]{display:none}#welcome-removal input{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px}@media(max-width:700px){.welcome-numbers{grid-template-columns:1fr 1fr}.welcome-footer{align-items:stretch;flex-direction:column}.welcome-modules{grid-template-columns:1fr}}

#journey-welcome .welcome-module{margin:0!important}#journey-welcome .welcome-numbers label{margin:0!important}#journey-welcome .welcome-questions>section{padding:10px 0}#journey-welcome .welcome-footer{position:sticky;bottom:-20px;background:#fff;padding:12px;margin:12px -8px -8px;z-index:2;border-radius:0 0 10px 10px}

/* First-time setup owns the page; focused edits still use the shared drawers. */
.setup-welcome-page{max-width:1320px;margin:0 auto}.welcome-page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:6px 0 20px}.welcome-page-heading h2{font-size:32px;line-height:1.2;margin:6px 0 8px}.welcome-page-heading p{margin:0;font-size:16px}.setup-welcome-page .factory-welcome{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);align-items:start;gap:24px}.setup-welcome-page .welcome-questions{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:20px}.setup-welcome-page .welcome-preview{padding:22px;background:linear-gradient(145deg,var(--mint),var(--white));position:sticky;top:16px}.setup-welcome-page .welcome-floor{padding:14px;background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:14px 14px;border:1px solid var(--line);border-radius:12px;min-height:180px}.setup-welcome-page .welcome-area{min-height:82px;box-shadow:0 4px 0 color-mix(in srgb,var(--area) 18%,transparent)}.setup-welcome-page .welcome-roof{font-size:20px}.setup-welcome-page .welcome-roof .icon{width:36px;height:36px}.setup-welcome-page .welcome-people{padding:14px 0;border-bottom:1px solid var(--line);border-top:1px solid var(--line)}.setup-welcome-page .welcome-numbers input{color:var(--ink)}.setup-welcome-page .welcome-module{min-height:70px}.setup-welcome-page .welcome-module small{font-size:13px}.setup-welcome-page #journey-welcome .welcome-footer{bottom:0;margin:18px 0 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;box-shadow:0 -4px 18px #25272d08}.setup-welcome-page #welcome-error:empty{display:none}.setup-welcome-page #welcome-error:not(:empty){padding:12px;background:#fceae6;border-radius:10px;margin-top:10px}.workspace:has(.setup-welcome-page) .top .shift-pill,.workspace:has(.setup-welcome-page) .context-bar{display:none}.welcome-next-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.welcome-next .journey-choices button{grid-template-columns:28px 28px 1fr;align-items:center;padding:18px}.welcome-next .journey-choices button>.icon{grid-row:auto}.welcome-step-number{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--mint);color:var(--accent);font-weight:700}.welcome-next small{font-size:14px;margin-top:4px}
@media(prefers-reduced-motion:no-preference){.setup-welcome-page .welcome-module{transition:transform 160ms,border-color 160ms}.setup-welcome-page .welcome-module:hover{transform:translateY(-2px)}.setup-welcome-page .welcome-area{animation:factory-arrive 240ms ease-out}.setup-welcome-page .welcome-people .icon{animation:factory-arrive 300ms ease-out}.setup-welcome-page .welcome-people .icon:nth-child(2n){animation-delay:50ms}@keyframes factory-arrive{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}}
@media(max-width:900px){.setup-welcome-page .factory-welcome,.welcome-next-layout{grid-template-columns:1fr}.setup-welcome-page .welcome-preview{position:static}.welcome-page-heading h2{font-size:27px}}@media(max-width:600px){.welcome-page-heading{align-items:flex-start}.welcome-page-heading>.btn{max-width:90px}.setup-welcome-page .welcome-questions,.setup-welcome-page .welcome-preview{padding:14px}.setup-welcome-page .welcome-floor{min-height:120px}.welcome-next .journey-choices button{padding:12px;gap:8px}.welcome-next .welcome-footer{flex-wrap:wrap}}

/* Factory settings: one searchable directory with four stable, task-based groups. */
.rail .rail-settings{margin-top:auto;flex-shrink:0}.settings-home{max-width:1400px;margin:auto}.settings-start-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:var(--white);border:1px solid var(--line);border-radius:12px}.settings-start-strip>span{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.settings-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:16px 0}.settings-toolbar .search{flex:1;max-width:620px}.settings-toolbar input{width:100%;min-width:0;font-size:16px}.settings-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.settings-categories button{display:grid;grid-template-columns:30px 1fr;gap:8px 10px;text-align:left;padding:14px;border:1px solid var(--line);border-top:3px solid var(--category-colour);background:var(--white);border-radius:12px;color:var(--ink)}.settings-category-icon{grid-row:span 2;color:var(--category-colour)}.settings-categories b{font-size:16px;line-height:1.3}.settings-categories small{font-size:14px;line-height:1.4}.settings-categories button[aria-pressed=true]{background:color-mix(in srgb,var(--category-colour) 9%,white);border-color:var(--category-colour);box-shadow:inset 0 -3px var(--category-colour)}.settings-results{padding:18px}.settings-list-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.settings-list-heading h2{margin:0;font-size:22px}.settings-list-heading>span{font-size:14px;color:#626975}.settings-table-head{display:grid;grid-template-columns:1fr 240px;font-size:13px;font-weight:600;padding:8px 60px 8px 54px;background:#f6f7fa;border-radius:8px}.settings-row-action{display:grid!important;grid-template-columns:36px minmax(0,1fr) 220px 40px;gap:14px;align-items:center;width:100%;padding:16px 0!important;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--ink)}.settings-row-action:last-child{border-bottom:0}.settings-row-action:hover{background:var(--mint)}.settings-row-action .setup-option-name b{font-size:16px}.settings-row-action .setup-option-name small{font-size:14px;line-height:1.45;margin-top:4px}.settings-row-action .setup-option-value{font-size:14px;background:#f6f7fa;border-radius:8px;padding:8px 10px;text-align:left}.settings-edit-label{font-size:14px;color:var(--accent);font-weight:650;text-decoration:underline}.settings-match-group{display:block;font-size:12px;color:var(--accent);margin-top:4px}.settings-demo-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;padding:0 4px}.settings-demo-tools small{font-size:13px}.settings-empty{padding:24px;text-align:center}.settings-empty>.icon{width:32px;height:32px;margin-bottom:10px}.settings-home .btn.small{font-size:14px}.settings-home .search{background:white;border:1px solid var(--line);border-radius:10px;padding:8px 12px}.settings-home .search input{border:0;background:none;outline-offset:2px}.settings-home~*{min-width:0}@media(prefers-reduced-motion:no-preference){.settings-categories button{transition:transform 150ms,background 150ms}.settings-categories button:hover{transform:translateY(-2px)}}@media(max-width:1100px){.settings-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-row-action{grid-template-columns:30px minmax(0,1fr) 170px 30px;gap:10px}.settings-table-head{grid-template-columns:1fr 180px;padding-left:40px;padding-right:40px}}@media(max-width:650px){.settings-start-strip{align-items:flex-start;flex-direction:column}.settings-toolbar{align-items:stretch;flex-direction:column;gap:8px}.settings-toolbar .search{max-width:none}.settings-categories{gap:8px}.settings-categories button{grid-template-columns:22px 1fr;gap:7px;padding:10px;min-height:64px}.settings-category-icon{grid-row:auto}.settings-categories b{font-size:14px}.settings-categories small{display:none}.settings-table-head{display:none}.settings-row-action{grid-template-columns:30px minmax(0,1fr) 32px}.settings-row-action .setup-option-value{grid-column:2;grid-row:2}.settings-edit-label{grid-column:3;grid-row:1}.settings-results{padding:14px}.settings-demo-tools small{flex-basis:100%}}
.settings-toolbar-actions{display:flex;gap:8px;align-items:center}.settings-toolbar{margin-top:0}body[data-page=setup] .top-controls>button:not(.settings-trigger):not(.compact-search){display:none}@media(max-width:650px){.settings-toolbar-actions{justify-content:flex-end}.settings-toolbar-actions .btn{flex:1}}

/* Selection says where you are; solid buttons say what happens next. */
:root{--selection-fill:#eeeff9;--selection-ink:#45436f;--selection-edge:#6865a8;--action-fill:#25272d;--action-hover:#41434d}
.btn.primary{background:var(--action-fill);color:#fff;border:1px solid var(--action-fill);border-bottom:3px solid #101217;font-weight:700;box-shadow:0 2px 4px #25272d20}
.btn.primary:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover);border-bottom-color:#101217}
.btn.primary:active:not(:disabled){box-shadow:none;transform:translateY(1px)}
.tabs .btn.active,.btn.active,.count-picker .btn.active,.reason-filter.active,.attention-filter.active,.setup-tabs button[aria-selected=true],.btn[aria-pressed=true]{background:var(--selection-fill);color:var(--selection-ink);border:1px solid var(--selection-edge);border-bottom:3px solid var(--selection-edge);box-shadow:none;font-weight:700}
.attention-filter.active b{background:white;color:var(--selection-ink)}
.tabs .btn:not(.active),.connected-tabs .btn:not(.active){box-shadow:none;border-bottom:3px solid transparent}
.rail-btn.active{background:var(--selection-fill);color:var(--selection-ink);box-shadow:inset 3px 0 var(--selection-edge)}
.btn:focus-visible,.settings-categories button:focus-visible,.rail-btn:focus-visible{outline:3px solid var(--selection-edge);outline-offset:3px}
.btn:disabled{box-shadow:none;transform:none}

/* Compact header: one row on desktop, title/tools then shift context on phones. */
.rail-brand{display:grid;justify-items:center;gap:2px;margin-bottom:12px;flex-shrink:0}.rail .rail-brand .logo{width:40px;height:40px;margin:0;object-fit:contain}.rail-brand>span{position:relative;display:block;font-family:NavzWordmark,"Noto Sans Devanagari",system-ui,sans-serif;font-size:19px;font-weight:800;line-height:1.35;color:#39365f;padding:1px 3px 0;transform:skewX(-5deg);transform-origin:center}
.top,body[data-page=stock] .top{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;align-items:center;gap:12px;padding:10px 20px;min-height:64px;background:#fff}
.top>div:first-child{min-width:0}.top h1{font-size:23px;line-height:1.2;margin:0}.top .shift-pill{order:0;justify-self:end;max-width:390px;margin:0}.top .shift-pill button{min-height:38px;padding:4px 8px}.top .shift-pill-label b{font-size:12px}.top .shift-pill-label span{font-size:11px}
.top .top-controls,body[data-page=stock] .top .top-controls{grid-column:auto;width:auto;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:nowrap;padding:0;border:0}
.top-controls .btn{height:38px;min-height:38px;font-size:12px;padding:7px 10px;flex-shrink:0}.top-controls .icon-button{position:relative;width:38px;min-width:38px;padding:8px}.top-controls .compact-search{margin:0}.top-controls .settings-trigger{order:20}.top-controls .icon{width:21px;height:21px}.top-controls .badge{position:absolute;right:-4px;top:-6px;font-size:10px;line-height:16px;min-width:16px;min-height:16px;padding:0 3px;border:2px solid white}
.top-controls .quick-trigger{background:#f6f5fb;border-color:#cac8db;font-weight:650}.top-controls .section-menu-trigger,.top-controls .shift-summary-button,.top-controls .btn[data-act=feature-guide]{display:none}
body[data-page=stock] .top{grid-template-columns:minmax(120px,1fr) auto}body[data-page=setup] .top-controls{grid-column:auto}.workspace:has(.setup-welcome-page) .top{grid-template-columns:1fr auto}
.demo-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;padding:12px 20px;color:#626975}
@media(max-width:1100px){.top,body[data-page=stock] .top{padding:10px 14px;gap:10px}.top-controls .quick-trigger{font-size:0;min-width:38px;padding:7px}.top-controls .quick-trigger:before{content:'+';font-size:22px}.top h1{font-size:21px}.top .shift-pill{max-width:340px}}
@media(max-width:700px){.top,body[data-page=stock] .top{grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;gap:10px}.top .shift-pill{grid-row:2;grid-column:1/-1;width:100%;max-width:none;justify-self:stretch}.top .top-controls,body[data-page=stock] .top .top-controls{grid-column:2;grid-row:1;gap:5px}.top-controls .header-approval{display:none}.top h1{font-size:19px}.top .shift-pill-label{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}.top .shift-pill-label b{font-size:12px}.rail .rail-brand .logo{width:36px;height:36px}.rail-brand>span{font-size:17px}.demo-footer{padding:12px;display:grid}.embedded-preview .top{grid-template-columns:minmax(0,1fr) auto}body[data-role=worker] .rail-brand{display:none}}
@media(max-width:420px){.top-controls .quick-trigger{display:none}.top .top-controls{gap:4px}.top-controls .icon-button{width:34px;min-width:34px}.top h1{font-size:18px}}

.top>div:first-child{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap}.page-update{font-size:11px;line-height:1.35;color:#626975;background:none;border:0;padding:0;text-align:left;cursor:pointer;max-width:310px}.page-update:hover{text-decoration:underline;text-underline-offset:3px}.page-update:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:700px){.top>div:first-child{display:block}.page-update{display:block;font-size:10px;margin-top:3px;max-width:100%}}

.rail-brand{border:0;background:transparent;padding:0;cursor:pointer}.rail-brand:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}#material-count-problems:not([hidden]){background:#fff4e5;border:1px solid #b07528;border-left:4px solid #b07528;border-radius:10px;padding:14px;margin-bottom:14px}#material-count-problems p{font-size:14px;margin:6px 0}.count-conflict{display:grid;gap:3px;padding:8px 0;border-top:1px solid #e7cda8}.count-conflict span{font-size:14px}.count-conflict small{font-size:13px}.has-count-conflict{background:#fff8ef}#material-count-problems:focus{outline:2px solid #b07528;outline-offset:2px}

/* Home uses the same selected marker as the other rail destinations. */
.rail-brand{position:relative;width:100%;border-radius:9px;padding:4px 0}.rail-brand.is-current{background:var(--selection-fill);box-shadow:inset 3px 0 var(--selection-edge)}.rail-brand.is-current>span{color:var(--selection-ink)}

/* Product recipe workspace: one selection, one route, one material table. */
.product-workspace{display:grid;grid-template-columns:minmax(220px,27%) minmax(0,1fr);gap:16px;align-items:start}
.product-browse,.product-detail{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:16px;min-width:0}
.product-detail{border-top:4px solid var(--route-color)}
.product-browse .search{width:100%;margin:0 0 12px}.product-choices{display:grid;gap:6px}
.product-choice{display:flex;align-items:center;gap:9px;text-align:left;border:1px solid transparent;border-left:4px solid var(--route-color);border-radius:9px;background:transparent;padding:10px;color:var(--ink);width:100%;flex-wrap:wrap}
.product-choice>span{flex:1;min-width:120px}.product-choice.selected{background:var(--mint);border-color:var(--accent);border-left-color:var(--route-color)}
.product-choice small{font-size:12px}.product-choice .tag{font-size:11px}.product-route{display:flex;gap:18px;overflow-x:auto;padding:4px 0 15px;margin-bottom:10px}
.product-route-step{position:relative;border:1px solid var(--line);border-top:3px solid var(--route-color);border-radius:10px;background:var(--white);padding:10px;flex:1 0 145px;display:grid;grid-template-columns:22px 1fr;gap:6px;text-align:left;color:var(--ink)}
.product-route-step b,.product-route-step small{grid-column:1/-1}.product-route-step:not(:last-child):after{content:'→';position:absolute;right:-17px;top:38%;color:var(--route-color)}
.product-route-step.selected{background:var(--mint);outline:2px solid var(--accent);outline-offset:-2px}.product-route-step .stage-number{font-size:12px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--mint);color:var(--ink)}
.product-next{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:12px 0;margin-top:8px}.product-material-table td{vertical-align:middle}.product-material-table td:nth-child(2){white-space:nowrap}.product-quantity{display:flex;gap:12px;align-items:end;margin-bottom:14px}.product-quantity label{flex:1}.product-calculation h3{margin-top:12px}
@media(max-width:800px){.product-workspace{grid-template-columns:1fr}.product-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.product-choice>span{min-width:0}.product-choice>svg{display:none}.product-browse,.product-detail{padding:12px}.product-detail h2{font-size:20px}.product-route-step{flex-basis:150px}}
@media(prefers-reduced-motion:no-preference){.product-detail{animation:product-reveal .18s ease-out}@keyframes product-reveal{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}}
.product-choice svg,.product-route-step svg{width:24px;height:24px;max-width:24px;max-height:24px}.product-choice .tag{flex:0 0 100%}.product-material-table td,.product-material-table th{padding:9px 12px}.product-route-step{min-height:106px;align-content:start}.product-route-step .stage-number{margin:0}.product-detail>.section-title{padding:0;background:none;border:0;margin:0 0 8px}.product-detail>.section-title h2{font-size:20px}.product-route-step small{margin-top:0}
.requirement-group{border-top:1px solid var(--line);padding:12px 0}.requirement-group:last-child{padding-bottom:0}.requirement-group h3{margin:0}.requirement-group summary{padding:8px 0;cursor:pointer}
.product-mobile-select{display:none}@media(max-width:800px){.product-browse{display:none}.product-mobile-select{display:block;margin:0}.product-mobile-select select{width:100%;max-width:100%;min-height:44px}.product-detail .section-title .btn{width:100%}}
.page-summary.product-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}.product-summary>div{min-width:0}.product-summary small{white-space:normal}
.product-material-machine{display:none}@media(max-width:800px){table.product-material-table{min-width:0!important;width:100%;table-layout:fixed}.product-material-table th:first-child{width:65%}.product-material-table th:nth-child(2){width:35%;white-space:normal}.product-material-table th:nth-child(3),.product-material-table td:nth-child(3){display:none}.product-material-table td{padding:9px 4px;overflow-wrap:anywhere;min-width:0}.product-material-table td:first-child svg{display:none}.product-material-machine{display:block}.product-material-table td:nth-child(2){white-space:normal}}
table.product-material-table td .product-material-machine{display:none}table.product-material-table td,table.product-material-table th{padding:8px 10px}@media(max-width:800px){table.product-material-table td .product-material-machine{display:block}table.product-material-table td,table.product-material-table th{padding:8px 4px}}
/* Recipe and daily-plan editors share compact bands and clear action hierarchy. */
.recipe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-fields label{margin:0}.recipe-band{border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px;padding:14px;margin:14px 0;background:var(--white)}.recipe-band>.section-title{padding:0;background:none;border:0}.recipe-band h3{margin:0}.recipe-route-edit{display:grid;gap:8px;margin:12px 0}.recipe-route-edit>div{display:grid;grid-template-columns:24px minmax(0,1fr) 40px 40px;gap:7px;align-items:center}.recipe-route-edit>div>span{background:var(--mint);border-radius:50%;text-align:center}.recipe-route-edit select{width:100%;min-width:0}.recipe-inputs{display:grid;gap:8px;margin-top:10px}.recipe-input-row{display:grid;grid-template-columns:minmax(140px,1fr) 100px minmax(140px,1fr) 36px;gap:8px;align-items:end;padding-bottom:10px;border-bottom:1px solid var(--line)}.recipe-input-row label{margin:0;font-size:13px}.recipe-input-row select,.recipe-input-row input{min-width:0;width:100%}.plan-input-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 38px;gap:10px;align-items:end;margin-top:12px}.plan-input-row label{margin:0}.plan-input-row select{max-width:100%;min-width:0}.recipe-empty{text-align:center;padding:26px 12px}.recipe-empty svg{width:40px;height:40px}.recipe-review-table{min-width:0!important;width:100%}.recipe-products-toolbar{margin:0 0 12px;justify-content:flex-end}.product-detail .section-title .toolbar{margin:0;gap:6px}.recipe-band .toolbar{margin:0}
@media(max-width:700px){.recipe-fields{grid-template-columns:1fr}.recipe-input-row{grid-template-columns:minmax(0,1fr) 90px 36px}.recipe-input-row label:nth-child(3){grid-column:1/3}.recipe-input-row>button{grid-column:3;grid-row:1/3}.plan-input-row{grid-template-columns:minmax(0,1fr) 38px}.plan-input-row label:first-child{grid-column:1/-1}.recipe-band{padding:10px}.recipe-route-edit>div{grid-template-columns:20px minmax(0,1fr) 34px 34px}.recipe-route-edit button{padding:6px}.recipe-products-toolbar{justify-content:flex-start}.recipe-input-row label{font-size:14px}}
.recipe-visual-route{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0}.recipe-visual-route span{border:1px solid var(--line);background:var(--mint);border-radius:8px;padding:7px;font-size:13px}.recipe-visual-route svg{width:20px;height:20px}.recipe-visual-route>b{color:var(--accent)}
/* Planning and machine activity reuse the existing neutral working surfaces. */
/* Production planning: aligned fields and three explicit stages. */
.planning-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:0 0 16px;list-style:none;color:var(--muted)}
.planning-steps li{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.planning-steps li>span{display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid currentColor;border-radius:50%}
.planning-steps .active{background:var(--ink);color:white}.planning-steps .done{color:var(--ink);background:var(--mint)}
#production-plan-edit label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:14px}
#production-plan-edit input,#production-plan-edit select{width:100%;min-width:0;margin:0;box-sizing:border-box;height:44px}
#production-plan-edit .plan-input-row{grid-template-columns:minmax(0,1fr) 120px 44px;align-items:end}
#production-plan-edit .plan-input-row>button{height:44px;width:44px;padding:0}
.plan-tools{display:flex;flex-wrap:wrap;gap:6px}.plan-schedule{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.plan-schedule label:nth-child(4){grid-column:span 2}
@media(max-width:700px){#production-plan-edit .plan-input-row{grid-template-columns:minmax(0,1fr) 44px}#production-plan-edit .plan-input-row label:first-child{grid-column:1/-1}.plan-schedule{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-schedule label:nth-child(4){grid-column:auto}.planning-steps li{padding:6px;font-size:12px;gap:4px}}
.machine-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.machine-drawer-head small,.machine-timeline small{display:block;margin-top:.2rem}
.machine-output{display:flex;gap:2rem;flex-wrap:wrap;margin:.7rem 0}.machine-output b{display:block;font-size:1.7rem}
.machine-timeline{padding-left:1.2rem}.machine-timeline li{padding:.5rem 0;border-bottom:1px solid var(--line)}
.activity-caption{position:absolute;bottom:.5rem;left:.5rem;z-index:4;background:white;padding:.3rem .6rem;border:1px solid var(--line);border-radius:.4rem;font-size:.85rem}

@keyframes route-activity{to{stroke-dashoffset:-3}}
@media(prefers-reduced-motion:reduce){.activity-playing .product-floor-route{animation:none}}
.decision-trends .recipe-band{margin-top:.8rem}.trend-detail>summary{font-weight:700;padding:.4rem;cursor:pointer}
@media(max-width:700px){.machine-output{gap:1rem}.planning-steps{gap:.25rem}.planning-steps>*{font-size:.8rem;padding:.3rem}}
@media(min-width:1150px){.decision-trends{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem}.decision-trends>.section-title,.decision-trends>p{grid-column:1/-1}.decision-trends .recipe-band{margin:0}.decision-trends table{min-width:0}.decision-trends td,.decision-trends th{padding:.6rem .45rem}.decision-trends td small{max-width:26ch}}

/* Four-line story: compact connected lanes and readable floor readings. */
.factory-floor-canvas{min-width:1050px}.floor-machine{width:154px;min-height:108px;grid-template-columns:24px minmax(0,1fr);padding:8px;gap:3px 5px}.floor-machine>b{font-size:13px}.floor-machine>small{font-size:12px}.floor-machine .floor-reading,.floor-machine .floor-material,.floor-machine .floor-update{grid-column:1/-1;font-size:12px}.floor-reading{border-top:1px solid var(--line);padding-top:4px}.floor-reading>b{font-size:16px}.floor-material{color:var(--muted)}.floor-material.needs-check{background:#fff0ce;color:#72500b;border-radius:4px;padding:2px 4px}.floor-update{color:var(--muted)!important}.floor-person{z-index:3}.overview-line{gap:14px;padding:8px;grid-template-columns:94px repeat(4,minmax(0,1fr))}.overview-line .overview-station{position:relative}.overview-line .overview-station:not(:last-child):after{content:'›';position:absolute;right:-14px;top:43%;color:var(--line-color);font-size:24px;font-weight:700}.overview-line>b{font-size:15px;padding:8px}.overview-line .station-data-state{min-height:28px}.overview-line .station-pace{border-top:1px solid var(--line);padding-top:4px}.overview-line .station-updated{font-size:11px}@media(max-width:800px){.factory-overview{overflow-x:auto}.overview-line{min-width:980px}}

.floor-machine{width:180px;min-height:112px;height:112px;align-content:center}.floor-machine .floor-material{font-size:12px;white-space:nowrap}@media(prefers-reduced-motion:reduce){.activity-playing .line-floor-route{animation:none}}
.floor-machine{height:128px;min-height:128px;padding:10px;align-content:center;row-gap:3px}.floor-machine>small,.floor-machine>span{margin:0;line-height:1.2}.floor-machine>b{margin:0;line-height:1.2}.floor-machine .floor-reading{padding-top:4px}

.overview-line .aligned-station{grid-template-rows:minmax(32px,auto) 18px minmax(30px,auto) auto!important;gap:4px 6px!important}.overview-line .machine-title{min-height:0}.overview-line .station-count{grid-row:1;line-height:1.1}.overview-line .station-person{grid-column:1/-1;grid-row:2}.overview-line .station-data-state{grid-row:3}.overview-line .station-pace{grid-row:4;display:flex;justify-content:space-between;align-items:center;gap:4px}.overview-line .station-pace small{margin:0;font-size:12px}.overview-line .station-pace .tag{font-size:12px;padding:3px 5px}.overview-line .station-data-state .entry-missing-label{font-size:12px}
.overview-line .station-pace{flex-direction:row!important;flex-wrap:wrap;text-align:left}

/* Lean floor: status on the map; readings on hover/focus and actions in drawer. */
.floor-machine{width:160px;height:58px;min-height:58px;padding:8px;grid-template-columns:24px minmax(0,1fr);row-gap:2px;overflow:visible}.floor-machine>svg{grid-row:1/3}.floor-machine>b{font-size:12px}.floor-machine>small{font-size:11px}.floor-state{position:absolute;top:-9px;right:5px;display:flex;gap:5px;align-items:center;font-size:12px;font-weight:750;line-height:1.1;border:1px solid white;border-radius:5px;padding:3px 6px;color:#505864;background:#edf0f3;white-space:nowrap}.floor-state>i{width:7px;height:7px;flex:none;border-radius:50%;background:#818a96}.activity-running .floor-state{color:#fff;background:var(--ink)}.activity-running .floor-state>i{width:9px;height:10px;border-radius:0;background:white;clip-path:polygon(0 0,100% 50%,0 100%)}.activity-paused .floor-state{color:#694800;background:#ffdf8b}.activity-paused .floor-state>i{border-radius:0;background:linear-gradient(to right,#694800 35%,transparent 35%,transparent 65%,#694800 65%)}
.floor-hover{display:none;position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);width:260px;max-width:45vw;padding:12px;background:white;border:1px solid var(--module-edge);border-top:3px solid var(--line-color);border-radius:10px;box-shadow:0 8px 24px #172a3a25;pointer-events:none;color:var(--ink);font-size:13px;text-align:left;line-height:1.4}.floor-hover>span,.floor-hover>strong{display:block;margin:4px 0!important;font-size:13px!important}.floor-machine:hover,.floor-machine:focus-visible{z-index:12}.floor-machine:hover .floor-hover,.floor-machine:focus-visible .floor-hover{display:block}.floor-machine:focus-visible{outline:3px solid var(--accent)}.activity-playing .product-floor-route{animation:none}.activity-playing .line-floor-route{animation:none}.activity-playing .line-floor-route.is-running,.activity-playing .product-floor-route.is-running{animation:route-activity 4s linear infinite}.activity-playing .activity-running .floor-state>i{animation:none}@keyframes machine-running{50%{opacity:.35;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.activity-playing .product-floor-route.is-running,.activity-playing .line-floor-route.is-running,.activity-playing .activity-running .floor-state>i{animation:none}}

.floor-machine.tooltip-dismissed .floor-hover{display:none}

.floor-view-options{position:relative;margin-left:auto;z-index:20}.floor-view-options>summary{list-style:none;cursor:pointer;background:white;border:1px solid var(--module-edge);border-radius:8px;padding:11px 14px;font-size:14px;font-weight:600}.floor-view-options[open]>summary{border-color:var(--accent)}.floor-options-menu{position:absolute;right:0;top:calc(100% + 6px);width:260px;padding:12px;display:grid;gap:8px;background:white;border:1px solid var(--module-edge);border-radius:10px;box-shadow:0 8px 24px #172a3a25}.floor-options-menu .btn{text-align:left}.floor-options-menu>small{font-size:12px;color:var(--muted)}

body[data-page="map"] main>.panel{padding:12px}.factory-view-toolbar{justify-content:flex-start;gap:10px}.factory-view-tabs{margin:0}.factory-floor-scroll{margin:8px 0 0}.floor-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;font-size:13px}.floor-context>.btn{margin-left:auto}.floor-inline-key{display:flex;gap:10px;flex-wrap:wrap}.floor-inline-key>span{display:flex;align-items:center;gap:4px}.floor-inline-key i{width:14px;height:4px;background:var(--line-color)}.floor-options-menu{max-height:65vh;overflow:auto}

/* Spatial floor navigation: physical coordinates stay unchanged. */
.factory-floor-scroll{height:clamp(360px,68vh,760px);overscroll-behavior:contain;cursor:grab;touch-action:pan-x pan-y;scrollbar-width:auto}.factory-floor-scroll.is-panning{cursor:grabbing;user-select:none}.factory-floor-canvas{min-height:0}.floor-navigation{display:flex;align-items:center;gap:4px;margin-left:auto}.floor-zoom-label{min-width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.floor-navigation .btn{min-width:38px}.floor-person{width:36px;min-height:44px;padding:2px 6px;background:transparent}.floor-person:hover,.floor-person:focus-visible{z-index:14;background:white;outline:2px solid var(--accent)}.floor-person:hover .floor-hover,.floor-person:focus-visible .floor-hover{display:block}.floor-person.tooltip-dismissed .floor-hover{display:none}.floor-person .floor-hover{width:260px;max-width:75vw}.floor-person .floor-hover small{font-size:12px;white-space:normal}.floor-person-hover{border-top-color:var(--accent)}.factory-floor-scroll:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(max-width:700px){.floor-navigation{margin-left:0}.floor-navigation .btn{min-height:44px}}

.factory-floor-canvas{margin-inline:auto}.tooltip-above .floor-hover{top:auto;bottom:calc(100% + 8px)}
/* Owner overview audit: grouped facts, restrained line identity, structured hover. */
.current-shift-summary .section-title{align-items:center;gap:10px;flex-wrap:wrap}main>.current-shift-summary[data-health=warning]>.section-title:first-child{background:var(--yellow,#fff1cd);border-left-color:var(--amber,#b78120)}main>.current-shift-summary[data-health=danger]>.section-title:first-child{background:var(--rose,#fceceb);border-left-color:var(--red,#ad413c)}main>.current-shift-summary[data-health=good]>.section-title:first-child{background:var(--mint);border-left-color:var(--green,#3d755c)}.shift-health{font-size:14px;flex:1}.shift-summary-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shift-summary-groups>section+section{border-left:1px solid var(--line);padding-left:16px}.shift-summary-groups h3{font-size:14px;margin:2px 0 6px;color:var(--muted)}.shift-summary-groups>section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.shift-summary-groups .shift-fact{border:0;background:transparent;padding:6px 0;min-height:58px;text-align:left;border-radius:4px;display:flex;flex-direction:column;gap:2px}.shift-summary-groups .shift-fact>span{font-size:14px}.shift-summary-groups .shift-fact strong{font-size:22px;line-height:1.2}.shift-summary-groups .shift-fact small{font-size:12px}.shift-summary-groups .shift-fact:hover{background:var(--mint)}
.factory-overview{margin:6px 0}.factory-overview>p{margin:4px 0 8px}.overview-line{background:color-mix(in srgb,var(--line-color) 3%,white);border-color:var(--line);border-left:3px solid var(--line-color)}.overview-line>b{background:transparent;color:var(--ink);padding:6px}.overview-line>b small{color:var(--muted)}.overview-line .overview-station{background:var(--white);border-color:var(--line)}.overview-station{border-top:2px solid color-mix(in srgb,var(--line-color) 65%,white)!important}.floor-context{font-size:14px;margin:3px 0;gap:12px}.factory-view-tabs{margin:4px 0}.factory-floor-scroll{margin-top:6px}
.floor-hover{width:300px;max-width:65vw;padding:12px}.floor-hover>.hover-facts{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;border-block:1px solid var(--line);padding:8px 0;margin:8px 0!important}.hover-facts>span{display:flex;flex-direction:column;gap:2px}.hover-facts small{font-size:12px;color:var(--muted)}.hover-facts b{font-size:16px}.floor-hover .hover-person{font-weight:600}.floor-hover .hover-activity{font-size:12px!important}.floor-area:hover,.floor-area:focus-visible{z-index:15}.floor-area:hover .floor-hover,.floor-area:focus-visible .floor-hover{display:block}.floor-area.tooltip-dismissed .floor-hover{display:none}.floor-area .store-hover{left:100%;top:0;transform:none;text-transform:none;font-weight:400;letter-spacing:0}.store-hover>.store-tip-row{display:flex;justify-content:space-between;gap:12px}.store-tip-row>b{white-space:nowrap}.floor-area:focus-visible{outline:3px solid var(--accent)}
#recipe-edit>.recipe-band{padding:16px;margin:12px 0;background:var(--white);border:1px solid var(--line);border-radius:10px}#recipe-edit .recipe-fields{grid-template-columns:minmax(120px,1fr) minmax(200px,2fr) 130px 110px;gap:14px}#recipe-edit label{margin:0;gap:6px;font-size:14px}#recipe-edit input,#recipe-edit select{width:100%;min-width:0;min-height:44px}#recipe-edit .recipe-input-row{display:grid;grid-template-columns:minmax(180px,1.2fr) 130px minmax(220px,1.5fr) 40px;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);align-items:end}#recipe-edit .recipe-input-row:last-child{border-bottom:0}#recipe-edit .recipe-route-edit>div{margin:6px 0}#recipe-edit>.btn.primary{margin-top:10px}
.plan-browse-toolbar{align-items:end;gap:8px}.plan-browse-toolbar .search{margin-left:auto;min-width:220px}.plan-date{font-size:12px;margin:0!important}.plan-date input{display:block;min-height:40px}.plan-date-hint{font-size:14px;color:var(--muted);margin:10px 0}.plan-shift-history{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.plan-shift-history h3{font-size:16px;margin:0 0 8px}.order-item-list{display:grid;gap:5px}.order-item-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center}.order-item-list small{grid-column:1/-1}.order-item-list .btn{justify-self:start}.supplier-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 0;border-block:1px solid var(--line)}.supplier-facts dt{font-size:14px;color:var(--muted)}.supplier-facts dd{font-size:16px;font-weight:600;margin:6px 0}.company-link{font-weight:700;text-align:left}.stock-attention{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.stock-attention .btn{font-size:14px}.page-toolbar{align-items:center}.page-toolbar .search{justify-self:center;width:min(100%,360px)}
@media(max-width:1000px){#recipe-edit .recipe-fields{grid-template-columns:1fr 1fr}#recipe-edit .recipe-input-row{grid-template-columns:minmax(150px,1fr) 100px 40px}#recipe-edit .recipe-input-row label:nth-child(3){grid-column:1/3;grid-row:2}#recipe-edit .recipe-input-row>button{grid-column:3;grid-row:1/3}.supplier-facts{grid-template-columns:1fr 1fr}.shift-summary-groups{gap:10px}.shift-summary-groups>section+section{padding-left:10px}}
@media(max-width:700px){.shift-summary-groups{grid-template-columns:1fr}.shift-summary-groups>section+section{border-left:0;padding:10px 0 0;border-top:1px solid var(--line)}.shift-summary-groups>section>div{grid-template-columns:1fr 1fr}.shift-health{flex-basis:100%}#modal:has(#recipe-edit){width:100vw!important}#recipe-edit>.recipe-band{padding:10px}.plan-browse-toolbar .search{margin:0;flex-basis:100%}.floor-hover{max-width:75vw}}
.factory-view-toolbar .product-picker summary{padding:10px}.factory-view-toolbar{align-items:center;min-height:0}.floor-context{padding:0 0 4px}.floor-context .btn{min-height:34px;padding:5px 8px}.factory-view-toolbar .floor-view-options{margin:0}.factory-view-toolbar .floor-view-options summary{margin:0}.factory-view-toolbar .product-picker{margin:0}
@media(min-width:1001px){#recipe-edit .recipe-route-edit{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}#recipe-edit .recipe-route-edit>div{grid-template-columns:22px minmax(0,1fr) 36px 36px;gap:6px}#recipe-edit .recipe-route-edit select{min-width:0}}
.stock-stats b>span{font-size:inherit;line-height:inherit;color:inherit}.plan-browse-toolbar .search{order:0;flex:1 1 230px;max-width:360px;margin-inline:auto}.recipe-products-toolbar .search{margin-inline:auto}.stock-attention{gap:6px}.stock-attention .btn{padding:7px 9px}

/* Owner scan hierarchy: status is meaningful; line colours identify routes only. */
.shift-summary-groups .shift-fact{border:1px solid transparent;border-radius:8px;padding:8px 10px;background:#f5f6f8;transition:border-color .15s}
.shift-summary-groups .shift-fact:hover{border-color:#7c8193}
.shift-fact[data-tone="attention"]{background:#fff5dc;border-color:#efce88}.shift-fact[data-tone="attention"] strong{color:#825100}
.shift-fact[data-tone="loss"]{background:#fff0eb;border-color:#eab8a7}.shift-fact[data-tone="loss"] strong{color:#9c3825}
.shift-fact[data-tone="progress"]{background:#eef4f2;border-color:#d3e2dc}.shift-fact[data-tone="progress"] strong{color:#205f4b}
.shift-summary-groups h3{border-bottom:2px solid #dfe3e9;padding-bottom:7px;margin-bottom:8px}
.top .shift-pill{max-width:none;flex-wrap:nowrap;align-items:center;gap:3px}.top .shift-pill-label{flex-direction:row;align-items:center;gap:8px;white-space:nowrap;min-height:36px}.top .shift-pill-label b{font-size:13px}.top .shift-pill-label span{font-size:12px;padding-left:8px;border-left:1px solid #c5cbd4}.top .shift-attention{white-space:nowrap}
.top-controls{align-items:center}.top-controls .compact-search{order:0}.top-controls .quick-trigger{order:1}.top-controls .shift-summary-button{order:2}.top-controls .header-approval{order:3}.top-controls [data-act="notifications"]{order:4}.top-controls [data-act="feature-guide"]{order:5}.top-controls .settings-trigger{order:6}
.overview-station.aligned-station{border-top-width:1px;position:relative}.aligned-station[data-priority="behind"]{border-color:#d8b365;background:#fffaf0}.aligned-station[data-priority="danger"]{border-color:#d99280;background:#fff5f1}.aligned-station[data-priority="missing"]{border-style:dashed;border-color:#a9adba}
.station-progress{display:block;height:5px;background:#e1e5e9;border-radius:5px;overflow:hidden;margin:0 0 6px}.station-progress i{display:block;height:100%;background:#5d7783}.aligned-station[data-priority="behind"] .station-progress i{background:#b88425}.aligned-station[data-priority="danger"] .station-progress i{background:#b8523c}.station-pace{margin-top:auto}
.floor-machine .floor-state{width:24px;height:24px;justify-content:center;padding:0;border-radius:50%;top:-8px;right:5px;box-shadow:0 0 0 2px white}.floor-state-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.floor-machine.activity-running .floor-state{background:#14834b;color:white}.floor-machine.activity-running .floor-state i{background:white;animation:none!important}.floor-machine.activity-paused .floor-state{background:#f0bd43}.floor-machine.activity-idle .floor-state{background:#e0e4e9}.floor-machine .machine-attention{background:#c48317;border:2px solid white}
.floor-area .store-hover{bottom:auto;width:320px;max-width:70vw;min-height:0;height:auto;line-height:1.4;white-space:normal;box-sizing:border-box;text-align:left;z-index:20;border-top:3px solid #657284}
.floor-area .store-hover>.store-tip-row{display:grid!important;grid-template-columns:minmax(0,1fr) max-content;gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid #e2e6eb;font-size:14px!important}.store-tip-row>span{min-width:0;font-weight:400}.store-tip-row>b{font-size:15px!important;white-space:nowrap;color:#172b3a}.floor-area .store-hover>strong{font-size:14px!important}.floor-area .store-hover>small{display:block;font-size:12px}
.selected-product-control{display:flex;align-items:center;gap:7px}.selected-product-control svg{width:16px;height:16px}
.orders-clean-table{width:100%;table-layout:auto}.orders-clean-table th:nth-child(1){width:25%}.orders-clean-table th:nth-child(2){width:30%}.orders-clean-table th:nth-child(3){width:24%}.order-customer-name{display:block;font-weight:600;margin:3px 0}.orders-clean-table .order-item-list>div{display:grid;grid-template-columns:minmax(90px,1fr) max-content;gap:0 12px;padding:6px 0;border-bottom:1px solid #e9ecf0}.orders-clean-table .order-item-list>div:last-child{border:0}.order-item-list>div>span{font-weight:750;white-space:nowrap}.orders-clean-table .order-item-list>div>small{grid-column:1/3}.orders-clean-table td{vertical-align:top}.orders-clean-table .order-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.expanded-stock-stats>div{border:1px solid #dce2e8;border-radius:9px;border-top:3px solid #a4b3bf;background:#f6f8fa}.expanded-stock-stats>div[data-kind="total"]{background:#edf3f3;border-color:#a7c5c2;border-top-color:#397970}.expanded-stock-stats>div[data-kind="total"] b{color:#205f54}.expanded-stock-stats>div[data-kind="attention"]{background:#fff5db;border-color:#e8c877;border-top-color:#c59227}.expanded-stock-stats>div[data-kind="attention"] b{color:#845600}
@media(max-width:1100px){.top .shift-pill-label{gap:5px}.top .shift-pill-label span{padding-left:5px}.top-controls .shift-summary-button span{display:none}.top-controls [data-act="feature-guide"]{display:none}}
@media(max-width:700px){.top .shift-pill{max-width:100%;overflow-x:auto}.top .shift-pill-label{flex-shrink:0}.top .shift-pill-label b{font-size:12px}.top .shift-pill-label span{font-size:12px}.orders-clean-table{min-width:700px}.floor-area .store-hover{max-width:76vw}.shift-summary-groups .shift-fact{min-height:72px}}

.floor-machine .machine-attention.needs-review{background:#bd4339}
.orders-clean-table .order-item-list>div{grid-template-columns:minmax(60px,1fr) max-content max-content;align-items:center;gap:8px;min-height:38px;padding:3px 0}.orders-clean-table .order-item-list>div>small{grid-column:auto;margin:0;color:#616a78}.orders-clean-table .order-item-list .btn{min-height:32px;padding:3px 0}.orders-clean-table td{padding-block:12px}
.shift-summary-groups>section{display:flex;flex-direction:column}.shift-summary-groups>section>div{flex:1;grid-auto-rows:1fr}

/* Page-specific owner metrics share a compact, consistent reading order. */
.page-summary.owner-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0;padding:0;overflow:hidden;background:white;border:1px solid #d5dce4;border-radius:12px;margin-bottom:14px}
.owner-metrics>.owner-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:12px 14px;border:0;border-right:1px solid #e0e5eb;min-width:0;background:#fbfcfd;box-shadow:inset 0 3px #a9b5c2}.owner-metrics>.owner-metric:last-child{border-right:0}
.owner-metric .metric-title{display:flex;align-items:center;gap:7px;min-height:22px}.owner-metric .metric-title svg{width:17px;height:17px;color:#536477}.owner-metric .metric-title small{font-size:14px;line-height:1.3;color:#334153}.owner-metrics .owner-metric strong{font-size:25px;line-height:1.15;font-variant-numeric:tabular-nums;color:#223244}.owner-metrics .stat-detail{font-size:12px;line-height:1.4;color:#596576;margin-top:auto;white-space:normal}
.owner-metrics>.owner-metric[data-tone=warning]{background:#fff8e8;box-shadow:inset 0 3px #cb9c3e}.owner-metric[data-tone=warning] strong{color:#835500}.owner-metrics>.owner-metric[data-tone=danger]{background:#fff2ee;box-shadow:inset 0 3px #c36750}.owner-metric[data-tone=danger] strong{color:#a13d28}.owner-metrics>.owner-metric[data-tone=good]{background:#eff6f2;box-shadow:inset 0 3px #5d9278}.owner-metric[data-tone=good] strong{color:#2d684d}
.material-cost-context{display:block;font-size:13px!important;margin-top:4px;color:#596576}.material-cost-context b{color:#8b5421;font-size:15px}.attention-filter[data-attention=yes]:not(.active){background:#fff6df;border-color:#dabc72}.attention-filter[data-attention=yes] b{color:#805300}
.trend-summary-visible{margin-top:12px}.trend-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.trend-kpis>div{display:flex;flex-direction:column;gap:5px;padding:11px 13px;border:1px solid #dce2e8;border-radius:8px;background:#f6f8fa}.trend-kpis>div>span{font-size:14px;color:#344356}.trend-kpis>div>strong{font-size:24px;font-variant-numeric:tabular-nums}.trend-kpis>div>small{font-size:12px;line-height:1.4}.trend-kpis>div[data-tone=warning]{background:#fff7e4;border-color:#dec17f}
.close-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.close-facts>span{display:flex;flex-direction:column;align-items:flex-start;padding:10px 12px;border:1px solid #dce2e8;border-radius:8px;background:#f6f8fa;font-size:13px}.close-facts>span>b{font-size:24px}.close-facts>span.warning{background:#fff6df;border-color:#dfbd6e;color:#795000}.close-facts>span.good{background:#edf5ef;border-color:#b5d0bd;color:#2c6544}
.floor-scan-status{display:flex;gap:5px;align-items:center}.floor-scan-status>span{margin-left:7px;padding:3px 6px;border-radius:5px}.floor-context .warning{background:#fff1ca;color:#7b5100}
@media(max-width:1000px){.page-summary.owner-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-metrics>.owner-metric{border-bottom:1px solid #e0e5eb}.trend-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.owner-metrics>.owner-metric{padding:10px}.owner-metrics .owner-metric strong{font-size:22px}.metric-title svg{display:none}.owner-metric .metric-title small{font-size:13px}.trend-kpis{grid-template-columns:1fr 1fr}.trend-kpis>div{padding:9px}.trend-kpis>div>strong{font-size:21px}}

@media(min-width:1200px){.trend-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.trend-kpis>div{min-height:108px;justify-content:flex-start}.trend-kpis>div>strong{margin:4px 0 0}.trend-kpis>div>small{margin-top:auto}}

/* Approved floor preview: one control row, one attention strip, details stay on the map. */
body[data-page="map"] .factory-view-toolbar{gap:8px;margin-bottom:8px}.factory-view-toolbar .factory-view-tabs{margin:0}.factory-view-toolbar .product-picker{margin-left:auto}.factory-view-toolbar .floor-view-options{margin-left:0}
.floor-attention-strip{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:6px 9px;background:#fff9ed;border:1px solid #ebd8ae;border-left:3px solid #b98a33;border-radius:8px;margin:0 0 8px}.floor-attention-strip>strong{display:flex;align-items:center;gap:6px;font-size:13px;margin-right:6px}.floor-attention-strip>strong svg{width:17px;height:17px;color:#91630f}.floor-attention-strip .btn{min-height:32px;padding:4px 10px;font-size:12px;cursor:pointer;border:1px solid #c7b990;border-radius:6px;transition:background-color .15s,border-color .15s,box-shadow .15s}.floor-attention-strip .btn:not(.active){background:#fff;color:#48402f;box-shadow:0 1px 2px #58471d12}.floor-attention-strip .btn:not(.active):hover{background:#fff0c9;border-color:#91630f;box-shadow:0 2px 4px #58471d20}.floor-attention-strip .btn:focus-visible{outline:2px solid #77520d;outline-offset:2px}.floor-attention-strip .btn.active{background:#77520d;border-color:#77520d;color:#fff;box-shadow:inset 0 -2px #503607}.floor-attention-strip .btn.active:hover{background:#634409}.floor-filter-result{margin-left:auto;font-size:12px;color:#626b77}
.floor-layout-shell{position:relative}.floor-layout-shell .factory-floor-scroll{margin:0;height:clamp(400px,70vh,780px);border:2px solid #dce2e9;background:#fcfdfe;padding-bottom:46px}.floor-layout-shell .factory-floor-canvas{border:2px solid #dce2e9;background-color:#fff;background-image:linear-gradient(#f2f4f7 1px,transparent 1px),linear-gradient(90deg,#f2f4f7 1px,transparent 1px)}.floor-layout-shell .floor-area{background:#f7f9fbd9;border-color:#d7dfe8}.floor-layout-shell .floor-area:hover,.floor-layout-shell .floor-area:focus-visible{background:#f1f5fa}
.floor-floating-controls{position:absolute;bottom:10px;right:12px;left:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;z-index:16}.floor-floating-controls .floor-navigation{pointer-events:auto;display:flex;gap:3px;background:#fff;border:1px solid #dbe1e8;border-radius:9px;padding:3px;box-shadow:0 2px 8px #25334412}.floor-floating-controls .btn{font-size:12px;min-height:32px;min-width:32px;padding:4px 7px;border:0;box-shadow:none}.floor-status-key{display:flex;align-items:center;gap:5px;font-size:11px;background:#fffffff0;padding:5px 7px;border-radius:6px;color:#626b77}.floor-status-key i{width:7px;height:7px;background:#14834b;border-radius:50%;margin-left:5px}.floor-status-key i.paused{background:#c8972c;border-radius:1px}.floor-status-key i.idle{background:#929ca8}
.floor-line-summary{position:absolute;display:flex;align-items:baseline;gap:10px;white-space:nowrap;padding:4px 7px;border:0;border-left:4px solid var(--line-color);border-radius:3px;background:#fffffff0;text-align:left;z-index:1;color:#263340;max-width:85%;font-size:12px;cursor:pointer}.floor-line-summary b{font-size:14px}.floor-line-summary small{display:inline;font-size:11px;font-weight:400;color:#697582}.floor-line-summary em{font-style:normal;color:#875b10}.floor-line-summary strong{font-weight:650}.floor-line-summary:hover{background:#eef1f7}.floor-line-summary:focus-visible{outline:3px solid var(--accent)}
.floor-muted{opacity:.22;transition:opacity .15s}.floor-muted:hover,.floor-muted:focus-visible{opacity:1}.floor-spotlight{box-shadow:0 0 0 3px #ddb34e75}.floor-line-summary.floor-muted{pointer-events:auto}.factory-floor-canvas.is-editing .floor-machine{opacity:1}
@media(max-width:700px){.floor-filter-result{flex-basis:100%;margin-left:0}.floor-floating-controls{flex-wrap:wrap;bottom:8px;gap:4px}.floor-status-key{display:none}.floor-floating-controls .floor-navigation{margin-left:auto}.floor-floating-controls .btn{min-height:44px}.floor-layout-shell .factory-floor-scroll{height:65vh;min-height:400px}.floor-attention-strip .btn{min-height:40px}.floor-attention-strip>strong{flex-basis:100%}.factory-view-toolbar .product-picker{margin-left:0}}
@media(prefers-reduced-motion:reduce){.floor-muted{transition:none}}

/* One active entry in the context of this station's shift. */
.entry-context{margin:0 0 10px}.entry-context small{display:block;margin-top:4px}
.entry-instruction{background:#eeedf8;border-left:3px solid #6962a5;padding:9px 12px;font-size:14px}
.round-entry-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:5px;font-size:14px}
.round-entry-table th:first-child{width:27%}.round-entry-table th{text-align:left;padding:5px}
.round-entry-table td{vertical-align:top;padding:10px;border:1px solid #d8dce3;border-radius:7px}
.round-entry-table small{display:block;font-size:12px;line-height:1.4;margin-top:5px;color:#59616d;overflow-wrap:anywhere}
.round-entry-table .entry-saved td{background:#f0f2f5}.round-entry-table .entry-future td{background:#f4f5f7;color:#67717e}
.round-entry-table .entry-current td{background:#fff;border-color:#7770ab;box-shadow:inset 0 2px #7770ab}
.round-entry-table input{width:100%;min-width:0;box-sizing:border-box;padding:8px;font-size:24px;color:#413a7b;background:#f5f4fc;border:1px solid #aaa5c8;border-radius:6px}
.entry-live-total{padding:10px 12px;background:#eeedf8;border-radius:7px;font-size:16px;font-weight:650;margin:8px 0 12px}
.entry-submit{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media(max-width:600px){.round-entry-table{border-spacing:3px;font-size:13px}.round-entry-table td{padding:6px}.round-entry-table input{font-size:21px;padding:7px 4px}.round-entry-table th:first-child{width:26%}.round-entry-table small{font-size:11px}.entry-context{font-size:14px}}
/* Guided round: one decision per view, progress is context rather than competing navigation. */
.round-flow .guided-question{max-width:720px;margin:0 auto;padding:24px 12px;text-align:center}.round-flow .guided-question h2{font-size:clamp(1.35rem,2.5vw,1.8rem);margin:10px 0}.round-flow .guided-question p{max-width:540px;margin:10px auto 20px;line-height:1.5}.round-flow .guided-question>.btn{min-height:48px;min-width:220px}.round-flow .guided-question>small{display:block;margin:14px 0 0}.round-flow .guide-progress{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.round-flow .guide-progress span{padding:8px 12px;background:var(--wash,#f3f4f6);border-radius:12px;font-size:14px}.round-flow .guide-progress .active{background:#efefff;color:#403c88;box-shadow:inset 0 0 0 1px #9d98d6}.round-flow .guide-progress .complete{color:#23684a;background:#eef7f1}.round-flow .worker-secondary{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;border-top:1px solid #e3e4e9;padding-top:12px}.round-step-context{font-size:14px;color:#535963;margin:8px 0 14px}.round-focus-number{display:flex;align-items:center;gap:16px;background:#fff7e6;border:1px solid #ebd59d;border-radius:16px;padding:16px}.round-focus-number strong{font-size:2.4rem}.rejection-allocations section{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid #e1e4e8}.rejection-allocations label{margin:0}.rejection-register{margin-bottom:20px}.rejection-register td small{display:block;margin:4px 0}.round-material-progress{display:flex;align-items:center;gap:6px;margin:12px 0}.round-material-progress span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef0f3;color:#59616c}.round-material-progress span.active{background:#4f4a9a;color:white}.round-material-progress span.complete{background:#e5f3eb;color:#23684a}.round-material-progress b{margin-left:auto}.material-entry-drawer .batch-material-table{table-layout:fixed}.material-entry-drawer .batch-material-table th:nth-child(1){width:38%}.material-entry-drawer .batch-material-table th:nth-child(2){width:28%}.material-entry-drawer .batch-material-table th:nth-child(3){width:34%}.material-entry-drawer .batch-material-table td{vertical-align:top}.material-entry-drawer .batch-left input{font-size:1.6rem;font-weight:700;color:#403c88}.material-entry-drawer .quantity-meaning{font-size:14px;line-height:1.5}.entry-current input{color:#403c88}.round-location h2{margin:4px 0}.round-location p{margin:4px 0}.round-location{padding:12px 16px}.round-flow .large-icon{margin:auto}
@media(max-width:650px){.rejection-allocations section{grid-template-columns:1fr}.round-flow .guide-progress{gap:4px}.round-flow .guide-progress span{font-size:13px;padding:7px}.round-flow .guided-question{padding:18px 4px}.material-entry-drawer .batch-material-table,.material-entry-drawer .batch-material-table tbody,.material-entry-drawer .batch-material-table tr,.material-entry-drawer .batch-material-table td{display:block;width:100%}.material-entry-drawer .batch-material-table thead{display:none}.material-entry-drawer .batch-material-table td{padding:10px 0;border:0}.material-entry-drawer .batch-material-table td:before{display:none}.round-entry-table td{padding:8px 5px}.round-entry-table input{min-width:0;width:100%}}
.worker-arrival{display:flex;align-items:center;gap:12px;padding:12px 4px;margin-bottom:12px}.worker-arrival h2{font-size:1.3rem;margin:4px 0}.worker-arrival>div:nth-child(2){flex:1}.worker-arrival .compact-round{display:flex;gap:16px;margin:0;padding:0;border:0;background:none;min-height:0}.worker-arrival .compact-round span{display:flex;flex-direction:column;gap:4px;font-size:14px}.round-flow.panel{margin-top:0}.worker-tools{margin-top:12px}.worker-tools>.toolbar{margin-top:12px}.round-flow .guided-question{padding:18px 12px}.worker-arrival>.large-icon{flex-shrink:0}.rejection-register .btn{min-height:40px}
@media(max-width:650px){.worker-arrival{flex-wrap:wrap;gap:10px}.worker-arrival .compact-round{flex-basis:100%;padding-left:0;justify-content:space-between}.worker-arrival>.icon-button{position:absolute;right:20px}.worker-arrival h2{font-size:1.2rem}.round-flow .worker-policy{padding:10px}.round-flow .guided-question{padding:16px 4px}}

/* Compact inspection context: colour is paired with status words. */
.inspection-scope{display:grid;grid-template-columns:1fr 1fr;gap:16px}.inspection-summary{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 0;border-top:1px solid var(--line);text-align:left}.inspection-summary small{flex-basis:100%}.inspection-summary span{font-size:14px}.inspection-queue{border-top:1px solid var(--line);padding-top:12px;text-align:left}.inspection-confirm{display:flex;align-items:center;gap:10px}.inspection-confirm input{width:24px;height:24px}.inspection-queue .round-issue{align-items:center}.inspection-queue .round-issue small{display:block}@media(max-width:600px){.inspection-scope{grid-template-columns:1fr;gap:8px}}

/* Production input methods share one review/save path. */
.entry-methods{display:flex;align-items:center;gap:10px;margin:12px 0}.entry-methods>span{font-size:14px;color:var(--muted)}.entry-methods .btn{min-height:44px}.entry-upload{display:block;padding:16px;background:white;border:1px dashed var(--accent);border-radius:12px}.entry-upload input{display:block;max-width:100%;margin-top:10px}.entry-photo-preview{display:block;max-width:100%;max-height:260px;object-fit:contain;margin:12px auto}.entry-sample-sheet{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:white;border:1px solid var(--line);border-radius:8px}.entry-sample-sheet>b{grid-column:1/-1}.entry-sample-sheet strong{font-size:24px;margin-left:12px}#entry-capture-review .quantity-pair,#entry-correction .quantity-pair{gap:16px}#modal audio{max-width:100%;margin:12px 0}

.entry-sample-sheet>span:first-of-type{grid-column:1/-1;font-size:14px;color:var(--muted)}

/* Capture stays inside the existing drawer and never introduces another shell. */
.intake-flow{max-width:540px;margin:0 auto;display:grid;gap:16px}.intake-flow .entry-context{margin:0}.intake-prompt{font-size:18px;font-weight:650;margin:0}.intake-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.intake-options .btn{min-height:60px;display:flex;flex-direction:column;justify-content:center;gap:5px}.intake-options .selected{background:var(--accent-soft,#efeffb);border-color:var(--accent);color:var(--ink);box-shadow:inset 0 -3px var(--accent)}.intake-source{border:1px solid var(--line);border-radius:12px;background:var(--paper,#fff);padding:16px}.intake-source-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:15px}.intake-paper{margin-top:12px}.intake-paper>b{display:block;border-bottom:2px solid var(--ink);padding:8px 0}.intake-paper>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.intake-paper strong{text-align:right}.intake-disclosure{font-size:14px;color:var(--muted);margin-bottom:0;line-height:1.5}.intake-primary{display:flex;gap:10px;align-items:center}.intake-primary>.primary{flex:1;min-height:52px}.intake-own-file{font-size:14px}.intake-own-file input{width:100%;font-size:16px}.intake-own-file img{max-width:100%;max-height:220px;object-fit:contain}.intake-own-file audio{width:100%}.intake-own-file p{overflow-wrap:anywhere}.intake-source blockquote{margin:12px 0;font-size:18px;line-height:1.55}.intake-wave{display:flex;gap:5px;align-items:center;justify-content:center;height:48px;margin-top:12px}.intake-wave i{height:var(--h);width:5px;background:var(--accent);border-radius:6px}.intake-reading{text-align:center;padding:40px 16px}.intake-orbit{width:40px;height:40px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;margin:auto;animation:intake-turn .7s linear infinite}.intake-result-note{padding:12px 14px;border-left:3px solid var(--accent);background:var(--accent-soft,#efeffb);font-size:14px;line-height:1.5}.intake-dialog .intake-flow .btn{white-space:normal}.entry-context small{display:block}.entry-methods{flex-wrap:wrap}.entry-methods small{color:var(--muted)}
@keyframes intake-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.intake-orbit{animation:none}}
@media(max-width:600px){#modal.intake-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}.intake-flow{gap:14px}.intake-options .btn{min-height:64px;font-size:16px}.intake-source{padding:12px}.intake-primary{position:sticky;bottom:0;padding-block:10px;background:var(--paper,#fff);z-index:1}.intake-paper>div{font-size:16px}.intake-paper strong{max-width:60%}.entry-current input{font-size:22px!important;min-height:50px}.intake-result-note{margin-block:12px}}
.entry-schedule-toggle{display:none!important}
@media(max-width:600px){.entry-schedule-toggle{display:inline-flex!important;margin:0 0 10px!important}#output:not(.show-entry-schedule) .entry-saved,#output:not(.show-entry-schedule) .entry-future{display:none}.entry-submit{position:sticky;bottom:0;background:var(--paper,#fff);padding:12px 0;z-index:2;gap:8px}.entry-submit .primary{flex:1;min-height:50px}.round-entry-table th{font-size:13px!important}.production-reasons{grid-template-columns:1fr!important}.entry-instruction{font-size:14px!important}.entry-live-total{font-size:17px!important}}
@media(max-width:600px){.production-confirm-table thead{display:none}.production-confirm-table tbody{display:grid;gap:12px}.production-confirm-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:var(--paper,#fff);overflow:hidden}.production-confirm-table td{padding:10px!important;font-size:17px!important;min-width:0;white-space:normal!important}.production-confirm-table td:first-child{grid-column:1/-1;font-size:15px!important;font-weight:650;border-bottom:1px solid var(--line)}.production-confirm-table td[data-label]:before{content:attr(data-label);display:block;font-size:13px;font-weight:400;margin-bottom:6px;color:var(--muted)}.production-confirm-table td:last-child{background:var(--accent-soft,#efeffb)}}
/* Batch entry: compare and edit together, without per-record wizard screens. */
.material-batch-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.batch-row-context summary{font-size:14px;cursor:pointer}.batch-row-context small{display:block;font-size:14px}.batch-material-table tr{border-bottom:1px solid var(--line)}.plan-batch-products select{min-width:150px}.plan-batch-products input{min-width:90px}.plan-quantity-unit{display:flex;align-items:center;gap:8px}.plan-quantity-unit input{width:100px}.plan-station-table{table-layout:fixed;min-width:920px}.plan-station-table th:first-child{width:19%}.plan-station-table th:nth-child(2){width:19%}.plan-station-table th:nth-child(6){width:17%}.plan-station-table input,.plan-station-table select{width:100%;min-width:0;min-height:44px;padding:8px;font-size:14px}.plan-station-table td{padding:9px 6px;vertical-align:top}.plan-station-table .tag{white-space:normal;font-size:13px}.plan-station-table small{display:block}.plan-batch-products td{vertical-align:middle;padding:8px}.plan-batch-products td:last-child .btn{margin:2px}#plan-capacity-summary{padding-top:12px;font-size:14px}.plan-image-preview{max-width:100%;max-height:420px;object-fit:contain;display:block;margin:12px auto}.plan-image-preview:is(iframe){width:100%;height:360px}.batch-material-table .batch-others summary{font-size:14px}.material-entry-drawer .batch-material-table td{vertical-align:top}
@media(min-width:701px){.material-entry-drawer .batch-material-table{display:table;width:100%}.material-entry-drawer .batch-material-table thead{display:table-header-group}.material-entry-drawer .batch-material-table tbody{display:table-row-group}.material-entry-drawer .batch-material-table tr{display:table-row}.material-entry-drawer .batch-material-table td{display:table-cell;width:auto}}
@media(max-width:700px){.material-entry-drawer .batch-material-table tr{display:grid;grid-template-columns:minmax(0,1fr) 136px;gap:6px 12px;padding:12px 0}.material-entry-drawer .batch-material-table td{display:block;width:auto;padding:0!important;min-width:0}.material-entry-drawer .batch-material-table td:nth-child(3){grid-column:1/-1}.material-entry-drawer .batch-left{display:block}.material-entry-drawer .batch-left>span{display:block;font-size:13px;margin-bottom:5px}.material-entry-drawer .batch-left>div{width:100%}.material-entry-drawer .batch-left input{width:78px;min-width:0;font-size:22px}.material-entry-drawer .batch-left select{width:54px;min-width:50px}.material-entry-drawer .batch-material-table td:first-child>b{font-size:16px;line-height:1.35}.material-entry-drawer .batch-row-context small{font-size:14px!important}.material-entry-drawer .batch-material-module{padding:8px 12px!important}.material-entry-drawer .batch-others summary{padding:4px 0;min-height:32px}.material-entry-drawer .batch-others summary small{display:none}.material-entry-drawer .batch-others[open] summary small{display:block}.material-batch-toolbar{font-size:15px}.material-entry-drawer .quantity-confirm{font-size:14px}.material-entry-drawer .material-save-bar{position:sticky;bottom:0;background:var(--paper,#fff);padding:12px 0}.material-entry-drawer .material-save-bar .primary{flex:1;min-height:48px}}

@media(min-width:1100px){#production-plan-edit .plan-schedule{display:grid;grid-template-columns:1fr .8fr 1fr 1.2fr .7fr}#production-plan-edit .plan-schedule>label{grid-column:auto}}

.material-entry-drawer .batch-row-context{margin:5px 0 0}.material-entry-drawer .batch-others{margin:0}.material-entry-drawer .batch-others summary{min-height:32px}

.intake-pdf{width:100%;height:320px;border:1px solid var(--line);border-radius:12px}

#modal.intake-batch-dialog{height:auto!important;min-height:0;max-height:calc(100dvh - 24px)!important;inset:12px 0 auto auto;width:min(1000px,94vw)!important}#intake-table-form table{width:100%;table-layout:fixed;min-width:620px}#intake-table-form th:last-child{width:78px}#intake-table-form input{width:100%;min-width:0;font-size:16px;min-height:44px}#intake-table-form td{padding:8px}#intake-table-form .toolbar{margin-top:12px}

/* Restrained colour is confined to input-method icons, not whole pages. */
.btn.input-method{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:6px 10px;white-space:nowrap}.input-method-icon{display:grid;place-items:center;width:27px;height:27px;flex:none;border-radius:8px;background:var(--accent-soft,var(--mint));color:var(--accent)}.input-method-icon svg{width:19px;height:19px}.input-method-voice .input-method-icon{background:#e9f4f0;color:#256752}.input-method-table .input-method-icon{background:#fff3dc;color:#805b17}.input-method-text .input-method-icon{background:#edf0f4;color:#465265}.intake-options .btn.input-method{flex-direction:row;min-height:48px;gap:7px}.intake-options .selected{box-shadow:inset 0 -2px var(--accent)}@media(max-width:600px){.btn.input-method{min-height:44px}.intake-options .btn.input-method{min-height:52px;font-size:15px;padding:6px}.input-method-icon{width:26px;height:26px}}

/* Action hierarchy: neutral task icons; colour belongs only to entry methods/status. */
.action-symbol{width:18px;height:18px;vertical-align:middle;flex:none;pointer-events:none}.btn[data-intent]{display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.primary[data-intent]{min-height:44px}.btn.primary[data-intent=save]{font-weight:650}.btn[data-intent]:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}.upload-symbol{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-right:7px;color:var(--accent)}.file-entry input[type=file]{display:block;width:100%;margin-top:8px;min-height:44px;font-size:14px}.file-entry input[type=file]::file-selector-button{font:inherit;padding:9px 12px;margin-right:10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);cursor:pointer}.entry-methods{display:flex;align-items:center;gap:7px}.material-batch-toolbar .entry-methods{flex:none}.btn.input-method.primary{background:var(--white);color:var(--ink);border-color:var(--line);box-shadow:none}.btn.input-method.primary:hover{border-color:var(--accent)}

/* Inventory: compact shared time context, neutral major bands and signed movement cues. */
.inventory-entry-time{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#f2f4f7;border:1px solid #dce1e7;border-radius:10px;margin:10px 0 16px;font-size:13px}
.inventory-entry-time label{display:flex;align-items:center;gap:8px;margin:0}.inventory-entry-time input{width:auto;min-height:40px}.inventory-entry-time details{margin-left:auto}.inventory-entry-time span{color:#626770}
.stock-ledger-band{padding:16px;border:1px solid #dbe0e6;border-top:3px solid #7771ad;background:#fff;border-radius:12px;margin:12px 0}.stock-ledger-band h3{margin:0 0 10px}.inventory-filters{align-items:center;margin:12px 0}.inventory-filters label{display:flex;align-items:center;gap:8px;margin:0}.inventory-filters select{max-width:330px}.stock-ledger-page table small{display:block;margin-top:4px}.movement-in{color:#256344}.movement-out{color:#9a5426}.inventory-movements td{vertical-align:top}.stock-ledger-page .page-toolbar{display:flex!important;flex-wrap:wrap;gap:10px;align-items:center}.stock-ledger-page .page-toolbar .tabs{display:flex;flex-wrap:nowrap;flex:1 1 auto;min-width:0}.stock-ledger-page .page-toolbar .search{flex:0 1 230px;min-width:180px;margin:0}.stock-ledger-page .tabs .btn{white-space:nowrap;padding:9px 10px}.stock-ledger-page .page-add{flex-wrap:nowrap;margin-left:auto}.stock-ledger-page .stock-stats{margin:0 0 12px;gap:8px}.stock-ledger-page .stock-stats>div{min-width:0;padding:9px 11px;gap:3px}.stock-ledger-page .stock-stats>div>span{min-height:0;font-size:12px}.stock-ledger-page .stock-stats b{font-size:22px;line-height:1.2}.stock-ledger-page .stock-stats b>span{min-height:0}.stock-ledger-page .inventory-filters{margin:8px 0 12px}.stock-ledger-page tbody td{padding-block:10px}
@media(max-width:600px){.inventory-entry-time{gap:6px}.inventory-entry-time label{width:100%;justify-content:space-between}.inventory-entry-time details{margin-left:0}.inventory-entry-time input{max-width:220px}.inventory-filters{flex-wrap:wrap}.inventory-filters select{max-width:220px}}

@media(max-width:600px){.stock-ledger-page .page-toolbar .tabs{max-width:100%;overflow:auto}.stock-ledger-page .page-toolbar .search{flex:1 1 100%;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.stock-ledger-page .page-add{width:100%;flex-wrap:wrap;gap:5px}.stock-ledger-page .inventory-filters label{width:100%;min-width:0;flex-direction:column;align-items:stretch}.stock-ledger-page .inventory-filters select{width:100%;max-width:100%;min-width:0}.stock-ledger-page .stock-stats b{font-size:19px}}

/* Rail labels render outside its overflow container. Worker bottom labels stay visible. */
body:not([data-role="worker"]) .rail-btn>span{display:none!important}
.nav-destination-tooltip{position:fixed;z-index:10000;max-width:240px;padding:9px 13px;border:1px solid #454953;border-radius:8px;background:#24272e;color:#fff;box-shadow:0 4px 14px #18202b26;font-size:14px;font-weight:600;line-height:1.3;white-space:normal;pointer-events:auto}
.nav-destination-tooltip[hidden]{display:none}

.closing-production-ledger{min-width:720px}.closing-production-ledger td{vertical-align:top}.closing-production-ledger small{display:block;margin-top:4px}.closing-production-ledger .closing-station-heading th{background:#ececf3;padding:10px 12px;color:#272933}.closing-production-ledger .closing-station-heading small{display:inline;margin-left:10px;font-weight:400}.closing-production-ledger .closing-saved td{background:#f0f1f3;color:#5b616b}.closing-production-ledger .closing-final td{background:#fff;border-top:2px solid #8e88bc}.closing-production-ledger .closing-final input{background:#fff;border:1px solid #969da9;min-height:44px;width:100%;min-width:100px}.closing-production-ledger .closing-final label{margin:0;font-size:13px}.closing-production-ledger .closing-total{color:#35344b;min-height:36px}.closing-production-ledger .closing-total b{font-size:15px}

/* Flow audit: keep validation visible and allocation controls aligned. */
#dialog-error:empty{display:none}#dialog-error:not(:empty){padding:12px 14px;margin:8px 0 14px;border:1px solid #dca59f;border-left:4px solid #a63e32;border-radius:8px;background:#fff3f1;font-size:14px;line-height:1.5}
.rejection-allocations section{grid-template-columns:110px minmax(0,1fr);align-items:start;gap:12px}.rejection-allocations section label:nth-child(n+3){grid-column:2}.rejection-allocations input,.rejection-allocations select{width:100%;min-width:0}
@media(max-width:600px){.rejection-allocations section{grid-template-columns:90px minmax(0,1fr)}.rejection-allocations section label:nth-child(n+3){grid-column:1/-1}}

@media(max-width:600px){
 .inventory-entry-time{padding:8px 10px;gap:5px;margin:8px 0 10px}
 .inventory-entry-time label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;white-space:nowrap;font-size:13px}
 .inventory-entry-time input[type=datetime-local]{width:100%;max-width:none;min-width:0;font-size:14px;min-height:40px}
 .inventory-entry-time>span{font-size:12px;line-height:1.35}
 .inventory-entry-time details{margin:0;width:100%}.inventory-entry-time summary{min-height:28px;font-size:12px;padding:3px 0}
 .inventory-entry-time details input{width:100%;max-width:none;min-width:0}
 .material-entry-context{gap:2px;margin:8px 0}.material-entry-context small{font-size:12px;line-height:1.4}
 .material-batch-toolbar{margin:8px 0}.material-entry-drawer .quantity-meaning{margin:8px 0 10px;padding:10px;font-size:13px}
}

.entry-task-list{display:grid;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.entry-task{display:grid;grid-template-columns:26px minmax(0,1fr) 12px;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink);padding:14px;text-align:left}.entry-task:last-child{border-bottom:0}.entry-task:hover,.entry-task:focus-visible{background:#f1f1fa}.entry-task b{font-size:15px}.entry-task small{font-size:13px;line-height:1.45;margin-top:4px}.entry-task>.icon{color:#555094}.entry-trigger{white-space:nowrap}.entry-trigger>.icon{color:#555094}
@media(max-width:600px){.entry-trigger{font-size:12px!important;padding:7px!important;gap:4px!important}.entry-trigger>.icon{width:17px;height:17px}}

.entry-shortcut-icons{display:flex;align-items:center;gap:2px}.entry-shortcut-icons .input-method-icon{display:flex;width:23px;height:23px;padding:3px;border-radius:6px}.entry-shortcut-icons svg{width:17px;height:17px}.entry-shortcut-icons .input-method-photo{color:#635b9e;background:#eeebfa;border-radius:6px}.entry-shortcut-icons .input-method-voice{color:#367560;background:#e8f4ef;border-radius:6px}.entry-shortcut-icons .input-method-table{color:#8a651f;background:#fbf2dc;border-radius:6px}@media(max-width:600px){.entry-shortcut-icons>span:nth-child(n+2){display:none}}
/* Planning starts with products and dates; machine settings remain available. */
#production-plan-edit .plan-schedule{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-machine-review>summary,.plan-adjustments>summary{font-size:16px;padding:3px 0}.plan-machine-review>summary small,.plan-adjustments>summary small{font-weight:400;font-size:13px;margin:4px 0 0}.plan-machine-review[open]>.section-title{margin-top:16px}.plan-machine-review:not([open]),.plan-adjustments:not([open]){padding:12px 16px}.plan-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:14px 0}.plan-answer-grid>div+div{border-left:1px solid var(--line);padding-left:20px}.plan-answer-grid b{font-size:16px}.plan-answer-grid p{font-size:15px;line-height:1.6;margin:6px 0}.recipe-band>details .recipe-band,details.recipe-band>.recipe-band{border:0;box-shadow:none;margin:12px 0 0;padding:0;background:transparent}@media(max-width:650px){#production-plan-edit .plan-schedule{grid-template-columns:1fr 1fr}.plan-answer-grid{grid-template-columns:1fr;gap:12px}.plan-answer-grid>div+div{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}}

.entry-attribution{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-size:.875rem;padding:.35rem 0;color:var(--muted);}.entry-attribution b{color:var(--ink);}.entry-attribution .icon{width:1rem;height:1rem;}

.time-edited{border:0;background:transparent;color:inherit;font-weight:800;font-size:1rem;padding:0 .3rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.inventory-entry-time #inventory-time-state:empty{display:none;}
/* Owner trends: graphs visible, one filter bar, compact comparisons with exact tables. */
.trends-workspace{display:grid;gap:16px}.trends-controls .section-title{margin-bottom:12px}.trends-controls h2{font-size:1.2rem}.trends-controls .trend-filters{display:flex;gap:12px;flex-wrap:wrap;margin:0}.trends-controls label{flex:1;min-width:130px}.trend-owner-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.trend-owner-kpis>div{border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px;background:white;padding:12px;display:flex;flex-direction:column;gap:5px;min-width:0}.trend-owner-kpis>div[data-tone=warning]{background:#fff9ec;border-top-color:#a77b24}.trend-owner-kpis strong{font-size:1.35rem}.trend-owner-kpis small{font-size:.8rem;color:var(--muted)}.trend-main-toolbar{justify-content:space-between;align-items:end;margin-bottom:16px}.trend-main-toolbar label{margin:0;min-width:150px}.trend-main>h2{font-size:1.25rem;margin-bottom:6px}.trend-chart-pair{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;margin:20px 0}.trend-chart-pair h3{font-size:1rem;margin:0 0 12px}.trend-comparison{min-width:0}.trend-over-time{min-width:0;border-left:1px solid var(--line);padding-left:24px}.trend-bar-row{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;display:grid;grid-template-columns:minmax(105px,1fr) minmax(70px,1fr) 95px 12px;gap:10px;align-items:center;padding:13px 0;cursor:pointer;color:var(--ink)}.trend-bar-row:hover{background:var(--accent-soft)}.trend-bar-row small{display:block;font-size:.8rem;color:var(--muted);margin-top:4px}.trend-bar-row strong{font-size:.95rem;text-align:right}.trend-meter{height:12px;border-radius:4px;overflow:hidden;background:var(--line)}.trend-meter i{display:block;width:var(--fill);height:100%;background:var(--accent);animation:trend-grow .4s ease-out}.trend-meter.warning i{background:#b58a32}.trend-meter.danger i{background:#b64d48}.trend-meter.good i{background:#487e6d}.trend-timeline svg{width:100%;height:auto;min-height:170px;overflow:visible}.trend-timeline text{font-family:inherit;font-size:12px;fill:var(--muted)}.trend-grid{stroke:var(--line);stroke-width:1}.trend-target{stroke:#487e6d;stroke-dasharray:5 5;stroke-width:1.5}.trend-series{fill:none;stroke:var(--accent);stroke-width:3}.trend-point{fill:var(--accent);stroke:white;stroke-width:2}.trend-next-action{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--accent-soft);border:1px solid var(--line);border-left:4px solid var(--accent);padding:12px 16px;border-radius:10px;margin-bottom:20px}.trend-next-action small{display:block;margin-top:4px}.trend-results td{vertical-align:top}.trend-results small{display:block;color:var(--muted);margin-top:4px}.trend-results th{white-space:nowrap}@keyframes trend-grow{from{width:0}to{width:var(--fill)}}@media(prefers-reduced-motion:reduce){.trend-meter i{animation:none}}@media(max-width:1100px){.trend-owner-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.trend-chart-pair{grid-template-columns:1fr}.trend-over-time{padding:0;border:0}}@media(max-width:600px){.trend-owner-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.trend-bar-row{grid-template-columns:1fr 70px 80px 10px;gap:6px}.trend-main-toolbar .tabs{width:100%}.trend-next-action{align-items:start;flex-direction:column}.trends-controls label{min-width:120px}}
.trends-workspace{--muted:#626975;--accent-soft:var(--mint)}
.trends-workspace>.panel{padding:16px;margin:0}.trends-workspace{gap:12px}.trends-workspace .trend-owner-kpis{margin:0}.trends-workspace .trend-owner-kpis>div{min-height:100px;padding:10px;gap:4px}.trends-workspace .trend-owner-kpis>div>span{min-height:0;line-height:1.3}.trends-workspace .trend-owner-kpis>div>strong{font-size:1.4rem;line-height:1.2;margin:2px 0}.trends-workspace .trend-owner-kpis>div>small{margin-top:0}.trends-workspace .trend-main-toolbar{margin:0 0 12px;align-items:center}.trends-workspace .trend-chart-pair{margin:14px 0}.trends-workspace .trend-main-toolbar .tabs{margin:0}.trends-workspace .trend-main-toolbar label{display:flex;align-items:center;gap:6px}.trends-workspace .trend-filters select{min-height:40px}.trends-workspace .trend-next-action{margin-bottom:14px}

/* Setup: visible entry methods, one compact row per kind of record. */
.setup-imports{border:1px solid var(--line);border-radius:16px;background:var(--paper,#fff);margin:16px 0;overflow:hidden}
.setup-import-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;background:var(--mint)}
.setup-import-heading h2{font-size:21px;margin:0 0 4px}.setup-import-heading p{margin:0;font-size:14px}
.setup-import-flow{display:flex;align-items:center;gap:14px;font-size:14px;white-space:nowrap}.setup-import-flow span{display:flex;align-items:center;gap:5px}.setup-import-flow svg{width:20px;height:20px}.setup-import-flow b{border-radius:8px;background:var(--ink);color:white;padding:7px 12px}
.setup-import-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;border-top:1px solid var(--line)}
.setup-import-label{display:flex;align-items:center;gap:10px}.setup-import-label>svg{width:25px;height:25px;flex:none}.setup-import-label b{font-size:16px}.setup-import-label small{display:block;margin-top:3px;font-size:14px;color:var(--muted,#626975)}
.setup-import-methods{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.setup-import-methods .btn{min-height:42px;white-space:nowrap}.setup-import-note{margin:0;padding:12px 20px;background:var(--surface,#f5f6f8);font-size:13px;line-height:1.5}
@media(max-width:900px){.setup-import-heading{align-items:flex-start;flex-direction:column}.setup-import-row{align-items:flex-start;flex-direction:column}.setup-import-methods{width:100%}.setup-import-methods .btn{flex:1}.setup-import-flow{white-space:normal}}

/* Conversation-first assistant; working drawers retain priority. */
.navz-chat{position:fixed;right:18px;bottom:max(16px,env(safe-area-inset-bottom));z-index:40;color:var(--ink)}
.navz-chat-launcher{display:flex;gap:8px;align-items:center;min-height:46px;padding:10px 14px;background:#086b73;color:white;border:2px solid white;border-radius:24px;box-shadow:0 0 0 1px #086b73,0 5px 18px #086b7333;margin-left:auto;font-weight:650}.navz-chat svg{width:22px;height:22px;flex-shrink:0}
.navz-chat-panel{position:fixed;right:16px;top:16px;bottom:76px;width:min(460px,calc(100vw - 32px));display:flex;flex-direction:column;overflow:hidden;background:#f7f9f9;border:1px solid #d2e0e0;border-radius:18px;box-shadow:0 12px 44px #16393d29}.navz-chat-panel[hidden]{display:none}
.navz-chat-panel header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:white;border-bottom:1px solid #e0e8e8;flex-shrink:0}.navz-chat-identity{display:flex;align-items:center;gap:10px}.navz-chat-avatar{display:grid;place-items:center;width:40px;height:40px;background:#e1f2ef;color:#086b73;border-radius:13px}.navz-chat-panel header strong{font-size:18px}.navz-chat-panel header strong span{font-weight:400}.navz-chat-panel header small{font-size:12px;margin-top:1px}.navz-chat-panel header button{border:0;background:transparent;font-size:25px;width:44px;height:44px;border-radius:9px}.navz-chat-demo-note{padding:7px 18px;font-size:11px;color:#526c6b;background:#edf6f4}
.navz-chat-body{overflow-y:auto;min-height:0;flex:1;padding:22px 18px;overscroll-behavior:contain}.navz-chat-thread{display:flex;flex-direction:column;gap:18px}.navz-chat-message{max-width:90%;display:flex;flex-direction:column;gap:5px;align-items:flex-start;animation:chat-arrive .18s ease-out}.navz-chat-message>small{font-size:11px;color:#697977;padding:0 4px}.navz-chat-message.user{align-self:flex-end;align-items:flex-end;max-width:85%}.navz-chat-bubble{padding:12px 14px;border:1px solid #e0e7e7;background:white;border-radius:3px 16px 16px 16px;overflow-wrap:anywhere}.navz-chat-message.user .navz-chat-bubble{background:#dcf1eb;border-color:#d0e8df;border-radius:16px 3px 16px 16px}.navz-chat-bubble p{font-size:15px;line-height:1.6;margin:0;white-space:pre-wrap}.navz-chat-bubble a{display:inline-block;font-size:13px;color:#086b73;font-weight:650;margin-top:10px;text-underline-offset:3px}.navz-chat-bubble>small{margin-top:8px}.navz-chat-prompts{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 0}.navz-chat-prompts button{border:1px solid #bcd7d2;background:white;padding:10px 12px;border-radius:18px;text-align:left;color:#205f59;font-size:13px}.navz-chat-prompts button:hover{background:#e6f4ef}
.navz-chat-compose{padding:12px 14px 6px;background:white;flex-shrink:0;border-top:1px solid #e0e8e8}.navz-chat-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.navz-chat-input-shell{border:1px solid #c4d4d2;border-radius:15px;background:#f8fbfa;overflow:hidden}.navz-chat-input-shell:focus-within{border-color:#086b73;box-shadow:0 0 0 2px #086b731a}.navz-chat-compose textarea{display:block;width:100%;min-height:54px;max-height:100px;resize:vertical;padding:12px;border:0;outline:none;background:transparent;color:var(--ink);font-size:16px}.navz-chat-tools{display:flex;align-items:center;gap:3px;padding:0 6px 6px}.navz-chat-tools button{display:grid;place-items:center;width:40px;min-height:40px;border:0;border-radius:11px;background:transparent;color:#526c70}.navz-chat-tools button:hover{background:#e1edeb}.navz-chat-tools .navz-chat-send{background:#086b73;color:white;margin-left:auto}.navz-chat-tools .navz-chat-send:hover{background:#07585e;color:white}.navz-chat-tools .is-recording{background:#ffebe8;color:#a42c24}.navz-chat-tools button:disabled{opacity:.5;cursor:default}.navz-chat-error:empty{display:none}.navz-chat-error{color:#a42c24;font-size:13px;margin:6px 0}.navz-chat-compose>small{font-size:11px;margin-top:7px}.navz-chat-panel footer{padding:4px 14px 10px;background:white;text-align:center;font-size:11px;color:#768582}
.navz-chat-file{display:flex;align-items:center;gap:8px;min-width:0}.navz-chat-file span{overflow-wrap:anywhere;font-size:13px}.navz-chat-file img{width:64px;height:64px;object-fit:contain;border-radius:7px;background:white}.navz-chat-file audio{width:100%;height:36px}.navz-chat-file:has(audio){flex-wrap:wrap}.navz-chat-attachments{max-height:110px;overflow:auto;margin-bottom:8px}.navz-chat-attachments>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid var(--line)}.navz-chat-attachments button{border:0;background:none;font-size:12px;color:#a42c24}.navz-chat-file small{font-size:11px}.navz-chat-bubble .navz-chat-file+.navz-chat-file{margin-top:8px}
body:has(dialog[open]) .navz-chat{display:none}.demo-footer{padding-bottom:80px}@keyframes chat-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.navz-chat-message{animation:none}}
@media(max-width:600px){.navz-chat{right:12px}.navz-chat-launcher{width:46px;height:46px;padding:10px}.navz-chat-launcher>span{display:none}.navz-chat.is-open .navz-chat-launcher{display:none}.navz-chat-panel{inset:0;width:100%;height:100dvh;border:0;border-radius:0}.navz-chat-panel header{padding-top:max(12px,env(safe-area-inset-top))}.navz-chat-panel footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.navz-chat-body{padding:16px}.navz-chat-message{max-width:93%}.navz-chat-tools button{width:44px;min-height:44px}}
@media print{.navz-chat{display:none}}
.navz-chat-stock-start{width:100%;padding:11px;border:1px solid #86b8ad;border-radius:12px;background:#e4f3ed;color:#145f54;text-align:left;margin-bottom:16px;font-weight:600}.navz-chat-stock-card{margin-top:16px;padding:14px;background:white;border:1px solid #c4dcd5;border-radius:14px}.navz-chat-stock-card>strong{font-size:17px}.navz-chat-stock-card label{display:flex;flex-direction:column;gap:4px;font-size:13px;margin:10px 0}.navz-chat-stock-card input,.navz-chat-stock-card select{width:100%;min-width:0;padding:9px;border:1px solid #bccdca;border-radius:8px;background:white;font-size:15px}.chat-stock-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.navz-chat-stock-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.navz-chat-stock-actions button,.navz-chat-bubble button{padding:9px 11px;border:1px solid #b6d0c9;border-radius:8px;background:white;color:#165e52;font-size:13px}.navz-chat-stock-actions button:first-child{background:#086b73;color:white}.navz-chat-stock-card p{font-size:13px;margin:10px 0}.chat-stock-review-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.chat-stock-review-numbers span{font-size:11px}.chat-stock-review-numbers b{display:block;font-size:16px;margin-top:4px}/* Brief effects only: no workspace resizing, extra section or automatic scrolling. */
.workspace-save-notice{position:fixed;left:80px;bottom:18px;z-index:42;max-width:min(440px,calc(100vw - 100px));padding:10px 14px;background:#edf8f2;border:1px solid #a3cdb9;color:#155c4a;border-radius:12px;box-shadow:0 3px 12px #183b2720;font-size:13px;pointer-events:none}
.workspace-row-changed>td{animation:workspace-row-flash 4s ease-out}.workspace-row-changed>td:first-child{box-shadow:inset 3px 0 #278360}.workspace-quantity-changed{display:inline-block;animation:workspace-quantity-pop .65s ease-out;color:#116947}.workspace-save-particles{position:fixed;z-index:41;pointer-events:none}.workspace-save-particles i{position:absolute;width:6px;height:6px;background:#28a77b;border-radius:2px;opacity:0;animation:workspace-pour 1s ease-out forwards}@keyframes workspace-pour{0%{opacity:0;transform:translate(var(--offset),-65px)}20%{opacity:1}80%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(0,4px) scale(.3)}}@keyframes workspace-row-flash{0%,35%{background:#d7efdf}100%{background:transparent}}@keyframes workspace-quantity-pop{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}
@media(max-width:600px){.workspace-save-notice{left:12px;bottom:70px;max-width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){.workspace-row-changed>td{animation:none;background:#e3f3e8}.workspace-quantity-changed{animation:none}}

/* Chat usability: compact choices, explicit review/save facts, readable attachments. */
.navz-chat-helpbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px;color:#526c6b}.navz-chat-helpbar button{min-height:36px;border:1px solid #bcd7d2;background:#edf6f4;color:#205f59;border-radius:9px;padding:6px 10px;font-size:14px}.navz-chat-helpbar button span{margin-left:8px}.navz-chat-help{max-height:240px;overflow:auto;padding:10px 0;border-bottom:1px solid #d2e0e0;margin-bottom:8px}.navz-chat-help>strong{display:block;font-size:14px;margin:6px 0}.navz-chat-help .navz-chat-prompts{margin:6px 0 10px}.navz-chat-help small{font-size:12px;line-height:1.5}.navz-chat-choices{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.navz-chat-choices button{min-height:40px;padding:8px 10px;border:1px solid #bcd7d2;border-radius:10px;background:white;color:#205f59;font-size:14px;text-align:left}.navz-chat-choices button:hover{background:#e6f4ef}.navz-chat-bubble>strong{display:block;margin-bottom:6px;font-size:16px}.navz-chat-bubble p+p{margin-top:7px}.navz-chat-facts{margin:10px 0 0}.navz-chat-facts>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:8px 0;border-top:1px solid #e0e7e7;font-size:14px;line-height:1.45}.navz-chat-facts dt{color:#526c6b}.navz-chat-facts dd{margin:0;text-align:right;font-weight:650;max-width:180px;overflow-wrap:anywhere}.navz-chat-bubble.chat-saved{border-color:#86b8ad;background:#f1faf6}.navz-chat-tools button{width:auto;min-width:44px;display:flex;gap:4px;padding:7px;font-size:12px}.navz-chat-demo-note{font-size:12px}.navz-chat-stock-card>small{font-size:13px;line-height:1.5}.navz-chat-stock-card label{font-size:14px}.navz-chat-stock-card input,.navz-chat-stock-card select{min-height:44px}.chat-stock-review-numbers span{font-size:13px}.navz-chat-stock-actions button{min-height:44px;font-size:14px}.navz-chat-panel button:focus-visible,.navz-chat-panel a:focus-visible{outline:2px solid #086b73;outline-offset:2px}
#factory-attendance-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#factory-attendance-form .form-grid>label:first-child{grid-column:1/-1}#factory-attendance-form .form-grid label{margin:0;min-width:0}#factory-attendance-form input,#factory-attendance-form select{max-width:100%}#attendance-rule-result:not(:empty){padding:10px;background:#e2f1e6;border:1px solid #9bc9ad;border-radius:8px;margin:10px 0}@media(max-width:500px){#factory-attendance-form .form-grid{grid-template-columns:1fr}}
