/* Existing mission control, objectives and colony records in the outpost theme. */
#command-view { --command-edge: #5b5a4c; --command-paper: #e5dcc5; }
#command-view :is(.primary-button, .secondary-button, .text-button) { min-height: 44px; white-space: normal; line-height: 1.7; }
#command-view :is(.first-loop-panel, .command-header, .command-ranks-panel, .command-contracts-panel, .command-history-panel) { border-color: var(--command-edge); border-radius: 3px; }
#command-view .first-loop-panel { padding: 26px; border-top: 2px solid #9d8b5f; background: #242622; }
#command-view .first-loop-heading h2 { font-size: 22px; line-height: 1.6; }
#command-view .first-loop-heading > strong { font-size: 25px; }
#command-view .first-loop-steps { gap: 12px; }
#command-view .first-loop-steps li { padding: 15px; background: #1b1e1b; border-color: #565849; border-radius: 2px; }
#command-view .first-loop-steps li.done { background: #303526; border-color: #73805b; }
#command-view .first-loop-steps li.current { background: #3b3525; border-color: #b39b65; }
#command-view .first-loop-steps strong { font-size: 13px; line-height: 1.7; }
#command-view .first-loop-steps small { font-size: 12px; line-height: 1.7; }
#command-view .first-loop-next { padding: 20px; background: #302d23; border: 1px solid #75663f; border-radius: 2px; }
#command-view .first-loop-next h3 { font-size: 18px; line-height: 1.6; }
#command-view .first-loop-next p, #command-view .first-loop-next small { color: #c8c0ad; font-size: 12px; }
#command-view :is(.first-loop-footnote, .first-loop-state, .first-loop-finished, .first-loop-chapter p) { font-size: 12px; line-height: 1.9; }
#command-view .first-loop-complete summary { font-size: 13px; min-height: 44px; }
#command-view .command-header { padding: 30px; gap: 28px; border-top: 3px solid #b19a66; background: #242622; }
#command-view .command-header > div:first-child { min-width: 0; }
#command-view .command-header h2 { font-size: 29px; font-weight: 600; line-height: 1.5; }
#command-view .command-header p { font-size: 13px; color: #c4bfaf; line-height: 1.9; }
#command-view .command-online { font-size: 12px; color: #dcc48e; }
#command-view .command-rank-card { flex-basis: 270px; padding: 20px; border-color: #827146; border-radius: 2px; background: #302f24; }
#command-view .command-rank-card > span { color: #c7bfa8; font-size: 12px; }
#command-view .command-rank-card > strong { font-size: 25px; line-height: 1.5; color: #eee0bb; }
#command-view .command-rank-card > small { font-size: 11px; line-height: 1.9; color: #c4bba4; }
#command-view .command-rank-progress { height: 5px; background: #514b38; }
#command-view .command-rank-progress > span { background: #cfb77b; }
#command-view > .expansion-links { padding: 24px 28px; background: #1e211f; border-color: #4e5144; }
#command-view > .expansion-links h2 { font-size: 22px; line-height: 1.6; }
#command-view > .expansion-links p { font-size: 12px; }
#command-view .command-metrics { gap: 14px; margin: 22px 0; }
#command-view .command-metrics > div { padding: 22px; background: #232623; border-color: #55584b; border-radius: 2px; }
#command-view .command-metrics span { font-size: 12px; color: #cbc5b6; }
#command-view .command-metrics strong { margin: 11px 0 8px; font-size: 32px; color: #e9dfc5; overflow-wrap: anywhere; }
#command-view .command-metrics > div:last-child strong { color: var(--amber); }
#command-view .command-metrics small { font-size: 11px; line-height: 1.8; color: #b3ad9f; }
#command-view .command-toolbar { align-items: flex-start; gap: 16px; margin: 24px 0 20px; }
#command-view .command-toolbar > .growth-tabs { flex: 1; padding: 0; gap: 0; background: #171a18; border-color: #64604e; }
#command-view .command-toolbar > .growth-tabs button { flex: 1; min-height: 46px; padding: 11px 16px; font-size: 13px; border-radius: 0; border-bottom: 2px solid transparent; white-space: normal; }
#command-view .command-toolbar > .growth-tabs button.active { background: #3c3728; color: #efdca8; border-color: transparent; border-bottom-color: #c6aa70; }
#command-view .simulation-controls button { min-width: 44px; min-height: 44px; }
#command-view .command-logistics { border-color: #615d49; border-radius: 2px; }
#command-view .command-empty-shipment, #command-view .active-manifest { padding: 22px; background: #252923; }
#command-view .command-empty-shipment strong { font-size: 16px; line-height: 1.7; }
#command-view .command-empty-shipment p { font-size: 12px; }
#command-view .active-manifest.ready { background: #30372a; }
#command-view .manifest-symbol { background: #38392e; border-color: #75745b; border-radius: 2px; }
#command-view .manifest-copy h3 { font-size: 19px; line-height: 1.6; }
#command-view .manifest-copy p { font-size: 12px; }
#command-view .manifest-copy .equipment-kind { font-size: 11px; }
#command-view .manifest-settlement > strong { color: #e0c995; }
#command-view .manifest-progress { background: #50503e; }
#command-view .manifest-progress > span { background: #b9b080; }
#command-view .command-overview { grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); gap: 22px; }
#command-view .command-chapters, #command-view .command-advice-panel { border-color: #5b5d4e; border-radius: 2px; }
#command-view .chapter-selector { background: #545344; border-color: #575849; }
#command-view .chapter-step { padding: 18px; min-height: 90px; background: #1d211e; }
#command-view .chapter-step.selected { background: #393527; border-left-color: #c2a86c; }
#command-view .chapter-step.locked { background: #1a1d1b; }
#command-view .chapter-step:hover { background: #30352c; }
#command-view .chapter-step strong { font-size: 14px; line-height: 1.7; }
#command-view .chapter-step small { font-size: 11px; line-height: 1.9; }
#command-view .chapter-number { width: 34px; height: 38px; background: #3c3e31; border-color: #74715a; border-radius: 2px; color: #dfd3b4; font-size: 12px; }
#command-view .claimed .chapter-number { background: #35412e; border-color: #778763; color: #d4e0b9; }
#command-view .chapter-detail { padding: 26px; }
#command-view .chapter-heading { gap: 18px; }
#command-view .chapter-heading > div { min-width: 0; }
#command-view .chapter-heading h2 { font-size: 26px; line-height: 1.5; font-weight: 600; }
#command-view .chapter-heading p { font-size: 12px; line-height: 1.9; }
#command-view .chapter-state { padding: 7px 9px; font-size: 11px; border-radius: 2px; }
#command-view .chapter-goal { gap: 13px; padding: 18px 0; flex-wrap: wrap; }
#command-view .chapter-goal strong { font-size: 13px; line-height: 1.9; color: #ded9cb; }
#command-view .chapter-goal > b { font-size: 15px; }
#command-view .chapter-goal > b small { font-size: 11px; }
#command-view .chapter-goal .text-button { margin-left: auto; max-width: 160px; font-size: 12px; }
#command-view .goal-check { width: 25px; height: 25px; border-color: #69705e; border-radius: 2px; background: #252c25; }
#command-view .complete .goal-check { background: #35432d; border-color: #81916a; color: #d9e5bd; }
#command-view .goal-progress { height: 4px; background: #484d3c; }
#command-view .goal-progress > span { background: #aeb888; }
#command-view .goal-done { font-size: 11px; color: #c0d5a4; }
#command-view .chapter-footer { padding-top: 22px; flex-wrap: wrap; }
#command-view .chapter-footer > div > small { font-size: 11px; }
#command-view .chapter-footer > .primary-button { font-size: 13px; padding: 11px 18px; }
#command-view .command-rewards { gap: 10px 18px; }
#command-view .command-rewards > span { font-size: 14px; }
#command-view .command-rewards small { font-size: 11px; }
#command-view .command-footnote { font-size: 12px; line-height: 1.9; }
#command-view .command-advice-panel { padding: 24px; background: #222520; }
#command-view .command-advice-panel h2 { font-size: 18px; font-weight: 600; }
#command-view .command-advice-panel .growth-section-title > span { font-size: 11px; }
#command-view .command-advice { gap: 14px; padding: 20px 0; border-color: #515446; }
#command-view .command-advice > span { width: 34px; height: 37px; background: #30392e; border-color: #6a765a; color: #bfd0aa; border-radius: 2px; }
#command-view .command-advice.urgent > span { background: #3c3423; border-color: #9a8050; color: #e2be7c; }
#command-view .command-advice h3 { font-size: 15px; line-height: 1.7; }
#command-view .command-advice p { font-size: 12px; line-height: 1.9; }
#command-view .command-advice .text-button { font-size: 12px; }
#command-view .command-clear strong { font-size: 16px; }
#command-view .command-clear p { font-size: 12px; }
#command-view :is(.command-contracts-panel, .command-ranks-panel, .command-history-panel) { padding: 28px; }
#command-view :is(.command-contracts-panel, .command-history-panel) > .growth-section-title { align-items: flex-start; flex-wrap: wrap; }
#command-view :is(.command-contracts-panel, .command-history-panel) > .growth-section-title h2 { font-size: 25px; font-weight: 600; line-height: 1.5; }
#command-view .command-contracts-panel > .growth-section-title p { font-size: 12px; }
#command-view .contract-offers { gap: 20px; }
#command-view .contract-offer { padding: 23px; background: #232822; border-color: #666a54; border-radius: 2px; }
#command-view .contract-offer.locked { background: #1c211d; border-color: #545c4e; }
#command-view .contract-offer-heading h3 { font-size: 20px; font-weight: 600; line-height: 1.6; }
#command-view .contract-offer-heading > span { background: #3a3e2f; border-color: #757e5d; color: #d1d8b5; border-radius: 2px; }
#command-view .contract-offer > p { font-size: 12px; line-height: 1.9; }
#command-view .manifest-needs > span { min-width: 0; flex-basis: 180px; font-size: 12px; }
#command-view .manifest-needs small, #command-view .manifest-needs b { font-size: 12px; }
#command-view .manifest-needs .shortfall { color: #edb093; }
#command-view .contract-offer-footer { flex-wrap: wrap; gap: 15px; }
#command-view .contract-offer-footer > small { font-size: 11px; }
#command-view .contract-offer-footer > button { margin-left: auto; font-size: 12px; }
#command-view .shipment-history-row { gap: 18px; flex-wrap: wrap; }
#command-view .shipment-history-row > span { border-color: #768365; background: #33422c; color: #cee0b3; }
#command-view .shipment-history-row strong { font-size: 14px; }
#command-view .shipment-history-row p { font-size: 12px; }
#command-view .command-rank-heading h2 { font-size: 27px; font-weight: 600; }
#command-view .command-rank-heading p { font-size: 12px; }
#command-view .command-rank-current > section, #command-view .command-rank-paths > section { padding: 20px; background: #20251f; border-color: #59624e; border-radius: 2px; }
#command-view .command-rank-current h3 { font-size: 13px; line-height: 1.7; }
#command-view .command-rank-current strong { font-size: 30px; color: #dcc58b; }
#command-view .command-rank-current p { font-size: 12px; line-height: 1.9; }
#command-view .command-rank-paths h3 { font-size: 20px; line-height: 1.6; }
#command-view .command-rank-paths p { font-size: 12px; line-height: 1.9; }
#command-view .command-rank-paths li { font-size: 12px; flex-wrap: wrap; }
#command-view .command-rank-paths li strong { font-size: 12px; white-space: normal; }
#command-view .command-rank-paths .text-button { font-size: 12px; }
#command-view .command-rank-table { border-color: #64654e; border-radius: 2px; scrollbar-color: #96906a #21251f; }
#command-view .command-rank-table th, #command-view .command-rank-table td { font-size: 12px; padding: 15px; border-color: #505641; }
#command-view .command-rank-table thead th { background: #1b201b; color: #d2c5a8; }
#command-view .command-rank-table td small { font-size: 11px; }
#command-view .command-rank-scope h3 { font-size: 16px; }
#command-view .command-rank-scope p, #command-view .command-rank-scope li { font-size: 12px; line-height: 1.9; }
#command-view .command-rank-links button { font-size: 12px; }
#command-view :is(.decoration-intro, .decoration-placement, .decoration-inventory, .decoration-catalog-panel, .decoration-growth-panel, .decoration-history-panel) { padding: 25px; border-color: #5a614c; border-radius: 2px; }
#command-view .decoration-heading h2 { font-size: 25px; font-weight: 600; line-height: 1.6; }
#command-view .decoration-heading p { font-size: 12px; line-height: 1.9; }
#command-view .decoration-summary > div { padding: 20px; background: #272c23; border-color: #657052; border-radius: 2px; }
#command-view .decoration-summary > div > span { font-size: 12px; }
#command-view .decoration-summary strong { color: #dcc78c; font-size: 29px; }
#command-view .decoration-summary small { font-size: 11px; line-height: 1.8; }
#command-view .decoration-slot { padding: 16px 10px; background: #1c231c; border-color: #59654d; border-radius: 2px; }
#command-view .decoration-slot.selected { background: #363b29; border-color: #b9ac72; }
#command-view .decoration-slot strong { font-size: 12px; line-height: 1.7; }
#command-view .decoration-slot small { font-size: 10px; line-height: 1.8; }
#command-view .decoration-field { font-size: 12px; }
#command-view .decoration-field select { min-height: 44px; height: auto; padding: 11px; font-size: 12px; border-radius: 2px; }
#command-view .decoration-inspector h3, #command-view .decoration-catalog h3 { font-size: 17px; line-height: 1.6; }
#command-view .decoration-inspector > p, #command-view .decoration-note { font-size: 12px; line-height: 1.9; }
#command-view .decoration-originals h3 { font-size: 14px; }
#command-view .decoration-originals p, #command-view .decoration-originals article > small { font-size: 11px; line-height: 1.9; }
#command-view .decoration-originals button { font-size: 11px; white-space: normal; }
#command-view .decoration-catalog > article, #command-view .decoration-growth > article { background: #20271e; border-color: #5d6a50; border-radius: 2px; }
#command-view .decoration-catalog article > div > p, #command-view .decoration-reason { font-size: 12px; line-height: 1.9; }
#command-view .decoration-cost { font-size: 12px; }
#command-view .decoration-growth > article.achieved { background: #343f29; border-color: #9ba779; }
#command-view .decoration-growth header h3 { font-size: 15px; }
#command-view .decoration-growth header span { font-size: 11px; line-height: 1.9; }
#command-view .decoration-growth li { font-size: 11px; flex-wrap: wrap; }
#command-view .decoration-growth li strong { font-size: 12px; white-space: normal; }
#command-view .decoration-history p { font-size: 12px; line-height: 1.9; }
.contract-confirmation > p { font-size: 12px; line-height: 1.9; }
.contract-confirmation .manifest-review-note { border-color: #8a7547; background: #362e21; border-radius: 2px; }
.contract-confirmation .manifest-review-list { border-color: #64624e; background: #20251e; border-radius: 2px; }
.contract-confirmation .manifest-review-list > div { flex-wrap: wrap; }
.contract-confirmation .manifest-review-list b { white-space: normal; }
.contract-confirmation .dialog-actions button { min-height: 44px; white-space: normal; }

@media (max-width: 1100px) {
  #command-view .command-overview { grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 18px; }
  #command-view .command-header { padding: 25px; gap: 22px; }
  #command-view .command-header h2 { font-size: 25px; }
  #command-view .command-rank-card { flex-basis: 235px; }
  #command-view .command-rank-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #command-view .decoration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  #command-view .command-overview { grid-template-columns: minmax(0, 1fr); }
  #command-view .command-toolbar { flex-wrap: wrap; }
  #command-view .command-toolbar > .growth-tabs { flex-basis: 100%; }
  #command-view .command-toolbar > .simulation-controls { margin-left: auto; }
  #command-view .first-loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  #command-view :is(.first-loop-panel, .command-header, .command-ranks-panel, .command-contracts-panel, .command-history-panel, .command-advice-panel) { padding: 18px; }
  #command-view .command-header { flex-direction: column; align-items: stretch; gap: 20px; }
  #command-view .command-header h2 { font-size: 23px; line-height: 1.6; }
  #command-view .command-header p { font-size: 12px; }
  #command-view .command-rank-card { flex: auto; padding: 18px; }
  #command-view .first-loop-heading { flex-wrap: wrap; }
  #command-view .first-loop-heading h2 { font-size: 20px; }
  #command-view .first-loop-steps { gap: 9px; }
  #command-view .first-loop-steps li { padding: 11px; }
  #command-view .first-loop-steps strong { font-size: 12px; }
  #command-view .first-loop-next { padding: 15px; }
  #command-view .first-loop-next > button { max-width: 100%; }
  #command-view .first-loop-chapter { flex-wrap: wrap; }
  #command-view > .expansion-links { padding: 18px; }
  #command-view > .expansion-links h2 { font-size: 20px; }
  #command-view .command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
  #command-view .command-metrics > div { padding: 14px; }
  #command-view .command-metrics strong { font-size: 26px; }
  #command-view .command-metrics small { font-size: 10px; }
  #command-view .command-toolbar > .growth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #command-view .command-toolbar > .growth-tabs button { padding: 10px 7px; font-size: 12px; }
  #command-view .command-empty-shipment, #command-view .active-manifest { padding: 17px; }
  #command-view .command-empty-shipment strong { font-size: 14px; }
  #command-view .chapter-selector { grid-template-columns: minmax(0, 1fr); }
  #command-view .chapter-step { padding: 16px; min-height: 76px; }
  #command-view .chapter-step > b { display: block; }
  #command-view .chapter-detail { padding: 18px; }
  #command-view .chapter-heading { flex-wrap: wrap; gap: 12px; }
  #command-view .chapter-heading h2 { font-size: 24px; }
  #command-view .chapter-goal { gap: 10px; }
  #command-view .chapter-goal > div { flex-basis: calc(100% - 35px); }
  #command-view .chapter-goal > b { margin-left: 35px; }
  #command-view .chapter-goal .text-button { margin-left: auto; max-width: 100%; }
  #command-view .goal-done { width: auto; }
  #command-view .chapter-footer > .primary-button { width: 100%; justify-content: center; }
  #command-view .contract-offers { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #command-view .contract-offer { padding: 18px; }
  #command-view .contract-offer-heading { align-items: flex-start; }
  #command-view .contract-offer-heading > div { min-width: 0; }
  #command-view .contract-offer-heading h3 { font-size: 19px; }
  #command-view .contract-offer-footer > button { width: 100%; justify-content: center; }
  #command-view .command-rank-current, #command-view .command-rank-paths { grid-template-columns: minmax(0, 1fr); }
  #command-view .command-rank-current > section { display: block; }
  #command-view .command-rank-current svg { margin-bottom: 10px; }
  #command-view .command-rank-current p { margin-top: 9px; }
  #command-view :is(.decoration-intro, .decoration-placement, .decoration-inventory, .decoration-catalog-panel, .decoration-growth-panel, .decoration-history-panel) { padding: 18px; }
  #command-view .decoration-summary > div { padding: 14px; }
  #command-view .decoration-summary strong { font-size: 25px; }
  #command-view .decoration-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #command-view .decoration-summary > div > span { font-size: 11px; }
  #command-view .decoration-originals > article { grid-template-columns: 42px minmax(0, 1fr); }
  #command-view .decoration-originals button, #command-view .decoration-originals article > small { grid-column: 2; justify-self: start; }
  #command-view .shipment-history-row .command-rewards { padding-left: 0; }
}
