/* Final theme layer: pair each surface with its theme foreground. */
html body,html body button,html body input,html body select,html body textarea {
 font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 letter-spacing:normal;line-height:1.45;
}
html body .panel,html body .stat-card,html body .table-wrap,html body .modal,
html body .drawer,html body .sheet,html body .notification-panel {
 background:var(--theme-surface,#190b10)!important;color:var(--theme-text,#fff7e6)!important;
 border-color:var(--border,rgba(242,202,77,.24))!important;
}
html body .panel-title,html body .panel-header h3,html body .panel-header strong,
html body .panel h2,html body .panel h3,html body .stat-value,html body .stat-label,
html body .field label,html body .modal-title,html body td,html body th,
html body .table-wrap table,html body .page-heading h2,html body .admin-game-card-copy strong {
 color:var(--theme-text,#fff7e6)!important;text-shadow:none!important;
}
html body .muted,html body .field small,html body .helper-text,html body .meta-text,
html body .panel-subtitle,html body .page-heading p,html body .admin-game-card-copy span {
 color:var(--theme-muted,#d8c9a6)!important;
}
html body input:not([type=checkbox]):not([type=radio]):not([type=color]),
html body select,html body textarea {
 background:var(--theme-surface,#190b10)!important;color:var(--theme-text,#fff7e6)!important;
 border-color:var(--border-strong,rgba(242,202,77,.46))!important;
}
html body select option {background:var(--theme-surface,#190b10);color:var(--theme-text,#fff7e6);}
html body input::placeholder,html body textarea::placeholder {color:var(--theme-muted,#d8c9a6)!important;opacity:1;}
html body .nav-button,html body .tab-button,html body .accounting-view-tab,
html body .support-admin-tab,html body .chip,html body .pill,
html body .record-tab,html body .ops-tab,html body .ops-analytics-tab,
html body .ops-period-button,html body .game-layout-preview-tab,
html body .button-secondary,html body .btn-secondary,html body [data-layout-preview-mode],
html body #view-support .button-secondary,html body .cs-modal .button-secondary {
 color:var(--theme-text,#fff7e6)!important;background:var(--theme-surface,#190b10)!important;
 -webkit-text-fill-color:currentColor!important;
 border-color:var(--border-strong,rgba(242,202,77,.46))!important;
}
html body .nav-button.active,html body .tab-button.active,html body .accounting-view-tab.active,
html body .support-admin-tab.active,html body .chip.active,html body .pill.active,
html body .record-tab.active,html body .ops-tab.active,html body .ops-analytics-tab.active,
html body .ops-period-button.active,html body .game-layout-preview-tab.active,
html body .btn-primary,html body .button-primary,html body [data-layout-preview-mode].active,
html body #view-support .button-primary,html body .cs-modal .button-primary {
 background:var(--theme-primary,#a7192d)!important;color:var(--theme-button-text,#fff)!important;
 -webkit-text-fill-color:currentColor!important;
 border-color:var(--theme-primary,#a7192d)!important;
}
/* Legacy Support styles also set WebKit's independent text fill. */
html body button,html body button *,html body input,html body select,html body textarea,
html body #view-support .button,html body #view-support .button *,
html body .cs-modal .button,html body .cs-modal .button * {
 -webkit-text-fill-color:currentColor!important;
}
html body :is(.nav-button,.tab-button,.accounting-view-tab,.support-admin-tab,
 .record-tab,.ops-tab,.ops-analytics-tab,.ops-period-button,.game-layout-preview-tab,
 .button-primary,.btn-primary,.button-secondary,.btn-secondary) *,
html body #view-support .button-primary *,html body .cs-modal .button-primary * {
 color:inherit!important;-webkit-text-fill-color:currentColor!important;
}
html body th {background:var(--theme-surface,#190b10)!important;}
html body button:focus-visible,html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible {
 outline:3px solid var(--theme-text,#fff7e6)!important;outline-offset:3px;
}
html body button:disabled {opacity:.65;cursor:not-allowed;}
