.mt-root .mt-modal-box:is([data-mt-panel="story"],[data-mt-panel="story-result"]){height:auto!important;min-height:0;max-height:calc(100dvh - 32px);width:min(560px,calc(100vw - 24px))}
.mt-tools-panel [data-mt-story-journal][hidden]{display:none!important}
.mt-story-card,.mt-story-journal{color:#49352c;font-family:"Segoe UI",sans-serif;text-align:left}
.mt-story-person{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.mt-story-person>span{display:grid;place-items:center;flex:none;width:56px;height:56px;border:2px solid #ead5b7;border-radius:18px;background:#fff2da;font-size:30px}
.mt-story-person small{display:block;color:#9b754e;font-size:12px;line-height:1.5}
.mt-story-person strong{display:block;color:#68452f;font-size:20px;line-height:1.4}
.mt-story-card>p{margin:0 0 18px;padding:15px;border:1px solid #e9d8bf;border-radius:13px;background:#fffaf0;color:#57402f;font-size:17px;line-height:1.75}
.mt-story-choices{display:grid;gap:10px}
.mt-story-choices>button{box-sizing:border-box;min-height:54px;width:100%;padding:13px 15px;border:2px solid #c1cda9;border-radius:13px;background:#eff5e3;color:#455b30;text-align:left;font-family:inherit;cursor:pointer}
.mt-story-choices>button:nth-child(2){background:#fff7e8;border-color:#ddc8a6;color:#755735}
.mt-story-choices strong{font-size:16px;line-height:1.5}
.mt-story-effects{display:block;margin-top:7px;color:#786449;font-size:13px;line-height:1.65}
.mt-story-choices>button:disabled{opacity:.6;cursor:wait}
.mt-story-foot{display:block;margin-top:16px;color:#927b5c;font-size:12px;line-height:1.65}
.mt-story-secondary{display:block;width:100%;min-height:44px;margin-top:9px;border:1px solid #ddc8a6;border-radius:10px;background:#fff9ee;color:#755735;font:600 14px "Segoe UI",sans-serif;cursor:pointer}
.mt-root .mt-modal .mt-story-open{width:100%;min-height:48px;margin-top:18px;border-color:#a85170;background:#bc6784;color:#fff;font-size:16px;font-weight:700}
.mt-story-progress{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.mt-story-progress>b{font-size:18px;color:#705036}.mt-story-progress>span{font-size:13px;color:#927b5c}
.mt-story-progress progress{width:100%;height:10px;accent-color:#8fa96c}
.mt-story-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.mt-story-badges>span{padding:6px 9px;border:1px solid #dcc9ad;border-radius:9px;background:#fff6e5;color:#8b7352;font-size:12px;line-height:1.5}
.mt-story-badges>.is-earned{border-color:#adc48e;background:#edf4de;color:#58733e}
.mt-story-next,.mt-story-empty{padding:12px;border-radius:10px;background:#fff2d7;color:#82633b;font-size:14px;line-height:1.7}
.mt-story-entry{margin-top:11px;border:1px solid #ddc9ac;border-radius:12px;background:#fffaf0;overflow:hidden}
.mt-story-entry>summary{display:flex;align-items:center;gap:11px;min-height:60px;padding:12px;cursor:pointer;list-style:none}
.mt-story-entry>summary::-webkit-details-marker{display:none}
.mt-story-entry>summary:after{content:'⌄';margin-left:auto;color:#8a7353;font-size:22px}
.mt-story-entry[open]>summary:after{content:'⌃'}.mt-story-entry>summary>span{font-size:27px;flex:none}
.mt-story-entry>summary strong{display:block;font-size:15px;line-height:1.6;color:#62432f}
.mt-story-entry>summary small{display:block;font-size:12px;line-height:1.6;color:#947b5d}
.mt-story-entry>div{padding:0 14px 14px;font-size:14px;line-height:1.75}
.mt-story-entry>div p{margin:9px 0}.mt-story-accounting{border-top:1px dashed #ddc9ac;padding-top:10px;color:#617347}
.mt-story-preopen{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border:1px solid #d8c29f;border-radius:12px;background:#fff8e7;color:#705134}
.mt-story-preopen>span{font-size:27px;flex:none}.mt-story-preopen strong{display:block;font-size:14px;line-height:1.5}.mt-story-preopen small{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#927b5c}
.mt-story-chapter-end{margin-top:17px;padding:14px;border:1px solid #b6c99e;border-radius:13px;background:#eff5e5;color:#5b703e;text-align:center}.mt-story-chapter-end>b{font-size:16px}.mt-story-chapter-end>p{margin:7px 0 12px;font-size:13px;line-height:1.65}
.mt-story-choices button:focus-visible,.mt-story-secondary:focus-visible,.mt-story-entry summary:focus-visible{outline:3px solid #8ca865;outline-offset:2px}
@media(max-width:420px){.mt-story-card>p{font-size:16px;padding:12px}.mt-story-person{gap:10px}.mt-story-person>span{width:48px;height:48px;font-size:26px}.mt-story-choices>button{padding:12px}.mt-story-choices strong{font-size:15px}}
