.first-order { --brass: #f7cc80; --ink: #183c40; --paper: #fff3d6; }
.game-screen.first-order .hud-top {max-width:420px}
.game-screen.first-order .first-ticket {display:inline-flex;align-items:center;gap:10px;border-radius:10px 16px 16px 10px;padding:7px 13px 7px 10px;border:1px solid #fff7dc;border-left:4px solid #de9c43;background:var(--paper);color:var(--ink);text-align:left;box-shadow:0 3px 10px #15261d27}
.first-ticket span {display:grid;gap:1px;font-size:11px}.first-ticket strong {font-size:17px}.first-ticket>.icon {width:25px;height:25px}
.game-screen.play-screen.first-order .hud-bottom.first-dock {width:calc(100% - 20px);max-width:440px;display:grid;grid-template-columns:1fr;grid-template-rows:auto;gap:9px;padding:12px;box-sizing:border-box;pointer-events:auto;align-items:stretch;color:#f8f4e8;background:linear-gradient(150deg,#294c50fa,#15343bf9);border:1px solid #728a7d;border-radius:20px;box-shadow:0 6px 24px #132c3380,inset 0 1px #efefc62e}
.first-dock::before {display:none}.first-manifest,.first-actions,.first-jobs,.first-workers,.first-seat {display:flex;align-items:center}.first-manifest {gap:9px}.first-truck {display:grid;place-items:center;background:#fff2cd11;border-radius:8px;width:34px;height:34px;color:var(--brass)}.first-manifest .icon {width:23px;height:23px}.first-manifest strong {font-size:13px;font-weight:550}.first-manifest b {color:var(--brass);font-size:17px;font-variant-numeric:tabular-nums}.first-manifest small,.first-job small,.first-workers small {display:block}.first-manifest small {color:#dce5d7;font-size:12px}.first-cargo {display:flex;margin-left:auto;gap:4px;padding-right:2px}.first-cargo i {width:14px;height:17px;border:1px dashed #b9c8af;border-radius:3px;background:#203d40}.first-cargo .loaded {border:1px solid #f3ca87;background:linear-gradient(45deg,transparent 44%,#c09454 44% 55%,transparent 55%),#f2c579;box-shadow:inset 0 0 0 2px #ffe3a9}
.first-jobs {gap:7px}.first-jobs>span {color:#cfbf95}.first-dock .first-job {display:flex;gap:8px;align-items:center;flex:1;min-width:0;min-height:57px;text-align:left;padding:7px 10px;color:#e2eee5;background:#375658;border:1px solid #77938a;border-radius:13px}.first-job strong {font-size:15px}.first-job small {font-size:12px;font-weight:550;line-height:1.5}.first-job.vacant {color:#3e3524;background:#f4cf8f;border-color:#ffe8ba;box-shadow:0 2px 0 #9e7946}.first-job .first-seat {flex:none;justify-content:center;width:32px;height:32px}.first-job.vacant .first-seat {border:2px dashed #926734;border-radius:50%}.first-seat .portrait {width:31px;height:31px}.first-seat .portrait+.portrait {margin-left:-22px}.first-seat>.icon {width:16px;height:16px}
.first-actions {gap:5px;border-top:1px solid #adc2b338;padding-top:7px}.first-workers {gap:5px;margin-right:auto}.first-workers button,.first-actions #undo,.first-actions #run {min-height:44px;padding:3px 5px;border:1px solid #a9b9a340;background:#294b50;color:#fff5dd;border-radius:11px}.first-workers button {display:flex;align-items:center;gap:4px;font-size:12px;text-align:left}.first-workers .portrait {width:27px;height:27px}.first-workers small {font-size:10px;color:#c1d6ce}.first-actions #undo {width:40px;min-width:0}.first-actions #run {display:flex;align-items:center;justify-content:center;gap:5px;min-width:69px;font-size:14px}.first-actions #run.ready {border-color:#ffe9ac;background:var(--brass);color:#393d2e}.first-order .scene-label:not(.is-filled) {border:2px dashed #ae792e;background:#ffedbd;color:#553e26}.first-order .scene-label:not(.is-filled) .scene-label-seats {font-size:0}.first-order .scene-label:not(.is-filled) .scene-label-seats::after {content:'空岗';font-size:12px;color:#735525}
.first-picks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.first-picks button {display:grid;justify-items:center;align-content:center;gap:4px;min-height:140px;background:#fffdf1;border:1px solid #c0cec1;color:#244b48}.first-picks .portrait {width:49px;height:49px}.first-picks strong {font-size:16px}.first-picks small {font-size:12px}.first-picks b {font-size:13px;background:#e3ecdc;border-radius:8px;padding:4px 10px;color:#365548}.first-picks button[aria-pressed=true] {border:2px solid #568575}.first-picks button[aria-pressed=true] small::after {content:' · 点此休息'}
@media (max-width:350px) {.game-screen.play-screen.first-order .hud-bottom.first-dock {padding:8px;gap:6px}.first-workers .portrait {width:22px;height:22px}.first-job strong {font-size:14px}.first-job small {font-size:11px}.first-actions #run {min-width:60px}}
@media (max-height:520px) and (min-width:601px) {.game-screen.play-screen.first-order .hud-bottom.first-dock {width:340px;max-width:44%}}
body:has(.first-order) > #next-click-button {top:max(62px,env(safe-area-inset-top));background:#284b50;color:#f6e6bf;border:1px solid #b1bfaa;border-radius:14px;font-size:12px;min-width:44px}
/* The shared hint is reparented into open dialogs. Keep it in normal flow so it cannot cover Close or a worker. */
body:has(.first-order) dialog[open] > #next-click-button {position:static;display:block;margin:0 12px 8px auto;box-shadow:none;border:1px solid #becdbf;background:#e0e8db;color:#365449;font-size:12px;min-width:48px}
