:root{--command-brass:#f4b475;--command-green:#acc8b6}
.brand-mark{flex-shrink:0}
.stat-credit,.stat-credit .ico{color:var(--command-brass)}
.top-stats .stat small{font:12px var(--mono);color:#b3bbb7}
.stage-commands{display:flex;align-items:center;gap:5px}
.stage-commands .photo-trigger{white-space:nowrap}
.focus-only{display:none}
.watch-count{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#c6dbce;border-left:1px solid #5d6865;padding-inline-start:7px}
.watch-count .ico{width:13px;height:13px}
.patrol-location{display:grid}
.patrol-location small{font:9px/1.2 "Barlow Condensed",var(--mono);letter-spacing:.16em;opacity:.72}
.quick-row{grid-template-columns:1.47fr 1fr}
.quick-dock .field-desk .quick-slots{grid-template-columns:repeat(6,minmax(0,1fr))}
.quick-dock .quick-group{grid-template-columns:minmax(0,1fr);gap:5px}
.quick-dock .quick-group h2{font-size:11px;letter-spacing:.12em;color:#a8bbb2}
.quick-dock .quick-slots .hud-slot>span{font-size:11px}
#case-file .file-grade{display:flex;align-items:center;justify-content:flex-start;gap:6px;padding:3px 2px 5px;margin:1px 0 7px;color:#493b30;border-bottom:1px solid #7d694d66;width:100%;font:650 12px/1.25 var(--sans)}
.file-grade b{color:#493b30;border:1px solid #745e4695;border-radius:2px;padding:1px 5px}
.file-grade .ico{width:13px;height:13px;margin-left:auto}
#bed-hud{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid #917959;border-radius:5px;color:#e9e4d8;background:#1d2726f5;box-shadow:0 3px 15px #0005;white-space:nowrap}
.bed-hud-info{display:grid;line-height:1.25}.bed-hud-info strong{font-size:13px}.bed-hud-info small{font-size:10px;color:#b8c5bb;text-overflow:ellipsis;overflow:hidden;max-width:18ch}
#bed-hits{font:600 17px "Barlow Condensed",var(--mono);color:var(--command-brass)}
#bed-hud button,.bed-amounts button{border:1px solid #5b655d;border-radius:4px;background:#303934;color:#e3e8df;font-size:13px;padding:5px 8px}
#bed-dialog legend{color:#becdc3}.bed-location{font-size:13px;letter-spacing:.04em}
#bed-dialog .bed-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:33vh;overflow:auto;padding:2px}
#bed-dialog .bed-roster input{position:absolute;inline-size:1px;block-size:1px;clip-path:inset(50%);overflow:hidden}
.bed-roster .watch-tag{justify-content:flex-start;padding:4px 8px;gap:8px}
.bed-roster img{width:34px;height:39px;object-fit:contain}.bed-roster .watch-tag>span{display:grid;text-align:left;min-width:0}
.bed-roster b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bed-roster small{font:11px var(--mono);opacity:.78}
.bed-roster input:disabled+.watch-tag{opacity:.55;cursor:default}
.bed-amounts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.bed-amounts button{min-width:40px;height:35px}
.bed-amounts button[aria-pressed=true]{color:#ffd59f;border-color:#d39859;background:#493b2e}
.bed-amounts label{display:flex;gap:5px;align-items:center;font-size:13px}.bed-amounts input{width:62px;padding:6px}
.bed-message{font-size:13px;min-height:1.3em}
body.stage-focused{overflow:hidden}
body.stage-focused .play-column{position:fixed;inset:0;z-index:16;width:100%;height:100dvh;display:flex;flex-direction:column;overflow:auto;background:#171e20;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.stage-focused .focus-only{display:inline-flex}
.stage-focused .play-column>.viewport{flex:1 1 0%;min-height:135px;height:auto;border-radius:0}
.stage-focused .stage-tools,.stage-focused .quick-dock,.stage-focused #build-tools{flex:none;border-radius:0}
.stage-focused .play-column>.control-strip{display:none}
body.stage-focused .layout>aside,body.stage-focused .site-header,body.stage-focused .page-head,body.stage-focused main>footer{display:none}
@media(max-width:760px){
  .site-header nav{display:flex;gap:5px}.site-header nav button{white-space:nowrap}
  .head-actions{margin-left:auto}.top-stats .stat-credit,.top-stats .stat:first-of-type{display:inline-flex}
  .top-stats{gap:9px}.page-head h1{font-size:clamp(28px,6vw,37px)}
  .stage-commands{gap:3px}
}
@container(max-width:590px){
  .quick-row{grid-template-columns:1fr}
  .quick-dock .quick-group{grid-template-columns:27px minmax(0,1fr);gap:4px;padding:5px 6px}
  .quick-dock .belt{border-left:0;border-top:1px solid #475059}
  .quick-dock .quick-slots .hud-slot{min-height:43px;grid-template-rows:23px auto}
  .quick-dock .tool img{width:25px;height:25px}
}
@media(max-width:540px){
  .top-stats .stat{font-size:11px;gap:3px}.top-stats .stat b{font-size:14px}.top-stats .stat small{font-size:10px}
  .top-stats .stat:nth-child(2){display:none}.header-inner{gap:8px}.head-actions #sound span{display:none}
  .stage-focused .stage-commands .focus-only{padding:5px}.stage-focused .focus-only span{display:none}
  #bed-hud{top:43px;max-width:calc(100% - 14px);gap:6px}.watch-count{font-size:10px}
}
@media(max-height:510px) and (orientation:landscape){
  .stage-focused .quick-row{display:flex}.stage-focused .quick-group{flex:1;padding-block:3px}
  .stage-focused .quick-group.field-desk{flex:1.4}.stage-focused .quick-group h2{display:none}
  .stage-focused .quick-dock .quick-group{grid-template-columns:1fr}
}
/* 分区卡片同时标出实际容量和开放状态，便于值班时快速比较下一次扩建。 */
.sector-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0;margin:12px 0;list-style:none}
.sector-tier{display:grid;align-content:start;gap:5px;padding:11px 9px;min-width:0;border:1px solid #56615d;border-radius:5px;background:#29312f}
.sector-tier strong,.sector-tier b{font-size:15px;font-weight:700;color:#e5eadc}
.sector-tier small,.sector-tier span{font-size:12px;color:#c0cac1}
.sector-tier[data-state=owned]{border-color:#ab895d;background:#3a352c}
.sector-tier[data-state=next]{border:1px dashed #ad9372}
.guard-posts{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;max-height:140px;overflow:auto;padding:3px}
.guard-post{min-width:48px;min-height:35px;border:1px solid #536159;border-radius:4px;background:#29322f;color:#cbdbd0;font-size:13px;padding:6px 9px}
.guard-post[aria-pressed=true]{color:#ffd7ac;border-color:#c29464;background:#43392f}
.points-command{font-size:12px;color:#bec8c1}.points-command code{color:#f2c38e;user-select:all}
@media(max-width:375px){.sector-tier{padding:8px 5px}.header-inner,main{padding-inline:9px}}
@media(max-width:540px){
  .header-inner{gap:7px;padding-inline:9px}
  .site-header nav button{padding-inline:5px}
  .site-header nav .ico{display:none}
}
@media(max-width:355px){
  .brand-mark{display:none}
  .header-inner{gap:4px}.site-header nav button{padding-inline:3px}
}
