/* A painted travel album, with observations kept in its paper margin. */
dialog.sheet.sheet-chapter{width:min(1263px,calc(100vw - 64px),calc((100dvh - 310px)*1.5 + 288px));max-width:none;max-height:calc(100dvh - 48px);bottom:auto;top:50%;transform:translate(-50%,-50%);margin:0;background:#eee5ce;border:1px solid #ad986d;border-radius:3px;box-shadow:0 24px 90px #24291b55}
.sheet-chapter .panel-header{padding:18px 26px 13px}.sheet-chapter .panel-heading h2{font-size:27px}.sheet-chapter .panel-body{padding:0 24px 14px}.sheet-chapter .panel-feedback{margin-top:8px}
.chapter-location{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:12px;color:#686c52}.chapter-location>span{display:flex;align-items:center;gap:8px}.chapter-location .icon{width:15px;height:15px}.chapter-progress{display:flex;align-items:center;gap:9px;color:#92866a;font-size:10px}.chapter-progress i{width:26px;height:1px;background:#b7ab8266}.chapter-progress .active{color:#954d36}
.chapter-workspace{display:grid;grid-template-columns:minmax(0,1fr) 238px;border:1px solid #b6a37b88;background:#f3ead4}.chapter-board{position:relative;height:auto;aspect-ratio:3/2;isolation:isolate;container-type:inline-size;overflow:hidden;background:#e6dfc8}.chapter-landscape,.chapter-painting,.chapter-route-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.chapter-landscape{z-index:-2}.chapter-painting{z-index:-1;object-fit:fill}.chapter-board:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 35px #74643b35;z-index:5}.chapter-route-line{z-index:2}.chapter-route-line polyline{fill:none;stroke:#944d35;stroke-width:.38;stroke-dasharray:1.1 .9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 .2px #fff3d8)}
.chapter-board-caption{position:absolute;top:20px;left:21px;display:flex;gap:10px;align-items:flex-start;pointer-events:none;padding:8px;background:#f2e8ced9;color:#454f3d}.chapter-board-caption>span{writing-mode:vertical-rl;font:10px var(--serif);letter-spacing:3px;color:#9b4a35;border:1px solid #9b4a3588;padding:6px 4px}.chapter-board-caption>b{writing-mode:vertical-rl;font:24px var(--serif);letter-spacing:5px;text-shadow:0 1px 5px #fff0cb}
[data-plate="fuchi-wind"] .chapter-board-caption{top:auto;bottom:24px}
.chapter-object{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-16px);display:flex;align-items:center;flex-direction:column;gap:6px;width:clamp(96px,18cqw,138px);min-height:66px;padding:0 3px 4px;background:transparent;border:0;box-shadow:none;border-radius:0;z-index:3;color:#4c4935}.chapter-point{display:grid;place-items:center;flex:none;width:29px;height:29px;font:17px var(--serif);border-radius:50%;border:2px solid #f7ecd1;background:#eee0bacf;color:#805937;box-shadow:0 0 0 1px #735735a3,0 2px 9px #33271d60;transition:transform .2s,background .2s}.chapter-tag{display:flex;align-items:center;gap:6px;justify-content:center;max-width:100%;min-width:78px;min-height:27px;padding:4px 9px;background:#f3e7cdeF;border-bottom:1px solid #a18c5c;box-shadow:0 2px 8px #41312030;clip-path:polygon(2% 0,98% 1%,100% 90%,96% 100%,0 96%,1% 15%)}.chapter-tag>b{font:clamp(12px,1.65cqw,15px) var(--serif);font-weight:500;white-space:nowrap}.chapter-tag>small{font-size:9px;color:#817050;white-space:nowrap}.chapter-object:hover{background:transparent;box-shadow:none}.chapter-object:hover .chapter-point,.chapter-object:focus-visible .chapter-point{transform:scale(1.15);background:#fff0c8}.chapter-object:focus-visible{outline:2px solid #854d35;outline-offset:4px}.chapter-object.picked .chapter-point{background:#9e4e36;color:#fff0d3}.chapter-object.picked .chapter-tag{border-bottom-color:#9e4e36;color:#843f2a}
.chapter-notes{padding:22px 21px 16px;border-left:1px solid #ad9a6c66;display:flex;flex-direction:column;font-size:12px;line-height:1.9;background:linear-gradient(90deg,#9e875413,transparent 10%),#f2e9d1}.chapter-margin-title{display:flex;align-items:center;gap:12px;margin-bottom:17px}.chapter-margin-title>span{display:grid;place-items:center;width:30px;height:35px;border:1px solid #a5503d;color:#a5503d;font:24px var(--serif);transform:rotate(-3deg)}.chapter-margin-title>small{font:16px var(--serif);color:#6c634b}.chapter-speaker{font-size:10px;color:#8c7955;display:block;margin-bottom:8px}.chapter-clue{border-top:1px solid #b3a07866;margin-top:20px;padding-top:17px;min-height:125px}.chapter-clue>small{display:block;font-size:9px;letter-spacing:2px;color:#998464;margin-bottom:9px}.chapter-clue>b{display:block;font:20px var(--serif);color:#884b36}.chapter-clue>p{margin-top:10px;color:#68664f;font-size:12px;line-height:1.9}.chapter-aside-hint{margin-top:auto;padding-top:18px;font-size:10px;color:#948365;line-height:1.9}.chapter-weight{margin-top:14px;font-size:11px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px}.chapter-weight>div{width:100%;height:4px;background:linear-gradient(to right,#7b8c61 var(--load),#d6cba9 var(--load))}.chapter-weight small{font-weight:400;color:#8b8068}.chapter-weight.overweight{color:#a34e35}
.chapter-selection{min-height:42px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 0;color:#8d8164;font-size:11px}.chapter-selection-title{color:#99503a;padding-right:13px;margin-right:4px;border-right:1px solid #ae98705c}.chapter-token{background:#e8dcc0;border:0;border-bottom:1px solid #b09a6a;padding:6px 10px;font-size:11px}.chapter-token>span{color:#988361;margin-left:7px}.chapter-toolbar{display:flex;align-items:center;gap:18px;padding-top:9px;border-top:1px solid var(--line)}.chapter-toolbar>p{flex:1;line-height:1.7;font-size:11px;color:#858068}.chapter-toolbar .button{white-space:nowrap}
/* A quiet reading margin: source, original passage, then annotation. */
.chapter-source{margin-top:24px;padding:20px 0 8px;border-top:1px solid #b6a37b66;max-width:76ch;color:#6d684f}
.chapter-source header{margin-bottom:12px}.chapter-source a{display:inline-block;font:12px/1.8 var(--serif);letter-spacing:.6px;color:#786d51;text-decoration:none;text-underline-offset:4px}.chapter-source a:hover{text-decoration:underline;color:#4e6045}.chapter-source a span{margin-left:5px;font:11px var(--sans);color:#958565}
.chapter-source blockquote{margin:0 0 16px;padding:2px 0 2px 16px;border-left:2px solid #af9361;font:19px/1.9 var(--serif);letter-spacing:1px;color:#4b5842}
.chapter-source-note{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}.chapter-source-note>span{font:12px/1.9 var(--serif);color:#9a654b;border-right:1px solid #b6a37b66}.chapter-source-note p{margin:0;font-size:12px;line-height:1.9;color:#746f59}
.chapter-retrospect{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);border:1px solid #b6a37b88}.chapter-retrospect .chapter-board{width:100%;min-width:0;height:100%;aspect-ratio:auto;min-height:450px}.chapter-retrospect .chapter-painting{object-fit:cover}.chapter-decision,.chapter-complete{text-align:center;padding:28px 26px;background:#f2e9d1}.chapter-seal{display:inline-grid;place-items:center;border:2px solid #9d594399;color:#95523a;width:44px;height:48px;font:32px var(--serif);transform:rotate(-4deg);margin-bottom:15px}.chapter-decision>h3,.chapter-complete>h3{font-size:24px;line-height:1.65;margin:0 auto 12px}.chapter-decision>p,.chapter-complete>p{line-height:1.9;color:#7b775d;margin:8px auto;font-size:13px}.chapter-complete>small{display:block;color:#8e805c;margin-bottom:14px}.chapter-choices{display:grid;gap:12px;margin:20px 0 15px}.button.chapter-choice{padding:16px 18px;display:flex;flex-direction:column;gap:8px;background:#e7dcc199;text-align:left;align-items:flex-start;border-color:#b7a17566}.chapter-choice>b{font:18px var(--serif);line-height:1.55}.chapter-choice small{line-height:1.8;color:#827455;font-size:11px}.chapter-memory{padding:9px 15px;background:#dbe0bd88;color:#4f6947!important;font-size:12px}
.chapter-link{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;margin:0 0 18px;background:linear-gradient(110deg,#e9dcc1,#f3e9d0);border:1px solid #b5a07880;text-align:left}.chapter-link>span:nth-child(2){flex:1}.chapter-link small{display:block;color:#927b58;font-size:10px;margin-bottom:5px}.chapter-link b{font:18px var(--serif)}.chapter-link:hover{background:#f5e9cc}.chapter-link-seal{display:grid;place-items:center;font:23px var(--serif);color:#a45037;border:1px solid #a45037a0;width:31px;height:36px;transform:rotate(-3deg)}.local-commission-note{font-size:12px;line-height:1.9;margin-bottom:15px;color:#777353}.local-commission-note small{display:block;font-size:10px;color:#92876d}.chapter-travel-note{font-size:12px;color:#8d6041;line-height:1.8;margin:12px 0}.journey-epilogue{font:17px/1.9 var(--serif);margin-bottom:20px;color:#5e644c}
.chapter-art-fallback{display:none;position:absolute;bottom:8px;left:12px;font-size:10px;color:#736b53;background:#f2e8ce;padding:4px 8px}.art-unavailable .chapter-painting{display:none}.art-unavailable .chapter-art-fallback{display:block}.chapter-air{position:absolute;inset:0;pointer-events:none;opacity:.23}.mood-rain .chapter-air{background:repeating-linear-gradient(107deg,transparent 0 48px,#fef9dd66 49px,transparent 50px 98px);animation:chapter-rain 2s linear infinite}.mood-steam .chapter-air i{position:absolute;left:59%;top:30%;width:22px;height:70px;border-radius:50%;background:#fffae9;filter:blur(9px);animation:chapter-steam 5s ease-in-out infinite}.mood-steam .chapter-air i:nth-child(2){left:63%;animation-delay:-2s}.mood-steam .chapter-air i:nth-child(3){left:26%;animation-delay:-3s}@keyframes chapter-rain{to{background-position:-30px 100px}}@keyframes chapter-steam{0%,100%{transform:translate(0,12px) scale(.7);opacity:.1}50%{transform:translate(-9px,-25px) scale(1.15);opacity:.8}}
@media(max-height:800px){.sheet-chapter .panel-header{padding:12px 24px 9px}.sheet-chapter .panel-heading h2{font-size:24px}.chapter-notes{padding:15px 18px;font-size:11px}.chapter-margin-title{margin-bottom:10px}.chapter-clue{margin-top:12px;padding-top:12px;min-height:110px}.chapter-aside-hint{padding-top:10px}.chapter-retrospect .chapter-board{min-height:380px}.chapter-decision,.chapter-complete{padding:20px}.chapter-location{padding:9px 0}}
@media(max-width:1150px){.chapter-workspace{grid-template-columns:minmax(0,1fr) 210px}.chapter-board-caption>b{font-size:20px}}
@media(prefers-reduced-motion:reduce){.chapter-point{transition:none}.chapter-air,.chapter-air i{animation:none!important}}

/* Scene signatures toggle the arrangement; the notebook follows the current clue. */
.chapter-workspace{container-type:inline-size}.chapter-notes{height:calc((100cqw - 238px)/1.5);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b5ab85 transparent}
.chapter-toolbar{position:sticky;bottom:0;z-index:6;background:#eee5ce;padding-bottom:9px;box-shadow:0 -7px 10px #eee5ce}.chapter-feedback{scroll-margin-bottom:85px}
.chapter-board[data-plate="locks"] .chapter-object{width:clamp(96px,16cqw,138px)}
.chapter-object.inspected .chapter-point{outline:2px solid #485f4d;outline-offset:4px}.chapter-object.inspected .chapter-tag{background:#fff2d7}.chapter-object.needs-attention .chapter-tag{border:1px solid #a34f35;color:#8f3e28}
.chapter-goal{padding:0 0 12px;border-bottom:1px solid #b3a07866}.chapter-goal>small{font-size:10px;color:#8b553c;letter-spacing:1px}.chapter-goal>p{font:16px/1.8 var(--serif);margin:7px 0}.chapter-goal>b{font-size:10px;font-weight:500;color:#566b48;background:#d7ddbf88;padding:4px 7px;display:inline-block}
.chapter-dialogue{font-size:11px;color:#817051;margin-top:10px}.chapter-dialogue summary,.chapter-how summary{cursor:pointer}.chapter-dialogue p{padding:8px 0;line-height:1.9}.chapter-how{margin-top:auto;padding-top:15px;font-size:10px;color:#807455}.chapter-how p{line-height:1.9;margin-top:8px}
.chapter-clue{margin-top:13px;padding-top:13px;min-height:0}.chapter-clue>div>small{display:block;font-size:10px;color:#8b7958;margin-bottom:8px}.chapter-clue>div>b{font:19px var(--serif);color:#884b36;display:block}.chapter-clue>div>p{font-size:12px;color:#68664f;line-height:1.9;margin:9px 0 13px}
.chapter-selection{gap:7px;align-items:center}.chapter-entry{display:flex;align-items:center;background:#e8dcc0;border-bottom:1px solid #b09a6a;max-width:100%}.chapter-entry.needs-attention{outline:1px solid #a34f35}.chapter-entry .chapter-token{border:0;background:none;padding:8px;font-size:11px;display:flex;align-items:center;gap:6px}.chapter-token>i{font-style:normal;color:#9a4d35}.chapter-entry .chapter-move{border:0;border-left:1px solid #b09a6a44;background:none;padding:7px 4px;font-size:9px;min-height:30px;color:#656e4e}.chapter-move:disabled{opacity:.25;cursor:default}.chapter-entry .chapter-remove{border:0;background:none;font-size:16px;padding:4px 7px;color:#8c5d3f;min-height:30px}.chapter-empty-slot{border:1px dashed #b7a47e88;padding:7px 12px;font-size:10px;color:#9d8b69}.chapter-toolbar>p>small{display:block;font-size:9px;color:#938366;margin-top:3px}.chapter-feedback{font-size:12px;line-height:1.8;border-left:3px solid #a34f35;background:#e7d6b5;padding:9px 12px;margin:2px 0 12px;color:#8a422c}
.chapter-scene-note{position:absolute;bottom:9px;left:12px;max-width:85%;padding:4px 7px;background:#f3e7cddd;color:#6c654e;font-size:10px;pointer-events:none}.art-unavailable .chapter-scene-note{display:none}
@media(max-height:800px){.chapter-notes{padding:13px 16px}.chapter-margin-title{margin-bottom:9px}.chapter-goal>p{font-size:14px;line-height:1.65;margin:5px 0}.chapter-goal{padding-bottom:8px}.chapter-dialogue{margin-top:6px;font-size:10px}.chapter-clue{margin-top:9px;padding-top:10px}.chapter-clue>div>p{font-size:11px;line-height:1.7;margin:7px 0 10px}.chapter-clue>div>b{font-size:17px}.chapter-how{padding-top:10px}.chapter-entry .chapter-token{padding:6px;font-size:10px}.chapter-entry .chapter-move{padding:6px 3px}}
@media(max-height:800px){.chapter-margin-title{margin-bottom:6px}.chapter-margin-title>span{height:28px;width:25px;font-size:21px}.chapter-goal>p{font-size:13px}.chapter-clue>div>p{margin:6px 0 8px}}
@media(max-width:1150px){.chapter-notes{height:calc((100cqw - 210px)/1.5)}}
