/* 8 / 16 / 32 spacing. Battlefield changes stay alongside the tactical view. */
.army-chess-wrap[data-board-style=map] .ac-board{background-image:var(--ac-generated-map)!important;background-size:100% 100%}
.army-chess-wrap .ac-quick-terrain{position:fixed;z-index:120;max-height:calc(100dvh - 112px);overflow:auto;padding:16px;margin:0;background:#ddd2aa;box-shadow:0 16px 32px #071a1866;border:1px solid #827a59;scrollbar-width:thin;scrollbar-color:#898064 transparent}
.ac-quick-terrain .ac-setting-grid{display:grid;grid-template-columns:1fr;gap:16px}.ac-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.ac-picker-head button{border:0;background:transparent;padding:8px}.ac-quick-terrain>button{margin-top:8px}.ac-terrain-caption{font-size:12px;line-height:1.5;margin:16px 0 8px}
.ac-studio{display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:32px;align-items:start}.ac-studio>div,.ac-studio aside{min-width:0}.ac-studio aside{display:grid;gap:16px}.ac-studio aside .ac-field{margin:0}.ac-studio aside p{font-size:12px;line-height:1.5}.ac-studio .ac-inline{gap:8px;margin-top:16px;flex-wrap:wrap}.army-chess-wrap .ac-studio-board{width:min(100%,640px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);background-size:100% 100%;position:relative;border:1px solid #665e41;overflow:hidden}.ac-studio-board .ac-square{padding:0;border:0;aspect-ratio:1;position:relative;display:grid;place-items:center;background:#1729190e!important}.ac-studio-board .ac-square.dark{background:#0b20102e!important}.ac-studio-board .ac-square[aria-pressed=true]{box-shadow:inset 0 0 0 2px #f1d36c}.ac-studio-board .ac-piece{position:relative;width:var(--ac-piece-size,65%);height:var(--ac-piece-size,65%);display:block;pointer-events:none}.ac-studio-coord{position:absolute;left:3px;bottom:2px;font:9px monospace;color:#eee6c4;text-shadow:0 1px #162a1b;z-index:21}.ac-studio-board .ac-piece-tag{z-index:22}.ac-studio-board .ac-piece[data-submerged=true]>.ac-sprite{mask-image:linear-gradient(black 0%,black 84%,#0009 89%,transparent 94%)}
.army-chess-wrap .ac-piece[data-cover=true]>.ac-rig,.army-chess-wrap .ac-piece[data-cover=true]>.ac-sprite{filter:brightness(.48) saturate(.45)!important}.army-chess-wrap .ac-piece[data-cover=true]{z-index:18}.army-chess-wrap .ac-piece[data-cover=true]::after{content:'COVER';position:absolute;bottom:-6%;left:50%;transform:translateX(-50%);font:7px/1 monospace;letter-spacing:1px;color:#dedaba;background:#16271be8;padding:2px 3px;z-index:23}.army-chess-wrap .ac-piece[data-cover=true] .ac-piece-tag{z-index:24}
.ac-series-orders:empty{display:none}.ac-series-orders{padding:16px;background:#13291c;color:#ddd5b4;margin-bottom:16px}.ac-series-orders select{max-width:100%}.ac-series-rules{font-size:12px;line-height:1.6;margin:16px 0}.ac-radio-caption{font:10px monospace;display:block}.ac-radio-masthead{display:grid;gap:8px;padding:24px;background:linear-gradient(135deg,#142f25,#293c2b);color:#e2d4a6;border-bottom:3px solid #a59260}.ac-radio-masthead>span{font:11px monospace;letter-spacing:3px}.ac-radio-masthead>strong{font:700 26px monospace}.ac-radio-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0}.ac-radio-tabs button{border:0;background:transparent;padding:8px 16px}.ac-radio-tabs button[aria-pressed=true]{background:#243c29;color:#efe5c4}.ac-radio-feed{display:grid;gap:16px}.ac-radio-feed article,.ac-radio-letters article{padding:16px;background:#eee5c8;border-left:3px solid #8d8159;color:#203421}.ac-radio-feed h3{margin:8px 0}.ac-radio-feed p,.ac-radio-letters p{line-height:1.7;overflow-wrap:anywhere}.ac-radio-feed button{margin:8px 8px 0 0}.ac-radio-letters{display:grid;gap:16px;margin:16px 0}.ac-radio-letters time{display:block;font-size:11px;color:#556048}.ac-correspondence textarea,.ac-radio-publish textarea{width:100%;resize:vertical;min-height:96px}.ac-radio-compose,.ac-radio-preferences,.ac-radio-publish{display:grid;gap:16px}.ac-radio-check{display:flex;align-items:flex-start;gap:8px;line-height:1.5}.ac-radio-status{min-height:16px;margin:8px 0;font-size:13px}.ac-desk-dialog:has(.ac-broadcast){width:min(960px,calc(100vw - 32px))}
@media(min-width:1100px){.army-chess-wrap.ac-terrain-picking .ac-workspace{padding-left:248px;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.army-chess-wrap.ac-terrain-picking .ac-command{min-width:0;margin-left:16px}.army-chess-wrap.ac-terrain-picking .ac-board-frame{max-width:calc(100vw - 640px)}}
@media(max-width:760px){.army-chess-wrap .ac-quick-terrain{bottom:8px;max-height:36dvh;border-radius:8px 8px 0 0;padding:16px}.ac-quick-terrain .ac-setting-grid{grid-template-columns:1fr 1fr;gap:8px 16px}.ac-picker-head{margin-bottom:8px}.ac-quick-terrain .ac-field{font-size:12px}.ac-studio{grid-template-columns:1fr;gap:16px}.ac-studio aside{grid-template-columns:1fr 1fr;gap:16px}.ac-studio aside>p,.ac-studio aside>.ac-primary{grid-column:1/-1}.ac-radio-masthead{padding:16px}.ac-radio-masthead>strong{font-size:21px}.ac-radio-tabs{gap:8px}.ac-radio-tabs button{padding:8px;font-size:12px}.ac-desk-dialog:has(.ac-broadcast){width:calc(100vw - 16px)}.ac-studio-board .ac-piece[data-cover=true]::after{display:none}}

.army-chess-wrap .ac-quick-terrain,.army-chess-wrap .ac-quick-terrain .ac-field,.army-chess-wrap .ac-quick-terrain .ac-terrain-caption,.army-chess-wrap .ac-picker-head{color:#243821}.army-chess-wrap .ac-picker-head button{color:#243821}.army-chess-wrap[data-active-hub=battlefield-studio] .ac-hub-card{width:min(1200px,96vw);max-width:1200px}.ac-studio>div{position:sticky;top:0}.army-chess-wrap .ac-studio-board{width:min(100%,calc(100dvh - 260px));max-height:none}@media(max-width:760px){.ac-studio>div{position:static}.army-chess-wrap .ac-studio-board{max-height:none;width:100%}.ac-studio aside{padding-bottom:16px}}

.ac-studio-life{position:absolute;inset:0;width:100%;height:100%;z-index:25;pointer-events:none;image-rendering:pixelated}

@media(min-width:761px){.ac-studio{grid-template-columns:minmax(0,calc(100dvh - 260px)) minmax(240px,360px);justify-content:center}.ac-studio aside{max-height:calc(100dvh - 240px);overflow:auto;padding-right:8px;scrollbar-width:thin;scrollbar-color:#66714e transparent}}
@media(min-width:761px) and (max-width:1099px){.army-chess-wrap .ac-quick-terrain{top:auto!important;left:8px!important;bottom:8px;width:calc(100% - 16px)!important;max-height:30dvh}.ac-quick-terrain .ac-setting-grid{grid-template-columns:repeat(3,1fr)}}

.army-chess-wrap .ac-radio-feed article h3,.army-chess-wrap .ac-radio-feed article .ac-eyebrow,.army-chess-wrap .ac-radio-letters article strong{color:#203421!important}.army-chess-wrap .ac-radio-feed article button,.army-chess-wrap .ac-radio-letters article button{color:#203421;background:#ded4b1}
/* Nonmodal bottom drawer: never reflows the board. */
.army-chess-wrap .ac-quick-terrain{inset:auto 16px 8px!important;width:min(920px,calc(100% - 32px))!important;margin:0 auto!important;max-height:26dvh;min-height:0;padding:16px;background:#17291f;color:#dfd6b4;border:1px solid #667450;border-radius:8px 8px 0 0;box-shadow:0 -8px 24px #071a1866;animation:ac-drawer-up .18s ease-out}.army-chess-wrap .ac-quick-terrain .ac-setting-grid{grid-template-columns:1fr 2fr;gap:16px}.army-chess-wrap .ac-quick-terrain .ac-field,.army-chess-wrap .ac-quick-terrain .ac-picker-head,.army-chess-wrap .ac-quick-terrain .ac-picker-head button,.army-chess-wrap .ac-quick-terrain .ac-terrain-caption{color:#dfd6b4}.ac-quick-terrain .ac-picker-head{margin:0 0 8px}.ac-quick-terrain .ac-terrain-caption{display:none}.ac-quick-terrain>button{display:inline-block;margin:8px 8px 0 0;padding:8px 16px}.ac-quick-terrain .ac-field small{display:none}@keyframes ac-drawer-up{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
.ac-command-tabs button svg{width:24px;height:24px;display:block}.army-chess-wrap .ac-command-tabs button{min-width:44px;min-height:44px;padding:8px;display:grid;place-items:center}.ac-command-tabs nav,.ac-command-tabs .ac-desk-actions{gap:8px!important}.ac-command-tabs [aria-pressed=true]{box-shadow:inset 0 -2px #c7b779}.army-chess-wrap .ac-command-tabs{gap:16px;flex-wrap:wrap}
.army-chess-wrap[data-coords=edge] .ac-studio-coord,.army-chess-wrap[data-coords=off] .ac-studio-coord{display:none}.army-chess-wrap .ac-studio-board{overflow:visible;margin:0 0 24px 16px;width:min(calc(100% - 16px),calc(100dvh - 280px))}.ac-studio-outside{position:absolute;inset:0;pointer-events:none;color:#e1d8b1;font:11px monospace}.ac-studio-file{position:absolute;bottom:-18px;transform:translateX(-50%)}.ac-studio-rank{position:absolute;left:-14px;transform:translateY(-50%)}
.army-chess-wrap[data-wet-uniform=true] .ac-piece:not([data-cover=true])>.ac-rig,.army-chess-wrap[data-wet-uniform=true] .ac-piece:not([data-cover=true])>.ac-sprite{filter:brightness(var(--ac-wet-brightness,1)) saturate(var(--ac-wet-saturation,1))!important}.army-chess-wrap[data-immersion-profile=minimal]{background:#142019!important}.army-chess-wrap[data-immersion-profile=minimal] .ac-atmosphere,.army-chess-wrap[data-immersion-profile=minimal] .ac-living-terrain,.army-chess-wrap[data-immersion-profile=minimal] .ac-weather,.army-chess-wrap[data-immersion-profile=minimal] .ac-wildlife{visibility:hidden!important}
@media(max-width:760px){.army-chess-wrap .ac-quick-terrain{inset:auto 8px 8px!important;width:calc(100% - 16px)!important;max-height:28dvh;padding:8px 16px}.army-chess-wrap .ac-quick-terrain .ac-setting-grid{gap:8px}.ac-command-tabs{justify-content:space-between}.army-chess-wrap .ac-studio-board{width:calc(100% - 16px)}}@media(prefers-reduced-motion:reduce){.army-chess-wrap .ac-quick-terrain{animation:none}}
.army-chess-wrap .ac-quick-terrain{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:8px 16px;max-height:none!important;overflow:visible;background:#17291f!important;opacity:1}.army-chess-wrap .ac-quick-terrain[hidden]{display:none!important}.army-chess-wrap .ac-quick-terrain .ac-picker-head{grid-column:1/-1;margin:0;height:24px}.army-chess-wrap .ac-quick-terrain .ac-picker-head button{min-height:24px;height:24px;padding:0 8px}.army-chess-wrap .ac-quick-terrain .ac-field{margin:0;gap:4px;font-size:11px}.army-chess-wrap .ac-quick-terrain select{margin:0;height:36px;padding:4px 8px}.army-chess-wrap .ac-quick-terrain>button{margin:0;height:36px;font-size:12px}.army-chess-wrap .ac-quick-terrain button[hidden]{display:none!important}.army-chess-wrap[data-immersion-profile=minimal] .ac-smoke,.army-chess-wrap[data-immersion-profile=minimal] .ac-atmos-canvas{visibility:hidden!important}
@media(max-width:760px){.army-chess-wrap .ac-quick-terrain{grid-template-columns:1fr 1fr;gap:8px}.army-chess-wrap .ac-quick-terrain .ac-setting-grid{grid-column:1/-1}.army-chess-wrap .ac-quick-terrain>button{padding:4px 8px}.army-chess-wrap .ac-quick-terrain .ac-picker-head{height:24px}}
.army-chess-wrap[data-board-style=normal] .ac-studio-board{background-image:none!important}.army-chess-wrap[data-board-style=normal] .ac-studio-board .ac-square.light{background:#abb291!important}.army-chess-wrap[data-board-style=normal] .ac-studio-board .ac-square.dark{background:#546748!important}.army-chess-wrap[data-board-style=normal] .ac-studio-life{display:none}

/* Studio cells share Theater geometry; dialog button rounding is not board styling. */
.army-chess-wrap .ac-studio-board .ac-square,.army-chess-wrap .ac-studio-board .ac-square::before{border-radius:0!important}
