/* Compact menus and control groups for the workspace tabs. */
body:is(.eden-dashboard:not(.wh-mode), .fitting-page, .account-page, .eden-changelog):has(.eden-workspace) {
  --shell-edge: color-mix(in srgb, var(--eden-line) 62%, var(--eden-panel));
  --shell-title: color-mix(in srgb, var(--eden-accent) 8%, var(--eden-panel));
  --shell-gap: 12px;
}

.eden-command {
  border: 1px solid var(--shell-edge);
  border-radius: var(--eden-radius);
  background: var(--eden-panel);
  color: var(--eden-text);
  box-shadow: 0 5px 18px #0003;
}

/* Industry and Market put the current view and its controls on one strip. */
.eden-dashboard:not(.wh-mode) > .workspace-bar {
  padding-block: 8px;
  background: var(--eden-panel);
  border-color: var(--shell-edge);
}
.industry-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: center;
  gap: 8px 18px;
  padding: 10px 12px;
  margin-bottom: var(--shell-gap);
}
.industry-command .intro {
  grid-area: 1 / 1;
  gap: 8px 12px;
  flex-wrap: wrap;
  align-items: center;
}
.industry-command .industry-mode-banner {
  grid-area: 1 / 2;
  gap: 8px 12px;
  padding: 8px;
  border-color: var(--shell-edge);
}
.industry-command .industry-mode-note {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--shell-edge);
}
.market-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 10px 12px;
  margin-bottom: var(--shell-gap);
}
.market-command :is(.intro, .mb-terminal-heading) {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.eden-command :is(.intro, .intro h2, .intro p, .industry-mode-banner, .industry-mode-note, .mb-terminal-heading, .mb-view-switch) {
  margin: 0;
}
.eden-command :is(.intro h2, .mb-terminal-heading h2) {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.25;
}
.market-command .intro p { color: var(--eden-muted); font-size: 12px; }

.eden-workspace .industry-workflow {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--shell-edge);
  border-radius: var(--eden-radius);
  background: var(--eden-panel);
}
/* Fitting actions, account shortcuts and release publishing controls. */
.fitting-page .fit-nav { gap: 6px; padding: 6px; margin-bottom: var(--shell-gap); }
.fitting-page .eden-toolstrip,
.eden-changelog main > .post-actions {
  padding: 6px;
  border: 1px solid var(--shell-edge);
  border-radius: 8px;
  background: var(--shell-title);
}
.account-page .account-section-links {
  gap: 6px;
  padding: 6px;
  margin: var(--shell-gap) 0;
}

/* Give related shortcuts a consistent size and spacing. */
.eden-workspace :is(.fit-nav, .account-section-links, .industry-workflow) a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--eden-line);
  border-radius: 7px;
  background: var(--eden-bg);
  color: var(--eden-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.eden-workspace :is(.fit-nav, .account-section-links, .industry-workflow) a:hover {
  border-color: var(--eden-accent);
  background: var(--shell-title);
}

@media (max-width: 700px) {
  .industry-command { grid-template-columns: minmax(0, 1fr); }
  .industry-command :is(.intro, .industry-mode-banner) { grid-area: auto; }
  .industry-command .intro { grid-row: 1; }
  .market-command .mb-view-switch { flex-basis: 100%; }
  .eden-workspace :is(.fit-nav, .account-section-links, .industry-workflow) a { min-height: 44px; }
}
