/* Foregrounds follow Moonlit's existing porcelain cards and navy panels.
   These tokens affect text only; backgrounds, shapes and theme previews stay intact. */
html:root[data-theme="moonlit"]{--moonlit-ink:#f4f2fa;--moonlit-muted:#c3cde0}
html:root[data-theme="moonlit"] body :is(.card,.metric-grid,.feed,.list-plain,.table-wrap,.mock-notice){--moonlit-ink:#1b3050;--moonlit-muted:#4e6685;color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body :is(dialog,.topbar,.channel-results,.composer-block,.composer-actions,.tabbar,.plan-tile,.emoji-picker,.mode-panel,.log-details,.warning){--moonlit-ink:#f4f2fa;--moonlit-muted:#c3cde0;color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body :is(.preview-card,.discord-embed){--moonlit-ink:#dbdee4;--moonlit-muted:#bec5d0;color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body :is(h2,h3,h4,p,label,legend,.card-title,.big-status,.value,.poll-stat,.toggle-row,.checkbox-row,.section-label,.mini-label,.state-good,.state-warn,.state-bad){color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body :is(.muted,.micro,.hint,.empty,.subtext,.live-indicator){color:var(--moonlit-muted)}
html:root[data-theme="moonlit"] body .field label,
html:root[data-theme="moonlit"] body .metric .value,
html:root[data-theme="moonlit"] body .block-head strong,
html:root[data-theme="moonlit"] body .scope-group legend{color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .item-card p,
html:root[data-theme="moonlit"] body dialog p{color:var(--moonlit-muted)}
html:root[data-theme="moonlit"] body .preview-card p{color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .table th{--moonlit-ink:#f4f2fa;--moonlit-muted:#c3cde0;color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .table td{color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .table td .micro{color:var(--moonlit-muted)}
html:root[data-theme="moonlit"] body .topbar :is(.breadcrumb,.breadcrumb strong){color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .topbar .breadcrumb span{color:var(--moonlit-muted)}
html:root[data-theme="moonlit"] body a{color:var(--moonlit-ink)}
html:root[data-theme="moonlit"] body .btn.ghost{color:var(--moonlit-ink)}
/* These controls keep their own navy fill, including inside pale cards. */
html:root[data-theme="moonlit"] body :is(.icon-btn,.persona-avatar,.month-day-choice,.emoji-choice,.attachment-chip){color:#f4f2fa}
html:root[data-theme="moonlit"] body .emoji-choice:hover,
html:root[data-theme="moonlit"] body .emoji-choice[aria-pressed="true"]{color:#18294a}
html:root[data-theme="moonlit"] body .emoji-selected #emoji-preview{color:#f4f2fa}
html:root[data-theme="moonlit"] body .channel-option{color:#f4f2fa}
html:root[data-theme="moonlit"] body .channel-option small{color:#c3cde0}
