:root{color:#22352f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;background:#f6f7f2;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:0;margin:0}button,input,select{font:inherit}button,a,summary,input,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,.routine-panel:focus-visible{outline-offset:3px;outline:3px solid #a58328}.workspace{width:100%;max-width:900px;padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(36px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));overflow-wrap:anywhere;margin-inline:auto}.topbar{border-bottom:1px solid #dfe4da;justify-content:space-between;align-items:center;gap:16px;min-height:60px;display:flex}.brand{min-width:44px;min-height:44px;color:inherit;align-items:center;gap:14px;font-size:25px;font-weight:800;text-decoration:none;display:inline-flex}.brand span,.phase{color:#68786e;letter-spacing:.08em;font-size:11px;font-weight:500}.phase{flex-shrink:0}.today-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-block:24px;display:flex}.eyebrow,.section-label{color:#59705f;letter-spacing:.06em;margin:0;font-size:11px;font-weight:650;line-height:1.5}h1{letter-spacing:-.045em;margin:7px 0 0;font-size:clamp(23px,4vw,30px);line-height:1.3}h2{letter-spacing:-.035em;margin:6px 0 0;font-size:21px;line-height:1.4}h3{margin:5px 0 0;font-size:16px;font-weight:650;line-height:1.6}.sync-status{color:#6a7969;font-size:11px}.sections{flex-direction:column;gap:20px;display:flex}.content-block{background:#fff;border:1px solid #e0e5da;border-radius:18px;min-width:0;padding:24px}.task-block{border-top:3px solid #52745a}.block-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.block-header>div{min-width:0}.count-badge{vertical-align:middle;color:#58705a;letter-spacing:normal;background:#eef3e8;border-radius:6px;margin-left:6px;padding:2px 7px;font-size:12px;font-weight:500;display:inline-block}.primary-button,.secondary-button,.promote-button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;min-height:44px;padding:10px 14px;font-size:13px;font-weight:600;line-height:1.4;display:inline-flex}.primary-button{color:#fff;background:#355b43}.primary-button:hover:not(:disabled){background:#274632}.secondary-button{color:#38573f;background:#f3f6ef;border-color:#dfe7d7}.promote-button{color:#355b43;background:#eaf1e3;padding-inline:10px}.icon-button,.text-button{color:#62745f;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:8px;font-size:12px;display:inline-flex}.icon-button:hover:not(:disabled),.text-button:hover:not(:disabled){background:#f2f5ed}.danger-button{color:#98665f}.empty-state{text-align:center;color:#61715c;margin:0;padding:32px 8px;font-size:14px;line-height:1.9;display:block}.empty-state span{color:#7d8977;font-size:12px}.error-banner{color:#8b483b;background:#fff3ee;border:1px solid #e9c7bf;border-radius:10px;margin:0 0 16px;padding:14px 16px;font-size:13px;line-height:1.7}.error-banner p{margin-top:0}.notice{color:#3e6544;background:#eaf2e4;border-radius:9px;margin:0 0 16px;padding:12px 16px;font-size:13px}.item-list,.note-list,.routine-list{margin:0;padding:0;list-style:none}.item-list{margin-top:16px}.item-row{border-bottom:1px solid #edf0e8;align-items:center;gap:8px;padding:10px 0;display:flex}.item-row:last-child{border-bottom:0}.item-main{flex:1;min-width:0}.item-title{color:#304632;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.completed .item-title{color:#879181;text-decoration:line-through}.priority-label{color:#8f6828;vertical-align:middle;background:#fcf3dd;border-radius:4px;margin-left:6px;padding:1px 5px;font-size:10px;display:inline-block}.check-target{cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.check-target input,.checkbox-label input{accent-color:#416847;cursor:pointer;width:21px;height:21px;margin:0}.check-target input:disabled{cursor:default}.row-actions{flex-shrink:0;gap:0;display:flex}.notes-section{border-top:1px solid #e3e9dc;margin-top:18px}.notes-section summary{cursor:pointer;color:#5f725d;align-items:center;gap:8px;min-height:52px;font-size:13px;font-weight:650;list-style:none;display:flex}.notes-section summary::-webkit-details-marker{display:none}.details-arrow{margin-left:auto;font-size:18px;transition:transform .15s}.notes-section[open] .details-arrow{transform:rotate(180deg)}.note-count{background:#f0f3eb;border-radius:5px;padding:1px 6px;font-size:11px}.notes-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.notes-toolbar p,.notes-empty{color:#76826e;font-size:12px}.note-row{border-bottom:1px dashed #e1e6da;padding:12px 0}.note-row:last-child{border-bottom:0}.note-row>p{margin:0 0 6px}.note-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;display:flex}.routine-tabs{background:#f1f4ec;border-radius:11px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:22px;padding:4px;display:grid}.routine-tabs button{color:#77836f;background:0 0;border:0;border-radius:8px;min-width:0;min-height:44px;font-size:13px;font-weight:600}.routine-tabs button[aria-selected=true]{color:#35563c;background:#fff;box-shadow:0 1px 4px #26432a10}.routine-panel{touch-action:pan-y pinch-zoom;min-height:140px}.routine-list{gap:12px;margin-top:18px;display:grid}.routine-card{background:#fcfdf9;border:1px solid #e2e8da;border-radius:12px;padding:16px}.routine-top{align-items:center;gap:10px;display:flex}.routine-mode{color:#6a7b62;font-size:10px}.progress-caption{color:#526d4d;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin:16px 0 8px;font-size:12px;display:flex}.achieved-label{color:#3f7345;font-size:11px;font-weight:700}.routine-progress{accent-color:#668b55;background:#e3eadb;border:0;border-radius:10px;width:100%;height:6px;display:block;overflow:hidden}.routine-progress::-webkit-progress-bar{background:#e3eadb;border-radius:10px}.routine-progress::-webkit-progress-value{background:#668b55;border-radius:10px}.routine-progress::-moz-progress-bar{background:#668b55;border-radius:10px}.routine-hint{color:#708066;margin:10px 0 0;font-size:11px;line-height:1.7}.period-range{color:#8a9480;margin:4px 0 0;font-size:10px}.swipe-hint{text-align:center;color:#7d8976;margin:14px 0 0;font-size:10px}.editor-dialog{color:#22352f;overscroll-behavior:contain;background:#fff;border:1px solid #d8e1d0;border-radius:18px;width:min(480px,100% - 28px);max-height:calc(100dvh - 40px);margin:auto;padding:24px;overflow-y:auto}.editor-dialog::backdrop{background:#1e2d2466}.dialog-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.dialog-header h2{margin:0}.dialog-header .icon-button{font-size:25px}.editor-form{flex-direction:column;gap:18px;display:flex}.editor-form>label{flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.editor-form input:not([type=checkbox]),.editor-form select{color:#304632;background:#fbfcf8;border:1px solid #dbe3d3;border-radius:8px;width:100%;min-width:0;min-height:46px;padding:10px 12px;font-size:16px}.editor-form>.checkbox-label{flex-direction:row;align-items:center;gap:12px;min-height:44px}.dialog-actions{gap:10px;padding-top:6px;display:flex}.dialog-actions button{flex:1}.helper-text{color:#7a8772;margin:0;font-size:12px;font-weight:400;line-height:1.7}.mode-selection{flex-direction:column;gap:12px;display:flex}.mode-selection>p{color:#687a61;margin:0 0 8px;font-size:14px}.mode-option{text-align:left;color:#35563c;background:#f8faf4;border:1px solid #dce5d3;border-radius:12px;flex-direction:column;gap:9px;padding:20px;display:flex}.mode-option:hover{background:#f0f5e9;border-color:#7d9a70}.mode-option strong{font-size:16px}.mode-option span,.mode-option small{color:#76866b;font-size:12px;line-height:1.6}.mode-option small{color:#87957d}.back-button{justify-content:flex-start;align-self:flex-start;padding-left:0}.mode-tag{color:#5c7854;background:#eef3e8;border-radius:6px;align-self:flex-start;margin:-8px 0 0;padding:5px 9px;font-size:11px}.schedule-field{border:0;min-width:0;margin:0;padding:0}.schedule-field legend{margin-bottom:10px;font-size:13px;font-weight:600}.day-grid{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px;margin-bottom:10px;display:grid}.day-button{color:#65795d;background:#fafcf7;border:1px solid #dfe6d8;border-radius:8px;min-width:44px;min-height:44px;font-size:13px}.day-button.selected{color:#fff;background:#416847;border-color:#416847}@media (width>=768px){.workspace{padding-right:max(36px,env(safe-area-inset-right));padding-left:max(36px,env(safe-area-inset-left))}.content-block{padding:28px}}@media (width<=479px){.workspace{padding-right:max(14px,env(safe-area-inset-right));padding-left:max(14px,env(safe-area-inset-left))}.brand span{display:none}.today-header{padding-block:20px}.sections{gap:16px}.content-block{border-radius:16px;padding:20px 14px}.item-row{flex-wrap:wrap;gap:2px}.item-row .item-main{flex-basis:calc(100% - 48px)}.row-actions{margin-left:auto}.editor-dialog{padding:18px}.block-header .primary-button{padding-inline:10px;font-size:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}.routine-panel.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}.routine-actions{border-top:1px solid #edf0e7;justify-content:flex-end;gap:2px;margin-top:10px;padding-top:4px;display:flex}.pending-change{color:#60703d;overflow-wrap:anywhere;background:#f5f8e9;border:1px solid #e0e7c9;border-radius:8px;margin:12px 0 0;padding:10px 12px;font-size:12px;line-height:1.8}.rule-information{flex-direction:column;gap:10px;display:flex}.rule-information .mode-tag{margin:0}.archived-content{padding-bottom:8px}.archived-list{margin:8px 0 0;padding:0;list-style:none}.archived-list li{border-bottom:1px solid #edf0e7;align-items:center;gap:12px;padding:14px 0;display:flex}.archived-list li:last-child{border-bottom:0}.archived-list .item-title{margin:0 0 3px}.archived-list .secondary-button{flex-shrink:0}.history-content{flex-direction:column;gap:16px;display:flex}.history-content h3{margin:0}.history-date{flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.history-date input{color:#304632;width:100%;min-width:0;min-height:46px;font:inherit;background:#fbfcf8;border:1px solid #dbe3d3;border-radius:8px;padding:10px 12px;font-size:16px}.history-result .mode-tag{margin:0;display:inline-block}.history-details{margin:14px 0}.history-details>div{border-bottom:1px solid #edf0e7;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px 0;font-size:13px;line-height:1.8;display:grid}.history-details dt{color:#6b7b61}.history-details dd{color:#304632;overflow-wrap:anywhere;margin:0}@media (width<=479px){.archived-list li{flex-wrap:wrap}.archived-list .item-main{flex-basis:100%}.archived-list .secondary-button{margin-left:auto}.history-details>div{grid-template-columns:76px minmax(0,1fr);gap:8px}}.record-calendar{background:#fff;border:1px solid #dfe6d6;border-radius:12px;margin:0 0 20px;overflow:hidden}.record-calendar>summary{color:#5b7355;cursor:pointer;align-items:center;gap:10px;min-height:48px;padding:10px 16px;font-size:13px;font-weight:600;list-style:none;display:flex}.record-calendar>summary::-webkit-details-marker{display:none}.record-calendar[open] .details-arrow{transform:rotate(180deg)}.calendar-content{padding:0 12px 12px}.calendar-navigation{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.calendar-navigation h2{margin:0;font-size:16px}.calendar-navigation .icon-button{font-size:24px}.calendar-table{table-layout:fixed;border-collapse:collapse;width:100%}.calendar-table th{color:#7c8975;padding-block:10px;font-size:11px;font-weight:500}.calendar-table td{padding:2px}.calendar-day{color:#48623f;background:0 0;border:1px solid #0000;border-radius:9px;width:100%;min-width:0;min-height:44px;padding:5px 0;font-size:13px;position:relative}.calendar-day[aria-current=date]{border-color:#789b6a;font-weight:700}.calendar-day.selected{color:#fff;background:#416847;border-color:#416847}.calendar-day:disabled{opacity:.32}.today-dot{background:currentColor;border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:calc(50% - 2px)}.calendar-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;display:flex}.calendar-footer p{color:#7b8874;margin:0;font-size:10px;line-height:1.7}.calendar-footer .secondary-button{margin-left:auto}.readonly-notice{color:#56704e;background:#eef3e8;border:1px solid #d9e3d1;border-radius:10px;margin-bottom:16px;padding:12px 16px;font-size:12px;line-height:1.7}.readonly-notice p{margin:4px 0 0;font-size:11px}.archived-badge{color:#68735c;background:#e8ecdf;border-radius:5px;margin-left:6px;padding:2px 6px;font-size:10px;display:inline-block}.calendar-day{flex-direction:column;justify-content:flex-start;align-items:center;gap:4px;min-height:68px;padding:7px 1px;display:flex}.calendar-day-metrics{opacity:.86;flex-direction:column;align-items:center;max-width:100%;font-size:9px;line-height:1.3;display:flex}.calendar-day-metrics>span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.calendar-metrics-legend{color:#76866c;margin:8px 0 0;font-size:10px;line-height:1.7}.monthly-status{color:#74876a;margin:8px 0;padding:8px;font-size:12px;line-height:1.7}.monthly-summary{background:#f8faf4;border:1px solid #e1e8d7;border-radius:10px;margin-top:14px;padding:16px}.monthly-summary h3{margin:0 0 14px;font-size:14px}.monthly-task-summary,.monthly-period-summary{gap:12px;margin:0 0 14px;display:grid}.monthly-task-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-period-summary{border-top:1px solid #e3e9da;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:14px}.monthly-summary dt{color:#718268;font-size:11px;line-height:1.5}.monthly-summary dd{color:#405e37;overflow-wrap:anywhere;margin:5px 0 0;font-size:19px;font-weight:650;line-height:1.5}.monthly-summary dd span{margin-left:4px;font-size:10px;font-weight:400}.monthly-period-summary dd{font-size:16px}.monthly-summary .helper-text{font-size:10px}@media (width<=479px){.calendar-table td{padding:1px}.calendar-day{font-size:12px}.calendar-day-metrics{font-size:8px}.monthly-summary{padding:12px}.monthly-task-summary,.monthly-period-summary{gap:8px}.monthly-summary dd{font-size:17px}.monthly-period-summary dd{font-size:15px}}.compact-home .topbar{min-height:52px}.compact-home .brand{font-size:24px}.hamburger-button{color:#3c5d42;font-size:23px}.compact-home .today-header{gap:8px;padding-block:17px}.compact-home .today-header h1{margin:0;font-size:clamp(19px,3.5vw,25px);line-height:1.5}.compact-home .record-calendar{margin-bottom:14px}.compact-home .record-calendar>summary{min-height:44px;padding:8px 12px;font-size:12px}.home-calendar .calendar-day{justify-content:center;min-height:44px;padding:6px 0}.home-calendar .calendar-footer{margin-top:4px}.compact-home .sections{gap:14px}.compact-home .content-block{padding:16px}.compact-home .block-header{gap:8px;min-height:44px}.compact-home .block-header h2{margin:0;font-size:18px}.section-actions{align-items:center;gap:3px;display:flex}.add-button{color:#456c49;font-size:25px}.more-button{flex-shrink:0;align-self:center;font-size:23px}.compact-home .compact-row{border-bottom:1px solid #edf0e8;flex-wrap:nowrap;align-items:center;gap:4px;min-height:68px;padding:9px 0;display:flex}.compact-home .compact-row:last-child{border-bottom:0}.compact-home .compact-row .item-main{flex:1 1 0;min-width:0}.compact-home .compact-row .check-target{flex-shrink:0}.compact-home .item-title,.compact-home .routine-row h3{overflow-wrap:anywhere;font-size:14px;line-height:1.6}.compact-home .routine-row h3{margin:0;font-weight:600}.compact-home .compact-task-list{margin-top:4px}.compact-routine-list{margin-top:4px;display:block}.compact-home .routine-panel{min-height:72px}.compact-routine-meta{color:#738268;flex-wrap:wrap;align-items:center;gap:3px 8px;margin-top:3px;font-size:11px;line-height:1.6;display:flex}.compact-tag{color:#6c7b55;background:#f0f3e9;border-radius:4px;padding:1px 4px;font-size:10px}.compact-home .routine-tabs{gap:3px;margin-top:10px;padding:3px}.compact-home .routine-tabs button{font-size:12px}.compact-home .empty-state{padding:20px 6px;font-size:13px;line-height:1.7}.readonly-label{color:#75816d;margin:0 0 12px;font-size:11px}.view-title{margin:22px 0 18px;font-size:23px}.navigation-menu{flex-direction:column;gap:6px;display:flex}.menu-option{text-align:left;color:#38553c;width:100%;min-height:48px;font:inherit;background:#f6f8f1;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;font-size:14px;display:flex}.menu-option[aria-current=page]{background:#e7efdf;font-weight:650}.menu-option:hover:not(:disabled){background:#eaf1e1}.menu-record-title{overflow-wrap:anywhere;margin:0 0 16px;font-size:15px;font-weight:600;line-height:1.7}.navigation-menu .danger-button{color:#95645e}.notes-dialog-body{flex-direction:column;gap:16px;display:flex}.notes-dialog-body .notice,.notes-dialog-body .error-banner{margin:0}.notes-inline-form{flex-direction:column;gap:8px;display:flex}.notes-inline-form>label{color:#697d60;font-size:12px;font-weight:600}.notes-inline-form input{color:#304632;width:100%;min-width:0;min-height:46px;font:inherit;background:#fbfcf8;border:1px solid #dbe3d3;border-radius:8px;padding:10px 12px;font-size:16px}.notes-inline-form .dialog-actions{padding-top:2px}.delete-confirm{background:#fff7f3;border:1px solid #e8ccc3;border-radius:10px;padding:14px}.delete-confirm p{margin:0 0 10px;font-size:13px;line-height:1.7}.delete-button{background:#955e52}.notes-dialog-body .note-row{padding-block:12px}.notes-dialog-body .note-actions{gap:4px}.history-content .pending-change p{margin:6px 0 0}.statistics-view .monthly-summary{margin-top:12px}
