:root[data-style="halloween"][data-halloween-edition="midnight"] {
  --hw-night:#251f2c; --hw-paper:#f6e8ce; --hw-ink:#402d32; --hw-gold:#d0a363;
  --hw-tear:polygon(0 1%,5% 0,11% 1.4%,18% .4%,24% 1%,31% 0,39% 1.2%,46% .3%,54% 1%,62% 0,70% 1.2%,78% 0,85% 1%,93% 0,100% 1%,99.5% 18%,100% 35%,99.4% 52%,100% 70%,99.5% 86%,100% 99%,92% 100%,83% 99%,74% 100%,65% 99%,55% 100%,46% 99%,35% 100%,25% 99%,15% 100%,7% 99%,0 100%,.5% 82%,0 65%,.6% 47%,0 29%);
  --hw-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='none'%3E%3Cpath d='M0 6L28 3 49 8 74 1 96 5 120 2 143 9 170 4 203 8 230 1 263 6 291 2 321 8 356 1 393 7 420 2 447 6 479 1 511 7 540 2 570 8 609 2 647 6 683 1 710 7 741 2 777 8 810 1 847 5 880 2 909 8 941 1 971 6 1000 3 997 61 1000 115 996 172 1000 230 997 290 1000 351 996 414 1000 479 997 536 1000 593 973 598 943 592 911 599 875 594 843 600 810 593 776 599 740 594 707 600 675 593 642 599 611 594 576 600 543 593 508 599 471 594 436 600 400 593 366 599 332 594 300 600 265 593 234 599 202 594 169 600 133 593 102 599 67 594 33 600 1 594 4 538 0 480 4 419 0 359 3 300 0 241 4 180 0 121 4 62Z'/%3E%3C/svg%3E");
  --surface:#fff4df; --ink:#402d32; --muted:#78605c; --line:#c8ac88;
  background:var(--hw-night);
}
:root[data-style="halloween"][data-halloween-edition="midnight"] body { background:#251f2c; color:#f4e5cf; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .shell { background:transparent; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .main { max-width:1360px; padding:24px 28px 110px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .topbar { background:#211c25; color:#f5e6ca; border-bottom:1px solid #9e7956; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-toolbar { color:#e6c492; border-color:#695347; margin-bottom:20px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-motion-control { color:#e6c492; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-route-heading { color:#f1d3a6; border-color:#79604d; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page { color:#f4e5cf; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .page-heading h1 { color:#f5e3c4; font-family:Georgia,'Songti SC',serif; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .page-heading p { color:#d4b89b; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .primary-button { background:#c95027; border-color:#973b28; color:#fff8e9; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .secondary-button { color:#593d36; background:#fff0d2; border-color:#b18a5d; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(button,input,textarea,select):focus-visible,
.hw-v32-buddy:focus-visible { outline:3px solid #f3c978; outline-offset:4px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .personal-appearance-control { color:#ead1a9; border-color:#705547; }
.hw-theatre { position:relative; isolation:isolate; min-height:500px; overflow:visible; background:#251b2d; }
.hw-theatre-scene { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; pointer-events:none; }
.hw-title-paper { position:relative; isolation:isolate; width:58%; max-width:700px; margin:0 0 0 4%; padding:42px 40px 36px; color:var(--hw-ink); }
.hw-title-paper::before { content:''; position:absolute; z-index:-1; inset:22px -5px 0; background:#f7e6bd url('/theme-packs/halloween-2026/scrapbook/newspaper.webp') center/1200px; background-blend-mode:soft-light; clip-path:var(--hw-tear); transform:rotate(-.5deg); }
.hw-title-paper .eyebrow { color:#8a5548; font-size:10px; margin:0 0 12px; }
.hw-title-paper h1 { font:700 64px/1.05 Georgia,'Songti SC',serif; letter-spacing:0; margin:0; color:#432c36; }
.hw-edition { font:italic 28px/1.3 Georgia,serif; color:#974b38; margin:9px 0 17px; }
.hw-theatre-description { font-size:15px; line-height:1.7; margin:0 0 18px; }
.hw-title-paper .search-wrap { padding-left:12px; background:#fff9e9; border:1px solid #b18e66; border-radius:4px; }
.hw-title-paper .search-summary { color:#745f50; }
.hw-title-paper .hero-actions { gap:10px; }
.hw-title-paper .hero-actions button { min-height:46px; padding:10px 16px; font-size:14px; }
.hw-title-paper .hero-actions .halloween-icon { width:24px; height:24px; }
.hw-title-paper .hero-actions svg:not(.halloween-icon) { width:17px; height:17px; }
.hw-official-fox { position:absolute; right:28px; bottom:18px; border:0; background:none; width:84px; height:84px; padding:0; cursor:pointer; }
.hw-official-fox img { width:100%; height:100%; object-fit:contain; }
.hw-story-index { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:20px 0 30px; }
.hw-story-page { position:relative; isolation:isolate; background:none; border:0; padding:22px 16px; min-height:125px; color:var(--hw-ink); display:flex; flex-direction:column; align-items:center; gap:7px; cursor:pointer; filter:drop-shadow(0 5px 2px #09070c55); }
.hw-story-page::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--hw-paper); clip-path:var(--hw-tear); }
.hw-story-page>span svg { width:29px; height:29px; color:#813f4c; }
.hw-story-page strong { font:700 18px/1.3 Georgia,'Songti SC',serif; }
.hw-story-page small { font:9px/1.4 system-ui; color:#8a6a52; }
.hw-v32-home .midnight-section { border-color:#705347; padding:30px 0; }
.hw-v32-home .midnight-section .eyebrow { color:#d6aa73; }
.hw-v32-home .section-title { color:#f5e5cb; align-items:center; }
.hw-v32-home .section-title h2 { color:inherit; font:700 26px/1.3 Georgia,'Songti SC',serif; }
.hw-v32-home .section-title .link-button { color:#f2c181; max-width:40%; white-space:normal; text-align:left; }
.hw-v32-home :is(.empty-state,.community-footer) { color:#dfc4a7; }
.hw-v32-home .community-footer { border-color:#705347; flex-wrap:wrap; padding-bottom:24px; }
.hw-v32-home .community-footer .link-button { color:#f2c181; }
.hw-dossier-grid,:root[data-style="halloween"][data-halloween-edition="midnight"] #search-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-dossier.question-row,:root[data-style="halloween"][data-halloween-edition="midnight"] #search-results .hw-dossier.question-row { display:flex; flex-direction:column; position:relative; isolation:isolate; min-width:0; min-height:245px; gap:0; padding:26px; border:0; background:none; border-radius:0; color:var(--hw-ink); box-shadow:none; filter:drop-shadow(0 5px 2px #09070c55); }
.hw-dossier::before,.hw-dossier::after { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:var(--hw-paper); clip-path:var(--hw-tear); mask-image:var(--hw-mask); mask-size:100% 100%; }
.hw-dossier::after { z-index:-2; inset:3px -3px -3px 3px; background:#b6a17f; }
.hw-dossier[data-tear="1"] { --hw-tear:polygon(0 0,8% 1.5%,19% 0,32% 1%,44% 0,58% 2%,70% .5%,84% 0,100% 1%,99% 30%,100% 64%,99% 99%,85% 100%,70% 98.5%,55% 100%,40% 99%,25% 100%,10% 99%,0 100%,1% 72%,0 40%); }
.hw-dossier[data-tear="2"] { --hw-tear:polygon(1% 1%,17% 0,30% 1.3%,43% 0,56% 1.8%,70% 0,86% 1%,100% 0,99% 22%,100% 51%,99% 78%,100% 100%,80% 99%,66% 100%,50% 99%,35% 100%,16% 98.8%,0 100%,1% 77%,0 53%,1% 29%); }
.hw-dossier[data-paper-tone="grid"]::before { background-color:#f3eddc; background-image:linear-gradient(#8caeb633 1px,transparent 1px),linear-gradient(90deg,#8caeb633 1px,transparent 1px); background-size:21px 21px; }
.hw-dossier[data-paper-tone="rose"]::before { background:#eed8d4; }
.hw-dossier[data-paper-tone="news"]::before { background:#e9ddc4 url('/theme-packs/halloween-2026/scrapbook/newspaper.webp') center/1050px; background-blend-mode:soft-light; }
.hw-dossier[data-paper-tone="kraft"]::before { background:#dfbd91; }
.hw-dossier[data-paper-tone="ink"]::before { background:#d8d9cf; }
.hw-dossier[data-paper-tone="tape"]::before { background:#fff1d9; }
.hw-dossier[data-paper-tone="tape"] .hw-paper-corner { width:62px; height:14px; right:30px; top:-3px; background:#ad777966; border:0; transform:rotate(3deg); }
.hw-dossier-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; align-items:center; }
.hw-dossier .row-topic { color:#704054; font-size:10px; }
.hw-status-stamp { color:#8c5239; border:1px solid currentColor; font:700 9px/1.3 Georgia,serif; padding:3px 5px; transform:rotate(-5deg); }
.hw-status-stamp.is-answered { color:#3c6b5a; }
.hw-dossier h3 { font:700 20px/1.5 Georgia,'Songti SC',serif; margin:17px 0 10px; overflow-wrap:anywhere; }
.hw-dossier-context { font-size:13px; line-height:1.75; margin:0 0 15px; overflow-wrap:anywhere; white-space:pre-wrap; }
.hw-dossier-status { font-size:10px; color:#775b4d; margin-top:auto; }
.hw-dossier-footer { display:flex; gap:10px; justify-content:space-between; flex-wrap:wrap; align-items:center; margin-top:18px; }
.hw-dossier-footer button { max-width:100%; white-space:normal; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-dossier .row-main { display:flex; width:auto; flex:none; align-items:center; gap:8px; color:#6b3f48; font-size:12px; }
.hw-paper-corner { position:absolute; top:0; right:0; border-width:0 24px 24px 0; border-style:solid; border-color:transparent #aa9577 #dac7a7 transparent; pointer-events:none; transform-origin:right top; }
.hw-letter-invite { min-height:190px; margin:35px 10px 10px; position:relative; isolation:isolate; width:calc(100% - 20px); border:1px solid #b08a65; background:#cc9a7b; box-shadow:0 7px 0 #100b1466; padding:0; cursor:pointer; color:#59382e; }
.hw-letter-sheet { position:absolute; inset:12px 8% auto; height:140px; padding:24px 20px; background:#fff0cd; font:700 21px/1.5 Georgia,'Songti SC',serif; transform:translateY(-30px); }
.hw-letter-sheet small { display:block; font:12px/1.5 system-ui; margin-top:12px; }
.hw-letter-flap { position:absolute; inset:0; background:#e3b797; clip-path:polygon(0 0,100% 0,50% 63%); transform-origin:center top; }
.hw-letter-seal { position:absolute; z-index:2; left:calc(50% - 25px); top:70px; width:50px; height:50px; border:5px double #c46d5b; border-radius:50%; background:#983c42; color:#f1c495; display:grid; place-items:center; font:700 22px Georgia,serif; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-v32-home .learning-note-feed article { color:#edd7b9; border-color:#705347; }
.hw-v32-home .learning-note-feed .link-button,.hw-v32-home [data-learning-feed]>.link-button { color:#f2c181; max-width:100%; white-space:normal; text-align:left; overflow-wrap:anywhere; }
.hw-v32-home .midnight-cabinet { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hw-v32-home .midnight-niche { background:#43343a; color:#f4dbb3; border:5px double #ad8258; border-radius:55px 55px 4px 4px; clip-path:none; padding-top:28px; }
.hw-v32-home .midnight-niche.is-owned { background:#62473d; border-color:#d3a668; }
.hw-v32-home .midnight-niche.is-locked { opacity:.8; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .topic-strip { padding:8px 0 20px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .topic-strip button { background:#f1dfbb; color:#5e3b40; border:1px solid #a67a55; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .topic-strip button.selected { background:#923d4d; color:#fff5dc; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page[data-seasonal-view="explore"] .bank-search { max-width:900px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page[data-seasonal-view="explore"] .search-summary { color:#dcc3a7; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(.ask-form,.profile-form,.contributor-form,.learning-task-detail,.profile-heading,.growth-items,.detail,.discussion-layout>section,.ops-metrics,.workspace-layout,.desk-sidebar,.pipeline-summary,.reward-item,.my-question,.draft-card) { color:var(--hw-ink); }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(.ask-form,.profile-form,.learning-task-detail,.profile-heading,.detail,.desk-sidebar) { background:var(--hw-paper); padding:28px; border:0; border-top:3px solid #b78d61; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .ask-form { max-width:880px; position:relative; border:0; border-top:8px solid #b78d61; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .ask-form { isolation:isolate; background:none; border-left:4px double #b78d61; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .ask-form::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--hw-paper); mask-image:var(--hw-mask); mask-size:100% 100%; pointer-events:none; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .ask-form::after { content:''; position:absolute; bottom:14px; right:16px; background:url('/theme-packs/halloween-2026/scrapbook/ghost-buddy-v32.webp') center/contain no-repeat; width:35px; height:40px; pointer-events:none; opacity:.6; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(input,textarea,select) { color:var(--hw-ink); background-color:#fff9e9; border-color:#bca382; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .detail { max-width:980px; margin:auto; overflow-wrap:anywhere; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .detail-header h1 { color:#4d303a; font-size:32px; line-height:1.45; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .detail[data-paper-tone="grid"] { background-color:#f2e9d7; background-image:linear-gradient(#8caeb622 1px,transparent 1px),linear-gradient(90deg,#8caeb622 1px,transparent 1px); background-size:24px 24px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .detail-section .hw-dossier-grid { grid-template-columns:1fr; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .learning-tasks { gap:22px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .learning-tasks>nav button { background:#f4e4c7; color:#573a3c; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .learning-tasks>nav button.selected { border-color:#dd9f50; background:#e9c894; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .learning-task-detail blockquote { background:#fff5df; border-left:3px solid #a25044; padding:18px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(.workspace-header,.workspace-actions,.workspace-list,.workspace-editor,.workspace-status,.answer-review-list article) { color:var(--hw-ink); background:#f7ead3; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .desk-nav button { color:#f3dfc0; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .desk-nav button.selected { color:#4c3037; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .desk-heading p,
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .desk-main>.hint { color:#d9bea0; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .reward-item { background:#f3e2c3; border-radius:4px; border-top:3px solid #ad8258; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-envelope { background:#d4a586; color:#573b35; border:1px solid #b18062; box-shadow:0 7px 0 #17101a55; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-envelope>summary { background:#e7bea1; min-height:125px; padding:18px 65px 28px 22px; position:relative; isolation:isolate; }
.hw-envelope-flap { position:absolute; inset:40px 0 0; z-index:-1; background:#f0cfac; clip-path:polygon(0 0,100% 0,50% 87%); transform-origin:top; pointer-events:none; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-envelope[open] .hw-envelope-flap { transform:rotateX(178deg); opacity:.4; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-envelope form { margin:0 12px 14px; padding:22px; background:#fff1d6; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-page .page-heading p { color:#d4b89b; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-post { background:#f1e1c3; color:#4b3435; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-tabs button { background:#f4e0bb; color:#613941; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-tabs button[aria-pressed="true"] { background:#8a3f4d; color:#fff5df; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-layout>section>.empty-state { color:#d9bfa0; }
.hw-v32-buddy { position:fixed; z-index:23; left:22px; bottom:24px; width:68px; height:80px; padding:0; border:0; border-radius:0; background:none; touch-action:none; user-select:none; cursor:grab; filter:drop-shadow(0 5px 3px #08060b80); }
.hw-v32-buddy img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.hw-v32-buddy.is-dragging { cursor:grabbing; }
.hw-v32-bubble { position:fixed; z-index:25; max-width:min(260px,calc(100vw - 24px)); padding:16px; border:2px solid #ad7955; border-radius:6px; background:#fff0cf; color:#57373e; font-size:13px; line-height:1.6; pointer-events:none; box-shadow:0 6px 20px #100b1466; }
body:has(dialog[open]) :is(.hw-v32-buddy,.hw-v32-bubble) { visibility:hidden; }
body:has(input:focus,textarea:focus,select:focus) :is(.hw-v32-buddy,.hw-v32-bubble) { visibility:hidden; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] :is(.hw-story-page,.hw-dossier,.hw-letter-invite) { transition:transform 200ms ease; }
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] :is(.hw-story-page,.hw-dossier):hover { transform:translateY(-4px); }
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] .hw-paper-corner { transition:transform 260ms ease; }
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] .hw-dossier:is(:hover,:focus-within) .hw-paper-corner { transform:rotate(-12deg); }
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] :is(.hw-letter-flap,.hw-envelope-flap) { transition:transform 420ms ease,opacity 420ms ease; }
  :root[data-style="halloween"][data-halloween-edition="midnight"][data-halloween-motion="on"] .hw-letter-invite:is(:hover,:focus-visible) .hw-letter-flap { transform:rotateX(165deg); }
}
@media(max-width:1024px) {
  .hw-title-paper { width:66%; padding:38px 30px 32px; }
  .hw-title-paper h1 { font-size:54px; }
  .hw-dossier-grid,:root[data-style="halloween"][data-halloween-edition="midnight"] #search-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hw-story-index { gap:12px; }
}
@media(max-width:760px) {
  :root[data-style="halloween"][data-halloween-edition="midnight"] .main { padding:18px 16px 110px; }
  .hw-theatre { min-height:0; padding:0 0 170px; }
  .hw-theatre-scene { top:auto; height:220px; object-position:right bottom; }
  .hw-title-paper { width:calc(100% - 28px); max-width:none; margin:0 14px; padding:34px 26px 24px; }
  .hw-title-paper::before { top:14px; }
  .hw-title-paper h1 { font-size:46px; }
  .hw-edition { font-size:26px; }
  .hw-official-fox { width:64px; height:64px; right:16px; bottom:12px; }
  .hw-story-index { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
  .hw-story-page { min-height:96px; padding:15px 12px; }
  .hw-story-page strong { font-size:16px; }
  .hw-story-page>span svg { width:24px; height:24px; }
  .hw-story-page small { display:none; }
  .hw-v32-home .midnight-cabinet { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hw-v32-home .midnight-niche { display:flex; padding:26px 12px; gap:5px; text-align:center; }
  .hw-v32-home .midnight-niche strong { text-align:center; }
  :root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page :is(.ask-form,.profile-form,.learning-task-detail,.profile-heading,.detail,.desk-sidebar) { padding:22px 18px; }
  :root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .detail-header h1 { font-size:25px; }
  .hw-v32-home .section-title h2 { font-size:23px; }
}
@media(max-width:520px) {
  .hw-dossier-grid,:root[data-style="halloween"][data-halloween-edition="midnight"] #search-results { grid-template-columns:minmax(0,1fr); }
  .hw-title-paper { padding:30px 20px 22px; }
  .hw-title-paper h1 { font-size:40px; }
  .hw-edition { font-size:22px; }
  .hw-theatre-description { font-size:13px; }
  .hw-title-paper .hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .hw-title-paper .hero-actions button { font-size:12px; padding:9px 7px; white-space:normal; justify-content:center; }
  .hw-title-paper .hero-actions .halloween-icon { width:20px; height:20px; flex:none; }
  .hw-title-paper .hero-actions svg { flex:none; }
  .hw-v32-home .midnight-section .section-title { align-items:start; }
  .hw-v32-home .midnight-section .section-title>.link-button { font-size:11px; }
  .hw-v32-home .midnight-section .eyebrow { font-size:9px; }
  .hw-v32-buddy { width:58px; height:68px; }
  :root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .discussion-envelope form { padding:15px; margin:0 8px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .hw-v32-buddy,.hw-dossier,.hw-story-page,.hw-letter-flap,.hw-envelope-flap { transition:none!important; animation:none!important; }
}
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-file-sticker { position:absolute; top:-12px; left:18px; width:28px; height:28px; pointer-events:none; transform:rotate(-9deg); }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-v32-home .learning-note-feed :is(p,small) { color:#edd7b9; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .pilot-avatar-section>:is(.hint,.link-button),
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .pilot-avatar-section .section-title .link-button,
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .home-section>.section-title>.link-button,
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .avatar-preview>p,
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-keepsakes .hint,
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page-footer,
:root[data-style="halloween"][data-halloween-edition="midnight"] .desk-nav>p,
:root[data-style="halloween"][data-halloween-edition="midnight"] .desk-nav button:not(.selected) span { color:#d9bea0; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .halloween-page .growth-items { background:var(--hw-paper); padding:4px 20px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .fox-avatar-options label:has(:checked) { color:var(--hw-ink); }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-file-sticker svg { width:100%; height:100%; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-heading-charm { display:inline-flex; vertical-align:middle; width:27px; height:30px; margin-right:9px; pointer-events:none; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-heading-charm svg { width:100%; height:100%; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-dossier[data-paper-tone="rose"]::before { background-image:linear-gradient(#efd5c6e8,#efd5c6e8),url('/theme-packs/halloween-2026/scrapbook/pastel-pattern-v32.webp'); background-size:auto,180px; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-ephemera { flex:0 0 130px; width:130px; max-width:100%; height:88px; margin:16px 0 0 auto; overflow:hidden; pointer-events:none; mix-blend-mode:multiply; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-ephemera img { width:100%; height:100%; object-fit:contain; }
:root[data-style="halloween"][data-halloween-edition="midnight"] .hw-candy-sticker { position:absolute; bottom:3px; right:8px; width:65px; height:63px; object-fit:contain; pointer-events:none; transform:rotate(8deg); }
@media(max-width:520px) {
  :root[data-style="halloween"][data-halloween-edition="midnight"] .hw-heading-charm { width:20px; height:23px; margin-right:6px; }
  :root[data-style="halloween"][data-halloween-edition="midnight"] .hw-ephemera { display:none; }
  :root[data-style="halloween"][data-halloween-edition="midnight"] .hw-candy-sticker { width:48px; height:47px; }
}
