#journal-dialog{width:min(1000px,calc(100% - 32px));padding:34px 36px 24px;background:#fbf8f5;overflow-x:hidden}
#journal-dialog>h2{margin:9px 0 10px;font-size:40px}
#journal-dialog>.eyebrow{color:#9c8366;letter-spacing:.2em}
#journal-dialog .journal-intro{max-width:680px;font-size:12px;line-height:1.7}
#journal-dialog #journal-entries{display:block;margin:20px 0 0}
.agenda-status:empty{display:none}.agenda-status{color:var(--muted);padding:16px 0}
.agenda-shell{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;min-width:0;align-items:start}
.agenda-shell[aria-busy=true]{opacity:.6;pointer-events:none}
.agenda-calendar-wrap{padding-top:6px;min-width:0}
.agenda-calendar{border:0}
.agenda-calendar-toggle{display:none;list-style:none;font-size:12px;color:var(--plum);padding:13px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.agenda-calendar-toggle::-webkit-details-marker{display:none}
.agenda-calendar-toggle:after{content:'+';float:right;color:#aa916f;font-size:17px}
.agenda-calendar[open]>.agenda-calendar-toggle:after{content:'−'}
.agenda-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.agenda-month-nav h3{font-size:12px;font-weight:500;text-transform:capitalize;margin:0;text-align:center}
.agenda-icon-button{display:grid;place-content:center;flex:0 0 38px;width:38px;height:38px;background:transparent;border:1px solid transparent;border-radius:50%;font-size:26px;font-weight:300;line-height:1;color:#735a69}
.agenda-icon-button:hover:not(:disabled){border-color:#cdbda7;background:#f2ece7}.agenda-icon-button:disabled{opacity:.25}
.agenda-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.agenda-weekday{text-align:center;font-size:9px;color:#9c8c95;padding:7px 0}
.agenda-calendar-day{position:relative;min-height:36px;width:100%;border-radius:50%;background:transparent;font-size:11px;padding:3px 0 6px;border:1px solid transparent;line-height:1}
.agenda-calendar-day[aria-current=date]{border-color:#b99f79}
.agenda-calendar-day[data-filled=true]:after{content:'';position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#b19263}
.agenda-calendar-day:hover:not(:disabled){background:#eee5e9}
.agenda-calendar-day[aria-pressed=true]{background:#493640;color:#fffaf4;border-color:#493640}
.agenda-calendar-day[aria-pressed=true]:after{background:#e1c18d}
.agenda-calendar-day:disabled{opacity:.27}
#journal-dialog .agenda-calendar-legend{font-size:9px;line-height:1.5;color:#8a7c83;margin:12px 0 8px;text-align:center}
.agenda-today{display:block;padding:10px 14px;min-height:40px;margin:0 auto;background:transparent;border-radius:30px;color:#6b505f;font-size:10px;text-decoration:underline;text-underline-offset:4px}
.agenda-bookmark{position:relative;margin:26px 10px 0;padding:24px 14px;text-align:center;border-top:1px solid #d7c8b580;color:#a58c6d}
.agenda-bookmark:before{content:'✧';position:absolute;top:-10px;left:calc(50% - 14px);width:28px;background:#fbf8f5;font-size:16px}
.agenda-bookmark-brand{font-size:8px;letter-spacing:.3em}
#journal-dialog .agenda-bookmark p{font-family:Georgia,serif;font-size:18px;line-height:1.4;white-space:pre-line;font-style:italic;margin-top:12px;color:#94838c}
.agenda-page{position:relative;min-width:0;border:1px solid #d8c9b760;border-radius:5px 20px 20px 5px;background:linear-gradient(90deg,#e8dfd744 0,#fffcf8 18px,#fffdf9 100%);box-shadow:2px 6px 24px #49364006;padding:24px 28px 18px}
.agenda-page:before{content:'';position:absolute;left:6px;top:15px;bottom:15px;border-left:1px solid #d3bf9e30;pointer-events:none}
.agenda-day-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}
.agenda-day-date{display:flex;align-items:center;gap:13px;min-width:0}
.agenda-day-number{font-family:Georgia,serif;font-size:48px;font-weight:400;color:#8e7259;line-height:1}
.agenda-day-weekday{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#8b7882}
.agenda-day-words h3{font-family:Georgia,serif;font-size:19px;font-weight:400;letter-spacing:-.02em;text-transform:capitalize;margin:4px 0 0}
#journal-dialog .agenda-page-caption{text-align:center;margin:16px 0 22px;font-size:9px;letter-spacing:.07em;color:#9e8996}
.agenda-readings{border-top:1px solid #dfd2c550}
.agenda-reading{border-bottom:1px solid #dfd2c570}
.agenda-reading>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:17px 0;min-height:58px}
.agenda-reading>summary::-webkit-details-marker{display:none}
.agenda-reading>summary:hover .agenda-reading-kind{color:#9b7855}
.agenda-reading-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border:1px solid #d5b99180;border-radius:50%;font-family:Georgia,serif;font-size:20px;line-height:1;color:#b29264}
.agenda-reading-names{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.agenda-reading-kind{font-size:12px;font-weight:550;line-height:1.3}
.agenda-reading-title{font-size:10px;line-height:1.5;color:#8f7d88;overflow-wrap:anywhere}
.agenda-reading-toggle{font-size:20px;font-weight:300;color:#b29264;margin-left:auto}
.agenda-reading[open]>.agenda-reading-toggle{transform:rotate(45deg)}
.agenda-reading[open]>summary>.agenda-reading-toggle{font-size:0}.agenda-reading[open]>summary>.agenda-reading-toggle:after{content:'−';font-size:20px}
.agenda-reading-body{padding:0 0 22px 44px;overflow-wrap:anywhere}
#journal-dialog .agenda-reading-text{font-size:12px;line-height:1.85;white-space:pre-line;color:#66535f;margin:0}
.agenda-reading-heading{font-size:11px;font-weight:600;margin:18px 0 5px;color:#493640}
.agenda-reading-heading:first-child{margin-top:0}
.agenda-original-note{margin:17px 0 0;padding:14px 15px;border-left:2px solid #ceb78f;background:#f1e9e230;border-radius:0 8px 8px 0}
#journal-dialog .agenda-reading-language{font-size:9px;color:#9c8994;margin:13px 0 0}
.agenda-page-empty{padding:26px 10px 20px;text-align:center;color:#6e5665}
.agenda-empty-star{display:inline-block;font-size:28px;color:#b49467;margin-bottom:15px}
#journal-dialog .agenda-page-empty>p{font-size:13px}
#journal-dialog .agenda-page-empty .agenda-empty-hint{max-width:350px;margin:9px auto 0;font-size:11px;line-height:1.8;color:#9a8993}
.agenda-notes{margin-top:27px}
.agenda-notes>label{font-family:Georgia,serif;font-size:21px;font-weight:400;margin-bottom:12px;letter-spacing:-.025em}
.agenda-notes textarea{display:block;min-height:108px;resize:vertical;background:repeating-linear-gradient(transparent 0,transparent 28px,#e2d8cf80 29px,transparent 30px);background-position:0 14px;border:0;border-radius:0;padding:10px 1px;line-height:30px;font-size:13px;color:#604a59}
.agenda-notes textarea:focus{background-color:#f9f4ee;outline-offset:5px;border-radius:4px}
.agenda-notes textarea::placeholder{color:#ac9da5;font-size:12px}
.agenda-note-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}
.agenda-note-count{font-size:9px;color:#a08c99}
.agenda-note-save{padding:11px 18px;border-radius:30px;min-height:42px;font-size:11px;background:#493640;color:#fbf8f5}
.agenda-note-save:hover{background:#634d5b}.agenda-note-save:disabled{opacity:.5}
#journal-dialog .agenda-note-status{font-size:10px;line-height:1.7;min-height:17px;color:#8b7882;margin:10px 0 0}
@media(min-width:720px){.agenda-calendar:not([open])>.agenda-calendar-body{display:block!important}}
@media(max-width:719px){#journal-dialog{padding:29px 18px 20px;width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:22px}#journal-dialog>h2{font-size:33px;margin-top:11px}#journal-dialog .journal-intro{font-size:11px;line-height:1.8;margin-right:5px}.agenda-shell{grid-template-columns:minmax(0,1fr);gap:14px}.agenda-calendar-wrap{padding-top:0}.agenda-calendar-toggle{display:block}.agenda-calendar-body{padding:10px 14px 12px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px}.agenda-calendar[open]>.agenda-calendar-toggle{border-radius:12px 12px 0 0}.agenda-calendar-day{min-height:40px}.agenda-bookmark{display:none}.agenda-page{padding:19px 17px 16px 20px;border-radius:4px 16px 16px 4px}.agenda-day-number{font-size:43px}.agenda-day-words h3{font-size:17px}.agenda-day-date{gap:9px}.agenda-day-nav{gap:0}.agenda-day-nav>.agenda-icon-button{flex-basis:31px;width:31px}.agenda-reading-body{padding-left:0}.agenda-reading>summary{gap:10px}.agenda-reading-kind{font-size:12px}#journal-dialog .agenda-reading-text{font-size:13px;line-height:1.85}.agenda-reading-heading{font-size:12px}.agenda-notes textarea{font-size:16px}.agenda-notes textarea::placeholder{font-size:12px}.agenda-note-save{min-height:44px}.agenda-reading-title{font-size:10px}}
@media(prefers-reduced-motion:reduce){.agenda-shell *{transition:none!important}}

.agenda-icon-button.agenda-text-step{font-size:10px;font-weight:500;letter-spacing:0;border-radius:12px;flex-basis:42px;width:42px}
