.legend-link{display:block;width:100%;margin:12px 0;white-space:normal;min-height:44px}
.legend-pull-evidence{margin:12px 0;padding:12px;border:1px solid #7e6b4b;border-left:3px solid #755136;background:#d6c39a22;color:#34261c;line-height:1.8}
.legend-pull-evidence small,.legend-pull-evidence span{font-size:12px;display:block}.legend-pull-evidence p{font-size:15px;margin:8px 0}
.legend-board,.legend-case{font:15px/1.85 var(--f-body);color:#eadfc9}.legend-board h2,.legend-case h2{font-size:23px;line-height:1.6;margin:12px 0}.legend-case h3{font-size:18px}.legend-case small{font-size:12px;color:#c5af8a}
.legend-case-list{display:grid;gap:8px;margin:16px 0}.legend-case-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:14px;background:#27271f;border:1px solid #74634b;color:#eaddc4;min-height:70px}.legend-case-list b{font-size:16px}.legend-case-list small{display:block;font-size:13px;color:#c7b797}.legend-case-list button:disabled{opacity:1;background:#1a1917;color:#aa9d84}
.legend-fragments{list-style:none;padding:0;display:grid;gap:10px}.legend-fragments li{padding:12px;border-left:2px solid #9d825a;background:#382d2444}.legend-fragments p{margin:6px 0}.legend-investigation{margin:20px 0;border-top:1px solid #776349;padding-top:12px}
.legend-case button,.legend-board>.btn-paper,.legend-related button,.legend-observation-links button,.legend-incident-links button{display:block;min-height:46px;width:100%;margin:10px 0;white-space:normal;overflow-wrap:anywhere}.legend-case-list button{display:flex}.legend-hypotheses{border:1px solid #8e7959;margin:20px 0;padding:12px;min-width:0}.legend-hypotheses legend{font-size:15px}.legend-conclusion{border-left:2px solid #92744f;padding:12px;background:#312e2566}.legend-original summary,.legend-case details>summary{padding:10px 0;min-height:44px}
.gacha-scene button.cab-desc{font-family:var(--f-body);min-height:44px;width:100%;border:1px solid #8e785755;text-align:center;line-height:1.6}.gacha-scene button.cab-desc:disabled{opacity:1}

/* V1.1: comparison panels are in document flow; never cover controls. */
.legend-layers{margin-top:18px;padding-top:12px;border-top:1px solid #9d8a6844}
.legend-layers h3{margin:14px 0 6px;font-size:1rem}
.legend-layers p{font-size:.93rem;line-height:1.7;overflow-wrap:anywhere}
.legend-layers details{margin:10px 0;padding:10px;border:1px solid #a795754d;border-radius:6px}
.legend-layers details p+p{border-top:1px dashed #a795754d;padding-top:8px}
.legend-layers button{min-height:44px;max-width:100%;white-space:normal}
@media (prefers-reduced-motion:reduce){.legend-layers *{animation:none!important;transition:none!important}}

.world-revisions>p{color:#c8bda8;font-size:13px}.world-revisions ol{list-style:none;margin:12px 0 0;padding:0;border-left:1px solid #887354}.world-revisions li{position:relative;margin:0 0 14px;padding:0 0 0 16px}.world-revisions li::before{content:'';position:absolute;left:-4px;top:9px;width:7px;height:7px;border-radius:50%;background:#887354}.world-revisions small{display:block;color:#bda986}.world-revisions li:last-child{color:#eadfc9}.world-revisions li:last-child::before{background:#b98b70;box-shadow:0 0 0 3px #6b493c44}.world-revisions p{margin:4px 0;overflow-wrap:anywhere}


.research-editor{margin:18px 0 0;border-top:1px solid #786f5b;padding:14px 0 0;color:#e3d8c5;line-height:1.75}
.research-editor h4{font-size:17px;margin:0 0 8px}.research-editor>p{font-size:13px;color:#ccc2af}
.research-editor label{display:block;margin:15px 0;font-size:14px}
.research-editor textarea,.research-editor select{display:block;box-sizing:border-box;width:100%;margin:7px 0 0;min-height:45px;border:1px solid #80745e;background:#191d1a;color:#e9deca;border-radius:3px;padding:11px;font:16px/1.7 var(--f-body);resize:vertical}
.research-editor textarea{min-height:100px}.research-editor select:focus-visible,.research-editor textarea:focus-visible{outline:2px solid #d5bc81;outline-offset:2px}
.research-editor button{min-height:46px;width:100%;white-space:normal}.research-editor details summary{min-height:44px;padding:9px 0}
.research-editor li{font-size:13px;padding:9px 0;border-bottom:1px dashed #676354;overflow-wrap:anywhere}.research-editor li p{margin:4px 0 0;white-space:pre-wrap}

/* Acquired-only case-to-case forecast links. No total/unowned clues are rendered. */
.forecast-cross-case{margin:16px 0;padding:7px 11px;border:1px solid #6c6455;background:#1b211d}
.forecast-cross-case>summary{cursor:pointer;min-height:48px;padding:12px 0;font-size:14px;color:#f0ddbc}
.forecast-cross-case p,.forecast-cross-case small{display:block;font-size:13px;line-height:1.75;color:#d1c5b2}
.forecast-cross-case article{margin:12px 0;padding:10px;border-left:2px solid #8b7860;background:#262a2344}
.forecast-cross-case article button{display:block;min-height:44px;width:100%;margin-top:10px;white-space:normal;text-align:left}

/* Three independently earned reports form a restrained paper register. */
.forecast-triple{margin:14px 0 5px;padding:4px 12px 12px;border:1px solid #716351;background:#282820}
.forecast-triple>summary{min-height:48px;padding:12px 0;cursor:pointer;color:#f3e3c6;font:600 15px/1.6 var(--f-body)}
.forecast-triple p{color:#ded0bb;font:14px/1.75 var(--f-body);margin:12px 0}
.forecast-triple ol{padding:0;margin:12px 0;list-style:none;display:grid;gap:7px}
.forecast-triple li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;border-bottom:1px solid #5c5545;padding:9px 0;font:14px/1.6 var(--f-body)}
.forecast-triple li small{color:#d9bd8a;font:12px/1.65 var(--f-mono)}
.forecast-triple>small{display:block;color:#c5b9a4;font:12px/1.65 var(--f-body)}
@media(max-width:350px){.forecast-triple{padding-inline:9px}.forecast-triple li{display:block}}
@media(prefers-reduced-motion:reduce){.forecast-triple *{animation:none!important;transition:none!important}}
