/* Halloween-only room architecture. Existing semantic controls remain intact. */
@media screen {
.hall-room-sign[hidden],.hall-card-art[hidden],.hall-card-title[hidden],.hall-chapter[hidden],.hall-emblem[hidden]{display:none!important}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] {
 --hall-ink:#130823;--hall-bone:#fff0d8;--hall-rim:#8f61af;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is([data-hall-room="s"],[data-hall-card="s"]){
 --room-art:url('/da-hall-room-s.webp');--room-glow:#ceb2ff;--room-shadow:#392054;--room-dark:#1a102a;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is([data-hall-room="m"],[data-hall-card="m"]){
 --room-art:url('/da-hall-room-m.webp');--room-glow:#ffc67d;--room-shadow:#5e292d;--room-dark:#25121c;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is([data-hall-room="c"],[data-hall-card="c"]){
 --room-art:url('/da-hall-room-c.webp');--room-glow:#b9ebbd;--room-shadow:#204637;--room-dark:#14231f;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is([data-hall-room="h"],[data-hall-card="h"]){
 --room-art:url('/da-hall-room-h.webp');--room-glow:#ffb6e6;--room-shadow:#522447;--room-dark:#25132d;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room="feature"]{
 --room-art:var(--hall-parade);--room-glow:#ffc5a0;--room-shadow:#512741;--room-dark:#23112e;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room="music"]{
 --room-art:var(--hall-castle);--room-glow:#ffd492;--room-shadow:#572749;--room-dark:#22112d;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] .site-layout .hall-room-sign {
 display:flex;gap:.8rem;align-items:center;margin:0 0 .8rem;padding:.15rem .2rem;color:var(--hall-bone);
}
.hall-room-sign>span{
 flex:none;display:grid;place-items:center;width:2.6rem;aspect-ratio:1;border:1px solid #df93f6;
 border-radius:50% 50% 42% 42%;color:#ffd98c;background:#2d1646;text-shadow:0 0 .5rem #f98d64;
}
.hall-room-sign div{min-width:0}
.hall-room-sign div>span{font-size:.7rem;font-weight:800;letter-spacing:.18em;color:#e2c2ff}
.hall-room-sign h2{font:700 clamp(1.3rem,3vw,2rem)/1.06 Georgia,serif;margin:.16rem 0;overflow-wrap:anywhere}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .site-layout .assistant-tabs.assistant-launchers{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.55rem,1.45vw,1.3rem);margin-bottom:1.35rem;
}
html[data-da-guest][data-da-look="halloween"] body[data-da-view="home"] .site-layout .assistant-tabs.assistant-launchers{grid-template-columns:minmax(0,1fr)}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #hall-room-sign+.assistant-launchers>button[data-hall-card] {
 position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto auto 1fr;justify-items:start;align-content:start;
 width:100%;max-width:none;min-width:0;min-height:clamp(10.75rem,18vw,14.5rem);
 padding:clamp(.7rem,1.65vw,1.35rem)!important;gap:.4rem;
 border:1px solid var(--room-glow);border-radius:2.8rem 2.8rem .95rem .95rem / 2rem 2rem .95rem .95rem;
 background:linear-gradient(76deg,var(--room-dark) 8%,#170d24b8 49%,#1c0c280f 100%),var(--room-art) center/cover,var(--room-dark);
 color:#fff8ed;text-shadow:0 1px 5px #10061c;text-align:left;
 box-shadow:inset 0 0 .75rem #0c062895,0 .52rem 1rem #0e0719ab;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card] .assistant-emblem{display:none}
html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card] .assistant-name {
  color:var(--hall-bone);font:700 clamp(1.19rem,2.45vw,1.86rem)/1.05 Georgia,serif;
  overflow-wrap:anywhere;text-shadow:0 .12rem .35rem #15091d;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card] .assistant-name small {
 color:#fff8ed;max-width:17ch;font:600 .82rem/1.37 system-ui;
 overflow-wrap:break-word;margin:.33rem 0 0;text-shadow:0 1px 6px #16091d;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card] .hall-card-art{
 display:flex;align-items:start;justify-content:space-between;gap:.4rem;width:100%;color:var(--room-glow);
}
.hall-emblem{display:inline-block;inline-size:2rem;block-size:2rem;flex:none;vertical-align:middle}
.hall-card-art .hall-emblem {
 width:clamp(2.3rem,4.45vw,4rem);height:auto;aspect-ratio:1;
 padding:.16rem;border-radius:50%;background:#21152add;border:1px solid var(--room-glow);
 filter:drop-shadow(0 0 .5rem #1b0a19);transition:transform .23s ease;
}
.hall-card-no {
 display:grid;place-items:center;min-width:1.7rem;min-height:1.55rem;font:700 .68rem/1 system-ui;
 color:var(--room-glow);background:#160a26ca;border:1px solid currentColor;border-radius:60%;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card] .hall-card-title{
 align-self:end;display:block;max-width:100%;padding:.23rem .55rem;border:1px solid var(--room-glow);border-radius:.15rem .7rem .15rem .7rem;
 background:#1b1024df;color:var(--room-glow);font:700 .69rem/1.15 system-ui;white-space:normal;overflow-wrap:break-word;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #hall-room-sign+.assistant-launchers>button[data-hall-card][aria-current="true"] {
 outline:2px solid var(--room-glow);outline-offset:2px;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .workspace>.study>.feature-launchers.feature-launchers-compact {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .workspace>.study>.feature-launchers.feature-launchers-compact>.feature-launcher {
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:end;align-content:center;justify-items:start;
 min-height:5.1rem;padding:.55rem .65rem;gap:.2rem;border-radius:.4rem 1.2rem .4rem 1.2rem;
 background:radial-gradient(ellipse at 28% 18%,#613579,transparent 56%),linear-gradient(145deg,#29143f,#1c102d);
 border-color:#a765bf;color:#fff6e3;font-size:.81rem;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] .feature-launcher .hall-emblem{grid-column:1;grid-row:1;width:1.45rem;height:1.45rem}
html[data-da-look="halloween"][data-da-event="halloween-day"] .feature-launcher strong{grid-column:1;grid-row:2;display:block;white-space:normal;overflow-wrap:break-word}
html[data-da-look="halloween"][data-da-event="halloween-day"] .feature-launcher .feature-button-arrow{grid-column:2;grid-row:2;font-size:.74rem;color:#ffcc88}
html[data-da-look="halloween"][data-da-event="halloween-day"] :is(#academic-title,#music-title) .hall-emblem{width:1.8rem;height:1.8rem;margin-right:.48rem}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #academic-panel .calendar-head{
 display:grid;grid-template-columns:2.35rem minmax(0,1fr) 2.35rem;gap:.5rem;align-items:center;
 padding:.55rem;border:1px solid #ab72b8;border-radius:.5rem 1rem;background:#180d2f;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #academic-panel #calendar-month{font:700 clamp(1rem,2.3vw,1.4rem)/1.15 Georgia,serif}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #academic-panel .calendar-head button{border-radius:50%;justify-self:center}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #academic-panel .calendar-date{border-radius:.28rem .68rem .28rem .68rem}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #music-panel .music-tabs{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:0;background:none;border:0;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #music-panel .music-tabs::before{display:none}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #music-panel .music-tabs button{border-radius:.3rem .95rem;padding:.65rem .3rem}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is(#sila-workspace,#m-workspace,#c-workspace,#h-space,#feature-dialog,#mobile-music-dialog)[data-hall-room] :is(.sila-room-header,.h-topbar,.feature-dialog-heading,.mobile-music-heading) {
 position:relative;isolation:isolate;min-width:0;
 background:linear-gradient(95deg,var(--room-dark) 5%,#1a1029ca 46%,#1b102371 82%),var(--room-art) 57% 46%/cover,var(--room-dark);
 background-color:var(--room-dark);border-bottom:1px solid var(--room-glow);color:#fff6de;
 box-shadow:inset 0 -.65rem 1.65rem #10071964;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room] :is(.sila-room-header,.feature-dialog-heading,.mobile-music-heading){
 padding-block:.58rem .75rem;padding-inline:clamp(.7rem,2vw,1.5rem);flex-wrap:wrap;gap:.4rem .7rem;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room] .hall-chapter{
 flex:1 0 100%;grid-column:1/-1;display:flex;align-items:center;gap:.42rem;min-width:0;
 font:800 .69rem/1.2 system-ui;letter-spacing:.115em;text-transform:uppercase;color:var(--room-glow);text-shadow:0 1px 4px #11071d;
}
.hall-chapter .hall-emblem{width:1.35rem;height:1.35rem}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room] .sila-room-brand{min-width:0}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room] .sila-room-brand h2{font-family:Georgia,serif;white-space:normal;overflow-wrap:anywhere}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] [data-hall-room] .sila-room-brand>span:first-child{display:none}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is(#sila-workspace,#m-workspace,#c-workspace,#feature-dialog)[open] {
 border-radius:clamp(.85rem,2vw,1.7rem) clamp(.85rem,2vw,1.7rem) .65rem .65rem;
 animation:hall-portal .39s cubic-bezier(.18,.78,.27,1) both;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is(#sila-workspace,#m-workspace,#c-workspace,#feature-dialog)[open] :is(.sila-room-header,.feature-dialog-heading) {
 animation:hall-chapter-reveal .54s ease both;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #sila-workspace :is(.sila-reader-toolbar,.sila-chat-intro) {
 border-bottom:1px solid #cdadea85;background:linear-gradient(120deg,#2b1e46,#3a2059);
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #sila-workspace .sila-reader-scroll{
 background:linear-gradient(180deg,#281939dd,#1b102eea),var(--room-art) center/cover;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #sila-workspace .sila-mag-stage{
 border-radius:.55rem;border:1px solid #cba9ec8a;box-shadow:0 .55rem 1.2rem #130819a1;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #sila-workspace #sila-chat-pane{
 background:radial-gradient(ellipse at 100% 0%,#634081,transparent 58%),#211234;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #m-workspace:has(#m-form) .assistant-workspace-body {
 background:linear-gradient(180deg,#291322b4,#291322f6 28rem),var(--room-art) top center/100% auto no-repeat,#291322;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #m-workspace :is(#m-form,#m-output) {
 background:#341d2d;color:#fff3df;border:1px solid #eeb879a1;border-radius:.42rem 1.25rem .42rem 1.25rem;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #m-workspace #m-form :is(h3,label,legend,summary,p,small){color:#fff1db}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #m-workspace #m-customize{background:#241524;border-color:#d28d64}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #m-workspace .m-preview {background:#fff5e2;color:#38271c;}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #c-workspace .assistant-workspace-body {
 background:linear-gradient(180deg,#16262558,#142621d6 22rem),var(--room-art) center top/cover no-repeat,#172721;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #c-workspace :is(#c-search,#c-filter,#c-note-form){border-color:#91bd97}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #c-workspace :is(#c-new-note,#c-upload,#c-save-last) {
 min-height:3rem;box-shadow:inset 0 0 .65rem #b3f6af29;border-radius:1rem .35rem 1rem .35rem;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"]:not(.h-game-mode) #h-space .h-content{
 background:linear-gradient(145deg,#21112baa,#180f25e5 30rem),var(--room-art) center top/cover fixed;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #h-space:not([hidden]) .h-library-card{
 border-radius:1.3rem 1.3rem .45rem .45rem;border-color:#b76aab;background:linear-gradient(140deg,#3c1d4a,#221431);box-shadow:0 .6rem 1.05rem #160c22aa;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #h-space .h-card-action{
 margin-top:auto;padding:.38rem .55rem;border:1px solid #be81ab;border-radius:.33rem .72rem;background:#35173f;color:#ffd7ed;
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #h-space .h-library-card:hover .h-cover-play{
 background:radial-gradient(circle,#ac4b8752,transparent 68%);
}
html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .hall-click{animation:hall-press .54s cubic-bezier(.2,.7,.25,1) both}
@media (hover:hover) {
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #hall-room-sign+.assistant-launchers>button[data-hall-card]:hover {
  filter:brightness(1.12);border-color:var(--room-glow);box-shadow:inset 0 0 .7rem #f0b9ff42,0 0 .9rem color-mix(in srgb,var(--room-glow) 57%,transparent);
 }
 html[data-da-look="halloween"][data-da-event="halloween-day"] #hall-room-sign+.assistant-launchers>button[data-hall-card]:hover .hall-emblem{transform:translateY(-3px) rotate(-9deg) scale(1.07)}
}
@keyframes hall-portal {from{opacity:0;transform:translateY(13px) scale(.985);clip-path:inset(4% 4% 8% 4% round 1.5rem)}to{opacity:1;transform:none;clip-path:none}}
@keyframes hall-chapter-reveal {from{background-position:center,75% 48%;filter:brightness(.74)}to{background-position:center,57% 46%;filter:none}}
@keyframes hall-press {0%{transform:scale(.972);filter:brightness(1.23)}55%{transform:scale(1.012);filter:brightness(1.07)}100%{transform:none;filter:none}}
@media (max-width:430px){
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] #hall-room-sign+.assistant-launchers>button[data-hall-card]{min-height:10.85rem}
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .workspace>.study>.feature-launchers.feature-launchers-compact>.feature-launcher {font-size:.75rem;padding:.4rem;gap:.12rem;grid-template-columns:minmax(0,1fr)}
 html[data-da-look="halloween"][data-da-event="halloween-day"] .feature-launcher .feature-button-arrow{display:none}
}
@media (max-width:310px){
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .site-layout .assistant-tabs.assistant-launchers{grid-template-columns:minmax(0,1fr)}
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] .workspace>.study>.feature-launchers.feature-launchers-compact {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 html[data-da-look="halloween"][data-da-event="halloween-day"] body[data-da-view="home"] :is(.hall-click,.hall-emblem,[data-hall-room][open],[data-hall-room] .sila-room-header,[data-hall-room] .feature-dialog-heading) {animation:none!important;transition:none!important}
}
}

@media screen and (prefers-reduced-motion:no-preference){
 html[data-da-look="halloween"][data-da-event="halloween-day"] #sila-workspace[open] .sila-room-body :is(.sila-reader-toolbar,.sila-chat-intro){animation:hall-book-light .58s .07s ease-out both}
 html[data-da-look="halloween"][data-da-event="halloween-day"] #m-workspace[open] .hall-chapter .hall-emblem{animation:hall-flask-rise .65s ease-out both}
 html[data-da-look="halloween"][data-da-event="halloween-day"] #c-workspace[open] .hall-chapter .hall-emblem{animation:hall-key-turn .62s cubic-bezier(.19,.7,.23,1) both}
 html[data-da-look="halloween"][data-da-event="halloween-day"] body:not(.h-game-mode) #h-space:not([hidden]) .h-library-card .h-card-details {animation:hall-ticket-slide .46s ease-out both}
 html[data-da-look="halloween"][data-da-event="halloween-day"] body:not(.h-game-mode) #h-space:not([hidden]) .h-library-card:nth-child(2n) .h-card-details{animation-delay:.09s}
}
@keyframes hall-book-light {0%{box-shadow:inset 0 0 0 #dbc1ff00}55%{box-shadow:inset 0 0 1.4rem #dcc2ff4c}100%{box-shadow:inset 0 0 0 #dbc1ff00}}
@keyframes hall-flask-rise {0%{transform:translateY(5px) scale(.83);opacity:.55}55%{transform:translateY(-3px) scale(1.1)}100%{transform:none;opacity:1}}
@keyframes hall-key-turn {from{transform:rotate(-48deg);opacity:.56}to{transform:none;opacity:1}}
@keyframes hall-ticket-slide {from{transform:translateY(6px);opacity:.62}to{transform:none;opacity:1}}
