:root{color-scheme:light;--ink:#15274a;--gold:#c49a2b;--paper:#fffaf3;--muted:#5c6474}*{box-sizing:border-box}body{margin:0;background:#eee9e2;color:var(--ink);font:17px/1.45 Georgia,serif}.demo{background:#223b50;color:#fff;text-align:center;font:12px/1.5 system-ui;padding:9px 16px;position:relative}#app{max-width:510px;min-height:95vh;margin:auto;background:var(--paper);padding:22px 18px 30px;box-shadow:0 8px 45px #27334316}header{position:relative;text-align:center;padding:18px 0 10px}.brand{font:700 11px system-ui;letter-spacing:3px}h1{font-size:42px;line-height:1.1;margin:5px 0 12px}h2{font-size:27px;line-height:1.2;margin:18px 0 12px}h3{margin:0;font-size:20px}.brand-tagline{margin:0 auto 12px;color:var(--muted);font-size:.875rem;line-height:1.25rem;text-align:center}.toplinks{display:flex;justify-content:flex-end;gap:5px;margin-bottom:3px}.toplinks button{padding:5px 10px;font-size:14px}button,.button{font:600 16px/1.2 system-ui;color:white;background:#173e70;border:1px solid #173e70;border-radius:11px;min-height:44px;padding:10px 15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}button:hover{filter:brightness(1.08)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b97d00;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.secondary{background:transparent;color:var(--ink);border-color:#acb5c4}.quiet{background:none;color:var(--ink);border-color:transparent}.wide{width:100%;margin-top:12px}.row{display:flex;gap:9px;align-items:center;justify-content:space-between}.row>*{min-width:0}.row .grow{flex:1}.datebar{margin:12px 0 22px}.datebar input{width:165px;padding:8px;font:15px system-ui;min-height:44px}.status{font:12px system-ui;color:var(--muted);text-align:right;min-height:20px}.notice{padding:13px;background:#f6eacb;border-radius:12px;font:14px/1.5 system-ui;margin:14px 0}.summary{margin-bottom:15px;font-size:17px}.station{display:flex;align-items:center;gap:12px;background:var(--card);padding:14px;border-radius:14px;margin:10px 0;border-left:5px solid transparent;min-height:99px}.station.next{border-left-color:#c79708}.station.done{background:#e3e5e8}.station .copy{flex:1;min-width:0;overflow-wrap:anywhere}.station strong{font-size:21px}.translation{font-size:16px;font-weight:400}.station p{margin:3px 0 0;font-size:17px}.completion{width:112px;flex:0 0 112px;font-size:14px;padding:10px 8px;white-space:normal}.done .completion{background:#666d78;border-color:#666d78}.small{font:13px/1.5 system-ui;color:var(--muted)}.separator{border:0;border-top:1px solid #d8c9a4;margin:26px 0}.incident-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}.incident-box{border-radius:14px;padding:14px 10px;background:#f7e2dc;text-align:center}.incident-box.lost{background:#f8edcd}.incident-box button{width:100%;font-size:14px}.incident-box .quiet{margin-top:6px}.tally{font:14px system-ui;margin:8px 0}label{display:block;font:600 14px/1.5 system-ui;margin:15px 0 6px}input,select,textarea{font:16px/1.5 system-ui;color:var(--ink);background:#fffdf9;border:1px solid #a9b2c1;border-radius:9px;padding:11px;width:100%;min-height:44px}textarea{resize:vertical;min-height:112px}footer{text-align:center;font-style:italic;margin:32px 0 0;display:flex;align-items:center;gap:16px}footer:before,footer:after{content:'';height:1px;background:var(--gold);flex:1}.category{background:var(--card);padding:16px;margin:10px 0;border-radius:14px}.category p{margin:6px 0}.editor{padding:13px;border-radius:12px;margin:12px 0;background:var(--card)}.editor .tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.editor .tools button{font-size:13px;padding:8px;min-width:44px}.drag{touch-action:none;cursor:grab}.editor.dragging{outline:3px solid var(--gold)}.weekdays{display:flex;flex-wrap:wrap;gap:8px}.weekdays button{background:transparent;color:var(--ink);border-color:#a9b2c1}.weekdays button[aria-pressed=true]{background:#173e70;color:white}dialog{border:0;border-radius:21px;background:var(--paper);color:var(--ink);width:calc(100% - 36px);max-width:420px;padding:25px;box-shadow:0 15px 70px #0005}dialog::backdrop{background:#17243980}dialog .row{margin-top:16px}dialog .row button{flex:1}.eyebrow{font-style:italic;color:#5a6d83}.guide{padding:18px;background:#eee4f5;border-radius:15px;margin:20px 0}.metrics{display:flex;gap:12px}.metric{background:#e8edf4;border-radius:12px;padding:16px;flex:1}.metric strong{font-size:30px;display:block}table{width:100%;font:13px system-ui;border-collapse:collapse;word-break:break-word}td,th{text-align:left;padding:12px 5px;border-bottom:1px solid #ddd}.error{color:#a02e25;font:14px system-ui}.events{font:14px system-ui;padding-left:20px}.events li{margin:8px 0}@media(max-width:360px){#app{padding:16px 12px}.station{padding:11px;gap:8px}.completion{width:96px;flex-basis:96px;font-size:14px}.station strong{font-size:19px}.translation{font-size:14px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}

.editor .move-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.editor .move-tools button{min-height:48px;font-size:16px;padding:10px}.editor .activity-row{display:flex;align-items:center;gap:10px}.editor .activity-row input{flex:1;min-width:0}.editor .activity-row .drag{width:48px;height:48px;min-width:48px;flex:0 0 48px;padding:0}.grip-dots{display:grid;grid-template-columns:repeat(2,5px);gap:4px 5px}.grip-dots span{width:5px;height:5px;background:currentColor;border-radius:50%}.move-arrow{font:700 30px/1 system-ui;flex-shrink:0}.editor .move-tools button{gap:8px;flex-wrap:wrap}.editor .tools{border-top:1px solid #15274a22;padding-top:10px;margin-top:12px}.editor .tools button{font-size:15px;min-height:44px;padding:10px 14px}#arrange-status{font:14px system-ui;}

/* Approved A engraved-line family: ornaments never replace the category text. */
.station-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.station-heading>:first-child{min-width:0;overflow-wrap:anywhere}
.station-icon{width:44px;height:44px;flex:0 0 44px;color:var(--ink);pointer-events:none}
.editor .station-icon,.category .station-icon{width:48px;height:48px;flex-basis:48px}
.station.done .station-icon{color:#596474}
@media(max-width:360px){.station .station-icon{width:34px;height:34px;flex-basis:34px}.station-heading{gap:6px}}

/* Read-only station explanations: a separate modal keeps drafts and scroll intact. */
.station-heading{flex-wrap:wrap}
.station-heading-tools{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
.station-about{min-width:44px;min-height:44px;padding:8px;font-size:13px}
#station-about-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
#station-about-dialog h3{font-size:18px}
#station-about-icon .station-icon{width:56px;height:56px}

/* Small, decorative counterparts to the approved happy/upset devil concept. */
.devil-guide{display:flex;align-items:center;gap:14px}
.devil-guide>div{min-width:0}
.devil-guide h3{margin-top:0}
.devil-guide p{margin-bottom:0}
.devil-icon{width:64px;height:64px;flex:0 0 64px;color:var(--ink);pointer-events:none}
@media(max-width:360px){.devil-guide{gap:10px}.devil-icon{width:48px;height:48px;flex-basis:48px}}

/* Category ornament belongs to the title, About remains the right-hand action. */
.station-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.station-title>h3,.station-title>div{min-width:0;overflow-wrap:anywhere}
.station-title .station-icon{flex-shrink:0}

/* English remains the action; Latin is a quiet explanatory second line. */
.devil-label{display:inline-flex;flex-direction:column;align-items:inherit;gap:3px;max-width:100%;overflow-wrap:normal}
.devil-latin{display:block;font:italic 0.76em/1.35 Georgia,serif;font-weight:400}
.incident-buttons>section{min-width:0}
.incident-buttons button:not(.quiet){white-space:normal;min-height:64px;width:100%}
.events .devil-label{display:inline;line-height:1.35;margin:0}
.events .devil-latin{display:inline-block;font-size:.94em;color:#526075}
.events .event-lost .event-title{color:#2e6243}
.events .event-won .event-title{color:#893d39}
.devil-latin{font-size:max(12px,0.76em)}
.guide dl{margin-bottom:0}.guide dt{margin-top:16px}.guide dd{margin:5px 0 0;line-height:1.5}

/* A consistent small book marks reading invitations. */
.ancient-reading{display:flex;align-items:center;gap:12px;margin-top:18px;padding:12px;border:1px solid #b6a372;border-radius:12px;background:#f5eddb;color:var(--ink);text-decoration:none;min-height:48px}
.ancient-reading>span{min-width:0;overflow-wrap:anywhere}
.ancient-reading strong,.ancient-reading .small{display:block}
.ancient-reading strong{text-decoration:underline;text-underline-offset:3px}
.ancient-reading .reading-window{margin-top:4px}
.ancient-reading:hover{background:#eee2c8}
.ancient-reading:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.reading-icon{width:22px;height:22px;display:inline-block;vertical-align:middle;margin-right:6px;color:currentColor;pointer-events:none;flex-shrink:0}
.ancient-reading>.reading-icon{width:28px;height:28px;margin:0;flex:0 0 28px}
/* Daily reflection controls: matched motifs and one compact tally/undo row. */
.incident-buttons{grid-template-columns:1fr;gap:10px}
.incident-box{padding:10px}
.incident-box .incident-action{gap:12px;justify-content:flex-start;text-align:left;padding:9px 14px}
.incident-action .devil-icon{width:40px;height:40px;flex-basis:40px;color:inherit}
.incident-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.incident-meta .tally{margin:0;font-size:14px;padding-left:4px}
.incident-box .incident-meta .quiet{width:auto;min-height:44px;margin:0;padding:8px 10px}
.datebar{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:8px;margin:12px 0}
.datebar .date-arrow{width:52px;min-height:52px;font-size:36px;line-height:1;padding:4px}
.day-heading{font-size:24px;text-align:center;font-weight:700;margin:0;overflow-wrap:anywhere}
.date-tools{display:flex;gap:2px;flex-wrap:wrap;justify-content:flex-end}
.glossary-station{display:flex;align-items:center;gap:10px;margin-top:12px}
.glossary-station .station-icon{width:32px;height:32px;flex:0 0 32px}
.glossary-station>span{min-width:0;overflow-wrap:anywhere}

/* Static, readable personal-day illustration; no live data or interactive controls. */
.personal-day-example{margin:18px 0 20px;padding:14px;border:1px solid #d8c9a4;border-radius:18px;background:#fffdf9;box-shadow:0 4px 16px #15274a0a}.personal-day-example figcaption{display:grid;gap:5px;margin-bottom:14px}.personal-day-example figcaption>strong{font-size:22px}.example-day-stack{display:grid;gap:8px}.example-day-card{display:flex;gap:10px;align-items:center;background:var(--card);border-radius:10px;padding:12px}.example-day-card>svg{width:30px;height:30px;flex:0 0 30px}.example-day-card>div{min-width:0;overflow-wrap:anywhere}.example-day-card strong{font-size:17px;line-height:1.3}.example-day-card .translation{font-size:14px}.example-day-card p{margin:3px 0 0;font:15px/1.4 system-ui}#devil-reflections-title{padding-top:16px;border-top:1px solid #d8c9a4;margin-top:24px}

/* Link-styled setup action: the button semantics preserve keyboard activation. */
#skip-intro{color:#174f87;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;min-height:48px;white-space:normal}
#skip-intro:hover{color:#10355d;background:#eaf0f6;filter:none}
#skip-intro:focus-visible{outline:3px solid #b97d00;outline-offset:3px;background:#eaf0f6}

/* Clearly separated illustration and pressable action, rather than a banner. */
.incident-buttons .incident-box{padding:12px 14px 6px;border:1px solid #ddc7bf;border-radius:17px;background:#fbede8;text-align:left}
.incident-buttons .incident-box.lost{background:#f8f1df;border-color:#dfd2ae}
.incident-action-row{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:14px}
.incident-portrait{display:flex;align-items:center;justify-content:center}
.incident-portrait .devil-icon{width:56px;height:56px;flex-basis:56px}
.incident-buttons .incident-box .incident-action{display:flex;justify-content:center;align-items:center;width:fit-content;max-width:100%;min-width:min(100%,204px);justify-self:start;min-height:56px;padding:7px 16px;border:1px solid #102f56;border-bottom:4px solid #0b2342;border-radius:9px;background:#173e70;color:#fff;text-align:center;box-shadow:0 3px 6px #15274a24;font-size:17px;line-height:1.25}
.incident-action .devil-label{align-items:center}
.incident-action .devil-latin{font-size:14px;color:#edf2fa}
.incident-buttons .incident-action:not(:disabled):hover{background:#214d83;filter:none}
.incident-buttons .incident-action:not(:disabled):active{transform:translateY(2px);border-bottom-width:2px;box-shadow:0 1px 2px #15274a24}
.incident-buttons .incident-action:focus-visible{outline:3px solid #956300;outline-offset:4px}
.incident-box .incident-meta{margin-left:74px;margin-top:5px;gap:4px}
.incident-box .incident-meta .quiet{font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:8px 2px}
.incident-meta .tally{font-size:13px;padding:0}
@media(max-width:360px){.incident-buttons .incident-box{padding:10px 10px 5px}.incident-action-row{grid-template-columns:48px minmax(0,1fr);gap:10px}.incident-portrait .devil-icon{width:46px;height:46px;flex-basis:46px}.incident-box .incident-meta{margin-left:58px}.incident-buttons .incident-box .incident-action{font-size:16px;padding-inline:9px}}

/* Narrow view: let the title use the full card width instead of splitting Latin words beside the action. */
@media(max-width:360px){.station{flex-wrap:wrap}.station .copy{flex:1 0 100%;width:100%}.station .completion{margin-left:auto}}

/* iPhone review: keep programmatic dialog focus without a border on its heading.
   Interactive controls retain their visible keyboard focus treatment. */
#station-about-title:focus{outline:none}
/* A deliberate four-and-three rhythm instead of an accidental five-and-two wrap. */
.weekdays{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:380px}
.weekdays button{min-width:0;padding:10px 5px;white-space:nowrap}
/* Compact original card geometry; the title remains a quiet definition control. */
.station-definition{display:block;min-width:0;min-height:44px;padding:0;border:0;border-radius:3px;background:none;color:var(--ink);font:inherit;text-align:left;overflow-wrap:anywhere;word-break:normal}
.station-definition strong{display:block;text-decoration:none}
.station-definition .translation{display:block;overflow-wrap:normal;word-break:normal;white-space:normal}
.station-definition:hover{filter:none;color:#174f87}

/* Missing retained activity on Arrange your day; no daily-screen styles changed. */
.editor input[aria-invalid="true"]{outline:2px solid #973026;outline-offset:2px}

.station-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;max-width:100%}
.station-actions .completion{margin-left:0}
.station-skip{min-width:44px;min-height:44px;padding-inline:9px}
.station-skip[aria-pressed="true"]{border:1px solid #79591f}
@media(max-width:480px){.station{flex-wrap:wrap}.station .copy{flex:1 0 100%;width:100%}.station-actions{margin-left:auto}}

/* A deliberate skip recedes farther than Done without losing readable controls. */
.station.skipped{background:#b8bec6}
.station.skipped .station-skip[aria-pressed="true"]{color:var(--ink);background:#eef0f3;border-color:#354050}
.station.skipped button:focus-visible{outline:3px solid #243550;outline-offset:2px}

.day-score{margin:13px 0 10px;padding:10px 12px;border:1px solid #c7bda8;border-radius:12px;background:#f6efe3}
.day-score label{font-weight:bold}
.day-score input[type="range"]{display:block;width:100%;margin:2px 0 0;padding:0;min-height:44px;accent-color:#173e70;touch-action:pan-y}
.day-score input[type="range"]:focus-visible{outline:3px solid #243550;outline-offset:2px}
.score-marks{font:13px system-ui}
#score-result{font:13px system-ui;text-align:right}
.score-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.score-actions button{min-height:44px}
#score-timing,#score-hint{font-size:14px;margin:2px 0;color:#40506b}

/* 20px range thumb: marker centers occupy the same inner track as native stops. */
.day-score #day-score{-webkit-appearance:none;appearance:none;background:transparent;direction:ltr}
.day-score #day-score::-webkit-slider-runnable-track{height:5px;border-radius:4px;background:linear-gradient(to right,#a22b38 0%,#8a5900 50%,#167249 100%)}
.day-score #day-score::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-7.5px;border:2px solid #fffaf3;border-radius:50%;background:#173e70;box-shadow:0 0 0 1px #173e70}
.day-score #day-score::-moz-range-track{height:5px;border-radius:4px;background:linear-gradient(to right,#a22b38 0%,#8a5900 50%,#167249 100%)}
.day-score #day-score::-moz-range-thumb{box-sizing:border-box;width:20px;height:20px;border:2px solid #fffaf3;border-radius:50%;background:#173e70;box-shadow:0 0 0 1px #173e70}
.day-score .score-marks{display:flex;direction:ltr;justify-content:space-between;gap:0}
.score-marks span{width:20px;text-align:center;font-variant-numeric:tabular-nums}


.station-choice{display:flex;width:100%;justify-content:space-between;gap:8px;padding:0;min-height:44px;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;text-align:left}
.station-choice:hover{background:#ffffff4d;filter:none}
.choice-preview{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choice-edit{flex:none;align-self:center;min-width:50px;text-align:center;padding:0 9px;border-radius:7px;box-shadow:inset 0 0 0 1px #796b85;background:#fff7;color:#42334f;font:700 14px/32px system-ui;white-space:nowrap}
.choice-dialog h2{margin-top:0}
.choice-dialog label span{font-weight:400}
#choice-feedback:empty{display:none}
.report-freedom{overflow-wrap:anywhere;padding-left:21px}

.events .event-note{margin:2px 0 0;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}

/* Equal cards without clipping larger accessibility text. */
#stations{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:10px}
#stations>.station{margin:0;min-width:0}

.station .station-note:not([hidden]),.report-station-notes li{background:#fff1bd;color:#47340a;border-left:3px solid #a46c07;border-radius:5px;padding:4px 7px}
.station .station-note:not([hidden]){font:600 13px/1.4 system-ui;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.report-station-notes{list-style:none;padding:0}.report-station-notes li{margin:8px 0;padding:7px 10px;overflow-wrap:anywhere}
.report-station-notes li p{margin:4px 0 0;white-space:pre-wrap}

.station-entry-controls{display:flex;align-items:center;gap:7px;min-width:0}
.station-entry-controls .station-choice{width:auto;flex:1;min-width:0}
.station-entry-controls .choice-edit{font-size:13px;padding-inline:7px}
.station-note-button{flex:none;min-width:54px;min-height:44px;background:#fff8;color:#42334f;border:1px solid #796b85;border-radius:7px;padding:0 7px;font:700 13px/1 system-ui}

.person-card{margin:14px 0 16px;padding:12px 14px;background:#f6efe3;border:1px solid #c7bda8;border-radius:12px}
.person-card h2{font-size:20px;margin:0 0 5px}.person-card p{overflow-wrap:anywhere;margin:5px 0 8px}.person-card .row{margin-top:9px}.person-card button[hidden],.person-card form[hidden],.person-card p[hidden]{display:none}
#person-edit{font-size:14px;padding:7px 12px}

.person-quote{margin:9px 0 14px;padding:4px 12px;border-left:3px solid #baa466;color:#3e4961}.person-quote blockquote{margin:0;font-style:italic}.person-quote figcaption{font:13px/1.4 system-ui;margin:6px 0 2px}

/* Daily station actions: outcome, detail, then a reversible change to today's list. */
#stations>.station{display:flex;flex-direction:column;align-items:stretch;gap:6px;border-radius:16px;padding:12px;min-width:0;background:var(--card);box-shadow:0 3px 9px #20353612}
#stations>.station.done{background:#e3e9e3}#stations>.station.skipped{background:#b8bec6}
#stations>.station[hidden],#stations [hidden],#removed-stations[hidden],#removed-stations [hidden]{display:none!important}
#stations .station-title{display:flex;align-items:center;gap:8px;min-width:0}
#stations .station-definition strong,#stations .station-definition .translation{display:inline}
#stations .choice-preview{font-size:17px;margin:0;min-height:1.4em}
#stations .station-note:not([hidden]){margin:0;padding:5px 7px}
.station-note strong{text-transform:uppercase;font-size:10px;letter-spacing:.08em;margin-right:4px}
#stations .station-outcome-actions,#stations .station-entry-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
#stations .station-outcome-actions button,#stations .station-entry-controls button{display:block;min-height:44px;width:100%;min-width:0;padding:4px 6px;border:1px solid #99b3ba;border-radius:9px;font:650 13px/1.18 system-ui;text-align:center;white-space:normal;overflow-wrap:anywhere;color:#204856;background:#fff8}
#stations .station-outcome-actions .completion{margin:0;background:#215747;color:#fff;border-color:#215747}
#stations .station-entry-controls button{background:#fff4;border-color:#8b9fa6}

#stations .station-entry-controls .station-skip{border-color:#ad7469;color:#813f32;background:#fffaf360;box-shadow:0 0 0 2px #ad746920}
.station-outcome,.station-removed{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px 0 10px;border:1px solid #8c9d93;border-radius:9px;background:#e8efe9;color:#304b41;font:700 14px/1.25 system-ui;min-width:0}
.station.skipped .station-outcome{background:#eef0f3;color:#354050}
#stations .station-undo,#removed-stations .station-undo{min-height:44px;min-width:50px;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#204856;font:700 13px system-ui}
#removed-stations{display:grid;gap:7px;margin-top:10px}.station-removed{border-color:#d7c49d;background:#f7eed9;color:#614c29}.station-removed div{padding:5px 0}.station-removed span{display:block;font-size:12px;font-weight:500}

/* Personal statement: an unhurried, readable space for a sentence in the user's own words. */
.person-card{margin:20px 0 24px;padding:clamp(14px,4.6vw,20px);border-radius:15px}
.person-card h2{margin:0 0 12px;font-size:22px;line-height:1.25}
#person-statement{font:italic 20px/1.5 Georgia,serif;margin:0 0 14px;padding:0 0 0 12px;border-left:2px solid #b49559;color:#25354b}
.person-card #person-edit{min-height:44px}
.person-card .person-writing{display:grid;gap:8px}
.person-card .person-writing p,.person-card .person-writing label,.person-examples{margin:0}
.person-writing label span{font-weight:400}
.person-examples{padding-inline-start:20px;color:#465168;font:14px/1.5 system-ui}
.person-examples li+li{margin-top:4px}
.person-card textarea{box-sizing:border-box;width:100%;min-height:84px;resize:vertical;font:16px/1.45 system-ui;padding:10px;margin:3px 0 0}
.person-card .person-actions{margin:12px 0 0;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.person-actions button{min-height:44px}
.person-card .person-quote{margin-bottom:18px}

/* The daily statement leads; the setup card retains its original writing layout. */
.person-card.sunrise-card{position:relative;isolation:isolate;overflow:hidden;text-align:center;padding:22px 17px 9px;border:1px solid #d9c6a0;border-radius:20px;background:radial-gradient(ellipse at 50% 0%,#f9eac7 0,transparent 64%),linear-gradient(160deg,#fffaf0,#f1e8d8);box-shadow:0 6px 18px #4632170e}
.sunrise-card .person-sunrise{display:block;width:62px;height:36px;color:#96681f;margin:0 auto 8px}
.sunrise-card .person-horizon{position:absolute;z-index:-1;inset:auto 0 0;width:100%;height:105px;color:#d8be8a;opacity:.28;pointer-events:none}
.sunrise-card #person-heading{margin:0;color:#6b542d;font:750 .6875rem/1.5 system-ui;letter-spacing:.22em;text-transform:uppercase}
.sunrise-card #person-statement{max-width:315px;margin:14px auto 0;padding:0;border:0;color:#172b48;font:1.6875rem/1.29 Georgia,serif;letter-spacing:-.026em;text-wrap:balance;overflow-wrap:anywhere}
.sunrise-card #person-statement:not([hidden])::after{content:"";display:block;width:42px;height:1px;margin:18px auto 0;background:#a87b39}
.sunrise-card #person-edit{display:inline-block;min-height:44px;padding:0 10px;border:0;box-shadow:none;border-radius:5px;background:none;color:#4d4f5b;font:600 .8125rem/1.3 system-ui;text-decoration:underline;text-underline-offset:4px}
.sunrise-card #person-statement[hidden]+#person-edit{margin-top:8px}
.sunrise-card #person-edit:focus-visible{outline:2px solid #64502d;outline-offset:1px}
.sunrise-card #person-form{text-align:left;margin:16px auto 8px;max-width:460px;padding:12px;border-radius:12px;background:#fffaf0}

/* Journal margin: matching outlined actions, with separate tallies and Undo. */
.journal-margin{margin:0 0 17px}
.journal-margin .journal-kicker{margin:6px 0 7px;color:#6f5428;font:750 .6875rem/1.4 system-ui;letter-spacing:.16em;text-transform:uppercase}
.journal-margin .journal-copy{padding:0 0 12px;margin:0 0 9px;border-bottom:1px solid #e1d5bf;color:#405161;font: .9375rem/1.5 system-ui}
.journal-margin .journal-question{margin:0 0 10px;font:700 .9375rem/1.4 system-ui}
.journal-margin .incident-buttons{gap:5px;margin:0}
.journal-margin .incident-buttons .incident-box{--moment-bg:#f8ebe3;--moment-hover:#f0e0d7;--moment-ink:#593027;--moment-line:#9f7a71;background:none;border:0;padding:0;min-width:0}
.journal-margin .incident-buttons .incident-box.lost{--moment-bg:#edf3e9;--moment-hover:#e2ecdf;--moment-ink:#1a3d30;--moment-line:#78938a}
.journal-margin .incident-buttons .incident-box .incident-action{display:grid;grid-template-columns:40px minmax(0,1fr) 22px;align-items:center;gap:9px;width:100%;max-width:none;min-width:0;min-height:62px;padding:8px 10px;border:1px solid var(--moment-line);border-radius:12px;background:var(--moment-bg);color:var(--moment-ink);text-align:left;box-shadow:0 3px 0 color-mix(in srgb,var(--moment-line) 58%,transparent);font:700 1rem/1.22 system-ui}
.journal-margin .incident-buttons .incident-box .incident-action:not(:disabled):hover{background:var(--moment-hover)}
.journal-margin .incident-buttons .incident-box .incident-action:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 var(--moment-line);border-bottom-width:1px}
.journal-margin .incident-portrait .devil-icon{width:36px;height:38px;flex-basis:36px}
.journal-margin .journal-button-copy{min-width:0;overflow-wrap:anywhere}
.journal-margin .journal-button-copy small{display:block;margin-top:4px;font:600 .75rem/1.25 system-ui}
.journal-margin .journal-plus{text-align:center;font:1.4rem/1 Georgia,serif}
.journal-margin .incident-box .incident-meta{margin:2px 4px 0;min-height:44px}
.journal-margin .journal-foot{margin:5px 0 0;color:#465364;font:.8125rem/1.5 system-ui}

.day-review-score-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:4px}.day-review-question span{display:inline-block;max-width:100%}
.day-review #score-number{flex:none;color:#254c3e;font:750 1.125rem/1.3 system-ui}
.day-review .day-score #day-score{margin-top:6px;border:0;outline-offset:3px;min-height:44px}
.day-review .day-score #day-score::-webkit-slider-runnable-track{height:16px;border-radius:999px;background:linear-gradient(90deg,#9b3b3a,#b45c42 23%,#d19c53 50%,#8a9f57 74%,#246644);box-shadow:inset 0 0 0 1px #27332831}
.day-review .day-score #day-score::-webkit-slider-thumb{width:26px;height:26px;margin-top:-5px;border-width:3px;background:#223049;box-shadow:0 0 0 1px #223049,0 2px 4px #26334b40}
.day-review .day-score #day-score::-moz-range-track{height:16px;border-radius:999px;background:linear-gradient(90deg,#9b3b3a,#b45c42 23%,#d19c53 50%,#8a9f57 74%,#246644)}
.day-review .day-score #day-score::-moz-range-thumb{width:26px;height:26px;border-width:3px;background:#223049}
.day-review .score-marks span{width:26px;min-width:0}.day-review .score-marks .selected{color:#1f5140;font-weight:850}
.day-review .score-actions{gap:10px;margin:10px 0 4px}
.day-review #score-save{background:#223049;color:#fffdf7;border-color:#223049}
.day-review #score-clear:not(:disabled){text-decoration:underline;text-underline-offset:3px}
.day-review #score-result{display:block;text-align:left;color:#465464;font:.75rem/1.4 system-ui}

/* The blank page is the focus; rating is a separate optional disclosure. */
.day-review{margin:23px 0 18px;padding:18px 15px 12px;border:1px solid #d8cfba;border-radius:16px;background:#fbf7ed;color:#282a1d}
.day-review #day-review-heading{margin:0;font:700 clamp(1.6rem,5.5vw,2rem)/1.12 Georgia,serif;letter-spacing:-.025em}
.day-review #day-note-hint{margin:7px 0 14px;color:#535345;font-size:.875rem}
/* A compact formatting toolbar and an independently scrollable entry. */
.day-review .journal-toolbar{display:flex;gap:6px;margin:0 0 7px}
.day-review .journal-toolbar button{min-width:44px;min-height:44px;padding:0 8px;border:1px solid #9d9a84;background:#fffdf8;color:#42492e;border-radius:8px;font:1rem Georgia,serif}
.day-review .journal-toolbar button[aria-pressed="true"]{background:#42492e;color:#fffdf4;border-color:#42492e}
.day-review #journal{box-sizing:border-box;display:block;width:100%;min-height:140px;margin:0;padding:12px;background:#fffdf8;color:#27291b;border:1px solid #8c8a73;border-radius:10px;font:1rem/1.5 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;max-height:clamp(180px,48vh,380px);max-height:clamp(180px,48dvh,380px);overscroll-behavior-y:contain}
:is(#journal,#report-journal) :is(ul,ol){padding-inline-start:1.55em;margin-block:.15em}
.day-review :is(button,summary,#journal):focus-visible{outline:2px solid #535a34;outline-offset:3px}
.day-review #journal-status{margin:4px 0 0;color:#535345}.day-review #journal-status:empty{display:none}
.journal-actions{display:flex;justify-content:flex-end;margin:10px 0 16px}
.day-review #journal-save{background:#42492e;border-color:#42492e;color:#fffdf4;border-radius:9px;min-height:44px}
.journal-day-score{border-top:1px solid #cfc5ad;padding-top:7px}
.journal-day-score summary{display:flex;min-height:56px;gap:12px;align-items:center;justify-content:space-between;list-style:none;cursor:pointer}
.journal-day-score summary::-webkit-details-marker{display:none}
.journal-score-copy strong{display:block;font:700 1.2rem/1.2 Georgia,serif}
.journal-score-copy #score-timing{font:.8125rem/1.35 system-ui;color:#535345}
.journal-score-button{display:grid;place-items:center;min-height:44px;padding:0 10px;border:1px solid #6b6c54;border-radius:8px;font:650 .875rem system-ui;white-space:nowrap}
.day-review .day-score{border:0;margin:6px 0 0;padding:9px 0 0;background:transparent}
.day-review .day-score label{margin:0;font:700 1.15rem/1.25 Georgia,serif;color:inherit}
.day-review #score-hint{margin:5px 0;color:#535345;font-size:.8125rem}
.day-review #score-save{background:#42492e;color:#fffdf7;border-color:#42492e}

/* Pocket notebook. All journal sources are rendered on one continuous sheet. */
.pocket-notebook{--leaf-ink:#323b2d;--leaf-muted:#626650;--leaf-green:#435337;--leaf-rule:#ded3b9;color:var(--leaf-ink)}
.pocket-notebook .datebar{margin-bottom:2px}
.pocket-notebook .day-heading{font-size:26px}
.pocket-notebook h2{font-weight:normal}
#notebook-dial{margin:13px 0 16px;border:1px solid var(--leaf-rule,#ded3b9);border-radius:14px;background:#f8f3e7;padding:11px 11px 8px;color:#3e4434}
#notebook-dial svg{display:block;width:100%;height:auto;max-height:180px}
.dial-top,.dial-key{display:flex;align-items:center;justify-content:space-between;gap:4px;flex-wrap:wrap;font:600 12px/1.3 system-ui}
.dial-phase{font-size:10px;padding:4px 8px;background:#e7ebdc;border-radius:16px}
.dial-phase[data-phase=acedia]{background:#f1dfb8;color:#634722}
.dial-time{text-align:center;line-height:1.1;margin:-1px 0 8px;color:#47402d;font-variant-numeric:tabular-nums}
.dial-time{position:relative}.dial-sweep-control{display:none}@media(prefers-reduced-motion:no-preference){.dial-sweep-control{display:inline-grid;place-items:center;position:absolute;right:0;top:50%;transform:translateY(-50%);width:44px;min-height:44px;padding:0;border:0;background:none;color:inherit;opacity:.75}.dial-sweep-control:hover,.dial-sweep-control:focus-visible{opacity:1} #notebook-dial[data-sweep-paused="true"] :is(.brother-sweep-arm,.brother-sweep-head,.brother-sweep-dust){animation-play-state:paused}}
.dial-time strong{font:700 26px Georgia,serif}.dial-time span{font:700 10px system-ui}
.dial-key{border-top:1px solid #e0d7c3;padding:8px 0 0;font-size:10px}
.dial-key span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;background:#84986f}
.dial-key span:nth-child(2):before{background:#af7130}
.notebook-stations .summary,.notebook-journal>.row{margin-bottom:6px}
.notebook-stations .summary h2,.notebook-journal h2,.notebook-evening h2{margin:0;font-size:25px}
.notebook-stations .summary span{font:600 12px/1.3 system-ui;text-align:right;color:var(--leaf-muted)}
#stations.notebook-compact .station:not(.next){display:none}
.pocket-notebook #stations .station{background:#edf0e4;border:1px solid #d7ddc9;border-radius:10px;min-height:0;padding:8px 10px;color:var(--leaf-ink);grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
.pocket-notebook #stations .station.done{background:#e9ece2}.pocket-notebook #stations .station.skipped{background:#deded4}
.pocket-notebook #stations .station-title{grid-column:1;min-width:0;gap:7px}
.pocket-notebook #stations .station-title .station-icon{height:27px;width:27px;flex:0 0 27px;color:var(--leaf-green)}
.pocket-notebook #stations .station-definition{min-height:40px;color:var(--leaf-ink)}
.pocket-notebook #stations .station-definition strong{font-size:18px}
.pocket-notebook #stations .station-definition .translation{font:500 11px/1.4 system-ui;color:#535b47}
.pocket-notebook #stations .choice-preview{grid-column:1;grid-row:2;margin-left:34px;font:14px/1.25 Georgia,serif}
.pocket-notebook #stations .station-outcome-actions{display:block;grid-row:1 / span 2;grid-column:2;align-self:center}
.pocket-notebook #stations .station-outcome-actions button{background:var(--leaf-green);border-color:transparent;color:#fffbe9;padding-inline:9px}
.pocket-notebook #stations .station-outcome,.pocket-notebook #stations .station-note{grid-column:1/-1}
.pocket-notebook #stations .station-note{display:none}
.notebook-station-more{grid-column:1/-1;border-top:1px solid #d7ddc9}
.notebook-station-more summary,#new-journal-entry summary,#legacy-journal summary,#saved-moments summary{min-height:44px;padding:12px 0;cursor:pointer;font:650 13px/1.4 system-ui}
.pocket-notebook #stations .notebook-station-more .station-entry-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}

.station-list-toggle{display:block;width:100%;min-height:44px;margin:4px 0 8px;color:var(--leaf-green);font-size:13px}.station-list-toggle[hidden]{display:none} #collapse-stations-bottom{margin:8px 0 0}.station-completion-time{font:650 12px/1.4 system-ui;color:#46584a;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap}.station-completion-time[hidden]{display:none}.station-outcome .station-completion-time{margin-inline-start:.35rem}.notebook-recent-tail{display:flex;align-items:center;gap:.5rem}
.notebook-recent-label{margin:6px 0 2px;color:var(--leaf-muted)}
.notebook-recent-item{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;border:0;border-bottom:1px solid #e4dece;border-radius:0;text-align:left;padding:5px 2px;color:var(--leaf-ink);min-height:44px}
.notebook-recent-item strong{font:600 16px Georgia,serif}.notebook-recent-item small{font:500 11px system-ui;color:var(--leaf-muted)}
.notebook-activity{display:block;font:13px Georgia,serif;overflow-wrap:anywhere}.notebook-recent-item>span:first-child{color:#4c6248}
.notebook-journal{background:#f6efdf;border:1px solid var(--leaf-rule);border-radius:13px;padding:12px 12px 7px;margin:14px 0}
#new-journal-entry,#saved-moments,#legacy-journal{border-top:1px solid var(--leaf-rule);color:var(--leaf-ink)}
#new-journal-entry summary{font:normal 18px/1.4 Georgia,serif}
#new-journal-entry>p{margin:0 0 7px}
.notebook-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}
.notebook-outcomes button{display:flex;justify-content:space-between;text-align:left;padding:4px 7px;gap:3px;border-radius:8px}
.notebook-outcomes .lost{background:#e8eddf;color:#3f543a;border-color:#aebda0}
.notebook-outcomes .won{background:#f2e4dc;color:#754a3e;border-color:#c9a398}
.notebook-outcomes [aria-pressed=true]{outline:2px solid currentColor;outline-offset:1px}
.notebook-outcomes button strong,.notebook-outcomes button small{display:block;font-size:13px}.notebook-outcomes button small{font-size:10px;margin-top:2px}
.notebook-outcomes .devil-icon{width:clamp(24px,9vw,42px);height:auto;flex-shrink:0}
#new-journal-entry .journal-editor{background:#fffcf4;border:1px solid #a69877;border-radius:9px;overflow:hidden}
#new-journal-entry .journal-toolbar{display:flex;background:#faf3e4;border-bottom:1px solid #dfd3b6}
#new-journal-entry .journal-toolbar button{min-width:44px;min-height:44px;padding:2px 8px;background:none;border:0;border-right:1px solid #dfd3b6;border-radius:0;color:#3e4731}
#new-journal-entry .journal-toolbar [aria-pressed=true]{background:#e4e8d7}
#new-journal-text{min-height:91px;max-height:300px;overflow:auto;overscroll-behavior:contain;padding:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.notebook-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin:8px 0}
.notebook-actions button{font-size:13px;padding:5px 9px}.notebook-actions button[hidden]{display:none}
#new-journal-save{background:#435337;border-color:#435337}
#notebook-items{border-top:1px solid var(--leaf-rule);margin:0;padding:0 0 0 18px}
#notebook-items li{padding:5px 0 7px 3px}#notebook-items li+li{border-top:1px solid #e1d5bb}
#notebook-items li::marker{color:#846d42}.notebook-empty{font-style:italic}
.notebook-item-text{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.4 Georgia,serif}
.notebook-item :is(ul,ol){padding-inline-start:1.4em;margin:.15em 0}
.notebook-item :is(ul,ol) li{padding:0;border:0!important}
.notebook-item .entry-time{font-variant-numeric:tabular-nums;white-space:nowrap}
.notebook-item .entry-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font:650 11px/1.3 system-ui}
.notebook-item time{color:#535444}.entry-tag{padding:2px 6px;background:#ebe3ce;border-radius:7px;overflow-wrap:anywhere}
.entry-tag.lost{background:#e3ead7;color:#3e5439}.entry-tag.won{background:#efe0d7;color:#70443b}
.mattered-entry::marker{content:'✧  ';color:#926118!important}
.notebook-entry-edit{font-size:11px;min-height:44px;padding:2px 7px;margin-left:auto}
.notebook-evening #day-reflection{margin-top:5px}
.notebook-journal #mattered-slot{margin:0 0 8px}
.notebook-journal .day-review{margin:0;background:none;padding:0;border:0}
@media(max-width:350px){.dial-key{font-size:9px}.pocket-notebook #stations .station-definition strong{font-size:16px}.notebook-outcomes button strong{font-size:11px}}
.pocket-notebook #stations :is(.station-outcome-actions,.station-skip,.station-outcome)[hidden]{display:none}
.report-journal-entry{margin-top:.6em;padding-top:.5em;border-top:1px solid #daceb5}
.report-journal-entry:first-child{border:0;margin-top:0;padding-top:0}
#app.pocket-mode{padding-top:12px}
.pocket-mode header{padding:0;text-align:left;margin-top:-4px}
.pocket-mode header .brand{display:none}
.pocket-mode header h1{font-size:30px;color:#343e2e;margin:0 0 3px}
.pocket-mode header .brand-tagline{margin:0;text-align:left}
.pocket-mode .status{min-height:0;margin-top:6px}
.pocket-mode .status:empty{display:none}
.pocket-mode .datebar{margin-top:3px}
.pocket-mode .day-heading{font-size:30px;color:#343e2e}
.notebook-date-copy{font:600 13px system-ui;color:#555b46}
.pocket-notebook #stations .station{display:grid}
.pocket-notebook #stations .station:not(.next) .station-outcome-actions{grid-column:2}
.pocket-notebook #stations .station-note{display:none!important}
.pocket-notebook #stations .station-title~.station-outcome{grid-column:1/-1}
.pocket-notebook .notebook-journal #mattered-slot{background:transparent;border:0;padding:0}
.pocket-notebook .notebook-journal #mattered-slot :is(h2,.mattered-list){display:none}

/* A few quiet movements on opening or entering a new phase. */
.monk-droplet{opacity:0}
@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .monk-broom{transform-origin:66px 51px;animation:monk-sweep 3.6s ease-in-out}
 .monk-scene-enter .monk-bowl{transform-origin:61px 99px;animation:monk-lift 3.6s ease-in-out}
 .monk-scene-enter .monk-exit{animation:monk-leave-cave 4.5s ease-out}
 .monk-scene-enter .monk-foot-back{animation:monk-step-back 4.5s linear}
 .monk-scene-enter .monk-foot-front{animation:monk-step-front 4.5s linear}
 .monk-scene-enter .devil-head-rise{animation:devil-peek-up .75s ease-in-out 2.07s both}
 .monk-scene-enter .monk-look{transform-origin:61px 39px;animation:monk-look-up 4.5s ease-in-out}
 .monk-scene-enter .monk-page{transform-origin:82px 105px;animation:monk-turn-page 3.6s ease-in-out}
 .monk-scene-enter .monk-washing{transform-origin:59px 54px;animation:monk-wash 3.6s ease-in-out}
 .monk-scene-enter .monk-droplet{animation:monk-drop 1.5s ease-out .65s 2}
 .monk-scene-enter .monk-breath{transform-origin:64px 111px;animation:monk-breathe 4.4s ease-in-out}
}
@keyframes monk-sweep{0%,50%,100%{transform:rotate(0)}25%,75%{transform:rotate(10deg)}}
@keyframes monk-lift{0%,100%{transform:rotate(0)}40%,60%{transform:rotate(-15deg)}}
@keyframes devil-peek-up{0%{transform:translate(6px,37px);opacity:0}17%{opacity:1}100%{transform:translate(0,0);opacity:1}}
@keyframes monk-leave-cave{0%{opacity:0;transform:translate(-23px,0)}7%{opacity:.65}13%{opacity:1;transform:translate(-18px,-1px)}22%{transform:translate(-12px,0)}31%{transform:translate(-6px,-1.2px)}43%,100%{transform:translate(0,0)}}
@keyframes monk-step-back{0%,19%,43%,100%{transform:translate(0,0)}9%{transform:translate(3px,-2px)}29%{transform:translate(3px,-2px)}}
@keyframes monk-step-front{0%,43%,100%{transform:translate(0,0)}18%{transform:translate(3px,-2px)}34%{transform:translate(2.5px,-1.5px)}}
@keyframes monk-look-up{0%,43%,100%{transform:rotate(0)}61%,86%{transform:rotate(-13deg)}}
@keyframes monk-turn-page{0%,100%{transform:skewY(0)}44%{transform:skewY(-26deg) scaleX(.7)}63%{transform:skewY(7deg)}}
@keyframes monk-wash{0%,50%,100%{transform:rotate(0)}25%,75%{transform:rotate(5deg)}}
@keyframes monk-drop{0%,25%,80%,100%{opacity:0;transform:translateY(0)}31%{opacity:.8}72%{opacity:0;transform:translateY(5px)}}
@keyframes monk-breathe{0%,50%,100%{transform:scaleY(1)}25%,75%{transform:scaleY(1.1)}}

/* The compact view keeps its quiet palette; the full list restores the category colors. */
.pocket-notebook #stations:not(.notebook-compact) .station:not(.done):not(.skipped){background:var(--card,#edf0e4);border-color:#a29a8160}
.pocket-notebook #stations:not(.notebook-compact) .station:not(.done):not(.skipped) .notebook-station-more{border-top-color:#625d452f}
.pocket-notebook #stations:not(.notebook-compact) .station.done{background:#ebede8;border-color:#ccd2c7}
.pocket-notebook #stations:not(.notebook-compact) .station.done .station-outcome{background:#e2ebe1;border-color:#78907d;color:#294938}
.pocket-notebook #stations:not(.notebook-compact) .station.done :is(.station-definition,.choice-preview,.station-title .station-icon){color:#525e53}
.pocket-notebook #stations:not(.notebook-compact) .station.skipped{background:#dfe1dc;border-color:#b9bfb6}

.solar-heading{display:flex;align-items:center;gap:.65rem;margin:0 0 .45rem}.solar-heading h2{margin:0}.solar-emblem{flex:0 0 auto;display:block}

.settings-return{gap:.45em;margin:.35rem 0 .2rem;color:#245e67}.settings-day{background:#f4ecdc}.settings-day .small{margin:.4rem 0 .75rem}

#solar-remove[hidden]{display:none}

#backups{margin-top:2rem;padding-top:.75rem;border-top:1px solid #dbccb1}#backups h2{font-size:1.8rem;margin:0 0 .5rem}.backup-intro{margin:.25rem 0 1rem}.backup-save{background:#f3eee0;border:1px solid #dacdb5;border-radius:16px;padding:1rem}.backup-save h3{display:flex;align-items:center;gap:.65rem;font-size:1.3rem}.backup-emblem{background:#ebe1c9;color:#664b26;border-radius:9px;display:grid;place-items:center;width:39px;height:39px;flex:none}.backup-emblem svg{width:23px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.backup-save p{margin:.5rem 0}.backup-primary{background:#254f4d;border-color:#254f4d;min-height:48px;margin:.3rem 0 .45rem}.backup-options{border:1px solid #dfd3bd;border-radius:14px;margin-top:.9rem;background:#fffaf0}.backup-options details+details{border-top:1px solid #e5d9c4}.backup-options summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 1rem;align-items:center;gap:.5rem;min-height:65px;padding:.7rem .9rem;font-family:system-ui;color:#263e40}.backup-options summary::-webkit-details-marker{display:none}.backup-options summary::after{content:"";width:.43rem;height:.43rem;justify-self:center;border-right:2px solid #705939;border-bottom:2px solid #705939;transform:rotate(45deg)}.backup-options details[open]>summary::after{transform:rotate(225deg)}.backup-options summary small{display:block;font-size:.84rem;color:#555044}.backup-option-body{padding:0 .9rem .9rem;overflow-wrap:anywhere}.backup-option-body>p{margin:0}.backup-journal-row{border-top:1px solid #e5d9c4;padding:.65rem 0}.backup-journal-row p{margin:.2rem 0 .5rem}.backup-in-use{display:inline-block;background:#e8ecdc;color:#324c37;border-radius:6px;padding:.2rem .45rem;font:700 .8rem system-ui}.backup-safe{display:flex;gap:.5rem;margin:.9rem 0}.backup-safe span{color:#36533d;font-weight:700}#backups [hidden]{display:none}#backup-status:empty{margin:0}

.settings-card-head{display:flex;align-items:center;gap:.625rem;margin:0 0 .38rem}
.settings-card-head h3,#backups .settings-card-head h3{font:700 1.375rem/1.13 Georgia,serif;letter-spacing:-.015em;margin:0;color:#263c3f}
.settings-glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;flex:none;color:#5a634e;background:#ebeddd}
.settings-glyph svg{width:32px;height:32px}
.settings-glyph.g1{background:#f4e7cb}.settings-glyph.g2{color:#6a5a70;background:#ede6f1}.settings-glyph.g3{color:#795e39;background:#efe4ca}
.settings-lead{margin:0 0 1rem;color:#514d41}
#settings-heading{font-size:2.35rem;margin-bottom:.35rem}
.settings-day,#wake-settings,#solar-settings,#backups{background:#fffaf0;border:1px solid #e4d7be;border-radius:15px;padding:.85rem .9rem;margin:0 0 .7rem}
.settings-day p,#wake-settings p,#solar-settings p,#backups .backup-save p{margin:.35rem 0 .55rem}
.settings-controls{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.settings-private{color:#655273;font-weight:700}
#backups .backup-save{padding:0;background:none;border:none}
#backups .backup-options{border:0;border-radius:0;border-top:1px solid #e5d9c4;background:none}
#backups .backup-options summary{padding-left:0;padding-right:.2rem}



#notebook-dial[data-dial-tone="night"]{background:#182832;color:#f1ead6;border-color:#415664}
#notebook-dial[data-dial-tone="night"] .dial-time{color:#fff3d4}
#notebook-dial[data-dial-tone="night"] .dial-phase{background:#303f50;color:#faf0d7}
#notebook-dial[data-dial-tone="night"] .dial-key{border-color:#53636c}
#notebook-dial[data-dial-tone="night"] .dial-key span::before{background:#96afa5}

/* Keep the single note action balanced beneath the open station's paired actions. */
.pocket-notebook #stations .station:not(.done):not(.skipped) .station-entry-controls .station-note-button{grid-column:1/-1;justify-self:center;width:calc((100% - 6px) / 2)}
@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .brother-broom{transform-origin:161px 145px;animation:brother-sweep 3.6s ease-in-out}
 .monk-scene-enter .brother-bowl{transform-origin:128px 139px;animation:brother-sip 3.6s ease-in-out}
 .monk-scene-enter .brother-step{animation:brother-step 4.2s ease-out}
 .monk-scene-enter .brother-gaze{transform-origin:138px 114px;animation:brother-gaze 4.2s ease-in-out}
 .monk-scene-enter .devil-head-rise{animation:brother-peek .85s ease-in-out 1.85s both}
 .monk-scene-enter .brother-page{transform-origin:185px 151px;animation:brother-page 3.6s ease-in-out}
 .monk-scene-enter .brother-drop{animation:brother-drop 1.25s ease-out .4s 2}
 .monk-scene-enter .brother-breath{transform-origin:94px 184px;animation:brother-breath 4.2s ease-in-out}
}
@keyframes brother-sweep{0%,45%,100%{transform:rotate(0)}23%,71%{transform:rotate(19deg)}}
@keyframes brother-sip{0%,18%,90%,100%{transform:none}45%,66%{transform:translate(-3px,-19px) rotate(-15deg)}}
@keyframes brother-step{0%{transform:translate(-23px,2px);opacity:.6}16%{transform:translate(-16px,-2px)}28%{transform:translate(-8px,1px)}40%,100%{transform:none;opacity:1}}
@keyframes brother-gaze{0%,43%{transform:rotate(12deg)}64%,100%{transform:rotate(0)}}
@keyframes brother-peek{from{transform:translateY(25px)}to{transform:translateY(0)}}
@keyframes brother-page{0%,28%,75%,100%{transform:none}50%{transform:scaleX(.08) skewY(-25deg)}}
@keyframes brother-drop{0%{opacity:0;transform:translateY(-6px)}18%{opacity:1}78%,100%{opacity:0;transform:translateY(9px)}}
@keyframes brother-breath{0%,100%{transform:scaleY(1)}52%{transform:scaleY(1.12)}}

@media (prefers-reduced-motion:no-preference){.monk-scene-enter .brother-hands{transform-origin:130px 125px;animation:brother-rinse 3.5s ease-in-out}}
@keyframes brother-rinse{0%,100%{transform:none}26%,64%{transform:rotate(5deg)}45%,82%{transform:rotate(-3deg)}}

.brother-traveler{display:none}
@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .brother-traveler{display:inline;pointer-events:none}
 .monk-scene-enter .brother-travel-motion{transform-origin:140px 184px}
 .monk-scene-enter[data-monk-phase="morning"] .brother-travel-motion{animation:brother-down-trail 3.3s linear both}
 .monk-scene-enter[data-monk-phase="night"] .brother-travel-motion{animation:brother-up-trail 3.6s linear both}
 .monk-scene-enter .brother-stride-a,.monk-scene-enter .brother-stride-b{animation:brother-step-foot .62s ease-in-out 6;transform-origin:140px 179px}
 .monk-scene-enter .brother-stride-b{animation-delay:.31s}
 .monk-scene-enter[data-monk-phase="morning"] .brother-final-pose{animation:brother-show-sweep 3.3s linear both}
 .monk-scene-enter[data-monk-phase="night"] .brother-final-pose{animation:brother-bed-arrival 3.6s ease-out both;transform-origin:55px 184px}
 .monk-scene-enter .brother-broom{animation-duration:1.8s;animation-delay:3.05s}
 .monk-scene-enter .brother-breath{animation-name:brother-blanket;animation-duration:1.6s;animation-delay:3.35s;animation-fill-mode:both}
 .monk-scene-enter .brother-steam{animation:brother-steam 2.5s ease-out .3s}
 .monk-scene-enter .brother-read-finger{animation:brother-follow-line 1.4s ease-in-out}
 .monk-scene-enter .brother-page{animation-delay:.7s;animation-duration:2.4s}
}
@keyframes brother-down-trail{
 0%{transform:translate(-62px,-96px) scale(.44);opacity:0}
 12%{transform:translate(-53px,-93px) scale(.49);opacity:1}
 33%{transform:translate(-25px,-77px) scale(.63)}
 50%{transform:translate(-40px,-56px) scale(.73)}
 65%{transform:translate(-42px,-36px) scale(.83)}
 82%{transform:translate(-16px,-14px) scale(.92);opacity:1}
 94%,100%{transform:none;opacity:0}
}
@keyframes brother-up-trail{
 0%{transform:none;opacity:1}
 18%{transform:translate(-17px,-15px) scale(.92)}
 36%{transform:translate(-42px,-36px) scale(.83)}
 52%{transform:translate(-40px,-56px) scale(.73)}
 69%{transform:translate(-25px,-77px) scale(.63)}
 88%{transform:translate(-50px,-93px) scale(.50);opacity:1}
 100%{transform:translate(-55px,-96px) scale(.46);opacity:0}
}
@keyframes brother-step-foot{0%,100%{transform:rotate(-11deg) translateY(1px)}50%{transform:rotate(9deg) translateY(-3px)}}
@keyframes brother-show-sweep{0%,82%{opacity:0}94%,100%{opacity:1}}
@keyframes brother-bed-arrival{0%,89%{transform:translateY(-4px);opacity:0}100%{transform:none;opacity:1}}
@keyframes brother-blanket{0%{transform:translate(9px,2px) scaleY(.89)}37%{transform:none}68%{transform:scaleY(1.12)}100%{transform:none}}
@keyframes brother-steam{0%{transform:translateY(3px);opacity:0}45%{opacity:.75}100%{transform:translateY(-7px);opacity:0}}
@keyframes brother-follow-line{0%,100%{transform:none}64%{transform:translate(9px,2px)}}

.ancient-history{margin-top:14px;border-top:1px solid #cdbdd9}.ancient-history>summary{cursor:pointer;min-height:44px;padding:13px 0;color:#443458;font:650 14px/1.3 system-ui}.ancient-history>div>p:first-child{margin-top:0}

.history-chapter{display:flow-root;padding:16px 0;border-top:1px solid #d7cade}.history-chapter:first-child{border-top:0;padding-top:4px}.history-chapter h4{font:600 19px/1.3 Georgia,serif;margin:0 0 10px;color:#46364e}.history-chapter p{margin:0 0 11px}.history-art{float:right;width:min(38%,145px);margin:0 0 8px 12px}.history-art svg{display:block;width:100%;height:auto}.history-art figcaption{color:#604f6c;font:11px/1.35 system-ui;margin-top:4px}.history-chapter .history-sources{clear:both;margin-bottom:0;color:#554666;font:12px/1.5 system-ui}.history-sources a{color:inherit;text-underline-offset:2px}

.history-art img{display:block;width:100%;height:auto;max-height:195px;object-fit:contain;object-position:top center;border-radius:7px}.history-art figcaption a{color:inherit;text-underline-offset:2px}.history-art figcaption strong{font-weight:650}.dial-night-note{font:italic 15px Georgia,serif}.dial-night-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.ancient-history{margin-top:18px;border-top:0}
.ancient-history>summary.history-invitation{display:grid;grid-template-columns:48px minmax(0,1fr) 13px;align-items:start;gap:10px;list-style:none;padding:13px 11px;min-height:44px;border:1px solid #c6b0cd;border-radius:12px;background:#faf2e5;color:#3c2c4e;box-shadow:0 2px 5px #44345812;cursor:pointer;text-align:left}
.history-invitation::-webkit-details-marker{display:none}
.history-invitation:focus-visible{outline:2px solid #71558b;outline-offset:3px}
.history-cover{display:block;aspect-ratio:4/5;object-fit:cover;width:100%;height:auto;border:1px solid #d2bea0;border-radius:6px;background:#e8d9ba}
.history-entry-copy{display:grid;gap:5px;min-width:0}
.history-entry-kicker{font:750 9px/1.3 system-ui;letter-spacing:.13em;color:#695074}
.history-entry-title{font:700 17px/1.14 Georgia,serif;color:#3c2c4e}
.history-entry-teaser{font:400 12px/1.35 system-ui;color:#564565}
.history-entry-action{font:750 11px/1.35 system-ui;color:#684881;padding-top:3px}
.history-cta-close,.ancient-history[open] .history-cta-open{display:none}
.ancient-history[open] .history-cta-close{display:inline}
.history-chevron{font:700 13px/1 system-ui;color:#684881;margin-top:2px}
.ancient-history[open] .history-chevron{transform:rotate(180deg)}
.ancient-history[open] .history-body{padding-top:13px}
@media (max-width:355px){.ancient-history>summary.history-invitation{grid-template-columns:38px minmax(0,1fr) 11px;gap:8px}.history-entry-title{font-size:16px}}

@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .brother-soup-arm{transform-origin:140px 135px;animation:brother-evening-sip 4.8s ease-in-out}
 .monk-scene-enter .brother-soup-bowl{transform-origin:181px 135px;animation:brother-evening-bowl 4.8s ease-in-out}
 .monk-scene-enter .brother-soup-head{transform-origin:139px 114px;animation:brother-evening-head 4.8s ease-in-out}
}
@keyframes brother-evening-sip{0%,9%,100%{transform:none}40%,64%{transform:rotate(-54deg)}}
@keyframes brother-evening-bowl{0%,9%,100%{transform:none}40%,64%{transform:rotate(38deg)}}
@keyframes brother-evening-head{0%,9%,100%{transform:none}40%,64%{transform:rotate(5deg)}}

@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .brother-soup-arm{transform-origin:140px 135px;animation:brother-evening-sip 4.8s ease-in-out}
 .monk-scene-enter .brother-soup-bowl{transform-origin:181px 135px;animation:brother-evening-bowl 4.8s ease-in-out}
 .monk-scene-enter .brother-soup-head{transform-origin:139px 114px;animation:brother-evening-head 4.8s ease-in-out}
}
@keyframes brother-evening-sip{0%,9%,100%{transform:none}40%,64%{transform:rotate(-54deg)}}
@keyframes brother-evening-bowl{0%,9%,100%{transform:none}40%,64%{transform:rotate(38deg)}}
@keyframes brother-evening-head{0%,9%,100%{transform:none}40%,64%{transform:rotate(5deg)}}
/* One quiet action per scene; the morning sweep repeats after the entrance. */
@media (prefers-reduced-motion:no-preference){
 .monk-scene-enter .brother-sweep-arm{transform-origin:132px 125px;animation:brother-sweep-opening 2.65s ease-in-out 3.06s,brother-sweep 4.8s ease-in-out 5.71s infinite}
 .monk-scene-enter .brother-broom{animation:none}
 .monk-scene-enter .brother-sweep-head{transform-origin:139px 114px;animation:brother-sweep-head-opening 2.65s ease-in-out 3.06s,brother-sweep-head 4.8s ease-in-out 5.71s infinite}
 .monk-scene-enter .brother-sweep-dust{animation:brother-sweep-dust-opening 2.65s ease-out 3.06s,brother-sweep-dust 4.8s ease-out 5.71s infinite}
 .monk-scene-enter .brother-breakfast-head{transform-origin:139px 114px;animation:brother-breakfast-head 4.8s ease-in-out}
 .monk-scene-enter .brother-breakfast-arm{transform-origin:140px 135px;animation:brother-sip 4.8s ease-in-out}
 .monk-scene-enter .brother-step{animation:brother-step 4.8s ease-out}
 .monk-scene-enter .brother-gaze{animation:brother-gaze 4.8s ease-in-out}
 .monk-scene-enter .brother-shade-arm{transform-origin:132px 129px;animation:brother-shade 4.8s ease-in-out}
 .monk-scene-enter .devil-head-rise{animation:brother-peek 1.05s ease-in-out 1.95s both}
 .monk-scene-enter .brother-page{transform-origin:185px 152px;animation:brother-page 4.8s ease-in-out}
 .monk-scene-enter .brother-reading-arm{transform-origin:130px 141px;animation:brother-reach-page 4.8s ease-in-out}
 .monk-scene-enter .brother-work-head{transform-origin:139px 114px;animation:brother-follow-page 4.8s ease-in-out}
 .monk-scene-enter .brother-breath{animation-duration:2.3s;animation-delay:3.38s}
 .monk-scene-enter .brother-bed-flame{transform-origin:119px 142px;animation:brother-bed-flame 1.55s ease-in-out 3.75s both}
}
.brother-bed-flame{opacity:0}
@keyframes brother-sweep-opening{0%,49%,100%{transform:none}22%,76%{transform:rotate(17deg)}}
@keyframes brother-sweep-head-opening{0%,49%,100%{transform:none}22%,76%{transform:rotate(13deg)}}
@keyframes brother-sweep-dust-opening{0%,51%,100%{opacity:0;transform:none}24%,76%{opacity:.83;transform:translate(-5px,-2px)}42%,94%{opacity:0;transform:translate(-19px,-6px)}}
@keyframes brother-sweep{0%,100%{transform:none}50%{transform:rotate(17deg)}}
@keyframes brother-sweep-head{0%,100%{transform:none}50%{transform:rotate(8deg)}}
@keyframes brother-sweep-dust{0%,34%,100%{opacity:0;transform:none}49%{opacity:.64;transform:translate(-5px,-2px)}72%{opacity:0;transform:translate(-19px,-6px)}}
@keyframes brother-sip{0%,10%,100%{transform:none}39%,63%{transform:rotate(-55deg)}}
@keyframes brother-breakfast-head{0%,16%,100%{transform:none}38%,62%{transform:rotate(11deg)}52%{transform:rotate(7deg)}}
@keyframes brother-step{0%{transform:translate(-29px,3px);opacity:0}8%{opacity:1}15%{transform:translate(-20px,-2px)}24%{transform:translate(-12px,2px)}32%{transform:translate(-6px,-2px)}40%,100%{transform:none;opacity:1}}
@keyframes brother-gaze{0%,41%{transform:rotate(28deg)}61%,100%{transform:none}}
@keyframes brother-shade{0%,41%{transform:rotate(22deg)}61%,100%{transform:none}}
@keyframes brother-peek{0%{transform:translate(3px,36px);opacity:0}22%{opacity:1}100%{transform:none;opacity:1}}
@keyframes brother-page{0%,34%{opacity:1;transform:none}48%{opacity:1;transform:skewY(-40deg) scaleX(.16)}65%,94%{opacity:1;transform:skewY(9deg) scaleX(-.97)}100%{opacity:0;transform:skewY(9deg) scaleX(-.97)}}
@keyframes brother-reach-page{0%,12%,100%{transform:none}33%{transform:translate(16px,-8px) rotate(-7deg)}49%{transform:translate(11px,-14px) rotate(-11deg)}66%,78%{transform:translate(-5px,-3px)}}
@keyframes brother-follow-page{0%,20%,100%{transform:none}37%,51%{transform:rotate(-10deg)}67%,82%{transform:rotate(12deg)}}
@keyframes brother-blanket{0%{transform:translate(16px,2px) scaleY(.78)}45%{transform:none}70%{transform:scaleY(1.16)}100%{transform:none}}
@keyframes brother-bed-flame{0%,26%{opacity:1;transform:none}48%{opacity:.41;transform:scale(.84,.7)}58%{opacity:.66;transform:scale(.95,.84)}81%,100%{opacity:0;transform:scale(.66,.3)}}

.notebook-station-more:not([open]) .station-options-open,.notebook-station-more[open] .station-options-closed{display:none}

.dial-key span:nth-child(2):before{background:#84986f}
.dial-key .dial-midday:before{background:#af7130}
#notebook-dial[data-dial-tone="night"] .dial-key span:before{background:#96afa5}
.dial-rise,.dial-set{white-space:nowrap}

.notebook-journal .journal-list-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:0 0 6px;border:0;border-radius:0;background:transparent;color:var(--leaf-ink);text-align:left;font:inherit;box-shadow:none}
.notebook-journal .journal-list-toggle:focus-visible{outline:2px solid #6a613f;outline-offset:2px}
.journal-toggle-meta{display:flex;align-items:center;gap:6px;white-space:nowrap;font:400 12px/1.3 system-ui}
.journal-toggle-meta svg{flex:none}
.journal-list-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#notebook-items[hidden]{display:none}

@media (prefers-reduced-motion:no-preference){
 .dial-cloud-near{animation:dial-cloud-drift 54s linear -24s infinite}
 .dial-cloud-far{animation:dial-cloud-drift-far 82s linear -38s infinite}
}
@keyframes dial-cloud-drift{
 0%{transform:translateX(-36px);opacity:0}
 23%,77%{opacity:1}
 100%{transform:translateX(26px);opacity:0}
}
@keyframes dial-cloud-drift-far{
 0%{transform:translateX(-27px);opacity:0}
 24%,74%{opacity:.78}
 100%{transform:translateX(19px);opacity:0}
}

.dial-twinkle{opacity:.67}
@media(prefers-reduced-motion:no-preference){.dial-twinkle{animation:dial-star-twinkle var(--twinkle-period) ease-in-out var(--twinkle-offset) infinite}}
@keyframes dial-star-twinkle{0%,100%{opacity:.08}16%{opacity:.77}28%{opacity:.94}46%{opacity:.24}65%{opacity:.06}81%{opacity:.43}}

.wake-form label{display:block;font-weight:650;margin:.55rem 0 .3rem}.wake-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(.375rem,2vw,.65rem)}.wake-form input[type="time"]{width:7.25rem;min-width:0;min-height:44px;padding-inline:.55rem}.wake-controls button{padding-inline:.625rem;white-space:nowrap}#wake-settings #wake-hint{margin:0;color:#284563;font:500 .8125rem/1.35 system-ui;overflow-wrap:anywhere}@media(max-width:350px){.wake-controls button{font-size:.875rem;padding-inline:.5rem}}#wake-reset{margin-top:.4rem}@media(max-width:300px){.wake-controls{grid-template-columns:auto minmax(0,1fr)}.wake-controls button{grid-column:1/-1;justify-self:end}}.wake-form [hidden]{display:none} #notebook-dial[data-dial-tone="dawn"]{background:#efe9ed;border-color:#cbbcca;color:#4b3c53} #notebook-dial[data-dial-tone="dawn"] .dial-phase{background:#e5d8e4;color:#4b3c53}

/* Horarium glossary: illustrated field guide */
/* A station row opens its existing About card. Reflection terms open in place. */
.guide.glossary-guide{padding:0;background:#fffaf0;border:1px solid #ddd0be;border-radius:16px;overflow:hidden}
.glossary-banner{padding:1rem 1rem .9rem;background:#eee5f4;border-bottom:1px solid #e2d6e9}
.glossary-banner h3{font:700 clamp(1.55rem,6vw,1.9rem)/1.12 Georgia,serif}
.glossary-banner p{margin:.36rem 0 0;font:500 .875rem/1.45 system-ui;color:#574962}
.glossary-content{padding:.7rem .9rem .65rem;--glossary-icon:1.95rem;--glossary-gap:.62rem}
.glossary-content h4{color:#655478;font:750 .7rem/1.4 system-ui;letter-spacing:.125em;text-transform:uppercase;margin:0 0 .3rem}
.glossary-content h4:not(:first-child){margin:.6rem 0 .3rem;padding-top:.75rem;border-top:1px solid #ddd0be}
.glossary-content .glossary-list{list-style:none;padding:0;margin:0}
.glossary-list .glossary-entry{padding:0;margin:0;border:0}
.glossary-list .glossary-entry+.glossary-entry{border-top:1px solid #e8ddcd}
.glossary-list .glossary-trigger{appearance:none;box-sizing:border-box;display:grid;grid-template-columns:var(--glossary-icon) minmax(0,1fr) 1rem;gap:var(--glossary-gap);align-items:center;min-height:3rem;width:100%;padding:.34rem .12rem;margin:0;border:0;border-radius:6px;background:transparent;color:#172641;text-align:left;box-shadow:none;white-space:normal;cursor:pointer}
.glossary-list .glossary-trigger::-webkit-details-marker{display:none}
.glossary-list .glossary-trigger::marker{content:""}
.glossary-list .glossary-trigger:focus-visible{outline:2px solid #655478;outline-offset:-2px}
@media(hover:hover){.glossary-list .glossary-trigger:hover{background:#f2eaf3}}
.glossary-icon{display:grid;place-items:center;width:var(--glossary-icon);height:var(--glossary-icon);color:#28394d;background:var(--glossary-tint);border-radius:8px}
.glossary-icon svg,.glossary-icon .station-icon{width:1.3rem;height:1.3rem;max-width:100%;display:block}
.glossary-name{display:grid;gap:.12rem;overflow-wrap:anywhere}
.glossary-name strong{font:700 1.08rem/1.12 Georgia,serif}
.glossary-english{font:550 .8rem/1.17 system-ui;color:#5c4a65}
.glossary-more{color:#665476;display:grid;place-items:center}
.glossary-more svg{width:.8rem;height:.95rem}
.glossary-disclosure .glossary-more svg{transform:rotate(90deg)}
.glossary-disclosure[open] .glossary-more svg{transform:rotate(-90deg)}
.glossary-content .glossary-definition{margin:0 .35rem .64rem calc(var(--glossary-icon) + var(--glossary-gap) + .12rem);font:400 .88rem/1.48 system-ui;color:#3d3549;overflow-wrap:anywhere}

/* Journal timeline: human writing leads, recorded activity stays compact. */
.journal-toggle-meta{min-width:0;white-space:normal;text-align:right}.journal-total{overflow-wrap:normal}#notebook-items{list-style:none;padding:0}#notebook-items>.notebook-item{display:grid;grid-template-columns:2.62rem minmax(0,1fr) auto;column-gap:.55rem;align-items:baseline;padding:.72rem 0 .76rem}#notebook-items>.entry-auto{padding:.48rem 0 .53rem}#notebook-items>.notebook-empty{padding:.65rem 0}.notebook-item .entry-time{font:650 .75rem/1.4 system-ui;color:#625b4b}.notebook-item .entry-meta{display:grid;min-width:0;gap:.22rem;font:650 .77rem/1.35 system-ui}.entry-kind,.entry-activity{overflow-wrap:anywhere}.entry-kind{color:#3a4233}.entry-kind.lost{color:#3c5c3d}.entry-kind.won{color:#794c3f}.entry-auto .entry-kind{color:#56604d;font-weight:600}.entry-check{margin-right:.32rem}.entry-activity{font:450 .74rem/1.4 system-ui;color:#5d5b4d}.notebook-item .notebook-item-text{grid-column:2/-1;margin-top:.25rem;padding:.36rem 0 .1rem .6rem;border-left:2px solid #c5ae79;color:#292e26;font:1.035rem/1.53 Georgia,serif}.notebook-item>.notebook-entry-edit{grid-column:3;grid-row:1;align-self:center;min-width:44px;margin:-.43rem 0;padding:2px 4px}.notebook-item .notebook-item-text :is(ul,ol){padding-inline-start:1.4em}

/* Slow morning peek: the rock itself hides the face on the way down. */
[data-devil-morning-head]{transform:translateY(-13px)}
[data-monk-phase=morning]{--morning-peek-delay:5.8s}
@media(prefers-reduced-motion:no-preference){
 [data-devil-morning-head]{animation:morning-slow-peek 11s var(--morning-peek-delay,1.25s) ease-in-out infinite both}
 #notebook-dial[data-sweep-paused="true"] [data-devil-morning-head]{animation-play-state:paused}
}
@keyframes morning-slow-peek{
 0%,3%,70%,100%{transform:translateY(33px);opacity:0}
 8%,56%{opacity:1}
 17%,29%{transform:translateY(-13px);opacity:1}
}

/* Fine desert clouds drift slowly above the rock, not across the clock face. */
@media(prefers-reduced-motion:no-preference){
 .dial-day-cloud-high{animation:desert-cloud-high 33s ease-in-out infinite alternate}
 .dial-day-cloud-low{animation:desert-cloud-low 47s ease-in-out infinite alternate}
 #notebook-dial[data-sweep-paused="true"] .dial-day-cloud{animation-play-state:paused}
}
@keyframes desert-cloud-high{from{transform:translateX(-8px)}to{transform:translateX(12px)}}
@keyframes desert-cloud-low{from{transform:translateX(2px)}to{transform:translateX(-16px)}}

/* Match the Acedia time-range key to the amber wedge without changing the row layout. */
#notebook-dial[data-dial-tone="day"] .dial-key .dial-midday{background:#f3e6c9;border-radius:999px;box-shadow:0 0 4px 3px #f3e6c9}
#notebook-dial[data-dial-tone="day"] .dial-key .dial-midday::before{background:#be8740}

.reading-nudge{margin:.75rem 0 1rem;padding:.7rem .9rem;background:#f7ecd9;border:1px solid #d8c4a1;border-radius:12px;color:#4d3527}
.reading-nudge summary{font:600 1.05rem Georgia,serif;cursor:pointer;padding:.45rem 0}
.reading-nudge p{margin:.25rem 0 .7rem}
.reading-options{display:flex;flex-wrap:wrap;gap:.5rem}
.reading-options button,.reading-close{min-height:44px}
.reading-dialog{position:fixed;width:min(90vw,30rem);max-width:calc(100vw - 1.5rem);max-height:85dvh;padding:1.1rem;box-sizing:border-box;border:1px solid #c5a87d;border-radius:16px;background:#fcf7e9;color:#382920;overflow:auto}
.reading-dialog::backdrop{background:#23180eb0}
.reading-dialog h2{margin:0 0 .8rem;color:#382920;font-family:Georgia,serif}
.reading-dialog .reading-body p{white-space:pre-wrap;overflow-wrap:anywhere;font:1.08rem/1.55 Georgia,serif}
.reading-dialog img{display:block;width:100%;height:auto;margin:0 0 .6rem;border-radius:8px}
.reading-dialog .reading-transcript,.reading-dialog .reading-credit{font-size:.89rem;color:#694e39}

.reading-preview-banner{text-align:center;margin:.5rem 0;color:#694e39;font-size:.85rem}.reading-dialog img{max-height:48dvh;object-fit:contain}

.reading-dialog .reading-body .reading-musing{font-style:italic}

.reading-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.reading-actions button{min-height:44px}.reading-another[aria-disabled=true]{opacity:.58;cursor:default}.reading-more-status{font-size:.86rem;color:#694e39}.reading-more-status:empty{display:none}

/* Reading room: pocket anthology */
.reading-nudge{margin:.55rem 0 1rem;background:linear-gradient(120deg,#fbf2e0,#f1e6d1);border-color:#d9c4a0;padding:.72rem .8rem}
.reading-nudge > summary{list-style:none;display:flex;align-items:center;gap:.5rem;color:#33291d;font-size:1.24rem;padding:.15rem 0;min-height:30px}
.reading-nudge > summary::-webkit-details-marker{display:none}
.reading-nudge > summary::after{content:'';margin-left:auto;width:.48rem;height:.48rem;border:solid #705837;border-width:0 2px 2px 0;transform:rotate(45deg);margin-right:.26rem}
.reading-nudge[open] > summary::after{transform:rotate(225deg)}
.reading-nudge .nudge-intro{font:.88rem/1.4 system-ui;color:#675744;margin:.1rem 0 .65rem}
.reading-options{display:grid;gap:6px}
.reading-options .nudge-tile{width:100%;min-height:52px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #dfcba9;border-radius:9px;background:#fffbf2;color:#32271b;padding:8px 9px}
.nudge-tile svg{width:28px;height:28px;color:#7d623f;flex:none}
.nudge-tile strong{display:block;font:700 .98rem Georgia,serif}
.nudge-tile small{display:block;font:.78rem/1.45 system-ui;color:#655645}
.nudge-tile .nudge-arrow{margin-left:auto;color:#705837}
.reading-dialog{width:min(calc(100% - 28px),29rem);max-height:calc(100vh - 42px);max-height:calc(100dvh - 42px);padding:0;background:#fff9ec;border:1px solid #cfb589;border-radius:18px;color:#34271d;box-shadow:0 16px 50px #21180c4a;overflow:hidden}
.reading-dialog[open]{display:flex;flex-direction:column}
.reading-dialog::backdrop{background:#282016ad}
.reading-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:23px 21px 13px}
.reading-dialog .reading-kicker{font:700 10px/1.2 system-ui;text-transform:uppercase;letter-spacing:.19em;color:#806447;margin:0 0 9px}
.reading-dialog h2{font:700 27px/1.15 Georgia,serif;color:#302318;margin:0 0 14px}
.reading-dialog .reading-body .reading-musing{font:italic 1.35rem/1.55 Georgia,serif;white-space:pre-wrap;color:#322218;margin:.3rem 0 1.25rem}
.reading-dialog .reading-credit,.reading-dialog .reading-source{font:.9rem/1.45 Georgia,serif;color:#624f3a;margin:10px 0 3px}
.reading-dialog .reading-credit:empty{display:none}
.reading-dialog figure{margin:0}
.reading-dialog img{height:auto;width:100%;max-height:50dvh;object-fit:contain;margin:0;background:#f9f2e7}
.reading-dialog .reading-transcript{margin:.6rem 0 0;color:#674d32}
.reading-dialog .reading-transcript summary{cursor:pointer;text-underline-offset:3px;text-decoration:underline;font:600 .9rem/1.45 system-ui;padding:.55rem 0}
.reading-footer{flex:none;background:#f7eedc;border-top:1px solid #e1d0ad;padding:12px 16px}
.reading-actions{margin:0;padding:0;display:flex;gap:8px;align-items:center}
.reading-actions .reading-close{flex:1;background:#26394b;color:#fff;border:1px solid #26394b;margin:0}
.reading-actions .reading-another{background:transparent;color:#4d3d29;border:1px solid #bb9e74;margin:0}
.reading-footer .reading-more-status{font:.82rem/1.4 system-ui;margin:.45rem 0 0}
.reading-footer .reading-more-status:empty{display:none}

/* Today layout: compact daily rhythm; other dates retain their full layout. */
.today-layout #reading-nudge .reading-nudge{background:transparent;border:0;box-shadow:none;padding:0;margin:16px 0 12px}
.today-layout #reading-nudge .reading-nudge>summary{box-sizing:border-box;min-height:49px;padding:0 13px;background:#f2e8d4;border:1px solid #b49765;border-radius:11px;color:#405438;font:650 15px system-ui;box-shadow:0 1px 2px #59411a18}
.today-layout #reading-nudge .reading-nudge>summary:before{content:'✧';font-size:19px;margin-right:4px}
.today-layout #reading-nudge .reading-nudge>summary:after{transform:rotate(-45deg)}
.today-layout #reading-nudge .reading-nudge[open]>summary:after{transform:rotate(45deg)}
.today-layout .notebook-stations,.today-layout .today-reflection{border-top:1px solid #ded5c6;padding-top:15px}
.today-layout .notebook-stations .summary{margin-bottom:11px}
.today-layout .notebook-stations .summary span{font:500 13px system-ui}
.today-layout #stations .today-next-kicker{display:none}
.today-layout #stations.notebook-compact .station.next:not([hidden]){padding:14px 12px 8px;border-radius:12px;gap:5px 8px;grid-template-columns:minmax(0,1fr) auto}
.today-layout #stations.notebook-compact .station.next .today-next-kicker{display:block;grid-column:1;grid-row:1;font:750 10.5px system-ui;letter-spacing:.13em;text-transform:uppercase;color:#4c5b44}
.today-layout #stations.notebook-compact .station.next .choice-preview{grid-column:1;grid-row:2;white-space:normal;overflow-wrap:anywhere;margin:0;font:600 20px/1.18 Georgia,serif}
.today-layout #stations.notebook-compact .station.next .station-title{grid-row:3}
.today-layout #stations.notebook-compact .station.next .station-definition{padding:0;min-height:34px}
.today-layout #stations.notebook-compact .station.next .station-title .station-icon,.today-layout #stations.notebook-compact .station.next .translation{display:none}
.today-layout #stations.notebook-compact .station.next .station-definition strong{font:500 13px system-ui;color:#53604d}
.today-layout #stations.notebook-compact .station.next .station-outcome-actions{grid-row:1 / span 3}
.today-layout #stations.notebook-compact .station.next .completion{background:#405438;padding-inline:10px}
.today-layout #show-all-stations,.today-layout .today-recent>summary{min-height:45px;width:100%;box-sizing:border-box;padding:7px 2px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;color:#405438;background:none;border:none;border-radius:0;border-bottom:1px solid #e8e0d5;font:620 15px system-ui;box-shadow:none;list-style:none;cursor:pointer}
.today-layout #show-all-stations[hidden],.today-layout .today-recent[hidden]{display:none}
.today-layout #show-all-stations:after,.today-layout .today-recent>summary:after,.today-layout #new-journal-entry>summary:after,.today-layout #day-reflection>summary:after{content:'›';font:400 22px/1 system-ui;color:#66745c;flex:none}
.today-layout :is(.today-recent,#new-journal-entry,#day-reflection)[open]>summary:after{transform:rotate(90deg)}
.today-layout .today-recent>summary::-webkit-details-marker,.today-layout #new-journal-entry>summary::-webkit-details-marker{display:none}
.today-layout .today-recent>summary{font-size:13px;border-bottom:0}
.today-layout .today-recent small,.today-layout #new-journal-entry>summary small{display:block;margin-top:3px;color:#53604d;font:400 13px/1.35 system-ui}
.today-layout .today-reflection{margin-top:18px}
.today-layout .today-reflection>h2{margin:0 0 6px;font-size:25px;color:var(--leaf-ink)}
.today-layout .today-reflection :is(.notebook-journal,.notebook-evening){margin:0;padding:0;border:0;background:none;box-shadow:none}
.today-layout .notebook-journal>#notebook-journal-heading{font:600 13px system-ui}
.today-layout .notebook-journal .journal-list-toggle{padding:0 2px;color:#405438}
.today-layout :is(#new-journal-entry,#day-reflection){background:none;border:0;border-radius:0;padding:0;margin:0;box-shadow:none}
.today-layout #new-journal-entry>summary,.today-layout #day-reflection>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;box-sizing:border-box;padding:8px 2px;background:none;box-shadow:none;border:0;border-bottom:1px solid #e8e0d5;border-radius:0;color:var(--leaf-ink);font:650 15px system-ui;list-style:none;cursor:pointer}
.today-layout #day-reflection>summary :is(.reflection-sunset,.reflection-eyebrow,.journal-score-button){display:none}
.today-layout #day-reflection .journal-score-copy strong{font:650 15px system-ui}
.today-layout #day-reflection .journal-score-copy>strong+span{color:#53604d;font:400 13px/1.35 system-ui}
.today-layout .person-card.sunrise-card{margin:16px 0 20px;padding:12px 4px 0;background:none;border:0;border-top:1px solid #ded5c6;border-radius:0;box-shadow:none}
.today-layout .person-card.sunrise-card>svg{display:none}
.today-layout .person-card.sunrise-card h2{font:650 13px system-ui;color:#53604d;margin:0 0 5px}
.today-layout .person-card.sunrise-card #person-statement{font:italic 16px/1.45 Georgia,serif;color:#514b40}
.today-layout .person-card.sunrise-card #person-edit{background:none;border:0;color:#405438;box-shadow:none;text-decoration:underline;font:600 13px system-ui}

.today-layout #show-all-stations:after,.today-layout .today-recent>summary:after,.today-layout #new-journal-entry>summary:after,.today-layout #day-reflection>summary:after{content:'';width:7px;height:7px;border:solid #66745c;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);margin-right:4px}
.today-layout :is(.today-recent,#new-journal-entry,#day-reflection)[open]>summary:after,.today-layout #show-all-stations[aria-expanded="true"]:after{transform:rotate(45deg)}
.today-layout #reading-nudge .reading-nudge>summary:before{content:'✧' / ''}

.today-layout .notebook-evening>h2{display:none}
.today-layout .notebook-journal .journal-list-toggle{min-height:44px;padding-top:3px}

@media(prefers-reduced-motion:no-preference){
 .dial-demon-flight{animation:dial-devil-rise .85s ease-out both}
 .dial-demon-float{animation:dial-devil-drift 8s ease-in-out infinite}
 #notebook-dial[data-sweep-paused="true"] :is(.dial-demon-flight,.dial-demon-float){animation-play-state:paused}
 .dial-demon-exit{animation:dial-devil-fade .65s ease-out both}
 @keyframes dial-devil-fade{from{opacity:1}to{opacity:0}}
 @keyframes dial-devil-rise{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
 @keyframes dial-devil-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
}

/* Upright serif for the musing body; preserve layout and the source line. */
.reading-dialog .reading-body .reading-musing{font-style:normal!important}

.daily-intention{margin:.85rem 0 1rem;padding:0 .04rem;color:#263d37}.daily-intention-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:7px}.daily-intention label{font:650 .88rem/1.3 system-ui;margin:0}.daily-intention-top span{font:600 .75rem system-ui;color:#635944}.daily-intention input{display:block;box-sizing:border-box;width:100%;margin:0;min-height:44px;padding:.55rem .65rem;border:1px solid #aa9d81;border-radius:8px;background:#fffdf6;color:#243a34;font:1rem/1.25 system-ui}.daily-intention input::placeholder{color:#695f50;opacity:1;font-style:italic}

.lighter-plan{display:flex;flex-wrap:wrap;align-items:center;gap:0 .7rem;margin:.15rem 0 .65rem}
.lighter-plan button{min-height:44px;text-decoration:underline;text-underline-offset:.22em}
.lighter-dialog{max-block-size:85dvh;overflow:auto;overscroll-behavior:contain}
.lighter-dialog fieldset{border:0;margin:0;padding:0;min-width:0}
.lighter-dialog legend{font-weight:700;margin-block:.3rem .35rem}
.lighter-options{max-block-size:36dvh;overflow:auto;overscroll-behavior:contain;border:1px solid currentColor;border-radius:.65rem}
.lighter-options label{display:grid;grid-template-columns:1.25rem minmax(0,1fr);align-items:center;gap:.7rem;min-height:48px;padding:.45rem .65rem;margin:0;cursor:pointer}
.lighter-options label+label{border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)}
.lighter-options input{width:1.15rem;height:1.15rem;margin:0;accent-color:#42726b}
.lighter-options small{display:block;font-weight:400}
.lighter-options strong{overflow-wrap:anywhere}
.lighter-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}
.lighter-dialog .lighter-usual{margin-top:.55rem;min-height:44px}
.lighter-error:empty,.lighter-plan span:empty{display:none}

/* Respect the device setting without stopping the clock or hiding the scene. */
@media (prefers-reduced-motion: reduce) {
 #notebook-dial svg, #notebook-dial svg * {
  animation: none !important;
  transition: none !important;
 }
 #notebook-dial .dial-sweep-control, #notebook-dial .brother-traveler { display: none; }
}

/* Public first visit */
.welcome-start{padding:14px 0 12px}
.welcome-start h2{margin:0 0 10px;font-size:clamp(1.65rem,7vw,2rem)}
.welcome-lead{font-size:1.08rem;margin:0 0 18px}
.welcome-steps{list-style:none;counter-reset:welcome-step;margin:0 0 5px;padding:0 15px;border:1px solid color-mix(in srgb,var(--ink) 15%,transparent);border-radius:16px;background:color-mix(in srgb,var(--paper) 96%,var(--ink))}
.welcome-steps li{counter-increment:welcome-step;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:11px;align-items:start;padding:10px 0}
.welcome-steps li+li{border-top:1px solid color-mix(in srgb,var(--ink) 14%,transparent)}
.welcome-steps li::before{content:counter(welcome-step);grid-row:span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--paper) 86%,var(--ink));color:var(--ink);font:700 .8rem system-ui}
.welcome-steps strong{font-size:1rem;line-height:1.35}
.welcome-steps li span{grid-column:2;color:var(--muted);font-size:.91rem;line-height:1.4}
#welcome-setup{min-height:48px}
.welcome-local{margin:10px 0 0;text-align:center;color:var(--muted);font:14px/1.45 system-ui}

.welcome-steps{margin:18px 0 0}
#welcome-setup{margin-top:0}

/* Public Welcome navigation and existing tab-conflict status */
#app.welcome-view .toplinks{justify-content:center;flex-wrap:wrap}
#app.welcome-view .toplinks button{min-width:44px;min-height:44px}
#app .status.status-tab-conflict{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;margin:7px 0 3px;padding:11px 13px;border:1px solid #d2b881;border-radius:12px;background:#f7ecd7;color:#483820;text-align:left;font:14px/1.45 system-ui}
.status-tab-conflict strong,.status-tab-conflict div span{display:block}
.status-tab-conflict strong{font-size:14px;margin-bottom:2px}
.status-tab-conflict .tab-conflict-icon{display:grid;place-items:center;width:23px;height:23px;border:1px solid currentColor;border-radius:50%;font-weight:800}
html[data-theme=dark] #app .status.status-tab-conflict{background:#30291d;border-color:#796344;color:#f4e0b6}

/* Station completion and optional Boost */
.choice-dialog .boost-station-name{margin:.25rem 0 1rem}
.choice-dialog .boost-picker{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:10px}
.choice-dialog .boost-add{min-width:0;min-height:44px;justify-content:center;text-align:center;padding-inline:.55rem;white-space:nowrap}
.choice-dialog .boost-minus{width:44px;min-height:44px;padding:0;font-size:1.3rem}
.choice-dialog .boost-percent{display:inline-flex;justify-content:center;min-width:4.6ch;padding:.4rem .65rem;border-radius:8px;background:transparent;color:var(--muted);font:700 1rem system-ui;font-variant-numeric:tabular-nums;white-space:nowrap}
.choice-dialog .boost-picker[data-active=true] .boost-percent{background:#d9e6d1;color:#29432b}
html[data-theme=dark] .choice-dialog .boost-picker[data-active=true] .boost-percent{background:#304935;color:#dcebd5}
.choice-dialog .boost-caption{grid-column:1/-1;color:var(--muted);font:400 .8125rem/1.35 system-ui;margin:1px 0 0}
.choice-dialog .boost-contribution{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.25rem .75rem;margin:10px 0 0}
.choice-dialog .boost-contribution strong{color:var(--ink);font-weight:700}
.station-boost-badge{font-size:.8rem;font-weight:650;white-space:nowrap}

@media(prefers-reduced-motion:reduce){.dial-demon-exit{display:none}}

/* Keep the daily-intention focus ring inside each control, not over its neighbour. */
#app .daily-intention :is(#daily-intention-text,.intention-done,.intention-undo):focus-visible{outline:2px solid #916119;outline-offset:-3px}
html[data-theme=dark] #app .daily-intention :is(#daily-intention-text,.intention-done,.intention-undo):focus-visible{outline-color:#edc47d}
