.db-study{--tome-color-primary:var(--db-accent,#faa916);--tome-color-on-primary:var(--db-base-deepest,#070610);--tome-color-foreground:var(--db-text,#f0eef7);--tome-color-on-background:var(--db-text,#f0eef7);--tome-color-on-surface:var(--db-text,#f0eef7);--tome-color-on-surface-muted:var(--db-text-muted,#8f84b5);--tome-color-background:var(--db-base,#1c1830);--tome-color-surface:var(--db-base-deep,#100f1a);--tome-color-border:var(--db-frame,#3d3b6b);--tome-radius-sm:8px;--tome-radius-md:var(--db-radius,15px);--tome-radius-lg:var(--db-radius,15px);color:var(--db-text,#f0eef7);font-family:var(--db-font-body,"Montserrat", Arial, sans-serif);max-width:78ch;margin:0 auto;padding:clamp(2rem,5vw,4.5rem) 0 8rem}.db-study-head{border-bottom:1px solid var(--db-frame,#3d3b6b);margin-bottom:clamp(2rem,4vw,3.5rem);padding-bottom:1.5rem}.db-study-kicker{font-family:var(--db-font-mono,"Roboto Mono", monospace);letter-spacing:.22em;text-transform:uppercase;color:var(--db-accent,#faa916);margin-bottom:.75rem;font-size:.72rem}.db-study-title{font-family:var(--db-font-head,"Zilla Slab", Georgia, serif);color:var(--db-text,#f0eef7);margin:0;font-size:clamp(2rem,5vw,3.25rem);font-weight:600;line-height:1.05}.db-study-section{margin:clamp(2.5rem,6vw,5rem) 0}.db-study-section:first-of-type{margin-top:0}.db-study.db-study-scene,.db-study-scene *,.db-study-scene :before,.db-study-scene :after{box-sizing:border-box}.db-study.db-study-scene{max-width:none;margin:0;padding:0;container:db-scene/inline-size}.db-study.db-study-scene .db-study-measure{width:100%;margin-left:0;margin-right:0}.db-scene-text{min-width:0}.db-scene-stage{grid-template-rows:minmax(220px,1fr) auto;width:100%;height:100%;display:grid;position:relative}.db-scene-gwrap{min-height:0;position:relative}.db-scene-slot{width:100%;height:100%;position:absolute;inset:0}.db-scene-tools{z-index:8;gap:6px;display:flex;position:absolute;top:10px;right:10px}.db-scene-tilt{appearance:none;border:1px solid var(--db-frame,#3d3b6b);background:var(--db-glass-control,#1c1830b3);min-height:32px;color:var(--db-text-muted,#aaa1cc);font-family:var(--db-font-mono,monospace);letter-spacing:.16em;text-transform:uppercase;cursor:pointer;padding:0 12px;font-size:11px}.db-scene-tilt:hover,.db-scene-tilt[aria-pressed=true]{color:var(--db-accent,#faa916);border-color:var(--db-accent,#faa916)}.db-scene-tilt:focus-visible,.db-scene-tab:focus-visible{outline:2px solid var(--db-accent,#faa916);outline-offset:-2px}html[data-shell=touch] .db-scene-tilt,html[data-shell=phone] .db-scene-tilt{min-width:44px;min-height:44px;padding:0 14px}.db-scene-panel{border-top:1px solid var(--db-frame,#3d3b6b);background:var(--db-glass-panel-deep,#07061099);min-width:0}.db-scene-tabs{height:var(--scene-tabs-h,46px);border-bottom:1px solid var(--db-frame,#3d3b6b);grid-template-columns:repeat(5,minmax(0,1fr));display:grid}.db-scene-tabs-cap{white-space:nowrap;font-family:var(--db-font-mono,monospace);letter-spacing:.26em;text-transform:uppercase;color:var(--db-text-dim,#948ac2);align-items:center;padding-left:24px;font-size:11px;display:none}.db-scene-tab{appearance:none;border:0;border-left:1px solid var(--db-frame,#3d3b6b);min-width:0;color:var(--db-text-muted,#aaa1cc);font-family:var(--db-font-mono,monospace);letter-spacing:.06em;text-transform:uppercase;text-align:center;cursor:pointer;background:0 0;padding:0 4px;font-size:11px;line-height:1.15;position:relative}.db-scene-tab:first-of-type{border-left:0}.db-scene-tab:hover{color:var(--db-text,#f0eef7);background:color-mix(in srgb, var(--db-frame,#3d3b6b) 22%, transparent)}.db-scene-tab[aria-pressed=true]{color:var(--db-accent,#faa916);background:color-mix(in srgb, var(--db-accent,#faa916) 9%, transparent)}.db-scene-tab[aria-pressed=true]:before{content:"";background:var(--db-accent,#faa916);height:2px;position:absolute;top:-1px;left:0;right:0}html[data-shell=touch] .db-scene-tab,html[data-shell=phone] .db-scene-tab{min-height:44px}@media (prefers-reduced-motion:no-preference){.db-scene-tab,.db-scene-tilt{transition:color .2s,background .2s,border-color .2s}}.db-scene-readout{height:var(--scene-readout-h,164px);grid-template-columns:108px minmax(0,1fr);align-items:start;gap:0 16px;padding:14px 16px;display:grid;overflow:hidden}.db-scene-figure{border-right:1px solid var(--db-frame,#3d3b6b);min-width:0;height:100%}.db-scene-num{font-family:var(--db-font-head,serif);color:var(--db-accent,#faa916);font-size:40px;font-weight:700;line-height:.95;display:block}.db-scene-cap{font-family:var(--db-font-mono,monospace);letter-spacing:.12em;text-transform:uppercase;color:var(--db-text-dim,#948ac2);margin-top:6px;font-size:11px;line-height:1.5;display:block}.db-scene-detail{min-width:0}.db-scene-detail p{margin:0}.db-scene-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.db-scene-title{font-family:var(--db-font-head,serif);color:var(--db-text,#f0eef7);margin-right:10px;font-size:21px;font-weight:700;line-height:1.15}.db-scene-kicker{font-family:var(--db-font-mono,monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--db-accent,#faa916);font-size:11px}.db-scene-detail .db-scene-line{font-family:var(--db-font-body,sans-serif);color:var(--db-text-muted,#aaa1cc);-webkit-line-clamp:var(--scene-line-clamp,4);-webkit-box-orient:vertical;margin-top:6px;font-size:14px;font-weight:400;line-height:1.5;display:-webkit-box;overflow:hidden}.db-scene-detail .db-scene-line.db-scene-note{margin-top:0}.db-scene-detail .db-scene-rel{text-overflow:ellipsis;white-space:nowrap;font-family:var(--db-font-mono,monospace);letter-spacing:.04em;color:var(--db-text-dim,#948ac2);margin-top:6px;font-size:11px;line-height:1.5;overflow:hidden}.db-scene-detail .db-scene-rel+.db-scene-rel{margin-top:0}.db-scene-relk{letter-spacing:.12em;text-transform:uppercase;color:var(--db-text-muted,#aaa1cc);margin-right:8px}.db-scene-detail .db-scene-hint{font-family:var(--db-font-mono,monospace);letter-spacing:.1em;color:var(--db-text-dim,#948ac2);margin-top:10px;font-size:11px}.db-scene-stats{flex-wrap:wrap;gap:4px 32px;display:flex}.db-scene-stats div{white-space:nowrap}.db-scene-stats b{font-family:var(--db-font-head,serif);color:var(--db-text,#f0eef7);margin-right:8px;font-size:26px;font-weight:700}.db-scene-stats .db-scene-cap{margin:0;display:inline}@container db-scene (max-width:899px){.db-scene-grid{--db-scene-stacked:1;--scene-pad-x:24px;--scene-pad-w:min(100cqw, 660px);--scene-tabs-h:46px;--scene-readout-h:164px;--scene-gh:max(240px, min(100cqw, 660px, calc(100svh - var(--db-gutter-top,84px) - 190px)));--scene-sh:calc(var(--scene-gh) + var(--scene-tabs-h) + var(--scene-readout-h) + 1px);padding:clamp(2rem, 5vw, 3rem) var(--scene-pad-x) 8rem;flex-direction:column;display:flex}.db-scene-stage{grid-template-rows:var(--scene-gh) auto}.db-scene-text{display:contents}.db-scene-text>*{order:2;align-self:center;width:100%;max-width:600px}.db-scene-text>.db-study-head{order:0}.db-scene-text>.db-study-section{margin-top:clamp(1.25rem,3vw,2.5rem);margin-bottom:clamp(1.25rem,3vw,2.5rem)}.db-scene-text>.db-study-section:first-of-type{margin-top:0}.db-scene-map{width:var(--scene-pad-w);border-block:1px solid var(--db-frame,#3d3b6b);order:1;align-self:center;margin:24px 0 32px}.db-scene-map[data-moved=true]{display:none}.db-scene-pin{height:var(--scene-sh)}.db-scene-pad{display:none}.db-scene-grid[data-scene-moves=true] .db-scene-pad{width:var(--scene-pad-w);height:var(--scene-sh);margin:24px 0 32px calc(50% - var(--scene-pad-w) / 2);border-block:1px solid var(--db-frame,#3d3b6b);display:block}}@container db-scene (max-width:699px){.db-scene-grid{--scene-pad-x:16px;--scene-pad-w:100cqw;--scene-readout-h:240px;--scene-line-clamp:5;--scene-gh:max(240px, min(100cqw, calc(100svh - var(--db-gutter-top,84px) - 276px)))}.db-scene-readout{padding:12px 16px;display:block}.db-scene-figure{border-right:0;align-items:baseline;gap:10px;height:auto;margin-bottom:6px;display:flex}.db-scene-num{font-size:32px}.db-scene-cap{margin:0}.db-scene-title{font-size:19px}}@media (max-height:540px){@container db-scene (min-width:480px) and (max-width:899px){.db-scene-grid{--scene-pad-w:min(100cqw, 900px);--scene-gh:max(200px, calc(100svh - var(--db-gutter-top,44px) - 12px));--scene-sh:var(--scene-gh);--scene-line-clamp:4}.db-scene-stage{grid-template-rows:none;grid-template-columns:var(--scene-gh) minmax(0, 1fr)}.db-scene-panel{border-top:0;border-left:1px solid var(--db-frame,#3d3b6b);flex-direction:column;min-height:0;display:flex;overflow:hidden}.db-scene-tabs{flex:none;grid-template-columns:1fr 1fr;grid-auto-rows:44px;height:auto}.db-scene-tab{border-bottom:1px solid var(--db-frame,#3d3b6b)}.db-scene-tab:nth-of-type(odd){border-left:0}.db-scene-tab[aria-pressed=true]:before{display:none}.db-scene-readout{flex:1;height:auto;min-height:0;padding:10px 14px;display:block}.db-scene-figure{border-right:0;align-items:baseline;gap:10px;height:auto;margin-bottom:4px;display:flex}.db-scene-num{font-size:28px}.db-scene-cap{margin:0}.db-scene-title{font-size:17px}}}@container db-scene (min-width:900px){.db-scene-grid{--db-scene-stacked:0;--scene-tabs-h:46px;--scene-readout-h:208px;--scene-line-clamp:5;grid-template-columns:minmax(24px,.2fr) minmax(360px,520px) 24px minmax(430px,1.5fr);align-items:stretch;display:grid}.db-scene-text{grid-column:2;padding:clamp(2rem,5vw,4.5rem) 0 8rem}.db-scene-map{border-left:1px solid var(--db-frame,#3d3b6b);grid-column:4;min-width:0}.db-scene-pin{height:calc(100svh - var(--db-gutter-top,84px));position:sticky;top:0}}@container db-scene (min-width:1260px){.db-scene-grid{--scene-tabs-h:40px;--scene-readout-h:156px;--scene-line-clamp:3;grid-template-columns:minmax(24px,.35fr) minmax(0,600px) minmax(24px,.15fr) minmax(440px,2.2fr)}.db-scene-tabs{grid-template-columns:156px repeat(5,minmax(0,1fr))}.db-scene-tabs-cap{display:flex}.db-scene-tab:first-of-type{border-left:1px solid var(--db-frame,#3d3b6b)}.db-scene-readout{grid-template-columns:132px minmax(0,1fr);gap:0 24px;padding:14px 24px}.db-scene-num{font-size:46px}}html[data-shell=touch] .db-scene-grid,html[data-shell=phone] .db-scene-grid{--scene-tabs-h:46px}:is(.db-reading-layout:has(.db-study-scene) .db-reader-scrim,.db-reading-layout:has(.db-study-scene) .db-focus-bed,.db-reading-layout:has(.db-study-scene) .db-focus-btn){display:none}.db-study-scene{--scene-bed:var(--db-glass-tint,color-mix(in srgb, var(--db-base-deepest,#070610) 72%, transparent))}html[data-shell=touch] .db-study-scene,html[data-shell=phone] .db-study-scene{--scene-bed:color-mix(in srgb, var(--db-base-deepest,#070610) 86%, transparent)}.db-study-scene .db-scene-gwrap{box-shadow:0 0 0 20000px var(--scene-bed)}.db-study-scene .db-study-head,.db-study-scene .db-study-section>:not(.db-scene-pad){z-index:1;position:relative}.db-study-scene .db-scene-panel{position:relative}@container db-scene (max-width:899px){.db-study-scene .db-scene-stage:before,.db-study-scene .db-scene-stage:after{content:"";background:var(--db-frame,#3d3b6b);z-index:1;pointer-events:none;height:1px;position:absolute;left:0;right:0}.db-study-scene .db-scene-stage:before{top:-1px}.db-study-scene .db-scene-stage:after{bottom:-1px}}@container db-scene (min-width:900px){.db-study-scene .db-scene-pin:after{content:"";background:var(--db-frame,#3d3b6b);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;left:-1px}}.db-study-scene .db-scene-slot:has(>canvas[data-tome-canvas],>img){background:color-mix(in srgb, var(--db-base-deepest,#070610) 72%, var(--db-base,#1c1830))}:is(html[data-shell=touch] .db-study-scene .db-scene-slot:has(>canvas[data-tome-canvas],>img),html[data-shell=phone] .db-study-scene .db-scene-slot:has(>canvas[data-tome-canvas],>img)){background:color-mix(in srgb, var(--db-base-deepest,#070610) 86%, var(--db-base,#1c1830))}.db-scene-tab-short{display:none}@container db-scene (max-width:699px){.db-scene-tab-full{display:none}.db-scene-tab-short{display:inline}.db-scene-tools{pointer-events:none;justify-content:space-between;top:6px;left:6px;right:6px}.db-scene-tools>*{pointer-events:auto}html .db-scene-grid .db-scene-tools>button{letter-spacing:.1em;padding:0 9px}}.db-scene-hint-tap,html[data-shell=touch] .db-scene-hint-hover,html[data-shell=phone] .db-scene-hint-hover{display:none}html[data-shell=touch] .db-scene-hint-tap,html[data-shell=phone] .db-scene-hint-tap{display:inline}@media (max-height:540px){@container db-scene (min-width:480px) and (max-width:899px){.db-scene-tools{pointer-events:none;justify-content:space-between;top:4px;left:4px;right:4px}.db-scene-tools>*{pointer-events:auto}html .db-scene-grid .db-scene-tools>button{letter-spacing:.06em;min-width:44px;padding:0 6px}}}