/* Appearance only: existing layout and media stay unchanged. */
:root[data-theme="dark"]{color-scheme:dark;--bg:#101214;--paper:#191d21;--ink:#f4f6f7;--green:#a8c9b3;--sage:#262c31;--line:#3c454c;--muted:#b8c2ca;--pink:#debfb6}
.theme-toggle{flex:none}.theme-sun{display:none}:root[data-theme="dark"] .theme-moon{display:none}:root[data-theme="dark"] .theme-sun{display:block}
:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible,:root[data-theme="dark"] input:focus-visible,:root[data-theme="dark"] select:focus-visible,:root[data-theme="dark"] textarea:focus-visible{outline:3px solid #465159}
:root[data-theme="dark"] .sidebar{background:#191d21}
:root[data-theme="dark"] .brand>span{color:#f4f6f7}
:root[data-theme="dark"] .brand-dot{color:#c0c8ce}
:root[data-theme="dark"] .brand small{color:#c0c8ce}
:root[data-theme="dark"] .nav{color:#c0c8ce}
:root[data-theme="dark"] .nav.active{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .nav:hover{background:#191d21}
:root[data-theme="dark"] .nav small{background:#191d21}
:root[data-theme="dark"] .side-note{border-top:1px solid #465159}
:root[data-theme="dark"] .side-note>span{color:#c0c8ce}
:root[data-theme="dark"] .side-note p{color:#c0c8ce}
:root[data-theme="dark"] .side-note>div{color:#c0c8ce}
:root[data-theme="dark"] .side-note>div>span{color:#c0c8ce}
:root[data-theme="dark"] .classic-link{color:#c0c8ce}
:root[data-theme="dark"] .private{color:#c0c8ce}
:root[data-theme="dark"] .topbar{background:#191d21}
:root[data-theme="dark"] .page-crumb{color:#c0c8ce}
:root[data-theme="dark"] .page-crumb b{color:#c0c8ce}
:root[data-theme="dark"] .search{background:#191d21;border:1px solid #465159;color:#c0c8ce}
:root[data-theme="dark"] .search input{color:#f4f6f7}
:root[data-theme="dark"] .search input::placeholder{color:#c0c8ce}
:root[data-theme="dark"] .search kbd{border:1px solid #465159}
:root[data-theme="dark"] .icon-button{color:#c0c8ce}
:root[data-theme="dark"] .user-avatar{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .profile-picture{border:1px solid #465159;background:linear-gradient(140deg,#191d21,#191d21)}
:root[data-theme="dark"] .profile-picture>img{border:4px solid #465159}
:root[data-theme="dark"] .private-pill{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .add-button:hover,:root[data-theme="dark"] .primary-button:hover{background:#365343}
:root[data-theme="dark"] .profile-stats{color:#c0c8ce}
:root[data-theme="dark"] .profile-stats b{color:#f4f6f7}
:root[data-theme="dark"] .profile h2 span{color:#c0c8ce}
:root[data-theme="dark"] .profile p{color:#c0c8ce}
:root[data-theme="dark"] .profile p span{color:#c0c8ce}
:root[data-theme="dark"] .sync-link{color:#c0c8ce}
:root[data-theme="dark"] .status-dot{background:#262c31}
:root[data-theme="dark"] .story{color:#c0c8ce}
:root[data-theme="dark"] .story-ring{border:1px solid #465159}
:root[data-theme="dark"] .story.active .story-ring{border:2px solid #465159}
:root[data-theme="dark"] .story-pic{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .story:nth-child(3n) .story-pic{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .story:nth-child(4n) .story-pic{background:#191d21;color:#f0a89f}
:root[data-theme="dark"] .story:nth-child(5n) .story-pic{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .eyebrow{color:#c0c8ce}
:root[data-theme="dark"] .collection-heading h2>span{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .display-switch{background:#191d21}
:root[data-theme="dark"] .display-switch button{color:#c0c8ce}
:root[data-theme="dark"] .display-switch .active{color:#c0c8ce;background:#191d21;box-shadow:0 1px 5px #00000008}
:root[data-theme="dark"] .filter{border:1px solid #465159;color:#c0c8ce}
:root[data-theme="dark"] .filter.active{background:#191d21;border-color:#465159;color:#c0c8ce}
:root[data-theme="dark"] .result-bar{color:#c0c8ce}
:root[data-theme="dark"] .result-bar input{accent-color:#c0c8ce}
:root[data-theme="dark"] .result-bar select{color:#c0c8ce}
:root[data-theme="dark"] .photo-tile{background:#191d21}
:root[data-theme="dark"] .tile-caption h3{text-shadow:0 1px 4px #00000022}
:root[data-theme="dark"] .unavailable{background:linear-gradient(145deg,#191d21,#191d21);color:#c0c8ce}
:root[data-theme="dark"] .unavailable small{color:#c0c8ce}
:root[data-theme="dark"] .photo-tile.no-image .tile-caption{color:#c0c8ce}
:root[data-theme="dark"] .photo-tile.no-image .tile-caption span{color:#c0c8ce}
:root[data-theme="dark"] .photo-tile.no-image .platform-chip{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .pending-notice{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .pending-notice button{color:#c0c8ce}
:root[data-theme="dark"] .tracking-card{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .live-pill{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .tracking-card>p{color:#c0c8ce}
:root[data-theme="dark"] .sync-times{border-top:1px solid #465159;color:#c0c8ce}
:root[data-theme="dark"] .sync-times b{color:#c0c8ce}
:root[data-theme="dark"] .text-link{color:#c0c8ce}
:root[data-theme="dark"] .next-event>.rail-heading .icon{color:#c0c8ce}
:root[data-theme="dark"] .event-date{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .event-preview p{color:#c0c8ce}
:root[data-theme="dark"] .event-note{color:#c0c8ce}
:root[data-theme="dark"] .source-avatar{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .mini-source small{color:#c0c8ce}
:root[data-theme="dark"] .mini-source>a{color:#c0c8ce}
:root[data-theme="dark"] .rail-footer{color:#c0c8ce}
:root[data-theme="dark"] .page-footer{color:#c0c8ce}
:root[data-theme="dark"] .page-footer small{color:#c0c8ce}
:root[data-theme="dark"] .page-footer button{color:#c0c8ce}
:root[data-theme="dark"] .load-more{border:1px solid #465159;color:#c0c8ce}
:root[data-theme="dark"] .empty,:root[data-theme="dark"] .loading-state{border:1px dashed #465159;background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .empty button{color:#c0c8ce}
:root[data-theme="dark"] .feed-card{background:#191d21}
:root[data-theme="dark"] .feed-header small{color:#c0c8ce}
:root[data-theme="dark"] .feed-header a{color:#c0c8ce}
:root[data-theme="dark"] .feed-image{background:#191d21}
:root[data-theme="dark"] .feed-actions .saved{color:#f0a89f}
:root[data-theme="dark"] .feed-actions .saved .icon{fill:#c0c8ce}
:root[data-theme="dark"] .feed-actions a{color:#c0c8ce}
:root[data-theme="dark"] .feed-body p{color:#c0c8ce}
:root[data-theme="dark"] .feed-body>small{color:#c0c8ce}
:root[data-theme="dark"] .source-card{background:#191d21}
:root[data-theme="dark"] .source-card small{color:#c0c8ce}
:root[data-theme="dark"] .source-card p{color:#c0c8ce}
:root[data-theme="dark"] .source-status{color:#c0c8ce;background:#191d21}
:root[data-theme="dark"] .source-status.partial,:root[data-theme="dark"] .source-status.limited{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .source-card a{color:#c0c8ce}
:root[data-theme="dark"] .source-summary{color:#c0c8ce;border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .source-summary b{color:#c0c8ce}
:root[data-theme="dark"] .event-card{background:#191d21}
:root[data-theme="dark"] .event-card p{color:#c0c8ce}
:root[data-theme="dark"] .event-card small{color:#c0c8ce}
:root[data-theme="dark"] .event-actions button,:root[data-theme="dark"] .event-actions a{color:#c0c8ce}
:root[data-theme="dark"] .event-actions button{border:1px solid #465159}
:root[data-theme="dark"] dialog{border:1px solid #465159;background:#191d21;box-shadow:0 20px 100px #00000033}
:root[data-theme="dark"] .dialog-close{color:#c0c8ce;background:#191d21eb}
:root[data-theme="dark"] .dialog-intro{color:#c0c8ce}
:root[data-theme="dark"] .post-media{background:#191d21}
:root[data-theme="dark"] .slide-arrow{background:#191d21bd;color:#c0c8ce}
:root[data-theme="dark"] .slide-count{background:#36534370}
:root[data-theme="dark"] .slide-dots button{background:#191d2166;box-shadow:0 0 2px #00000044}
:root[data-theme="dark"] .slide-dots button.active{background:#191d21}
:root[data-theme="dark"] .post-text{background:#191d21}
:root[data-theme="dark"] .post-author small{color:#c0c8ce}
:root[data-theme="dark"] .post-copy p{color:#c0c8ce}
:root[data-theme="dark"] .post-tags{color:#c0c8ce}
:root[data-theme="dark"] .post-provenance{color:#c0c8ce}
:root[data-theme="dark"] .post-tools button{color:#c0c8ce}
:root[data-theme="dark"] .post-tools button.saved{color:#f0a89f}
:root[data-theme="dark"] .post-tools button.saved .icon{fill:#c0c8ce}
:root[data-theme="dark"] .post-bottom>a{color:#c0c8ce;background:#191d21}
:root[data-theme="dark"] .post-note{border:1px solid #465159;color:#c0c8ce;background:#191d21}
:root[data-theme="dark"] .note-actions{color:#c0c8ce}
:root[data-theme="dark"] .note-actions button{color:#c0c8ce}
:root[data-theme="dark"] .delete-record{color:#f0a89f}
:root[data-theme="dark"] .add-dialog label:not(.upload-zone){color:#c0c8ce}
:root[data-theme="dark"] .add-dialog label>input,:root[data-theme="dark"] .add-dialog label>select,:root[data-theme="dark"] .add-dialog label>textarea{border:1px solid #465159;background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .add-dialog label>small{color:#c0c8ce}
:root[data-theme="dark"] .upload-zone{border:1px dashed #465159;background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .upload-zone>span{color:#c0c8ce}
:root[data-theme="dark"] .storage-hint{color:#c0c8ce}
:root[data-theme="dark"] .form-error{color:#f0a89f}
:root[data-theme="dark"] .info-dialog p,:root[data-theme="dark"] .info-dialog li{color:#c0c8ce}
:root[data-theme="dark"] .info-dialog a{color:#c0c8ce}
:root[data-theme="dark"] .secondary-button{border:1px solid #465159;color:#c0c8ce;background:#191d21}
:root[data-theme="dark"] .toast{background:#365343;box-shadow:0 6px 30px #00000030}
:root[data-theme="dark"] .skip{background:#191d21}
:root[data-theme="dark"] .mobile-nav{border-top:1px solid #465159;background:#191d21f7}
:root[data-theme="dark"] .mobile-nav button{color:#c0c8ce}
:root[data-theme="dark"] .mobile-nav .active{color:#c0c8ce}
:root[data-theme="dark"] .mobile-nav .mobile-add{color:#c0c8ce}
:root[data-theme="dark"] .library-tabs button{color:#c0c8ce}
:root[data-theme="dark"] .archive-controls label{color:#c0c8ce}
:root[data-theme="dark"] .archive-controls select{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .archive-scope{color:#c0c8ce}
:root[data-theme="dark"] .external-search{background:#191d21}
:root[data-theme="dark"] .external-search a{color:#f4f6f7}
:root[data-theme="dark"] .external-search small{color:#c0c8ce}
:root[data-theme="dark"] .video-card{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .play-overlay .icon{background:#191d21ec;color:#f4f6f7;fill:#f4f6f7}
:root[data-theme="dark"] .video-placeholder{color:#c0c8ce}
:root[data-theme="dark"] .video-caption p{color:#c0c8ce}
:root[data-theme="dark"] .video-caption>div{color:#c0c8ce}
:root[data-theme="dark"] .video-caption .saved{color:#f0a89f}
:root[data-theme="dark"] .video-launch small{color:#c0c8ce}
:root[data-theme="dark"] .player-fallback{background:#191d21ed;color:#f4f6f7}
:root[data-theme="dark"] .media-switch button{background:#191d21}
:root[data-theme="dark"] .period-tabs button{border:1px solid #465159}
:root[data-theme="dark"] .period-tabs .active{background:#365343;border-color:#465159}
:root[data-theme="dark"] .calendar{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .calendar-heading button{background:#191d21}
:root[data-theme="dark"] .calendar-heading input{color:#f4f6f7}
:root[data-theme="dark"] .calendar-week{color:#c0c8ce}
:root[data-theme="dark"] .calendar-days .has-event{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .calendar-days .selected{border-color:#465159;background:#365343}
:root[data-theme="dark"] .calendar-days .today:not(.selected){border-color:#465159}
:root[data-theme="dark"] .calendar-days button:hover{outline:1px solid #465159}
:root[data-theme="dark"] .timeline-heading small,:root[data-theme="dark"] .timeline-heading button{color:#c0c8ce}
:root[data-theme="dark"] .event-actions button[data-event-media]{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .reference-cover{background:#191d21ed;color:#f4f6f7}
:root[data-theme="dark"] .library-add{background:#365343}
:root[data-theme="dark"] .source-filter-heading p{color:#c0c8ce}
:root[data-theme="dark"] .source-filter-button{border:1px solid #465159;background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .source-filter-count{color:#c0c8ce}
:root[data-theme="dark"] .source-filter-button:hover{background:#191d21;border-color:#465159}
:root[data-theme="dark"] .source-filter-button.selected{background:#365343;border-color:#465159}
:root[data-theme="dark"] .source-filter-button:focus-visible{outline:3px solid #465159}
:root[data-theme="dark"] .archive-intro{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .archive-intro b{color:#f4f6f7}
:root[data-theme="dark"] .archive-intro p{color:#c0c8ce}
:root[data-theme="dark"] .catalog-controls select{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .catalog-pills button{border:1px solid #465159;background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .catalog-pills button.active{background:#365343;border-color:#465159}
:root[data-theme="dark"] .work-card{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .work-art{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .work-year{background:#191d21f0;color:#f4f6f7}
:root[data-theme="dark"] .music-art{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .work-network{color:#c0c8ce}
:root[data-theme="dark"] .work-original{color:#c0c8ce}
:root[data-theme="dark"] .work-note{color:#c0c8ce}
:root[data-theme="dark"] .platform-link{border:1px solid #465159;color:#f4f6f7}
:root[data-theme="dark"] .platform-link.watch-link{background:#365343;border-color:#465159}
:root[data-theme="dark"] .watch-note{color:#c0c8ce}
:root[data-theme="dark"] .work-body details{border-top:1px solid #465159;color:#c0c8ce}
:root[data-theme="dark"] .work-body details a{color:#c0c8ce}
:root[data-theme="dark"] .history-year>h3{color:#c0c8ce;border-top:2px solid #465159}
:root[data-theme="dark"] .history-year>div{border-left:1px solid #465159}
:root[data-theme="dark"] .history-entry{border-bottom:1px solid #465159}
:root[data-theme="dark"] .history-thumb,:root[data-theme="dark"] .history-glyph{background:#191d21}
:root[data-theme="dark"] .history-meta{color:#c0c8ce}
:root[data-theme="dark"] .evidence-pill{background:#191d21}
:root[data-theme="dark"] .history-entry p{color:#c0c8ce}
:root[data-theme="dark"] .history-actions a,:root[data-theme="dark"] .history-actions button{color:#c0c8ce}
:root[data-theme="dark"] .coverage-callout{background:#191d21}
:root[data-theme="dark"] .coverage-card{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .coverage-status{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .coverage-card dl{color:#c0c8ce}
:root[data-theme="dark"] .coverage-card a{color:#c0c8ce}
:root[data-theme="dark"] .coverage-history>p,:root[data-theme="dark"] .source-principles p{color:#c0c8ce}
:root[data-theme="dark"] .year-coverage button{border:1px solid #465159;background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .year-coverage .has-records{background:#191d21;color:#f4f6f7;border-color:#465159}
:root[data-theme="dark"] .source-principles{border-top:1px solid #465159}
:root[data-theme="dark"] .batch-log p{background:#191d21}
:root[data-theme="dark"] .coverage-actions button,:root[data-theme="dark"] .social-scope button{color:#c0c8ce}
:root[data-theme="dark"] .social-scope{background:#191d21}
:root[data-theme="dark"] .source-avatar-image{background:#191d21}
:root[data-theme="dark"] .profile .profile-picture>img{border:3px solid #465159}
:root[data-theme="dark"] .ig-summary{background:#191d21}
:root[data-theme="dark"] .profile .profile-picture,:root[data-theme="dark"] .profile.compact .profile-picture{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .profile .profile-picture>img{border:4px solid #465159}
:root[data-theme="dark"] .profile .profile-picture::after{filter:drop-shadow(0 3px 6px rgb(0 0 0 / .3))}
:root[data-theme="dark"] .platform-chip .source-avatar{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .reference-visual{background:linear-gradient(145deg,#191d21,#191d21);color:#f4f6f7}
:root[data-theme="dark"] .reference-visual .source-avatar{background:#191d21}
:root[data-theme="dark"] .reference-visual small{color:#c0c8ce}
:root[data-theme="dark"] .work-credit{background:#191d21e8;color:#f4f6f7}
:root[data-theme="dark"] .platform-mark{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .platform-mark img{background:#191d21}
:root[data-theme="dark"] .work-cover-upload{color:#c0c8ce}
:root[data-theme="dark"] .review-intro{background:#191d21}
:root[data-theme="dark"] .review-stats span{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .review-stats b{color:#c0c8ce}
:root[data-theme="dark"] .review-item{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .review-media{background:#191d21}
:root[data-theme="dark"] .review-content p,:root[data-theme="dark"] .review-note{color:#c0c8ce}
:root[data-theme="dark"] .review-top{color:#c0c8ce}
:root[data-theme="dark"] .review-tag{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .review-content dt{color:#c0c8ce}
:root[data-theme="dark"] .review-content dd a{color:#f4f6f7}
:root[data-theme="dark"] .review-confirm input{accent-color:#c0c8ce}
:root[data-theme="dark"] .update-calendar,:root[data-theme="dark"] .update-day-panel{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .update-heading button{border:1px solid #465159}
:root[data-theme="dark"] .update-heading input{border:1px solid #465159}
:root[data-theme="dark"] .update-guide{color:#c0c8ce}
:root[data-theme="dark"] .update-days button{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .update-days button.today{border-color:#465159}
:root[data-theme="dark"] .update-days button.selected{background:#365343}
:root[data-theme="dark"] .mark-update{background:#365343}
:root[data-theme="dark"] .mark-event{background:#262c31}
:root[data-theme="dark"] .update-key{color:#c0c8ce}
:root[data-theme="dark"] .day-summary{color:#c0c8ce;border-bottom:1px solid #465159}
:root[data-theme="dark"] .update-entry{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .update-entry>span{color:#c0c8ce}
:root[data-theme="dark"] .update-entry small,:root[data-theme="dark"] .update-entry a,:root[data-theme="dark"] .update-empty{color:#c0c8ce}
:root[data-theme="dark"] .update-entry a{color:#c0c8ce}
:root[data-theme="dark"] .work-art-logo{box-shadow:0 1px 5px #00000040}
:root[data-theme="dark"] .missing-works{border:1px solid #465159;color:#c0c8ce;background:#191d21}
:root[data-theme="dark"] .missing-works li{color:#c0c8ce}
:root[data-theme="dark"] .missing-works button{color:#f4f6f7}
:root[data-theme="dark"] .account-strip,:root[data-theme="dark"] .uploader-admin,:root[data-theme="dark"] .review-explainer,:root[data-theme="dark"] .legacy-drafts{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .uploader-admin input,:root[data-theme="dark"] .review-note-field input{border:1px solid #465159}
:root[data-theme="dark"] .submission-receipt{background:#191d21}
:root[data-theme="dark"] .missing-upload{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .account-actions .owner-login-link{color:#c0c8ce}
:root[data-theme="dark"] .account-actions .owner-login-link:hover{color:#f4f6f7}
:root[data-theme="dark"] .about-account{border-top:1px solid #465159}
:root[data-theme="dark"] .card-source-link,:root[data-theme="dark"] .prominent-source-link{border:1px solid #465159;background:#191d21;color:#f4f6f7!important}
:root[data-theme="dark"] .card-source-link:hover,:root[data-theme="dark"] .prominent-source-link:hover{background:#191d21}
:root[data-theme="dark"] .feed-header>a[href]{color:#f4f6f7}
:root[data-theme="dark"] .letter-bell{background:#191d21;color:#f0a89f}
:root[data-theme="dark"] .letter-unread{background:#365343}
:root[data-theme="dark"] .letter-footer-link{color:#f0a89f}
:root[data-theme="dark"] .letter-dialog{background:#191d21;color:#f4f6f7;box-shadow:0 20px 80px #00000042}
:root[data-theme="dark"] .letter-dialog>.dialog-close{background:#191d21}
:root[data-theme="dark"] .letter-heading{background:linear-gradient(120deg,#191d21,#191d21)}
:root[data-theme="dark"] .letter-heading h2{color:#f0a89f}
:root[data-theme="dark"] .letter-dialog fieldset{border-top:1px solid #465159}
:root[data-theme="dark"] .letter-all small,:root[data-theme="dark"] .letter-source small{color:#c0c8ce}
:root[data-theme="dark"] .letter-source{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .letter-dialog input[type=checkbox],:root[data-theme="dark"] .letter-dialog input[type=radio]{accent-color:#f0a89f}
:root[data-theme="dark"] .letter-note{color:#c0c8ce}
:root[data-theme="dark"] .letter-delivery section{background:#191d21}
:root[data-theme="dark"] .letter-delivery input{border:1px solid #465159}
:root[data-theme="dark"] .letter-status{color:#f0a89f}
:root[data-theme="dark"] .letter-save,:root[data-theme="dark"] .letter-bell-tools button,:root[data-theme="dark"] .letter-manage{background:#365343}
:root[data-theme="dark"] .letter-bell-tools select{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .letter-item{border-bottom:1px solid #465159}
:root[data-theme="dark"] .letter-item img,:root[data-theme="dark"] .letter-placeholder{background:#191d21}
:root[data-theme="dark"] .letter-item-copy small{color:#f0a89f}
:root[data-theme="dark"] .letter-item-copy>span{color:#c0c8ce}
:root[data-theme="dark"] .letter-item i{background:#365343}
:root[data-theme="dark"] .letter-secondary{border:1px solid #465159;color:#f0a89f;background:#191d21}
:root[data-theme="dark"] .related-source small{color:#c0c8ce}
:root[data-theme="dark"] .letter-read-hint{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-contact{background:#365343}
:root[data-theme="dark"] .bulletin-contact:hover{background:#365343}
:root[data-theme="dark"] .bulletin-footer-link{color:#f0a89f}
:root[data-theme="dark"] .bulletin-dialog{background:#191d21;color:#f4f6f7;box-shadow:0 20px 80px #00000042}
:root[data-theme="dark"] .bulletin-dialog>.dialog-close{background:#191d21}
:root[data-theme="dark"] .bulletin-dialog>p{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-filters button{border:1px solid #465159}
:root[data-theme="dark"] .bulletin-filters button.active{background:#365343;border-color:#465159}
:root[data-theme="dark"] .bulletin-entry{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .bulletin-entry-head{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-kind{background:#191d21;color:#f0a89f}
:root[data-theme="dark"] .bulletin-entry>small{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-empty{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-dialog form{border-top:1px solid #465159}
:root[data-theme="dark"] .bulletin-dialog form input,:root[data-theme="dark"] .bulletin-dialog form select,:root[data-theme="dark"] .bulletin-dialog form textarea{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .bulletin-dialog form #bulletinFeedback{color:#f0a89f}
:root[data-theme="dark"] .video-original-link{border:1px solid #465159;background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .video-original-link:hover{background:#191d21;border-color:#465159}
:root[data-theme="dark"] .video-source-action>small{color:#c0c8ce}
:root[data-theme="dark"] .unsupported-video-icon{color:#c0c8ce}
:root[data-theme="dark"] .post-dialog{border:1px solid #465159;box-shadow:0 24px 100px #00000040}
:root[data-theme="dark"] .post-media{background:#191d21}
:root[data-theme="dark"] .glass-play{border:1.5px solid #465159cc;background:#191d2122;box-shadow:0 8px 30px #00000033}
:root[data-theme="dark"] .youtube-launch:hover .glass-play,:root[data-theme="dark"] .youtube-launch:focus-visible .glass-play{background:#191d2144}
:root[data-theme="dark"] .video-expand{background:#191d2120;border:1px solid #46515955}
:root[data-theme="dark"] .video-expand:hover{background:#191d2140}
:root[data-theme="dark"] .bulletin-entry-actions button,:root[data-theme="dark"] .bulletin-cancel-edit,:root[data-theme="dark"] .bulletin-permission-form button,:root[data-theme="dark"] .bulletin-actions button{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .bulletin-entry-actions .bulletin-delete{color:#f0a89f;border-color:#465159}
:root[data-theme="dark"] .bulletin-management{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .bulletin-management p{color:#c0c8ce}
:root[data-theme="dark"] .bulletin-permission-form{border-top:1px solid #465159}
:root[data-theme="dark"] .bulletin-permission-options input{accent-color:#f0a89f}
:root[data-theme="dark"] .bulletin-delete-dialog{background:#191d21;color:#f4f6f7;box-shadow:0 20px 80px #00000042}
:root[data-theme="dark"] .bulletin-actions .bulletin-danger{background:#365343;border-color:#465159}
:root[data-theme="dark"] .bulletin-entry-actions button:focus-visible,:root[data-theme="dark"] .bulletin-management :focus-visible,:root[data-theme="dark"] .bulletin-actions button:focus-visible{outline:2px solid #465159}
:root[data-theme="dark"] .bulletin-dialog #bulletinForm .bulletin-form-actions{border-top:1px solid #465159}
:root[data-theme="dark"] .bulletin-dialog #bulletinForm .bulletin-form-actions>.primary-button{background:#365343;border:1px solid #465159}
:root[data-theme="dark"] .bulletin-dialog #bulletinForm .bulletin-form-actions>.primary-button:hover{background:#365343}
:root[data-theme="dark"] .bulletin-dialog #bulletinForm .bulletin-form-actions>.bulletin-cancel-edit:hover{background:#191d21}
:root[data-theme="dark"] .account-heading .eyebrow{color:#c0c8ce}
:root[data-theme="dark"] .account-dialog .account-intro{color:#c0c8ce}
:root[data-theme="dark"] .account-dialog .account-login{border:1px solid #465159;background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .account-dialog .account-login-primary{background:#191d21;border-color:#465159}
:root[data-theme="dark"] .account-login small{color:#c0c8ce}
:root[data-theme="dark"] .account-provider{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .account-dialog .account-login:hover{background:#191d21;border-color:#465159}
:root[data-theme="dark"] .account-dialog .account-note{color:#c0c8ce}
:root[data-theme="dark"] .account-identity{background:#191d21}
:root[data-theme="dark"] .account-identity-icon{background:#191d21;color:#c0c8ce}
:root[data-theme="dark"] .account-role{color:#f4f6f7}
:root[data-theme="dark"] .account-dialog .account-identity p{color:#f4f6f7}
:root[data-theme="dark"] .account-dialog .account-signout{color:#c0c8ce}
:root[data-theme="dark"] .account-about{border-top:1px solid #465159}
:root[data-theme="dark"] .account-about summary{color:#c0c8ce}
:root[data-theme="dark"] .account-dialog .account-about p{color:#c0c8ce}
:root[data-theme="dark"] .editor-dialog{border:1px solid #465159;color:#f4f6f7;background:#191d21}
:root[data-theme="dark"] .editor-dialog section,:root[data-theme="dark"] .editor-dialog form{border-top:1px solid #465159}
:root[data-theme="dark"] .editor-dialog input:not([type=checkbox]),:root[data-theme="dark"] .editor-dialog textarea{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .editor-dialog small{color:#c0c8ce}
:root[data-theme="dark"] .editor-context{color:#c0c8ce}
:root[data-theme="dark"] .editor-image{border-bottom:1px solid #465159}
:root[data-theme="dark"] .editor-image img{background:#191d21}
:root[data-theme="dark"] .editor-image button,:root[data-theme="dark"] .editor-history button{border:1px solid #465159}
:root[data-theme="dark"] .editor-history{border-bottom:1px solid #465159}
:root[data-theme="dark"] .editor-danger button{color:#f0a89f;border-color:#465159}
:root[data-theme="dark"] .editor-dialog{box-shadow:0 24px 90px #00000040}
:root[data-theme="dark"] .editor-context{background:#191d21}
:root[data-theme="dark"] .editor-tabs{background:#191d21}
:root[data-theme="dark"] .editor-tabs button{color:#c0c8ce}
:root[data-theme="dark"] .editor-tabs button[aria-selected=true]{background:#191d21;color:#f4f6f7;box-shadow:0 2px 8px #00000014}
:root[data-theme="dark"] .editor-tabs button:focus-visible,:root[data-theme="dark"] .editor-dialog summary:focus-visible{outline:3px solid #465159}
:root[data-theme="dark"] .editor-hint{color:#c0c8ce}
:root[data-theme="dark"] .editor-image{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .editor-image strong{color:#c0c8ce}
:root[data-theme="dark"] .editor-image button,:root[data-theme="dark"] .editor-history button{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .editor-upload{border:1px dashed #465159;background:#191d21}
:root[data-theme="dark"] .editor-dialog .form-error{background:#191d21;border:1px solid #465159;color:#f0a89f}
:root[data-theme="dark"] .editor-history{background:#191d21;border:1px solid #465159}
:root[data-theme="dark"] .editor-danger{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .editor-danger summary{color:#f0a89f}
:root[data-theme="dark"] .nav-group+.nav-group{border-top:1px solid #465159}
:root[data-theme="dark"] .nav-group-label{color:#c0c8ce}
:root[data-theme="dark"] .section-menu{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .section-menu>summary{color:#f4f6f7}
:root[data-theme="dark"] .section-menu>summary>span{color:#c0c8ce}
:root[data-theme="dark"] .section-menu h3{color:#c0c8ce}
:root[data-theme="dark"] .section-link:hover,:root[data-theme="dark"] .section-link.active{background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .filter-clear{color:#c0c8ce}
:root[data-theme="dark"] .private-note-help{color:#c0c8ce}
:root[data-theme="dark"] .filter-panel :focus-visible,:root[data-theme="dark"] .section-menu :focus-visible{outline:2px solid #465159}
:root[data-theme="dark"] .filter-panel{border:1px solid #465159;background:#191d21}
:root[data-theme="dark"] .filter-panel>summary:after{color:#c0c8ce}
:root[data-theme="dark"] .filter-panel>summary span{color:#c0c8ce}
:root[data-theme="dark"] .mobile-sources select,:root[data-theme="dark"] .filter-panel select{border:1px solid #465159;background:#191d21;color:#f4f6f7}
:root[data-theme="dark"] .filter-apply{background:#365343}
:root[data-theme="dark"] .add-button,:root[data-theme="dark"] .primary-button{background:#a8d5b8;color:#10261a}
/* Explicit interaction hierarchy and contrast; no size or layout changes. */
:root[data-theme="dark"] :is(.primary-button,.add-button,.filter-apply,.letter-save,.letter-manage){background:#a8d5b8!important;color:#10261a!important;border-color:#a8d5b8!important}
:root[data-theme="dark"] :is(.primary-button,.add-button,.filter-apply,.letter-save,.letter-manage):hover:not(:disabled){background:#c0e5cd!important;color:#10261a!important}
:root[data-theme="dark"] :is(.secondary-button,.account-login,.bulletin-cancel-edit,.bulletin-entry-actions button,.bulletin-actions button,.editor-image button,.editor-history button){background:#262c31;color:#f4f6f7;border-color:#56616b}
:root[data-theme="dark"] :is(.secondary-button,.account-login,.bulletin-cancel-edit,.bulletin-entry-actions button,.bulletin-actions button,.editor-image button,.editor-history button):hover:not(:disabled){background:#343d44;color:#fff;border-color:#8d9ba6}
:root[data-theme="dark"] :is(.icon-button,.letter-bell,.dialog-close){color:#e6ebee;background:transparent}
:root[data-theme="dark"] :is(.icon-button,.letter-bell,.dialog-close):hover{background:#343d44;color:#fff}
:root[data-theme="dark"] :is(.nav,.filter,.section-link,.catalog-pills button,.bulletin-filters button,.editor-tabs button,.display-switch button){color:#c0c8ce}
:root[data-theme="dark"] :is(.nav,.filter,.section-link,.catalog-pills button,.bulletin-filters button,.editor-tabs button,.display-switch button):hover{background:#343d44;color:#fff}
:root[data-theme="dark"] :is(.nav.active,.filter.active,.section-link.active,.catalog-pills button.active,.bulletin-filters button.active,.editor-tabs button[aria-selected=true],.display-switch button.active,.source-filter-button.selected){background:#304b3b;color:#e4f7e9;border-color:#86b99b}
:root[data-theme="dark"] :is(.bulletin-danger,.editor-danger button){background:#402528!important;color:#ffb9b9!important;border-color:#bd777e!important}
:root[data-theme="dark"] :is(.bulletin-danger,.editor-danger button):hover:not(:disabled){background:#583035!important;color:#ffe0e0!important}
:root[data-theme="dark"] :is(input,textarea,select){color:#f4f6f7;caret-color:#fff;accent-color:#a8d5b8}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:#aab5bd;opacity:1}
:root[data-theme="dark"] :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #b9e4c9!important;outline-offset:3px}
:root[data-theme="dark"] button:disabled{background:#30363c!important;color:#aab3bb!important;border-color:#465159!important;opacity:1}
:root[data-theme="dark"] ::selection{background:#a8d5b8;color:#10261a}
:root[data-theme="dark"] #filterPanel{border-color:transparent;background:#000;box-shadow:none}
:root[data-theme="dark"] #filterPanel>.filter-panel-body{background:#000;border-color:transparent;box-shadow:none}

/* Mobile navigation: a stable active indicator in both color themes. */
@media(max-width:760px){
  .mobile-nav{--nav-idle:#526449;--nav-active:#2d593e;--nav-indicator:#e0eddf;--nav-focus:#426854}
  .mobile-nav button{flex:1;min-width:0;min-height:44px;padding:0;gap:3px;color:var(--nav-idle);background:transparent;transition:color 160ms ease,transform 120ms ease;-webkit-tap-highlight-color:transparent}
  .mobile-nav button>i{display:grid;place-items:center;flex:none;width:52px;height:28px;border-radius:999px;background:transparent;transition:background-color 160ms ease}
  .mobile-nav button>span{font-size:12px;line-height:1.25;font-weight:500}
  .mobile-nav button.active{color:var(--nav-active)}
  .mobile-nav button.active>i{background:var(--nav-indicator)}
  .mobile-nav button.active>span{font-weight:700}
  .mobile-nav button:active{transform:scale(.96)}
  .mobile-nav button:focus-visible{outline:2px solid var(--nav-focus);outline-offset:2px;border-radius:12px}
  :root[data-theme="dark"] .mobile-nav{--nav-idle:#bcc7c1;--nav-active:#d0efd9;--nav-indicator:#304c3f;--nav-focus:#b8dfc4;border-top-color:#39443f;background:#191f1cf7}
  :root[data-theme="dark"] .mobile-nav button{color:var(--nav-idle)}
  :root[data-theme="dark"] .mobile-nav button.active{color:var(--nav-active)}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
  .mobile-nav button,.mobile-nav button>i{transition:none}
  .mobile-nav button:active{transform:none}
}
