.theme-toggle{border:1px solid #8b887a;border-radius:24px;padding:9px 14px;min-height:42px;white-space:nowrap;font:14px 'Yu Gothic',Meiryo,sans-serif;background:transparent;color:#303129;cursor:pointer}
.theme-toggle:focus-visible{outline:3px solid #ad8276;outline-offset:4px}
html[data-theme="dark"]{color-scheme:dark;--paper:#20221f;--ink:#eeeee3;--sage:#30362d;--coral:#d9ac99;background:#20221f}
html[data-theme="dark"] body{background:#20221f!important;color:#efeee5!important}
html[data-theme="dark"] :is(header,.page,.collection,.how,.scene-gallery,.faq){background:#20221f;color:#efeee5}
html[data-theme="dark"] :is(p,h1,h2,h3,h4,nav,.quiet,.eyebrow,.brand,.brand small,.hero-copy>p,.intro p,.lib p,.number,.notebook #active,.notebook #demo,.notebook-top,.notebook-caption,footer,details p,.end,.crumb,.spec th,.spec td,.step,.page .lead,.tag,.count,.field,.scene-heading,.scene-pair figcaption,.scene-pair figcaption span,.work-edition,.work-subtitle,.work-signature,.character-tone,.name-reading,.manuscript-controls,.exhibition-head,.product-copy .character-identity h1){color:#eeeee3!important}
html[data-theme="dark"] :is(.intro,.library,.end,.report-banner,.notice,.sample,.preview){background:#2b3029!important;border-color:#59604f!important}
html[data-theme="dark"] :is(.spec th,.spec td,.lib,.library-grid,.quote,.subnav,.steps article,details,.character-tone,.purchase-details){border-color:#626756!important}
html[data-theme="dark"] .notebook{background:#292e27;border-color:#6d725e;box-shadow:3px 5px 0 #151813,7px 12px 26px #0003}
html[data-theme="dark"] .notebook #demo{background:repeating-linear-gradient(transparent 0,transparent 39px,#9ba48c33 39.5px,#9ba48c33 40px)}
html[data-theme="dark"] .notebook:before{border-color:#b4887577}
html[data-theme="dark"] .hero{background:#20221f}
html[data-theme="dark"] .hero:after{background:linear-gradient(90deg,#20221f 0%,#20221ff0 15%,#20221f99 32%,transparent 60%)}
html[data-theme="dark"] .hero .poem{color:#fdf8e9!important;text-shadow:0 0 6px #222b1d,0 0 17px #222b1d}
html[data-theme="dark"] .hero-foot{background:#20221fdf;color:#eeeee3!important}
html[data-theme="dark"] .number{background:#20221fe8}
html[data-theme="dark"] :is(.theme-toggle,.text-button,.work-link,.manuscript-controls button){color:#eeeee3!important;border-color:#a8ae98;background:transparent}
html[data-theme="dark"] .button{background:#e2e5d6;color:#252a21;border-color:#a9b19b}
html[data-theme="dark"] .button.secondary{background:transparent;color:#eeeee3}
html[data-theme="dark"] :is(.nav-note,.status button){background:#353c30;color:#eeeee3!important}
html[data-theme="dark"] :is(.field input,.field textarea,.prompt-output){background:#292e27;color:#f1f1e8;border-color:#858b77}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#c0c5b4;opacity:1}
html[data-theme="dark"] .switch{background:#646c59}
html[data-theme="dark"] .switch:checked{background:#bac7a8}
html[data-theme="dark"] .switch:before{background:#fcfcf3}
html[data-theme="dark"] .manuscript-exhibition{background:transparent}
html[data-theme="dark"] .portrait-excerpt{background:#2a2e27;border-color:#7c816e}
html[data-theme="dark"] .portrait-excerpt .excerpt-prose p{color:#eeeee3!important}
@media(max-width:720px){header nav{flex-wrap:wrap;gap:12px}.theme-toggle{padding:8px 12px;font-size:13px}html[data-theme="dark"] .hero:after{background:linear-gradient(180deg,#20221f 0%,#20221fe8 24%,transparent 60%)}html[data-theme="dark"] .notebook #demo{background:repeating-linear-gradient(transparent 0,transparent 37px,#9ba48c33 37.5px,#9ba48c33 38px)}}
