/* Shared heading for the decision and research workspaces. */
:is(.app-frame main, .bt-shell, .rules-page) :is(.workspace-page-head, #rgGuidance .mg-heading) {
  --workspace-title-size: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 54px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
:is(.app-frame main, .bt-shell, .rules-page) :is(.workspace-page-head, #rgGuidance .mg-heading) > div:first-child {
  min-width: 0;
}
:is(.app-frame main, .bt-shell, .rules-page) :is(.workspace-page-head, #rgGuidance .mg-heading) > div:first-child > :is(h1,h2,h3) {
  margin: 0;
  color: var(--ink);
  font-size: var(--workspace-title-size);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}
:is(.app-frame main, .bt-shell, .rules-page) :is(.workspace-page-head, #rgGuidance .mg-heading) > div:first-child > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.app-frame .workspace-page-head .workspace-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
  margin: 0;
}
.app-frame .workspace-page-head .workspace-page-date {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: start;
  overflow-wrap: anywhere;
}
.app-frame #sectorLowWatch .workspace-page-date strong {
  display: inline;
  margin: 0 6px;
  font-size: inherit;
  font-weight: 700;
}
.app-frame #marketView .workspace-page-head .market-mode-switch { margin: 0; }
.app-frame #muyuDailyEvalPanel > .muyu-update-details { margin-inline: clamp(12px, 2vw, 20px); }
.app-frame #muyuView :is(.muyu-header-dates, .muyu-label-desktop, .muyu-force-help) { display: none; }
.app-frame #muyuView .muyu-force-control { display: contents; }
@media (width > 820px) {
  .app-frame #muyuView :is(#muyuDailyEvalStatus, .muyu-label-mobile) { display: none; }
  .app-frame #muyuView .muyu-header-dates {
    display: grid;
    gap: 2px;
    margin-right: 8px;
    font-variant-numeric: tabular-nums;
  }
  .app-frame #muyuView .muyu-header-dates strong { color: var(--ink); }
  .app-frame #muyuView .muyu-label-desktop { display: inline; }
  .app-frame #muyuView .muyu-force-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .app-frame #muyuView .muyu-force-help {
    display: inline;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }
}
.app-frame #articleView #article-reading .rd-title {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

@media (max-width: 760px) {
  :is(.app-frame main, .bt-shell, .rules-page) :is(.workspace-page-head, #rgGuidance .mg-heading) {
    --workspace-title-size: 20px;
    min-height: 0;
    gap: 8px 12px;
    margin-bottom: 10px;
  }
  .app-frame .workspace-page-head .workspace-page-actions {
    justify-content: flex-start;
  }
  .app-frame #articleView #article-reading .rd-title { font-size: 20px; }
}
@media (max-width: 350px) {
  .app-frame #articleView #article-reading .rd-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .app-frame #sectorView .workspace-page-actions {
    width: 100%;
  }
  .app-frame #sectorView #swStatus {
    flex-basis: 100%;
  }
}
