.character-life-view{display:flex;flex-direction:column;min-height:0;height:100%;color:var(--text,#463e4c)}
.character-life-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px 20px;scroll-padding-bottom:20px}
.character-life-intro{padding:4px 2px 12px}.character-life-intro strong{font-size:18px}.character-life-intro p,.character-life-note{font-size:13px;line-height:1.6;margin:7px 0;color:var(--muted,#6b6171)}
.character-life-body details{border:1px solid #dcd6e3;border-radius:16px;background:var(--card,rgba(255,255,255,.72));padding:0 13px;margin:10px 0}
.character-life-body summary{min-height:48px;display:list-item;align-content:center;cursor:pointer;font-weight:600;line-height:1.5}
.character-life-body label:not(.character-life-switch){display:block;font-size:14px;line-height:1.6;margin:8px 0 14px}
.character-life-body textarea{display:block;width:100%;box-sizing:border-box;min-height:84px;max-height:260px;resize:vertical;font:inherit;color:inherit;line-height:1.65;padding:10px 12px;margin-top:6px;border:1px solid #dcd6e3;border-radius:12px;background:var(--input-bg,rgba(255,255,255,.85));overflow-wrap:anywhere}
.character-life-switch{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px}.character-life-switch input{width:20px;height:20px;accent-color:#8e7aa1}
.character-life-footer{flex:none;padding:8px 14px calc(12px + env(safe-area-inset-bottom,0px));background:var(--card,#fcf9fd);border-top:1px solid #e3dce8}.character-life-footer p{font-size:13px;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}.character-life-footer>div{display:flex;gap:8px;align-items:center}.character-life-footer button{min-height:44px;flex:1}.character-life-view :focus-visible{outline:2px solid #8e7aa1;outline-offset:2px}.character-life-view button:active{opacity:.78}
.character-life-tabs{display:flex;gap:6px;flex:none;padding:6px 16px 10px;border-bottom:1px solid #e3dce8}.character-life-tabs button{flex:1;min-height:44px;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;font:inherit;cursor:pointer}.character-life-tabs button[aria-pressed=true]{background:var(--card,#fffaf4);border-color:#dcd6e3;box-shadow:0 2px 8px #49364f0a;font-weight:600}
.autonomy-actions{display:flex;flex-wrap:wrap;gap:6px}#autonomy-overview button,#autonomy-settings button{min-height:44px;font:inherit}#autonomy-overview h3{font-size:17px;margin:0 0 8px}#autonomy-overview p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}#autonomy-settings select,#autonomy-settings input[type=time]{display:block;width:100%;box-sizing:border-box;min-height:44px;border:1px solid #dcd6e3;border-radius:10px;padding:8px;color:inherit;background:var(--input-bg,#fffdfa);font:inherit}.character-copy-dialog{width:min(380px,calc(100vw - 40px));max-height:80dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dcd6e3;border-radius:20px;padding:20px;background:var(--card,#fffaf5);color:var(--text,#463e4c)}.character-copy-dialog::backdrop{background:#40374760}.character-copy-dialog p{font-size:14px;line-height:1.7}.character-copy-dialog label{display:flex;align-items:center;gap:8px;min-height:44px}#character-copy-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px}.character-copy-actions{display:flex;gap:8px;position:sticky;bottom:0;background:var(--card,#fffaf5);padding-top:8px}.character-copy-actions button{min-height:44px;flex:1}
#life-candidates button{min-height:44px;max-width:100%;font:inherit;white-space:normal}#life-candidates .life-event>button{margin:6px 6px 0 0;padding:8px 12px}#life-candidates .character-life-tabs{padding:8px 0}#life-candidates-feedback{font-size:13px;line-height:1.7;overflow-wrap:anywhere}#life-tab-candidates{font-size:14px;min-width:0}
.character-schedules>.schedule-enabled{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}.character-schedules>.schedule-enabled input{width:20px;height:20px;flex:none;accent-color:#8e7aa1}.character-life-events h3{font-size:17px;line-height:1.5;margin:4px 0}.character-life-events ol{list-style:none;padding:0;margin:12px 0}.life-event{border:1px solid #ddd8e3;border-radius:15px;background:var(--card,#fffdf8);padding:12px 14px;margin:10px 0;overflow-wrap:anywhere}.life-event>div{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.life-event time,.life-event small{font-size:12px;line-height:1.5;color:var(--muted,#6b6171)}.life-event h4{font-size:15px;margin:9px 0 5px;line-height:1.5}.life-event p{font-size:13px;line-height:1.7;margin:5px 0}.life-event-tag{font-size:12px;padding:4px 8px;border-radius:8px;background:#e9e5ed}.life-event-executed .life-event-tag{background:#e5eddf;color:#3e5942}.life-event-not-executed .life-event-tag,.life-event-interrupted .life-event-tag{background:#f2e8da;color:#695338}.house-life-coordination p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.house-life-coordination button{min-height:44px}
.character-schedules{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere}.character-schedules h3{font-size:17px;line-height:1.5;margin:0}.character-schedules h4{font-size:14px;line-height:1.5;margin:5px 0}.character-schedules p{font-size:13px;line-height:1.65;margin:6px 0}.schedule-top,.schedule-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.schedule-top>div{min-width:0}.schedule-top button{flex:none;max-width:46%;font-size:13px}.character-schedules button{min-height:44px;font:inherit;cursor:pointer}.character-schedules button:disabled{cursor:default;opacity:.55}.schedule-overview{border:1px solid #dcded3;border-radius:16px;background:var(--card,#fbfcf6);padding:12px 14px;margin:12px 0}.schedule-overview p{font-size:14px;line-height:1.6}.schedule-overview h4:not(:first-child){padding-top:9px;border-top:1px solid #e4e2d9}.schedule-heading{margin-top:16px}.schedule-heading button{font-size:13px}
#schedule-timeline{list-style:none;margin:8px 0 14px;padding:0}#schedule-timeline li{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:center;border-left:2px solid #ded7e4;margin-left:5px;padding:6px 10px}#schedule-timeline li.is-current{border-left-color:#8e7aa1;background:#ece8ef70;border-radius:0 10px 10px 0}#schedule-timeline small{flex-basis:100%;font-size:12px;line-height:1.5;color:var(--muted,#6b6171)}#schedule-timeline span{font-size:12px;color:var(--muted,#6b6171)}.schedule-title-button{border:0;padding:4px 0;background:none;text-align:left;color:inherit}.schedule-empty{font-size:13px;line-height:1.7;color:var(--muted,#6b6171)}
#schedule-form{padding-bottom:12px}#schedule-form input:not([type=checkbox]),#schedule-form select{display:block;box-sizing:border-box;min-height:44px;width:100%;min-width:0;margin-top:5px;padding:8px 10px;border:1px solid #dcd6e3;border-radius:10px;font:inherit;color:inherit;background:var(--input-bg,#fffdfa)}.schedule-time-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.schedule-time-fields label{min-width:0}#schedule-weekdays{display:flex;gap:4px;flex-wrap:wrap;min-width:0;border:1px solid #ded8e5;border-radius:12px;padding:6px}#schedule-weekdays label{display:flex;align-items:center;gap:3px;min-height:44px;margin:0;font-size:13px}#schedule-form input[type=checkbox]{width:18px;height:18px;accent-color:#8e7aa1}#schedule-form .schedule-enabled{display:flex;gap:8px;align-items:center;min-height:44px;margin:8px 0}.schedule-editor-actions{display:flex;gap:8px;position:sticky;bottom:-1px;background:var(--card,#fcfaf5);padding:8px 0}.schedule-editor-actions button{flex:1;font-size:14px}#schedule-feedback,#schedule-conflicts,#schedule-draft-warning{color:var(--text,#53465d);overflow-wrap:anywhere}#schedule-list{list-style:none;padding:0;margin:0}#schedule-list li{padding:12px 0;border-top:1px solid #e3dce8}#schedule-list strong{font-size:14px}.schedule-row-actions{display:flex;gap:6px}.schedule-row-actions button{flex:1;font-size:13px;padding:6px 9px}
