/* Noir foregrounds follow the existing surface, including nested light/dark panels.
   Keep these separate from palette tokens used by backgrounds and decorations. */
html:root[data-theme="noir"]{--noir-ink:#f4f3f0;--noir-muted:#cbcaca}
html:root[data-theme="noir"] body :is(.card,dialog,.topbar,.channel-results,.composer-block,.composer-actions,.tabbar,.plan-tile,.emoji-picker,.mode-panel,.log-details,.warning){--noir-ink:#f4f3f0;--noir-muted:#cbcaca;color:var(--noir-ink)}
html:root[data-theme="noir"] body :is(.card:nth-child(2n),.metric-grid,.feed,.list-plain,.table-wrap,.mock-notice){--noir-ink:#171919;--noir-muted:#4a5050;color:var(--noir-ink)}
html:root[data-theme="noir"] body :is(.preview-card,.discord-embed){--noir-ink:#f4f3f0;--noir-muted:#bec5d0;color:var(--noir-ink)}
html:root[data-theme="noir"] body :is(h1,h2,h3,h4,p,label,legend,.card-title,.big-status,.value,.toggle-row,.checkbox-row,.section-label,.mini-label,.state-good,.state-warn,.state-bad){color:var(--noir-ink)}
html:root[data-theme="noir"] body :is(.muted,.micro,.hint,.empty,.subtext,.live-indicator){color:var(--noir-muted)}
html:root[data-theme="noir"] body .field label,
html:root[data-theme="noir"] body .metric .value,
html:root[data-theme="noir"] body .block-head strong,
html:root[data-theme="noir"] body .scope-group legend{color:var(--noir-ink)}
html:root[data-theme="noir"] body .item-card p,
html:root[data-theme="noir"] body dialog p{color:var(--noir-muted)}
html:root[data-theme="noir"] body .preview-card p{color:var(--noir-ink)}
html:root[data-theme="noir"] body .table th{--noir-ink:#f4f3f0;--noir-muted:#cbcaca;color:var(--noir-ink)}
html:root[data-theme="noir"] body .table td{color:var(--noir-ink)}
html:root[data-theme="noir"] body .table td .micro{color:var(--noir-muted)}
html:root[data-theme="noir"] body .topbar :is(.breadcrumb,.breadcrumb strong){color:var(--noir-ink)}
html:root[data-theme="noir"] body .topbar .breadcrumb span{color:var(--noir-muted)}
html:root[data-theme="noir"] body a{color:var(--noir-ink)}
/* Controls with their own dark fill must not inherit a pale panel's ink. */
html:root[data-theme="noir"] body :is(.icon-btn,.persona-avatar,.month-day-choice){color:#f4f3f0}
html:root[data-theme="noir"] body .emoji-choice{color:#f4f3f0}
html:root[data-theme="noir"] body .emoji-choice:hover,
html:root[data-theme="noir"] body .emoji-choice[aria-pressed="true"]{color:#171919}
html:root[data-theme="noir"] body .emoji-selected #emoji-preview{color:#f4f3f0}
html:root[data-theme="noir"] body .channel-option{color:#f4f3f0}
html:root[data-theme="noir"] body .channel-option small{color:#cbcaca}
html:root[data-theme="noir"] body .channel-option:hover{color:#171919}
html:root[data-theme="noir"] body .channel-option:hover small{color:#4a5050}
html:root[data-theme="noir"] body .attachment-chip{color:#f4f3f0}

html:root[data-theme="noir"] body .btn.ghost{color:var(--noir-ink)}
/* Noir's material background shorthand removed the supplied badge image. */
html:root[data-theme="noir"] .top-avatar{background-image:url("./discord-logo.png");background-position:center;background-size:60px 60px;background-repeat:no-repeat}
