.shop-mode{background:#f3f6fa}.shop-workplace{max-width:1440px;margin:auto;padding:16px;color:#172b46}.shop-header,.shop-header-actions,.shop-controls,.shop-job-heading,.shop-secondary-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-header h1{font-size:25px;margin:3px 0}.shop-header small{color:#53657c}.shop-header-actions select{max-width:230px}.shop-menu{position:relative}.shop-menu summary{padding:12px 16px;cursor:pointer;background:white;border:1px solid #c9d5e5;border-radius:9px;list-style:none}.shop-menu nav{position:absolute;right:0;top:48px;width:270px;padding:10px;background:white;border:1px solid #c9d5e5;border-radius:12px;box-shadow:0 10px 35px #172b4630;z-index:50;display:grid;gap:6px}.shop-controls{margin:18px 0;justify-content:flex-start}.shop-controls>input{max-width:520px}.shop-controls .check{white-space:nowrap;margin:0}.shop-layout{display:grid;grid-template-columns:minmax(135px,260px) minmax(0,1fr);gap:16px;align-items:start}.shop-orders{position:sticky;top:12px;max-height:calc(100dvh - 145px);overflow:auto}.shop-orders h2{font-size:16px;margin:0 0 12px}.shop-order{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;margin:0 0 8px;padding:15px;background:white;overflow-wrap:anywhere}.shop-order.selected{border:2px solid #2865c9;background:#edf4ff}.shop-order small{font-size:12px;color:#53657c}.shop-main{min-width:0}.shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.shop-tabs button{padding:13px 5px}.shop-tabs .selected{background:#172b46;color:white}.shop-job,.shop-empty{background:white;border:1px solid #d5dfec;border-radius:14px;padding:22px}.shop-job.partial{border-top:5px solid #e8ae28}.shop-job.done{border-top:5px solid #2c965a}.shop-job.problem{border-top:5px solid #cb4d4d}.shop-job.waiting{border-top:5px solid #a3afbd}.shop-job.ready{border-top:5px solid #3978d8}.shop-job-heading{align-items:flex-start}.shop-job h2{font-size:25px;margin:7px 0}.shop-job p{line-height:1.45}.shop-deadline{background:#edf4ff;padding:10px 14px;border-radius:9px;text-align:right;white-space:nowrap;font-size:12px}.shop-deadline strong{font-size:16px}.shop-status{color:#53657c}.shop-count{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:22px 0 8px}.shop-count>strong{font-size:36px}.shop-count small{font-size:17px;font-weight:400}.shop-primary-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin:20px 0 10px}.shop-primary-actions button{min-height:60px;font-size:20px;font-weight:600}.shop-partial{background:#fff0bd;color:#694d00;border-color:#d9ad38}.shop-secondary{margin-bottom:16px}.shop-secondary-actions{justify-content:flex-start;flex-wrap:wrap}.shop-files{display:grid;gap:10px;border-top:1px solid #d5dfec;margin-top:20px;padding-top:16px;overflow-wrap:anywhere}.shop-route{margin-top:20px}.shop-route summary{cursor:pointer;padding:12px 0}.shop-route li{padding:9px;border-left:4px solid #c6cfdb;margin:7px 0}.shop-route li.done{border-color:#2c965a;background:#effaf3}.shop-route li.partial{border-color:#d9ad38;background:#fff8df}.shop-route li.current{border-color:#3978d8}.shop-route small{display:block}.shop-unit-hint{font-size:12px;margin-top:20px}.shop-task-select{display:block;margin:12px 0}.shop-return{margin-right:12px}.shop-login{max-width:440px;margin:8vh auto;padding:24px;background:white;border:1px solid #d5dfec;border-radius:16px}.shop-login img{width:150px}.shop-login form{display:grid;gap:12px}.shop-login input{font-size:22px;min-height:52px}.shop-registration{margin:12px 0}.shop-registration small{display:block;margin:8px 0;line-height:1.5}.shop-access-row{display:grid;grid-template-columns:1.3fr 1fr 110px auto;align-items:center;gap:14px;border-bottom:1px solid #d5dfec;padding:16px 0}.shop-access-row small{display:block;margin-top:6px}.shop-access-row code{font-size:20px}.shop-mode button{touch-action:manipulation}.shop-mode button:disabled{opacity:.45}.shop-header button{min-height:44px}
@media(max-width:650px){.shop-workplace{padding:10px}.shop-header h1{font-size:19px}.shop-header-actions{gap:6px}.shop-header-actions select{max-width:110px}.shop-header-actions button,.shop-menu summary{padding:9px}.shop-controls{gap:8px;flex-wrap:wrap}.shop-controls>input{flex:1;min-width:150px}.shop-controls .check{font-size:12px}.shop-layout{grid-template-columns:minmax(100px,29%) minmax(0,1fr);gap:8px}.shop-order{padding:10px 7px;font-size:13px}.shop-order small{font-size:11px}.shop-order span{font-size:12px}.shop-tabs{gap:3px}.shop-tabs button{font-size:11px;padding:12px 2px;min-width:0}.shop-job,.shop-empty{padding:12px}.shop-job-heading{flex-wrap:wrap;gap:7px}.shop-job h2{font-size:19px}.shop-deadline{padding:7px;font-size:11px}.shop-deadline strong{font-size:13px}.shop-count>strong{font-size:28px}.shop-count small{font-size:13px}.shop-count>span{font-size:13px}.shop-primary-actions{grid-template-columns:1fr;gap:8px}.shop-primary-actions button{min-height:52px;font-size:18px}.shop-secondary-actions button,.shop-secondary{width:100%;font-size:12px;min-height:42px}.shop-access-row{grid-template-columns:1fr 1fr}.shop-login{margin:20px 10px}.shop-files{font-size:12px}.shop-route{font-size:12px}.shop-route ol{padding-left:15px}}
.auth-form .registration-approval-hint{margin:4px 0 0;font-size:12px;line-height:1.3;color:#53657c;white-space:nowrap}
.shop-home{margin-bottom:12px;min-height:40px}
.shop-home[hidden]{display:none!important}
.shop-shortcuts{align-items:center}.shop-shortcuts #shopSearch{flex:1 1 190px;width:auto;min-width:150px;max-width:340px;min-height:44px;margin-left:auto}.shop-shortcuts #shopSearch+#shopLogout{margin-left:0}
.shop-job{padding:14px 16px}.shop-job>.shop-status{text-align:center;background:#f1f5fa;border-radius:7px;margin:0 0 10px;padding:8px;font-size:13px;font-weight:600}.shop-job.waiting>.shop-status{background:#fff7df;color:#735717}.shop-job-heading{gap:10px}.shop-job h2.shop-order-code{font-size:30px;line-height:1.15;margin:0 0 5px;overflow-wrap:anywhere}.shop-node-name{display:block;color:#53657c}.shop-job-heading p{margin:5px 0}.shop-order>strong{font-size:22px;line-height:1.2}.shop-count{margin:12px 0 5px}.shop-count>strong{font-size:30px}.shop-primary-actions{margin:12px 0 8px;gap:8px}.shop-primary-actions button{min-height:48px;font-size:18px}.shop-secondary{margin-bottom:10px}.shop-files{margin-top:12px;padding-top:10px;gap:7px}.shop-route{margin-top:10px}.shop-unit-hint{margin-top:10px}
.shop-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.shop-shortcuts button{min-height:44px;background:white}.shop-shortcuts #shopLogout{margin-left:auto}
.shop-notifications{border:1px solid #c9d5e5;border-left:4px solid #3978d8;border-radius:10px;padding:14px;background:white;margin:12px 0}.shop-notifications h2{font-size:17px;margin:0}.shop-notifications article{padding-top:10px;margin-top:10px;border-top:1px solid #e2e8f0}.shop-notifications p{margin:0 0 10px;overflow-wrap:anywhere}.shop-notifications article>div{display:flex;flex-wrap:wrap;gap:8px}.shop-notifications button{min-height:40px}
@media(max-width:650px){.shop-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.shop-shortcuts button{min-width:0;padding:10px;font-size:12px}.shop-shortcuts #shopLogout{margin:0}.shop-notifications .row{flex-wrap:wrap}}
.shop-members{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.shop-member{display:flex;align-items:stretch;border:1px solid #ccd7e6;border-radius:10px;background:white;overflow:hidden;max-width:100%}
.shop-member.active{border-color:#3978d8;background:#edf4ff}
.shop-member>button:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;background:transparent;text-align:left;padding:10px 14px;min-width:0;overflow-wrap:anywhere}
.shop-member strong{font-size:18px;line-height:1.3}
.shop-member small{font-size:12px}
.shop-mode .shop-member>button:disabled{opacity:1;color:#172b46}
.shop-member-leave{border:0;border-left:1px solid #ccd7e6;border-radius:0;padding:8px;min-width:36px}
.shop-join-panel{width:min(400px,calc(100vw - 24px));box-sizing:border-box}
.shop-join-panel input{font-size:24px;letter-spacing:8px;min-height:48px}
.shop-header>div:first-child{min-width:0;flex:1}
@media(max-width:650px){.shop-header{flex-wrap:wrap}.shop-header>div:first-child{flex-basis:100%}.shop-member strong{font-size:17px}}
.shop-office-navigation{display:flex;align-items:center;gap:8px;flex-shrink:0;position:relative;z-index:1}
.topbar .shop-office-navigation .workspace-back{position:static;transform:none;margin:0}
.shop-office-navigation .shop-return{margin:0;min-height:32px;white-space:nowrap}
.topbar:has(.shop-office-navigation) .workspace-title{position:static;transform:none;flex:1;min-width:0}
.shop-window{width:min(1180px,calc(100vw - 24px));height:calc(100dvh - 32px);max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #c9d5e5;border-radius:12px;background:#f3f6fa}
.shop-window[open]{display:flex;flex-direction:column}
.shop-window::backdrop{background:#172b4670}
.shop-window-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:white;border-bottom:1px solid #d5dfec;flex-shrink:0}
.shop-window-header h2{font-size:18px;margin:0}
.shop-window-header button{min-height:44px}
.shop-window iframe{display:block;width:100%;flex:1;min-height:0;border:0;background:#f3f6fa}
.shop-embedded #content{margin:0;padding:16px;min-width:0;max-width:none;width:100%;box-sizing:border-box}
.shop-embedded .layout,.shop-embedded .sidebar,.shop-embedded .topbar{display:none!important}
@media(max-width:650px){.shop-window{width:100%;height:100dvh;margin:0;border-radius:0;border:0}.shop-embedded #content{padding:10px}.topbar:has(.shop-office-navigation){flex-wrap:wrap;height:auto;min-height:60px}.topbar:has(.shop-office-navigation) .workspace-title{display:none}.shop-office-navigation{max-width:100%}.shop-office-navigation .shop-return{font-size:12px}}
.shop-login.wpf-pin-panel{width:min(390px,calc(100% - 32px));max-width:390px;margin:32px auto;padding:24px;border-radius:14px;box-shadow:0 8px 32px #1f2a3a18}
.shop-login.wpf-pin-panel img{margin-bottom:20px}.shop-login.wpf-pin-panel h1{font-size:20px;margin:0 0 6px;letter-spacing:0}.shop-login.wpf-pin-panel>p{font-size:14px;margin:0 0 14px;line-height:1.45}
.shop-login .pin-label{display:block;margin:0}.shop-login .pin-entry{position:relative;display:block;margin-top:14px}.shop-login .pin-boxes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.shop-login .pin-boxes>span{position:relative;display:flex;align-items:center;justify-content:center;height:64px;border:1px solid #d5dfec;border-radius:12px;background:#eef2f7;font:600 30px Consolas,monospace;color:transparent}.shop-login .pin-boxes>span.filled{border-color:#2f6fb0}.shop-login .pin-boxes>span.filled:after{content:"";position:absolute;inset:0;background:center/22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 24 24'%3E%3Cpath d='M10 0V20M1.34 5L18.66 15M1.34 15L18.66 5' fill='none' stroke='%231F2A3A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")}.shop-login .pin-entry .pin-input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:text;font-size:16px}.shop-login .pin-entry:focus-within .pin-boxes{outline:3px solid #2f6fb033;outline-offset:4px;border-radius:12px}
.shop-login .pin-error{min-height:20px;font-size:13px;line-height:1.4;margin:0}.shop-login .pin-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shop-login .pin-keypad button{height:64px;background:white;border-radius:12px;font:600 26px Consolas,monospace;touch-action:manipulation}.shop-login .pin-keypad button:hover{background:#e2e8f1}.shop-login .pin-keypad button:active{background:#d8e5f5}.shop-login .pin-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}.shop-login .pin-actions button{height:48px;font-size:16px}.shop-login .close-button{background:#cf3d3d;color:white;border-color:#cf3d3d}.shop-login .confirm-pin:disabled{opacity:.45;cursor:default}.shop-login .auth-failure{animation:shop-pin-shake .24s ease-in-out}@keyframes shop-pin-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@media(max-width:650px){.shop-login.wpf-pin-panel{margin:20px auto;padding:20px}.shop-login .pin-keypad{gap:8px}.shop-login .pin-keypad button{height:52px;font-size:22px}.shop-login .pin-boxes>span{height:56px}}
@media(prefers-reduced-motion:reduce){.shop-login .auth-failure{animation:none}}
.shop-pin-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.shop-login.wpf-pin-panel .shop-pin-brand img{margin:0;width:min(150px,55%);height:auto}.shop-pin-brand button{min-height:40px;padding:9px 12px;white-space:nowrap}
.shop-registration #registrationPinLabel[hidden]{display:none!important}
@media(max-width:650px){.shop-shortcuts #shopSearch{grid-column:1/-1;width:100%;max-width:none;min-width:0;margin:0}.shop-shortcuts #shopLogout{grid-column:1/-1}.shop-job{padding:10px}.shop-job h2.shop-order-code{font-size:24px}.shop-order>strong{font-size:18px}.shop-job>.shop-status{font-size:12px;padding:7px}.shop-primary-actions button{min-height:46px}.shop-node-name{font-size:12px}}

/* Compact terminal header: the queue starts immediately below its tools. */
.shop-workplace{padding-top:8px}
.shop-header{gap:8px;min-height:36px}
.shop-header>div:first-child{display:flex;align-items:center;gap:14px;justify-content:space-between}
.shop-header h1{font-size:16px;line-height:1.3;margin:0;min-width:0}
.shop-header .shop-members{margin:0;flex-wrap:nowrap;gap:6px;flex-shrink:0}
.shop-header .shop-member{border-radius:7px}
.shop-header .shop-member>button:first-child{height:36px;min-height:36px;padding:6px 10px;justify-content:center;gap:0}
.shop-header .shop-member strong{font-size:13px;line-height:1.3;font-weight:600}
.shop-header .shop-member small{display:none}
.shop-header #shopJoin,.shop-header-actions select{height:36px;min-height:36px;padding:6px 10px;font-size:12px;margin:0}
.shop-members-picker{position:relative;max-width:300px;min-width:0}
.shop-members-picker>summary{display:flex;align-items:center;gap:8px;justify-content:space-between;height:36px;padding:6px 10px;background:#edf4ff;border:1px solid #3978d8;border-radius:7px;cursor:pointer;list-style:none;font-size:13px;line-height:1.3}
.shop-members-picker>summary::-webkit-details-marker{display:none}
.shop-members-picker>summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.shop-members-picker>summary span{flex-shrink:0;color:#53657c;font-size:12px}
.shop-members-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:260px;max-width:min(360px,90vw);max-height:300px;overflow:auto;display:grid;gap:6px;padding:8px;background:#fff;border:1px solid #c9d5e5;border-radius:8px;box-shadow:0 8px 24px #17223526;z-index:55}
.shop-members-menu .shop-member{max-width:none}
.shop-header .shop-members-menu .shop-member>button:first-child{height:auto;min-height:40px;flex:1;align-items:flex-start}
.shop-shortcuts{gap:6px;margin:6px 0 8px}
.shop-shortcuts>button,.shop-shortcuts #shopLogout{height:36px;min-height:36px;padding:6px 10px;font-size:12px;margin:0}
.shop-shortcuts #shopSearch{margin-left:auto;flex:0 1 300px;width:300px;max-width:300px;min-width:140px;height:36px;min-height:36px}
.shop-controls{margin:4px 0 8px;gap:8px;font-size:12px}
.shop-controls .check{font-size:12px}
.shop-layout{gap:12px}
.shop-orders h2{font-size:15px;margin:0 0 8px}
.shop-tabs{margin-bottom:8px}
@media(max-width:1000px) and (min-width:651px){.shop-header h1{font-size:14px}.shop-header>div:first-child{gap:8px}.shop-shortcuts #shopSearch{flex:1 1 150px;max-width:none}.shop-shortcuts>button{padding:6px 8px}}
@media(max-width:650px){.shop-header>div:first-child{display:block}.shop-header #shopMembers{display:none}.shop-header h1{font-size:clamp(11px,3.65vw,16px);margin:0 0 4px;white-space:nowrap}.shop-header{min-height:0}.shop-header-actions select{height:34px;min-height:34px}.shop-shortcuts{margin:0;gap:0}.shop-shortcuts>button,.shop-shortcuts #shopLogout{height:48px;min-height:48px;padding:8px 2px}.shop-layout{gap:8px}}

.shop-header .shop-member{max-width:260px}.shop-header .shop-member strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-header .shop-members-menu .shop-member{max-width:none}

.shop-notifications{margin:6px 0;padding:8px 10px}
.shop-notifications h2{font-size:14px}
.shop-notifications button{min-height:32px;padding:5px 9px;font-size:12px}
.shop-notifications article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px;margin-top:6px}
.shop-notifications article>p{margin:0;min-width:0;flex:1;font-size:12px}
.shop-notifications article>div{flex-shrink:0;gap:6px}
@media(max-width:650px){.shop-notifications article{flex-wrap:wrap}.shop-notifications article>p{flex-basis:100%}.shop-notifications button{min-height:40px}}

/* Single desktop toolbar with identity and exit beside the short search. */
@media(min-width:651px){
 .shop-topbar{display:flex;align-items:center;gap:10px;margin:0 0 8px;min-width:0}
 .shop-topbar .shop-header{flex:0 1 auto;min-width:0}
 .shop-topbar .shop-header>div:first-child{flex:0 1 auto}
 .shop-topbar .shop-header h1{font-size:13px;white-space:nowrap;margin:0}
 .shop-topbar .shop-header-actions:empty{display:none}
 .shop-topbar .shop-header:has(#shopArea) h1{display:none}
 .shop-topbar #shopArea{width:200px;max-width:200px;height:36px;min-height:36px;padding:5px;font-size:12px;margin:0}
 .shop-topbar .shop-shortcuts{flex:1;min-width:0;flex-wrap:nowrap;gap:5px;margin:0}
 .shop-topbar .shop-shortcuts>button{flex-shrink:0;padding:6px 8px;font-size:11px}
 .shop-topbar .shop-shortcuts #shopSearch{flex:0 1 170px;width:170px;min-width:110px;max-width:170px;height:36px;font-size:12px}
 .shop-shortcuts #shopMembers{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0;flex-shrink:0}
 .shop-shortcuts .shop-member>button:first-child{height:36px;min-height:36px;padding:6px 8px;display:flex;justify-content:center;gap:0}
 .shop-shortcuts .shop-member{max-width:150px;border-radius:7px}
 .shop-shortcuts .shop-member strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .shop-shortcuts .shop-member small{display:none}
 .shop-shortcuts .shop-member>button:disabled{opacity:1}
 .shop-shortcuts #shopJoin{height:36px;min-height:36px;width:36px;min-width:36px;padding:0;font-size:22px;line-height:1}
 .shop-shortcuts .shop-members-picker{max-width:170px}
 .shop-shortcuts .shop-members-menu .shop-member{max-width:none}
 .shop-shortcuts .shop-members-menu .shop-member>button:first-child{height:auto;min-height:36px;flex:1}
 .shop-shortcuts #shopLogout{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:7px}
 .shop-shortcuts #shopLogout>.shell-icon{display:block;width:21px;height:21px}
 .shop-shortcuts #shopLogout>.mobile-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.shop-orders-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:40px;margin:0 0 8px}
.shop-orders-tools>h2{margin:0;font-size:12px;white-space:nowrap}
.shop-orders-tools .shop-controls{margin:0;min-width:0}
.shop-orders-tools .check{font-size:10px;gap:4px;white-space:normal;line-height:1.2;display:flex;align-items:center}
.shop-orders-tools input{width:16px;height:16px;min-height:16px;flex-shrink:0}
.shop-tabs{height:40px;min-height:40px;margin-bottom:8px}
.shop-tabs button{min-height:40px;padding:7px 10px}
@media(min-width:651px) and (max-width:1150px){
 .shop-topbar{gap:6px}.shop-topbar .shop-header h1{font-size:11px}.shop-topbar #shopArea{width:160px}
 .shop-shortcuts [data-shop-view]{width:34px;min-width:34px;padding:6px!important;position:relative;display:flex;justify-content:center;align-items:center}
 .shop-shortcuts [data-shop-view]>.shell-icon{display:block;width:21px;height:21px}
 .shop-shortcuts [data-shop-view]>.mobile-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .shop-topbar .shop-shortcuts #shopSearch{min-width:80px;width:120px;flex-shrink:1}
 .shop-shortcuts .shop-member{max-width:125px}.shop-shortcuts .shop-members-picker{max-width:140px}
}
@media(max-width:650px){.shop-topbar{margin-bottom:4px}.shop-orders-tools{min-height:40px}.shop-orders-tools .shop-controls,.shop-shortcuts #shopMembers{display:none}.shop-orders-tools>h2{font-size:13px}.shop-tabs button{padding:7px 2px}.mobile-tool-body [data-mobile-join]{min-width:44px;font-size:22px}}

@media(min-width:651px){
 .shop-topbar{display:grid;grid-template-columns:minmax(135px,260px) minmax(0,1fr);gap:12px}
 .shop-topbar .shop-header{width:100%;max-width:100%;min-width:0}
 .shop-topbar .shop-header>div:first-child{min-width:0;max-width:100%}
 .shop-topbar .shop-header h1{overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .shop-topbar .shop-shortcuts{width:100%;min-width:0}
}
@media(min-width:651px) and (max-width:1150px){.shop-topbar,.shop-layout{grid-template-columns:minmax(135px,22%) minmax(0,1fr)}.shop-topbar #shopArea{max-width:100%;min-width:0}.shop-topbar .shop-header-actions{min-width:0;max-width:100%}}
.shop-operation-choice{display:flex;align-items:stretch;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.shop-operation-choice>button{min-height:36px;padding:6px 10px;font-size:12px;border-radius:7px}
.shop-operation-choice>button.selected{border-color:#3978d8;background:#edf4ff;color:#245ba5}
@media(max-width:650px){.shop-operation-choice>button{flex:1;min-height:42px}}

.shop-job h2.shop-order-code{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
.shop-order-quantity{font-size:.7em;font-weight:600;white-space:nowrap}
.shop-job .shop-route{min-width:0;margin-top:12px;padding-top:10px;border-top:1px solid #d5dfec}
.shop-route>h3{font-size:13px;font-weight:600;margin:0 0 6px}
.shop-route .shop-route-stages{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;list-style:none;padding:2px 0 8px;margin:0;max-width:100%}
.shop-route .shop-route-stages>li{flex:0 0 170px;display:flex;flex-direction:column;gap:5px;min-height:88px;margin:0;padding:9px 10px;border:1px solid #c9d5e5;border-radius:8px;background:#f5f7fb;overflow-wrap:anywhere}
.shop-route-stages>li>small{font-size:10px;line-height:1.2}
.shop-route-stages>li>strong{font-size:12px;line-height:1.4}
.shop-route-stages>li>span{font-size:11px;margin-top:auto}
.shop-route .shop-route-stages>.Accepted,.shop-route .shop-route-stages>.ClosedWithoutReview{background:#eaf7ee;border-color:#a6d4b2}
.shop-route .shop-route-stages>.Working{background:#edf4ff;border-color:#98b8e6}
.shop-route .shop-route-stages>.partial,.shop-route .shop-route-stages>.Review{background:#fff6e4;border-color:#e6c983}
.shop-route .shop-route-stages>.Blocked{background:#fff0f0;border-color:#e7aaaa}
.shop-route .shop-route-stages>.current{box-shadow:inset 0 0 0 1px #3978d8}
@media(max-width:650px){.shop-route .shop-route-stages>li{flex-basis:145px;min-height:82px}.shop-order-quantity{font-size:.65em}}

/* Product selection needs no separate caption; machine choice belongs to navigation. */
.shop-main .shop-task-select{margin:0 0 6px}
.shop-main #shopOperation{height:36px;min-height:36px;padding:6px 10px;font-size:13px}
.shop-topbar .shop-header h1{display:flex;align-items:center;min-height:36px;padding:6px 9px;margin:0;border:1px solid #c9d5e5;border-radius:7px;background:#fff;font-size:12px;font-weight:600;box-sizing:border-box}
.shop-shortcuts .shop-operation-choice{position:relative;flex:0 0 auto;align-items:center;margin:0;gap:5px}
.shop-machine-options{display:flex;align-items:stretch;gap:5px}
.shop-machine-options>button,.shop-machine-toggle{height:36px;min-height:36px;padding:6px 8px;border:1px solid var(--line,#c9d5e5);border-radius:7px;background:#fff;font-size:11px;white-space:nowrap}
.shop-machine-options>button.selected{border-color:#3978d8;background:#edf4ff;color:#245ba5}
.shop-machine-toggle{display:none;align-items:center;justify-content:center;gap:5px;max-width:150px;overflow:hidden}
.shop-machine-toggle .shell-icon{width:21px;height:21px;flex-shrink:0}
.shop-machine-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:651px) and (max-width:1450px){
 .shop-shortcuts:has(.shop-operation-choice) [data-shop-view]{width:34px;min-width:34px;padding:6px!important;position:relative;display:flex;justify-content:center;align-items:center}
 .shop-shortcuts:has(.shop-operation-choice) [data-shop-view]>.shell-icon{display:block;width:21px;height:21px}
 .shop-shortcuts:has(.shop-operation-choice) [data-shop-view]>.mobile-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:1150px){
 .shop-operation-choice .shop-machine-toggle{display:flex}
 .shop-operation-choice .shop-machine-options{display:none;position:absolute;right:0;top:calc(100% + 6px);min-width:230px;max-width:calc(100vw - 24px);padding:7px;background:#fff;border:1px solid #c9d5e5;border-radius:8px;box-shadow:0 8px 24px #17223526;z-index:56}
 .shop-operation-choice.is-open .shop-machine-options{display:grid;gap:6px}
 .shop-machine-options>button{text-align:left;height:auto;min-height:40px;white-space:normal}
}
@media(max-width:650px){
 .shop-topbar .shop-header h1{font-size:clamp(11px,3.65vw,16px);min-height:34px;white-space:nowrap;padding:5px 8px;width:max-content;max-width:100%}
 .shop-shortcuts:has(.shop-operation-choice){grid-template-columns:repeat(8,minmax(0,1fr))}
 .shop-shortcuts .shop-operation-choice{display:flex;min-width:0;max-width:100%;justify-content:center}
 .shop-operation-choice .shop-machine-toggle{height:48px;min-height:48px;width:100%;min-width:0;padding:8px 2px;border:0;background:transparent}
 .shop-machine-toggle .shop-machine-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .shop-operation-choice .shop-machine-options{position:fixed;top:auto;bottom:calc(64px + env(safe-area-inset-bottom,0px));left:8px;right:8px;width:auto;max-width:none;min-width:0}
}

.shop-count{justify-content:flex-end;margin:6px 0 5px;min-height:0}
@media(min-width:651px) and (max-width:1000px){
 .shop-operation-choice .shop-machine-toggle{width:34px;min-width:34px;max-width:34px;padding:6px}
 .shop-operation-choice .shop-machine-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

.shop-orders-tools{background:#fff;border:1px solid #c9d5e5;border-radius:7px;padding:4px 6px;gap:8px;box-sizing:border-box}
.shop-orders-tools>h2{font-size:14px;line-height:1.3;font-weight:600}
.shop-orders-tools .check{font-size:12px;line-height:1.25;gap:5px;color:#172b46}
.shop-orders-tools input{width:18px;height:18px;min-height:18px}
.shop-job .shop-job-heading{display:grid;grid-template-columns:minmax(0,max-content) minmax(70px,1fr) auto;align-items:center;gap:12px}
.shop-job-heading>div:first-child{min-width:0}
.shop-job h2.shop-order-code{margin:0;gap:6px 9px}
.shop-job .shop-order-quantity{font:inherit;letter-spacing:inherit;color:inherit;white-space:nowrap}
.shop-job-heading>.shop-node-name{display:block;text-align:center;min-width:0;font-size:18px;font-weight:600;line-height:1.3;overflow-wrap:anywhere;color:#172b46}
.shop-job-heading>.shop-deadline{margin:0;white-space:nowrap}
@media(min-width:701px) and (max-width:1000px){.shop-job h2.shop-order-code{font-size:24px}.shop-job-heading>.shop-node-name{font-size:16px}.shop-job .shop-job-heading{gap:8px}.shop-orders-tools>h2{font-size:13px}.shop-orders-tools .check{font-size:11px}}
@media(max-width:700px){
 .shop-job .shop-job-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
 .shop-job-heading>div:first-child{grid-column:1;grid-row:1}
 .shop-job-heading>.shop-deadline{grid-column:2;grid-row:1}
 .shop-job-heading>.shop-node-name{grid-column:1/-1;grid-row:2;font-size:16px;text-align:center}
 .shop-job .shop-order-quantity{font:inherit}
}

.shop-orders-tools .check{white-space:nowrap}
.shop-waiting-text{white-space:nowrap;display:block;flex:0 0 auto}
@media(min-width:651px) and (max-width:1150px){.shop-orders-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.shop-orders-tools .check{font-size:11px}.shop-orders-tools .shop-controls{justify-content:flex-start}}

@media(min-width:1000px){.shop-operation-choice .shop-machine-toggle{display:none}.shop-operation-choice .shop-machine-options{display:flex;position:static;min-width:0;max-width:none;padding:0;border:0;box-shadow:none;background:transparent}.shop-machine-options>button{min-height:36px;white-space:nowrap}}

.shop-window.shop-messages-window{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0;border:0}.shop-unread-count{color:#c62f3b;font-weight:700}.shop-embedded .heading.page-actions:empty{display:none}
@media(min-width:651px){body.shop-embedded:has(.chat-layout){height:100dvh;overflow:hidden}body.shop-embedded:has(.chat-layout) #app{height:100%}body.shop-embedded #content:has(.chat-layout){height:100%!important;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px}body.shop-embedded #content:has(.chat-layout)>.chat-layout{flex:1;height:auto;min-height:0}}
