/* Read-only information flows as chapters; actionable selections keep their frames. */
:is(#production-view, #research-view, #development-view, #frontier-view, #network-view) {
  --workspace-rule: #4c5145;
}

/* The facility desk: readings above a working line, with the queue beside it. */
#production-view :is(.prod-panel, .prod-service, .prod-history, .prod-support-intro,
  .prod-support-history, .exchange-intro) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#production-view .prod-kpis,
#production-view .exchange-balances { gap: 0 24px; border-block: 1px solid var(--workspace-rule); }
#production-view .prod-kpis > div,
#production-view .exchange-balances > div {
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#production-view .prod-kpis strong { margin: 4px 0; }
#production-view .prod-main { gap: 32px; }
#production-view :is(.prod-heading h2, .prod-support-intro h2, .exchange-intro h2) { font-size: 23px; }
#production-view :is(.prod-staff-grid, .prod-depot-grid) { gap: 0 32px; }
#production-view :is(.prod-staff-card, .prod-depot-card) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#production-view :is(.prod-policy, .prod-benefit) {
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
}
#production-view .prod-service-item {
  border: 0;
  border-left: 2px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#production-view .prod-support-stats { background: transparent; border-inline: 0; }
#production-view .exchange-panel { box-shadow: none; }

/* Research reads as a lab notebook. Branch progression remains connected. */
#research-view :is(.research-facility, .research-projects, .research-applied, .research-history) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#research-view .research-facility h2 { font-size: 24px; }
#research-view .research-layout { gap: 32px; }
#research-view .research-projects .research-section-heading { padding-bottom: 8px; }
#research-view .research-branches { gap: 24px; }
#research-view .research-branch { box-shadow: none; }
#research-view .research-branch-heading { background: #22271f; }
#research-view .research-branch-stage { background: transparent; }
#research-view .research-sidebar { gap: 24px; }
#research-view .research-active { box-shadow: none; }
#research-view .research-active.empty {
  padding: 24px 16px;
  border-inline: 0;
  background: #1c211c;
}

/* Character growth: open dossier sections, framed equipment and exact-cost review. */
#development-view :is(.development-overview, .development-traits, .development-protocols,
  .development-library, .development-history) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#development-view .development-overview h2 { font-size: 25px; }
#development-view .development-stats { gap: 16px 24px; }
#development-view .development-stats > div { background: transparent; box-shadow: none; }
#development-view .development-trait-list { gap: 0 24px; }
#development-view .development-trait-list > article {
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
}
#development-view .development-tomes { gap: 24px; }
#development-view .development-tomes > article {
  background: transparent;
  border: 0;
  border-top: 2px solid #737b59;
  border-radius: 0;
  padding: 20px 0;
  box-shadow: none;
}
#development-view .development-tome-title > span { background: transparent; border: 0; }
#development-view .development-history-list article { background: transparent; box-shadow: none; }

/* Ruins: continuous progress track; combat, rare finds and departure stay distinct. */
#frontier-view .frontier-panel:not(.frontier-active):not(.frontier-departure):not(.frontier-chest-storage) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#frontier-view .frontier-section-heading h2 { font-size: 23px; }
#frontier-view .frontier-tier-track { gap: 0; }
#frontier-view .frontier-tier-track > li {
  border-inline: 0;
  border-bottom-width: 2px;
  border-radius: 0;
  box-shadow: none;
}
#frontier-view .frontier-tier-track > li + li { border-left: 1px solid var(--workspace-rule); }
#frontier-view :is(.frontier-rank-policy, .frontier-map-support) {
  background: transparent;
  border: 0;
  border-left: 2px solid #737b59;
  border-radius: 0;
  box-shadow: none;
}
#frontier-view .frontier-income-history article,
#frontier-view .frontier-run-history-meta { background: transparent; box-shadow: none; }

/* Starport directories and receipts: readable lists with forms still bounded. */
#network-view .network-heading {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#network-view .network-heading h2 { font-size: 25px; }
#network-view .network-panel:not(.network-unification):not(.network-boss):not(.network-arena-supply):not(.network-arena-matching):not(.network-arena-planning):not(.network-succession):not(.network-governance):not(.network-tournament-reserve) {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#network-view :is(.network-section-heading h2) { font-size: 22px; }
#network-view :is(.network-player-list, .network-guild-list, .network-directory-list,
  .network-friends-list, .network-book-list, .network-reward-list) { gap: 0; }
#network-view :is(.network-player-list > article, .network-guild-list > article,
  .network-directory-list article, .network-friends-list article,
  .network-book-list article, .network-reward-list > article) {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--workspace-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#network-view :is(.network-log, .network-guild-comms-log) { box-shadow: none; }

/* Sidebar sections belong to one auxiliary column, with their controls intact. */
.right-column > :is(.strategy-panel, .crew-panel, .policy-panel, .mission-panel, .activity-panel) {
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 700px) {
  #production-view :is(.prod-panel, .prod-service, .prod-history, .prod-support-intro,
    .prod-support-history, .exchange-intro, .prod-staff-card, .prod-depot-card),
  #research-view :is(.research-facility, .research-projects, .research-applied, .research-history),
  #development-view :is(.development-overview, .development-traits, .development-protocols,
    .development-library, .development-history),
  #frontier-view .frontier-panel:not(.frontier-active):not(.frontier-departure):not(.frontier-chest-storage),
  #network-view .network-heading,
  #network-view .network-panel:not(.network-unification):not(.network-boss):not(.network-arena-supply):not(.network-arena-matching):not(.network-arena-planning):not(.network-succession):not(.network-governance):not(.network-tournament-reserve) { padding: 20px 0; }
  #production-view :is(.prod-kpis, .exchange-balances) { column-gap: 16px; }
  #production-view .prod-main, #research-view .research-layout { gap: 24px; }
  #development-view .development-tomes { grid-template-columns: minmax(0, 1fr); }
  #frontier-view .frontier-tier-track { gap: 0; }
}
