:root{--bg:#f6f5f1;--surface:#fff;--surface-soft:#f9f9f5;--text:#293c32;--muted:#83897f;--border:#e9eae2;--accent:#3e604c;--accent-soft:#eaf0e5;--lime:#d8e7a8;--danger:#b7604f;--sidebar:#fafaf7;--shadow:0 8px 35px #2b3c3214;--fill:#6c9272;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;color-scheme:light}
:root[data-theme=dark]{--bg:#171e1a;--surface:#202a24;--surface-soft:#252f28;--text:#e1e8dc;--muted:#9aa798;--border:#344036;--accent:#b5cda1;--accent-soft:#35442e;--lime:#c6db9a;--danger:#eda68f;--sidebar:#1c251f;--shadow:0 8px 35px #0002;--fill:#a0bc8c;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.25;font-weight:600;letter-spacing:-1.25px}h2{font-size:18px;letter-spacing:-.4px;font-weight:600}h3{font-weight:500}p{line-height:1.7}small,.small{font-size:12px}.muted{color:var(--muted)}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:9px;border:1px solid transparent;font-size:12px;font-weight:600;line-height:1.4;transition:background .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button .icon{width:17px;height:17px}.primary{background:var(--accent);color:var(--surface)}.secondary{background:var(--surface);border-color:var(--border)}.soft{background:var(--accent-soft);color:var(--accent)}.wide{width:100%}.text-button{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:550;color:var(--accent);padding:8px 0}.text-button .icon{width:16px;height:16px}.icon-button{border:0;border-radius:8px;background:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--accent-soft);color:var(--text)}.icon-button.tiny{width:24px}.icon-button.tiny .icon{width:16px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:6px 9px;background:var(--surface-soft);font-size:10px;white-space:nowrap}.pill .icon{width:14px;height:14px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:19px;font-weight:650;letter-spacing:-.6px}.brand>.icon{width:31px;height:31px}.brand-light{font-weight:400}.sidebar{position:fixed;width:235px;inset:0 auto 0 0;background:var(--sidebar);border-right:1px solid var(--border);padding:33px 22px 18px;display:flex;flex-direction:column;z-index:10}.sidebar-caption{font-size:8px;letter-spacing:1.6px;color:var(--muted);margin:18px 0 39px}.sidebar nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:13px 15px;border:0;border-radius:9px;background:transparent;font-size:13px;color:var(--muted);text-align:left}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-item.active i{height:5px;width:5px;background:var(--accent);border-radius:50%;margin-left:auto}.nav-item:hover{background:var(--accent-soft)}.nav-item .icon{width:19px;height:19px}.side-growth{margin-top:auto;padding:21px 13px 24px}.growth-icon{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--accent-soft);border-radius:12px;margin-bottom:15px;color:var(--accent)}.side-growth .eyebrow{font-size:8px}.side-growth strong{display:block;font-size:12px;margin:9px 0 14px}.side-growth strong span{font-size:10px;font-weight:400;color:var(--muted)}.progress{height:5px;border-radius:5px;background:var(--border);overflow:hidden}.progress i{display:block;height:100%;background:var(--fill);border-radius:5px;transition:width .3s}.side-growth .small{font-size:10px;margin-top:8px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding-top:15px;display:flex;flex-direction:column;gap:15px}.profile{padding:0;display:flex;align-items:center;gap:9px;background:none;border:0;text-align:left;width:100%}.profile>.icon{width:16px;margin-left:auto}.profile strong{display:block;font-size:12px}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.avatar{height:34px;width:34px;border-radius:50%;background:#e5dbca;color:#6e604a;display:inline-flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0}.main{margin-left:235px;min-height:100vh}.topbar{height:75px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 10px;color:var(--border)}.breadcrumb strong{color:var(--text);font-weight:500}.topbar-right{display:flex;align-items:center;gap:23px;font-size:11px}.saved-indicator{color:var(--muted);display:flex;align-items:center;gap:6px;font-size:10px}.saved-indicator i{width:5px;height:5px;background:#8aa984;border-radius:50%}.date-label{color:var(--muted)}.content{max-width:1440px;margin:auto;padding:33px 38px 44px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.page-heading .eyebrow{margin-bottom:11px}.page-heading p{color:var(--muted);font-size:12px;margin-top:9px}.b1{right:160px}.b2{right:77px;height:128px;background:#9ab58a;box-shadow:9px 4px 0 #8aa578}.b3{right:-6px;height:170px;background:#7d9a6b;box-shadow:9px 4px 0 #6c8d5b}.b3 svg{position:absolute;top:-42px;left:26px;width:42px;height:42px;color:#688757}.s1{top:57px;left:28px}.s2{top:132px;right:12px}.thought-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:25px 26px;display:flex;flex-direction:column}.thought-card .eyebrow{font-size:8px}.thought-card h3{font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.5;font-style:italic;letter-spacing:-.35px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.thought-card p{font-size:10px;color:var(--muted);margin-top:13px}.thought-card .text-button{justify-content:flex-start;margin-top:auto;padding-top:17px;font-size:10px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:23px 0}.stat-card{padding:17px 19px;background:var(--surface);border:1px solid var(--border);border-radius:11px}.stat-card>div{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.stat-card .icon{width:17px;height:17px;color:#94a288}.stat-card>strong{display:block;font-size:30px;font-weight:500;letter-spacing:-1px;margin:12px 0 5px;line-height:1}.stat-card>strong span{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:5px}.stat-card small{font-size:9px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:21px;align-items:start}.panel{padding:23px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.panel-title h2{font-size:16px}.panel-title p{font-size:10px;margin-top:5px}.panel-title>.icon{color:var(--muted)}.count{display:inline-block;font-size:10px;color:var(--muted);background:var(--surface-soft);padding:4px 7px;border-radius:5px;margin-left:5px;vertical-align:middle}.task-row{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid var(--border)}.check-button{width:20px;height:20px;border:1.5px solid #cdd3c6;border-radius:6px;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.check-button.checked{background:var(--accent);border-color:var(--accent);color:var(--surface)}.check-button .icon{height:14px;width:14px;stroke-width:2}.task-body{border:0;background:none;padding:0;flex:1;min-width:0;text-align:left}.task-body>strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.task-body>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:6px;font-size:9px;color:var(--muted)}.task-row.done .task-body>strong{text-decoration:line-through;color:var(--muted)}.task-xp{font-size:9px;color:var(--muted);white-space:nowrap}.dept-badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;white-space:nowrap}.dept-badge i{width:5px;height:5px;background:var(--dept);border-radius:50%}.inline-add{border:1px dashed var(--border);background:none;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px;border-radius:7px;margin-top:16px;width:100%;font-size:11px;color:var(--muted)}.inline-add .icon{width:15px}.inline-add:hover{background:var(--surface-soft);color:var(--accent)}.overdue-link{margin-top:15px;display:flex;align-items:center;gap:7px;color:var(--danger);font-size:10px;background:none;border:0}.overdue-link .icon{width:14px}.overdue{color:var(--danger)}.priority{font-size:8px;background:var(--accent-soft);color:var(--accent);border-radius:4px;padding:2px 4px}.department-row{display:flex;align-items:center;gap:11px;width:100%;padding:12px 0;border:0;background:none;text-align:left}.department-row>div{flex:1}.department-row strong{display:block;font-weight:500;font-size:11px;margin-bottom:8px}.department-row>span:last-child{font-size:12px;margin-left:10px}.department-row small{color:var(--muted);font-size:10px}.department-row .progress{height:3px}.department-symbol,.habit-icon{height:32px;width:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--dept) 13%,var(--surface));color:var(--dept);flex-shrink:0}.department-symbol .icon,.habit-icon .icon{width:17px;height:17px}.departments-panel>.small{font-size:9px;display:block;margin-top:9px;text-align:right}.tracking-date{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;margin-bottom:9px;border-bottom:1px solid var(--border)}.tracking-date label{display:flex;align-items:center;gap:5px}.tracking-date .icon{width:14px;color:var(--muted)}.tracking-date input{border:0;padding:5px 0;background:none;max-width:125px;font-size:11px}.tracking-date .text-button{font-size:10px}.habit-grid{display:grid;grid-template-columns:1fr;gap:2px}.habit-row{display:flex;align-items:center;gap:10px;padding:10px 0;min-width:0}.habit-icon{height:29px;width:29px}.habit-label{flex:1;min-width:0}.habit-label strong{display:block;font-size:11px;font-weight:500}.habit-label small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.habit-row.complete .habit-label strong{color:var(--accent)}.metric-input{display:flex;align-items:center;width:110px;gap:5px;margin:0!important}.metric-input input{min-width:0;width:67px;padding:6px 8px;text-align:right;font-size:12px}.metric-input span{font-size:9px;color:var(--muted)}.metrics-details{margin-top:14px;border-top:1px solid var(--border);padding-top:14px}.metrics-details summary{font-size:11px;cursor:pointer}.metrics-details summary span{float:right;color:var(--muted);font-size:9px}.review-panel .eyebrow{font-size:8px;margin-bottom:7px}.review-panel .panel-title{margin-bottom:14px}.review-panel textarea{margin:14px 0 18px;background:var(--surface-soft);font-size:12px;resize:vertical;line-height:1.7;min-height:110px}.review-panel>.small{font-size:9px;display:block;margin-top:11px;text-align:center}.rating-label{display:flex;justify-content:space-between;font-size:10px;margin:0 0 10px}.rating-label span:last-child{color:var(--muted)}.rating-buttons{display:flex;gap:5px;margin-bottom:20px}.rating-buttons button{flex:1;padding:9px 1px;border:1px solid var(--border);background:var(--surface);border-radius:6px;font-size:10px}.rating-buttons button.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.reminders-panel{margin-top:21px}.occasion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.person-card{display:flex;align-items:center;gap:11px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:10px;text-align:left}.person-avatar{height:39px;width:39px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;border-radius:50%;flex-shrink:0;font-family:Georgia,serif;font-size:20px}.person-card>div{flex:1}.person-card strong{font-size:12px;display:block}.person-card small{font-size:10px;display:block;margin-top:6px;color:var(--muted)}.empty-state{padding:33px 15px;text-align:center;display:flex;flex-direction:column;align-items:center;color:var(--muted)}.empty-state>.icon{width:31px;height:31px;color:#a5b292;margin-bottom:14px}.empty-state strong{font-size:13px;color:var(--text);font-weight:500}.empty-state p{font-size:11px;margin:8px 0;max-width:330px}.empty-state .text-button{font-size:11px}footer{max-width:1440px;margin:auto;padding:0 38px 25px;display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.mobile-nav,.mobile-theme,.mobile-only{display:none}.button-group{display:flex;gap:9px}.section-label{display:flex;align-items:center;justify-content:space-between;margin:25px 0 17px;gap:12px}.section-label h2{font-size:16px}.section-label>span{font-size:11px;color:var(--muted)}.goal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.goal-card{padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.goal-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.goal-card h3{font-size:18px;margin:13px 0 6px;line-height:1.4}.goal-card p{font-size:10px;color:var(--muted);margin-bottom:22px}.goal-bottom{display:flex;justify-content:space-between;font-size:10px;margin-top:12px;color:var(--muted)}.goal-bottom strong{color:var(--text)}.goal-card .text-button{font-size:10px;margin-top:14px}.goal-placeholder{border:1px dashed var(--border);border-radius:12px;min-height:200px;background:var(--surface-soft);padding:25px;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.goal-placeholder strong{font-weight:500;font-size:13px;color:var(--text)}.goal-placeholder span{font-size:11px}.goal-placeholder span svg{width:13px;height:13px}.task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding-bottom:18px;margin-bottom:10px}.tabs{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.tabs button{padding:9px 12px;background:none;border:0;border-radius:7px;font-size:11px;color:var(--muted)}.tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.task-toolbar select{font-size:11px;max-width:180px}.report-controls{display:flex;gap:9px}.report-controls input{max-width:150px}.report-controls select,.report-controls input{font-size:12px}.period-caption{font-size:11px;color:var(--muted);margin:-8px 0 22px}.insights-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:21px}.bar-chart{display:flex;height:195px;gap:6px;padding-top:8px;align-items:stretch}.bar-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.bar-value{font-size:10px;color:var(--muted);height:15px;margin-bottom:5px}.bar-track{height:135px;width:70%;max-width:35px;background:var(--surface-soft);border-radius:5px;display:flex;align-items:flex-end}.bar-track i{width:100%;min-height:0;background:#99b28b;border-radius:5px}.bar-column small{font-size:9px;margin-top:10px;color:var(--muted)}.chart-note{font-size:10px;color:var(--muted);text-align:center;margin-top:12px}.donut-area{display:flex;align-items:center;justify-content:space-around;gap:20px;min-height:205px}.donut{width:139px;height:139px;border-radius:50%;background:var(--segments);padding:17px;flex-shrink:0}.donut>div{height:100%;width:100%;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center;flex-direction:column}.donut strong{font-size:28px;font-weight:500}.donut span{font-size:9px;color:var(--muted);margin-top:5px}.chart-legend{display:flex;flex-direction:column;gap:13px;flex:1}.chart-legend>span{display:flex;align-items:center;font-size:9px;gap:7px}.chart-legend i{width:6px;height:6px;border-radius:50%;flex-shrink:0}.chart-legend strong{margin-left:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:10px 0 18px}.calendar-grid>small{text-align:center;font-size:10px;color:var(--muted);padding:6px}.calendar-day{border:1px solid var(--border);border-radius:7px;height:38px;background:var(--surface-soft);font-size:11px;position:relative}.calendar-day.logged{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent)}.calendar-day.today{border-color:var(--accent)}.calendar-day i{display:block;position:absolute;bottom:4px;left:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:var(--accent)}.time-row{display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:11px 0}.time-row>span{display:flex;align-items:center;gap:8px;font-size:11px}.time-row .icon{width:15px;height:15px;color:var(--muted)}.time-row>strong{margin-left:auto;font-size:12px;font-weight:500}.time-row small{font-size:9px;color:var(--muted)}.time-row .progress{flex-basis:100%;height:4px}.calculation-note{margin-top:22px;padding:18px 0;font-size:11px;color:var(--muted)}.calculation-note summary{cursor:pointer}.calculation-note p{margin-top:10px;max-width:850px}.life-tabs{border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:23px}.library-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:21px}.library-toolbar input{max-width:350px;background:var(--surface)}.note-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.note-grid>.empty-state{grid-column:1/-1}.note-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px;display:flex;flex-direction:column}.note-card[hidden]{display:none}.note-meta{display:flex;justify-content:space-between;align-items:center}.note-meta .eyebrow{font-size:8px}.note-open{border:0;background:none;text-align:left;padding:0;margin:18px 0;flex:1}.note-open h2{font-size:19px;font-family:Georgia,serif;margin-bottom:13px;line-height:1.4}.note-open p{font-size:12px;color:var(--muted);line-height:1.8;white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical}.note-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;border-top:1px solid var(--border);padding-top:9px;font-size:9px;color:var(--muted)}.pinned{color:#b4a463}.people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.people-grid>.empty-state{grid-column:1/-1}.journal-list{max-width:800px;margin:auto;display:grid;gap:18px}.journal-entry p{margin:20px 0;font-size:14px;line-height:1.9;white-space:pre-wrap}.journal-entry .eyebrow{font-size:9px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1.08fr 1fr}.auth-story{background:#dfe8ce;padding:45px 65px;display:flex;flex-direction:column;justify-content:space-between;color:#354d36;min-height:100vh}.auth-story h1{font-family:Georgia,serif;font-size:63px;font-weight:400;line-height:1.12;letter-spacing:-2.5px;margin:24px 0}.auth-story h1 em{font-weight:400;color:#6f895c}.auth-story p{color:#738369;font-size:14px;line-height:1.9}.auth-story .eyebrow{color:#8a987c}.auth-depts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.auth-depts span{display:flex;align-items:center;gap:9px;color:#6f7e63;font-size:11px}.auth-depts .icon{width:16px;height:16px}.auth-story>small{color:#8b9a7c;font-size:9px;letter-spacing:2px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 30px}.auth-form{width:100%;max-width:350px}.auth-mark{width:33px;height:33px;color:var(--accent);margin-bottom:25px}.auth-form h2{font-size:27px;margin:13px 0 8px;letter-spacing:-.7px}.auth-form>p{font-size:12px;color:var(--muted);margin-bottom:28px}.auth-form form{margin:26px 0 18px}.auth-form label{font-size:11px}.auth-form input{padding:13px 14px;margin-top:7px}.auth-form .button{margin-top:8px;padding:13px}.auth-foot{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin:20px 0 16px}.auth-foot .icon{width:14px;height:14px}.auth-form>.text-button{font-size:10px}.auth-form>.text-button .icon{width:14px;height:14px}label{display:block;font-size:12px;margin:0 0 17px}input,textarea,select{color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;padding:10px 11px;max-width:100%;accent-color:var(--accent)}label>input,label>textarea,label>select{display:block;width:100%;margin-top:7px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.7}textarea{width:100%;resize:vertical;line-height:1.65}select{cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:11px}.checkbox-label input{width:15px;height:15px;margin:0}.day-choices{display:flex;gap:7px;margin-bottom:20px}.day-choices label{position:relative;flex:1}.day-choices input{position:absolute;opacity:0}.day-choices span{display:block;border:1px solid var(--border);border-radius:6px;text-align:center;padding:9px 2px;font-size:10px;cursor:pointer}.day-choices input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.day-choices input:focus-visible+span{outline:2px solid var(--accent)}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;width:500px;max-width:calc(100vw - 30px);max-height:90dvh;padding:27px;box-shadow:var(--shadow)}dialog::backdrop{background:#16251ba3;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:15px}.modal-header h2{font-size:21px}dialog details{margin:5px 0 20px}dialog summary{font-size:11px;color:var(--muted);cursor:pointer;margin-bottom:18px}.form-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px;margin-top:23px}.danger{color:var(--danger)}.form-error,#auth-error,.error-box{font-size:12px;color:var(--danger);line-height:1.6;margin:10px 0}.settings-content{font-size:12px}.account-summary{display:flex;align-items:center;gap:13px;padding-bottom:22px}.account-summary p{font-size:11px;color:var(--muted);margin-top:3px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-top:1px solid var(--border)}.setting-row strong{font-size:12px}.setting-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.setting-row .button{font-size:10px;white-space:nowrap}.import-label{padding:20px 0 0;border-top:1px solid var(--border)}.import-label small{font-size:10px;color:var(--muted);display:block;margin-top:10px}.settings-note{display:flex;gap:10px;padding:16px;background:var(--surface-soft);border-radius:9px;margin:20px 0;font-size:10px;color:var(--muted)}.settings-note svg{width:16px;height:16px}.manage-habits .setting-row{font-size:12px}.boot{padding:80px;text-align:center}.boot h1{margin-bottom:20px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:var(--text);color:var(--surface);border:1px solid var(--border);padding:13px 21px;border-radius:10px;box-shadow:var(--shadow);font-size:12px;max-width:90vw;z-index:100;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#893f33;color:white}
@media(min-width:1600px){.content{padding-top:43px}.habit-grid{grid-template-columns:1fr 1fr;gap:4px 20px}.thought-card h3{font-size:24px}.thought-card{padding:30px}}
@media(max-width:1200px){.sidebar{width:205px;padding:30px 17px 18px}.main{margin-left:205px}.content{padding:28px 26px}.topbar{padding:0 26px}.brand{font-size:17px}.brand>.icon{width:26px}.sidebar-caption{font-size:7px}.page-heading h1{font-size:29px}.dashboard-grid{grid-template-columns:1.4fr 1fr}.panel{padding:19px}.thought-card{padding:22px}.thought-card h3{font-size:19px}.insights-grid{grid-template-columns:1fr 1fr}.donut-area{flex-direction:column}.chart-legend{width:100%;gap:9px}.donut{height:120px;width:120px}.task-toolbar{flex-wrap:wrap}.goal-grid,.note-grid{grid-template-columns:repeat(2,1fr)}.auth-story{padding:40px}.auth-story h1{font-size:51px}.stat-card{padding:16px}.stat-card>div{font-size:10px}}
@media(max-width:980px){.dashboard-grid{grid-template-columns:1fr}.departments-panel{order:4}.review-panel{order:3}.rituals-panel{order:2}.habit-grid{grid-template-columns:1fr 1fr;gap:0 20px}.departments-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.departments-panel .panel-title,.departments-panel>.small{grid-column:1/-1}.stat-grid{gap:10px}.stat-card>strong{font-size:26px}.stat-card>div .icon{display:none}.topbar-right{gap:12px}.saved-indicator{display:none}.page-heading{align-items:flex-start}.page-heading .button-group{flex-direction:column}.thought-card h3{font-size:18px}.auth-story h1{font-size:46px}.auth-depts{grid-template-columns:1fr}.occasion-grid{grid-template-columns:1fr 1fr}.people-grid{grid-template-columns:1fr}.insights-grid{grid-template-columns:1fr}.donut-area{flex-direction:row}.donut{height:150px;width:150px}.chart-legend{max-width:250px}.goal-grid,.note-grid{grid-template-columns:1fr}.page-heading .report-controls{flex-direction:column}.bar-chart{height:220px}.bar-track{height:160px}.calendar-day{height:45px}}
@media(max-width:700px){.sidebar{display:none}.main{margin-left:0;padding-bottom:65px}.topbar{height:58px;padding:0 20px}.topbar .breadcrumb{font-size:10px}.date-label{font-size:10px}.mobile-theme{display:inline-flex}.topbar-right{gap:9px}.content{padding:26px 18px}.page-heading{gap:12px;margin-bottom:23px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:11px}.page-heading h1{font-size:29px;line-height:1.15;letter-spacing:-1px}.page-heading p{font-size:11px;max-width:270px;line-height:1.6}.page-heading>.button{font-size:0;padding:11px;width:40px;margin-top:21px;flex-shrink:0}.page-heading>.button svg{width:17px;height:17px}.mobile-only{display:block}.thought-card{padding:20px 22px;min-height:160px}.thought-card h3{font-size:20px;line-height:1.45}.thought-card p{font-size:9px;margin-top:10px}.thought-card .text-button{padding-top:13px}.stat-grid{grid-template-columns:repeat(2,1fr);gap:11px;margin:17px 0}.stat-card{padding:17px}.stat-card>div{font-size:10px}.stat-card>div .icon{display:inline-block;width:15px}.stat-card>strong{font-size:28px;margin-top:14px}.stat-card small{font-size:9px}.dashboard-grid{gap:17px}.panel{padding:19px}.panel-title h2{font-size:16px}.panel-title .text-button{font-size:10px}.panel-title{margin-bottom:17px}.task-row{gap:9px;padding:16px 0}.task-body>strong{font-size:12px}.task-xp{font-size:8px}.task-row>.icon-button{width:22px}.habit-grid{grid-template-columns:1fr}.habit-row{padding:11px 0}.habit-label strong{font-size:12px}.check-button{width:23px;height:23px}.departments-panel{display:block}.department-row strong{font-size:11px}.review-panel textarea{min-height:110px}.review-panel .button{font-size:12px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:65px;padding:6px 10px max(6px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);z-index:20;justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;border:0;min-width:65px;color:var(--muted);font-size:9px}.mobile-nav button.active{color:var(--accent)}.mobile-nav .icon{width:20px;height:20px}.mobile-nav button.active:before{content:'';position:absolute;top:0;width:25px;height:2px;background:var(--accent);border-radius:0 0 2px 2px}footer{padding:0 20px 20px;font-size:8px}#toast{bottom:80px;font-size:11px;width:max-content;max-width:90vw;text-align:center}.goal-grid,.note-grid{grid-template-columns:1fr}.page-heading .button-group{margin-top:7px;gap:6px}.page-heading .button-group button{font-size:9px;padding:9px;white-space:nowrap}.goal-card h3{font-size:20px}.goal-card p{font-size:11px}.tabs{gap:1px}.tabs button{font-size:10px;padding:9px}.task-toolbar select{width:100%;max-width:none}.page-heading .report-controls{margin-top:4px;gap:6px;max-width:130px}.report-controls select,.report-controls input{font-size:10px;padding:8px}.period-caption{font-size:9px;line-height:1.7}.bar-chart{gap:3px}.bar-column small{font-size:7px}.donut-area{gap:20px}.donut{width:120px;height:120px;padding:15px}.chart-legend>span{font-size:8px}.chart-legend{gap:12px}.calendar-grid{gap:5px}.calendar-day{height:37px}.life-tabs{overflow:auto;flex-wrap:nowrap;white-space:nowrap}.life-tabs button{padding:10px}.people-grid{grid-template-columns:1fr}.section-label{align-items:flex-start}.section-label span{max-width:125px;font-size:9px;text-align:right;line-height:1.5}.section-label h2{font-size:14px}.occasion-grid{grid-template-columns:1fr}.library-toolbar{gap:10px}.library-toolbar input{font-size:11px}.library-toolbar span{font-size:9px;white-space:nowrap}.note-card{padding:22px}.auth-layout{grid-template-columns:1fr}.auth-story{min-height:initial;padding:30px}.auth-story>.brand{margin-bottom:40px}.auth-story h1{font-size:42px;margin:17px 0}.auth-story h1 br:nth-child(2){display:none}.auth-story p,.auth-depts,.auth-story>small{display:none}.auth-story .eyebrow{font-size:8px}.auth-form-wrap{padding:35px 27px 50px}.auth-mark{display:none}.auth-form h2{font-size:24px}.auth-form{max-width:400px}.auth-form>.eyebrow{display:none}dialog{padding:23px;max-height:88dvh}.modal-header h2{font-size:19px}.form-row{gap:10px}input,textarea,select{font-size:16px}dialog label{font-size:11px}dialog .button{font-size:12px}.habit-row input{font-size:16px}.tracking-date input{font-size:12px}.settings-note{font-size:10px}.rating-buttons button{padding:12px 1px}.boot{padding:60px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.mobile-settings{display:none}.rating-buttons{flex-wrap:wrap}.rating-buttons button{min-width:27px}@media(max-width:700px){.mobile-settings{display:inline-flex}.topbar-right{gap:1px}.date-label{display:none}}

.metric-trend{margin-top:21px}.metric-trend select{max-width:180px;font-size:11px}.metric-summary{display:flex;align-items:baseline;gap:15px;margin-top:15px}.metric-summary strong{font-size:26px;font-weight:500}.metric-summary small{font-size:12px;color:var(--muted)}.metric-summary span{font-size:10px;color:var(--muted)}.metric-line{width:100%;max-height:230px;display:block;margin-top:12px}.metric-line text{fill:var(--muted);font-size:9px}@media(max-width:700px){.metric-summary{flex-direction:column;gap:7px}.metric-trend select{max-width:130px}}

/* Six sections, with today's actions first. */
.home-priority-grid,.home-secondary-grid,.tracking-grid,.journaling-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:21px;align-items:start}
.home-secondary-grid{margin-top:21px}.home-priority-grid .habit-grid,.tracking-grid .habit-grid{grid-template-columns:1fr}
.home-priority-grid>*,.home-secondary-grid>*,.tracking-grid>*,.journaling-grid>*{min-width:0;order:initial}
.home-quote{background:#dfe8ce;border-color:#d8e2c9;color:#344c35;min-height:230px}
.home-quote .eyebrow,.home-quote p{color:#5e7358}
.home-quote .text-button{color:#344c35}.thought-card h3{-webkit-line-clamp:unset;display:block;overflow-wrap:anywhere}.quote-mark{font-family:Georgia,serif;font-size:44px;height:36px;margin-top:12px;color:#789163}
:root[data-theme=dark] .home-quote{background:#35452f;border-color:#4c6142;color:#e1ead6}
:root[data-theme=dark] .home-quote .eyebrow,:root[data-theme=dark] .home-quote p{color:#b7c9aa}
:root[data-theme=dark] .home-quote .text-button{color:#d2e2c5}
.tracking-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.tracking-toolbar label{margin:0;font-size:11px;color:var(--muted)}.tracking-toolbar input{font-size:13px;min-width:155px}
.journal-list{max-width:none;margin:0}.journal-entry .text-button{margin-top:16px}.journal-history .panel-title{margin-bottom:15px}.journaling-grid .review-panel textarea{min-height:240px;font-size:14px}
.nav-item span{line-height:1.4}.sidebar{overflow-y:auto}
@media(max-width:980px){.home-priority-grid,.home-secondary-grid,.tracking-grid,.journaling-grid{grid-template-columns:1fr}.home-secondary-grid .departments-panel{order:initial}}
@media(max-width:700px){.home-priority-grid,.home-secondary-grid,.tracking-grid,.journaling-grid{gap:17px}.home-secondary-grid{margin-top:17px}.mobile-nav{height:calc(76px + env(safe-area-inset-bottom));padding:5px 4px max(5px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-nav button{min-width:0;width:100%;font-size:9px;line-height:1.2;position:relative;padding:5px 1px;gap:5px}.mobile-nav button span{min-height:22px;display:flex;align-items:center;justify-content:center;text-align:center;max-width:100%}.mobile-nav .icon{width:19px;height:19px}.main{padding-bottom:calc(85px + env(safe-area-inset-bottom))}#toast{bottom:100px}.home-quote{min-height:200px}.tracking-toolbar{gap:10px}.tracking-toolbar .text-button{font-size:11px}.journaling-grid .review-panel textarea{min-height:200px}.breadcrumb{max-width:65%;line-height:1.4}}

@media(max-width:700px){.home-priority-grid .tasks-panel{order:-1}}

/* Rules retain full text and original notebook wording. */
.rules-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0}.rules-intro h2{font-size:25px}.rules-intro p{color:var(--muted);font-size:13px;margin-top:8px}.rules-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:15px}.rules-toolbar label{margin:0;font-size:11px;color:var(--muted)}.rules-hint{margin:14px 0 25px}.rules-grid{align-items:start}.rule-card{min-width:0}.rule-card h3{font-size:20px;line-height:1.4;margin:12px 0}.rule-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:15px}.rule-original{margin-top:22px;border-top:1px solid var(--border);padding-top:16px}.rule-original summary{cursor:pointer;color:var(--accent);font-size:12px}.rule-original p{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;font-size:13px;line-height:1.8}.rule-original small{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:10px}.rule-important,.rule-uncertain{display:inline-block;font-size:10px;padding:5px 8px;border-radius:5px;background:var(--accent-soft);color:var(--accent)}.rule-uncertain{margin-top:15px;background:var(--surface-soft);color:var(--muted)}.transcription-note{color:var(--muted)}.rule-card .note-meta{gap:10px}.rule-card .note-meta .eyebrow{line-height:1.7}.rules-grid[hidden]{display:none}@media(max-width:700px){.rules-toolbar{grid-template-columns:1fr 1fr}.rules-toolbar label:first-child{grid-column:1/-1}.rules-toolbar select{font-size:13px}.rules-intro h2{font-size:23px}.rule-card{padding:21px}.rule-body{font-size:14px}.rules-intro>span{white-space:nowrap}.rules-grid{grid-template-columns:minmax(0,1fr)}}

/* Home is a reading overview; daily actions live in their own sections. */
.home-quote{margin-bottom:24px;min-height:220px;padding:30px 34px}.home-quote h3{max-width:850px;font-size:28px;line-height:1.5}.home-quote .text-button{margin-top:6px}
.home-overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:23px;align-items:start}.home-overview-grid>*{min-width:0}.home-bottom{margin-top:23px}.reflection-preview,.library-preview{display:block;width:100%;text-align:left;border:0;border-top:1px solid var(--border);background:none;padding:20px 0}.reflection-preview:first-of-type,.library-preview:first-of-type{border-top:0;padding-top:0}.reflection-preview:last-child,.library-preview:last-child{padding-bottom:0}.reflection-preview .eyebrow,.library-preview .eyebrow{font-size:9px}.reflection-preview p,.library-preview p{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:13px;line-height:1.8;margin:10px 0}.reflection-preview>.small{font-size:10px;color:var(--accent)}.reflection-preview .icon{width:13px}.library-preview h3{margin-top:9px;font-size:17px}.library-preview p{color:var(--muted);font-size:12px}.quiet-empty{font-size:12px;line-height:1.9;color:var(--muted);padding:10px 0}.home-occasions{display:grid;gap:10px}.journal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:24px 0}.journal-day{border:1px solid var(--border);border-radius:8px;padding:10px 2px;background:var(--surface-soft);display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.journal-day>span:first-child{font-size:9px;color:var(--muted)}.journal-day strong{font-size:13px;font-weight:500}.journal-day .icon{width:13px;height:13px}.journal-day.written{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.day-dot{height:13px;font-size:13px;color:var(--muted)}.week-numbers{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.week-numbers strong{display:block;font-size:28px;font-weight:500;margin-bottom:7px}.week-numbers strong small{font-size:14px;color:var(--muted)}.week-numbers div>span{font-size:11px;color:var(--muted)}.week-rating{font-size:12px;border-top:1px solid var(--border);padding-top:18px;margin-bottom:10px}.week-reflections>.small{font-size:11px;line-height:1.8}
.voice-journal{background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;padding:16px;margin-top:18px}.voice-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.voice-toolbar label{font-size:10px;margin:0;flex:1;min-width:140px}.voice-toolbar select{font-size:12px;margin-top:5px;width:100%}.voice-toolbar .button{font-size:11px;min-height:39px}.voice-toolbar button[hidden],.voice-preview[hidden]{display:none}.voice-help,.voice-privacy{font-size:10px;line-height:1.7;color:var(--muted);margin-top:10px}.voice-privacy{font-size:9px}#voice-status{font-size:11px;margin-top:10px;line-height:1.7}#voice-status:empty{display:none}.voice-preview{font-style:italic;font-size:12px;line-height:1.8;border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.journal-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-5px 0 22px}.journal-save-row .small{font-size:10px}.journal-save-row .text-button{font-size:10px;white-space:nowrap}.review-panel textarea:read-only{opacity:.85}.review-panel>p.muted.small{text-align:left}
@media(max-width:980px){.home-overview-grid{grid-template-columns:1fr}.home-quote h3{font-size:24px}}
@media(max-width:700px){.home-quote{padding:24px;min-height:230px}.home-quote h3{font-size:23px}.home-overview-grid{gap:17px}.home-bottom{margin-top:17px}.voice-journal{padding:13px}.voice-toolbar{gap:10px}.voice-toolbar label{min-width:120px}.voice-toolbar .button{padding:10px;font-size:10px}.voice-toolbar select{font-size:13px}.voice-help{font-size:11px}.journal-save-row{flex-wrap:wrap}.journal-day{padding:10px 0}.journal-day>span:first-child{font-size:8px}}

/* A compact thought beside the welcome message, before reminders. */
.home-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;margin-bottom:24px}
.home-intro .page-heading{min-width:0;margin:0}
.home-intro .home-quote{min-width:0;min-height:0;margin:0;padding:18px 22px}
.home-intro .home-quote h3{font-size:20px;line-height:1.45;margin-top:9px;display:block;overflow-wrap:anywhere}
.home-intro .home-quote p{margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-intro .home-quote .text-button{margin-top:6px;padding:5px 0 0;min-height:28px}
@media(max-width:1100px){.home-intro{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px}.home-intro h1{font-size:28px}.home-intro .home-quote h3{font-size:18px}}
@media(max-width:850px){.home-intro{grid-template-columns:minmax(0,1fr);gap:18px}.home-intro .home-quote{padding:16px 20px}.home-intro h1{font-size:28px}}

/* Compact, continuous reading across the four My Life collections. */
.life-reading .life-tabs{margin-bottom:0;display:flex;flex-wrap:wrap;gap:8px}.life-reading .life-tabs button{font-size:13px;padding:11px 16px}.reading-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 24px}.reading-tools input{max-width:280px;padding:8px 12px;background:transparent;font-size:12px}.reading-tools .text-button{color:var(--muted);font-size:11px}.reading-group{margin:0 0 27px}.reading-group h2{font-size:13px;letter-spacing:0;font-weight:500;color:var(--muted);margin:0 0 8px}.reading-group ul{list-style:none;margin:0;padding:0}.reading-row{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}.reading-row:before{content:'\2022';color:var(--muted);font-size:20px;line-height:1.5;flex:0 0 8px}.reading-words{flex:1;min-width:0;font-size:15px;line-height:1.85;overflow-wrap:anywhere}.reading-words[lang=mr]{font-family:'Nirmala UI','Mangal',system-ui,sans-serif;font-size:17px;line-height:1.9}.reading-words strong{font-weight:700;color:var(--text)}.reading-edit{width:25px;height:30px;opacity:.22}.reading-row:hover .reading-edit,.reading-row:focus-within .reading-edit{opacity:1}.reading-edit .icon{width:14px;height:14px}.reading-tools input:focus{background:var(--surface)}#bulk-notes-form>label{margin-top:20px}#bulk-notes-form textarea{font-family:'Nirmala UI',system-ui,sans-serif;line-height:1.7}#bulk-notes-form .form-actions{position:sticky;bottom:-23px;background:var(--surface);padding:16px 0}.life-reading .empty-state{padding:30px 0}@media(max-width:700px){.life-reading .life-tabs{display:grid;grid-template-columns:1fr 1fr;white-space:normal;gap:3px}.life-reading .life-tabs button{font-size:12px;padding:10px 8px}.life-reading .page-heading{align-items:center}.life-reading .page-heading>.button{font-size:11px;width:auto;margin:0;padding:9px}.reading-tools{gap:12px;margin:16px 0 22px}.reading-tools input{min-width:0;max-width:65%}.reading-tools .text-button{white-space:nowrap}.reading-row{gap:6px;padding:8px 0}.reading-words{font-size:14px}.reading-words[lang=mr]{font-size:16px;line-height:1.9}.reading-edit{opacity:.4}.reading-group{margin-bottom:24px}}
/* One microphone control, with status only while listening or on an error. */
.voice-journal{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0;background:none;border:0;margin:18px 0 0}
.journal-mic{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);border:1px solid var(--border);flex-shrink:0}
.journal-mic:hover{border-color:var(--accent)}.journal-mic.listening{background:var(--accent);color:var(--surface);box-shadow:0 0 0 4px var(--accent-soft)}.journal-mic .icon{width:21px;height:21px}
.voice-journal #voice-status{margin:0;flex:1;min-width:100px}.voice-journal .voice-preview{flex-basis:100%;margin:0}.voice-journal #voice-status:empty{display:none}

/* Gemini assistant */
.ai-panel{display:grid;gap:14px}.ai-panel form{display:grid;gap:14px}.ai-panel textarea{width:100%;resize:vertical}.ai-status{font-size:13px;color:var(--muted)}.ai-answer{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.ai-result{border-top:1px solid var(--border);padding-top:18px}.ai-open{white-space:nowrap}.ai-panel .checkbox-label{align-items:flex-start;font-size:13px;line-height:1.5}.ai-panel a{text-decoration:underline}
@media(max-width:600px){.ai-open{padding:8px 12px}}

/* People and annual occasion reminders */
.home-reminders{margin-bottom:22px;padding:18px 20px;border-left:3px solid var(--accent)}.home-reminders .panel-title{margin-bottom:10px}.home-reminders .panel-title>.icon{color:var(--accent)}.reminder-list{list-style:none;margin:0;padding:0;max-height:260px;overflow-y:auto;scrollbar-gutter:stable}.reminder-list>li+li{border-top:1px solid var(--border)}.reminder-row{width:100%;display:flex;align-items:center;gap:12px;padding:11px 4px;text-align:left;border:0;border-radius:7px;background:transparent}.reminder-row:hover{background:var(--accent-soft)}.reminder-row:focus-visible{outline-offset:-2px}.reminder-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.reminder-symbol .icon{width:16px;height:16px}.reminder-copy{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.reminder-copy strong{font-size:12px;font-weight:600}.reminder-copy>span,.reminder-copy small{font-size:11px;color:var(--muted);line-height:1.5}.reminder-dismiss{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:50%;color:var(--accent);flex-shrink:0}.reminder-dismiss .icon{width:15px;height:15px}@media(max-width:600px){.home-reminders{padding:15px}.reminder-row{gap:9px}}
.people-intro{margin:22px 0}.people-intro p{margin-top:8px}.people-examples{margin-top:30px;padding-top:20px;border-top:1px solid var(--border)}.people-examples>p{margin:12px 0 18px}.people-grid .empty-state{grid-column:1/-1}.person-card>div{min-width:0}.person-card strong{overflow-wrap:anywhere}.person-card small{white-space:normal}.home-bottom>.panel{width:100%}

.journal-ai-tools{margin:22px 0;padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.journal-ai-tools h3{margin:0 0 8px}.journal-ai-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.journal-ai-buttons button{white-space:normal}.journal-ai-result{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.journal-summary-text{white-space:pre-wrap;line-height:1.7}.journal-ai-result h4{margin:18px 0 8px}.journal-ai-result ul{padding-left:20px;line-height:1.7}.journal-update-details{margin:16px 0}.journal-update-details summary{cursor:pointer;font-weight:600}.journal-questions{padding:12px;border-left:3px solid #c7a563}.journal-ai-tools[aria-busy=true]{opacity:.8}
/* Simple Ask AI composer */
.ai-panel{gap:18px}.ai-panel form{gap:8px}.ai-conversation{max-height:42dvh;overflow-y:auto}.ai-empty{text-align:center;padding:28px 0 34px;font-size:23px;letter-spacing:-.5px;color:var(--text)}.ai-result{border:0;padding:0 2px 10px}.ai-speaker{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:10px}.ai-composer{background:var(--surface-soft);border:1px solid var(--border);border-radius:20px;padding:10px}.ai-composer:focus-within{border-color:var(--accent)}.ai-panel .ai-composer textarea{border:0;background:transparent;box-shadow:none;outline:none;padding:10px;min-height:108px;max-height:28dvh;resize:vertical;font-size:16px;line-height:1.5}.ai-toolbar{display:flex;align-items:center;gap:8px;padding:4px}.ai-toolbar .ai-mic{margin-right:auto;width:40px;height:40px;border-radius:50%}.ai-mic[aria-pressed=true]{color:var(--danger);background:var(--accent-soft)}.ai-toolbar .button{border-radius:24px;min-height:40px}.ai-send span{font-size:19px;line-height:1}.ai-footer{display:flex;justify-content:space-between;align-items:center;padding:0 6px;gap:12px}.ai-footer .ai-status{font-size:12px}.ai-panel .form-error:empty{display:none}.ai-voice-status{padding:0 6px}.ai-panel [hidden]{display:none!important}@media(max-width:480px){.ai-empty{font-size:21px;padding:18px 0 24px}.ai-toolbar{gap:6px}.ai-toolbar .button{padding:10px 13px}.ai-conversation{max-height:36dvh}}

/* Quiet live date and time, with one header action. */
.header-clock{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--muted);line-height:1.4}.header-clock time{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.topbar{gap:12px}.topbar-right{flex-shrink:0}@media(max-width:700px){.header-clock{flex-direction:column;align-items:flex-start;gap:2px;font-size:10px}.header-clock time{font-size:11px}}
.day-journal-grid{align-items:start}.journal-day-content{display:grid;gap:20px;min-width:0}.daily-summary-tools{margin:0;padding:0;border:0}.daily-summary-tools h2{margin:8px 0 12px}.journal-summary-empty{padding:22px 0;color:var(--muted)}.journal-ai-explanation{border-top:1px solid var(--border);padding-top:14px;margin-top:20px;font-size:12px}.journal-ai-explanation summary{cursor:pointer}.journal-ai-explanation p{margin-top:10px}.journal-entry-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.journal-rating{margin-top:24px;border-top:1px solid var(--border);padding-top:16px;font-size:12px}.journal-rating summary{cursor:pointer}.journal-date-notice{padding:12px;margin-top:14px;background:var(--accent-soft);border-radius:8px;font-size:12px}.journal-day-picker{margin-top:20px}.journal-day-picker h2{margin-bottom:15px}.journal-day-picker .reflection-preview{display:flex;flex-direction:column;gap:4px}.journal-timeline{display:grid;gap:18px}.journal-moment{padding:0 0 18px 16px;border-left:2px solid var(--border);border-bottom:1px solid var(--border)}.journal-moment:last-child{border-bottom:0;padding-bottom:0}.journal-moment-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.journal-moment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.journal-moment .eyebrow{font-size:9px}.journal-day-content .journal-ai-result{margin-top:20px}.journal-day-content .journal-ai-buttons{align-items:stretch}.journal-day-content .journal-ai-buttons .primary{flex:1}.journal-day-picker [aria-current=date]{background:var(--accent-soft);padding:12px;border-radius:8px}@media(max-width:850px){.day-journal-grid{grid-template-columns:1fr}.journal-day-picker{display:none}.journal-moment-heading{flex-wrap:wrap}.journal-day-content .journal-ai-buttons{flex-direction:column}}

/* Keep the header on the same content grid as the cards below. */
.topbar{height:auto;display:block;padding:0;border-bottom:0}.topbar-inner{max-width:1440px;margin:auto;padding:24px 38px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.header-summary{display:flex;align-items:center;flex-wrap:wrap;gap:18px 24px;min-width:0}.header-clock{font-size:16px;font-weight:700;color:var(--text);gap:7px 16px}.header-clock time{font-weight:700}.header-streak{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.streak-icon{color:var(--accent)}.header-streak>div{display:flex;flex-direction:column;gap:2px}.streak-label{font-size:10px;font-weight:600;color:var(--muted)}.header-streak strong{font-size:15px;font-weight:700;white-space:nowrap}.streak-status{font-size:10px;color:var(--muted);max-width:90px;line-height:1.4}.topbar-right{width:auto}.topbar .ai-open{min-height:44px;padding:12px 18px;margin:0;font-size:13px;border-radius:12px}
@media(max-width:1200px){.topbar-inner{padding:24px 26px 0}.header-summary{gap:12px 18px}.header-clock{flex-direction:column;align-items:flex-start}}
@media(max-width:700px){.topbar-inner{padding:20px 18px 0;gap:12px;align-items:flex-start}.header-summary{gap:12px}.header-clock{font-size:14px;gap:3px}.header-clock time{font-size:15px}.header-streak{padding:8px 10px}.header-streak strong{font-size:14px}.streak-status{font-size:10px}.topbar .ai-open{padding:11px 12px;font-size:12px;min-height:42px}}

.life-category-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:22px 0 26px;padding-bottom:20px;border-bottom:1px solid var(--border)}.life-category-intro>div{min-width:0}.life-category-intro h2{overflow-wrap:anywhere}.life-category-intro p{max-width:650px;margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}.life-category-intro .text-button{flex-shrink:0}.life-tabs{overflow-x:auto}.life-tabs button{white-space:nowrap}@media(max-width:600px){.life-category-intro{flex-direction:column;gap:8px}}

.home-reminders>.panel-title>.text-button{flex-shrink:0}.upcoming-reminders{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.upcoming-reminders summary{font-size:12px;color:var(--muted);cursor:pointer;margin-bottom:6px}
/* Category management keeps confirmation beside the action, without an overlay. */
.life-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.life-category-actions{position:relative;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 16px;flex-shrink:0}
.life-category-actions .danger{color:var(--danger)}
.category-confirm{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:340px;max-width:calc(100vw - 44px);padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 36px #0002}
.category-confirm[hidden]{display:none}.category-confirm h3{font-size:15px;font-weight:600;overflow-wrap:anywhere}.life-category-intro .category-confirm p{font-size:12px;margin:10px 0 16px;line-height:1.65;white-space:normal}.category-confirm-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.category-confirm-buttons .danger{border:1px solid var(--danger);background:var(--surface)}
.life-removed{margin:16px 0;color:var(--muted);font-size:12px}.life-removed summary{cursor:pointer;width:fit-content}.life-removed>p{margin:12px 0 4px}.life-removed-row{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:440px;border-bottom:1px solid var(--border)}.life-removed-row span{overflow-wrap:anywhere}
@media(max-width:850px){.life-category-intro{flex-direction:column;gap:8px}.life-category-actions{justify-content:flex-start}.category-confirm{left:0;right:auto}.life-heading-actions .button{padding:9px;font-size:11px}}
@media(max-width:480px){.life-reading .page-heading{align-items:flex-start;flex-direction:column;gap:16px}.life-heading-actions{justify-content:flex-start}.life-reading .life-tabs button{white-space:normal;overflow-wrap:anywhere}}

.life-simple .life-tabs{margin-top:0;display:flex;flex-wrap:wrap;overflow:visible;gap:4px;white-space:normal}.life-simple .life-tabs .life-add-category{padding:8px 12px;display:inline-flex;align-items:center;justify-content:center}.life-simple .reading-tools{margin:18px 0 22px;justify-content:flex-start;gap:20px}.life-simple .reading-tools input{margin-left:auto;max-width:210px}.reading-group-heading{display:flex;align-items:center;gap:8px}.reading-group-heading h2{margin:0}.reading-group-heading .icon-button{width:28px;height:28px}.reading-group-heading .icon{width:15px;height:15px}.life-simple .category-confirm,.category-context-menu{position:fixed;right:auto;z-index:60}.category-context-menu{padding:5px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 8px 28px #0002;min-width:160px}.category-context-menu[hidden]{display:none}.category-context-menu button{padding:10px 14px;width:100%;justify-content:flex-start}.category-context-menu button:hover{background:var(--surface-soft)}.life-simple .category-confirm p{font-size:12px;margin:10px 0 16px;line-height:1.65}.category-touch-menu{display:none}@media(pointer:coarse){.category-touch-menu{display:inline-flex}}@media(max-width:600px){.life-simple .reading-tools{gap:10px}.life-simple .reading-tools input{max-width:45%}.life-simple .life-tabs button{white-space:normal}.category-touch-menu{display:inline-flex}}
.reminder-swipe-shell{position:relative;overflow:hidden;border-radius:8px}.swipe-backdrop{position:absolute;inset:0;display:flex;align-items:center;padding:16px;color:var(--accent);background:var(--accent-soft);font-size:12px;font-weight:600}.reminder-swipe-shell .reminder-row{position:relative;background:var(--surface);touch-action:pan-y;user-select:none;cursor:grab;transition:transform .18s ease-out}.reminder-row.is-swiping{transition:none;cursor:grabbing}.reminder-row.swipe-ready{box-shadow:-4px 0 var(--accent)}.swipe-hint{font-size:10px;white-space:nowrap;color:var(--muted)}.reminder-options{flex-shrink:0}.reminder-undo{display:flex;gap:16px;align-items:center;justify-content:space-between;background:var(--accent-soft);padding:8px 12px;border-radius:8px;margin-bottom:8px;font-size:12px}@media(prefers-reduced-motion:reduce){.reminder-swipe-shell .reminder-row{transition:none}}@media(max-width:600px){.swipe-hint{font-size:9px}.reminder-options{width:30px}}
/* Keep reminders light so the calendar stays close to the welcome row. */
.home-reminders{padding:10px 16px;margin-bottom:18px}
.home-reminders .panel-title{margin-bottom:0;gap:12px}
.home-reminders .reminders-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.home-reminders .reminders-heading h2{font-size:14px}
.home-reminders .reminders-heading p{margin:0;line-height:1.5}
.home-reminders>.reminder-list,.home-reminders>.reminder-undo{margin-top:6px}
.home-reminders .reminder-row{padding:8px 4px}
.home-reminders .upcoming-reminders{margin-top:8px;padding-top:8px}
@media(max-width:600px){.home-reminders{padding:9px 12px;margin-bottom:16px}.home-reminders .panel-title>.text-button{font-size:11px}.home-reminders .reminders-heading{gap:3px 8px}}

/* Assistant actions stay legible before typing and while waiting. */
.ai-toolbar .button:disabled,.ai-toolbar .ai-mic:disabled{opacity:1;cursor:wait;transform:none}.ai-summary{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.ai-toolbar .ai-mic{background:var(--accent-soft);color:var(--accent)}.ai-send{min-width:88px}.ai-panel .form-error{color:var(--danger)}
@media(max-width:480px){.topbar-inner{flex-wrap:wrap}.topbar .ai-open{white-space:normal;text-align:left}.ai-toolbar .button{padding:10px 12px}}

/* Start sections with their working controls, without an introductory banner. */
.tracking-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:16px}.insights-toolbar{margin-bottom:16px}.insights-toolbar .report-controls{flex-wrap:wrap}@media(max-width:700px){.tracking-actions{gap:8px}.tracking-actions .button{font-size:11px;padding:9px 11px}.tracking-toolbar{flex-wrap:wrap}.tracking-toolbar>.tracking-actions{margin-left:auto}}

/* Keep utility screens focused on labels and content. */
.sidebar nav{margin-top:30px}.journal-save-row{justify-content:flex-end}.journal-save-row #journal-save-status:not(:empty){margin-right:auto}#journal-save-status:empty,.ai-empty:empty{display:none}.daily-summary-tools>h2{margin-bottom:12px}.journal-ai-result{margin-top:16px}
.auth-layout{grid-template-columns:1fr;align-content:center;gap:24px;padding:32px 20px}.auth-story{min-height:0;background:none;padding:0;align-items:center}.auth-story>.brand{margin:0}.auth-depts,.auth-mark{display:none}.auth-form-wrap{padding:0}
.journal-composer{border:1px solid var(--border);border-radius:18px;background:var(--surface-soft);padding:10px;margin:18px 0 12px}.journal-composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.review-panel .journal-composer textarea{display:block;width:100%;border:0;border-radius:10px;background:transparent;box-shadow:none;outline:none;margin:0;padding:12px;font-size:16px;line-height:1.65;min-height:170px;resize:vertical;cursor:text}.journal-composer-toolbar{display:flex;align-items:center;gap:8px;padding:4px}.journal-composer-toolbar .voice-journal{margin:0;flex:1;gap:8px}.journal-composer-toolbar #journal-send{border-radius:24px;min-height:40px;white-space:nowrap}.journal-composer-toolbar .journal-mic{width:40px;height:40px}.journal-composer-toolbar .icon-button{width:40px;height:40px;font-size:22px}.journal-save-row{margin:0 0 12px;flex-wrap:wrap}.journal-composer-toolbar .voice-preview{font-size:11px}@media(max-width:600px){.journal-composer{padding:7px}.journal-composer-toolbar .voice-journal{min-width:0}.journal-composer-toolbar #voice-status{font-size:10px}}
.events-disclosure>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:13px 0;font-size:15px;font-weight:550;border-bottom:1px solid var(--border)}.event-month{border-bottom:1px solid var(--border)}.event-month>summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;padding:15px 0;font-size:13px}.event-month>summary:before{content:'\25b8';color:var(--muted)}.event-month[open]>summary:before{content:'\25be'}.event-month>summary>span:first-child{flex:1}.event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 0 16px}.event-card{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:15px;border:1px solid var(--border);background:var(--surface);border-radius:10px;border-left:3px solid #c99751}.event-card:hover{background:var(--surface-soft)}.event-birthday{border-left-color:#b477a4}.event-birthday .event-emoji{background:#b477a41a}.event-emoji{font-size:24px;border-radius:10px;background:#c997511a;padding:6px;flex-shrink:0}.event-copy{display:grid;gap:6px;min-width:0;flex:1}.event-copy strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.event-copy>span,.event-card time{font-size:11px;color:var(--muted)}.event-card time{white-space:nowrap}.event-filters{margin:16px 0}.event-filters label{font-size:11px;display:flex;gap:10px;align-items:center}.event-filters select{width:auto;padding:8px 12px}.event-sources{font-size:11px;color:var(--muted);margin-top:18px}.event-sources summary{cursor:pointer}.event-sources p{margin:8px 0}.event-sources a{text-decoration:underline}@media(max-width:850px){.event-grid{grid-template-columns:1fr}}


/* Compact spacing, with phone reading and touch controls first. */
.content{padding-top:24px;padding-bottom:28px}
.panel{padding:18px}.panel-title{margin-bottom:12px}
.home-priority-grid,.home-secondary-grid,.tracking-grid,.journaling-grid,.journal-day-content{gap:14px}
.tracking-toolbar{margin-bottom:14px}
.home-intro{gap:16px;margin-bottom:14px}.home-intro .home-quote{padding:14px 18px}
.journal-composer{padding:6px;margin:10px 0 0;border-radius:12px}
.review-panel .journal-composer textarea{min-height:120px;padding:8px;line-height:1.55}
.review-panel .panel-title{margin-bottom:8px}
.journal-composer-toolbar{padding:2px;gap:8px}
.journal-save-row{margin:6px 0 0}
.journal-save-row:has(#journal-save-status:empty){display:none}
.journal-rating{margin-top:10px;padding-top:0}
.journal-rating>summary{padding:12px 0;min-height:44px}
.daily-summary-tools h2{margin:0 0 8px}
.journal-day-content .journal-ai-buttons{margin:0;gap:8px;flex-direction:row}
.journal-day-content .journal-ai-buttons .button{flex:1;min-height:44px;padding:9px 10px}
.journal-day-content .journal-ai-result{margin-top:12px;padding-top:12px}
.daily-summary-tools .journal-ai-explanation{margin-top:10px;padding-top:0}.journal-ai-explanation>summary{min-height:44px;padding:12px 0}.journal-ai-explanation>.button{min-height:44px}
.journal-ai-result h4{margin:12px 0 6px}.journal-ai-result ul{margin:6px 0;padding-left:18px}
.journal-update-details{margin:10px 0 0}.journal-update-details summary{padding:8px 0}
.journal-questions{padding:8px 10px}.journal-questions h4{margin-top:0}
.journal-day-picker{margin-top:14px}.journal-day-picker h2{margin-bottom:8px}
.journal-timeline{gap:12px}.journal-moment{padding:0 0 12px 10px}
@media (min-width:1024px){
 .day-journal-grid>.journal-day-content{display:contents}
 .day-journal-grid #journal-entries{grid-column:1/-1;min-width:0}
}
.journal-moment-heading{gap:8px}.journal-date-notice{margin-top:8px;padding:8px}
#journal-entries{padding:0;border:0;background:transparent;box-shadow:none}
#journal-entries .journal-timeline{display:block;max-width:76ch;list-style:none;margin:0;padding:0}
#journal-entries .journal-moment{padding:0 0 14px;border:0}
#journal-entries .journal-moment+.journal-moment{padding-top:8px;border-top:1px solid var(--border)}
#journal-entries .journal-moment-heading{flex-wrap:nowrap}
#journal-entries .journal-entry-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
#journal-entries .journal-entry-meta h3{margin:0;font:inherit;font-size:14px;font-weight:650;letter-spacing:-.02em;color:var(--text)}
#journal-entries time{font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
#journal-entries .journal-entry-edit{width:40px;height:40px;flex:none;color:var(--muted);border-radius:10px}
#journal-entries .journal-entry-edit:is(:hover,:focus-visible){color:var(--accent);background:var(--accent-soft)}
#journal-entries .journal-moment p{margin:4px 0 0;max-width:68ch;font-size:15px;line-height:1.65;color:var(--text)}
@media(pointer:coarse){#journal-entries .journal-entry-edit{width:44px;height:44px}}
.reading-tools{margin:10px 0 14px}.reading-group{margin-bottom:18px}
.stat-grid{margin:14px 0;gap:12px}.stat-card{padding:14px}.insights-grid{gap:14px}
@media(max-width:700px){
 .content{padding:14px 12px 18px}
 .topbar-inner{padding:14px 12px 0;gap:8px}
 .panel{padding:14px;border-radius:10px}.panel-title{margin-bottom:10px}
 .home-priority-grid,.home-secondary-grid,.tracking-grid,.journaling-grid,.journal-day-content,.insights-grid{gap:12px}
 .home-intro{gap:12px;margin-bottom:12px}.home-intro .home-quote{padding:12px 14px}
 .tracking-toolbar{gap:8px;margin-bottom:12px;align-items:flex-end}
 .tracking-toolbar input{font-size:16px;min-height:44px;min-width:0;width:155px;padding:8px}
 .tracking-toolbar .text-button,.tracking-toolbar .button{min-height:44px;font-size:12px}
 .tracking-actions{gap:8px}
 .journaling-grid .review-panel textarea{font-size:16px;min-height:112px}
 .journal-composer{margin-top:8px;padding:4px}
 .journal-composer-toolbar #journal-send,.journal-composer-toolbar .journal-mic,.journal-composer-toolbar .icon-button{min-height:44px;height:44px}
 .journal-composer-toolbar .journal-mic,.journal-composer-toolbar .icon-button{width:44px}
 .journal-composer-toolbar #journal-send{font-size:14px;padding:10px 16px}
 .journal-rating{margin-top:8px}.journal-rating>summary{font-size:13px}
 .journal-day-content .journal-ai-buttons{flex-direction:row;gap:8px}
 .journal-day-content .journal-ai-buttons .button{font-size:13px;line-height:1.35}
 .journal-summary-text,.journal-moment p{font-size:15px;line-height:1.6}
 .journal-moment-heading .text-button{min-height:44px;font-size:12px}
 .rating-buttons{gap:6px;margin-bottom:12px}.rating-buttons button{flex:1 0 44px;min-height:44px;font-size:12px}
 .reading-tools{margin:8px 0 12px}.reading-group{margin-bottom:16px}
 .reading-edit{width:44px;height:44px;opacity:.5}
 .stat-grid{gap:10px;margin:12px 0}.stat-card{padding:12px}
 .metric-trend{margin-top:12px}.insights-toolbar{margin-bottom:10px}
 dialog{padding:18px}.modal-header{margin-bottom:14px}
}

/* Journal drafts are submitted explicitly; controls retain their normal colour. */
.journal-composer-toolbar #journal-send,.journal-composer-toolbar .journal-mic{background:var(--accent);color:var(--surface);border-color:var(--accent);opacity:1}
.journal-composer-toolbar .icon-button{color:var(--accent);background:var(--accent-soft)}
.journal-composer-toolbar .journal-mic.listening{box-shadow:0 0 0 4px var(--accent-soft);outline:2px solid var(--accent);outline-offset:3px}
.journal-composer-toolbar button:disabled,.journal-saved-actions button:disabled{opacity:1;cursor:wait;transform:none}
.journal-saved-actions{margin-top:18px}.journal-saved-actions .journal-ai-buttons{margin:0 0 8px;gap:8px}.journal-saved-actions .button{min-height:44px}.journal-saved-actions .small{font-size:11px}
.review-panel .journal-rating{margin-top:18px;padding-top:16px}.journal-rating .rating-label{margin-top:0}

/* Appearance control lives beside the AI action on every screen. */
.topbar-right{gap:10px;flex-shrink:0}.topbar .theme-toggle{width:44px;height:44px;background:var(--surface);color:var(--accent);border:1px solid var(--border);border-radius:12px}.topbar .theme-toggle:hover{background:var(--accent-soft)}
/* Phone header: date/time, streak and theme share one row; AI spans the next. */
.header-date-compact{display:none}
@media(max-width:700px){
 .topbar-inner{display:grid;grid-template-columns:minmax(0,1fr) auto 44px 44px;gap:12px 8px;padding:16px 12px 0;align-items:center}
 .header-summary,.header-status,.topbar-right{display:contents}
 .header-clock{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;line-height:1.4;font-size:13px;font-weight:600}
 .header-date-full{display:none}
 .header-date-compact{display:inline}
 .header-clock time{font-size:12px;font-weight:500;color:var(--muted)}
 .header-streak{grid-column:2;grid-row:1;min-height:44px;padding:6px 10px;gap:7px;border-radius:10px;justify-self:end}
 .header-streak .icon{width:18px;height:18px}.header-streak>div{gap:1px}.header-streak strong{font-size:13px;line-height:1.25}.streak-label{font-size:10px;line-height:1.2}
 .topbar .ai-open{grid-column:1 / -1;grid-row:2;width:100%;min-width:0;min-height:44px;height:44px;padding:10px 14px;font-size:14px;line-height:1;white-space:nowrap;border-radius:10px}
 .topbar .theme-toggle{grid-column:4;grid-row:1;width:44px;height:44px;border-radius:10px}
}

/* One compact mood control keeps the journal composer in focus. */
.review-panel .compact-mood{margin-top:14px;padding-top:12px}
.compact-mood .rating-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 3px}
.compact-mood .rating-label label{margin:0;font-size:12px;color:var(--text);font-weight:500}
.compact-mood output{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.mood-row{display:flex;align-items:center;gap:16px}
.mood-row input[type=range]{flex:1;min-width:0;width:100%;height:40px;margin:0;padding:0;border:0;background:transparent;accent-color:var(--accent);cursor:pointer;box-shadow:none}
.mood-row input[type=range]:disabled{cursor:wait}
.mood-row .button{flex-shrink:0;min-height:40px;padding:8px 12px;font-size:11px;white-space:nowrap}
@media(max-width:700px){.mood-row{gap:12px}.mood-row input[type=range],.mood-row .button{min-height:44px}.compact-mood .rating-label label{font-size:12px}.compact-mood output{font-size:10px}}

/* A quiet sage band separates global controls from page content. */
:root{--header-bg:#e3ebdd;--header-border:#c8d5c1}
:root[data-theme=dark]{--header-bg:#293d31;--header-border:#405b49}
.topbar{--muted:#536550;background:var(--header-bg);border-bottom:1px solid var(--header-border)}
:root[data-theme=dark] .topbar{--muted:#bdcdb8}
.topbar-inner{padding-top:16px;padding-bottom:16px}
@media(max-width:700px){.topbar-inner{padding-top:12px;padding-bottom:12px}}

.header-status{display:flex;align-items:center;gap:8px}
.topbar .app-refresh{width:44px;height:44px;background:var(--surface);color:var(--accent);border:1px solid var(--border);border-radius:12px}
.topbar .app-refresh:hover{background:var(--accent-soft)}.app-refresh.refreshing{opacity:1;cursor:wait}.app-refresh.refreshing .icon{animation:app-refresh-spin .9s linear infinite}
@keyframes app-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.app-refresh.refreshing .icon{animation:none}}
@media(max-width:700px){.header-status{display:contents}.topbar .app-refresh{grid-column:3;grid-row:1;border-radius:10px}}
@media(max-width:380px){.topbar-inner{column-gap:6px}.header-streak{padding-inline:7px;gap:5px}.header-clock{font-size:12px}}


/* Full-width brand header and coordinated colour themes. */
:root{--side-width:235px;--app-header-height:90px}
.topbar{position:fixed;inset:0 0 auto;height:var(--app-header-height);z-index:30;display:grid;grid-template-columns:var(--side-width) minmax(0,1fr);padding:0;background:var(--header-bg);border-color:var(--header-border);color:#f5f7ef;--muted:#dbe6dc}
:root[data-theme=dark] .topbar{--muted:#dbe6dc}
.header-brand{height:100%;margin:0;padding:0 22px;color:#f5f7ef}
.topbar-inner{width:100%;max-width:none;margin:0;padding:16px 28px;min-width:0;gap:16px}
.header-summary{gap:12px;flex-wrap:nowrap}.header-clock,.header-clock time{color:#f5f7ef}.header-clock{font-size:14px;gap:4px 12px}
.header-status{gap:8px}.header-streak{background:#ffffff1a;border-color:#ffffff20;color:#f5f7ef;padding:9px 12px}
.topbar .theme-toggle,.topbar .app-refresh,.topbar .palette-toggle{height:44px;width:44px;background:#ffffff12;border:1px solid #ffffff25;border-radius:10px;color:#f5f7ef}
.topbar .theme-toggle:hover,.topbar .app-refresh:hover,.topbar .palette-toggle:hover{background:#ffffff29;color:#fff}
.topbar .ai-open{background:#f7faf5;color:#293c32;border-color:#ffffff50;white-space:nowrap;padding:11px 14px}
.topbar button:focus-visible,.header-brand:focus-visible{outline-color:#fff}
.sidebar{top:var(--app-header-height);padding-top:10px}.main{padding-top:var(--app-header-height)}
.home-quote,:root[data-theme=dark] .home-quote{background:var(--quote-bg);border-color:var(--border);color:var(--text)}
.home-quote .eyebrow,.home-quote p,:root[data-theme=dark] .home-quote .eyebrow,:root[data-theme=dark] .home-quote p{color:var(--muted)}
.home-quote .text-button,:root[data-theme=dark] .home-quote .text-button{color:var(--accent)}
.palette-menu{width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;inset:auto;margin:0;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 16px 48px #0003}
.palette-menu::backdrop{background:transparent}.palette-heading{font-size:13px;font-weight:650;margin:0 0 12px}.palette-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.palette-options button{min-height:68px;display:grid;grid-template-columns:1fr auto;gap:7px;text-align:left;padding:10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text);font-size:12px}
.palette-options button:hover{background:var(--surface-soft)}.palette-options button[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}
.palette-swatches{display:flex;grid-column:1/-1}.palette-swatches i{width:22px;height:14px;display:block}.palette-swatches i:first-child{border-radius:5px 0 0 5px}.palette-swatches i:last-child{border-radius:0 5px 5px 0}.palette-selected{font-weight:700;color:var(--accent)}
@media(max-width:1200px){.header-clock{flex-direction:column;align-items:flex-start}.topbar-inner{padding-inline:20px}.header-clock{font-size:12px}.header-clock time{font-size:12px}.topbar .ai-open{font-size:12px;gap:6px;padding-inline:10px}}
@media(max-width:1100px){:root{--side-width:205px}.header-brand{padding-inline:17px}.topbar-inner{gap:10px}.header-summary{gap:10px}}
@media(min-width:701px) and (max-width:980px){.topbar .ai-open span{display:none}.topbar .ai-open{width:44px;padding:0}.topbar-inner{padding-inline:16px}.header-streak{padding-inline:8px}.header-status,.topbar-right{gap:6px}.header-clock{font-size:11px}}
@media(max-width:700px){.topbar{position:relative;height:auto;display:block}.header-brand{display:none}.main{padding-top:0}.topbar-inner{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:10px 8px;padding:12px}.header-summary,.header-status,.topbar-right{display:contents}.header-clock{grid-row:1;grid-column:1;font-size:13px}.header-clock time{font-size:12px;color:#dbe6dc}.header-streak{grid-row:1;grid-column:2;justify-self:end}.palette-toggle{grid-row:1;grid-column:3}.topbar .app-refresh{grid-row:2;grid-column:2;justify-self:end}.topbar .theme-toggle{grid-row:2;grid-column:3}.topbar .ai-open{grid-row:2;grid-column:1;min-width:0;width:100%;font-size:12px;padding-inline:8px;gap:6px}.header-streak{padding:6px 9px}}
/* Keep header status icons and menu keyboard focus readable. */
.topbar .streak-icon{color:inherit}.palette-menu button:focus-visible{outline-color:var(--accent)}
@media(min-width:1201px){.header-clock{font-size:16px}}


/* Refresh in place: content stays visible, with progress above it. */
.refresh-progress{position:fixed;inset:0;z-index:1000;pointer-events:none}
.refresh-track{position:absolute;inset:0 0 auto;height:3px;overflow:hidden;background:transparent}
.refresh-track i{display:block;width:38%;height:100%;background:var(--accent);box-shadow:0 0 9px var(--accent);animation:refresh-sweep 1.6s ease-in-out infinite}
.refresh-status{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid var(--border);border-radius:30px;background:var(--surface);color:var(--text);box-shadow:0 6px 24px #0002;font-size:12px;white-space:nowrap;animation:refresh-arrive .22s ease-out}
.refresh-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft);animation:refresh-pulse 1.3s ease-in-out infinite}
.refresh-progress.complete .refresh-track i{animation:none;width:100%;transition:width .25s ease}
.refresh-progress.complete .refresh-dot{animation:none}
.refresh-progress.complete{animation:refresh-leave .35s ease 1.2s forwards}
@keyframes refresh-sweep{from{transform:translateX(-110%)}to{transform:translateX(365%)}}
@keyframes refresh-pulse{50%{opacity:.5;transform:scale(.75)}}
@keyframes refresh-arrive{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@keyframes refresh-leave{to{opacity:0}}
@media(max-width:700px){.refresh-status{bottom:calc(82px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.refresh-track i,.refresh-status,.refresh-dot,.refresh-progress.complete{animation:none}.refresh-track i{width:100%;opacity:.7}}

/* Daily tracking on the left, the day's chronological plan on the right. */
.tracking-grid.tracking-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.tracking-basics{display:grid;gap:18px;min-width:0}
.tracking-basics>.panel{order:initial;min-width:0}
.schedule-panel .panel-title small{display:block;margin-top:6px;font-size:11px}
.schedule-list{list-style:none;margin:0;padding:0}
.schedule-row,.schedule-reminder{display:flex;align-items:center;gap:14px}
.schedule-row{position:relative;min-height:68px;padding:12px 0}
.schedule-row+.schedule-row{border-top:1px solid var(--border)}
.schedule-copy{display:grid;gap:4px;min-width:0;flex:1}
.schedule-copy strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}
.schedule-time{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.schedule-row .check-button,.schedule-reminder .check-button{flex-shrink:0}
.schedule-row.is-done .schedule-copy strong{text-decoration:line-through;color:var(--muted)}
.schedule-row .icon-button{width:40px;height:40px}
.schedule-empty{color:var(--muted);font-size:13px;margin:10px 0 3px}
.schedule-reminder{margin:8px 0 6px;padding:11px 14px;border:1px solid var(--border);border-inline-start:3px solid var(--accent);border-radius:10px;background:var(--surface-soft)}
.schedule-days{border:0;margin:0;padding:0}.schedule-days legend{margin-bottom:9px;font-size:12px}
@media(max-width:900px){.tracking-grid.tracking-layout{grid-template-columns:1fr}.tracking-basics{gap:14px}}

@media (min-width:1024px){
  .tracking-grid.tracking-layout{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tracking-layout .tracking-basics{display:contents}
}

.tracking-layout .habit-row,
.tracking-layout .schedule-row {
  display: grid;
  align-items: center;
  column-gap: 4px;
}
.tracking-layout .habit-row {
  grid-template-columns: auto minmax(0, 1fr) auto 44px;
}
.tracking-layout .schedule-row {
  grid-template-columns: minmax(0, 1fr) auto 44px;
}
.tracking-layout .habit-label {
  padding-inline-start: 4px;
  overflow-wrap: anywhere;
}
.tracking-layout .icon-button.tiny {
  width: 44px;
  height: 44px;
}
.tracking-layout .check-button {
  position: relative;
  justify-self: center;
  margin-inline: 10px;
  width: 24px;
  height: 24px;
}
.tracking-layout .check-button::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.tracking-layout .habit-row:has(.metric-input) {
  grid-template-columns: auto minmax(0, 1fr) min(36%, 108px) 44px;
}
.tracking-layout .metric-input {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  width: 100%;
  min-width: 0;
}
.tracking-layout .metric-input input {
  width: 100%;
  min-height: 40px;
  padding-inline: 4px;
}
.tracking-layout .metric-input span {
  overflow-wrap: anywhere;
}
.journal-intro {margin:0 0 clamp(18px,3vw,32px);min-width:0}
.journal-greeting {margin:0 0 5px;font-size:14px;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.journal-intro h1 {margin:0;font-size:clamp(36px,4.6vw,64px);font-weight:600;letter-spacing:-.05em;line-height:1.08;text-wrap:balance}
journal-prompts {display:inline-grid;max-width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:8px}
.journal-question {display:grid;min-width:0;font-size:clamp(15px,1.5vw,20px);line-height:1.4;color:var(--accent)}
.journal-question strong {grid-area:1 / 1;font-weight:650;overflow-wrap:anywhere}
.journal-prompt-toggle {border:0;border-radius:50%;background:transparent;color:var(--muted);width:36px;min-height:36px}
.journal-prompt-toggle:hover,.journal-prompt-toggle:focus-visible {background:var(--surface-soft);color:var(--text)}
@media(max-width:700px){.journal-prompt-toggle{width:44px;min-height:44px}}
