:root{color-scheme:dark;--ink:#102a32;--deep:#091c25;--panel:#132d35;--line:#ffffff20;--muted:#9bb2b4;--paper:#f6f2df;--teal:#67ead0;--gold:#ffd169;--orange:#f3934c;font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--deep);color:var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{cursor:not-allowed}button[hidden],[hidden]{display:none!important}#game{position:relative;width:100%;height:100dvh;min-height:420px;overflow:hidden}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}.grain{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 25%,#05161f88 100%);opacity:.72}.topbar{position:absolute;top:0;left:0;right:0;height:94px;padding:22px 34px;display:flex;align-items:center;gap:32px;background:linear-gradient(#091c25d9,transparent);z-index:25}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--paper);font-size:26px;font-weight:900;line-height:1;letter-spacing:-1px}.brand-rush{color:var(--teal)}.brand small{display:block;font-size:8px;letter-spacing:2.1px;font-weight:700;margin-top:9px;color:#c3d3cd}.brand-icon{width:44px;height:44px;border-radius:12px;background:var(--teal);color:var(--ink);font-size:37px;line-height:43px;padding-left:7px;position:relative;font-weight:1000;box-shadow:0 4px 0 #258d81}.brand-icon span{position:absolute;right:4px;top:12px;font-size:14px;line-height:1;transform:rotate(-20deg)}.shift-heading{padding-left:28px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:5px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--teal)}.shift-heading strong{font-size:15px;font-weight:600}.top-actions{margin-left:auto;display:flex;gap:8px}.icon-button{width:39px;height:39px;border:1px solid #acc6c330;border-radius:50%;background:#18313caa;font-size:20px;transition:background .2s}.icon-button:hover{background:#34545c}.overlay{position:absolute;inset:0;display:flex;align-items:center;z-index:20;pointer-events:none;background:linear-gradient(90deg,#091b24e6 0%,#091b24af 24%,transparent 56%)}.welcome-panel{pointer-events:auto;margin:88px 0 26px 5.2vw;width:355px;max-height:calc(100dvh - 105px);overflow:auto;scrollbar-width:thin}.edition{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.7px;font-weight:800;color:#b4c8c7}.edition>span:first-child{width:7px;height:7px;background:var(--gold);border-radius:2px;transform:rotate(45deg)}.edition>span:last-child{margin-left:auto;font-size:9px;color:#758e93}h1{font-family:"Arial Black","Avenir Next",sans-serif;font-size:clamp(44px,4.6vw,70px);font-weight:950;line-height:.96;letter-spacing:-3px;margin:25px 0 22px}h1 em{font-style:normal;color:var(--teal)}.welcome-panel>p{color:#b1c3c2;max-width:305px;font-size:15px;line-height:1.7;margin:0 0 24px}.shift-picker{display:flex;flex-direction:column;gap:5px;margin-bottom:15px}.shift-choice{display:flex;align-items:center;text-align:left;gap:14px;padding:11px 12px;border:1px solid #adcccd23;border-radius:7px;background:#17343b99}.shift-choice.selected{background:#28504caa;border-color:#64dcc9}.shift-choice:disabled{opacity:.48}.shift-choice .num{font:700 15px ui-monospace,monospace;color:#9cb6b8}.shift-choice.selected .num{color:var(--teal)}.shift-choice b{display:block;font-size:13px}.shift-choice small{display:block;font-size:10px;margin-top:2px;color:#aac1c0}.shift-choice .pick-mark{margin-left:auto;color:var(--teal);font-size:13px}.primary-button{border:0;border-radius:7px;background:var(--gold);color:#173039;font-size:13px;letter-spacing:1.1px;font-weight:900;padding:17px 20px;width:100%;display:flex;align-items:center;justify-content:space-between;box-shadow:0 4px 0 #a77b31;transition:filter .15s,transform .15s}.primary-button:hover{filter:brightness(1.09);transform:translateY(-1px)}.primary-button:active{transform:translateY(2px);box-shadow:0 2px 0 #a77b31}.primary-button span{font-size:21px;line-height:16px}.start-details{display:flex;justify-content:space-between;font-size:9px;font-weight:700;letter-spacing:1px;color:#86a1a5;margin-top:15px}.quick-controls{display:flex;gap:16px;margin-top:23px;color:#b8cac7;font-size:11px;align-items:center}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;padding:3px 5px;border:1px solid #d8e4dc33;border-bottom-width:3px;border-radius:4px;background:#ffffff0b;color:var(--paper);font:600 11px inherit;white-space:nowrap}.click-tip{display:block;font-size:10px;color:#809c9f;margin-top:13px}.floor-caption{position:absolute;right:34px;bottom:29px;display:flex;gap:25px;font-size:9px;font-weight:800;letter-spacing:2px;color:#84a5a7;pointer-events:none}.floor-caption span:first-child{color:#c2d1c7}.modal-panel{pointer-events:auto;width:460px;padding:34px;border:1px solid #547374;border-radius:15px;background:linear-gradient(135deg,#1b3b43,#102832);margin:auto;box-shadow:0 30px 100px #0009;max-height:calc(100dvh - 36px);overflow:auto}.overlay.centered{background:#03141eb3;backdrop-filter:blur(7px);z-index:30}.modal-panel h2{font-size:36px;letter-spacing:-1.4px;line-height:1.1;margin:17px 0}.modal-panel>p{color:#b1c6c6;font-size:15px;line-height:1.65;margin-bottom:25px}.text-button{display:block;border:0;background:none;width:100%;padding:12px 5px 0;font-size:12px;color:#c2d2cc}.text-button:hover{color:var(--gold)}.how-to{list-style:none;padding:0;counter-reset:step;display:grid;gap:20px;margin:27px 0}.how-to li{counter-increment:step;padding-left:38px;position:relative}.how-to li:before{content:counter(step);position:absolute;left:0;top:0;border:1px solid #66dbc560;color:var(--teal);border-radius:8px;width:26px;height:26px;display:grid;place-items:center;font-size:12px}.how-to b{display:block;font-size:14px;margin-bottom:5px}.how-to span{font-size:13px;line-height:1.6;color:#b0c3c1}.help-keys{font-size:11px;color:#b0c3c1;padding:10px 0;border-top:1px solid var(--line)}.help-keys kbd{margin-right:4px}.help-note{font-size:12px!important}.result-stats{display:grid;grid-template-columns:1.6fr 1fr 1fr;border-block:1px solid var(--line);padding:22px 0;gap:12px}.result-stats strong{display:block;font:700 32px ui-monospace,monospace;color:var(--paper)}.result-stats span{display:block;font-size:10px;letter-spacing:1.4px;margin-top:6px;color:#a3bebb}.result-best{font-size:12px;padding:20px 0;color:var(--teal)}#result-stars{font-size:35px;letter-spacing:5px;color:var(--gold);margin-top:20px}#result-stars .empty{color:#456067}#live-hud{position:absolute;top:91px;left:34px;right:34px;z-index:11;pointer-events:none}.status-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.rfq-label{font-size:10px;font-weight:800;letter-spacing:1.6px;display:flex;align-items:center;gap:9px}.rfq-label>span:last-child{color:#7d9fa1;margin-left:8px}.live-dot{height:6px;width:6px;background:var(--teal);border-radius:50%;box-shadow:0 0 12px #6cebc6}.scoreboard{display:flex;gap:26px}.scoreboard>span{display:flex;align-items:center;gap:9px}.scoreboard small{font-size:8px;letter-spacing:1.5px;color:#acc7c4}.scoreboard b{font:700 20px ui-monospace,monospace}.scoreboard .timer{color:var(--gold)}.timer.urgent{color:#ff947d;animation:urgent 1s infinite}#orders{display:flex;gap:10px;min-height:110px}.order-ticket{pointer-events:auto;position:relative;text-align:left;background:#f5f0db;color:var(--ink);border:2px solid transparent;border-radius:6px;padding:12px 14px 11px;width:220px;flex-shrink:0;box-shadow:0 5px 14px #00172142;overflow:hidden;transition:transform .2s}.order-ticket:after{position:absolute;content:'';top:0;right:17px;width:12px;height:4px;background:#19323a33;border-radius:0 0 2px 2px}.order-ticket.selected{border-color:var(--teal);box-shadow:0 0 0 2px #185754,0 5px 18px #00172170;transform:translateY(3px)}.ticket-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px;font:700 10px ui-monospace,monospace;color:#647772}.ticket-top .due{color:#3a6262}.ticket-top .due.urgent{color:#be452f}.order-ticket h3{font-size:15px;margin:0 0 9px;letter-spacing:-.3px}.route{display:flex;align-items:center;gap:4px}.route-step{font-size:9px;font-weight:800;padding:4px 5px;border-radius:4px;background:#dce0d3;color:#526862;white-space:nowrap}.route-step.done{background:#c6dfce;color:#386d54}.route-step.active{background:var(--ink);color:#fff7dc}.route-arrow{font-size:9px;color:#9aaba0}.ticket-status{font-size:10px;margin-top:8px;color:#5e7470;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-progress{position:absolute;bottom:0;left:0;height:3px;width:100%;background:#d4ddcd}.ticket-progress i{display:block;height:100%;background:#45a88d;transform-origin:left;transition:transform .25s linear}.order-ticket.urgent .ticket-progress i{background:#e1754c}.orders-empty{padding:24px;color:#99b4b4;font-size:13px;background:#102b3488;border:1px dashed #547976;border-radius:8px}.station-label{pointer-events:auto;position:absolute;transform:translate(-50%,-100%);border:1px solid #90d6c840;border-radius:6px;background:#122f39e8;color:#d9e5d9;padding:5px 9px;font-size:10px;letter-spacing:.6px;font-weight:800;white-space:nowrap;box-shadow:0 4px 10px #0003;display:flex;align-items:center;gap:6px;transition:background .15s,opacity .2s;z-index:5;min-height:27px}.station-label .station-dot{width:5px;height:5px;border-radius:50%;background:#72939b}.station-label .station-progress{position:absolute;bottom:0;left:0;height:2px;background:var(--gold);border-radius:3px}.station-label .station-time{font:700 10px ui-monospace,monospace;color:var(--gold)}.station-label.ready{background:#146b5b;border-color:#7af0c0;color:#f1ffe6}.station-label.ready .station-dot{background:#a2ffc4}.station-label.busy .station-dot{background:var(--gold)}.station-label.target{border-color:var(--gold);box-shadow:0 0 0 2px #e6bd4d22,0 0 22px #efc75e22}.station-label.locked{opacity:.45}.station-label:hover{filter:brightness(1.3)}#game-footer{position:absolute;bottom:20px;left:28px;right:28px;display:flex;justify-content:space-between;align-items:center;z-index:10;gap:14px;pointer-events:none}.carry-panel{background:#0d2832ec;border:1px solid #5d858166;box-shadow:0 8px 35px #00131d44;border-radius:10px;padding:12px 18px 13px;min-width:260px;display:flex;align-items:center;gap:14px;pointer-events:auto}.carry-icon{width:37px;height:37px;border:1px solid #698d8466;border-radius:8px;display:grid;place-items:center;font-size:28px;color:var(--teal);background:#35665e44}.carry-panel small{display:block;font-size:8px;letter-spacing:1.5px;color:#95b2b2}.carry-panel strong{display:block;font-size:14px;margin:4px 0}.carry-panel span#carry-next{display:block;font-size:10px;color:#a1bdb6}.interaction-hint{display:flex;align-items:center;gap:10px;font-size:13px;color:#f9f1d9;padding:10px 14px;border-radius:8px;background:#0a2531bb;backdrop-filter:blur(10px);max-width:320px}.interaction-hint kbd{background:var(--gold);color:var(--ink);border-color:#d5a345;min-width:29px;min-height:30px;font-weight:900}.keyboard-guide{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;width:284px;font-size:10px;color:#b4c9c6}.keyboard-guide small{display:block;font-size:9px;width:100%;text-align:right;color:#90aaa9}#coach{position:absolute;bottom:116px;left:30px;display:flex;gap:12px;align-items:center;padding:13px 17px;border-left:3px solid var(--gold);background:#153540de;z-index:9;border-radius:0 6px 6px 0}.coach-number{font:700 22px ui-monospace,monospace;color:var(--gold)}#coach small{display:block;font-size:8px;letter-spacing:1.5px;color:#97b6b5;margin-bottom:5px}#coach strong{font-size:12px;font-weight:500}#toast{position:absolute;left:50%;bottom:135px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:25;background:#f2ebce;color:#19343b;border-radius:8px;font-size:13px;font-weight:700;padding:12px 22px;box-shadow:0 5px 25px #0003;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}#floating-text{position:absolute;inset:0;pointer-events:none;z-index:8}.float-text{position:absolute;transform:translate(-50%,-50%);color:var(--gold);font-size:22px;font-weight:900;white-space:nowrap;text-shadow:0 2px 8px #09222c;animation:float-up 1.6s forwards}.float-text.small{font-size:14px;color:#cbffde}#loading,#fatal{position:absolute;inset:0;z-index:50;background:var(--deep);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}#loading strong{font-size:19px}#loading span{font-size:12px;color:var(--muted)}.loader-mark{width:64px;height:64px;background:var(--teal);color:var(--ink);font-size:55px;font-weight:1000;line-height:64px;text-align:center;border-radius:17px;animation:load-breathe 1.5s infinite}#fatal{padding:30px;text-align:center}#fatal p{max-width:450px;color:var(--muted);line-height:1.7}#fatal button{padding:12px 24px;background:var(--gold);color:var(--ink);border:0;border-radius:8px}#touch-controls{position:absolute;bottom:105px;left:24px;right:24px;pointer-events:none;z-index:15;display:none}#joystick{width:92px;height:92px;border-radius:50%;background:#193b4566;border:1px solid #bcd6ce50;pointer-events:auto;touch-action:none;position:relative}#joystick-knob{position:absolute;width:40px;height:40px;background:#99cbbc80;border:1px solid #deeedb88;border-radius:50%;left:25px;top:25px;pointer-events:none}#touch-interact,#touch-dash{pointer-events:auto;position:absolute;right:0;bottom:7px;border:1px solid #ffe39a90;background:#eed084df;color:#133439;font-size:21px;font-weight:900;border-radius:50%;width:66px;height:66px;touch-action:none}#touch-dash{right:80px;bottom:0;width:47px;height:47px;background:#183c47aa;color:#dcecd8}.paused #station-labels{opacity:.5}@keyframes float-up{0%{opacity:1;margin-top:0}100%{opacity:0;margin-top:-55px}}@keyframes load-breathe{50%{transform:translateY(-5px)}}@keyframes urgent{50%{opacity:.6}}@media(min-width:1650px){.welcome-panel{width:400px}h1{font-size:78px}.welcome-panel>p{max-width:370px}.shift-choice{padding:13px}.order-ticket{width:242px}}
@media(max-width:1000px){.topbar{padding:18px 24px;height:80px}.brand{font-size:22px}.brand-icon{width:39px;height:39px;font-size:32px;line-height:39px}.shift-heading{padding-left:17px;gap:4px}.shift-heading strong{font-size:13px}.welcome-panel{width:300px;margin-left:4vw}h1{font-size:54px}.welcome-panel>p{font-size:14px;line-height:1.6;margin-bottom:18px}.edition{font-size:8px;letter-spacing:1px}.quick-controls{gap:10px}.floor-caption{font-size:8px;right:22px}.keyboard-guide{display:none}#live-hud{top:80px;left:24px;right:24px}.order-ticket{width:204px;padding:10px}#orders{overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin}.scoreboard{gap:16px}.carry-panel{min-width:240px}.interaction-hint{margin-left:auto}}
@media(max-height:750px) and (min-width:700px){.welcome-panel{margin-top:86px}.edition{display:none}h1{font-size:49px;line-height:.94;margin:10px 0 17px}.welcome-panel>p{margin-bottom:16px}.shift-choice{padding:9px 12px}.quick-controls{margin-top:18px}.click-tip{margin-top:8px}.start-details{margin-top:12px}.primary-button{padding:15px 18px}}
@media(pointer:coarse){body.playing #touch-controls{display:block}body.playing #coach{bottom:210px;left:24px}body.playing .interaction-hint{display:none}}
@media(max-width:680px){.topbar{height:74px;padding:17px 18px;gap:15px}.brand{font-size:21px}.brand small{font-size:6px;letter-spacing:1.6px;margin-top:7px}.brand-icon{width:34px;height:34px;font-size:29px;line-height:34px;border-radius:9px}.brand-icon span{font-size:11px;right:3px;top:10px}.shift-heading{display:none}.top-actions{gap:6px}.icon-button{width:33px;height:33px;font-size:16px}.overlay{align-items:flex-end;background:linear-gradient(0deg,#071d28fc 15%,#091e28da 46%,transparent 78%)}.welcome-panel{margin:0 22px 28px;width:calc(100% - 44px);max-height:65dvh;overflow:auto}.edition{display:none}h1{font-size:43px;letter-spacing:-2px;line-height:.95;margin:16px 0 12px}h1 br:last-child{display:none}h1 em{white-space:normal}.welcome-panel>p{font-size:12px;line-height:1.6;max-width:340px;margin-bottom:17px}.shift-picker{flex-direction:row;gap:7px;margin-bottom:12px}.shift-choice{width:33.33%;display:block;padding:9px 8px}.shift-choice .num{font-size:10px}.shift-choice b{font-size:10px;margin-top:5px}.shift-choice small{display:none}.shift-choice .pick-mark{display:none}.quick-controls{display:none}.click-tip{text-align:center;font-size:10px}.start-details{font-size:8px}.floor-caption{display:none}.modal-panel{width:calc(100% - 32px);padding:27px;max-height:calc(100dvh - 32px);margin:auto}.modal-panel h2{font-size:30px}#live-hud{top:75px;left:16px;right:16px}.rfq-label{font-size:8px;letter-spacing:1px;gap:5px}.rfq-label>span:last-child{display:none}.scoreboard{gap:13px}.scoreboard>span{flex-direction:column;gap:3px}.scoreboard small{font-size:6px;letter-spacing:1px}.scoreboard b{font-size:17px}.status-row{margin-bottom:6px}.order-ticket{width:180px;padding:9px 10px}.order-ticket h3{font-size:14px}.route-step{font-size:8px;padding:4px}.route{gap:3px}.ticket-top{font-size:9px}.ticket-status{font-size:9px}.order-ticket:after{display:none}.station-label{font-size:8px;padding:4px 6px;gap:4px;min-height:22px}.station-label .station-time{font-size:8px}#game-footer{left:16px;right:16px;bottom:18px}.carry-panel{padding:10px 13px;min-width:220px;width:100%}.carry-panel strong{font-size:13px}.interaction-hint{font-size:11px;padding:8px;max-width:135px;display:none}#coach{left:16px;bottom:104px;max-width:calc(100% - 32px);padding:10px 13px}#coach strong{font-size:11px}#coach small{font-size:7px}.coach-number{font-size:18px}#toast{bottom:210px;font-size:12px;width:max-content;max-width:88vw}#touch-controls{bottom:109px}.result-stats strong{font-size:29px}#result-stars{font-size:31px}}
@media(max-height:510px){#game{min-height:320px}.topbar{height:63px;padding:12px 20px}.welcome-panel{margin-top:65px;max-height:calc(100dvh - 77px);width:290px}.welcome-panel h1{font-size:35px;margin:5px 0 10px}.welcome-panel h1 br:last-child{display:none}.welcome-panel>p,.edition,.quick-controls,.click-tip{display:none}.shift-choice{padding:7px 10px}.shift-choice small{display:none}.shift-picker{margin-bottom:10px;gap:4px}.primary-button{padding:12px 15px}#live-hud{top:65px}.order-ticket{padding:7px 9px;min-height:90px}.ticket-status{margin-top:5px}#game-footer{bottom:10px}.carry-panel{padding:8px 12px}.carry-panel strong{font-size:12px}#coach{bottom:83px;padding:8px 12px}.floor-caption{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.order-ticket.long-route{width:264px}@media(max-width:680px){.order-ticket.long-route{width:234px}}

/* Tickets occupy a dedicated rail in short landscape windows. */
@media (min-width:700px) and (max-height:780px) {
  #live-hud{--ticket-rail:218px;top:80px;left:18px;right:18px}
  #orders{pointer-events:auto;position:absolute;top:38px;left:0;width:var(--ticket-rail);height:calc(100dvh - 214px);min-height:0;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding:5px 6px 9px 3px;scrollbar-width:thin;scrollbar-gutter:stable}
  #orders .order-ticket,#orders .order-ticket.long-route{width:100%;min-height:106px;flex-shrink:0;padding:10px}
  #orders .route{gap:3px;flex-wrap:wrap}
  #orders .route-step{padding:4px;font-size:9px}
  #orders .ticket-status{font-size:10px}
  #game-footer{left:18px;right:18px;bottom:14px}
  .carry-panel{min-width:218px;padding:10px 12px}
  #coach{left:254px;bottom:95px;max-width:calc(100% - 274px);padding:9px 12px}
  #coach strong{font-size:11px}
  #toast{left:calc(50% + 115px);max-width:calc(100% - 274px);bottom:135px}
}
@media (min-width:700px) and (max-height:510px) {
  #live-hud{top:64px;--ticket-rail:202px}
  #orders{top:32px;height:calc(100dvh - 182px)}
  #orders .order-ticket,#orders .order-ticket.long-route{min-height:98px;padding:8px}
  #coach{left:235px;bottom:82px;max-width:calc(100% - 253px)}
  #toast{bottom:120px}
}

/* A stable office strip reserves its own space below the shop. */
#game-footer{flex-wrap:wrap}
.office-panel{flex-basis:100%;width:100%;min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid #5d858166;border-radius:8px;background:#102e37f5;pointer-events:auto}
.office-panel>div:first-child{min-width:0}
.office-panel strong{display:block;font-size:10px;letter-spacing:1px;color:var(--teal);margin-bottom:4px}
.office-panel span{display:block;font-size:11px;line-height:1.35;color:#c1d4cb}
.office-panel.calling{border-color:#d8b76188}
.office-panel.calling strong{color:var(--gold)}
.office-actions{display:flex;gap:8px;flex-shrink:0}
.office-actions button{border:1px solid #76b8a58c;background:#234c50;border-radius:5px;padding:9px 12px;font-size:11px;color:var(--paper);min-height:35px}
.office-actions button:disabled{opacity:.45}
#call-accept{background:var(--gold);color:var(--ink);border-color:var(--gold);font-weight:800}
.rush-status{font-size:9px;color:#9a541c;font-weight:850;margin-top:5px}
.order-ticket.rush-ticket{background:#fff0cb}
.order-ticket .route{flex-wrap:wrap}
.briefing-goal{color:var(--gold)!important;font-weight:700}
.briefing-fair{font-size:11px!important;color:#91b4ad!important}
@media(min-width:700px) and (max-height:780px){body.has-office #orders{height:calc(100dvh - 285px)}}
@media(min-width:700px) and (max-height:510px){body.has-office #orders{height:calc(100dvh - 253px)}}
@media(max-width:680px){.office-panel{gap:8px;min-height:76px;padding:9px 11px;align-items:flex-start}.office-panel strong{font-size:9px}.office-panel span{font-size:10px}.office-actions{flex-direction:column;gap:5px;max-width:116px}.office-actions button{padding:7px;font-size:10px;min-height:31px}body.has-office #touch-controls{bottom:198px}body.has-office #toast{bottom:293px}#game-footer{gap:9px}}

/* The shop owns the main stage; orders and desk controls live in one rail. */
#shop-sidebar{display:contents}
#shop-sidebar #orders .order-ticket{padding:11px 12px;min-height:132px}
#shop-sidebar .ticket-top{font-size:13px}
#shop-sidebar .order-ticket h3{font-size:16px;margin-bottom:9px}
#shop-sidebar .route-step{font-size:13px;padding:4px 5px}
#shop-sidebar .route-arrow{font-size:13px}
#shop-sidebar .route{gap:3px;flex-wrap:wrap}
#shop-sidebar .ticket-status{font-size:13px;line-height:1.35;white-space:normal;margin-top:7px}
#shop-sidebar .rush-status{font-size:13px}
#shop-sidebar .office-panel strong{font-size:13px;letter-spacing:.4px}
#shop-sidebar .office-panel span{font-size:13px;line-height:1.4}
#shop-sidebar .office-actions button{font-size:13px;padding:8px 10px;min-height:36px}
#shop-sidebar .carry-panel strong{font-size:15px}
#shop-sidebar .carry-panel span#carry-next{font-size:13px;line-height:1.3}
.station-label{font-size:13px;letter-spacing:.2px;padding:6px 9px}
.station-label .station-time{font-size:12px}
@media(min-width:760px){
  .topbar{height:72px;padding:15px 22px}
  #live-hud{top:78px;left:18px;right:18px}
  .status-row{height:27px;margin:0}
  .rfq-label{font-size:12px;letter-spacing:1px}
  .scoreboard small{font-size:10px}
  .scoreboard b{font-size:22px}
  #shop-sidebar{display:flex;position:absolute;left:18px;top:117px;bottom:14px;width:clamp(252px,21.5vw,300px);flex-direction:column;gap:12px;z-index:12;pointer-events:none}
  #shop-sidebar #orders{pointer-events:auto;position:relative;inset:auto;width:100%;height:auto;min-height:80px;flex:1;display:flex;flex-direction:column;align-items:stretch;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable;padding:4px 5px 7px 2px;gap:10px}
  #shop-sidebar #orders .order-ticket,#shop-sidebar #orders .order-ticket.long-route{width:100%;min-height:132px;flex-shrink:0}
  #shop-sidebar #game-footer{position:static;inset:auto;display:flex;flex-direction:column;flex-wrap:nowrap;gap:9px;width:100%;margin:0}
  #shop-sidebar .office-panel{flex:none;min-height:0;padding:11px 12px;flex-direction:column;align-items:stretch;gap:9px}
  #shop-sidebar .office-actions{flex-direction:row;gap:6px;max-width:none;flex-shrink:1}
  #shop-sidebar .office-actions button{flex:1}
  #shop-sidebar .carry-panel{min-width:0;width:100%;padding:11px 12px;gap:11px}
  #shop-sidebar .interaction-hint{width:100%;margin:0;max-width:none;font-size:13px;padding:9px 11px;backdrop-filter:none}
  #shop-sidebar .keyboard-guide{display:none}
  #coach{left:calc(clamp(252px,21.5vw,300px) + 48px);bottom:20px;max-width:calc(100vw - 340px)}
  #toast{left:calc(50% + 140px);bottom:25px;max-width:calc(100vw - 350px)}
  body.has-office #touch-controls{left:calc(clamp(252px,21.5vw,300px) + 45px);bottom:20px}
}
@media(min-width:760px) and (max-height:600px){
  #shop-sidebar{gap:8px}
  #shop-sidebar .interaction-hint{display:none}
  #shop-sidebar .office-panel{padding:9px 11px;gap:6px}
  #shop-sidebar .carry-panel{padding:9px 11px}
}
@media(max-width:759px){
  #live-hud{top:75px;left:16px;right:16px}
  #shop-sidebar #orders{position:absolute;top:116px;left:16px;right:16px;width:auto;height:173px;min-height:0;display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:10px;padding:4px 2px 9px;pointer-events:auto;z-index:12}
  #shop-sidebar #orders .order-ticket,#shop-sidebar #orders .order-ticket.long-route{width:236px;min-height:145px;align-self:stretch;flex-shrink:0}
  #shop-sidebar #game-footer{position:absolute;left:16px;right:16px;bottom:18px;gap:8px}
  #shop-sidebar .office-panel{padding:9px 11px;gap:9px}
  #shop-sidebar .office-actions{max-width:112px}
  #shop-sidebar .office-actions button{font-size:12px;padding:7px;min-height:35px}
  #shop-sidebar .carry-panel{min-width:0;width:100%;padding:9px 11px}
  #shop-sidebar .interaction-hint,#shop-sidebar .keyboard-guide{display:none}
  .station-label{font-size:12px;padding:5px 7px;gap:4px}
  .station-label .station-time{font-size:11px}
  #coach{left:16px;right:16px;bottom:102px}
  body.has-office #touch-controls{bottom:216px}
  body.has-office #toast{bottom:275px;left:50%;max-width:calc(100vw - 36px)}
}
/* Essential game text keeps a readable size instead of shrinking to fit. */
#shop-sidebar .ticket-top,#shop-sidebar .route-step,#shop-sidebar .route-arrow,
#shop-sidebar .ticket-status,#shop-sidebar .rush-status,
#shop-sidebar .office-panel strong,#shop-sidebar .office-panel span,
#shop-sidebar .office-actions button,#shop-sidebar .carry-panel span#carry-next,
.station-label,.station-label .station-time{font-size:13.5px}
@media(max-width:759px){#shop-sidebar #orders{height:206px}}

/* Star targets are visible before the clock starts and throughout the shift. */
.star-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0 13px}
.star-targets>div{padding:10px 6px;border:1px solid #729f9366;border-radius:7px;background:#0c2832aa;text-align:center}
.star-targets span{display:block;color:var(--gold);font-size:17px;letter-spacing:2px;min-height:24px}
.star-targets strong{display:block;font:700 20px ui-monospace,monospace;margin-top:4px}
.star-targets small{display:block;font:500 13.5px "Avenir Next",Avenir,sans-serif;color:#bacfc6;margin-top:3px}
.modal-panel p.briefing-challenge,.modal-panel p.result-progress{font-size:13.5px;line-height:1.5;color:#e7d7a3}
.welcome-panel p.migration-note{font-size:13.5px;line-height:1.4;color:var(--gold);margin:0 0 13px}
.owner-mastery{border-color:var(--gold);box-shadow:0 0 50px #ffd16925,0 30px 100px #0009}
.owner-mastery #result-stars{filter:drop-shadow(0 0 12px #ffd16977)}
#shipment-progress small{white-space:nowrap;font-size:10px;letter-spacing:.7px}
@media(max-width:759px){#shipment-progress small{font-size:9px;letter-spacing:0}.star-targets{gap:5px}.star-targets span{font-size:16px;letter-spacing:1px}}

/* Order affordances and the optional outside-capability job. */
.order-list-heading{font-size:13.5px;color:var(--gold);display:flex;justify-content:space-between;pointer-events:none;padding-inline:3px;flex-shrink:0}
.ticket-select{display:block;font-size:13.5px;font-weight:900;letter-spacing:.6px;color:#466b62;margin:-3px 0 9px}.selected .ticket-select{color:#196b56}.order-ticket:hover{border-color:#45a88d}.order-ticket:focus-visible{outline-offset:-5px}
#shop-sidebar #orders .order-ticket{min-height:154px}
.source-card{border:1px solid #70ccbba0;background:linear-gradient(130deg,#183f47,#14303b);border-radius:8px;padding:13px;display:flex;flex-direction:column;gap:8px;flex-shrink:0;pointer-events:auto;color:var(--paper);width:100%}.source-card>small{font-size:10px;letter-spacing:1px;color:var(--teal);font-weight:800}.source-card>strong{font-size:15px}.source-card>span{font-size:13.5px;color:#b8d0ca;line-height:1.4}.source-card>div{display:flex;gap:6px}.source-card button,.social-results button,.friend-challenge button,.board-dialog button{border:1px solid #6eb2a68a;border-radius:5px;background:#2e5c5b;color:#e9f4dc;font-size:13.5px;padding:10px;min-height:39px}.source-card button:hover,.social-results button:hover,.friend-challenge button:hover,.board-dialog button:hover{background:#3a7470}.source-card button:disabled,.board-dialog button:disabled{opacity:.5}.source-card #source-decline{background:transparent;color:#acc7bf}.source-card.delivered{opacity:.75}.source-card.delivered>div{display:none}
.social-results{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.social-results button{flex:1;min-width:145px}.social-results>span,.social-results>input{width:100%;font-size:13px;line-height:1.5}.social-results input{background:#0c2530;border:1px solid #5b807e;color:#e7efda;border-radius:5px;padding:9px}.friend-challenge{border:1px solid #5de2cb88;background:#234d4b;padding:13px;margin:0 0 16px;border-radius:7px;display:flex;flex-direction:column;gap:9px}.friend-challenge small{color:var(--teal);font-size:10px;letter-spacing:1px}.friend-challenge strong{font-size:14px;line-height:1.5}.modal-panel p.friend-result{color:var(--teal);font-size:14px;margin:0 0 15px}
.board-dialog{color:var(--paper);font-family:inherit;background:#13313b;border:1px solid #64817d;border-radius:15px;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:26px;box-shadow:0 25px 80px #0009}.board-dialog::backdrop{background:#04171edb;backdrop-filter:blur(5px)}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.board-heading small{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:800}.board-heading h2{font-size:27px;letter-spacing:-1px;margin:8px 0}.board-heading button{font-size:23px;width:40px;padding:4px}.board-note{font-size:13.5px;color:#bbd0ca;line-height:1.6}.board-role-label{font-size:13.5px;display:flex;align-items:center;gap:14px}.board-dialog select,.board-dialog input{font:inherit;font-size:14px;border:1px solid #6b8e88;border-radius:5px;background:#092530;color:#f4f0da;padding:10px;min-width:0}.board-dialog select{flex:1}.board-dialog label{font-size:13.5px}.board-dialog #post-form{padding:17px 0;border-bottom:1px solid #5c7b7566;margin-top:8px}.post-row{display:flex;gap:8px;margin:8px 0}.post-row input{flex:1;width:100px}.board-dialog small{line-height:1.5}.board-dialog #post-form small{font-size:12px;color:#b7cec4}.board-dialog #post-status,.board-dialog #board-status{font-size:13.5px;color:var(--teal);line-height:1.5}.board-dialog #board-list{padding-left:24px}.board-dialog li{padding:13px 0 13px 8px;border-bottom:1px solid #52766e55;font-size:14px}.board-dialog li::marker{color:var(--gold);font-weight:800}.board-dialog li strong{display:block;overflow-wrap:anywhere}.board-dialog li span{display:block;font-size:13.5px;color:#aec9bf;margin-top:5px}.board-dialog input:focus-visible,.board-dialog select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:759px){.order-list-heading{position:absolute;top:99px;left:18px;font-size:13px;gap:10px;z-index:12}#shop-sidebar #orders .order-ticket{min-height:176px}#orders .source-card{width:258px;overflow-y:auto}.board-dialog{padding:20px}.post-row{flex-wrap:wrap}.post-row input{width:100%;flex-basis:100%}.post-row button{width:100%}}

/* The real Covari mark identifies an optional outside-capability order. */
.source-card .covari-brand{display:flex;align-items:center;gap:10px;margin-bottom:4px}.covari-mark{position:relative;width:42px;height:42px;border-radius:10px;overflow:hidden;background:#fff;flex-shrink:0}.covari-mark img{position:absolute;width:92px;height:92px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}.covari-brand>span:last-child{font-size:22px;font-weight:800;letter-spacing:.2px;line-height:1}.covari-brand small{display:block;font-size:8px;letter-spacing:1.15px;color:#9ee8d8;margin-top:7px}.source-card.chosen{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.source-card.delivered>.covari-brand{display:flex}.source-card button{font-size:13.5px}.source-card>small{line-height:1.4}

.board-scoring{font-size:13.5px;line-height:1.8;color:#e4d9a8;padding:12px 14px;background:#ffffff06;border-radius:6px;border:1px solid #567b7166}

.score-breakdown{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0;}

/* Customer owned outsourcing ticket: same rail language as ordinary work, with a quiet delivery cue. */
.source-card{font-family:inherit;background:#f5f0db;color:var(--ink);border:2px solid transparent;border-radius:6px;padding:11px 12px;gap:7px;box-shadow:0 5px 14px #00172142;min-height:136px;position:relative}
.source-ticket-top{display:flex;justify-content:space-between;gap:8px;font:700 10px ui-monospace,monospace;color:#647772}
.source-due{color:#3a6262}
.source-heading{display:flex;align-items:center;gap:8px;min-width:0}
.source-heading strong{font-size:16px;letter-spacing:-.3px;min-width:0;flex:1}
.source-capability-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:6px;background:#d7e8df;color:#155c51;font-weight:900;font-size:16px;flex:none}
.source-card>small{color:#466b62;font-size:10px;letter-spacing:.5px;font-weight:800}
.source-card>span#source-detail{font-size:12px;color:#5e7470;line-height:1.25}
.source-actions{display:flex!important;gap:6px;margin-top:2px}
.source-card button{border:1px solid #2a7773;border-radius:5px;background:#1dbcae;color:#102a32;font-size:12px;font-weight:800;padding:8px 9px;min-height:35px}
.source-card #source-accept{flex:1;white-space:normal;line-height:1.12}
.source-card #source-decline{background:transparent;color:#466b62;flex:none}
.source-card.delivered{border-color:#45a88d;background:#f7f2dd}
.source-card.chosen{box-shadow:0 0 0 2px #185754,0 5px 18px #00172170}
.source-card.delivered>.source-ticket-top,.source-card.delivered>.source-actions{display:flex!important}
.source-card .source-capability-icon{display:none}
.source-card #source-accept::before{content:'C';display:inline-grid;place-items:center;width:18px;height:18px;margin-right:6px;border-radius:4px;background:#102a32;color:#1dbcae;font-size:11px;font-weight:900;vertical-align:-4px}
@media(max-width:759px){#shop-sidebar #orders .source-card{width:236px;min-height:148px;padding:10px}.source-card button{font-size:11px;padding:7px}.source-heading strong{font-size:15px}}

/* Match the Covari website wordmark with its locally bundled brand typeface. */
@font-face{font-family:"Covari Instrument Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url("./assets/fonts/instrument-sans-latin.woff2") format("woff2")}
.source-card{font-family:"Covari Instrument Sans",Arial,sans-serif;overflow:hidden}
.source-card .covari-brand{gap:9px;background:#fafafa;color:#1b2c3c;margin:-13px -13px 4px;padding:12px 13px;border-bottom:1px solid #1dbcae55}
.source-card .covari-mark{width:34px;height:34px;border-radius:0;background:transparent}
.source-card .covari-mark img{width:75px;height:75px}
.source-card .covari-brand>span:last-child{font-family:"Covari Instrument Sans",Arial,sans-serif;font-size:29px;font-weight:700;letter-spacing:-.8px;line-height:1.1}
.source-card>strong{font-weight:600;font-size:16px;letter-spacing:-.15px}
.source-card #source-accept{background:#1dbcae;border-color:#1dbcae;color:#102a32;font-weight:600}
.source-card #source-accept:hover{background:#55d6c9}

.ticket-heading,.source-card .source-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.ticket-heading h3{flex:1;min-width:0;margin:5px 0}
.technology-badges{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}
.technology-badge{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2a77733d;border-radius:6px;background:#d7e8df;color:#155c51;flex-shrink:0}
.technology-badge.tech-mill{background:#d6e5ec;border-color:#3b78963d;color:#285f7a}
.technology-icon{display:block;width:24px;height:24px;flex-shrink:0}
.source-card .source-heading>strong{font-size:16px;font-weight:600;letter-spacing:-.15px;min-width:0}
.source-card .technology-badge{color:#a4efdf;background:#214a4b;border-color:#6eb4a755}
.source-card.delivered>.source-heading{display:flex}
.station-label>.technology-icon{width:19px;height:19px}

.source-card .technology-badge{width:auto;gap:4px;padding:3px 6px}.technology-code{font-size:11.5px;font-weight:700;letter-spacing:.15px;line-height:1}

/* A compact start-page board and a centered full leaderboard after a shift. */
.home-board{position:absolute;right:34px;top:120px;width:292px;max-height:calc(100dvh - 154px);overflow:auto;pointer-events:auto;padding:20px;background:#102d36f2;border:1px solid #6da09570;border-radius:12px;box-shadow:0 16px 48px #05182055}
.home-board-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #52766e55;padding-bottom:12px}.home-board-heading small{font-size:12px;letter-spacing:1.4px;color:var(--teal);font-weight:800}.home-board-heading h2{font-size:27px;letter-spacing:-.7px;margin:5px 0 0}.home-board-heading>span{font-size:28px;color:var(--gold)}
#home-board-status{font-size:13px;line-height:1.5;color:#acc7be;margin:12px 0}.home-board .text-button{font-size:14px;text-align:left;color:var(--teal);padding-top:16px}
.board-dialog{width:min(720px,calc(100vw - 28px));padding:30px;max-height:calc(100dvh - 48px)}.board-heading h2{font-size:34px}.board-note{font-size:15px}.board-scoring{font-size:14px}
.score-list,.board-dialog #board-list{list-style:none;padding:0;margin:0}.score-list li,.board-dialog .score-list li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #52766e55;font-size:16px}.score-list .score-rank{color:#88aaa5;font:700 13px ui-monospace,monospace}.score-list li:first-child .score-rank,.score-list li:first-child .score-points{color:var(--gold)}.score-list li:nth-child(-n+3) .score-rank{color:var(--gold)}.score-list strong{display:block;font-size:16px;overflow-wrap:anywhere}.score-list small{display:block;font-size:13px;color:#99b8b1;margin-top:4px}.score-list .score-points{font:700 20px ui-monospace,monospace;white-space:nowrap;color:var(--paper)}.board-dialog .score-list .score-rank{font-size:14px;margin:0}.home-board .score-list li{grid-template-columns:22px minmax(0,1fr) auto;gap:9px;padding:10px 0}.home-board .score-list strong{font-size:14px}.home-board .score-list small{display:none}.home-board .score-list .score-points{font-size:16px}
@media(max-width:1000px){.home-board{right:24px;width:270px;top:100px;max-height:calc(100dvh - 128px)}}
@media(max-width:680px){.home-board{position:static;width:100%;max-height:none;margin-top:22px;padding:16px}.board-dialog{padding:20px;max-height:calc(100dvh - 28px)}.board-heading h2{font-size:29px}.score-list li,.board-dialog .score-list li{grid-template-columns:24px minmax(0,1fr) auto;gap:10px}.score-list .score-points{font-size:18px}}

.post-result-summary{font-size:16px;font-weight:700;color:var(--gold);margin:0 0 14px}

/* Keep role selection scrollable while its play action stays in view. */
.welcome-panel{display:flex;flex-direction:column;overflow:visible;gap:16px}
.welcome-panel .role-setup{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px}
.welcome-panel h1{font-size:32px;line-height:1.12;letter-spacing:-1px;margin:0 0 20px}
.welcome-panel .shift-picker{margin-bottom:0}
.welcome-panel #start-button{flex-shrink:0;margin:0 3px;width:calc(100% - 6px)}
.welcome-panel .migration-note{margin:13px 0 0}
@media(max-width:680px){
  .welcome-panel{margin-bottom:18px;gap:12px}
  .welcome-panel h1{font-size:27px;margin-bottom:14px}
}
@media(max-height:510px){
  .welcome-panel{gap:10px}
  .welcome-panel h1{font-size:25px;margin-bottom:12px}
}

/* Keep action names and keyboard shortcuts visible beside the carried part. */
#shop-sidebar #game-footer{flex-shrink:0}
.action-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;pointer-events:auto}
.action-controls button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px;border:1px solid #729f9380;border-radius:7px;background:#183c47;color:var(--paper);font-family:inherit;font-size:14px;font-weight:700;touch-action:manipulation}
.action-controls button:hover{background:#285963}
.action-controls kbd{font-size:12px;color:var(--gold);min-width:24px}
#shop-sidebar .interaction-hint{background:none;padding:0 2px;font-size:13px;color:#b4c9c6}
#touch-interact,#touch-dash{font-size:13px}
#touch-dash{width:56px;height:56px;right:78px}
@media(max-width:759px){#shop-sidebar #game-footer{flex-direction:column;align-items:stretch}}
@media(pointer:coarse){.action-controls{display:none}}

/* Top-row job queue: keep the floor clear between orders and hand controls. */
@media(min-width:760px){
  body.playing .topbar{height:62px;padding:10px 18px;background:none;pointer-events:none}
  body.playing .topbar .brand,body.playing .shift-heading,body.playing .rfq-label{display:none}
  body.playing .top-actions{pointer-events:auto}
  body.playing #live-hud{top:auto;bottom:96px;left:16px;right:auto;width:230px}
  body.playing .status-row{justify-content:flex-end}
  body.playing .scoreboard{gap:14px}
  body.playing .scoreboard>span{flex-direction:column;align-items:flex-start;gap:3px}
  body.playing .scoreboard small{font-size:8px}
  body.playing .scoreboard b{font-size:20px}
  #shop-sidebar{display:contents}
  #shop-sidebar .order-list-heading{display:none}
  #shop-sidebar #orders{position:absolute;top:8px;left:16px;right:116px;width:auto;height:170px;min-height:0;display:flex;flex-direction:row;align-items:stretch;gap:10px;overflow-x:auto;overflow-y:hidden;padding:3px 3px 9px;scrollbar-gutter:auto;z-index:12}
  #shop-sidebar #orders .order-ticket,#shop-sidebar #orders .order-ticket.long-route{width:clamp(218px,calc((100vw - 168px)/4),278px);min-height:0;flex:0 0 auto;padding:7px 10px}
  #shop-sidebar .ticket-heading{margin-bottom:2px}
  #shop-sidebar .order-ticket h3{font-size:16px;margin:2px 0}
  #shop-sidebar .ticket-select{display:none}
  #shop-sidebar .order-ticket.selected .ticket-top>span:first-child::before{content:'✓ ';color:#196b56}
  #shop-sidebar .ticket-top,#shop-sidebar .route-step,#shop-sidebar .route-arrow,#shop-sidebar .ticket-status,#shop-sidebar .rush-status{font-size:11px}
  #shop-sidebar .route{gap:3px;margin:3px 0}
  #shop-sidebar .route-step{padding:2px 3px}
  #shop-sidebar .ticket-status{margin-top:3px;line-height:1.25}
  #shop-sidebar .rush-status{margin-top:2px}
  #orders .source-card{width:286px;overflow-y:auto;padding:9px 11px;gap:5px}
  #shop-sidebar #game-footer{position:absolute;left:16px;right:16px;bottom:12px;width:auto;display:flex;flex-direction:row;align-items:stretch;gap:12px;z-index:12}
  #shop-sidebar .carry-panel{order:0;flex:0 0 250px;width:auto;padding:9px 12px}
  #shop-sidebar .office-panel{order:1;flex:1;width:auto;min-width:0;flex-direction:row;padding:9px 12px}
  #shop-sidebar .office-actions{max-width:240px;flex-shrink:0}
  #shop-sidebar .interaction-hint{order:2;flex:1;align-self:center;width:auto}
  #shop-sidebar .office-panel:not([hidden])~.interaction-hint{display:none}
  #shop-sidebar .action-controls{order:3;flex:0 0 240px;width:auto;align-self:center;margin-left:auto}
  #coach{left:50%;right:auto;bottom:100px;transform:translateX(-50%);max-width:480px}
  #toast,body.has-office #toast{left:50%;bottom:110px;max-width:540px}
  body.has-office #touch-controls{left:16px;bottom:110px}
}
@media(min-width:760px) and (max-width:1050px){
  #shop-sidebar .carry-panel{flex-basis:210px}
  #shop-sidebar .action-controls{flex-basis:210px}
  #shop-sidebar .office-panel{flex-direction:column;align-items:stretch;gap:5px}
  #shop-sidebar .office-actions{max-width:none}
}

/* Keep detailed state available to assistive technology without a prose HUD. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
#shop-sidebar .carry-panel{min-height:54px}
#shop-sidebar #orders .order-ticket,#shop-sidebar #orders .order-ticket.long-route{min-height:0}
#shop-sidebar .order-ticket.selected .ticket-top>span:first-child::before{content:'✓ ';color:#196b56}
#shop-sidebar .source-card .covari-brand{background:none;color:var(--paper);margin:0;padding:0;border:0;gap:5px}
#shop-sidebar .source-card .covari-mark{width:18px;height:18px}
#shop-sidebar .source-card .covari-mark img{width:40px;height:40px}
#shop-sidebar .source-card .covari-brand>span:last-child{font-size:16px;letter-spacing:0}
#shop-sidebar .source-card>small{display:none}
#shop-sidebar .source-card>span{font-size:12px;line-height:1.2}
#shop-sidebar .source-card button{padding:6px 8px;min-height:30px;font-size:12px}
@media(min-width:760px){
  #shop-sidebar #orders{height:136px}
  #shop-sidebar .carry-panel{flex-basis:230px}
  body.playing #live-hud{bottom:80px}
}
@media(max-width:759px){
  #shop-sidebar #orders{top:108px;height:148px}
  #shop-sidebar .order-ticket h3{font-size:16px}
  #shop-sidebar .source-card{gap:4px;padding:8px 10px}
}
#shop-sidebar #orders .source-card{padding:6px 9px;gap:3px}
#shop-sidebar .source-card .source-heading>strong{font-size:14px}
#shop-sidebar .source-card .technology-badge{height:24px}
#shop-sidebar .source-card .technology-icon{width:18px;height:18px}

/* The held job follows its part; empty hands need no panel. */
#carried-job{position:absolute;z-index:13;pointer-events:none;transform:translate(-50%,-100%);padding:3px 6px;border-radius:5px;background:#102e37e8;border:1px solid #ffda7b99;color:var(--gold);font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap}

/* Give every HUD metric the same label and value baselines. */
.scoreboard small,#shipment-progress small{font-size:8px;line-height:12px}
.scoreboard b{line-height:24px}

@media(min-width:760px){
  body.playing #live-hud{left:18px;bottom:12px;width:auto}
  body.playing .status-row{height:auto;justify-content:flex-start}
  #shop-sidebar #game-footer{left:240px}
}

/* Customer ticket with the supplier identified only on the chosen solution. */
#shop-sidebar #orders .source-card{width:286px;min-height:0;overflow:visible;padding:7px 10px;gap:4px;font-family:inherit;border:2px solid #ded9c4;background:var(--paper);color:var(--ink)}
#shop-sidebar .source-card>small{display:block;font-size:10px;line-height:12px;letter-spacing:0;color:#946034}
#shop-sidebar .source-card>.source-ticket-top{display:flex;justify-content:space-between;font-size:10px;line-height:12px}
#shop-sidebar .source-card>.source-heading{display:flex;gap:7px;min-height:24px}
#shop-sidebar .source-card .source-heading>strong{font-size:15px;font-weight:800;line-height:18px}
#shop-sidebar .source-card .technology-badge{color:#536c66;background:#dde6dc;border-color:#c2d2c5}
#shop-sidebar .source-card #source-partner{display:flex;align-items:center;gap:4px;color:#547169;font-size:11px;line-height:16px;min-height:18px}
#shop-sidebar .source-card .source-logo{display:inline-block;position:relative;width:17px;height:17px;overflow:hidden;flex:0 0 17px;border-radius:3px}
#shop-sidebar .source-card .source-logo img{position:absolute;width:37px;height:37px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}
#shop-sidebar .source-card .source-actions{display:flex;gap:6px;margin-top:auto}
#shop-sidebar .source-card button{font-family:inherit;font-size:11px;font-weight:700;line-height:14px;padding:5px 7px;min-height:30px}
#shop-sidebar .source-card #source-accept{display:flex;align-items:center;justify-content:center;gap:5px;font-family:inherit;font-size:11px;line-height:14px;min-width:0;padding:4px 6px}
#shop-sidebar .source-card #source-accept::before{content:none}
#shop-sidebar .source-card #source-accept b{font-weight:900}
#shop-sidebar .source-card #source-collect{flex:1;background:#e0ece1;color:#205a50;border-color:#87b6a8}
#shop-sidebar .source-card .route{display:flex;gap:3px;align-items:center;margin:1px 0}
#shop-sidebar .source-card .route-step{font-size:10px;padding:2px 4px}
#shop-sidebar .source-card.chosen{border-color:#60b6a1;box-shadow:0 4px 12px #00172135}
@media(max-width:759px){#shop-sidebar #orders .source-card{width:270px;padding:6px 9px;gap:3px}}

#shop-sidebar #orders .source-card.delivered{opacity:1;gap:2px;padding-top:6px;padding-bottom:6px}
#shop-sidebar .source-card.delivered #source-partner{min-height:16px;line-height:16px}
#shop-sidebar .source-card.delivered #source-collect{min-height:24px;padding:3px 6px;line-height:14px}
#shop-sidebar .source-card.delivered .route-step{line-height:12px;padding:2px 3px}
/* Automatic stock workflow: informational cards and matching physical bins. */
#shop-sidebar .order-ticket,#shop-sidebar .order-ticket:hover{cursor:default;border-color:transparent;transform:none}
#shop-sidebar .order-ticket.carried-job{border-color:#45bfa4;box-shadow:0 0 0 1px #72e8cf55 inset}
#shop-sidebar .order-ticket.passive-focus{border-color:#b7b397}
.stock-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:24px;height:26px;color:#315d59}
.stock-pictogram{width:24px;height:24px;flex-shrink:0}
.station-label.stock-label{min-height:22px;padding:2px 6px;font-size:11px;gap:4px;line-height:16px}
.stock-label .stock-pictogram{width:17px;height:17px}
@media(max-width:759px){.station-label.stock-label{font-size:10px;min-height:19px;padding:1px 4px;gap:3px}.stock-label .stock-pictogram{width:14px;height:14px}}

.result-covari-card{margin:16px 0;padding:14px 16px;border:1px solid #5b9e91;border-radius:10px;background:linear-gradient(135deg,#183d43,#12303a)}
.result-covari-card h3{margin:0 0 7px;font-size:16px;line-height:1.25;letter-spacing:-.2px}
.result-covari-card p{margin:0 0 8px;color:#b8d0ca;font-size:12px;line-height:1.5}
.result-covari-card a{display:inline-flex;align-items:center;color:var(--gold);font-size:12px;font-weight:800;text-decoration:none}
.result-covari-card a:hover{text-decoration:underline}
