/* v306: connected stock disclosures, actionable bank colors, and aligned growth rails. */
@scope (body[data-flow-surface-release="306"]) {
  :scope #stock-sellall-source {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: none !important;
    gap: 10px !important;
    margin-bottom: -1px !important;
    padding-block: 10px !important;
    border-radius: 8px 8px 0 0 !important;
  }

  :scope #stock-sellall-source > div { grid-area: auto !important; }

  :scope #stock-source-sellall {
    width: auto !important;
    min-width: 104px;
  }

  :scope #panel-stocks.active { gap: 0 !important; }

  :scope .stock-portfolio-disclosure {
    margin-bottom: -1px;
    border-radius: 0;
  }

  :scope #panel-stocks #market-news-feed {
    margin: 0 0 12px !important;
    border-radius: 0 0 8px 8px !important;
  }

  :scope #panel-stocks:has(#market-news-feed.hidden) .stock-portfolio-disclosure {
    margin-bottom: 12px;
    border-radius: 0 0 8px 8px;
  }

  :scope #panel-stocks:has(.stock-portfolio-disclosure.hidden) #stock-sellall-source {
    margin-bottom: 12px !important;
    border-radius: 8px !important;
  }

  :scope .market-news-title > strong {
    color: inherit;
    font: inherit;
    font-weight: 800;
    line-height: 17.5px;
  }

  :scope :is(#stock-portfolio-slot, #market-news-toggle) .market-news-title {
    display: block;
    min-width: 0;
  }

  :scope #market-news-summary {
    color: var(--ui-foreground-secondary) !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    line-height: 16px !important;
  }

  :scope #panel-bank .bank-balance { margin-top: 8px; }

  :scope #panel-bank .bank-btn:not(:disabled) {
    border: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  :scope #panel-bank .bank-btn.in:not(:disabled) { background: #d62a3d !important; }
  :scope #panel-bank .bank-btn.out:not(:disabled) { background: #1769e5 !important; }
  :scope .early-unlock-note { margin-inline: 0; }
}
