/* Stories stay close to the diary; their detail opens only when requested. */
.chapter-story-tools{display:grid;gap:11px;margin:0 0 19px}
.chapter-threads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.chapter-thread{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px 13px;border:1px solid #aab89035;border-radius:11px;background:linear-gradient(130deg,#9baa7710,#152c2b44);text-align:left;color:#d9e3c6;min-width:0}
.chapter-thread:hover{background:#a8b88016;border-color:#b6c28d70}
.chapter-thread-icon{height:29px;width:29px;flex-shrink:0;color:#b9cfa3}
.chapter-thread-icon>svg{height:100%;width:100%}
.chapter-thread>span:nth-child(2){min-width:0;flex:1}
.chapter-thread b{display:block;font-size:11px;font-weight:500;line-height:1.65}
.chapter-thread small{display:block;font-size:9px;color:#97b19e;line-height:1.7;margin-top:3px}
.chapter-dots{display:flex;gap:4px;flex-shrink:0}
.chapter-dots i{display:block;height:4px;width:4px;border:1px solid #adc28a80;border-radius:50%}
.chapter-dots i.done{background:#c4d295}
.chapter-goals{border:1px solid #9eb79024;border-radius:10px;background:#8fa16e05}
.chapter-goals>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;color:#b7c9ad;font-size:10px;line-height:1.6}
.chapter-goals>summary::-webkit-details-marker{display:none}
.chapter-goals>summary>span{display:flex;align-items:center;gap:8px}
.chapter-goals>summary svg{width:14px;height:14px;flex-shrink:0}
.chapter-goals>summary>small{font-size:8px;color:#8fa995;white-space:nowrap}
.chapter-goals>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 11px 11px}
.chapter-goals>div>button{display:flex;align-items:center;text-align:left;gap:10px;padding:12px 10px;background:#91a77a09;border:1px solid #9ab58d26;border-radius:8px;color:#d2dfbd}
.chapter-goals>div>button:hover{border-color:#a9c58a70}
.chapter-goals button>svg{height:25px;width:25px;flex-shrink:0;color:#a8c290}
.chapter-goals b{display:block;font-size:11px;line-height:1.7;font-weight:500}
.chapter-goals small{display:block;font-size:9px;line-height:1.7;color:#9bb296;margin-top:3px}
.chapter-goals i{margin-left:auto;font-style:normal;font-size:13px;color:#afc496}
body[data-screen="game"] .flow-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
.chapter-album-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 13px;border:1px solid #b9aa7d3b;border-radius:10px;color:#d7c99e;background:#b3a16c08;white-space:nowrap}
.chapter-album-button>svg{height:16px;width:16px}
.chapter-album-button>span{font-size:10px}
.chapter-album-button>small{font-size:9px;color:#aebc91;border-left:1px solid #b1ae7c33;padding-left:7px;margin-left:1px}
.chapter-album-button:hover{background:#b6a66d14;border-color:#c8b67f77}
.chapter-connection{display:grid;grid-template-columns:1fr auto;gap:12px 15px;text-align:left;margin:24px 0 11px;border:1px solid #9fb98c38;padding:16px 18px;background:#8ea77b08;border-radius:12px}
.chapter-connection>span{color:#c1d2b4;font-size:12px;line-height:1.6;align-self:center}
.chapter-connection>span>small{font-size:9px;color:#8fa986;margin-left:5px}
.chapter-connection>b{font:500 25px/1 'Manrope',Arial,sans-serif;color:#d2e1ad}
.chapter-connection>div{grid-column:1/-1;height:4px;background:#61816c33;border-radius:4px;overflow:hidden}
.chapter-connection>div>i{display:block;height:100%;background:linear-gradient(90deg,#7ca78f,#ccd99b);border-radius:4px}
.chapter-person-card .chapter-connection-note{font-size:10px!important;line-height:1.9!important;color:#95b09a!important;text-align:left;margin:0 0 22px!important}
.chapter-shared{text-align:left;border-top:1px solid #a8bb911f;margin:20px 0;padding-top:18px}
.chapter-shared>span{font-size:8px;letter-spacing:1.2px;color:#a8bd99}
.chapter-shared p{font-size:12px!important;color:#c1d1b5!important;line-height:1.8!important;margin:14px 0!important}
.chapter-shared small{display:block;font-size:9px;color:#8ba68f;margin-bottom:3px}
.chapter-connect{width:100%}
.chapter-connect:disabled{opacity:.5;cursor:default}
.chapter-visit-note{display:block;font-size:9px;line-height:1.9;color:#9eb38e;text-align:center;margin:12px 0 0}
.chapter-family-link{margin-top:15px;font-size:11px;width:100%;padding:12px}
body[data-screen="game"] .family-person{position:relative;flex-wrap:wrap;align-items:start}
.chapter-family-bond{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 100%;width:100%;font-size:10px;color:#9cb392;border-top:1px solid #9eb18822;padding:11px 0 0;margin-top:10px;text-align:left}
.chapter-family-bond b{font-size:11px!important;color:#c9d9aa!important;margin-left:4px;font-weight:500}
.chapter-family-bond i{font-size:12px;font-style:normal;color:#b7c99b}
.chapter-family-bond:hover{color:#d0dfb5}
.chapter-extra-people{border:1px solid #a5b88c30;border-radius:12px;margin:17px 0;background:#91a57806}
.chapter-extra-people>summary{display:flex;justify-content:space-between;gap:14px;font-size:12px;color:#c7d6b6;padding:18px;cursor:pointer;list-style:none}
.chapter-extra-people>summary>span{font-size:10px;color:#9db68b}
.chapter-extra-people>button{display:flex;align-items:center;gap:13px;padding:12px 17px;border-top:1px solid #91a6781a;width:100%;text-align:left;background:transparent}
.chapter-extra-people>button>svg{height:53px;width:39px;flex-shrink:0}
.chapter-extra-people>button>span{flex:1}
.chapter-extra-people b{display:block;font-size:13px;color:#d9e2c5;font-weight:500;line-height:1.7}
.chapter-extra-people small{display:block;font-size:10px;color:#9eb58e;line-height:1.7;margin-top:3px}
.chapter-extra-people i{font-style:normal;color:#b4c995}
.chapter-loan-note{font-size:10px!important;line-height:1.9!important;color:#adc395!important;border-top:1px solid #9ab87b2c;padding-top:10px;margin-top:10px!important}
.chapter-decision-context{border-left:2px solid #b3c18a66;padding:1px 0 1px 12px;margin:16px 0 20px;max-width:85%}
.chapter-decision-context>span{font-size:7px;letter-spacing:1.3px;color:#a5ba8c;display:flex;align-items:center;gap:6px;line-height:1.8}
.chapter-decision-context svg{height:12px;width:12px;flex-shrink:0}
.chapter-decision-context b{font-size:12px;color:#d0ddb9;font-weight:500;display:block;line-height:1.7;margin-top:6px}
.chapter-decision-context b>small{font-size:9px;color:#97b17f;margin-left:5px}
.chapter-decision-context>p{font-size:10px;line-height:1.8;color:#9fb494;margin:6px 0 0}
.chapter-decision-context.is-small{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:0;line-height:1.8;color:#a8bc91;border:0;padding:0;margin:13px 0 19px}
.chapter-track-dialog h2,.chapter-album h2,.chapter-memory-detail h2{font:500 28px/1.45 'Manrope',Arial,sans-serif!important;color:#e5e7ce!important;letter-spacing:-.6px;margin-bottom:16px!important}
.chapter-track-dialog>p,.chapter-album>p,.chapter-memory-detail>p{font-size:13px!important;line-height:1.95!important;color:#aec3a6!important}
.chapter-track-dialog>.section-kicker,.chapter-album>.section-kicker,.chapter-memory-detail>.section-kicker{font-size:8px;color:#c4cf99;line-height:1.8;display:block;max-width:90%}
.chapter-track-timeline{margin:26px 0;border-left:1px solid #a3b88c50}
.chapter-track-timeline>article{position:relative;padding:0 0 22px 20px;line-height:1.9}
.chapter-track-timeline>article:before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:#c2d29b;border:2px solid #243b31}
.chapter-track-timeline span{display:block;font-size:10px;color:#9cb184}
.chapter-track-timeline b{display:block;font-size:13px;color:#d3dfbd;font-weight:500;margin-top:6px}
.chapter-track-dialog>small{font-size:10px;line-height:1.9;color:#92a983;display:block}
.chapter-track-dialog>button{margin-top:21px;padding:13px 0;font-size:11px;color:#b4c898;text-align:left}
.chapter-album-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:24px}
.chapter-album-grid>button{text-align:left;overflow:hidden;background:#859f7010;border:1px solid #a2b68a30;border-radius:13px;padding:0 0 16px;content-visibility:auto;contain-intrinsic-size:290px}
.chapter-album-grid>button:hover{border-color:#bdc99a77;background:#98ac7417}
.chapter-album-grid>button>div{overflow:hidden;line-height:0;background:radial-gradient(at 50% 35%,#91a77a10,transparent 70%);padding:7px 5px 0}
.chapter-album-grid .atelier-room{width:100%;height:auto;max-height:230px;display:block}
.chapter-album-grid>button>span{display:block;font-size:8px;letter-spacing:1px;color:#96ab86;margin:13px 14px 8px}
.chapter-album-grid>button>b{display:block;font-size:13px;font-weight:500;color:#d8e1be;line-height:1.7;margin:0 14px}
.chapter-album-grid>button>small{display:block;font-size:10px;color:#97ae87;line-height:1.7;margin:7px 14px 0}
.chapter-memory-large{overflow:auto;line-height:0;margin:17px -5px;border:1px solid #9bae7c26;border-radius:12px;background:#829a6e07}
.chapter-memory-large>.atelier-room{width:100%;min-width:510px;height:auto;display:block}
.chapter-memory-detail>.secondary{margin-top:18px;font-size:12px;border-radius:9px;border-color:#a6bb845e;color:#d4dfb8;background:#91a76b0a}
.chapter-album .chapter-album-note{font-size:10px!important;line-height:1.9!important;color:#91a77c!important;border-top:1px solid #8ca77122;padding-top:19px;margin:26px 0 0!important}
.chapter-keepsakes{margin-top:28px;border-top:1px solid #a6b78a22;padding-top:19px}
.chapter-keepsakes h3{font:500 18px/1.6 'Manrope',Arial,sans-serif;color:#dce2bf;margin:0 0 18px}
.chapter-keepsakes article{display:flex;align-items:center;gap:13px;padding:13px 0;border-top:1px solid #91a27416}
.chapter-keepsakes article>svg{width:25px;height:25px;color:#b3c489;flex-shrink:0}
.chapter-keepsakes b{display:block;font-size:12px;color:#cddbb3;font-weight:500}
.chapter-keepsakes small{display:block;font-size:10px;line-height:1.8;color:#97ae82;margin-top:5px}
@media(max-width:900px){.chapter-threads{grid-template-columns:1fr}.chapter-thread{min-height:64px;padding:11px 13px}.chapter-goals>div{grid-template-columns:1fr}.chapter-album-button{padding:10px}.chapter-album-button>span{font-size:9px}}
@media(max-width:580px){
 body[data-screen="game"] .flow-tools{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}
 body[data-screen="game"] .capsule-mini{padding:9px 10px;gap:5px}
 body[data-screen="game"] .capsule-mini>span{font-size:8px}
 body[data-screen="game"] .chapter-album-button{min-height:41px;padding:9px;gap:5px;border-radius:9px}
 .chapter-album-button>span{display:none}.chapter-album-button>small{padding-left:5px;font-size:8px}.chapter-album-button>svg{width:15px;height:15px}
 .chapter-story-tools{margin-bottom:17px;gap:9px}.chapter-thread{min-height:64px;gap:8px;padding:11px}
 .chapter-thread b{font-size:11px}.chapter-thread small{font-size:9px}.chapter-thread-icon{height:24px;width:24px}.chapter-dots{gap:3px}.chapter-dots i{height:4px;width:4px}
 .chapter-goals>summary{font-size:9px;padding:12px 11px;gap:7px}.chapter-goals>summary>small{font-size:7px}.chapter-goals>summary svg{width:13px;height:13px}.chapter-goals b{font-size:11px}.chapter-goals button>svg{height:24px;width:24px}
 .chapter-person-card .chapter-connection-note{font-size:10px!important}.chapter-connection{padding:15px;margin:22px 0 11px}.chapter-connection>span{font-size:11px}.chapter-shared>span{font-size:7px}.chapter-shared p{font-size:12px!important}.chapter-shared small{font-size:8px}.chapter-visit-note{font-size:8px;line-height:1.9}.chapter-family-link{font-size:10px}.chapter-person-card>h2{font-size:26px!important}
 .chapter-decision-context{margin:13px 0 17px;max-width:92%;padding-left:10px}.chapter-decision-context>span{font-size:6px;letter-spacing:1px}.chapter-decision-context b{font-size:11px}.chapter-decision-context>p{font-size:9px}.chapter-decision-context.is-small{font-size:9px;margin:12px 0 16px}
 .chapter-track-dialog h2,.chapter-album h2,.chapter-memory-detail h2{font-size:25px!important}.chapter-track-dialog>.section-kicker,.chapter-album>.section-kicker,.chapter-memory-detail>.section-kicker{font-size:7px;max-width:87%}.chapter-track-dialog>p,.chapter-album>p,.chapter-memory-detail>p{font-size:12px!important}
 .chapter-track-timeline b{font-size:12px}.chapter-track-timeline span{font-size:9px}.chapter-track-dialog>small{font-size:9px}
 .chapter-album-grid{gap:10px;margin-top:20px}.chapter-album-grid>button{border-radius:10px;padding-bottom:13px}.chapter-album-grid>button>div{padding:6px 0 0}.chapter-album-grid>button>span{font-size:6px;letter-spacing:.6px;margin:9px 10px 6px}.chapter-album-grid>button>b{font-size:11px;margin:0 10px}.chapter-album-grid>button>small{font-size:8px;margin:5px 10px 0}.chapter-album-grid .atelier-room{max-height:150px}
 .chapter-keepsakes h3{font-size:17px}.chapter-keepsakes article>svg{width:24px;height:24px}.chapter-keepsakes b{font-size:11px}.chapter-keepsakes small{font-size:9px}
 .chapter-family-bond{font-size:10px;padding-top:10px;margin-top:9px}.chapter-extra-people>summary{font-size:11px;padding:15px}.chapter-extra-people b{font-size:12px}.chapter-extra-people small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.chapter-thread,.chapter-album-button,.chapter-album-grid>button{transition:none}}
@media(max-width:580px){body[data-screen="game"] .flow-tools>.focus-compact[open]{grid-column:1/-1;min-width:0!important;width:100%}body[data-screen="game"] .flow-tools:has(.focus-compact[open]){grid-template-columns:minmax(0,1fr) auto}}
