.shift-page{--bg:#0c1b2b;--ink:#e6ecec;--muted:#a8becb;--line:#365269;--gold:#e8c890;background:radial-gradient(ellipse at 8% 0,#244050,transparent 55%),var(--bg)}
.shift-page .intro-copy{color:#c1d1d9}.shift-page .tag{border-color:#567b86;color:#c2dedf}.shift-page .play-heading,.shift-page .hud,.shift-page .field-toolbar{background:#182e41}.shift-page .game-shell{grid-template-columns:minmax(0,1fr) 282px;background:#11273a}.shift-page .build-panel{background:linear-gradient(145deg,#223b4c,#172c3e);border-color:#476479;padding:22px 18px}.shift-page .hint{background:#10283a;color:#c3d7dc;border-color:#35536b}.shift-page button{background:#243e50;border-color:#526d80}.shift-page button:hover{background:#35566a}.shift-page button.primary{background:#e8c890;color:#17293a}.shift-page .canvas-wrap{aspect-ratio:8/5}.shift-page .hud strong{font-size:18px}.shift-page .end-card{background:#122c41f2;border-color:#c1b58f;backdrop-filter:blur(8px)}
.crew-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px;background:#142d40;border-top:1px solid #3c5a70}.crew-switch button{display:flex;align-items:center;gap:8px;text-align:left;padding:6px 10px;min-height:68px}.crew-switch button[aria-pressed=true]{border-color:#86d6c5;background:#2b4c5b;box-shadow:inset 3px 0 #86d6c5}.crew-switch button:nth-child(2)[aria-pressed=true]{border-color:#edb3a1;box-shadow:inset 3px 0 #edb3a1}.crew-switch button:nth-child(3)[aria-pressed=true]{border-color:#e8c890;box-shadow:inset 3px 0 #e8c890}.crew-switch b{font-size:11px;font-weight:500;display:block}.crew-switch small{display:block;color:#b2c8d1;font-size:10px;line-height:1.6;margin-top:5px}.crew-icon{display:block;flex:0 0 34px;height:48px;background-image:url('assets/directions/shift/crew-atlas.png');background-size:136px 96px;background-repeat:no-repeat}.engineer-icon{background-position:0 0}.medic-icon{background-position:-68px 0}.dispatcher-icon{background-position:0 -48px}
.shift-tasks{display:grid;gap:7px}.shift-tasks button{text-align:left;padding:10px 11px;min-height:58px;line-height:1.55}.shift-tasks b{display:block;font-size:12px;font-weight:500;color:#e1e9e9}.shift-tasks small{display:block;font-size:10px;color:#acc0ca;margin-top:4px}.shift-tasks button.available{border-color:#62978f;background:#274855}.shift-tasks button.busy{border-color:#e1bb82;background:#4b514d}.patient-panel{margin-top:20px;padding-top:16px;border-top:1px solid #4c6979}.patient-panel>b{font-size:12px;font-weight:500;color:#d9c4a0}.patient-panel p,.shift-log p{font-size:10px;line-height:1.9;white-space:pre-line;color:#b9cbd4;margin:9px 0}.shift-log{border-top:1px solid #486476;margin-top:16px;padding-top:14px}.shift-log summary{cursor:pointer;font-size:11px;color:#d9c4a0;min-height:30px}.shift-log p{font-size:10px;max-height:145px;overflow:auto}.shift-page .save-row{color:#91b3c3}.shift-page .keys{color:#94b2c4;font-size:10px}#s-mode{font-size:10px;color:#d9c49f;margin-right:5px}.shift-compare{padding:30px 0 48px;border-top:1px solid var(--line)}.shift-compare h2{font-size:24px;font-weight:500}.shift-compare p{color:var(--muted);font-size:12px}.shift-compare a{display:inline-flex;align-items:center;min-height:44px;margin-right:24px;font-size:12px;color:#ddc9a7}.shift-page .canvas-wrap:fullscreen canvas{width:min(100vw,160vh);height:auto;max-height:100vh}
@media(max-width:1200px){.shift-page .game-shell{grid-template-columns:minmax(0,1fr) 256px}.shift-page .build-panel{padding:18px 14px}.crew-switch{gap:6px;padding:10px}.crew-switch button{padding:7px;gap:4px}.crew-switch small{font-size:9px}.crew-icon{flex-basis:28px;background-size:112px 80px;height:40px}.medic-icon{background-position:-56px 0}.dispatcher-icon{background-position:0 -40px}}
@media(max-width:850px){.shift-page .game-shell{grid-template-columns:1fr}.shift-page .build-panel{border-left:0;border-top:1px solid var(--line);padding:20px}.shift-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-log p{max-height:none}.shift-page .hud strong{font-size:16px}.shift-compare h2{font-size:21px}}
@media(max-width:480px){.crew-switch{gap:4px;padding:8px}.crew-switch button{padding:8px 6px;min-height:65px}.crew-icon{display:none}.crew-switch b{font-size:9px}.crew-switch small{font-size:9px}.shift-page .hud strong{font-size:13px}.shift-tasks button{padding:8px}.shift-tasks b{font-size:11px}.shift-page .field-toolbar button{min-height:44px}#s-mode{width:100%}.shift-page .end-card button{margin-top:6px;font-size:11px}}
