.terminal-theme-choices { border: 0; margin: 24px 0; padding: 0; }
.alerts-guide-button { width: 100%; min-height: 52px; padding: 16px; margin: 8px 0 16px; background: transparent; color: #ffb36b; border: 1px solid #ffb36b; font: 400 clamp(1rem, 3vw, 1.25rem)/1.4 var(--mono); text-align: left; cursor: pointer; }
.engagement-dialog .alerts-browser-warning { color: #ff9b91; font-size: 1rem; }
.alerts-browser-warning[hidden] { display: none; }
.alerts-browser-warning span { font-size: 1.6rem; }
.alerts-guide-dialog { width: min(600px, calc(100vw - 24px)); }
.alerts-guide-dialog h2 { color: #ffb36b; line-height: 1.2; }
.alerts-guide-steps { padding-left: 28px; }
.alerts-guide-steps li { padding: 12px 0 12px 8px; }
.alerts-guide-steps li::marker, .alerts-guide-steps strong { color: #ffb36b; font: 400 clamp(1.05rem, 3vw, 1.3rem)/1.5 var(--mono); }
.alerts-guide-steps p { margin: 8px 0 0; }
.alerts-device-guide { border-bottom: 1px solid var(--line-strong); padding: 14px 0; }
.alerts-device-guide summary { cursor: pointer; color: var(--text-hi); font: 400 1.15rem/1.6 var(--mono); min-height: 44px; }
.alerts-device-guide summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.alerts-guide-button:focus-visible { outline: 3px solid var(--text-hi); outline-offset: 3px; }
html[data-theme="light"] .alerts-guide-button, html[data-theme="light"] .alerts-guide-dialog h2, html[data-theme="light"] .alerts-guide-steps strong, html[data-theme="light"] .alerts-guide-steps li::marker { color: #974200; }
html[data-theme="light"] .alerts-guide-button { border-color: #974200; }
html[data-theme="light"] .engagement-dialog .alerts-browser-warning { color: #a1271a; }
.profile-dialog { max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; }
.profile-dialog-actions { position: sticky; bottom: -24px; padding: 16px 0; background: var(--bg-raised); z-index: 2; }
html[data-theme="light"] .profile-dialog-actions { background: var(--bg-panel); }
#enable-alerts-btn { background: #edbb3e; color: #17211b; border-color: #edbb3e; }
#enable-alerts-btn:disabled { opacity: 1; background: #c7ae6f; color: #292a24; cursor: not-allowed; }
@media (max-width: 700px) {
  .profile-dialog input[type="text"], #profile-display-name,
  .engagement-dialog input, .engagement-dialog select { font-size: 16px; }
  .profile-dialog { padding: 20px; }
  .profile-dialog-actions { bottom: -20px; }
  .profile-dialog-actions .cta { min-height: 44px; width: 100%; }
  .table-card tbody tr { padding: 12px 8px; margin-bottom: 14px; }
  .table-card td, .table-card td:nth-child(n) { padding: 9px 12px; line-height: 1.6; }
  .table-card td::before { margin-bottom: 5px; }
  .engagement-list li { padding: 14px 10px; line-height: 1.6; }
}
.terminal-theme-choices legend { margin-bottom: 10px; color: var(--text-mid); font: 400 .65rem var(--mono); }
.terminal-theme-buttons { display: flex; gap: 10px; }
.terminal-theme-buttons button { flex: 1; min-height: 44px; }
.terminal-theme-buttons button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-dim); color: var(--text-hi); }
.terminal-theme-buttons button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html[data-theme="light"] {
  color-scheme: light;
  --bg-page: #fafaf7;
  --bg-panel: #ffffff;
  --bg-inset: #f1f2ed;
  --bg-raised: #e9ece6;
  --bg-hover: #e3e7df;
  --line: rgba(25, 35, 30, .15);
  --line-strong: rgba(25, 35, 30, .30);
  --line-gold: rgba(127, 88, 0, .5);
  --line-gold-soft: rgba(127, 88, 0, .25);
  --text-hi: #17211b;
  --text: #2b362e;
  --text-mid: #4e5c52;
  --text-low: #59675d;
  --gold: #7f5800;
  --gold-hi: #704a00;
  --gold-dim: rgba(127, 88, 0, .08);
  --pos: #226344;
  --pos-dim: rgba(34, 99, 68, .08);
  --neg: #a13a28;
  --neg-dim: rgba(161, 58, 40, .08);
  scrollbar-color: #79867b var(--bg-page);
}
html[data-theme="light"] .masthead,
html[data-theme="light"] .ticker-strip,
html[data-theme="light"] .profile-dialog,
html[data-theme="light"] .engagement-dialog,
html[data-theme="light"] .future-panel { background: var(--bg-panel); }
html[data-theme="light"] #profile-display-name,
html[data-theme="light"] .alert-fields select,
html[data-theme="light"] .alert-fields input { background: var(--bg-inset); color: var(--text-hi); }
html[data-theme="light"] .dock-toggle,
html[data-theme="light"] .dock-menu { background: rgba(250, 251, 247, .97); box-shadow: 0 12px 40px rgba(27, 37, 30, .12); }
html[data-theme="light"] .dock-toggle:hover,
html[data-theme="light"] .dock-toggle[aria-expanded="true"] { background: var(--bg-raised); }
html[data-theme="light"] .cta { background: #edbb3e; border-color: #ad7800; color: #17211b; }
html[data-theme="light"] .cta:hover { background: #f4cf6a; color: #17211b; }
html[data-theme="light"] .analysis-visualizer { background-color: var(--bg-panel); background-image: linear-gradient(rgba(25,35,30,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(25,35,30,.06) 1px, transparent 1px); }
/* Canvas plots are decorative simulations; dim light ink without changing data. */
html[data-theme="light"] canvas { filter: brightness(.42) saturate(1.4); }
html[data-theme="light"] .formula-orbit { background: rgba(255,255,255,.92); color: var(--text); }
