:root{color-scheme:dark;--theme-page:#08090d;--theme-surface:#11131b;--theme-soft:#171923;--theme-text:#f5f3fa;--theme-muted:#aaaebe;--theme-border:#2d3040;--theme-accent:#9c43ff;--theme-success-bg:#183127;--theme-success-text:#d2ffe7;--theme-danger-bg:#3d252c;--theme-danger-text:#ffdadd}
:root[data-theme=light]{color-scheme:light;--theme-page:#f5f6fa;--theme-surface:#fff;--theme-soft:#f0f1f6;--theme-text:#191524;--theme-muted:#656273;--theme-border:#dedbe7;--theme-accent:#7022c2;--theme-success-bg:#e8f8ef;--theme-success-text:#17613d;--theme-danger-bg:#fff0f2;--theme-danger-text:#922d42}

.theme-toggle{display:inline-grid;width:34px;height:34px;flex:0 0 34px;place-items:center;padding:0;border:1px solid #4f3b69;border-radius:50%;background:#171321;color:#eadcff;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s}.theme-toggle:hover{border-color:#9c5ee0;background:#251a35;color:#fff}.theme-toggle:focus-visible{outline:2px solid #a947ff;outline-offset:3px}.theme-toggle__icon{display:grid;width:18px;height:18px;place-items:center;grid-area:1/1}.theme-toggle__icon svg{display:block;width:18px;height:18px}.theme-toggle__icon--sun{display:none}.theme-toggle--mobile{display:none}.theme-toggle--admin{margin-right:auto}:root[data-theme=light] .theme-toggle{border-color:#c8b6dc;background:#fff;color:#6420ad;box-shadow:0 3px 12px #3f26551f}:root[data-theme=light] .theme-toggle:hover{border-color:#8b4fc2;background:#f4ecfc;color:#4e128e}:root[data-theme=light] .theme-toggle__icon--sun{display:grid}:root[data-theme=light] .theme-toggle__icon--moon{display:none}
@media(max-width:900px){.site-header>.header-top .theme-toggle:not(.theme-toggle--mobile){display:none}.theme-toggle--mobile{display:flex;width:100%;height:auto;min-height:44px;flex:none;align-items:center;justify-content:flex-start;gap:13px;padding:9px;border:0;border-radius:7px;background:transparent;color:#f3f3fa;font:inherit;font-size:14px;text-align:left;box-shadow:none}.theme-toggle--mobile:hover,.theme-toggle--mobile:focus-visible{background:#201a34;color:#e8bdff;outline-offset:1px}}

/* Light theme changes interface surfaces and ink only; media and ad artwork remain untouched. */
:root[data-theme=light] body.public-mobile-ui,:root[data-theme=light] body:not(.admin-page){background:var(--theme-page);color:var(--theme-text)}:root[data-theme=light] body.public-mobile-ui{--desktop-ink:#201b2a;--desktop-muted:#696573;--desktop-line:#dedbe7;--desktop-surface:#fff;--desktop-accent:#7427c7}
:root[data-theme=light] .site-header,:root[data-theme=light] .header-top,:root[data-theme=light] .top-nav,:root[data-theme=light] .site-shell,:root[data-theme=light] .home-content,:root[data-theme=light] .placeholder-page,:root[data-theme=light] .shorts-desktop-fallback{background-color:var(--theme-page);color:var(--theme-text)}:root[data-theme=light] .site-header{border-color:var(--theme-border);box-shadow:0 8px 24px #30253b12}:root[data-theme=light] .top-nav{border-color:var(--theme-border)}:root[data-theme=light] .top-nav a{color:#555160}:root[data-theme=light] .top-nav a:hover,:root[data-theme=light] .top-nav a:focus-visible,:root[data-theme=light] .top-nav a.active{color:#6820b4}:root[data-theme=light] .nav-search input,:root[data-theme=light] .mobile-search-panel form{border-color:var(--theme-border);background:#fff;color:var(--theme-text)}:root[data-theme=light] input::placeholder,:root[data-theme=light] textarea::placeholder{color:#8a8692}:root[data-theme=light] .header-notification,:root[data-theme=light] .header-account,:root[data-theme=light] .header-account__name,:root[data-theme=light] .header-login b,:root[data-theme=light] .header-guest-avatar{color:var(--theme-text)}:root[data-theme=light] .header-notification:hover,:root[data-theme=light] .header-account:hover{background:#eee7f7;color:#651bb0}:root[data-theme=light] .header-account__meta,:root[data-theme=light] .header-account__logout,:root[data-theme=light] .header-login{color:var(--theme-muted)}:root[data-theme=light] .site-header__admin-link,:root[data-theme=light] .site-header__quick-upload{border-color:#b99bd8;background:#f2ebf8;color:#58208e}

:root[data-theme=light] .desktop-sidebar,:root[data-theme=light] .left-sidebar,:root[data-theme=light] .right-sidebar,:root[data-theme=light] .side-group,:root[data-theme=light] .account,:root[data-theme=light] .category-row,:root[data-theme=light] .section,:root[data-theme=light] .media-section,:root[data-theme=light] .most-viewed,:root[data-theme=light] .editor-choice{color:var(--theme-text)}
:root[data-theme=light] .side-group,:root[data-theme=light] .account,:root[data-theme=light] .category-card,:root[data-theme=light] .media-card,:root[data-theme=light] .mini-card,:root[data-theme=light] .editor-card,:root[data-theme=light] .popular-tags a{border-color:var(--theme-border);background:var(--theme-surface);color:var(--theme-text);box-shadow:0 5px 18px #372b440d}:root[data-theme=light] .category-card:hover,:root[data-theme=light] .media-card:hover,:root[data-theme=light] .mini-card:hover{border-color:#aa7dd4;background:#fbf8fe}:root[data-theme=light] .media-card h3,:root[data-theme=light] .media-card h2,:root[data-theme=light] .section-title,:root[data-theme=light] .side-group h2,:root[data-theme=light] .editor-card strong,:root[data-theme=light] .mini-card strong{color:var(--theme-text)}:root[data-theme=light] .media-card p,:root[data-theme=light] .media-card small,:root[data-theme=light] .mini-card small,:root[data-theme=light] .section-subtitle{color:var(--theme-muted)}:root[data-theme=light] .media-card-actions__trigger,:root[data-theme=light] .media-card-actions__menu{border-color:var(--theme-border);background:#fff;color:var(--theme-text)}

:root[data-theme=light] .placeholder-card,:root[data-theme=light] .content-page,:root[data-theme=light] .profile-hub__header,:root[data-theme=light] .profile-hub__card,:root[data-theme=light] .profile-hub__empty,:root[data-theme=light] .settings-card,:root[data-theme=light] .submission-intro,:root[data-theme=light] .submission-form,:root[data-theme=light] .submission-mine,:root[data-theme=light] .submission-info article,:root[data-theme=light] .submission-mine article,:root[data-theme=light] .quick-upload,:root[data-theme=light] .bulk-upload,:root[data-theme=light] .bulk-upload__selected,:root[data-theme=light] .bulk-upload__row,:root[data-theme=light] .photo-post-card,:root[data-theme=light] .links-page li,:root[data-theme=light] .search-results-page__links li{border-color:var(--theme-border);background:var(--theme-surface);color:var(--theme-text);box-shadow:0 7px 24px #3a2b470f}
:root[data-theme=light] .placeholder-card h1,:root[data-theme=light] .content-page h1,:root[data-theme=light] .content-page h2,:root[data-theme=light] .profile-hub__identity h1,:root[data-theme=light] .profile-hub__section h2,:root[data-theme=light] .settings-card h1,:root[data-theme=light] .settings-card h2,:root[data-theme=light] .submission-intro h1,:root[data-theme=light] .submission-form h2,:root[data-theme=light] .submission-mine h2,:root[data-theme=light] .quick-upload h1,:root[data-theme=light] .bulk-upload__header h1,:root[data-theme=light] .bulk-upload__selected h2,:root[data-theme=light] .bulk-upload__filename,:root[data-theme=light] .search-results-page__group h2{color:var(--theme-text)}
:root[data-theme=light] .placeholder-card p,:root[data-theme=light] .content-page p,:root[data-theme=light] .content-page header p,:root[data-theme=light] .photo-post-card p,:root[data-theme=light] .profile-hub__identity p,:root[data-theme=light] .profile-hub__card span,:root[data-theme=light] .profile-hub__empty,:root[data-theme=light] .settings-card p,:root[data-theme=light] .submission-intro p,:root[data-theme=light] .submission-info p,:root[data-theme=light] .submission-rules p,:root[data-theme=light] .submission-mine p,:root[data-theme=light] .submission-mine span,:root[data-theme=light] .quick-upload p,:root[data-theme=light] .bulk-upload__header p,:root[data-theme=light] .bulk-upload__field small,:root[data-theme=light] .bulk-upload__choices small,:root[data-theme=light] .bulk-upload__selected p,:root[data-theme=light] .search-results-page__links span,:root[data-theme=light] .search-results-page__group h2 small{color:var(--theme-muted)}
:root[data-theme=light] input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme=light] textarea,:root[data-theme=light] select{border-color:#cfc9d9;background-color:#fff;color:var(--theme-text)}:root[data-theme=light] input:focus-visible,:root[data-theme=light] textarea:focus-visible,:root[data-theme=light] select:focus-visible{border-color:#7d35bd;outline:2px solid #7d35bd33;outline-offset:1px}:root[data-theme=light] .submission-types label,:root[data-theme=light] .submission-rules,:root[data-theme=light] .content-rules-acceptance,:root[data-theme=light] .content-rules-acceptance__details div{border-color:#cbb8dc;background:#f6f0fb;color:var(--theme-text)}:root[data-theme=light] .submission-form>label,:root[data-theme=light] .submission-types label,:root[data-theme=light] .quick-upload__field,:root[data-theme=light] .bulk-upload__field,:root[data-theme=light] .bulk-upload__choices,:root[data-theme=light] .bulk-upload__metadata,:root[data-theme=light] .safety-form label,:root[data-theme=light] .safety-review label{color:#302a38}

:root[data-theme=light] .comments,:root[data-theme=light] .comment,:root[data-theme=light] .comments-form,:root[data-theme=light] .media-detail,:root[data-theme=light] .media-detail__body,:root[data-theme=light] .photo-post-detail,:root[data-theme=light] .photo-post-gallery,:root[data-theme=light] .photo-post-actions{border-color:var(--theme-border);background-color:var(--theme-surface);color:var(--theme-text)}:root[data-theme=light] .comment p,:root[data-theme=light] .comments-empty,:root[data-theme=light] .media-detail p,:root[data-theme=light] .photo-post-detail p{color:var(--theme-muted)}:root[data-theme=light] .comment-vote,:root[data-theme=light] .media-vote,:root[data-theme=light] .photo-post-vote,:root[data-theme=light] .share-button{border-color:#cfc4dc;background:#f7f3fa;color:#42384e}:root[data-theme=light] .comment-vote:hover,:root[data-theme=light] .media-vote:hover,:root[data-theme=light] .photo-post-vote:hover,:root[data-theme=light] .share-button:hover{border-color:#8d55bd;background:#eee3f7;color:#541594}:root[data-theme=light] [aria-pressed=true].comment-vote,:root[data-theme=light] [aria-pressed=true].media-vote,:root[data-theme=light] [aria-pressed=true].photo-post-vote{border-color:#7b28d5;background:#eadcf7;color:#5d159e}

:root[data-theme=light] .site-footer{border-color:var(--theme-border);background:linear-gradient(180deg,#fff,#f2f0f6);box-shadow:0 -10px 26px #392d440f}:root[data-theme=light] .site-footer h2{color:var(--theme-text)}:root[data-theme=light] .site-footer__brand>p,:root[data-theme=light] .site-footer__age,:root[data-theme=light] .site-footer__nav a,:root[data-theme=light] .site-footer__copyright p{color:var(--theme-muted)}:root[data-theme=light] .site-footer__copyright{border-color:var(--theme-border)}:root[data-theme=light] .site-footer__age strong{border-color:#b894d8;background:#eee1f8;color:#5d1b96}
:root[data-theme=light] .mobile-bottom{border-color:var(--theme-border);background:#fffffff5;box-shadow:0 -5px 18px #30263b1a}:root[data-theme=light] .mobile-bottom a{color:#6e6977}:root[data-theme=light] .mobile-bottom a.active{color:#711fc0}:root[data-theme=light] .mobile-drawer{border-color:var(--theme-border);background:#fff;color:var(--theme-text);box-shadow:-16px 0 38px #1d142429}:root[data-theme=light] .mobile-drawer__heading{border-color:var(--theme-border)}:root[data-theme=light] .mobile-drawer__heading strong,:root[data-theme=light] .mobile-drawer__nav a,:root[data-theme=light] .mobile-drawer__logout,:root[data-theme=light] .theme-toggle--mobile{color:var(--theme-text)}:root[data-theme=light] .mobile-drawer__heading small,:root[data-theme=light] .mobile-drawer__nav section>small{color:var(--theme-muted)}:root[data-theme=light] .mobile-drawer__nav a:hover,:root[data-theme=light] .mobile-drawer__nav a:focus-visible,:root[data-theme=light] .mobile-drawer__nav a.is-active,:root[data-theme=light] .mobile-drawer__logout:hover,:root[data-theme=light] .theme-toggle--mobile:hover{background:#f0e8f7;color:#601aa6}:root[data-theme=light] .mobile-drawer__close{color:#4e4855}:root[data-theme=light] .public-mobile-ui .mobile-drawer__nav .telegram-card,:root[data-theme=light] .side-group .telegram-card{border-color:#cdd9e0;background:#f2f9fc;color:var(--theme-text);box-shadow:none}:root[data-theme=light] .public-mobile-ui .mobile-drawer__nav .telegram-card__copy strong{color:#087caf}:root[data-theme=light] .public-mobile-ui .mobile-drawer__nav .telegram-card__copy small{color:#5c6770}

:root[data-theme=light] .shorts-page{background:var(--theme-page)}:root[data-theme=light] .shorts-empty,:root[data-theme=light] .shorts-panel,:root[data-theme=light] .shorts-report-form{border-color:var(--theme-border);background:#fff;color:var(--theme-text)}:root[data-theme=light] .shorts-panel__header,:root[data-theme=light] .shorts-panel__status{border-color:var(--theme-border)}:root[data-theme=light] .shorts-panel__header p,:root[data-theme=light] .shorts-report-form p,:root[data-theme=light] .shorts-status{color:var(--theme-muted)}
:root[data-theme=light] .submission-success,:root[data-theme=light] .admin-flash{border-color:#79b997;background:var(--theme-success-bg);color:var(--theme-success-text)}:root[data-theme=light] .submission-errors,:root[data-theme=light] .bulk-upload__errors,:root[data-theme=light] .admin-errors{border-color:#d49aa7;background:var(--theme-danger-bg);color:var(--theme-danger-text)}

/* Admin uses the same stored preference; this is not an independent theme system. */
:root[data-theme=light] body.admin-page,:root[data-theme=light] body.admin-page .admin-shell{background:var(--theme-page);color:var(--theme-text)}:root[data-theme=light] .admin-sidebar{border-color:var(--theme-border);background:#fff}:root[data-theme=light] .admin-brand,:root[data-theme=light] .admin-user strong,:root[data-theme=light] .admin-heading{color:var(--theme-text)}:root[data-theme=light] .admin-nav__link,:root[data-theme=light] .admin-user,:root[data-theme=light] .admin-subheading,:root[data-theme=light] .admin-field,:root[data-theme=light] .admin-help,:root[data-theme=light] .admin-card__label,:root[data-theme=light] .admin-table__meta{color:var(--theme-muted)}:root[data-theme=light] .admin-nav__link:hover,:root[data-theme=light] .admin-nav__link--active,:root[data-theme=light] .admin-tab--active{background:#eee5f7;color:#551495}:root[data-theme=light] .admin-topbar{border-color:var(--theme-border);background:#fff}:root[data-theme=light] .admin-card,:root[data-theme=light] .admin-comment-card,:root[data-theme=light] .admin-form,:root[data-theme=light] .admin-table-wrap{border-color:var(--theme-border);background:#fff}:root[data-theme=light] .admin-tab,:root[data-theme=light] .admin-secondary,:root[data-theme=light] .admin-logout,:root[data-theme=light] .admin-action{border-color:#baa8ce;background:#f4eff8;color:#3d3247}:root[data-theme=light] .admin-field input,:root[data-theme=light] .admin-field textarea,:root[data-theme=light] .admin-field select,:root[data-theme=light] .admin-checklist{border-color:#cfc9d9;background:#fff;color:var(--theme-text)}:root[data-theme=light] .admin-check,:root[data-theme=light] .admin-check-option,:root[data-theme=light] .admin-table td{color:#302a38}:root[data-theme=light] .admin-table th,:root[data-theme=light] .admin-table td,:root[data-theme=light] .admin-context{border-color:var(--theme-border)}:root[data-theme=light] .admin-badge{background:#eeeaf2;color:#4d4654}:root[data-theme=light] .admin-action--danger,:root[data-theme=light] .admin-danger{border-color:#cf97a2;background:#fff0f2;color:#8d263b}
@media(max-width:900px){:root[data-theme=light] .mobile-search-panel[open]{background:#fff}:root[data-theme=light] .public-mobile-ui .site-header{background:#fff}}

/* Detail pages, comments, authentication and their interactive states. */
:root[data-theme=light] .content-media-description,:root[data-theme=light] .content-media-meta div,:root[data-theme=light] .comments__form,:root[data-theme=light] .comment,:root[data-theme=light] .auth-card,:root[data-theme=light] .photo-album-actions{border-color:var(--theme-border);background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme=light] .content-media-description,:root[data-theme=light] .photo-album-description,:root[data-theme=light] .photo-album-lead,:root[data-theme=light] .content-media-meta dt,:root[data-theme=light] .comment__session,:root[data-theme=light] .comment__time,:root[data-theme=light] .comments__empty{color:var(--theme-muted)!important}
:root[data-theme=light] .content-media-links a{background:#eee8f4;color:#4f2d6b}:root[data-theme=light] .media-detail-action,:root[data-theme=light] .photo-album-actions__button,:root[data-theme=light] .comment__button{border-color:#bca7cf;background:#f3edf8;color:#40334b}:root[data-theme=light] .media-detail-action:hover,:root[data-theme=light] .photo-album-actions__button:hover,:root[data-theme=light] .comment__button:hover{border-color:#8c4dbb;background:#eadcf5;color:#55118f}:root[data-theme=light] .media-detail-action--active,:root[data-theme=light] .photo-album-actions__button.is-active,:root[data-theme=light] .comment__button--active{border-color:#7d2ebd;background:#e7d5f5;color:#591298}
:root[data-theme=light] .comments h2,:root[data-theme=light] .comment__name,:root[data-theme=light] .comment__body,:root[data-theme=light] .auth-card h1{color:var(--theme-text)}:root[data-theme=light] .comments__form label,:root[data-theme=light] .comments__form legend,:root[data-theme=light] .comment__reply-form label,:root[data-theme=light] .comment__edit label,:root[data-theme=light] .auth-field{color:#342d3d}:root[data-theme=light] .comment__replies{border-color:#c6a9dc}:root[data-theme=light] .comment__pending-notice,:root[data-theme=light] .comments__errors{border-color:#b693ce;background:#f3eafa;color:#581b83}:root[data-theme=light] .auth-status{color:#17613d}:root[data-theme=light] .auth-error{color:#a52840}:root[data-theme=light] .auth-link{color:#681caf}
:root[data-theme=light] .photo-album-gallery__item{border-color:var(--theme-border);background:#eceaf0}:root[data-theme=light] .photo-album-actions__status{color:#6720a6}:root[data-theme=light] .content-empty-state,:root[data-theme=light] .content-pagination{border-color:var(--theme-border);background:#fff;color:var(--theme-muted)}

/* Beat the device-specific public UI rules without altering their layout values. */
:root[data-theme=light] body.public-mobile-ui .content-categories-page .category-card:nth-child(n),:root[data-theme=light] body.public-mobile-ui .category-card{border-color:var(--theme-border);background:#fff;color:var(--theme-text)}:root[data-theme=light] body.public-mobile-ui .category-card:hover,:root[data-theme=light] body.public-mobile-ui .category-card.is-active{border-color:#a875d1;background:#f4ecfa;box-shadow:inset 0 -2px #8c43c7}:root[data-theme=light] body.public-mobile-ui .category-card strong{color:#342b3d}:root[data-theme=light] body.public-mobile-ui .category-card small{color:var(--theme-muted)}
:root[data-theme=light] body.public-mobile-ui .auth-card{border-color:var(--theme-border);background:#fff;color:var(--theme-text)}:root[data-theme=light] body.public-mobile-ui .auth-card>p{color:var(--theme-muted)}:root[data-theme=light] body.public-mobile-ui .comments__form{border-color:var(--theme-border);background:#fff}:root[data-theme=light] body.public-mobile-ui .content-media-detail-page .content-media-description{border-color:var(--theme-border);color:var(--theme-muted)}
@media(max-width:900px){:root[data-theme=light] body.public-mobile-ui .mobile-bottom{border-color:var(--theme-border);background:#fffffff5}:root[data-theme=light] body.public-mobile-ui .mobile-bottom a{color:#6e6977}:root[data-theme=light] body.public-mobile-ui .mobile-bottom .active{background:linear-gradient(180deg,#8b43c71a,transparent);color:#711fc0}:root[data-theme=light] body.public-mobile-ui .mobile-drawer{border-left-color:var(--theme-border);background:#fff}:root[data-theme=light] body.public-mobile-ui .mobile-drawer__nav a.is-active{background:#eee3f7;color:#601aa6}}
