:root{--paper:#f5f1e8;--ink:#28241f;--ink-muted:#28241fb8;--accent:#a4512f;--surface-health:#28241f0b;--surface-milestones:#a4512f09;--type-display:24px;--type-body:14px;--type-caption:11px;--shadow:0 12px 34px #28241f14}*{box-sizing:border-box}html{background:var(--ink);min-height:100%}body{min-height:100vh;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,sans-serif;font-size:var(--type-body);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0}button,input,textarea{color:inherit;font:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{cursor:default;opacity:.36}::selection{color:var(--paper);background:var(--accent)}.app-shell{width:min(100%,430px);min-height:100vh;padding:max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));background:linear-gradient(180deg, #a4512f0b, transparent 170px), var(--paper);margin:0 auto}.app-loading{color:var(--ink-muted);font-size:var(--type-caption);place-items:center;display:grid}.date-bar{align-items:center;min-height:30px;margin-bottom:8px;display:flex}.sheet-close{min-height:40px;font-size:var(--type-body);cursor:pointer;background:0 0;border:1px solid #28241f29;border-radius:14px}.date-picker{min-height:30px;color:var(--ink-muted);cursor:pointer;background:#28241f0b;border:0;border-radius:10px;align-items:center;gap:6px;padding:5px 8px 5px 6px;display:inline-flex}.date-picker strong{font-size:var(--type-caption);letter-spacing:.02em;font-weight:740}.backfill-note{color:var(--accent);font-size:var(--type-caption);background:0 0;margin:0 2px 7px;padding:2px 0}.summary{margin:0 2px 15px}.summary p,.section-heading p,.privacy-note{color:var(--ink-muted);font-size:var(--type-caption);line-height:1.6}.summary span{color:var(--ink);font-size:var(--type-display);letter-spacing:-.035em;margin-bottom:4px;font-weight:760;line-height:1.2;display:block}.summary p{color:var(--ink-muted);font-size:var(--type-body);margin:0;font-weight:400;line-height:1.55}.section{margin-bottom:11px}.module-panel{border:1px solid #28241f1a;border-radius:22px;padding:10px;box-shadow:0 10px 30px #28241f0e}.module-panel--health{background:var(--surface-health)}.module-panel--milestones{background:var(--surface-milestones)}.section-heading{justify-content:space-between;align-items:flex-end;gap:12px;margin:0 1px 8px;display:flex}.section-heading h2,.sheet-header h2,.transfer-heading h3{font-size:var(--type-body);letter-spacing:-.01em;margin:0;font-weight:760}.section-heading p,.sheet-header p,.transfer-heading p{margin:2px 0 0}.text-action{min-height:30px;color:var(--accent);font-size:var(--type-caption);cursor:pointer;background:0 0;border:0;padding:4px 2px 4px 8px;font-weight:700}.card{background:#f5f1e8b8;border:1px solid #28241f1a;border-radius:18px;box-shadow:0 8px 24px #28241f0f}.body-card{padding:0;overflow:hidden}.signal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.signal{text-align:left;cursor:pointer;background:0 0;border:1px solid #28241f24;border-radius:14px;flex-direction:column;align-items:flex-start;gap:5px;min-height:76px;padding:9px 8px 8px;transition:transform .16s,border-color .16s,background .16s;display:flex;position:relative}.signal:active{transform:scale(.98)}.signal[data-checked=true]{background:#a4512f14;border-color:#a4512f7a}.signal-icon{width:25px;height:25px;color:var(--paper);background:var(--accent);font-size:var(--type-body);border-radius:9px;place-items:center;font-weight:800;display:grid}.signal-copy{width:100%;min-width:0}.signal-copy strong,.signal-copy small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.signal-copy strong{font-size:var(--type-body);padding-right:10px;line-height:1.25}.signal-copy small{color:var(--ink-muted);font-size:var(--type-caption);margin-top:2px}.signal-mark{color:var(--accent);font-size:var(--type-body);font-weight:800;position:absolute;top:8px;right:8px}.optional-signals{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.optional-signal{min-height:28px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:#28241f0e;border:0;border-radius:999px;align-items:center;gap:5px;padding:4px 8px;display:inline-flex}.optional-signal[data-checked=true]{color:var(--accent);background:#a4512f17}.optional-signal small{color:inherit;opacity:.75}.rhythm{border-top:1px solid #28241f1f;margin-top:9px;padding-top:9px}.rhythm-heading{justify-content:space-between;align-items:baseline;margin-bottom:6px;display:flex}.rhythm-heading strong,.rhythm-heading span{font-size:var(--type-caption)}.rhythm-heading span{color:var(--accent);font-weight:700}.rhythm-meta{align-items:center;gap:8px;display:flex}.rhythm-meta button{min-height:24px;color:var(--accent);font-size:var(--type-caption);cursor:pointer;background:0 0;border:0;padding:4px 0 4px 5px;font-weight:700}.rhythm-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;display:grid}.rhythm-day{min-width:0;min-height:34px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:0 0;border:0;justify-items:center;gap:3px;padding:0;display:grid}.day-pips{background:#28241f0d;border-radius:9px;grid-template-columns:repeat(3,7px);gap:3px;min-height:17px;padding:5px;display:grid}.rhythm-day[data-selected=true] .day-pips{outline:1.5px solid var(--accent);outline-offset:2px}.pip{background:#28241f29;border-radius:3px;width:7px;height:7px}.pip[data-on=true]{background:var(--accent)}.filters{gap:4px;margin-bottom:6px;display:flex}.module-panel--milestones .filters{margin-bottom:8px}.filters button{min-height:27px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:#28241f12;border:0;border-radius:999px;padding:4px 9px}.filters button[aria-pressed=true]{color:var(--paper);background:var(--ink)}.milestone-list{gap:7px;display:grid}.milestone-card{padding:9px 10px}.milestone-top{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.milestone-card h3,.empty-card strong,.data-entry{font-size:var(--type-body);margin:0;line-height:1.4}.milestone-description{color:var(--ink-muted);font-size:var(--type-caption);-webkit-line-clamp:1;-webkit-box-orient:vertical;margin:3px 0 0;line-height:1.4;display:-webkit-box;overflow:hidden}.deadline{min-height:23px;color:var(--paper);background:var(--accent);box-shadow:none;font-size:var(--type-caption);white-space:nowrap;border-radius:999px;align-self:start;align-items:center;padding:0 8px;font-weight:760;line-height:1;display:inline-flex}.deadline[data-neutral=true]{color:var(--ink-muted);box-shadow:none;background:#28241f14}.deadline[data-urgent=false]:not([data-neutral=true]){color:var(--accent);box-shadow:none;background:#a4512f1a}.latest-event{background:0 0;grid-template-columns:auto minmax(0,1fr);gap:6px;margin-top:4px;padding:0;display:grid}.latest-event span{color:var(--ink-muted);font-size:var(--type-caption);white-space:nowrap}.latest-event p{font-size:var(--type-caption);text-overflow:ellipsis;white-space:nowrap;margin:0;line-height:1.4;overflow:hidden}.milestone-actions,.sheet-actions{align-items:center;gap:7px;margin-top:10px;display:flex}.milestone-actions{justify-content:flex-end;gap:4px;margin-top:5px}.milestone-action{min-height:25px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:0 0;border:1px solid #28241f21;border-radius:9px;padding:2px 7px;font-weight:680}.milestone-action--primary{color:var(--accent);background:#a4512f12;border-color:#a4512f38}.primary-action,.secondary-action{min-height:42px;font-size:var(--type-body);cursor:pointer;border-radius:13px;padding:0 13px;font-weight:700}.primary-action{color:var(--paper);background:var(--accent);border:0;flex:1}.secondary-action{background:0 0;border:1px solid #28241f29}.timeline{border-top:1px solid #28241f1f;gap:9px;margin:9px 0 0;padding:9px 0 0;list-style:none;display:grid}.timeline li{padding-left:17px;position:relative}.timeline li:before{background:var(--accent);content:"";border-radius:50%;width:6px;height:6px;position:absolute;top:5px;left:1px}.timeline li:not(:last-child):after{content:"";background:#28241f24;width:1px;position:absolute;top:13px;bottom:-11px;left:3.5px}.timeline time,.timeline p{font-size:var(--type-caption)}.timeline time{color:var(--ink-muted);font-variant-numeric:tabular-nums}.timeline p{margin:3px 0 0;line-height:1.45}.empty-card{padding:13px}.empty-card p{color:var(--ink-muted);font-size:var(--type-caption);margin:4px 0 10px;line-height:1.55}.empty-card .primary-action{width:100%}.data-entry{width:fit-content;min-height:30px;color:var(--ink-muted);font-size:var(--type-caption);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;margin:2px auto 0;padding:4px 8px;-webkit-text-decoration:underline #28241f47;text-decoration:underline #28241f47;display:block}.privacy-note{text-align:center;margin:0 10px}.sheet-layer{z-index:20;position:fixed;inset:0}.sheet-backdrop{cursor:pointer;background:#28241f6b;border:0;width:100%;padding:0;animation:.16s both fade-in;position:absolute;inset:0}.bottom-sheet{overscroll-behavior:contain;width:min(100%,430px);max-height:min(82vh,700px);padding:10px 16px max(18px, env(safe-area-inset-bottom));background:var(--paper);border:1px solid #28241f1f;border-bottom:0;border-radius:26px 26px 0 0;margin:0 auto;animation:.22s both sheet-up;position:absolute;bottom:0;left:0;right:0;overflow:auto;box-shadow:0 -18px 52px #28241f2e}.bottom-sheet--wide{max-height:min(88vh,760px)}.sheet-handle{background:#28241f2e;border-radius:999px;width:34px;height:4px;margin:0 auto 11px}.sheet-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;display:flex}.sheet-header p,.transfer-heading p{color:var(--ink-muted);font-size:var(--type-caption);line-height:1.55}.sheet-close{cursor:pointer;flex:none;width:40px}.project-editor-list{border-top:1px solid #28241f1f}.project-editor{border-bottom:1px solid #28241f1f;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 0;display:grid}.project-order{gap:3px;display:grid}.project-order button{width:26px;height:26px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:0 0;border:0;padding:0}.project-fields{gap:7px;display:grid}.project-fields label,.stacked-field{gap:4px;display:grid}.project-fields label span,.stacked-field span{color:var(--ink-muted);font-size:var(--type-caption)}.project-fields input,.stacked-field input,.stacked-field textarea{width:100%;color:var(--ink);font-size:var(--type-body);background:#28241f09;border:1px solid #28241f24;border-radius:12px}.project-fields input{min-height:36px;padding:6px 9px}.stacked-field input{min-height:44px;padding:9px 11px}.date-field{width:100%;min-height:44px;color:var(--ink);text-align:left;cursor:pointer;background:#28241f09;border:1px solid #28241f24;border-radius:12px;align-items:center;gap:8px;padding:9px 11px;display:flex}.date-field>span{color:var(--ink);font-size:var(--type-body)}.stacked-field textarea{resize:vertical;padding:10px 11px;line-height:1.5}.review-note{color:var(--accent);font-size:var(--type-caption);margin:0}.required-label{min-width:44px;color:var(--accent);font-size:var(--type-caption);text-align:center;background:#a4512f17;border-radius:999px;padding:6px 8px;font-weight:700}.project-controls{justify-items:center;gap:6px;display:grid}.toggle-switch{cursor:pointer;background:#28241f29;border:0;border-radius:999px;width:44px;height:26px;padding:0;position:relative}.toggle-switch:after{background:var(--paper);content:"";border-radius:50%;width:20px;height:20px;transition:transform .16s;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #28241f33}.toggle-switch[aria-checked=true]{background:var(--accent)}.toggle-switch[aria-checked=true]:after{transform:translate(18px)}.delete-project{min-height:24px;color:var(--ink-muted);font-size:var(--type-caption);cursor:pointer;background:0 0;border:0;padding:2px 4px}.delete-project[data-confirming=true]{color:var(--paper);background:var(--accent);border-radius:8px;padding:3px 6px}.optional-label{color:var(--ink-muted);font-size:var(--type-caption)}.form-stack{gap:13px;display:grid}.sheet-actions--end{justify-content:flex-end}.sheet-actions--end .primary-action{flex:0 190px}.mood-options{grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:13px;display:grid}.mood-options button{min-height:42px;font-size:var(--type-body);cursor:pointer;background:0 0;border:1px solid #28241f24;border-radius:13px}.mood-options button[aria-pressed=true]{border-color:var(--accent);color:var(--paper);background:var(--accent)}.history-metrics{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.history-metrics div{text-align:center;background:#28241f09;border:1px solid #28241f1a;border-radius:15px;gap:3px;min-width:0;padding:12px 8px;display:grid}.history-metrics strong{color:var(--accent);font-size:var(--type-body);font-variant-numeric:tabular-nums}.history-metrics span,.history-definition,.calendar-weekdays span,.history-day{font-size:var(--type-caption)}.history-metrics span,.history-definition,.calendar-weekdays span{color:var(--ink-muted)}.history-definition{margin:9px 3px 17px;line-height:1.55}.month-heading{text-align:center;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:8px;display:grid}.month-heading button{cursor:pointer;background:0 0;border:1px solid #28241f24;border-radius:12px;min-height:36px}.month-heading strong{font-size:var(--type-body)}.calendar-weekdays,.history-calendar,.picker-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;display:grid}.calendar-picker-heading button{place-items:center;display:grid}.calendar-day,.calendar-day-spacer{min-width:0;min-height:42px}.calendar-day{color:var(--ink-muted);font-size:var(--type-body);font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;border-radius:13px}.calendar-day[data-today=true]{color:var(--accent);font-weight:760}.calendar-day[data-selected=true]{color:var(--paper);background:var(--accent);font-weight:760}.calendar-picker-actions{justify-content:space-between;align-items:center;min-height:35px;margin-top:10px;display:flex}.calendar-picker-actions button{min-height:34px;font-size:var(--type-caption);cursor:pointer;border:0;border-radius:11px;padding:5px 10px;font-weight:700}.calendar-quiet-action{color:var(--ink-muted);background:0 0}.calendar-today-action{color:var(--accent);background:#a4512f14}.calendar-weekdays{text-align:center;margin-bottom:5px}.history-day,.history-day-spacer{min-width:0;min-height:47px}.history-day{color:var(--ink-muted);cursor:pointer;background:0 0;border:0;border-radius:12px;align-content:center;place-items:center;gap:5px;padding:4px 1px;display:grid}.history-day[data-has-record=true]{color:var(--ink);background:#28241f0b;font-weight:700}.history-day[data-complete=true]{color:var(--accent);background:#a4512f1a}.history-day[data-selected=true]{outline:1.5px solid var(--accent);outline-offset:1px}.history-pips{grid-template-columns:repeat(3,5px);gap:2px;display:grid}.history-pips i{background:#28241f24;border-radius:2px;width:5px;height:5px}.history-pips i[data-on=true]{background:var(--accent)}.milestone-sheet-actions{grid-template-columns:1fr 1fr;display:grid}.milestone-sheet-actions .primary-action{grid-column:1/-1;width:100%}.milestone-status-help{border-top:1px solid #28241f1c;gap:5px;margin-top:12px;padding-top:10px;display:grid}.milestone-status-help p{color:var(--ink-muted);font-size:var(--type-caption);margin:0;line-height:1.5}.milestone-status-help strong{color:var(--ink);margin-right:6px}.transfer-section{border-top:1px solid #28241f1f;padding-top:14px}.transfer-section--export{margin-top:18px}.transfer-heading{justify-content:space-between;align-items:center;gap:14px;display:flex}.compact-action{min-height:38px;font-size:var(--type-caption);flex:none}.import-preview{background:#a4512f0f;border:1px solid #a4512f42;border-radius:17px;margin-top:13px;padding:13px}.preview-title{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.preview-title strong,.preview-title span{display:block}.preview-title strong{font-size:var(--type-body)}.preview-title span,.hash-label{color:var(--ink-muted);font-size:var(--type-caption);margin-top:2px}.preview-grid{grid-template-columns:repeat(4,1fr);gap:6px;margin:13px 0;display:grid}.preview-grid div{text-align:center;background:#28241f0d;border-radius:12px;padding:8px}.preview-grid dt{color:var(--ink-muted);font-size:var(--type-caption)}.preview-grid dd{font-size:var(--type-body);margin:2px 0 0;font-weight:760}.warning-list{color:var(--ink-muted);font-size:var(--type-caption);gap:6px;margin:0 0 13px;padding-left:18px;line-height:1.5;display:grid}.full-action{width:100%}.error-message,.success-message{font-size:var(--type-caption);border-radius:12px;margin:12px 0 0;padding:9px 11px;line-height:1.5}.error-message{color:var(--accent);background:#a4512f14}.success-message{color:var(--ink);background:#28241f0f}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-up{0%{transform:translateY(100%)}}@media (width<=370px){.signal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.signal{padding-left:6px;padding-right:6px}.milestone-top{grid-template-columns:1fr}.deadline{justify-self:start}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (width>=520px){body{padding:20px 0}.app-shell{border-radius:30px;min-height:calc(100vh - 40px);box-shadow:0 18px 60px #28241f2e}.bottom-sheet{border-bottom:1px solid #28241f1f;border-radius:26px;bottom:20px}}
