/* Shared Invaders window palette. Media assets retain their original appearance. */
html body :is(dialog,[role="dialog"],.header-instagram-picker,.results-year-menu){
 --invaders-window-bg:#101010;--invaders-window-panel:#1b1b1b;--invaders-window-field:#191919;
 --invaders-window-text:#ededed;--invaders-window-muted:#b8b8b8;--invaders-window-border:#454545;
 --schedule-accent:#dedede!important;
 color-scheme:dark;background:#101010!important;color:#ededed!important;border-color:#454545!important;
 box-shadow:0 24px 90px #000a!important;scrollbar-color:#555 #101010
}
html body dialog::backdrop{background:#000b!important}
html body :is(dialog,[role="dialog"]) :is(header,.ng-contact-header,.ng-quiz-header,.ng-schedule-dialog-heading,.cheer-dialog-heading,.join-info-header,.homepage-login-bar,.footer-documents-header,.newspaper-reader-tools){background:#1b1b1b!important;border-color:#454545!important;color:#ededed!important}
html body :is(dialog,[role="dialog"]) :is(.ng-contact-body,.ng-quiz-body,.ng-schedule-dialog-body,.cheer-dialog-body,.join-info-body,.footer-documents-body,.sponsor-info-content,.members-main){background:#101010!important}
html body :is(dialog,[role="dialog"]):where(:not(.history-book-dialog):not(.ft-detail)) :is(p,small,label,legend,dt,dd,li){color:#b8b8b8!important}
html body :is(dialog,[role="dialog"]):where(:not(.history-book-dialog):not(.ft-detail)) :is(span,i,svg){color:inherit!important}
html body :is(dialog,[role="dialog"]):where(:not(.history-book-dialog):not(.ft-detail)) :is(h1,h2,h3,h4,h5,h6,strong,b){color:#f2f2f2!important}
html body :is(dialog,[role="dialog"]):not(.ft-detail) :is(a,button){color:#ededed!important;border-color:#555!important;text-shadow:none!important}
html body :is(dialog,[role="dialog"]) :is(button,.ng-quiz-result-cta){background:#242424!important;border-color:#555!important;box-shadow:none!important}
html body :is(dialog,[role="dialog"]) :is(button:hover,a:hover){border-color:#aaa!important}
html body :is(dialog,[role="dialog"]) :is(button,a,input,select,textarea,label):focus-visible{outline-color:#eee!important}
html body :is(dialog,[role="dialog"],.login-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,textarea){background:#191919!important;color:#eee!important;border-color:#505050!important;box-shadow:none!important;caret-color:#fff;accent-color:#ddd}
html body :is(dialog,[role="dialog"],.login-card) :is(input,textarea)::placeholder{color:#929292!important;opacity:1}
html body :is(dialog,[role="dialog"],.login-card) :is(input,select,textarea):focus{border-color:#ddd!important;outline-color:#ddd!important;box-shadow:0 0 0 1px #dddddd44!important}
html body :is(dialog,[role="dialog"],.login-card) :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:#ddd!important}
html body :is(dialog,[role="dialog"]) :is(button[type="submit"],.ng-contact-submit,.ng-quiz-next,.ng-quiz-result-cta,.join-info-book,.member-button:not(.secondary),.cheer-button){background:#eee!important;color:#111!important;border-color:#eee!important}
html body :is(dialog,[role="dialog"]) :is(button[type="submit"],.ng-contact-submit,.ng-quiz-next,.ng-quiz-result-cta,.join-info-book,.member-button:not(.secondary),.cheer-button):hover{background:#fff!important;color:#111!important;border-color:#fff!important}
html body :is(dialog,[role="dialog"]) :is(button[type="submit"],.ng-contact-submit,.ng-quiz-next,.ng-quiz-result-cta,.join-info-book,.member-button:not(.secondary),.cheer-button) :is(span,strong,b,svg){color:inherit!important}
html body :is(dialog,[role="dialog"]) :is(.ng-contact-close,.ng-quiz-close,.ng-schedule-close,.cheer-dialog-close,.join-info-close,.homepage-login-close,.footer-documents-close,.sponsor-info-close,.contact-confirmation-close,.hero-video-close,.history-book-close,.tr-close){background:#1b1b1b!important;color:#eee!important;border-color:#555!important}

/* Document selection, quiz options, membership controls and information panels. */
html body dialog :is(.footer-documents-list a,.ng-quiz fieldset label,.ng-quiz-alternatives article,.join-contact-teams,.join-contact-teams label,.join-info-training,.join-info-tryout,.member-card,.resource-item){background:#1b1b1b!important;border-color:#454545!important;color:#ddd!important;box-shadow:none!important}
html body dialog :is(.footer-documents-list a,.ng-quiz fieldset label):hover{background:#252525!important;border-color:#888!important}
html body dialog.ng-quiz fieldset label:has(input:checked){background:#292929!important;border-color:#ddd!important;box-shadow:inset 3px 0 #eee!important}
html body dialog.ng-quiz fieldset input:checked+i,html body dialog .join-contact-teams label:has(input:checked){background:#eee!important;border-color:#eee!important;color:#111!important}
html body dialog .join-contact-teams label:has(input:checked) :is(span,strong){color:#111!important}
html body dialog .ng-quiz-progress{background:#353535!important}
html body dialog .ng-quiz-progress-row{color:#aaa!important}
html body dialog .ng-quiz-progress>span{background:#ddd!important}
html body dialog .ng-schedule-dialog-body>svg{stroke:#ddd!important}
html body dialog .ng-schedule-dismiss{border-color:#ddd!important}
html body dialog :is(.ng-contact-delivery,.join-contact-delivery,.cheer-form-delivery,.ng-quiz-note,.join-info-body section,.join-info-meta>span+span){border-color:#3c3c3c!important}
html body dialog .join-info-header::before{background:linear-gradient(90deg,#ddd,transparent 75%)!important}

/* Keep printed archive pages light, with neutral paper and dark ink. */
html body dialog.history-book-dialog{background:#d8d8d8!important;color:#222!important;color-scheme:light}
html body .history-book-dialog .invaders-newspaper{background:#eee!important;color:#222!important;box-shadow:0 2px 6px #0003!important}
html body .history-book-dialog .invaders-newspaper :is(h1,h2,h3,h4,h5,h6,p,span,strong,b,small,li,a,figcaption,blockquote){color:#282828!important;border-color:#777!important;text-shadow:none!important}
html body .history-book-dialog .invaders-newspaper :is(section,article,aside,figure,header,footer){background-color:transparent!important;border-color:#777!important}
html body .history-book-dialog .newspaper-reader-tools,html body .history-book-dialog .newspaper-reader-tools :is(span,button){color:#eee!important;background:#1b1b1b!important}
html body .history-book-dialog :is(.newspaper-edition,.newspaper-footer,.newspaper-turn-hint,.newspaper-pagination,.newspaper-pagination button){color:#555!important;border-color:#777!important}
html body .history-book-dialog .newspaper-turn-hint{background:#eee!important}
html body .history-book-dialog .newspaper-pagination #history-page-status{color:#555!important}
html body dialog.tr-dialog .tr-shell{background:#080808!important}
html body dialog.tr-dialog .tr-case{background:linear-gradient(115deg,#ffffff0d,transparent 22%,#ffffff05 65%,#ffffff13)!important;border-color:#888!important}
html body dialog.tr-dialog :is(.tr-case-label,.tr-honour-panel){background:#161616!important;border-color:#555!important}
html body dialog.ft-detail,html body dialog.hero-video-dialog{background:transparent!important;box-shadow:none!important}
html body dialog.ft-detail .ft-detail-return{background:transparent!important}

/* Smaller menus and the phone's own chrome use the same neutral surfaces. */
html body :is(.header-instagram-picker,.results-year-menu){background:#161616!important;border-color:#454545!important}
html body :is(.header-instagram-picker,.results-year-menu) :is(a,button,strong,span,p,small){color:#ddd!important;border-color:#444!important;text-shadow:none!important}
html body :is(.header-instagram-picker,.results-year-menu) :is(a,button):hover{background:#2a2a2a!important;color:#fff!important}
html body .reel-phone-device{background:linear-gradient(120deg,#606060,#151515 16%,#080808 75%,#484848)!important;border-color:#888!important}
html body :is(.reel-phone-screen,.reel-phone-top,.reel-phone-controls){background-color:#101010!important;color:#ddd!important}
html body .login-card{background:#171717!important;border-color:#454545!important;color:#eee!important}
html body .login-card :is(p,label,small){color:#bbb!important}
html body .login-card :is(h1,h2,strong){color:#eee!important}
html body .login-card .member-button{background:#eee!important;border-color:#eee!important;color:#111!important}

/* Retain the explicitly requested green send/download confirmations. */
html body dialog .contact-confirmation-message{color:#72d69a!important}
html body dialog .footer-documents-list a.is-downloading .footer-document-download{color:#77eea3!important}
html body dialog .footer-documents-list a.is-downloading .footer-document-arrow{color:inherit!important}
