/* Stock workspace sections: compact, navigable, and genuinely loaded on demand. */
.stock-workspace { min-width: 0; }
.stock-workspace [hidden] { display: none !important; }
.stock-workspace-heading { margin-bottom: 14px; }
.stock-workspace-heading .market-badge { flex: 0 0 auto; }
.stock-workspace-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 0 17px;
  padding: 8px 11px;
  border: 1px solid var(--gside-border);
  border-radius: 10px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 15px rgba(16,32,49,.035);
}
.stock-workspace-nav__label {
  flex: 0 0 auto;
  color: var(--gside-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock-workspace-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.stock-workspace-nav__link,
.stock-workspace-nav__link:visited {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--gside-muted);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.stock-workspace-nav__link:hover { background: var(--gside-surface-subtle); color: var(--gside-text); }
.stock-workspace-nav__link[aria-current="location"] { border-color: #b9e2ed; background: #eaf6f9; color: #0c647b; }
.stock-workspace-nav__link:focus-visible,
.stock-workspace-section > summary:focus-visible { outline: 2px solid var(--gside-accent); outline-offset: 2px; }
.stock-workspace-strategy,
.stock-workspace-section { scroll-margin-top: 70px; }
.stock-workspace-strategy .intraday-band-control { margin-top: 0; }
.stock-workspace-section {
  min-width: 0;
  margin: 0 0 12px;
  border: 1px solid var(--gside-border);
  border-radius: 11px;
  background: var(--gside-surface);
}
.stock-workspace-section[open] { border-color: var(--gside-border-strong); }
.stock-workspace-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 66px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
}
.stock-workspace-section > summary::-webkit-details-marker { display: none; }
.stock-workspace-section > summary:hover { background: #fbfcfd; }
.stock-workspace-section > summary > span:first-child { display: block; min-width: 0; }
.stock-workspace-section > summary strong { display: block; font-size: 13px; font-weight: 750; line-height: 1.4; }
.stock-workspace-section > summary small { display: block; margin-top: 3px; color: var(--gside-muted); font-size: 10px; line-height: 1.4; }
.stock-workspace-section__toggle { flex: 0 0 auto; color: var(--gside-faint); font-size: 9px; font-weight: 750; white-space: nowrap; }
.stock-workspace-section__toggle::before { display: inline-block; margin-right: 6px; color: var(--gside-accent); content: "▸"; }
.stock-workspace-section[open] .stock-workspace-section__toggle::before { content: "▾"; }
.stock-workspace-section[open] > summary { border-bottom: 1px solid var(--gside-border); }
.stock-workspace-section__body { min-width: 0; padding: 15px 16px 5px; }
.stock-workspace-section__body > turbo-frame { display: block; min-width: 0; }
.stock-workspace-section__body .market-panel { margin-bottom: 12px; }
.stock-workspace-section__body .coefficient-explorer { margin-top: 0; }
.stock-workspace-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  color: var(--gside-muted);
}
.stock-workspace-placeholder > div { flex: 1 1 auto; min-width: 0; }
.stock-workspace-placeholder strong { display: block; color: var(--gside-text); font-size: 12px; }
.stock-workspace-placeholder p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; }
.stock-workspace-placeholder__pulse { flex: 0 0 auto; width: 12px; height: 12px; border: 2px solid #b9e2ed; border-top-color: var(--gside-accent); border-radius: 50%; animation: stock-workspace-spin 900ms linear infinite; }
.stock-workspace-activity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  padding: 11px 14px;
  border: 1px solid #b9e2ed;
  border-left: 3px solid var(--gside-accent);
  border-radius: 9px;
  background: #f4fbfe;
}
.stock-workspace-activity--attention { border-color: #eedcb2; border-left-color: #d97706; background: #fffaf0; }
.stock-workspace-activity__content { display: grid; gap: 4px; min-width: 0; }
.stock-workspace-activity strong { font-size: 11px; }
.stock-workspace-activity__content span { color: var(--gside-muted); font-size: 10px; }
.stock-workspace-activity__note { flex-basis: 100%; margin: 0; color: var(--gside-muted); font-size: 9px; line-height: 1.4; }
.stock-workspace-reload { margin: 3px 0 13px; text-align: right; }
@keyframes stock-workspace-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .stock-workspace-heading { margin-bottom: 11px; }
  .stock-workspace-nav { gap: 7px; padding: 7px; }
  .stock-workspace-nav__label { display: none; }
  .stock-workspace-nav__link { padding: 8px 10px; font-size: 10px; }
  .stock-workspace-section > summary { min-height: 64px; padding: 12px; }
  .stock-workspace-section__toggle { font-size: 0; }
  .stock-workspace-section__toggle::before { margin: 0; font-size: 15px; }
  .stock-workspace-section__body { padding: 12px 10px 4px; }
  .stock-workspace-placeholder { align-items: flex-start; flex-wrap: wrap; padding: 16px 8px; }
  .stock-workspace-placeholder .market-button { margin-left: 22px; }
  .stock-workspace-activity { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .stock-workspace-placeholder__pulse { animation: none; } }
