/* Desktop workbench: choose an asset, read its chart, then inspect holdings/news. */
@media (min-width: 701px) {
  :root { --workbench-header: 58px; --workbench-status: 28px; }
  html { scroll-padding-top: 0; }
  body { height: 100vh; height: 100dvh; padding: 0; overflow: hidden; background: #0c1015; }
  .topbar { height: var(--workbench-header); gap: 30px; padding: 0 20px; border-bottom: 1px solid #28313a; background: #12181f; }
  .brand { gap: 10px; }
  .brand strong { color: #e9eef5; font-size: 19px; letter-spacing: .7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-subtitle { color: #8190a2; letter-spacing: 1px; }
  .workspace-nav { gap: 0; }
  .workspace-nav :is(a, button) { position: relative; min-width: 66px; justify-content: center; padding: 0 16px; color: #9faaba; }
  .workspace-nav :is(a, button).active, .workspace-nav :is(a, button)[aria-current="page"] { color: var(--amber); background: #f0b90b05; }
  .workspace-nav :is(a, button).active::after, .workspace-nav :is(a, button)[aria-current="page"]::after { position: absolute; content: ""; bottom: 0; left: 14px; right: 14px; height: 2px; background: var(--amber); }
  #globalSymbolSearch { display: flex; align-items: center; gap: 10px; width: clamp(180px, 24vw, 380px); min-height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid #303b48; border-radius: 6px; color: #95a2b4; background: #19212b; text-align: left; font-size: 12px; }
  #globalSymbolSearch:hover { border-color: #607083; color: #e9eef5; }
  #globalSymbolSearch svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
  #globalSymbolSearch kbd { margin-left: auto; padding: 1px 5px; border-radius: 3px; color: #8997a9; background: #ffffff06; font-family: inherit; font-size: 10px; }
  .topbar-actions { flex: 0 0 auto; margin-left: 0; gap: 18px; }
  .research-only { font-size: 10px; color: #7e8b9d; }
  #toggleSystem { font-size: 11px; }
  .shell { height: calc(100vh - var(--workbench-header) - var(--workbench-status) - 20px); height: calc(100dvh - var(--workbench-header) - var(--workbench-status) - 20px); min-height: 0; margin: 10px; gap: 10px; grid-template-columns: 236px minmax(0, 1fr) 320px; grid-template-areas: "sidebar quote news" "sidebar chart news" "sidebar dock news"; grid-template-rows: 66px minmax(0, 1fr) clamp(190px, 27dvh, 260px); }
  .shell > .panel, .instrument-sidebar > .panel { border: 1px solid #28333e; border-radius: 6px; background: #141b23; }
  .instrument-sidebar { grid-area: sidebar; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
  .instrument-sidebar .watchlist { flex: 1 1 0; min-height: 0; }
  .instrument-sidebar .watchlist .panel-heading { min-height: 38px; padding: 0 12px; }
  .watchlist .panel-heading h2 { font-size: 12px; }
  .watchlist-sort { max-width: 88px; padding-block: 2px; background: transparent; border-color: transparent; font-size: 10px; }
  .watchlist-modes { display: flex; min-height: 44px; border-bottom: 1px solid #28333e; padding: 0 12px; }
  .watchlist-modes button { position: relative; flex: 1; border: 0; background: transparent; color: #8c9aac; font-size: 13px; }
  .watchlist-modes button.active, .watchlist-modes button[aria-pressed="true"] { color: var(--amber); }
  .watchlist-modes button.active::after, .watchlist-modes button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; left: 8px; right: 8px; height: 2px; background: var(--amber); }
  .watchlist-search { min-height: 36px; margin: 10px 10px 4px; padding: 7px 9px; border-color: #303b48; border-radius: 5px; background: #19212b; }
  .watchlist-search input { font-size: 11px; }
  .watchlist .market-filters { margin: 0 12px; gap: 13px; min-height: 29px; }
  .watchlist .market-filters button { font-size: 10px; }
  .watchlist-columns, .watchlist-item { grid-template-columns: minmax(0, 1fr) 65px 60px; padding-left: 12px; padding-right: 12px; }
  .watchlist-columns { padding-top: 9px; padding-bottom: 7px; font-size: 10px; }
  .watchlist-item { min-height: 52px; padding-block: 8px; border-bottom: 1px solid #222c36; }
  .watchlist-symbol strong { font-size: 13px; font-weight: 550; letter-spacing: .1px; }
  .watchlist-symbol small { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; color: #8694a7; font-size: 10px; }
  .watchlist-last, .watchlist-change { font-size: 11px; }
  .watchlist-item.selected { background: #f0b90b0b; }
  .watchlist-item.selected::before { top: 0; bottom: 0; width: 3px; }
  .watchlist-note { padding: 7px 12px; font-size: 9px; }
  #accountSidebar { flex: 0 0 auto; min-height: 126px; max-height: 240px; overflow: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: #394858 transparent; }
  #accountSidebar > header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
  #accountSidebar h2 { font-size: 12px; }
  #accountSidebar :is(p, small) { color: #8998aa; font-size: 10px; line-height: 1.7; }
  #accountSidebar .account-login { min-height: 32px; margin-top: 8px; padding: 4px 10px; font-size: 11px; border-radius: 5px; }
  .account-sidebar-summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 6px; margin: 8px 0 12px; }
  .account-sidebar-summary > span { color: #8c9aac; font-size: 10px; }
  .account-sidebar-summary strong { color: #e9eef5; font-weight: 550; font-size: 18px; }
  .account-sidebar-summary small { font-size: 9px; }
  .account-sidebar-allocation { display: grid; gap: 5px; color: #a9b6c6; font-size: 10px; }
  .account-sidebar-allocation > div { display: flex; justify-content: space-between; gap: 8px; }
  .account-sidebar-allocation progress { width: 100%; height: 7px; accent-color: var(--amber); }
  .account-sidebar-bar { display: flex; overflow: hidden; height: 7px; border-radius: 3px; background: #647386; }
  .account-sidebar-bar > span { display: block; height: 100%; background: var(--amber); }
  .account-sidebar-action { display: inline-flex; margin-top: 10px; color: #82b7df; font-size: 10px; }
  #accountSidebar .account-summary { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; border: 0; }
  #accountSidebar .account-summary > strong { font-size: 21px; }
  #accountSidebar .account-summary > small { margin-left: 0; font-size: 9px; }
  #accountSidebar .account-empty, #accountSidebar .account-cost-note { padding: 0; }
  .account-cash-summary { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #28333e; color: #8e9caf; font-size: 10px; }
  .account-cash-summary strong { color: #d0d9e5; font-size: 12px; font-weight: 400; }
  .quote-strip { gap: 16px; padding: 8px 16px; }
  .market-identity { padding-right: 0; border: 0; }
  #marketTitle { font-size: 20px; letter-spacing: .1px; }
  .identity-detail { margin-top: 2px; }
  #selectedCompany { max-width: 126px; font-size: 10px; }
  .quote-strip #openSymbolPicker { display: none; }
  .quote-main { gap: 1px; }
  #selectedPrice { font-size: 24px; font-weight: 600; }
  .quote-change { font-size: 10px; }
  .quote-stat { display: none !important; }
  .quote-clock { margin-left: auto; font-size: 9px; }
  .chart-heading { min-height: 30px; height: 30px; padding: 0 12px; }
  .chart-heading h2 { font-size: 11px; color: #a9b6c6; font-weight: 400; }
  .chart-heading-title { gap: 16px; }
  .chart-heading-title h2::after { display: none; }
  .chart-heading-title > span, .chart-data-status { font-size: 9px; }
  .timeframe-toolbar { min-height: 34px; padding: 2px 10px; }
  .timeframe-label { display: none; }
  .segmented button { padding: 5px 11px; font-size: 11px; }
  .segmented button.active { background: #f0b90b14; }
  .chart-study-controls { min-height: 28px; gap: 12px; padding: 0 12px 3px; }
  .chart-study-controls select { max-width: 145px; padding-block: 2px; font-size: 10px; }
  .chart-study-controls > span { display: none; }
  .state-strip { min-height: 20px; padding: 0 12px 4px; gap: 8px; }
  .chart-shell { min-height: 150px; background: #141b23; }
  .chart-empty { background: #141b23; }
  .chart-legend, .chart-indicator-legend, .chart-study-legend { background: #141b23e8; }
  .chart-news-actions { display: none; }
  .chart-range-toolbar { min-height: 26px; gap: 8px; }
  .chart-range-buttons { gap: 4px; }
  .chart-range-buttons button { padding: 3px 8px; }
  .chart-range-change { min-height: 20px; padding-block: 1px 3px; font-size: 9px; }
  .chart-bottom-bar { min-height: 24px; font-size: 9px; }
  .chart-help { font-size: 9px; }
  .chart-caption { margin: 1px 12px 4px; font-size: 8px; }
  .news-panel .panel-heading { min-height: 48px; padding: 0 14px; }
  .news-panel .panel-heading h2 { color: #e9eef5; font-size: 16px; font-weight: 550; }
  .news-panel .legend { font-size: 10px; color: #8e9caf; }
  .news-filters { min-height: 36px; gap: 6px; margin: 0 12px; border: 0; }
  .news-filters button { flex: 1; padding: 6px 8px; border: 1px solid #303c49; border-radius: 5px; background: #1b2530; font-size: 11px; }
  .news-filters button.active { color: #181a20; border-color: var(--amber); background: var(--amber); }
  .news-filters button.active::after { display: none; }
  .news-note { padding: 8px 14px 10px; color: #8c9aac; font-size: 10px; border-bottom: 1px solid #28333e; }
  .recent-news-card { padding: 14px; border-bottom: 1px solid #28333e; }
  .recent-news-meta { gap: 3px 8px; margin-bottom: 6px; font-size: 10px; line-height: 1.6; }
  .recent-news-meta time { flex-basis: auto; }
  .recent-news-meta span { max-width: 160px; color: #9aaabe; }
  .recent-news-card > strong { font-size: 13px; font-weight: 550; line-height: 1.65; }
  .recent-news-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .news-symbol-tag, .news-direction-tag { display: inline-flex; max-width: 100%; padding: 2px 6px; border: 1px solid #3a536e; border-radius: 4px; color: #9ebcda; background: #1b2b3b; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
  .news-direction-tag { color: #bbb3a0; border-color: #4a463a; background: #302b20; }
  .news-headline { min-height: 26px; }
  .recent-news-summary { font-size: 11px; color: #93a1b3; line-height: 1.7; }
  .news-evidence { margin-top: 9px; }
  .news-evidence summary { color: #80b5df; padding-top: 0; font-size: 10px; }
  .news-more { min-height: 36px; border-top: 1px solid #28333e; color: #80b5df; }
  .dock-tabs { min-height: 42px; gap: 22px; padding: 0 14px; }
  .dock-tabs button { font-size: 12px; }
  .dock-tabs button.active { color: var(--amber); }
  .workspace-changes { padding: 4px 14px; font-size: 9px; }
  .signal-columns { padding: 0; }
  .signal-columns > [role="tabpanel"] { padding: 10px 14px; }
  .signal-columns #contextPane { padding: 0; }
  .account-holdings { margin: 0; padding: 0; border: 0; border-radius: 0; }
  .account-holdings > header { min-height: 42px; margin: 0; padding: 7px 14px; align-items: center; border-bottom: 1px solid #28333e; }
  .account-holdings h3 { font-size: 12px; }
  .account-holdings h3 span { font-size: 10px; }
  #accountHoldingsStatus { font-size: 9px; color: #8c9aac; }
  #refreshAccountHoldings { min-height: 28px; padding: 3px 9px; font-size: 10px; border-radius: 4px; }
  .account-privacy-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #9aaabe; font-size: 11px; }
  .account-privacy-toggle:hover { color: #e9eef5; border-color: #303c49; }
  .account-privacy-toggle svg { width: 16px; height: 16px; }
  .account-inline-summary, #toggleAccountPrivacyMobile { display: none; }
  .account-header-actions { display: flex; align-items: center; gap: 6px; }
  .account-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 9px 14px; border-bottom: 1px solid #28333e; }
  .account-summary > strong { margin: 0; font-size: 17px; }
  .account-summary > small { margin-left: auto; font-size: 9px; }
  .account-summary > span { font-size: 10px; }
  .account-table-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #394858 transparent; }
  .account-table { width: 100%; min-width: 590px; border-collapse: collapse; text-align: right; font-size: 11px; }
  .account-table th { padding: 7px 10px; color: #8e9caf; font-size: 10px; font-weight: 400; white-space: nowrap; }
  .account-table thead th { position: sticky; top: 0; z-index: 1; background: #141b23; }
  .account-table tbody th { padding-block: 8px; border-top: 1px solid #25313c; color: #e9eef5; }
  .account-table td { padding: 8px 10px; border-top: 1px solid #25313c; white-space: nowrap; }
  .account-table :is(th, td):first-child { text-align: left; padding-left: 14px; }
  .account-table :is(th, td):last-child { padding-right: 14px; }
  .account-table tbody tr:hover { background: #f0b90b07; }
  .account-table tbody tr.is-active { background: #f0b90b0b; }
  .account-table tbody tr.is-active > :first-child { box-shadow: inset 3px 0 var(--amber); }
  .account-table button[data-account-symbol] { padding: 0; border: 0; background: transparent; color: #e9eef5; font-size: 12px; font-weight: 550; text-align: left; }
  .account-table button[data-account-symbol]:hover { color: var(--amber); }
  .account-asset-note { display: block; margin-top: 2px; color: #8e9caf; font-size: 9px; font-weight: 400; }
  .account-table .positive { color: var(--green); }
  .account-table .negative { color: var(--red); }
  .account-cost-note, .account-empty { margin: 0; padding: 10px 14px; font-size: 10px; }
  .account-table .account-cost-note { display: block; max-width: 150px; padding: 2px 0 0; font-size: 8px; white-space: normal; }
  #accountHoldingsBody > .account-login { margin: 0 14px 12px; min-height: 34px; border-radius: 5px; }
  .interaction-body { padding: 18px 14px; gap: 24px; border-top: 1px solid #28333e; }
  #signalsPane .decision-panel { display: block; margin-bottom: 12px; border: 1px solid #28333e; border-radius: 5px; background: #19212b; }
  #signalsPane .decision-panel .panel-heading { min-height: 34px; padding: 0 12px; }
  #signalsPane .decision-focus { padding: 12px; overflow: visible; }
  #signalsPane .decision-footnote { padding: 7px 12px; }
  .signal-table-head, .setup-card { grid-template-columns: 70px minmax(0, 1fr) 116px 28px; gap: 8px; }
  .signal-table-head { top: -10px; background: #141b23; }
  .graph-desktop { grid-template-columns: minmax(0, 1.5fr) 12px minmax(64px, .6fr) 12px minmax(130px, 1fr); gap: 8px; }
  .graph-inputs { grid-template-columns: 1fr; }
  .terminal-footer { display: none; }
  .terminal-statusbar { min-height: var(--workbench-status); height: var(--workbench-status); padding: 4px 18px; background: #12181f; border-color: #28313a; font-size: 9px; }
  .shell.chart-focused { grid-template-columns: minmax(0, 1fr); grid-template-areas: "quote" "chart" "dock"; grid-template-rows: 66px minmax(0, 1fr) clamp(190px, 27dvh, 260px); }
  .chart-focused .instrument-sidebar { display: none; }
  .chart-focused #signalsPane .decision-panel { display: block; }
  .ontology-details:not([open]) { display: none; }
  .ontology-details[open], .signal-replay:not([hidden]) { position: fixed; z-index: 35; inset: calc(var(--workbench-header) + 12px) 12px calc(var(--workbench-status) + 12px); overflow: auto; padding: 0; border: 1px solid #425264; border-radius: 8px; background: #141b23; box-shadow: 0 0 0 100vmax #070b11bb, 0 20px 60px #0009; }
  .ontology-details[open] > .detail-summary, .signal-replay > .panel-heading { position: sticky; top: 0; z-index: 2; background: #19212b; }
}

@media (min-width: 1450px) {
  .shell { grid-template-columns: 268px minmax(0, 1fr) 340px; }
  .watchlist-columns, .watchlist-item { grid-template-columns: minmax(0, 1fr) 76px 64px; }
  .watchlist-symbol small { max-width: 110px; }
}
@media (min-width: 1750px) {
  .shell { grid-template-columns: 288px minmax(0, 1fr) 380px; }
  .recent-news-card { padding: 16px 18px; }
  .recent-news-card > strong { font-size: 14px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .topbar { padding: 0 12px; gap: 16px; }
  .brand-subtitle, .research-only { display: none; }
  .workspace-nav :is(a, button) { min-width: 52px; padding: 0 10px; font-size: 12px; }
  #globalSymbolSearch { width: 180px; min-width: 135px; }
  #globalSymbolSearch kbd { display: none; }
  .topbar-actions { gap: 10px; }
  .shell { margin: 8px; gap: 8px; height: calc(100dvh - var(--workbench-header) - var(--workbench-status) - 16px); grid-template-columns: 174px minmax(0, 1fr) 248px; }
  .watchlist-columns, .watchlist-item { grid-template-columns: minmax(0, 1fr) 48px 49px; padding-left: 9px; padding-right: 9px; }
  .watchlist-symbol strong { font-size: 11px; }
  .watchlist-symbol small { max-width: 57px; font-size: 9px; }
  .watchlist-last, .watchlist-change { font-size: 10px; }
  .watchlist .panel-heading h2 { font-size: 11px; }
  .watchlist-sort { max-width: 74px; font-size: 9px; }
  .watchlist .market-filters { gap: 8px; margin-inline: 9px; }
  .watchlist .market-filters button { font-size: 9px; }
  .quote-strip { padding: 6px 10px; gap: 10px; }
  #selectedPrice { font-size: 21px; }
  #selectedCompany { max-width: 80px; }
  .quote-clock { max-width: 90px; font-size: 8px; }
  .chart-heading-title > span { display: none; }
  .segmented button { padding-inline: 7px; }
  .chart-study-controls { gap: 8px; padding-inline: 10px; }
  .chart-study-controls label { font-size: 9px; gap: 4px; }
  .chart-study-controls select { max-width: 106px; font-size: 9px; }
  .chart-range-buttons { gap: 0; }
  .chart-range-buttons button { padding-inline: 6px; font-size: 9px; }
  .chart-caption > span { display: none; }
  .dock-tabs { gap: 15px; overflow-x: auto; scrollbar-width: none; }
  .dock-tabs button { font-size: 11px; }
  .news-filters { margin-inline: 9px; gap: 4px; }
  .news-filters button { padding-inline: 5px; font-size: 10px; }
  .recent-news-card { padding: 12px; }
  .recent-news-card > strong { font-size: 12px; }
  .recent-news-meta { font-size: 9px; }
  .signal-table-head, .setup-card { grid-template-columns: 52px minmax(0, 1fr) 86px 16px; gap: 5px; padding-inline: 0; }
  .setup-card-status { font-size: 10px; }
  .graph-desktop { grid-template-columns: minmax(0, 1fr); }
  .graph-arrow { display: none; }
}
@media (min-width: 701px) and (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "quote news" "chart news" "dock news"; gap: 6px; }
  .instrument-sidebar { display: none; }
  .topbar { gap: 12px; }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 25px; height: 25px; }
  #globalSymbolSearch { width: 135px; min-width: 110px; font-size: 10px; gap: 6px; }
  .workspace-nav :is(a, button) { min-width: 42px; padding-inline: 7px; }
  .topbar-actions { gap: 0; }
  #toggleSystem { font-size: 10px; }
  .watchlist-columns, .watchlist-item { grid-template-columns: minmax(0, 1fr) 44px 43px; padding-inline: 7px; }
  .watchlist .panel-heading { gap: 4px; }
  .watchlist .panel-heading h2 { font-size: 10px; }
  .watchlist-search { margin-inline: 7px; }
  .watchlist-sort { max-width: 66px; }
  .quote-clock { display: none; }
  .quote-strip { gap: 8px; }
  #marketTitle { font-size: 17px; }
  #selectedPrice { font-size: 19px; }
  .instrument-tag { font-size: 8px; }
  .chart-study-controls select { max-width: 88px; }
  .chart-heading { padding-inline: 8px; }
  .chart-data-status { font-size: 8px; }
  .chart-tools { gap: 0; }
  .chart-tool { width: 24px; height: 24px; }
  .timeframe-toolbar { padding-inline: 5px; }
  .segmented button { padding-inline: 5px; font-size: 10px; }
  .chart-range-toolbar > span { display: none; }
  .chart-range-buttons button { padding-inline: 5px; }
  .chart-help > summary { font-size: 8px; }
  .news-panel .panel-heading { padding-inline: 10px; }
  .news-panel .panel-heading h2 { font-size: 14px; }
  .news-panel .legend { font-size: 9px; }
  .news-filters button { font-size: 9px; padding-inline: 3px; }
  .news-note { padding-inline: 10px; font-size: 9px; }
}
@media (min-width: 701px) and (max-height: 900px) {
  .shell, .shell.chart-focused { grid-template-rows: 58px minmax(0, 1fr) clamp(170px, 22dvh, 200px); }
  .chart-heading { height: 24px; min-height: 24px; }
  .timeframe-toolbar { min-height: 30px; }
  .chart-study-controls { min-height: 24px; }
  .state-strip { display: none; }
  .chart-range-toolbar { min-height: 22px; }
  .chart-range-change { min-height: 17px; padding-bottom: 1px; }
  .chart-bottom-bar { min-height: 22px; }
  .chart-caption { display: none; }
  #accountSidebar { max-height: 190px; padding-block: 10px; }
  .watchlist-item { min-height: 46px; padding-block: 5px; }
  .watchlist-modes { min-height: 38px; }
  .dock-tabs { min-height: 36px; }
}

/* Wide desktops have room for readable type, including a 2560px monitor. */
@media (min-width: 1101px) {
  :root {
    --workbench-small: clamp(12px, calc(10px + .15625vw), 14px);
    --workbench-body: clamp(14px, calc(12px + .15625vw), 16px);
    --workbench-title: clamp(16px, calc(14px + .15625vw), 18px);
    --chart-axis-font-size: 14px;
  }
  body { font-size: var(--workbench-body); }
  .shell { grid-template-columns: clamp(236px, 14vw, 352px) minmax(0, 1fr) clamp(320px, 19vw, 480px); }
  .shell.chart-focused { grid-template-columns: minmax(0, 1fr); }
  .brand-subtitle, .research-only, #globalSymbolSearch kbd, #toggleSystem,
  .watchlist-sort, .watchlist .market-filters button, .watchlist-columns,
  .watchlist-symbol small, .watchlist-note, #selectedCompany, .quote-change,
  .quote-clock, .instrument-tag, .chart-heading h2, .chart-heading-title > span,
  .chart-data-status, .chart-study-controls label, .chart-study-controls select,
  .chart-range-toolbar, .chart-range-change, .chart-bottom-bar, .chart-help,
  .chart-caption, .chart-legend, .chart-indicator-legend, .chart-study-legend,
  .chart-indicator-legend small, .chart-study-legend small, .state-strip .chip,
  .news-panel .legend, .news-note, .recent-news-meta, .news-symbol-tag,
  .news-direction-tag, .news-evidence summary, .workspace-changes,
  .account-holdings h3 span, #accountHoldingsStatus, #refreshAccountHoldings,
  .account-privacy-toggle, .account-summary > span, .account-summary > small,
  .account-asset-note, .account-cost-note, .account-empty, .terminal-statusbar,
  .setup-card small, .setup-card-status, .signal-table-head {
    font-size: var(--workbench-small);
  }
  #globalSymbolSearch, .workspace-nav :is(a, button), .watchlist .panel-heading h2,
  .watchlist-modes button, .watchlist-search input, .watchlist-symbol strong,
  .watchlist-last, .watchlist-change, .segmented button, .chart-range-buttons button,
  .news-filters button, .recent-news-summary, .news-more, .dock-tabs button,
  .account-holdings h3, .account-table, .account-table button[data-account-symbol],
  .setup-card strong { font-size: var(--workbench-body); }
  .news-panel .panel-heading h2, .recent-news-card > strong { font-size: var(--workbench-title); }
  .recent-news-card { padding: 18px; }
  .recent-news-meta span { max-width: 100%; }
  .news-headline { line-height: 1.65; }
  .news-filters { min-height: 40px; }
  .watchlist-item { min-height: 64px; padding-block: 10px; }
  .watchlist-columns, .watchlist-item { grid-template-columns: minmax(0, 1fr) 76px 70px; }
  .watchlist-symbol small { max-width: 100%; }
  #selectedCompany { max-width: clamp(126px, 12vw, 260px); }
  .quote-clock { line-height: 1.5; }
  #selectedQuoteTime { max-width: 240px; }
  .chart-study-controls select { max-width: 180px; }
  .chart-heading { min-height: 30px; height: auto; }
  .chart-study-controls { min-height: 30px; }
  .chart-legend-stack { right: 90px; }
  .dock-tabs { min-height: 44px; }
  .account-holdings > header { min-height: 52px; }
  .account-table { min-width: 660px; }
  .account-table th { font-size: var(--workbench-small); padding-block: 9px; }
  .account-table td { padding-block: 12px; }
  .account-table .account-cost-note { font-size: var(--workbench-small); }
  #accountSidebar { max-height: 280px; }
  #accountSidebar :is(p, small), #accountSidebar .account-summary > small,
  #accountSidebar .account-login, .account-cash-summary { font-size: var(--workbench-small); }
  .account-cash-summary strong { font-size: var(--workbench-body); }
  #accountSidebar .account-summary > strong { font-size: 26px; }
  .signal-table-head, .setup-card { grid-template-columns: 85px minmax(0, 1fr) 150px 40px; }
}
@media (min-width: 2200px) {
  :root { --chart-axis-font-size: 16px; }
}

/* The existing mobile workspace keeps its navigation and chart layout. */
@media (max-width: 700px) {
  .instrument-sidebar, #globalSymbolSearch { display: none; }
  body[data-mobile-view="mine"] #signalsPane .decision-panel { display: flex; margin: 0 0 16px; }
  .account-inline-summary { display: block; }
  .account-holdings > header { flex-wrap: wrap; gap: 8px; }
  .account-holdings > header > div:first-child { flex: 1 1 150px; min-width: 0; }
  .account-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; }
  .account-header-actions button { flex-shrink: 0; white-space: nowrap; }
  .account-cash-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11px; }
  .account-cash-summary strong { color: var(--text); font-size: 13px; font-weight: 400; }
  .account-table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .account-table-scroll::before { content: "左右滑动查看成本、收益与占比"; position: sticky; left: 0; display: block; width: fit-content; max-width: 100%; padding: 8px 0; color: var(--muted); font-size: 11px; }
  .account-table { width: 100%; min-width: 590px; border-collapse: collapse; text-align: right; font-size: 12px; }
  .account-table :is(th, td) { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .account-table th { color: var(--muted); font-size: 10px; font-weight: 400; }
  .account-table :is(th, td):first-child { text-align: left; }
  .account-table button[data-account-symbol] { min-height: 44px; border: 0; background: transparent; color: var(--text); font-weight: 550; }
  .account-asset-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
  .account-table .positive { color: var(--green); }
  .account-table .negative { color: var(--red); }
  .account-privacy-toggle { min-height: 44px; min-width: 44px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); }
}
