/* Presentation only. Keep light overrides screen-scoped so print is stable. */
:root{color-scheme:dark}
.theme-controls{display:flex;gap:4px;align-items:center;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--card2);max-width:100%}
.theme-controls button{min-width:64px;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font-weight:700;cursor:pointer}
.theme-controls button[aria-pressed="true"]{border-color:var(--green);background:var(--card);box-shadow:inset 0 0 0 1px var(--green)}
.theme-controls button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media screen{
  html[data-theme="light"]{color-scheme:light;--green:#087344;--green2:#086640;--purple:#65408a;--purple-l:#75478e;--bg:#f4f6fa;--card:#fff;--card2:#edf1f7;--line:#8592a3;--muted:#526071;--text:#17213a;--k-fact:#1656a1;--k-calc:#12647a;--k-assumption:#825600;--k-rule:#087344;--k-judgement:#6b3c91;--r-green:#087344;--r-amber:#825600;--r-red:#b42c3c;--r-black:#566174;--shadow:0 10px 30px rgba(24,35,57,.08)}
  html[data-theme="light"] .card{background:var(--card)}
  html[data-theme="light"] :is(details.sec,section.out,.summary-group){background:#fff}
  html[data-theme="light"] :is(.risk-group,.q,.overview-stat,.priority-issue,.manual-risk-view){background:#f4f6fa}
  html[data-theme="light"] :is(.review-overview,.discussion-summary){background:#f1f7f4}
  html[data-theme="light"] .summary-next{background:#e8f4ed}
  html[data-theme="light"] .tiers{background:#e2e7ef}
  html[data-theme="light"] :is(.control,.preset-choice,pre.email){background:#fff;color:var(--text)}
  html[data-theme="light"] :is(.control,.preset-choice)::placeholder{color:#626e7c;opacity:1}
  html[data-theme="light"] .btn-secondary{background:#edf1f7;border-color:var(--line);color:var(--text)}
  html[data-theme="light"] :is(.btn-primary,.tier-btn[aria-selected="true"],.sugg-chip){color:#fff}
  html[data-theme="light"] .chip{color:#603d7b;background:#f0e9f8;border-color:#9775ad}
  html[data-theme="light"] :is(.boundary,.boundary strong,.preset-choice[aria-pressed="true"],.selected-risk-chip,.group-count,.lint.ok,.trig small.sugg-why,.dstatus.resubmit,.review-status.supports){color:#075f39}
  html[data-theme="light"] .boundary{background:#eef8f2;border-color:#76a78d}
  html[data-theme="light"] :is(.field-error,.prio.Critical,.lint.bad,.review-badge.stale,.review-badge.conflict,.review-error,.dstatus.pause,.review-status.weak){color:#a52335}
  html[data-theme="light"] :is(.preset-review-note,.prio.Important,.notice.warn,.review-badge,.review-draft-flag,.dstatus.rework,.review-status.reply_only,.review-status.outstanding,[data-summary-flagged]){color:#754600}
  html[data-theme="light"] .notice.warn{background:#fff5dc;border-color:#b58634}
  html[data-theme="light"] :is(.manual-details>summary,.notice.info,.q .gated,.dstatus.banker_review,.client-wording summary,.overview-secondary summary,.manual-risk-source){color:#63377f}
  html[data-theme="light"] .notice.info{background:#f2eaf8;border-color:#a17eb7}
  html[data-theme="light"] .prio.Helpful{color:#1656a1}
  html[data-theme="light"] :is(.overview-rating.black,.review-status){color:#526071}
  html[data-theme="light"] .overview-link{color:#075f39}
  html[data-theme="light"] :is(.risk-centre,.risk-centre-small){fill:var(--text)}
  html[data-theme="light"] .risk-fill{stroke:#fff}
  html[data-theme="light"] :is(.manual-risk-donut a:focus,.manual-risk-donut a:hover) .risk-fill{stroke:#17213a}
  html[data-theme="light"] .toast{background:#e8f5ed;color:#075f39}
  html[data-theme="light"] :is(.mobile-nav,.mobile-step-actions){background:#f4f6fa}
  html[data-theme="light"] .mobile-nav button[aria-current]{background:#e3f2e9;color:#075f39}
  html[data-theme="light"] .mobile-step-bar{background:#d4dce6}
  html[data-theme="light"] :is(.trig,table.grid th,table.grid td,.rr-row,.fb-q){border-bottom-color:#b5bfcc}
  html[data-theme="light"] .watermark-inner span{color:#17213a}
  html[data-theme="light"] .watermark-inner img{content:url('/assets/brand/icon.svg')}
  /* Exact official Ledger Ring light palette; geometry, dot and TM are unchanged. */
  html[data-theme="light"] #brand svg [fill="#FAFBFC"]{fill:#111418}
  html[data-theme="light"] #brand svg [fill="#22B978"]{fill:#169B63}
  html[data-theme="light"] #brand svg [fill="#8174FF"]{fill:#6D5EF5}
}
@media print{.theme-controls{display:none!important}:root{color-scheme:light}}
