/* Optional site chrome only. User artwork, liveries, map tiles and exports retain their colours. */
html[data-theme=halloween]{color-scheme:dark;--site-bg:#111015;--site-surface:#1b161e;--site-soft:#251d29;--site-fg:#fff5e9;--site-muted:#cdbcc7;--site-line:#4b394d;--site-brand:#f4a15b;--site-on-brand:#24140c;--site-hover:#352637;--site-shadow:#0005;--site-danger:#ffb4b4;--site-focus:#ffd4a5}
html[data-theme=halloween] body:where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-bg);color:var(--site-fg)}
html[data-theme=halloween] :is(.nav,.top,.card,.directory-card,.ops-card,.planning-card,.dashboard-tool-card,.marketplace-card,.route-card,.access-wrap,.welcome-preview,dialog,.publish-dialog,.section-card,.policy-navigation,.driver-nav,.company-management,.library-entry-list,.fleet-sort-controls,.fleet-view-toolbar,.colour-picker-popover,.rm-sidebar,.rm-header,.rm-toolbar,.rm-status,.rm-attribution):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-surface);color:var(--site-fg);border-color:var(--site-line)}
html[data-theme=halloween] :is(.company-hero,.sidebar,.canvas,.workbar,.empty,.pill,.home-features article,.dashboard-stat,.workflow-guide,.allocation-diagnostics,.allocation-missing,.policy-version,.admin-table thead,.fleet-modal thead,.rm-point-editor):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-soft);color:var(--site-fg);border-color:var(--site-line)}
html[data-theme=halloween] :is(h1,h2,h3,h4,h5,h6,label,summary,.brand-name,.editor-home,.editor-back,.policy-header,.close):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-fg)}
html[data-theme=halloween] :is(p,small,.hint,.muted,.eyebrow,.brand small,.card p,.ops-card p,.planning-card p,.policy-copy p,.site-footer p,.site-footer span):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-muted)}
html[data-theme=halloween] :is(button,.button):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-brand);color:var(--site-on-brand);border-color:var(--site-brand)}
html[data-theme=halloween] :is(button.secondary,.button.secondary,.ghost,.mini-actions button,.zoom button,.tabs button,.icon):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-surface);color:var(--site-fg);border-color:var(--site-line)}
html[data-theme=halloween] :is(.tabs button.active,.tabs [aria-selected=true],.planning-tabs [aria-pressed=true],.template.active):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){border-color:var(--site-brand);color:var(--site-brand);background:var(--site-soft)}
html[data-theme=halloween] :is(input:where(:not([type=checkbox])):where(:not([type=color])),textarea,select):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-surface);color:var(--site-fg);border-color:var(--site-line)}
html[data-theme=halloween] :is(input,textarea):where(:not(.sheet *)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *))::placeholder{color:var(--site-muted);opacity:1}
html[data-theme=halloween] :is(input[type=checkbox],input[type=radio]):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){accent-color:var(--site-brand)}
html[data-theme=halloween] :is(a,button,input,textarea,select,summary):focus-visible:where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){outline:3px solid var(--site-focus);outline-offset:3px}
html[data-theme=halloween] :is(.admin-table,.fleet-modal,.planning-content,.driver-root) :is(td,th):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-fg);border-color:var(--site-line)}
html[data-theme=halloween] :is(.admin-table,.fleet-modal,.driver-root) tbody tr:nth-child(even):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-soft)}
html[data-theme=halloween] :is(.form-error,.publish-error,.warning,.danger-text):where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-danger)}
html[data-theme=halloween] .brand-name span:where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-brand)}
html[data-theme=halloween] .leaflet-popup-content-wrapper:where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){background:var(--site-surface);color:var(--site-fg)}
html[data-theme=halloween] .leaflet-popup-content p:where(:not(.sheet)):where(:not(.sheet *)):where(:not(.export-sheet)):where(:not(.export-sheet *)):where(:not(.tm-device)):where(:not(.tm-device *)):where(:not(.tm-login-device)):where(:not(.tm-login-device *)):where(:not(.template)):where(:not(.template *)){color:var(--site-muted)}
/* The exported artwork keeps its own colours. */
@media print{html[data-theme=halloween] img[src="/logo.png"]{filter:none}html[data-theme=halloween] body{background:#fff;color:#17201d}}
.theme-control select{min-width:132px;max-width:100%}
html[data-theme=halloween] .directory-grid .card{background:var(--site-surface);border-color:var(--site-line)}

/* Structural containers are not decorative cards. */
html[data-theme=halloween] .site-footer.tf-footer,html[data-theme=halloween] .policy-copy{background:transparent;color:var(--site-fg)}
html[data-theme=halloween] .maintenance-card{background:linear-gradient(145deg,#211824,#17121b);border:1px solid var(--site-line);box-shadow:0 24px 70px #0004}
html[data-theme=halloween] .nav-account-menu,html[data-theme=halloween] .home-statistics-grid article{background:var(--site-surface);border-color:var(--site-line)}
html[data-theme=halloween] :is(.nav,.top,.card,.sidebar,.workbar,.maintenance-card){transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.halloween-transition{overflow:hidden;background:radial-gradient(ellipse at 70% 33%,#d5954326,transparent 42%),linear-gradient(135deg,#0a07104d,#0a0710a8);animation:tf-haunt-veil 2.1s ease both;contain:paint;isolation:isolate}
.halloween-transition .halloween-moon{position:absolute;left:calc(70vw - 80px);top:calc(33vh - 70px);filter:drop-shadow(0 0 20px #f0b46240);animation:tf-haunt-moon 2.1s cubic-bezier(.22,.6,.32,1) both}
.halloween-transition .halloween-bat{position:absolute;left:-140px;top:var(--bat-y);overflow:visible;animation:tf-haunt-flight 1.7s cubic-bezier(.3,.12,.48,1) var(--bat-delay) both}
@keyframes tf-haunt-veil{0%{opacity:0}18%,68%{opacity:1}100%{opacity:0}}
@keyframes tf-haunt-moon{0%{opacity:0;transform:translateY(18px) rotate(-7deg) scale(.92)}24%,65%{opacity:1;transform:translateY(0) rotate(0) scale(1)}100%{opacity:0;transform:translateY(-10px) scale(1.03)}}
@keyframes tf-haunt-flight{0%{transform:translate3d(0,0,0) rotate(-9deg) scale(var(--bat-scale));opacity:0}12%{opacity:1}75%{opacity:1}100%{transform:translate3d(calc(100vw + 280px),var(--bat-rise),0) rotate(7deg) scale(var(--bat-scale));opacity:0}}
@media(max-width:600px){.halloween-transition .halloween-bat{width:75px;height:44px}.halloween-transition .halloween-moon{width:120px;height:105px;left:calc(70vw - 60px);top:calc(33vh - 52px)}}
@media(prefers-reduced-motion:reduce){.halloween-transition{display:none!important}html[data-theme=halloween] :is(.nav,.top,.card,.sidebar,.workbar,.maintenance-card){transition:none}}
@media print{.halloween-transition{display:none!important}}
