/* Shared dark surfaces: keeps dialogs, forms and secondary pages readable. */
html[data-theme=dark] .modal-backdrop{background:#111018b8!important}
html[data-theme=dark] .modal,html[data-theme=dark] .account-form-panel,html[data-theme=dark] .auth-story,html[data-theme=dark] .family-welcome,html[data-theme=dark] .household-heading,html[data-theme=dark] .profile-dashboard,html[data-theme=dark] .profile-tile,html[data-theme=dark] .family-card,html[data-theme=dark] .family-add,html[data-theme=dark] .account-info,html[data-theme=dark] .account-actions,html[data-theme=dark] .month-card,html[data-theme=dark] .day-card,html[data-theme=dark] .calendar-empty,html[data-theme=dark] .search-field,html[data-theme=dark] .filter,html[data-theme=dark] .filters,html[data-theme=dark] .timer-card,html[data-theme=dark] .quick-card,html[data-theme=dark] .recovery-card,html[data-theme=dark] .qr-card{background:#302d39!important;color:#fbf8f1!important;border-color:#514a5c!important}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#25232d!important;color:#fbf8f1!important;border-color:#686074!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aaa2b2!important}
html[data-theme=dark] label,html[data-theme=dark] .form-note,html[data-theme=dark] .profile-footnote,html[data-theme=dark] .household-foot,html[data-theme=dark] .calendar-zone,html[data-theme=dark] .calendar-legend{color:#d1cbd5!important}
html[data-theme=dark] .notice,html[data-theme=dark] .form-error{background:#483a3f!important;color:#ffe1d4!important;border-color:#9b6a68!important}
html[data-theme=dark] .light-button,html[data-theme=dark] .secondary-button,html[data-theme=dark] .avatar-picker button,html[data-theme=dark] .auth-tabs button,html[data-theme=dark] .icon-button{background:#414533!important;color:#fbf8f1!important;border-color:#686b54!important}
html[data-theme=dark] .avatar-picker button.selected{background:#d9e99f!important;color:#25232d!important;border-color:#d9e99f!important}
html[data-theme=dark] table,html[data-theme=dark] th,html[data-theme=dark] td{border-color:#514a5c!important;color:#fbf8f1!important}html[data-theme=dark] code{background:#25232d!important;color:#d9e99f!important}
html[data-theme=dark] .topbar a,html[data-theme=dark] .sidebar a,html[data-theme=dark] .text-link{color:#e5efae!important}html[data-theme=dark] .sidebar a.active{background:#414533!important;color:#fbf8f1!important}
html[data-theme=dark] .photo-upload{background:#414533!important;color:#fbf8f1!important;border-color:#686b54!important}
html[data-theme=dark] .calendar-grid,html[data-theme=dark] .calendar-weekdays{background:#302d39!important;border-color:#514a5c!important}html[data-theme=dark] .calendar-grid button{color:#fbf8f1!important}
html[data-theme=dark] .content-card,html[data-theme=dark] .recipe-card,html[data-theme=dark] .product-detail,html[data-theme=dark] .product-info-grid article,html[data-theme=dark] .result-panel,html[data-theme=dark] .option,html[data-theme=dark] .empty-state,html[data-theme=dark] .date-pill,html[data-theme=dark] .recipe-feature,html[data-theme=dark] .content-card-body,html[data-theme=dark] .profile-context,html[data-theme=dark] .active-family-banner,html[data-theme=dark] .family-home-invite,html[data-theme=dark] .learning-guide article,html[data-theme=dark] .style-step,html[data-theme=dark] .admin-table-wrap{background:#302d39!important;color:#fbf8f1!important;border-color:#514a5c!important}
html[data-theme=dark] .product-image,html[data-theme=dark] .ritual-art,html[data-theme=dark] .hero-orbit,html[data-theme=dark] .empty-state,html[data-theme=dark] .calendar-cell{background:#25232d!important;border-color:#514a5c!important}
html[data-theme=dark] .option.selected,html[data-theme=dark] .filter.active,html[data-theme=dark] .result-tags span{background:#4b553b!important;color:#f5f8df!important;border-color:#9dad72!important}
html[data-theme=dark] .modal p,html[data-theme=dark] .modal li,html[data-theme=dark] .product-detail p,html[data-theme=dark] .content-card p,html[data-theme=dark] .recipe-card p,html[data-theme=dark] .learning-guide p{color:#d1cbd5!important}
html[data-theme=dark] .tag,html[data-theme=dark] .product-tag,html[data-theme=dark] .texture-badge,html[data-theme=dark] .install-instructions,html[data-theme=dark] .photo-label{background:#41404b!important;color:#fbf8f1!important;border-color:#686074!important}
html[data-theme=dark] [style*="background:white"],html[data-theme=dark] [style*="background:#fff"],html[data-theme=dark] [style*="background: #fff"]{background:#302d39!important;color:#fbf8f1!important}
