/* Farstar's original content, presented as a weathered colony command interface. */
:root {
  --bg: #151617;
  --surface: #1e1f20;
  --surface-2: #2a2b2c;
  --border: #474640;
  --text: #e8e4da;
  --muted: #bcb7ac;
  --subtle: #a49f94;
  --mint: #d6ba7e;
  --mint-dim: #332e22;
  --amber: #dfb57d;
  --blue: #a3bfd1;
  --purple: #c7a9e0;
  --danger: #ed9a8d;
  --radius: 3px;
}

.panel, .building-card, .roster-card, .market-card, .expedition-card,
.command-metrics > div, .business-totals > div, .contract-offer,
.workshop-panel .material-card, .workshop-panel .gear-card,
.network-crew > article, .network-supply-catalog > article,
.prod-service-item, .development-tomes > article {
  background: var(--surface);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff06;
}

.panel-toolbar, .world-status, .growth-tabs, .simulation-controls,
.policy-options, .chapter-selector, .comparison-table,
.warehouse-saved-rules, .store-reserve-row, .prod-policy,
.research-branch-heading, .research-branch-stage.advanced {
  background: #191a1b;
  border-color: var(--border);
  border-radius: 2px;
}

.world-corner, .world-hint { background: #171818e8; color: var(--text); }
.strategy-options, .sector-switcher, .field-summary, .field-empty { background: #191b1b; border-color: var(--border); }
.strategy-options button.active { background: #443f2f; border-color: #8f794e; color: #f0dca7; }
.strategy-panel select { background: #17191a; border-color: #605d53; border-radius: 2px; }
.battle-card { background: #212322; border-color: #4d5047; border-radius: 3px; }
.battle-card:hover { background: #2d302b; border-color: #8c825e; }
.live-dot { box-shadow: none; }
.world-zoom-help { background: #28261f; color: #d3c9b3; border-color: var(--border); }

.primary-button {
  color: #171710;
  background: #c9ad73;
  border: 1px solid #e4c88f;
  border-bottom-color: #937642;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 #fff3, 0 2px 0 #0004;
  font-weight: 600;
}
.primary-button:not(:disabled):hover { background: #e1c88f; border-color: #f0dba9; }
.primary-button:not(:disabled):active { background: #b79a61; box-shadow: inset 0 1px 3px #0004; }
.secondary-button, .upgrade-button, .map-zoom-button, .dialog-close,
.resource-plus, .heading-guide {
  color: #ded6c3;
  background: #303130;
  border: 1px solid #605b4e;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 #ffffff09;
}
.secondary-button:not(:disabled):hover, .upgrade-button:not(:disabled):hover,
.map-zoom-button:not(:disabled):hover, .dialog-close:hover,
.resource-plus:not(:disabled):hover, .heading-guide:hover {
  color: #f5e6c7;
  background: #403d33;
  border-color: #a68b59;
}
.text-button, .policy-guide h3 { color: var(--mint); }
button:disabled { opacity: .48; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #ead399;
  outline-offset: 3px;
}

.growth-tabs button, .gear-filters button, .policy-options button,
.simulation-controls button, .price-presets button { border-radius: 2px; }
.growth-tabs button.active, .gear-filters button.active,
.policy-options button.active, .simulation-controls button.selected,
.price-presets button.active, .map-zoom-button[aria-pressed="true"] {
  background: #46402f;
  color: #f0dca7;
  border-color: #8f794e;
  box-shadow: inset 0 1px 0 #ffffff0a;
}
.growth-tabs button > span { background: #5b5036; color: #efe0bb; }
.growth-tabs button:not(.active):not(:disabled):hover,
.policy-options button:not(.active):not(:disabled):hover { background: #30302b; }

.command-header, .store-front, .expedition-banner {
  background: #252523;
  border-color: var(--border);
  border-top-color: #a78c58;
}
.command-header p, .store-front p { color: var(--muted); }
.command-rank-card, .guide-current, .first-loop-next,
.upgrade-benefit, .upgrade-preview, .store-note, .store-inventory-strip,
.prod-benefit, .prod-cancel-refund, .research-unlock,
.research-confirm-effect, .development-blessing-rule,
.development-confirm-target, .launch-notice {
  background: #2b2922;
  border-color: #665a40;
  border-radius: 3px;
  color: #d9cfb7;
}
.command-rank-card > span, .command-rank-card > small,
.first-loop-next p, .first-loop-next small, .store-note p,
.upgrade-benefit-note, .upgrade-benefit-summary { color: #c5bcaa; }
.command-rank-card > strong, .command-metrics strong,
.upgrade-benefit-heading, .upgrade-benefit-table caption,
.gear-stat-list b, .sku-cost b, .growth-cost { color: #e2d4b6; }
.command-rank-progress, .policy-meter, .manifest-progress,
.goal-progress, .expedition-progress, .store-capacity-meter > div { background: #494335; }
.command-rank-progress > span, .manifest-progress > span,
.goal-progress > span, .store-capacity-meter > div > span,
.research-progress > span, .research-ranks .done i { background: #c4ab71; }
.first-loop-steps li { border-radius: 2px; }
.first-loop-steps li.done { background: #2a2b23; border-color: #666547; }
.first-loop-steps li.current { background: #363022; border-color: #a18a56; }

.chapter-step, .chapter-step.locked, .contract-offer.locked,
.command-empty-shipment, .manifest-review-list { background: #1b1c1d; }
.chapter-step:hover { background: #30302b; }
.chapter-step.selected, .active-manifest, .active-manifest.ready { background: #343024; border-color: #9a8150; }
.chapter-number, .manifest-symbol, .ready .manifest-symbol,
.claimed .chapter-number, .contract-offer-heading > span { background: #424034; color: #d8cba9; }
.chapter-state.claimed, .complete .goal-check,
.mission-row.complete .mission-check, .shipment-history-row > span { background: #343a2b; color: #c8d5ab; }
.chapter-state.ready, .manifest-review-note { background: #3c3223; border-color: #8d7346; }

.gear-card .gear-art, .warehouse-gear-art, .building-art,
.portrait.robot-portrait { background: #2b2d2c; }
.recipe-card, .skill-card, .store-product,
.development-slots > div, .development-spell-slots > article,
.development-trait-list > article { background: #232524; border-radius: 3px; }
.recipe-card:not(.epic):not(.legendary):not(.rare),
.skill-card:not(.passive) { border-color: #55564d; }
.blueprint-card.locked, .development-slots > div.empty,
.development-spell-slots > article.empty { background: #1b1c1d; }
.equipment-hero:not(.epic):not(.legendary) { background: #2a2e2e; border-color: #67706d; border-radius: 3px; }
.skill-points-strip, .prod-facility.selected,
.development-donor-list > label.selected { background: #353225; border-color: #9c8656; }
.skill-ranks > span.learned { background: #685d3d; }
.research-project-icon, .research-station-symbol { background: #3b382b; }
.research-route-connector { background: #202222; }
.research-route-connector > span { background: #7e7250; }
.prod-facility:hover { background: #2c2e2b; }

.store-pane input[type="number"], .network-field input,
.network-field select, .network-field textarea, .network-profile-switch select,
.warehouse-rule-editor select, .warehouse-items select, .warehouse-keep input,
.prod-staff-card select, .prod-service select, .prod-transfer-row input,
.development-toolbar select, .development-quantity input, .launch-calculator input {
  background: #151617;
  color: var(--text);
  border-color: #605d53;
  border-radius: 2px;
}
.price-presets button { background: #2e302e; border-color: #55564c; }
.launch-calculator { background: #191b1b; border-color: #57574c; border-radius: 3px; }
.launch-caption, .launch-terms dt, .launch-metrics small, .launch-quote small { color: var(--muted); }
.launch-quote strong, .launch-panel a, .launch-schedule summary { color: var(--mint); }
.launch-terms div, .launch-schedule, .launch-schedule th,
.launch-schedule td, .launch-review { border-color: var(--border); }

.authority-status, .authority-status[data-connected="true"] {
  background: #252725;
  color: var(--text);
  border-color: #67624e;
  border-radius: 3px;
}
.authority-status p { color: var(--muted); }
.authority-status[data-connected="true"] svg { color: #c6be8d; }
dialog { background: #222323; border-color: #77705d; border-radius: 3px; box-shadow: 0 16px 55px #000b; }
dialog::backdrop { background: #0a0b0cbd; backdrop-filter: blur(3px); }
.toast { background: #353429; border-color: #8d825d; color: #f0e6c9; border-radius: 3px; }
.toast.error { background: #402a26; border-color: #a56d5a; color: #f1cdc1; }
.protocol-effect-note { background: #292c26; border-color: #65674e; color: #d3dac1; border-radius: 3px; }
.protocol-effect-note strong { color: #dbe4b6; }
.count-badge { background: #3b382d; color: #d7c89e; border-radius: 2px; }
.prototype-tag { border-color: #555247; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  button, .panel { transition: none; }
}
