/* Neutral steel interface. Load after style.css and command-ui.css.
   This sheet changes the palette without changing command-deck geometry. */
:root {
  color-scheme: dark;
  --bg: #1c1d20;
  --panel: #2b2d30;
  --line: #55595f;
  --text: #f1eee7;
  --muted: #adb0b5;
  --accent: #eb5b4d;
  --gold: #f2ce78;
  --red: #ff887a;
  --steel: #777c84;
  --friendly: #83c3ff;
  --focus: #ffe4a2;
}

body, #app { background: var(--bg); color: var(--text); }
button, select, input { color: var(--text); }
button { background-color: #34373b; }
button:disabled { color: #b7b8bb; }
button:focus-visible, select:focus-visible, input:focus-visible,
a:focus-visible, summary:focus-visible,
.command-sidebar button:focus-visible,
.command-sidebar summary:focus-visible,
#sidebar-toggle:focus-visible, .battle-event button:focus-visible {
  outline-color: var(--focus);
}
::selection { background: #954137; color: #fff8e9; }
kbd { background: #26282b; border-color: #676b71; color: #e3dfd6; }
.gold { color: var(--gold); }
.cyan { color: var(--friendly); }
.muted, .eyebrow, .sector-label { color: var(--muted); }
.low-power { color: #ffb06f !important; }

.topbar {
  background: linear-gradient(#44464b, #2c2e32);
  border-color: #74777b;
  box-shadow: inset 0 1px #ffffff20, 0 1px 3px #0005;
}
.brand { color: #f4f0e7; }
.brand-symbol { color: #f16b59; }
.brand-symbol span { background: var(--gold); }
.brand-sub, .resource small { color: #c0c0c2; }
.resource strong { color: #f5f0e6; }
#credits { color: var(--gold); }
#power { color: #a4d2ff; }
.live-tag, .timer { color: #e3ddd2; }
.live-tag i, .status-led, .coordinate-bar .signal {
  background: var(--friendly);
  box-shadow: 0 0 6px #5ba9ee55;
}
.top-actions .icon-btn { color: #e0dfdc; background: transparent; border-color: transparent; }
.top-actions .icon-btn:hover { background: #51545a; border-color: #8d9095; color: #fff9eb; }
.top-actions .icon-btn[aria-pressed="true"],
.top-actions .icon-btn[aria-expanded="false"] {
  background: #63312f;
  border-color: #e47764;
  color: #fff0e2;
}

.battlefield { background: #76756b; }
.command-sidebar {
  background: linear-gradient(90deg, #26282b, #303237 18%, #2b2d31);
  border-color: #7c7e82;
  box-shadow: inset 1px 0 #e7e3d225;
  scrollbar-color: #797e87 #202225;
}
.sidebar-heading {
  color: #f7f0e4;
  background: linear-gradient(#505257, #35373c);
  box-shadow: inset 0 1px #ffffff18, inset 0 -1px #17181b;
}
.sidebar-heading h2 { color: #f1e9db; }
.sidebar-heading .art-status { color: #c8c8c9; }
.faction-badge { background: #2b2c30; border-color: #8c8d91; color: #f6d999; }
.radar-container {
  background: #171b20;
  border-color: #767a80;
  box-shadow: inset 0 0 0 1px #0d0e10, 0 1px #ffffff16;
}
.radar-label { color: #dfdfdc; text-shadow: 0 1px 3px #000; }
.radar-label span { color: var(--friendly); }
.radar-container[data-radar="offline"] .radar-label span { color: #d2b998; }
.waypoint-hint button { margin-left: 8px; padding: 4px 8px; color: #e6f5ff; background: #233a4c; border: 1px solid #88b1cb; }
@media (pointer: coarse) { .waypoint-hint button { min-height: 44px; } }
.radar-corner.tl, .radar-corner.br { border-color: #b8bdc5; }
.intel-row, .control-group-heading { color: #c2c2c2; }
.intel-row button { color: var(--friendly); background: transparent; }
.ally { background: var(--friendly); }
.enemy { background: #fb7569; }
.ore { background: var(--gold); }
.control-group-heading small { color: #a4a6ab; }
.control-group-buttons button {
  background: linear-gradient(#45484e, #2f3237);
  color: #f3eee1;
  border-color: #73777f;
  box-shadow: inset 0 1px #ffffff17, inset 0 -1px #111316;
}
.control-group-buttons button.empty { background: #2d3035; color: #b5b7bb; border-color: #5b6067; }
.group-count { color: #b7d9ff; }
.control-group-buttons button.empty .group-count { color: #959aa3; }
.control-group-buttons button:hover { background: #555960; color: #fff8ea; border-color: #b7b8bd; }
.control-group-buttons button.active {
  background: linear-gradient(#844139, #582d2a);
  border-color: #ef9a7f;
  color: #fff7e7;
}
.control-group-buttons button.active .group-count { color: #ffe2af; }
.sidebar-actions button, .command-sidebar #mouse-mode,
.camera-tools button, .camera-tools .view-bookmarks button,
.queue-label button, .dossier-factions button, .battle-event button {
  background: linear-gradient(#45494f, #303338);
  border-color: #747982;
  color: #f0eadd;
  box-shadow: inset 0 1px #ffffff16, inset 0 -1px #111316;
}
.sidebar-actions button:hover, .command-sidebar #mouse-mode:hover,
.camera-tools button:hover, .queue-label button:hover,
.dossier-factions button:hover, .battle-event button:hover {
  background: linear-gradient(#61656d, #41454b);
  border-color: #c1c0bc;
  color: #fff7e8;
}
.sidebar-actions button.active, .sidebar-actions button[aria-pressed="true"],
.camera-tools button[aria-pressed="true"], .dossier-factions button.active {
  background: linear-gradient(#91453c, #63312d);
  border-color: #ee947c;
  color: #fff6e5;
}
.command-sidebar #mouse-mode[data-command-style="classic"] {
  border-color: #98afc5;
  box-shadow: inset 0 1px #ffffff16, inset 0 -2px #829cb5;
}
.command-sidebar #mouse-mode[data-command-style="modern"] {
  border-color: #b09c7b;
  box-shadow: inset 0 1px #ffffff16, inset 0 -2px #b09c7b;
}
.production-heading { border-color: #5e626a; }
.production-heading span { color: #b7b9bd; }
.production-tabs button {
  background: linear-gradient(#474b52, #303238);
  color: #e3dfd5;
  border: 1px solid #6c717a;
  box-shadow: inset 0 1px #ffffff1c, inset 0 -1px #1c1d21;
}
.production-tabs button:hover { background: linear-gradient(#545961, #3c4047); color: #fff4e5; }
.production-tabs button:is(.active, [aria-selected="true"]) {
  background: linear-gradient(#61342e, #472722);
  border-color: #e69b76;
  color: #fff4df;
  box-shadow: inset 0 2px 3px #170e0b99, inset 0 -2px #e58763;
}
.production-tabs button:is(.active, [aria-selected="true"]) kbd {
  background: #35201c;
  color: #ffe2a9;
}
.production-tabs .secondary-production-tab:not([aria-selected="true"]) {
  background: #2a2c31;
  color: #c1bdaf;
  border-color: #5e6068;
  box-shadow: none;
}
.production-tabs .secondary-production-tab:not([aria-selected="true"]):hover { background: #3b3e45; color: #f7e7cf; }
.catalog { scrollbar-color: #7c8189 #212327; }
.catalog-card {
  background: linear-gradient(#36393e, #292b30);
  border-color: #6c727a;
  box-shadow: inset 0 1px 1px #0009, inset 0 -1px #ffffff12;
}
.catalog-card:hover { background: linear-gradient(#4c5057, #36393f); border-color: #dcba7a; }
.catalog-card:active { box-shadow: inset 0 2px 4px #17171bd9; }
.catalog-card.production-completed { animation: production-completed .65s ease-out; }
@keyframes production-completed { 0%, 28% { border-color: #f7e2a9; box-shadow: inset 0 0 0 2px #ead18a8a; } }
@media (prefers-reduced-motion: reduce) { .catalog-card.production-completed { animation: none; border-color: #eed8a0; } }
.catalog-card:is(.locked:not([data-production-state]), [data-production-state="locked"]) {
  opacity: 1; background: #2b2e32; border-color: #575d65; cursor: help;
}
.catalog-card:is(.locked:not([data-production-state]), [data-production-state="locked"]):hover,
.catalog-card[data-production-state="unfunded"]:hover { border-color: #a4a6aa; }
.catalog-card:is(.locked:not([data-production-state]), [data-production-state="locked"]) .card-art { opacity: .55; }
.catalog-card:is(.locked:not([data-production-state]), [data-production-state="locked"]) .card-name { color: #bdc2ca; }
.catalog-card:is(.locked:not([data-production-state]), [data-production-state="locked"]) .card-bottom { color: #d0c7ae; }
.catalog-card .card-art {
  background: radial-gradient(ellipse at 50% 65%, #67696c, #3c3e42 68%, #303237);
  border-color: #797c802f;
}
.card-art:after { background: #c1c1bd33; }
.card-art svg, .equipment-art .fallback-art svg {
  color: #d2d2cb;
  filter: drop-shadow(0 2px 2px #0009);
}
.equipment-art img, .equipment-art .atlas-crop { filter: none; }
.catalog-card .card-name { color: #f4efe5; }
.card-bottom { color: var(--gold); }
.card-bottom small { color: #c1c3c7; }
.card-lock { color: #d1d2d3; }
.card-count { background: #9e3e33; color: #fff9e8; }
.catalog-card .progress { background: var(--production-accent, #f2cf7f); }
.catalog-card[data-production-state="active"] { --production-accent: #f2cf7f; border-color: #a69161; }
.catalog-card[data-production-state="paused"] { --production-accent: #efaa67; border-color: #d5ae63; }
.catalog-card[data-production-state="blocked"] { --production-accent: #f19a72; border-color: #ba8063; }
.catalog-card[data-production-state="funds"] { --production-accent: #ffc377; border-color: #bf8a4e; }
.production-row.waiting-funds .queue-job-status { color: #ffc377; }
.catalog-card[data-production-state="waiting"] { --production-accent: #a5afbf; border-color: #828997; }
.catalog-card[data-production-state="plan"] { --production-accent: #9fc9ec; border-color: #82aecd; }
.catalog-card[data-production-state="ready"] { --production-accent: #f2cf7f; border-color: #f3c77b; }
.catalog-card[data-production-state="unfunded"] { --production-accent: #f1aa7e; cursor: help; }
.catalog-card[data-production-state] { opacity: 1; }
.catalog-card[data-production-state] .card-bottom > span { color: var(--production-accent, inherit); }
.catalog-card[data-production-state]:not([data-production-state="locked"]) .card-lock { display: none; }
.catalog-card:is([data-production-state="active"], [data-production-state="paused"], [data-production-state="blocked"], [data-production-state="funds"]) .card-art:after {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(transparent 0 var(--production-progress, 0%), #17191dc2 var(--production-progress, 0%) 100%);
}
.catalog-card.job-paused:not([data-production-state]) { border-color: #d5ae63; }
.catalog-card.job-paused:not([data-production-state]) .card-bottom > span { color: #ffe0a1; }
.catalog-empty { color: #b7bac0; }
.card-ready { animation: none; border-color: #f3c77b; }

#queue-drawer, #camera-drawer { border-color: #63676e; background: #292c31; }
#queue-drawer > summary, #camera-drawer > summary {
  background: linear-gradient(#44474d, #33363b);
  color: #eee7da;
  box-shadow: inset 0 1px #ffffff12;
}
#queue-drawer > summary:hover, #camera-drawer > summary:hover { background: #4b4e55; }
#queue-drawer > summary::marker, #camera-drawer > summary::marker { color: #f8ce86; }
#queue-count { color: #f4dbad; }
.queue { background: #25272b; border-color: #5c6068; color: #d6d5d1; }
.queue-placeholder { color: #b1b4ba; }
.queue-track { background: #15171b; box-shadow: inset 0 1px #0008; }
.queue-track > span { background: #8fc8fa; }
.production-row.blocked .queue-track > span { background: #f19a72; }
.production-row.blocked .queue-label { color: #ffbc94; }
.production-row.paused .queue-track > span { background: #efaa67; }
.production-row.paused .queue-job-status { color: #ffe0a1; }
.production-row.waiting:not(.paused) .queue-job-status { color: #bbc3d0; }
.production-row.ready .queue-track > span { background: #f2cf7f; }
.camera-tools { background: transparent; }
.zoom-tools > output { color: #f2e9d7; }
.camera-tools kbd { background: transparent; color: inherit; }
.view-bookmarks { border-color: #777d8740; }
.view-bookmarks > span { color: #b8bbc2; }
.view-bookmarks button.saved { color: #b9deff; border-color: #82afd4; }
.view-bookmarks > #camera-event { color: #ffac87; }

#selection-panel {
  background: linear-gradient(#3c3f45, #2b2e33);
  border-color: #8d8f94;
  color: #f4eddf;
  box-shadow: inset 0 1px #ffffff16;
}
.selection-empty { color: #b7b9bf; }
.selection-empty .reticle { color: #a9b1bc; }
.selection-empty strong { color: #e5e3dc; }
.selection-empty small { color: #b2b7c0; }
.selection-info h3 { color: #fff1d9; }
.selection-info p { color: #c1c1c4; }
.selection-meta { color: #d0d2d5; }
.selected-portrait {
  background: radial-gradient(ellipse at 50% 65%, #686a6d, #373a3e);
  border-color: #8b8d94;
}
.selected-portrait svg { color: #d5d4cc; }
.health-track { background: #14181d; }
.health-track i { background: #8cc9ff; }
.selected-icons button { background: #3c4149; border-color: #767e8c; color: #cbe5ff; }
#selection-panel .unit-commands button {
  background: linear-gradient(#50545b, #34383e);
  border-color: #858b94;
  color: #f5eddd;
  box-shadow: inset 0 1px #ffffff18, inset 0 -1px #171a1e;
}
#selection-panel .unit-commands button:hover,
#selection-panel .unit-commands button.active {
  background: linear-gradient(#87453e, #5c312d);
  border-color: #efab8b;
  color: #fff4dd;
}
#selection-panel .unit-commands button b { color: #d1c7b6; }
#selection-panel .unit-commands .deploy-command { border-color: #d9b66d; color: #ffe5a8; }
.sidebar-footer { background: #25272b; border-color: #64686e; color: #bcbfc4; }
.sidebar-footer button { color: #c0dcf6; background: transparent; }
.statusbar { background: #24262a; border-color: #6c6f75; color: #b9bdc4; }
.statusbar .version { color: #d9d6cc; }
.version b { color: #b0b2b9; }
.statusbar #status-message { color: #c9cacd; }
.statusbar #control-hint { color: #dfc78f; }
.coordinate-bar { background: transparent; border-color: #777b8233; color: #b5cce1; }
.coordinate-bar button { background: transparent; color: #d4e8ff; }

.map-heading {
  background: #282a2ddd;
  border-color: #c2c0b066;
  color: #f7f0df;
  text-shadow: 0 1px 2px #000;
}
.map-heading h1 { color: #fff1d8; }
.map-heading h1 span, .map-heading p, .map-size-label { color: #d0d4d9; }
.objective { background: #303238e8; border-color: #989da55a; }
.objective small, .compass { color: #d0d4db; }
.objective div > span { color: #f0ede4; }
.overview-caption { background: #282a2fef; border-color: #b9a987; color: #ffebc3; }
.overview-caption span { color: #d4d7dd; }
.tutorial { background: #303238f5; border-color: #8a8d95; box-shadow: 0 4px 15px #0005; }
.tutorial-num { color: var(--friendly); }
.tutorial strong { color: #fff0cd; }
.tutorial p { color: #d5d5d6; }
.tutorial button { background: transparent; color: #e5ddd2; }
.toast { background: #303136f5; border-color: #de8a6f; color: #fff1db; box-shadow: 0 3px 12px #0006; }
.placement-hint { background: #32353aee; border-color: #e4c185; color: #fff0cc; }
.waypoint-hint { border-color: #7a9db5; color: #cce7fa; }

.launch-overlay { background: #202125ed; }
.launch-overlay::before {
  background: repeating-linear-gradient(0deg, #0000, #0000 3px, #0000000c 3px, #0000000c 4px);
}
.launch-kicker { color: #c3c1be; }
.launch-kicker > span { background: #e87860; }
.launch-title { color: #faf2e0; }
.launch-title > span { color: #ed7761; }
.launch-title > small { color: #c1bcb3; }
.launch-description { color: #d0cec9; }
.briefing { background: #393b40c9; border-color: #7b7e85; box-shadow: inset 0 1px #ffffff15; }
.briefing-icon { color: var(--gold); }
.briefing small, .briefing p { color: #c2c4c8; }
.map-tag { color: #cbe3ff; }
.field-label { color: #f2e6ce; }
.field-label span { color: #b8bbc2; }
.faction-option {
  background: linear-gradient(#414449df, #2c2f34e8);
  border-color: #787d85;
  color: #eeebe3;
  box-shadow: inset 0 1px #ffffff16;
}
.faction-option:hover { background: #4b4e54; border-color: #d6c5a5; }
.faction-option.active {
  background: linear-gradient(#6e3832, #432b2a);
  border-color: #e99074;
  box-shadow: inset 0 2px #ef7861;
}
.faction-option small { color: #c1c4c9; }
.faction-option.active strong { color: #fff0d5; }
.flag { color: #f0bf69; }
.flag.us { color: #a3d0ff; }
.flag.ru { color: #e0d8d1; }
.faction-description, .mode-description { color: #c3c4c8; }
.settings-row { color: #d7d4cd; }
.settings-row select, .map-briefing select,
.modal select, .modal input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) {
  background: #292c31;
  color: #f4eee1;
  border-color: #8c9098;
}
select option { color: #f5efe4; background: #2c2f34; }
.map-briefing label { color: #dbd2bd; }
.deploy-button {
  background: linear-gradient(#bf5443, #8c352d);
  border-color: #f29d78;
  color: #fff5de;
  box-shadow: inset 0 1px #ffddad55, 0 4px 18px #0004;
}
.deploy-button:hover { background: linear-gradient(#d56a52, #a54033); color: #fff9e7; }
.resume-button { background: #383c42; border-color: #858b94; color: #eee9df; }
.resume-button:hover:not(:disabled) { background: #4b5058; border-color: #dfc397; }
.launch-bottom { color: #b6bbc2; }
.launch-bottom button { background: transparent; color: #bddaff; }
.launch-side { color: #ddd7ca; }
.launch-side-line { border-color: #dc9f78; }
.launch-side b, .launch-side-version { color: #bfc4ca; }
.save-summary { color: #c5c7cb; }
.save-summary.save-error, .save-feedback { color: #ffb79c; }
.art-status-warning { color: #ffd18c !important; }
.map-deployment {
  background: #2c2e32ed;
  border-color: #898c92;
  box-shadow: inset 0 1px #ffffff18, 0 10px 40px #0004;
}
.deployment-header { color: #bfc5cc; }
.map-deployment h2 { color: #f9edda; }
.deployment-map { background: #2b3037; border-color: #9299a3; }
.preview-corners { border-top-color: #d8c7a5; border-bottom-color: #9ba8b9; }
.deployment-metrics { border-color: #777d8755; }
.deployment-metrics strong { color: #f6db9f; }
.deployment-metrics small { color: #bbc1c9; }
.map-deployment #deployment-routes { color: #d1d3d8; }
.map-deployment #deployment-note { color: #b8bec8; }
.preview-legend { color: #d2d4d8; }
.preview-legend i { background: var(--friendly); }
.preview-legend > span:nth-child(2) i { background: #ff8775; }
.preview-legend > span:nth-child(3) i { background: var(--gold); }

.modal-overlay, .result-overlay { background: #101115cf; }
.modal, .result-panel {
  background: linear-gradient(#3b3e44, #292c31);
  border-color: #96999f;
  color: #eee8db;
  box-shadow: inset 0 1px #ffffff22, 0 22px 70px #0008;
  scrollbar-color: #858b94 #272a2f;
}
.modal h2, .result-panel h2 { color: #fff0d1; }
.modal-close { background: transparent; color: #e3dfd5; }
.modal-close:hover { color: #ff9b85; }
.manual-row { border-color: #73798455; color: #d0d3d9; }
.manual-row strong { color: #ffefd0; }
.manual-tip { background: #4a4031; border-color: #f0c67a; color: #f7e7c6; }
.dossier-intro { color: #d0d3d9; }
.equipment-row { border-color: #747d8b55; }
.equipment-row svg { color: #d3d1c8; }
.equipment-row strong { color: #f5eddd; }
.equipment-row small { color: #b7cce0; }
.equipment-row p { color: #d2d3d6; }
.equipment-row a { color: #a8d3ff; }
.equipment-row > .equipment-art {
  background: radial-gradient(ellipse at 50% 65%, #707276, #35383e);
  border-color: #a0a6af66;
}
.dossier-footnote { color: #b8bec8; }
.art-gallery-link { background: #3b414a; border-color: #8b99aa; color: #d0e7ff; }
.art-gallery-link:hover { background: #505a68; border-color: #c1d4e9; }
.art-placeholder { color: #bdc2ca; }
.art-placeholder i { border-color: #b1b7c166; }
.art-placeholder i::before, .art-placeholder i::after { background: #b9c0c988; }
.quality-options legend { color: #eee5d4; }
.quality-option { background: #383c43; border-color: #777f8d; }
.quality-option:has(input:checked) { background: #593832; border-color: #e6a080; }
.quality-option input, .sound-setting input, .volume-slider { accent-color: #ed9a75; }
.quality-option strong { color: #f7edda; }
.quality-option small { color: #c3c8d0; }
.sound-setting, .volume-setting { color: #deddd7; }
.volume-setting output { color: #f1d29a; }
.settings-status, .settings-note { color: #c5cbd4; }
.camera-settings { border-color: #868f9e66; }
.camera-settings h3 { color: #f2e5ca; }
.result-panel > p { color: #d0d2d7; }
.result-stats strong { color: #f4d293; }
.result-stats small { color: #bfc7d1; }
.battle-event { border-color: #7c859355; color: #e6e5df; }
.battle-event time { color: #bed4ea; }
.battle-event small { color: #bbc4ce; }
.battle-event.critical { color: #ffb59b; }

@media (prefers-reduced-motion: reduce) {
  .card-ready { animation: none; border-color: #f3c77b; }
}
