/* Seasonal surface contract. Loaded last; normal and Christmas palettes stay independent. */
body.theme-halloween{
 --hw-bg:#16171e;--hw-panel:#24242e;--hw-chrome:#1d1d26;--hw-muted:#c4bdce;--hw-text:#fff2e6;--hw-lilac:#d6bdf5;--hw-coral:#ffa17c;--hw-border:#494251;
 --bg:var(--hw-bg);--site-background:var(--hw-bg);--card:var(--hw-panel);--text:var(--hw-text);--ink:var(--hw-text);--muted:var(--hw-muted);--line:var(--hw-border);
 --olive:#36303f;--olive2:#484052;--gold:var(--hw-coral);--gold2:#ffd3a7;--primary-ink:#fff2e6;--secondary-ink:#fff2e6;--accent-ink:#291b21;--accent-secondary-ink:#291b21;
 --surface-raised:#302c38;--surface-inset:#1d1c25;--edition-hero:#24212e;--edition-wash:#76556e;--edition-surface:#34303f;
 --v11-paper:var(--hw-panel);--v11-ink:var(--hw-text);--v11-line:var(--hw-border);--v12-paper:var(--hw-panel);--v12-ink:var(--hw-text);--v12-line:var(--hw-border);
 background:var(--hw-bg)!important;color:var(--hw-text)!important;
}
body.theme-halloween :is(.app-shell,.layout-body,.main-content,.admin-layout,.admin-main){background:var(--hw-bg)!important;color:var(--hw-text)!important}
body.theme-halloween :is(.card,.card-body,.card-title,.panel,.panel-section,.admin-card,.admin-list,.admin-list>div,.admin-list-row,.subdivision-card,.sub-cover-shade,.subdivision-welcome,.subdivision-post,.subdivision-document,.course-card,.course-subdivision-card,.course-member-picker,.course-member-check,.course-landing-grid>button,.rank-card,.rank-row,.medal-card,.medal,.dph-card,.dph-card-head,.dph-card-foot,.profile-info,.profile-stat,.store-wallet,.store-help,.shop-item,.mail-list,.mail-thread,.mail-message,.mail-compose,.mail-folder,.forum-card,.forum-thread,.forum-category,.forum-reply,.tweet-card,.post-comments,.comment-item,.recruit-card,.recruit-summary,.recruit-goal,.sup-card,.sup-record,.duty-row,.my-duty,.point-history,.history-row,.chief-content,.chief-feature,.chief-policy,.chief-guidance,.runtime-event,.startup-report,.communication-health article,.grau-interest-entry){
 background-color:var(--hw-panel)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important;
}
body.theme-halloween :is(.topbar,.admin-topbar,.side-nav,.admin-sidebar,.admin-area-rail,.widget-rail .card-title,.widget-rail .useful-links,.modal,.modal-head,.modal-header,.modal-foot,.modal-footer,.modal-body,.dialog,.cookie-consent){background-color:var(--hw-chrome)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween :is(.table,.admin-table,.chief-matrix) :is(th,td){background-color:transparent;color:var(--hw-text);border-color:var(--hw-border)!important}
body.theme-halloween :is(.table,.admin-table,.chief-matrix) thead th{background:var(--surface-inset)!important;color:var(--hw-muted)!important}
body.theme-halloween :is(.card,.admin-main,.modal,.profile-grid,.subdivision-layout,.chief-content,.store-layout) :is(label,.muted,.text-muted,small,.field-hint){color:var(--hw-muted)}
body.theme-halloween :is(.card,.admin-main,.modal,.profile-grid,.subdivision-layout,.chief-content,.store-layout) :is(h2,h3,h4,strong,b,dt){color:inherit}
body.theme-halloween :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea){background-color:var(--surface-inset)!important;color:var(--hw-text)!important;border-color:#83708f!important}
body.theme-halloween :is(input,textarea)::placeholder{color:#aaa2b5!important;opacity:1}
body.theme-halloween input:is([type=checkbox],[type=radio],[type=range]){accent-color:var(--hw-coral)}
body.theme-halloween :is(.btn,.icon-btn,.profile-tabs button,.subnav button,.period-switch button,.ranking-tabs button,.store-tabs button,.chief-nav button,.cbhome-navigation button){background:var(--surface-raised)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween :is(.btn.btn-primary,.btn.btn-dark,.hw-hero-primary,.grau-invitation .btn){background:var(--hw-coral)!important;color:#291b21!important;border-color:transparent!important}
body.theme-halloween :is(.btn,.profile-tabs button,.subnav button,.period-switch button,.ranking-tabs button,.store-tabs button,.chief-nav button,.cbhome-navigation button):is(.active,[aria-selected=true],[aria-pressed=true]){background:var(--hw-lilac)!important;color:#271b31!important}
body.theme-halloween :is(.btn,.icon-btn):hover:not(:disabled){filter:brightness(1.12)}
body.theme-halloween :is(.tag,.live-pill,.notice){background:#382e27!important;color:#ffdab5!important;border-color:#765744!important}
body.theme-halloween :is(.tag.green,.live-pill,.notice.success){background:#203b32!important;color:#b9f3d7!important;border-color:#557d68!important}
body.theme-halloween :is(.tag.red,.notice.warn,.notice.error,.btn.btn-danger){background:#4a2730!important;color:#ffd3d9!important;border-color:#925465!important}
body.theme-halloween :is(.tag,.live-pill,.notice,.btn) :is(b,strong,small,span){color:inherit!important}
body.theme-halloween :is(.profile-bio-highlight,.dph-timeline,.profile-achievement-strip,.profile-tabs,.cbhome-tools,.cbhome-collection,.cbhome-adds,.cbhome-free-frames,.cbhome-navigation,.chief-attendance-action){background:var(--hw-panel)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween .profile-cover.profile-theme-classico[style=""]{background:radial-gradient(ellipse at 90% 0%,#714e6260,transparent 60%),linear-gradient(125deg,#24212e,#302937)!important}
body.theme-halloween .hw-home-hero{background:radial-gradient(ellipse at 82% 55%,#71435e60,transparent 52%),radial-gradient(ellipse at 75% 100%,#b6663422,transparent 35%),#24212e!important}
body.theme-halloween .hw-home-hero:after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #f5b88914;border-radius:inherit;background:none;z-index:0}
body.theme-halloween .hw-hero-kicker{color:#f9c8a0!important}
body.theme-halloween .hw-hero-chapter{color:#e0d4e7!important}
body.theme-halloween .hw-hero-content h1{color:var(--hw-text)!important}
body.theme-halloween .hw-hero-content h1 em{color:var(--hw-lilac)!important}
body.theme-halloween .hw-hero-content p{color:var(--hw-muted)!important}
body.theme-halloween .hw-rail-note{background-color:var(--hw-panel)!important}
body.theme-halloween .page-head .kicker{color:#e7c4a3!important}
body.theme-halloween .grau-invitation{background:linear-gradient(125deg,#28222c,#30282d)!important;border-color:#60424a!important}
body.theme-halloween .chief-hero{background-color:var(--hw-chrome)!important}
body.theme-halloween .appearance-preview-body :is(h3,p){color:#272923!important}
body.theme-halloween .appearance-preview-top{color:#fff!important}
body.theme-halloween .appearance-preview-body button{background:var(--preview-accent)!important;color:#171914!important}
body.theme-halloween .appearance-preview-body span{background:var(--preview-secondary)!important;color:#fff!important}
/* The default hero editor displays the same markup and styles in an isolated Shadow DOM. */
.hero-editor-preview{padding:0!important;background:transparent!important;min-height:0!important;overflow:hidden;border:1px solid var(--line);border-radius:16px}
.hero-preview-stage{display:block;width:100%;min-width:0;background:transparent}
body:not(.theme-halloween):not(.theme-christmas) .normal-login-commander{width:58%;right:-2%;height:78%;bottom:0;filter:drop-shadow(0 20px 25px #0006);z-index:1}
.normal-login-message{position:absolute;left:8%;bottom:100px;width:40%;z-index:2;color:#fff7df}
.normal-login-message small{font-size:9px;letter-spacing:.15em;color:#e5c759;display:block;margin-bottom:12px}
.normal-login-message b{font-size:clamp(24px,2.4vw,38px);line-height:1.15;display:block;letter-spacing:-.04em}
.normal-login-message span{display:block;font-size:11px;line-height:1.7;margin-top:15px;color:#d6dece}
@media(max-width:850px){.normal-login-message{bottom:50px;left:7%;width:47%}.normal-login-message b{font-size:25px}.normal-login-message span{font-size:10px}body:not(.theme-halloween):not(.theme-christmas) .normal-login-commander{width:52%;height:70%;right:-3%}}
@media(prefers-reduced-motion:reduce){body.theme-halloween *,body.theme-halloween *:before,body.theme-halloween *:after{animation:none!important;transition:none!important}}

/* The audit also covers populated lists and configuration panels, not just page shells. */
body.theme-halloween :is(.admin-main>.form,#panel-body>.form,.audio-admin-head,.audio-slot-card,.image-preview,.discord-log-error,.discord-integration-status,.discord-health-card,.config-source-banner,.discord-base-section,.linked-config-card,.discord-module-card,.library-toolbar,.library-categories button,.hierarchy-summary>div,.hierarchy-stats>div,.chief-matrix-scroll,.chief-insights td,.sup-dph,.sup-table th,.sup-table td,#classroom-search,.admin-shortcuts button,.admin-quick-grid button,.forum-thread-actions button){background-color:var(--hw-panel)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween :is(.home-hub,.home-summary,.personal-summary,.home-actions,.home-updated,.forum-thread-layout,.forum-guidelines,.forum-stats,.library-categories,.library-section-heading,.classroom-school,.classroom-results,.hierarchy-summary,.hierarchy-stats,.discord-workspace,.discord-config-layout,.discord-integration-status,.discord-base-section,.discord-module-card,.chief-matrix-scroll,.sup-dph) :is(small,p,span,label){color:var(--hw-muted)!important}
body.theme-halloween :is(.library-section-heading,.classroom-school,.discord-workspace,.discord-config-layout,.discord-section-head) :is(h2,h3,b,strong){color:var(--hw-text)!important}
body.theme-halloween :is(.home-updated,.home-updated span,.forum-read-link,.forum-category-tag,.mail-open-hint,.side-copy,.featured-label,.course-sub-icon){color:#e8c2a8!important}
body.theme-halloween .review-grade.bom{color:#c1de9b!important}
body.theme-halloween .review-grade.excelente{color:#a4e6be!important}
body.theme-halloween .review-grade.ruim{color:#ffafb6!important}
body.theme-halloween :is(.library-categories button,.forum-thread-actions button).active{background:var(--hw-lilac)!important;color:#271b31!important}

body.theme-halloween :is(.admin-grid button,.discord-module-tabs button,.attendance-cell.pendente){background:var(--surface-raised)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween :is(.admin-grid button b,.admin-grid button span,.sup-dph-head h1,.discord-integration-hero h2){color:var(--hw-text)!important}
body.theme-halloween :is(.forum-topic-metrics span,.library-toolbar span,.classroom-summary span,.chief-review-legend>span,.sup-tabs button,.audio-slot-card code){color:var(--hw-muted)!important}
body.theme-halloween :is(.feed-compose>b,.discord-module-card em){color:#f4c6aa!important}
body.theme-halloween .review-grade{background:#352d3b!important;border-color:var(--hw-border)!important}
body.theme-halloween .review-grade.ruim{background:#492630!important;color:#ffd1d8!important}
body.theme-halloween .review-grade.bom{background:#283c2b!important;color:#d0edb3!important}
body.theme-halloween .review-grade.excelente{background:#203b33!important;color:#b6f0ce!important}
body.theme-halloween .meeting-pulse{background:var(--hw-panel)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween .meeting-pulse :is(.meeting-pulse-copy,.meeting-pulse-copy small){color:var(--hw-muted)!important}
body.theme-halloween .meeting-pulse .meeting-pulse-copy h2{color:var(--hw-text)!important}
body.theme-halloween :is(.hierarchy-rank,.hierarchy-member,.course-charge-summary,.course-proof-field){background:var(--hw-panel)!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween .hierarchy-member :is(b,.chevron){color:var(--hw-text)!important}
body.theme-halloween .hierarchy-member small{color:var(--hw-muted)!important}
body.theme-halloween .classroom-table tbody tr{background:var(--hw-panel)!important;color:var(--hw-text)!important}
body.theme-halloween .classroom-table :is(th,td){background:transparent!important;color:var(--hw-text)!important;border-color:var(--hw-border)!important}
body.theme-halloween :is(.course-form-heading,.course-proof-field,.course-charge-summary,.course-application-form,.card-title) :is(h2,label,small,p){color:var(--hw-muted)!important}
body.theme-halloween .course-form-heading h2{color:var(--hw-text)!important}
body.theme-halloween .review-grade.regular{color:#ffdab5!important}
body.theme-halloween .admin-main code{background:var(--surface-inset)!important;color:#ffdab5!important}
body.theme-halloween{--q10-surface:var(--hw-panel);--q10-surface-alt:var(--surface-inset);--q10-text:var(--hw-text);--q10-text-muted:var(--hw-muted);--q10-line:var(--hw-border)}
body.theme-halloween .app-shell .course-charge-summary{background:var(--surface-inset)!important}
body:not(.theme-halloween):not(.theme-christmas) .login-hero{max-width:48%;z-index:2}
body:not(.theme-halloween):not(.theme-christmas) .login-hero h1{font-size:clamp(42px,4.4vw,70px);line-height:1;overflow-wrap:normal}
body:not(.theme-halloween):not(.theme-christmas) .login-hero p{font-size:14px}
@media(max-width:800px){body:not(.theme-halloween):not(.theme-christmas) .login-visual{min-height:540px}body:not(.theme-halloween):not(.theme-christmas) .login-hero{position:absolute;top:145px;left:7%;max-width:45%}.normal-login-message{bottom:90px}}
@media(max-width:550px){body:not(.theme-halloween):not(.theme-christmas) .login-visual{min-height:420px}body:not(.theme-halloween):not(.theme-christmas) .login-hero{max-width:86%;top:145px}.normal-login-message{display:none}}
body.theme-halloween :is(.chief-command-hero,.chief-review-hero,.forum-welcome,.profile-gallery-intro){background:linear-gradient(120deg,#24212e,#40313e)!important;color:var(--hw-text)!important}
body.theme-halloween :is(.chief-command-hero,.chief-review-hero,.forum-welcome,.profile-gallery-intro) p{color:#ded4e3!important}

