.shell.journey-mode{max-width:1600px}.journey-mode .layout{grid-template-columns:165px minmax(0,1fr);gap:30px}.journey-mode .content{max-width:none;min-width:0}.journey-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);border:1px solid #ffffff20;border-radius:20px;overflow:hidden;background:#ffffff04}.journey-browser{padding:20px;background:#ffffff04;border-right:1px solid #ffffff20;max-height:calc(100vh - 170px);overflow:auto}.journey-browser .panel{margin:0 0 24px;padding:0;border:0;background:none;border-radius:0}.journey-browser .month-bar{margin:0 0 20px}.journey-browser h2{font-size:22px}.journey-browser .calendar{gap:5px}.journey-browser .day{border-radius:8px;min-height:34px}.journey-browser .journey-review-row{font-size:14px;gap:8px}.journey-browser .journey-review-row .quiet{padding:8px 11px}.journey-reader{min-width:0;padding:24px;max-height:calc(100vh - 170px);min-height:580px;overflow:auto;scroll-margin-top:20px}.reader-placeholder{padding:65px 16px;line-height:1.8}.reader-toolbar,.reader-period{display:flex;align-items:center;justify-content:space-between;gap:16px}.reader-toolbar h2{font-family:inherit;font-size:19px;line-height:1.6;margin:0}.reader-period{margin:24px 0}.reader-period button:disabled{opacity:.3;cursor:default}.reader-paper{padding:28px;background:#ffffff08;border:1px solid #ffffff16;border-radius:16px}.reader-paper h3{font-size:20px;font-weight:500;line-height:1.6;margin:0 0 14px}.reader-paper h3:not(:first-child){margin-top:32px}.reader-tasks{padding:0;list-style:none;line-height:1.8}.reader-tasks li{padding:12px 0;border-bottom:1px solid #ffffff16;overflow-wrap:anywhere}.reader-tasks .done{color:#aab6c5}.journey-reader .review-detail-heading{margin-top:0}.journey-reader .review-question{background:#ffffff08}.journey-reader .review-answer{margin-left:0}.journey-reader .review-sources{margin-left:0}.journey-reader .lede{margin-top:16px;font-size:14px}.journey-browser .entry:focus-visible{outline:2px solid #e4cba4}@media(max-width:1000px){.journey-mode .layout{grid-template-columns:145px minmax(0,1fr);gap:20px}.journey-workspace{grid-template-columns:1fr}.journey-browser{border-right:0;border-bottom:1px solid #ffffff20;max-height:480px}.journey-reader{max-height:none;min-height:260px}.journey-browser .day{max-height:44px;aspect-ratio:auto}}@media(max-width:700px){.journey-mode .layout{display:block}.journey-reader{padding:18px}.reader-paper{padding:20px}.reader-toolbar h2{font-size:17px}}

.reader-toolbar-actions{display:flex;align-items:center;gap:10px}.reader-toolbar-actions .quiet{padding:10px 16px}
.record-date-dialog{width:calc(100% - 32px);max-width:380px;padding:24px;border:1px solid #ffffff28;border-radius:20px;background:#182338;color:#f4f5f8;box-shadow:0 20px 70px #0005}.record-date-dialog::backdrop{background:#080e1b88}.record-date-dialog h2{font-family:inherit;font-size:20px;line-height:1.5;margin:0 0 12px}.record-date-dialog p{font-size:16px;line-height:1.6;margin:0 0 22px;color:#aeb9ca}.record-date-actions{display:grid;gap:10px}.record-date-actions button{width:100%;min-height:48px;font-size:16px}[data-theme=light] .record-date-dialog{background:#fff;color:#25324a;border-color:#dce1e8}[data-theme=light] .record-date-dialog p{color:#59677a}.calendar .day:not(.has):hover{background:#d9be941a}.calendar .day:focus-visible{outline:2px solid #b29461;outline-offset:2px}
.journey-edit-summary{width:100%;min-height:240px;margin:0;background:#0b1321;border:1px solid #d9be9466;border-radius:12px;color:#f4f5f8;padding:16px;font:inherit;line-height:1.9;resize:vertical}.journey-edit-task{display:flex!important;align-items:center;gap:12px}.journey-edit-task input[type=checkbox]{width:20px;height:20px;accent-color:#ddc399;flex-shrink:0}.journey-edit-task input[type=text]{margin:0;min-width:0}.journey-add-task{margin-top:14px;padding:9px 13px!important}

.journey-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.journey-page-heading h1{margin:0}.journey-new-note{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:10px;border-radius:14px}.journey-new-note svg{display:block}.journey-new-note:focus-visible{outline:2px solid #b29461;outline-offset:3px}
.journey-reader.note-mode{padding:0}.journey-note-editor{display:flex;flex-direction:column;min-height:100%}.journey-note-toolbar{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #ffffff20}.journey-note-toolbar h2{font-family:inherit;font-size:15px;font-weight:400;line-height:1.6;color:#aeb9ca;margin:0}.journey-note-toolbar .quiet{flex:0 0 44px;width:44px;min-height:44px;padding:8px;font-size:20px}
#journeyNoteBody{display:block;flex:1;width:100%;min-height:420px;min-height:max(320px,calc(100dvh - 330px));border:0;border-radius:0;background:transparent;color:inherit;padding:24px 28px;margin:0;font:inherit;font-size:18px;line-height:1.9;resize:vertical;box-shadow:none;outline:none;caret-color:#b29461;scroll-margin-bottom:120px}#journeyNoteStatus{padding:0 24px;color:#eea49b;font-size:14px;line-height:1.6}#journeyNoteStatus:empty{display:none}
.journal-note-card{padding:22px 0;border-top:1px solid #ffffff20}.journal-note-card:first-child{border-top:0;padding-top:0}.journal-note-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.journal-note-card-toolbar .quiet{min-height:44px;padding:8px 14px}.journal-note-card .output-text{margin-top:14px}.journal-note-card:last-child{margin-bottom:28px}
[data-theme=light] .journey-note-toolbar,[data-theme=light] .journal-note-card{border-color:#dce1e8}[data-theme=light] .journey-note-toolbar h2{color:#59677a}[data-theme=light] #journeyNoteBody{border:0;background:transparent;color:#202c3e}[data-theme=light] #journeyNoteStatus{color:#a13d37}
@media(max-width:700px){.journey-page-heading{margin-bottom:16px}.journey-new-note{width:48px;min-height:48px}.journey-note-toolbar{padding:12px;gap:10px}.journey-note-toolbar h2{font-size:14px}#journeyNoteBody{padding:18px 16px;font-size:18px;min-height:max(320px,55svh)}}

.journey-note-toolbar h2{flex:1;min-width:0}.journey-note-toolbar .journey-note-save{margin-left:auto;min-width:100px;min-height:48px;padding:12px 22px;font-size:17px;border-radius:12px;flex-shrink:0}.journey-month-count{font-size:14px;line-height:1.6;margin:18px 0 0;color:#b29461}.journal-note-actions{display:flex;align-items:center;gap:8px}.icon-delete{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:8px!important}.icon-delete svg{display:block}.icon-delete:hover{color:#ee8d82}.note-preview{display:block;width:100%;padding:14px 0;margin-top:8px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font:inherit;line-height:1.8;overflow-wrap:anywhere;cursor:pointer}.note-preview:hover{background:#8080800c}.note-read-body{min-height:260px;margin-top:0;cursor:text;white-space:pre-wrap}.note-read-body:focus-visible{outline:2px solid #b29461;outline-offset:8px;border-radius:4px}#journeyNoteView .reader-toolbar h2{flex:1;min-width:0}#journeyNoteView .reader-period{line-height:1.6;text-align:center}#journeyDayCount,#journeyNoteCount{font-size:14px;line-height:1.6;text-align:center}#journeyDeleteStatus:empty{display:none}.record-date-actions .delete-confirm{color:#f18a8a;border-color:#f18a8a55}[data-theme=light] .record-date-actions .delete-confirm{color:#a23d35;border-color:#d69992}
@media(max-width:700px){.journey-note-toolbar .journey-note-save{min-width:88px;min-height:48px;padding:12px 18px}.journey-note-toolbar h2{font-size:14px}.journey-month-count{font-size:14px}.note-preview{font-size:16px}}

#journeyDaySummary[role=button]{cursor:pointer}#journeyDaySummary[role=button]:focus-visible{outline:2px solid #b29461;outline-offset:8px;border-radius:4px}

#journeyTodoStatus:empty{display:none}#journeyTodoStatus{font-size:14px;line-height:1.6;color:#eea49b}#journeyDoneTasks .done .task-text{text-decoration:line-through;opacity:.75}#journeyDoneTasks label{flex:1;min-width:0}#journeyDoneTasks input[type=checkbox]{flex:0 0 22px;width:22px;height:22px}[data-theme=light] #journeyTodoStatus{color:#a13d37}

.journey-browser-column{min-width:0}.journey-review-footer{display:flex;justify-content:flex-end;align-items:center;margin:0;padding:14px 16px;background:#101725}.journey-review-footer .journey-new-note{flex-shrink:0}[data-theme=light] .journey-review-footer{background:#fff}
@media(min-width:1001px){.journey-browser-column{display:flex;flex-direction:column;height:calc(100dvh - 218px);min-height:300px}.journey-browser-column .journey-browser{flex:1;height:auto;min-height:0;max-height:none;overflow:auto}.journey-review-footer{flex-shrink:0}}
.todo-state{flex:0 0 auto;padding:3px 8px;border-radius:8px;font-size:12px;line-height:1.6;white-space:nowrap}.todo-state.is-complete{color:#a4d6b5;background:#8bb59b20}.todo-state.is-pending{color:#b4bfd0;background:#80808012}[data-theme=light] .todo-state.is-complete{color:#437153;background:#eaf3ed}[data-theme=light] .todo-state.is-pending{color:#677487;background:#edf0f4}#journeyDoneTasks .task-text{flex:1;min-width:0}

.journey-review-footer{gap:10px}
.journey-review-footer .journey-new-note{width:40px;height:44px;min-height:44px;flex:0 0 40px;padding:10px;border:0;background:transparent;box-shadow:none}
.journey-review-footer .journey-new-note svg{width:18px;height:18px}
.journey-review-footer .journey-record-day{min-height:44px;padding:10px 18px;border:0;box-shadow:none;font-size:16px;border-radius:12px}
[data-theme=light] .journey-review-footer .journey-new-note{border:0;background:transparent}

.journey-date-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;padding:20px;gap:14px}
.journey-date-header h2{font-family:inherit;font-size:22px;line-height:1.5;margin:0}
.journey-date-header .journey-new-note{width:44px;height:44px;flex:none;border:1px solid #ffffff35;background:#ffffff0b;border-radius:12px}
[data-theme=light] .journey-date-header .journey-new-note{border:1px solid #cbd4df;background:#f5f7fa}
.journey-date-header .journey-record-day{grid-column:1;justify-self:start}
#journeyDayTitle,#journeyDayClose,#journeyDaily .reader-period,#journeyNoteView .reader-period,#journeyNoteReadClose{display:none!important}
@media(max-width:700px){.journey-date-header{padding:16px 12px}.journey-date-header h2{font-size:20px}}

#journeyNoteDate{display:none}.journey-note-toolbar{justify-content:flex-end}

.journey-date-header .journey-record-day{min-height:54px;padding:14px 24px;font-size:19px;border-radius:14px}

.journey-done-heading{scroll-margin-top:20px}

.journey-date-header h2{grid-column:1/-1}
.journey-date-header .journey-record-day{grid-row:2;grid-column:1;min-height:60px;padding:16px 28px;font-size:21px}
.journey-date-header .journey-new-note{grid-row:2;grid-column:2;justify-self:end}
.journey-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.journey-summary-heading .journey-summary-title{margin:0;font-weight:600}
.journey-summary-heading .reader-toolbar-actions{margin-left:auto}
#journeyDaily>.reader-toolbar{display:none}
#clarity .todo-panel{scroll-margin-top:16px}

#journeySummarySection>summary{cursor:pointer;list-style:none}#journeySummarySection>summary::-webkit-details-marker{display:none}

/* Fixed star and status tracks keep completion labels from moving priorities. */
#journeyDoneTasks>.todo-item{display:grid;grid-template-columns:24px minmax(0,1fr) 56px 76px;column-gap:10px;align-items:center}
#journeyDoneTasks>.todo-item>.task-priority-stars{width:56px;min-width:0;margin:0;text-align:center;justify-self:center}
#journeyDoneTasks>.todo-item>.todo-state{width:76px;box-sizing:border-box;text-align:center;justify-self:center}
@media(max-width:360px){#journeyDoneTasks>.todo-item{grid-template-columns:20px minmax(0,1fr) 52px 72px;column-gap:6px}#journeyDoneTasks>.todo-item>.task-priority-stars{width:52px}#journeyDoneTasks>.todo-item>.todo-state{width:72px;padding-left:4px;padding-right:4px}}

.backup-tools { margin: 8px 0 0; }
.backup-tools > summary { cursor: pointer; padding-block: 12px; font-weight: 600; }
.backup-tools .backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 6px; }
.backup-tools .quiet { min-height: 44px; }
.backup-tools .muted { margin: 4px 0 12px; font-size: 14px; line-height: 1.6; }
#backupStatus { overflow-wrap: anywhere; }
#backupStatus:empty { display: none; }
