/* Foreground contexts only: retain the leather, parchment, tan and brass surfaces. */
html:root[data-theme="antique"]{
  --antique-light-ink:#422b1d;--antique-light-muted:#64452f;
  --antique-dark-ink:#fbf0dc;--antique-dark-muted:#e1cbb1;
  --antique-ink:var(--antique-dark-ink);--antique-muted:var(--antique-dark-muted);
}
html:root[data-theme="antique"] :is(.card,.metric-grid,.feed,.list-plain,.table-wrap,.mock-notice){
  --antique-ink:var(--antique-light-ink);--antique-muted:var(--antique-light-muted);
  --card-ink:var(--antique-light-ink);--card-muted:var(--antique-light-muted);
  --text:var(--antique-light-ink);--muted:var(--antique-light-muted);--accent:var(--antique-light-ink);
  --theme-paper-text:var(--antique-light-ink);--theme-paper-muted:var(--antique-light-muted);
  color:var(--antique-ink);
}
html:root[data-theme="antique"] :is(.sidebar,.topbar,.auth-panel,.toast,dialog,.composer-block,.composer-actions,.tabbar,.plan-tile,.emoji-picker,.mode-panel,.channel-results,.log-details,.warning,.persona-avatar,.attachment-chip,.preview-card,.discord-embed){
  --antique-ink:var(--antique-dark-ink);--antique-muted:var(--antique-dark-muted);
  --card-ink:var(--antique-dark-ink);--card-muted:var(--antique-dark-muted);
  --text:var(--antique-dark-ink);--muted:var(--antique-dark-muted);--accent:#f0c58e;
  color:var(--antique-ink);
}
html:root[data-theme="antique"] :is(.card,dialog) :is(h1,h2,h3,h4,label,legend,.card-title,.section-label,.mini-label,.value,.big-status,.checkbox-row,.toggle-row,.block-head strong){color:var(--antique-ink)}
html:root[data-theme="antique"] :is(.hint,.micro,.muted,.empty,.subtext,.live-indicator,.item-card p,dialog p){color:var(--antique-muted)}
html:root[data-theme="antique"] :is(.input,textarea,select,select option){color:var(--antique-light-ink)}
html:root[data-theme="antique"] :is(.input,textarea)::placeholder{color:var(--antique-light-muted)}
html:root[data-theme="antique"] .btn.ghost{background:#e8d1a4;color:#422b1d;border-color:#8c5e35}
html:root[data-theme="antique"] .btn.secondary{color:#fbf0dc}
html:root[data-theme="antique"] .btn.primary{color:#352011;border-color:#8c5e35}
html:root[data-theme="antique"] .btn.danger{color:#fff0da}
html:root[data-theme="antique"] .btn.ghost:hover:not(:disabled){background:#d9bd8c;color:#352011;border-color:#684124}
html:root[data-theme="antique"] .btn.secondary:hover:not(:disabled){color:#fbf0dc}
html:root[data-theme="antique"] .btn.primary:hover:not(:disabled){color:#352011}
html:root[data-theme="antique"] .btn.danger:hover:not(:disabled){color:#fff0da}
html:root[data-theme="antique"] :is(.btn,input,textarea,select):disabled{opacity:1;color:#64452f;background:#d9c5a2;border-color:#8c6b4a;box-shadow:none}
html:root[data-theme="antique"] :is(.btn,input,textarea,select):focus-visible{outline:2px solid var(--antique-ink);outline-offset:3px}
html:root[data-theme="antique"] .badge{color:#fbf0dc}
html:root[data-theme="antique"] .badge.good{color:#c7d3a6}
html:root[data-theme="antique"] .badge.warn{color:#f3cf98}
html:root[data-theme="antique"] .badge.bad{color:#f1b0a0}
/* Dark Discord previews inside parchment cards keep their own foreground context. */
html:root[data-theme="antique"] .poll-preview{--antique-ink:#e7e9ed;--antique-muted:#bec5d0;color:#e7e9ed}
html:root[data-theme="antique"] :is(.poll-preview,.preview-card,.discord-embed) :is(.micro,.hint,.poll-votes,.poll-preview-foot){color:#bec5d0}
html:root[data-theme="antique"] .preview-card p{color:#dbdee4}
html:root[data-theme="antique"] .table th{--antique-ink:#fbf0dc;--antique-muted:#e1cbb1;color:#fbf0dc}
/* Preserve the identity of self-contained theme selector previews. */
html:root[data-theme="antique"] .theme-choice{--antique-ink:var(--text);--antique-muted:var(--muted)}
