/* Touch-first story playfield. The arcade campaign keeps its own canvas. */
[hidden]{display:none!important}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffd178;outline-offset:3px}
button{touch-action:manipulation}
.story-entry{margin:18px 0;padding:18px;border:1px solid #83eee170;border-radius:20px;background:linear-gradient(120deg,#174537,#101e32)}
.story-entry h3{font-size:26px;margin:0 0 6px}.story-entry p{margin:6px 0 12px}
.story-entry-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.story-route{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}
.story-route button{min-height:64px;font-size:12px;letter-spacing:0;text-transform:none;padding:10px}
.story-route button:disabled{opacity:.5;cursor:default;background:#293b43;color:#bac9c5}
.story-active>.game-shell,.story-active>#screenOverlay{display:none!important}
#storyRoot{position:fixed;inset:0;z-index:40;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:6px;background:#071c23;height:100dvh;color:#effff7}
#storyRoot button{min-height:44px;border:1px solid #75bcae70;border-radius:12px;color:#effff7;background:#173d42;font:700 14px/1.2 system-ui;cursor:pointer;padding:9px 12px}
#storyRoot button:hover{background:#245456}#storyRoot button:disabled{opacity:.45;cursor:default}#storyRoot .story-primary{color:#082628;background:#91f1bd;border-color:#91f1bd}
.story-header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:4px 8px}
.story-header p{margin:0;color:#98d1bd;font-size:11px;text-transform:uppercase;letter-spacing:.12em}
.story-header h2{margin:2px 0 0;font-size:clamp(17px,2vw,27px);line-height:1.1}
.story-score{font:700 14px system-ui;white-space:nowrap}.story-score span{display:block;color:#a6c9bf;font-size:11px}
.story-progress{display:flex;gap:12px;align-items:center;padding:0 8px;color:#c4e3d6;font-size:12px}.story-progress progress{flex:1;min-width:30px;height:10px;accent-color:#8df0b7}
.story-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:10px;min-height:0}
.story-scene{position:relative;min-height:0;isolation:isolate;overflow:hidden;border-radius:20px;border:1px solid #80c4a750;background:#143d38 center/cover no-repeat}
.story-scene::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#071c2340,#04180a90);backdrop-filter:saturate(var(--healing,.6))}
.story-scene::after{content:"";position:absolute;inset:0;pointer-events:none;border:5px solid #81efac;opacity:calc(var(--healing,.6) * .28);border-radius:20px}
.story-place{position:absolute;top:12px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:start;gap:10px;z-index:2;pointer-events:none}.story-place span{background:#061e24e8;padding:8px 10px;border-radius:10px;font:700 12px/1.25 system-ui;max-width:65%}
.story-grime{width:clamp(50px,8vw,100px);height:auto;filter:drop-shadow(0 0 10px #bc6ade80)}
.story-objects{position:absolute;inset:64px 8% 115px 18%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;align-items:center;justify-items:center}
#storyRoot .story-object{width:100%;max-width:145px;min-height:76px;height:100%;max-height:130px;padding:7px 3px;background:#08292bbc;border-color:#d4ffe85c;position:relative;box-shadow:0 5px 10px #0004;transition:transform .2s,border-color .2s}
.story-object img{width:clamp(42px,5vw,70px);height:clamp(42px,5vw,70px);object-fit:contain;display:block;margin:0 auto 2px;filter:drop-shadow(0 4px 4px #0007)}
.story-object span{display:block;font:700 12px/1.2 system-ui}.story-object[aria-pressed=true]{outline:3px solid #ffe299;transform:translateY(-4px)}
#storyRoot .story-object.done{visibility:hidden;pointer-events:none}
.story-circuit{position:absolute;bottom:10px;left:3%;width:clamp(85px,13vw,170px);height:clamp(95px,15vw,180px);pointer-events:none;transform:translateX(var(--circuit-x,0px));transition:transform .4s ease-out;filter:drop-shadow(0 8px 5px #001b1ab0)}
.story-circuit svg{width:100%;height:100%;overflow:visible}.circuit-body{animation:circuit-breathe 2.2s ease-in-out infinite;transform-origin:100px 105px}.circuit-eye{animation:circuit-blink 5s infinite;transform-origin:center;transform-box:fill-box}.circuit-arm-left{transform-origin:55px 98px;animation:circuit-wave 3s ease-in-out infinite}.circuit-arm-right{transform-origin:143px 98px;animation:circuit-work 2s ease-in-out infinite}.circuit-leg-left{transform-origin:77px 156px}.circuit-leg-right{transform-origin:119px 156px}
.story-circuit[data-pose=collect] .circuit-arm-right{animation:circuit-reach .65s ease-out infinite}.story-circuit[data-pose=prepare] .circuit-arm-left{animation:circuit-reach .4s alternate infinite}.story-circuit[data-pose=sort] .circuit-arm-right{animation:circuit-wave .5s alternate infinite}.story-circuit[data-pose=celebrate] .circuit-arm-left,.story-circuit[data-pose=celebrate] .circuit-arm-right{animation:circuit-cheer .6s alternate infinite}.story-circuit[data-pose=collect] .circuit-leg-left{animation:circuit-step .2s alternate infinite}.story-circuit[data-pose=collect] .circuit-leg-right{animation:circuit-step .2s alternate-reverse infinite}
.story-restored{position:absolute;bottom:14px;left:26%;right:12px;padding:9px 12px;border-radius:12px;background:#092f29de;color:#caffdc;font:700 12px/1.35 system-ui;pointer-events:none}
.story-inspector{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;border-radius:20px;border:1px solid #83bea955;background:#102f35}
.story-card-head{display:flex;align-items:center;gap:12px;min-height:48px}.story-card-head img{width:54px;height:54px;object-fit:contain}.story-card-head h3{margin:0 0 3px;font-size:19px}.story-card-head p{margin:0;color:#c3dbd3;font:13px/1.35 system-ui}
.story-status{font:14px/1.45 system-ui;color:#d1eee0;margin:0;min-height:40px}.story-status[data-kind=retry]{color:#ffe29c}.story-status[data-kind=sort],.story-status[data-kind=prepare]{color:#aaffcf}
.story-destinations{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#storyRoot .story-destination{display:flex;gap:7px;align-items:center;text-align:left;min-height:56px;border-left:4px solid var(--route-color)}.story-destination img{width:28px;height:28px;object-fit:contain}.story-destination span{font-size:12px}
.story-tools{display:flex;flex-wrap:wrap;gap:6px}.story-tools button{flex:1;font-size:12px!important}
.story-board{color:#b1d9c8;font:12px/1.45 system-ui;border-top:1px solid #9ef2c133;padding-top:10px}.story-board summary{cursor:pointer;min-height:30px;font-weight:700}.story-board p{margin:6px 0}.story-board a,.story-modal a{color:#a3e4ff}
.story-footer{display:flex;gap:6px;align-items:center;justify-content:space-between;min-height:44px}.story-footer>span{font-size:12px;color:#acd1c1}.story-footer-actions{display:flex;gap:6px}.story-footer-actions button{font-size:12px!important}
.story-modal-shade{position:absolute;inset:0;z-index:10;background:#021317e8;display:grid;place-items:center;padding:12px;overflow:auto}
.story-modal{width:min(600px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #83e9bc88;background:linear-gradient(150deg,#17443d,#102631);border-radius:22px;padding:24px;box-shadow:0 15px 60px #0008}
.story-modal h2{font-size:clamp(24px,4vw,36px);margin:0 0 12px}.story-modal p{line-height:1.5;color:#d1e9dc}.story-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.story-modal-actions button{flex:1}
.story-modal label{display:block;margin:10px 0;font-size:14px}.story-modal input[type=range]{display:block;width:100%;min-height:32px}.story-modal .eyebrow{font-size:12px}
.story-help{font-size:12px!important;color:#a8ccbd!important}.story-stars{font-size:28px;color:#ffe099;letter-spacing:4px}
@keyframes circuit-breathe{50%{transform:translateY(-3px) rotate(1deg)}}@keyframes circuit-blink{0%,42%,46%,100%{transform:scaleY(1)}44%{transform:scaleY(.12)}}@keyframes circuit-wave{50%{transform:rotate(12deg)}}@keyframes circuit-work{50%{transform:rotate(-9deg)}}@keyframes circuit-reach{50%{transform:rotate(-60deg)}}@keyframes circuit-cheer{to{transform:rotate(-135deg)}}@keyframes circuit-step{to{transform:rotate(16deg)}}
@media(max-width:700px){.story-route{grid-template-columns:1fr 1fr}.story-route button:last-child{grid-column:1/-1}.story-workspace{grid-template-columns:1fr;grid-template-rows:minmax(150px,1fr) auto;gap:6px}.story-inspector{padding:10px;gap:7px;max-height:min(47dvh,330px)}.story-card-head{min-height:36px;gap:7px}.story-card-head img{width:38px;height:38px}.story-card-head h3{font-size:16px}.story-card-head p{font-size:11px}.story-status{font-size:12px;line-height:1.35;min-height:0}.story-destinations{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#storyRoot .story-destination{min-height:44px;padding:6px}.story-destination img{width:24px;height:24px}.story-tools button{min-height:44px}.story-board{padding-top:4px}.story-board summary{min-height:24px}.story-footer>span{display:none}.story-footer-actions{width:100%}.story-footer-actions button{flex:1}.story-objects{inset:40px 6px 56px 19%;gap:5px}#storyRoot .story-object{min-height:49px;padding:3px}.story-object img{width:32px;height:32px;margin:0 auto}.story-object span{font-size:10px}.story-circuit{width:74px;height:88px;bottom:2px;left:0}.story-restored{font-size:10px;padding:5px;bottom:6px;left:23%}.story-place{top:6px;left:7px;right:7px}.story-place span{font-size:10px;padding:6px;max-width:85%}.story-grime{width:44px}.story-score{font-size:12px}.story-header{gap:5px;padding:2px 5px}.story-header h2{font-size:17px}.story-header p{font-size:9px}.story-progress{font-size:10px;gap:6px}.story-modal{padding:18px}}
@media(max-height:500px) and (min-width:600px){#storyRoot{gap:4px;grid-template-rows:auto auto minmax(0,1fr) auto}.story-workspace{grid-template-columns:minmax(0,1fr) 320px;grid-template-rows:1fr}.story-inspector{padding:9px;gap:5px;max-height:none}.story-card-head img{width:34px;height:34px}.story-card-head h3{font-size:15px}.story-card-head p,.story-status{font-size:11px}.story-destinations{gap:4px}#storyRoot .story-destination{min-height:44px;padding:4px}.story-destination img{width:22px;height:22px}.story-destination span{font-size:11px}.story-header h2{font-size:17px}.story-header p{font-size:9px}.story-progress{font-size:10px}.story-footer>span{display:none}.story-objects{inset:40px 6px 70px 18%;gap:5px}.story-object img{width:36px;height:36px}#storyRoot .story-object{min-height:58px;padding:3px}.story-object span{font-size:10px}.story-circuit{width:80px;height:95px}.story-restored{font-size:10px;left:24%;padding:6px}.story-place{top:5px}.story-place span{font-size:10px;padding:5px}.story-grime{width:45px}.story-tools button{font-size:11px!important}.story-board{padding-top:4px}.story-footer-actions{margin-left:auto}.story-footer-actions button{padding:6px 10px!important}.story-modal{padding:16px}}
@media(prefers-reduced-motion:reduce){.story-circuit *,.story-object{animation:none!important;transition:none!important}.story-circuit{transition:none!important}}
.reduced .story-circuit *,.reduced .story-circuit,.reduced .story-object{animation:none!important;transition:none!important}
.story-header>div:first-child{min-width:0;flex:1}.story-header h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-score{flex:0 0 auto}
@media(max-width:700px){.story-objects{inset:35px 6px 36px 19%}.story-object img{width:26px;height:26px}.story-object span{line-height:1.1}.story-restored{line-height:1.2}.story-header h2{font-size:15px}.story-score span{font-size:10px}.story-footer-actions button{padding:6px!important}}
/* v3.1: reference-matched animated sprites and hands-on recovery. */
.story-circuit{transform:translate(var(--circuit-x,0px),var(--circuit-y,0px));z-index:3;transition:transform .38s linear}
.story-circuit canvas,.story-grime canvas,.battle-monster canvas,.work-helper canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.sprite-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.sprite-ready>.sprite-fallback{display:none!important}
.story-grime{display:block;position:relative;aspect-ratio:1;flex-shrink:0}
.story-carried{position:absolute;right:-5%;top:42%;width:34%!important;height:34%!important;object-fit:contain;filter:drop-shadow(0 2px 4px #031b16)}
.story-object{touch-action:none}.story-object img{transition:transform .2s}.story-object[aria-pressed=true] img{transform:scale(1.12)}
#storyDragGhost{position:fixed;width:68px;height:68px;object-fit:contain;pointer-events:none;z-index:25;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 6px #0008)}
.story-builds{position:absolute;right:16px;bottom:58px;display:flex;align-items:end;gap:8px;pointer-events:none;opacity:.9}
.story-project{width:48px;height:48px;position:relative;display:block;background:#1e6b59;border:3px solid #a6ead0;border-radius:8px;box-shadow:0 6px 6px #0005}.story-project img{width:100%;height:100%;object-fit:contain;padding:5px}.project-canopy::before{content:"";position:absolute;top:-18px;left:-8px;right:-8px;height:20px;background:#acdba6;clip-path:polygon(50% 0,100% 100%,0 100%)}.project-shelf{background:linear-gradient(transparent 46%,#cdad75 46% 54%,transparent 54%),#315d58}.project-caddy{border-radius:8px 8px 15px 15px;background:#506a2d}
.restore-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.restore-choices button{display:flex;align-items:center;flex-direction:column;gap:4px;font-size:12px!important;text-align:center}.restore-choices img{width:48px;height:48px;object-fit:contain}.story-upgrade-status{color:#b5f6cb!important;font-weight:700}
.work-help,.battle-help{font-size:14px;line-height:1.4!important;margin:5px 0 12px!important}
.work-stage{height:190px;position:relative;overflow:hidden;touch-action:none;border-radius:16px;background:radial-gradient(circle at 38% 40%,#53877c,#153a40 70%);border:1px solid #8edbc177;margin-bottom:8px}
.work-stage::after{content:"";position:absolute;left:14%;right:9%;bottom:23px;height:12px;border-radius:50%;background:#07232766}
.work-item{position:absolute;left:22%;top:5%;width:47%;height:83%;object-fit:contain;z-index:2;transition:transform .3s}
.work-helper{position:absolute;left:0;bottom:3px;width:28%;height:70%;z-index:3}.work-destination{position:absolute;right:3%;bottom:12%;padding:10px 7px;background:#153b39;border:2px solid #9ac9b5;border-radius:8px;z-index:3;color:#caffd7;font:700 11px system-ui;max-width:28%;text-align:center}
.work-empty[data-steps="1"] .work-item,.work-empty[data-steps="2"] .work-item,.work-empty[data-steps="3"] .work-item{transform:rotate(65deg)}
.work-empty[data-steps="2"]::before,.work-empty[data-steps="3"]::before{content:"";position:absolute;right:22%;top:47%;height:42%;width:5px;background:#a7eafb;transform:rotate(-14deg);z-index:2;animation:pour-flow .45s linear infinite}
.work-flatten[data-steps="1"] .work-item{transform:scaleX(.9) rotate(-4deg)}.work-flatten[data-steps="2"] .work-item{transform:scaleY(.6)}.work-scrape[data-steps="1"] .work-item{transform:rotate(-5deg)}.work-scrape[data-steps="2"] .work-item{transform:rotate(5deg)}.work-repair[data-steps="1"] .work-item{filter:drop-shadow(0 0 6px #9dffba)}.work-repair[data-steps="2"] .work-item{animation:repair-test .4s ease-in-out infinite}
.work-progress,.work-feedback,.battle-progress{font:700 12px/1.35 system-ui;margin:8px 0!important;color:#c5f4d9!important}.work-feedback{min-height:30px}.work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.work-actions button{font-size:12px!important}.work-actions button:disabled{background:#294c43!important;color:#b6e2ce!important}
.battle-field{height:220px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 80%,#235e49,#251635 75%);border:1px solid #b991df88;border-radius:16px}
.battle-monster{display:block;position:absolute;width:200px;height:200px;left:calc(50% - 100px);bottom:0;transform:scale(var(--boss-scale,1));transform-origin:bottom center}
#storyRoot .grime-wisp{position:absolute;left:8%;top:20%;width:82px;height:64px;padding:4px;border-radius:50% 40% 48% 34%;background:#703c8c;border:2px solid #d9b1fa;color:#fff;font-size:11px;box-shadow:inset 0 0 14px #b455d677;animation:wisp-hover 2.2s ease-in-out infinite alternate}
#storyRoot .grime-wisp:nth-of-type(2n+1){left:auto;right:8%;top:40%;animation-delay:-.8s}
@keyframes wisp-hover{to{transform:translate(10px,16px) rotate(5deg)}}@keyframes pour-flow{50%{opacity:.5}}@keyframes repair-test{50%{transform:translateX(3px)}}
@media(max-width:700px){.story-circuit{width:82px;height:94px}.story-object img{width:32px;height:32px}.story-object span{font-size:10px}.story-objects{inset:35px 6px 36px 19%}.story-project{width:28px;height:28px;border-width:2px}.story-builds{bottom:40px;right:7px;gap:5px}.story-project img{padding:2px}.project-canopy::before{height:12px;top:-11px;left:-4px;right:-4px}.work-stage{height:160px}.work-help,.battle-help{font-size:12px}.restore-choices{gap:5px}.restore-choices button{padding:6px!important;font-size:10px!important}.restore-choices img{width:36px;height:36px}.story-progress{font-size:10px}.battle-field{height:190px}.battle-monster{width:170px;height:170px;left:calc(50% - 85px)}#storyRoot .grime-wisp{width:64px;height:60px;font-size:10px;left:2%}#storyRoot .grime-wisp:nth-of-type(2n+1){right:2%}}
@media(max-height:500px) and (min-width:600px){.work-stage{height:115px}.work-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.work-actions button{font-size:10px!important;padding:5px!important}.work-help,.battle-help{font-size:11px}.work-progress,.work-feedback,.battle-progress{font-size:10px;min-height:0;margin:5px 0!important}.battle-field{height:150px}.battle-monster{width:145px;height:145px;left:calc(50% - 72px)}.restore-choices{margin:5px 0}.restore-choices img{width:30px;height:30px}.restore-choices button{font-size:10px!important;padding:5px!important}.story-modal p{font-size:12px;margin:8px 0;line-height:1.35}.story-modal h2{font-size:24px}.story-modal-actions{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.work-stage *,.work-stage::before,.grime-wisp{animation:none!important;transition:none!important}}.reduced .work-stage *,.reduced .work-stage::before,.reduced .grime-wisp{animation:none!important;transition:none!important}
.arcade-circuit{width:clamp(42px,5.4vh,58px);height:clamp(42px,5.4vh,58px);display:block;flex-shrink:0;background-size:400% 400%;background-repeat:no-repeat}.arcade-circuit img{width:100%;height:100%}.sprite-art-ready .arcade-circuit{background-image:url('assets/animated/circuit-atlas.webp');animation:arcade-idle 3s steps(1,end) infinite}.sprite-art-ready .arcade-circuit img{opacity:0}@keyframes arcade-idle{0%,100%{background-position:0 0}25%{background-position:33.3333% 0}50%{background-position:66.6667% 0}75%{background-position:100% 0}}@media(max-width:760px){.arcade-circuit{width:32px;height:32px}}@media(prefers-reduced-motion:reduce){.arcade-circuit{animation:none!important}}

/* Community choices wrap inside the existing scrollable, focus-trapped modal. */
.community-choices{display:grid;gap:9px;margin:14px 0}.community-choices button{text-align:left;white-space:normal;min-height:48px!important;line-height:1.4!important}.request-prompt{font-weight:700}.request-feedback{border-left:3px solid #a7ebbe;padding:9px 12px;background:#173e36;min-height:46px;color:#d5fce1!important}
@media(max-width:700px),(max-height:500px){.community-choices{gap:6px;margin:8px 0}.community-choices button{padding:9px!important;font-size:12px!important}.request-feedback{font-size:12px!important}}
/* Small phones retain two readable label lines inside each 44px-plus target. */
@media(max-width:360px) and (max-height:700px){.story-object img{width:22px;height:22px}.story-object span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:9px;line-height:10px;max-height:20px}}
@media(max-width:360px) and (max-height:700px){.story-restored{bottom:5px;padding:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}}

/* Recovery-district dispatch board: all visits have ordinary touch/keyboard buttons. */
.dispatch-help{font-size:13px;line-height:1.4!important;margin:6px 0!important}.dispatch-capacity{display:flex;gap:10px;align-items:center}.dispatch-capacity p{font-size:12px;margin:5px 0!important}.dispatch-capacity progress{width:85px;min-width:45px;height:12px;accent-color:#9aecb5}.dispatch-cargo{min-height:34px;display:flex;gap:5px;flex-wrap:wrap;align-items:center;font-size:11px;color:#c5f4d9}.dispatch-cargo p{margin:4px 0!important;font-size:11px}.dispatch-cargo span{display:flex;align-items:center;gap:5px}.dispatch-cargo img{width:27px;height:27px;object-fit:contain}
.dispatch-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;position:relative;padding:8px;margin:5px 0 9px;border:1px solid #70b8b277;border-radius:16px;background:repeating-linear-gradient(45deg,#254c4c 0 16px,#214646 16px 32px)}.dispatch-map svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.dispatch-map polyline{fill:none;stroke:#baffcf;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
#storyRoot .dispatch-stop{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 7px;align-items:center;text-align:left;min-height:85px;padding:8px;background:#143a3e;border-left:4px solid var(--load-color);z-index:1}#storyRoot .dispatch-stop:disabled{opacity:1;background:#234e40;color:#b9e8c9}.dispatch-stop>img{width:32px;height:32px;object-fit:contain}.dispatch-stop span{font-size:12px;line-height:1.3}.dispatch-stop small{grid-column:1/-1;font-size:10px;line-height:1.25;color:#c1ded5}.dispatch-stop .dispatch-circuit{position:absolute;right:-8px;top:-13px;width:28px;height:28px;filter:drop-shadow(0 2px 2px #0008)}
@media(max-width:700px),(max-height:500px){.dispatch-help{font-size:11px}.dispatch-map{gap:12px;padding:6px}.dispatch-capacity p{font-size:10px}.dispatch-stop span{font-size:11px}.dispatch-stop small{font-size:9px}#storyRoot .dispatch-stop{min-height:80px;padding:6px;grid-template-columns:24px minmax(0,1fr);gap:3px}.dispatch-stop>img{width:24px;height:24px}.dispatch-cargo{min-height:27px;font-size:10px}}

/* Saved work orders and the complete city celebration. */
.order-progress{display:flex;align-items:center;gap:12px}.order-progress img{width:46px;height:46px;object-fit:contain}.order-progress p{flex:1;font-size:12px}.order-progress progress{width:100px;max-width:30%;accent-color:#9aecb5}.order-record{padding-left:24px;color:#bdf1d0;font:12px/1.5 system-ui}.order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#storyRoot .order-actions button{min-height:66px;text-align:left;font-size:12px;line-height:1.35;overflow-wrap:anywhere}#storyRoot .order-actions button:disabled{opacity:1;color:#bdf1d0;background:#234e40}.story-districts{list-style:none;padding:0;display:grid;gap:8px}.story-districts li{padding:10px;border:1px solid #83e9bc55;border-radius:10px;background:#113b38;color:#ccebdc;font:12px/1.4 system-ui}.story-districts strong{display:block;color:#a4f4c2;margin-bottom:3px}.story-ending-summary{color:#a4f4c2!important;font-weight:700}
@media(max-width:360px){#storyRoot .order-actions button{font-size:11px;padding:8px;min-height:72px}.order-progress{gap:6px}}
