/* The default uses the desktop styles. Only explicit Small and Large override text.
   The document selector includes detached charts and dialogs mounted beside the terminal. */
html:has(#terminal[data-ui-font=small]) {
  --workspace-text-size:10px;
  --workspace-heading-size:13px;
  --workspace-quote-size:17px;
}
html:has(#terminal[data-ui-font=large]) {
  --workspace-text-size:15px;
  --workspace-heading-size:17px;
  --workspace-quote-size:23px;
}
html:has(#terminal:is([data-ui-font=small],[data-ui-font=large])) :is(
  #terminal, dialog, header, nav, label, summary, p, dt, dd, legend, li, th, td, select,
  textarea, output, input:not([type=range i],[type=checkbox i],[type=radio i],[type=color i]),
  button, span:not([aria-hidden=true],.win-icon), [role=menu], [role=menuitem], [role=tab], [role=status],
  .account-summary, .chart-context-list, .workspace-settings nav div
) {
  font-size:var(--workspace-text-size) !important;
}
html:has(#terminal:is([data-ui-font=small],[data-ui-font=large])) :is(h1,h2,h3) {
  font-size:var(--workspace-heading-size) !important;
}
html:has(#terminal:is([data-ui-font=small],[data-ui-font=large])) :is(#sell-price,#buy-price) {
  font-size:var(--workspace-quote-size) !important;
}
