#campaign-dialog{width:min(1120px,94vw);max-width:none;max-height:92vh;padding:28px;background:#101d23;color:#eef4ed;border:1px solid #607975;overflow:auto}
.campaign-top{display:flex;align-items:start;justify-content:space-between;gap:20px}.campaign-top h2{font-size:34px;margin:6px 0}.campaign-intro{color:#b6c7c5;max-width:760px}.campaign-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.campaign-card{padding:0;text-align:left;overflow:hidden;border:1px solid #405754;background:#17282e;color:#eef4ed;white-space:normal}.campaign-card img{width:100%;height:100px;object-fit:cover;display:block}.campaign-card>span{padding:12px;display:grid;gap:7px}.campaign-card strong{font-size:17px;line-height:1.2}.campaign-card small{font-size:10px;letter-spacing:.03em;color:#b3cac1}.campaign-card span span{font-size:12px;line-height:1.4;font-weight:400}.campaign-card b{font-size:10px;text-transform:uppercase;color:#a6e8bd}.campaign-card:disabled{opacity:.52;cursor:default}.campaign-card[aria-pressed=true]{border-color:#a6e8bd;box-shadow:0 0 0 1px #a6e8bd}.campaign-card:focus-visible,#campaign-dialog button:focus-visible{outline:3px solid #f4d685;outline-offset:3px}
#campaign-briefing{display:grid;grid-template-columns:40% 1fr;border:1px solid #405754;margin-top:24px}.campaign-poster{min-height:370px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:space-between;position:relative;padding:22px;isolation:isolate}.campaign-poster:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#08141944,#08141933 30%,#081419f5);z-index:-1}.campaign-poster>span{align-self:start;font-size:10px;letter-spacing:.13em;padding:7px 10px;background:#081419d9;border:1px solid #77948a}.campaign-poster h3{font-size:30px;line-height:1.12;color:#fff;margin:9px 0}.campaign-poster small{color:#e0e7dc}.campaign-orders{padding:25px}.campaign-orders>p{line-height:1.65;font-size:14px}.campaign-objective{padding:14px;border-left:3px solid #a6e8bd;background:#1c3036}.campaign-objective p{font-size:14px;line-height:1.5;margin:7px 0}.campaign-objective small,.campaign-footnote{font-size:11px;line-height:1.5;color:#b8c9c3}.campaign-settings{color:#f1d59c}.campaign-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.campaign-status{color:#a6e8bd}.campaign-footnote{display:block}.campaign-entry{width:100%;margin-bottom:10px}
@media(max-width:800px){.campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#campaign-briefing{grid-template-columns:1fr}.campaign-poster{min-height:220px}#campaign-dialog{padding:18px}.campaign-top h2{font-size:28px}}
@media(max-width:430px){.campaign-card img{height:76px}.campaign-card>span{padding:9px}.campaign-card strong{font-size:15px}.campaign-orders{padding:16px}}
#horde-dialog{width:min(1000px,94vw);max-width:none;max-height:92vh;padding:24px;background:#101d23;color:#eef4ed;overflow:auto;border:1px solid #607975}.horde-layout{display:grid;grid-template-columns:35% 1fr;margin-top:20px}.horde-art{min-height:300px;background-size:cover;background-position:center;display:flex;align-items:end;padding:24px}.horde-art>div{background:#081419d9;padding:14px}.horde-art h3{font-size:32px;margin:10px 0}.horde-enemies{margin:18px 0;border:1px solid #405754;padding:12px}.horde-enemies>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.horde-enemies label{display:flex;align-items:center;gap:8px;font-size:12px}.horde-enemies input{width:auto}.horde-enemies legend{font-size:13px}#horde-hud{display:flex;gap:5px}#horde-hud[hidden]{display:none}#horde-status{font-size:11px;max-width:245px;white-space:normal}#horde-ready{font-size:11px;color:#a6e8bd}#horde-error{color:#ffb6a0}.campaign-secondary-entries{display:flex;gap:8px;margin-bottom:10px}.campaign-secondary-entries button{flex:1}
@media(max-width:800px){.horde-layout{grid-template-columns:1fr}.horde-art{min-height:150px}.horde-enemies>div{grid-template-columns:1fr}}
#horde-hud{position:absolute;right:65px;bottom:14px;z-index:8;max-width:calc(100% - 95px);padding:5px;background:#102229ed;border:1px solid #58756e;flex-wrap:wrap}#horde-hud button{min-height:30px;padding:5px 10px;width:auto;white-space:nowrap;color:#e1eee5}#horde-status{max-width:none}#horde-hud #horde-ready{color:#a6e8bd}

/* Readable briefing surfaces across all species palettes. */
#campaign-dialog,#horde-dialog{font-family:Arial,sans-serif;background:#101d23;color:#eef4ed}
#campaign-dialog .campaign-poster{padding:0;justify-content:end;min-height:310px}#campaign-dialog .campaign-poster>div{padding:20px;background:#101d23;color:#fff;width:100%;box-sizing:border-box}
#campaign-dialog .campaign-orders,#horde-dialog .campaign-orders{background:#101d23;color:#eef4ed}
#campaign-dialog .campaign-orders .eyebrow{color:#d7e9e3}#campaign-dialog .campaign-objective,#horde-dialog .campaign-objective{padding:0;background:transparent;border:0;font-size:14px;line-height:1.6;color:#eef4ed}
#campaign-dialog .campaign-card:disabled{opacity:1;background:#243039;border-color:#526269}#campaign-dialog .campaign-card:disabled img{filter:grayscale(1);opacity:.5}#campaign-dialog .campaign-card:disabled b{color:#e0d3bd}
#campaign-dialog .campaign-settings{color:#f1d59c}#campaign-dialog .campaign-footnote,#horde-dialog small{color:#c3d4ce}
@media(max-width:800px){#campaign-dialog .campaign-poster{min-height:180px}#campaign-dialog .campaign-poster>div{padding:16px}}

html[data-theme] :is(#campaign-dialog,#horde-dialog){background:#101d23!important;color:#eef4ed!important;font-family:Arial,sans-serif!important}
html[data-theme] :is(#campaign-dialog,#horde-dialog) :is(p,small,span,strong,label,h2,h3,b,legend,.eyebrow){color:#eef4ed!important}
html[data-theme] #campaign-dialog .campaign-card{background:#17282e!important;color:#eef4ed!important}
html[data-theme] #campaign-dialog .campaign-card:disabled{background:#243039!important;color:#d4ddd9!important}
html[data-theme] :is(#campaign-dialog,#horde-dialog) :is(select,input){background:#1c3036!important;color:#eef4ed!important;border-color:#81968e!important}
/* Optional single-line badge; wave controls live in Menu → Waves. */
body.command-deck #horde-hud{right:10px;bottom:10px;max-width:calc(100% - 20px);padding:0;gap:0;flex-wrap:nowrap;border-radius:6px;overflow:hidden}
body.command-deck #horde-hud[hidden]{display:none}
body.command-deck #horde-hud button{min-height:44px;height:44px;margin:0;border:0;border-radius:0;background:#17332f!important;color:#effbf4!important}
body.command-deck #horde-hud #horde-status{max-width:190px;white-space:nowrap;text-align:left;font-size:12px;padding:5px 10px}
body.command-deck #horde-hud #horde-dismiss{width:44px;padding:5px;font-size:21px;border-left:1px solid #63867a}
html[data-theme] #horde-waves{width:min(360px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;padding:16px;background:#101d23!important;color:#eef4ed!important;border:1px solid #607975;font:14px/1.5 Arial,sans-serif}
#horde-waves .horde-waves-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-theme] #horde-waves :is(h2,p,label){color:#eef4ed!important}
#horde-waves h2{font-size:20px;margin:0}
html[data-theme] #horde-waves button{min-height:44px;background:#17332f!important;color:#effbf4!important;border:1px solid #63867a!important}
#horde-waves-close{width:44px;font-size:21px;padding:5px}
#horde-waves label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}
#horde-waves input{width:20px;height:20px;flex:0 0 20px;margin:0}
#horde-waves .horde-build-hint{font-size:12px}
#horde-waves #horde-ready{width:100%;margin-top:12px;font-size:13px}
#horde-waves #horde-ready[hidden],#horde-wave-menu[hidden]{display:none}
