/* The desk keeps its forest night palette; day mode uses Merry's paper palette. */
html[data-theme="light"] {
  color-scheme: light;
  --ground: #f6f4ed;
  --panel: #fffdf7;
  --field: #f0efe6;
  --line: #d6ddcf;
  --text: #193e31;
  --muted: #607065;
  --gold: #765a26;
  --call: #267048;
  --put: #a34b3b;
}
.theme-toggle {
  min-height: 42px;
  padding: 0 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-size: 12px;
}
html[data-theme="light"] .wallet { border-color: var(--line); }
html[data-theme="light"] .wallet:hover,
html[data-theme="light"] .asset-tabs button:hover,
html[data-theme="light"] .quote-button:hover { background: #e9eee3; }
html[data-theme="light"] .status-strip { background: #e9eee3; }
html[data-theme="light"] .strip-inner,
html[data-theme="light"] .position-head { color: var(--muted); }
html[data-theme="light"] h1 i { color: #496749; }
html[data-theme="light"] .tag,
html[data-theme="light"] .small-tabs button[aria-pressed="true"] { background: #e7edde; color: var(--text); }
html[data-theme="light"] .expiry-tabs button { background: var(--field); border-color: var(--line); }
html[data-theme="light"] .expiry-tabs button[aria-pressed="true"],
html[data-theme="light"] .side-tabs button[aria-pressed="true"],
html[data-theme="light"] .side-tabs button#put-btn[aria-pressed="true"] {
  background: #21553e;
  border-color: #21553e;
  color: #fffdf4;
}
html[data-theme="light"] .quote-button[aria-pressed="true"] { background: #e6eddd; border-color: #718961; color: #254a31; }
html[data-theme="light"] .ticket { background: #f0f2e8; border-color: #cbd6c3; }
html[data-theme="light"] .side-tabs,
html[data-theme="light"] .amount-field { background: var(--panel); border-color: var(--line); }
html[data-theme="light"] .amount-presets button { background: #e2e8d9; color: var(--text); }
html[data-theme="light"] .amount-presets button.selected { border-color: #647b55; color: #26432a; }
html[data-theme="light"] .primary { background: #21553e; color: #fffdf4; }
html[data-theme="light"] .primary:hover:not(:disabled) { background: #29674c; }
html[data-theme="light"] footer .footer-brand { color: var(--text); }
html[data-theme="light"] dialog { background: var(--panel); border-color: #8c9f82; box-shadow: 0 25px 75px #15291b30; }
html[data-theme="light"] dialog p { color: var(--muted); }
html[data-theme="light"] .wallet-secondary { background: #e9eee3; border-color: var(--line); color: var(--text); }
html[data-theme="light"] .skip { background: #21553e; color: #fffdf4; }
/* Presentation-only overrides for the existing dynamically drawn payoff chart. */
html[data-theme="light"] .payoff-chart path { stroke: #73826b; }
html[data-theme="light"] .payoff-chart path[stroke-width="2"] { stroke: #765a26; }
html[data-theme="light"] .payoff-chart circle { fill: #21553e; stroke: var(--panel); }
html[data-theme="light"] .payoff-chart text { fill: var(--muted); }
@media (max-width: 760px) {
  .site-header { gap: 12px; }
  .header-end { gap: 8px; }
  .theme-toggle { min-height: 44px; padding: 0 10px; font-size: 11px; }
}
@media (max-width: 420px) {
  .site-header { height: auto; min-height: 68px; padding: 12px 20px; flex-wrap: wrap; }
  .header-end { flex-wrap: wrap; justify-content: flex-end; }
}
