/* Shared by the application, body-mounted dialogs and the academy iframe.
   Explicit importance bridges legacy page styles, including lazy-loaded CSS.
   Keep typography decisions here rather than adding per-page font stacks. */
:root {
  --site-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
body, body *, body *::before, body *::after {
  font-family: var(--site-font) !important;
  font-weight: 400 !important;
  font-synthesis: none;
}
body { line-height: 1.5; }
body :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 500 !important;
  letter-spacing: -.025em !important;
  line-height: 1.2;
}
body :is(b, strong, th) { font-weight: 600 !important; }
body :is(button, input, select, textarea, label) {
  letter-spacing: normal !important;
}
body :is(button, [role='button']) :is(b, strong, span) {
  font-weight: inherit !important;
}
body :is(.hero-title, .hero-title span, .account-identity h1) {
  font-weight: 400 !important;
  letter-spacing: -.035em !important;
}
body :is(.section-subtitle, .hero-subtitle) { line-height: 1.65; }
body :is(.nav-link, .header-action, .lang-chip) { font-size: 12px; }
body :is(.brand-text, .design-preview-banner strong) { font-weight: 600 !important; }
body :is(.account-identity > div > span, .account-profile-data span,
  .account-profile-data-copy small, .account-stat-copy span,
  .account-limit-chip small, .account-mini-history-card time) {
  font-size: 13px;
  line-height: 1.5;
}
body :is(.account-profile-data strong, .account-limit-main strong) {
  font-size: 22px;
  font-weight: 500 !important;
  line-height: 1.3;
}
body .account-stat-copy strong {
  font-size: 30px;
  font-weight: 500 !important;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body :is(.account-quick-card strong, .account-limit-chip b,
  .account-mini-history-card strong, .theme-switch-copy strong) {
  font-weight: 500 !important;
  font-size: 14px;
  line-height: 1.4;
}
body :is(.account-panel h2, .account-placeholder-panel h2) { font-size: 26px; }
body :is(.account-kicker, .account-limit-label, .design-label) {
  font-size: 11px;
  letter-spacing: .08em;
}
body :is(td, .trading-quote-price, .calculator-result) { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  body :is(.account-profile-data strong, .account-limit-main strong) { font-size: 18px; }
  body .account-stat-copy strong { font-size: 26px; }
  body :is(.account-panel h2, .account-placeholder-panel h2) { font-size: 23px; }
  body :is(.account-profile-data-copy small, .account-limit-chip small) { font-size: 12px; }
}
