:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#eee4d6;--surface:#f4ece1;--text:#3b342c;--muted:#6c6358;--line:#e2d5c4;--accent:#3e4636;--accent-text:#f7f1e8;--focus:#2a5a8c;--energy:#c49a3c;--energy-soft:#f3e6c6;--fatigue:#6e4452;--fatigue-soft:#f0e3e0;--desire:#6a7d6e;--desire-soft:#e5ebe5;--activity:#7a5c3a;--danger:#9c5340;--nav-height:4.35rem;--font-display:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--font-body:"Avenir Next", "Segoe UI", system-ui, sans-serif;font-family:var(--font-body);font-size:17px;line-height:1.45}*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%}body{background:var(--bg);color:var(--text);margin:0}button,a,input,textarea{font:inherit}.app-shell{background:var(--surface);flex-direction:column;max-width:28rem;min-height:100dvh;margin:0 auto;display:flex;position:relative}.app-header{justify-content:space-between;align-items:center;gap:.75rem;padding:.55rem .85rem .2rem;display:flex}.brand-mark{width:1.75rem;height:1.75rem;display:block}.logout-button{width:2.75rem;min-width:44px;height:2.75rem;min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:.28rem;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.logout-button svg{width:1.2rem;height:1.2rem}.login-main{padding-bottom:2rem}.password-field{align-items:stretch;gap:.5rem;display:flex}.password-input{border:0;border-bottom:1px solid var(--line);min-height:2.75rem;color:var(--text);background:0 0;border-radius:0;flex:1;padding:.45rem 0}.password-input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.app-main{padding:.35rem 1.15rem calc(var(--nav-height) + 1.5rem + env(safe-area-inset-bottom));flex:1}.page h1{font-family:var(--font-display);margin:0 0 .7rem;font-size:1.85rem;font-weight:600;line-height:1.15}.lede{color:var(--muted);margin:0 0 1.05rem;font-size:1.05rem}.hint{color:var(--muted);margin:.45rem 0 0;font-size:1rem}.indicator-list{flex-direction:column;gap:1.15rem;display:flex}.indicator{background:0 0;border:0;border-radius:0;padding:0}.indicator-energy,.indicator-fatigue,.indicator-desire{opacity:1;background:0 0;border:0}.indicator-head{justify-content:space-between;align-items:baseline;gap:.75rem;display:flex}.indicator-label{margin:0;font-size:1.05rem;font-weight:650}.indicator-optional{color:var(--muted);font-size:1rem;font-weight:500}.indicator-value{font-variant-numeric:tabular-nums;color:var(--text);margin:0;font-size:1.05rem}.indicator-current{font-weight:650}.indicator-scale{color:var(--muted)}.indicator-energy .indicator-current{color:var(--energy)}.indicator-fatigue .indicator-current{color:var(--fatigue)}.indicator-desire .indicator-current{color:var(--desire)}.score-slider{--track-unfilled:var(--line);--tone-fill:var(--tone,var(--muted));appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;width:100%;height:2.75rem;margin:.15rem 0 0;display:block}.indicator-energy .score-slider{--tone:var(--energy)}.indicator-fatigue .score-slider{--tone:var(--fatigue)}.indicator-desire .score-slider{--tone:var(--desire)}.score-slider::-webkit-slider-runnable-track{background:var(--track-unfilled);border-radius:999px;height:.2rem}.score-slider.has-value::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--tone-fill) 0%, var(--tone-fill) var(--progress), var(--track-unfilled) var(--progress), var(--track-unfilled) 100%)}.score-slider::-moz-range-track{background:var(--track-unfilled);border-radius:999px;height:.2rem}.score-slider.has-value::-moz-range-track{background:linear-gradient(to right, var(--tone-fill) 0%, var(--tone-fill) var(--progress), var(--track-unfilled) var(--progress), var(--track-unfilled) 100%)}.score-slider::-webkit-slider-thumb{appearance:none;background:var(--tone-fill);-webkit-tap-highlight-color:transparent;border:0;border-radius:50%;width:1.15rem;height:1.15rem;margin-top:-.475rem}.score-slider.is-unset::-webkit-slider-thumb{opacity:.42}.score-slider::-moz-range-thumb{background:var(--tone-fill);border:0;border-radius:50%;width:1.15rem;height:1.15rem}.score-slider.is-unset::-moz-range-thumb{opacity:.42}.score-slider:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.desire-collapsed{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.65rem;display:flex}.log-form{flex-direction:column;gap:.85rem;display:flex}.field{flex-direction:column;gap:.4rem;display:flex}.field-label{margin:0;font-size:1.05rem;font-weight:650}.activity-label{color:var(--activity)}.context-input{border:0;border-bottom:1px solid var(--line);width:100%;min-height:5.25rem;color:var(--text);resize:vertical;background:0 0;border-radius:0;padding:.55rem 0}.context-input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.char-count{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;margin:0;font-size:.9rem}.activity-row{flex-wrap:wrap;gap:.4rem .55rem;display:flex}.activity-option{min-width:2.75rem;min-height:2.75rem;color:var(--muted);background:0 0;border:0;padding:.25rem .2rem;font-weight:500}.activity-option-active{color:var(--activity);font-weight:700}.secondary-button,.text-button{border-radius:.28rem;min-height:2.75rem;font-size:1rem}.secondary-button{background:var(--bg);color:var(--text);border:0;padding:.4rem .9rem;font-weight:650}.text-button{color:var(--muted);text-underline-offset:.18em;background:0 0;border:0;align-self:flex-start;margin:-.2rem 0 0;padding:.35rem .15rem;text-decoration:underline}.form-status,.form-error{border-radius:0;margin:0;padding:0;font-size:1rem}.form-status{color:var(--text);background:0 0}.form-error{color:var(--fatigue);background:0 0}.empty-state{border:1px solid var(--line);background:#f6f1e9;border-radius:.85rem;padding:.85rem .9rem}.empty-state p{margin:0}.primary-button,.range-button,.nav-link,.activity-option{min-width:2.75rem;min-height:2.75rem}.primary-button{background:var(--accent);width:100%;color:var(--accent-text);border:0;border-radius:.28rem;margin-top:.3rem;font-size:1.05rem;font-weight:650;display:block}.primary-button:disabled{background:var(--accent);color:var(--accent-text);opacity:.58;cursor:not-allowed}.range-row{gap:.85rem;margin:0 0 1rem;display:flex}.range-button{color:var(--muted);background:0 0;border:0;border-radius:.28rem;flex:none;padding:.2rem 0;font-size:1rem}.range-button-active{color:var(--text);box-shadow:inset 0 -1px 0 var(--text);font-weight:650}.range-button:disabled{opacity:.62;cursor:not-allowed}.app-nav{z-index:10;width:min(28rem,100%);padding:.45rem .65rem calc(.55rem + env(safe-area-inset-bottom));background:var(--surface);grid-template-columns:repeat(3,1fr);gap:.2rem;margin:0 auto;display:grid;position:fixed;bottom:0;left:0;right:0}.nav-link{color:var(--muted);border-radius:.28rem;justify-content:center;align-items:center;padding:.35rem .3rem;font-size:1rem;font-weight:500;text-decoration:none;display:flex}.nav-link-active{color:var(--text);background:0 0;font-weight:700}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.nav-link,.range-button,.activity-option,.primary-button,.secondary-button,.text-button,.logout-button,.danger-button{-webkit-tap-highlight-color:transparent}.nav-link:active,.range-button:active:not(:disabled),.activity-option:active,.text-button:active,.logout-button:active{opacity:.78}.secondary-button:active:not(:disabled){background:color-mix(in srgb, var(--bg) 88%, var(--text))}.primary-button:active:not(:disabled){background:color-mix(in srgb, var(--accent) 88%, #1a1814)}.danger-button:active:not(:disabled){background:color-mix(in srgb, var(--danger) 88%, #1a1814)}.entry-list{flex-direction:column;gap:0;margin:0;padding:0;list-style:none;display:flex}.entry-card{background:0 0;border:0;border-radius:0;margin:0 0 1.85rem;padding:0 0 .35rem}.entry-card:after{content:"";background:var(--line);width:2.4rem;height:1px;margin-top:1.45rem;display:block}.entry-list li:last-child .entry-card{margin-bottom:.4rem}.entry-list li:last-child .entry-card:after{display:none}.entry-date{letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0;font-size:.72rem}.entry-time{font-family:var(--font-display);font-variant-numeric:tabular-nums;margin:.2rem 0 .85rem;font-size:1.7rem;font-weight:600;line-height:1.1}.entry-scores{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem .7rem;margin:0;display:grid}.entry-scores-two{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-scores>div{flex-direction:column;align-items:flex-start;gap:.12rem;display:flex}.entry-scores dt{color:var(--muted);order:1;margin:0;font-size:.9rem;font-weight:500}.entry-scores dd{font-variant-numeric:tabular-nums;order:0;margin:0;font-size:1.28rem;font-weight:650;line-height:1.1}.entry-energy{color:var(--energy)}.entry-fatigue{color:var(--fatigue)}.entry-desire{color:var(--desire)}.entry-activity{color:var(--activity);margin:.95rem 0 0;font-weight:650}.entry-context{color:var(--muted);margin:.35rem 0 0}.entry-actions{flex-wrap:wrap;justify-content:space-between;gap:.2rem 1.1rem;margin-top:.85rem;display:flex}.entry-actions .text-button{min-height:2.75rem;margin:0}.entry-delete{text-underline-offset:.18em;text-decoration:underline}.history-notice{margin-bottom:.75rem}.app-dialog{border:1px solid var(--line);background:var(--surface);width:min(100% - 1.5rem,28rem);max-height:min(100dvh - 1.5rem,40rem);color:var(--text);border-radius:.28rem;margin:auto;padding:1.25rem 1.15rem 1.35rem;overflow:auto}.app-dialog[open]{flex-direction:column;display:flex}.app-dialog::backdrop{background:#1c19147a}.dialog-title{font-family:var(--font-display);margin:0 0 .85rem;font-size:1.35rem;font-weight:600;line-height:1.2}.dialog-title:focus{outline:none}.dialog-title:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.dialog-body p{color:var(--muted);margin:0 0 1rem}.dialog-when{border-bottom:1px solid var(--line);flex-direction:column;gap:.2rem;margin:0 0 1.1rem;padding-bottom:1rem;display:flex}.dialog-when-value{font-family:var(--font-display);font-size:1.15rem;font-weight:600}.dialog-form{min-height:0;margin:0;overflow:auto}.dialog-actions{background:var(--surface);flex-direction:column;gap:.45rem;margin-top:1.1rem;padding-top:.85rem;display:flex;position:sticky;bottom:0}.dialog-actions .primary-button,.dialog-actions .secondary-button,.dialog-actions .danger-button{width:100%;margin-top:0}.dialog-actions .secondary-button{color:var(--muted);background:0 0;font-weight:500}.danger-button{background:var(--danger);min-height:2.75rem;color:var(--accent-text);border:0;border-radius:.28rem;font-size:1.05rem;font-weight:650}.danger-button:disabled{opacity:.58;cursor:not-allowed}.load-more,.status-action{width:100%;margin-top:.85rem}.period-summary{margin:.55rem 0 .15rem}.period-summary-empty{color:var(--muted);margin:.35rem 0 0}.period-summary-heading{font-family:var(--font-display);margin:0;font-size:1.15rem;font-weight:600}.period-summary-count{color:var(--muted);margin:.2rem 0 .65rem}.period-summary-metrics{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.period-summary-metric{font-variant-numeric:tabular-nums;align-items:baseline;gap:.45rem;margin:0;display:flex}.period-summary-swatch{flex:0 0 .7rem;align-self:center;width:.7rem;height:.2rem}.period-summary-metric-energy .period-summary-swatch{background:var(--energy)}.period-summary-metric-fatigue .period-summary-swatch{background:var(--fatigue)}.period-summary-metric-desire .period-summary-swatch{background:var(--desire)}.chart-block{flex-direction:column;gap:.85rem;display:flex}.chart-frame{width:100%;height:280px;margin:.15rem 0 0}.chart-frame,.chart-frame .recharts-wrapper,.chart-frame .recharts-surface{-webkit-tap-highlight-color:transparent}.chart-frame .recharts-surface:focus:not(:focus-visible){outline:none}.chart-frame .recharts-surface:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.chart-detail{margin:0}.chart-detail-when{font-family:var(--font-display);text-transform:capitalize;margin:0 0 .45rem;font-size:1.15rem;font-weight:600}.chart-detail-line{font-variant-numeric:tabular-nums;margin:.15rem 0 0}.chart-legend{flex-wrap:wrap;gap:.55rem 1.1rem;margin:.35rem 0 0;padding:0;list-style:none;display:flex}.chart-legend li{color:var(--muted);align-items:center;gap:.4rem;font-size:.95rem;display:flex}.legend-swatch{width:.7rem;height:.2rem}.legend-energy{background:var(--energy)}.legend-fatigue{background:var(--fatigue)}.legend-desire{background:var(--desire)}.empty-state-error{background:var(--fatigue-soft)}.empty-state-loading{background:var(--energy-soft)}
