:root{--bg:#f7f8f4;--paper:#fff;--ink:#263b33;--muted:#748078;--green:#294e42;--sage:#eaf0e9;--line:#e3e8e0;--gold:#c9b17c;--serif:'Lora',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 var(--sans)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button{border:0;background:none}a{color:var(--green)}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #8c723b}input:focus,textarea:focus,select:focus{outline:2px solid #93aa92;outline-offset:1px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:39px 24px 24px;background:#f1f3ec;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font:21px var(--serif);white-space:nowrap}.brand-icon{font-size:43px;color:var(--green);line-height:1}.brand small{font:7px var(--sans);letter-spacing:1.2px;display:block;margin-top:7px;font-weight:600}.nav-label{font-size:9px;letter-spacing:1.8px;color:var(--muted);margin:52px 15px 16px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px 16px;border-radius:7px;color:#647368;margin-bottom:6px;font-weight:500}.nav-item.active{background:#e0e8dc;color:var(--green)}.nav-item:hover{background:#e8ede4}.sidebar-bottom{margin-top:auto;padding:30px 12px 0}.small-symbol{color:#84977c;font-size:25px}.sidebar-bottom p{font:18px/1.6 var(--serif);margin:12px 0}.sidebar-bottom>span{font-size:11px;color:var(--muted)}.device-note{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted);border-top:1px solid #dbe2d6;margin-top:36px;padding-top:20px}.device-note svg{width:14px;height:14px}.workspace{margin-left:244px}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 48px;display:flex;align-items:center;justify-content:space-between;font-size:12px;background:#fafbf8}.topbar #breadcrumb>span{padding:0 15px;color:#b6bfb3}.topbar-right{display:flex;align-items:center;gap:22px}.private-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.status-dot{width:6px;height:6px;border-radius:50%;background:#8fa586;display:inline-block}.avatar{width:33px;height:33px;border-radius:50%;background:#e7eade;font-size:11px;font-weight:600}main{max-width:1380px;margin:auto;padding:38px 48px 20px;min-height:calc(100vh - 152px)}h1,h2,h3,p{margin-top:0}h1{font:38px/1.2 var(--serif);letter-spacing:-1.1px;margin-bottom:11px}h2{font:22px/1.3 var(--serif);margin-bottom:12px}h3{font-size:14px}small,.muted{color:var(--muted)}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:600;color:var(--muted);margin-bottom:12px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-heading p{font-size:13px;color:var(--muted);margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:10px 16px;font-size:12px;font-weight:500;text-decoration:none;min-height:40px}.btn svg{width:16px;height:16px}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:#1c3d32}.btn.secondary{border:1px solid #dce3d7;background:#fff}.btn.secondary:hover{background:var(--sage)}.btn.subtle{padding:6px 0;min-height:30px;color:#55705b}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:25px;align-items:start}.hero{background:var(--green);color:#fff;min-height:173px;border-radius:10px;position:relative;overflow:hidden;padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.hero .eyebrow{color:#becdba;margin-bottom:9px}.hero h2{font-size:27px;letter-spacing:-.5px;margin-bottom:8px}.hero p{font-size:12px;color:#c3d1c5;margin-bottom:0;max-width:330px}.hero-symbol{position:absolute;right:-35px;top:-50px;width:250px;height:250px;border:1px solid #416255;border-radius:50%;pointer-events:none}.hero-symbol:after,.hero-symbol:before{content:'';position:absolute;inset:28px;border:1px solid #416255;border-radius:50%}.hero-symbol:after{inset:58px}.progress-ring{width:97px;height:97px;border-radius:50%;background:conic-gradient(#ded4ae calc(var(--progress)*1%),#526d5d 0);padding:4px;z-index:1;flex-shrink:0}.ring-inner{height:100%;border-radius:50%;background:var(--green);display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-inner strong{font:25px var(--serif)}.ring-inner small{font-size:9px;color:#c8d4c7;margin-top:3px}.week-strip{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 9px;margin:21px 0 25px}.week-day{display:flex;flex-direction:column;gap:4px;align-items:center;flex:1;border-radius:6px;padding:8px 4px;max-width:58px}.week-day span{font-size:9px;text-transform:uppercase;color:var(--muted)}.week-day strong{font-size:16px;font-weight:500}.week-day.active{background:var(--green);color:#fff}.week-day.active span{color:#cbd8c6}.week-day .day-dot{width:3px;height:3px;background:#afbc9a;border-radius:50%;margin-top:2px}.week-day:hover:not(.active){background:var(--sage)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:32px;border-radius:5px;flex-shrink:0}.icon-btn:hover{background:var(--sage)}.icon-btn svg{width:16px;height:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-head h2{font-size:23px;margin:0}.section-head .hint{color:var(--muted);font-size:10px}.segmented{display:flex;gap:4px;margin-bottom:22px;border-bottom:1px solid var(--line);overflow:auto}.segmented button{padding:0 15px 12px;font-size:12px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}.segmented button:first-child{padding-left:0}.segmented button.active{border-bottom-color:var(--green);color:var(--green);font-weight:600}.group-heading{display:flex;align-items:center;gap:9px;margin:22px 0 10px;font-weight:600;font-size:12px}.group-heading svg{width:17px;height:17px;color:#8b977a}.group-heading small{margin-left:auto;font-weight:400;font-size:10px}.norm-list{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.norm-row{display:flex;align-items:center;gap:13px;padding:16px 17px;border-bottom:1px solid #edf0e9;min-height:78px}.norm-row:last-child{border-bottom:0}.norm-row.done{background:#fcfdfa}.norm-row.skipped{background:#fafaf8}.norm-toggle{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border:1.5px solid #d6decf;border-radius:50%;padding:0;flex-shrink:0}.norm-toggle:hover{border-color:var(--green);background:var(--sage)}.norm-toggle svg{width:14px;height:14px;stroke-width:2}.done .norm-toggle{background:var(--green);border-color:var(--green);color:#fff}.skipped .norm-toggle{background:#f0eee6;border-color:#ddd9c9;color:#918264}.norm-title{display:block;font-size:13px;font-weight:500;line-height:1.4}.done .norm-title{color:#687c65}.skipped .norm-title{color:#8d9185}.norm-description{font-size:10px;color:var(--muted);margin-top:4px;display:block}.norm-text{flex:1;min-width:0}.norm-meta{font-size:10px;color:#869079;white-space:nowrap}.skip-btn{font-size:10px;color:#7c8577;padding:7px 4px;opacity:0}.norm-row:hover .skip-btn,.skip-btn:focus-visible,.skipped .skip-btn{opacity:1}.side-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;margin-bottom:20px}.side-card .card-label{display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:1px;font-weight:600}.side-card .card-label svg{width:15px;height:15px;color:#829173}.intention-card{background:#f2f0e5;border-color:#e9e5d6;position:relative}.intention-card h2{font:22px/1.5 var(--serif);margin:20px 0 15px;letter-spacing:-.3px}.intention-card p{font-size:11px;line-height:1.8;color:#7d826d;margin:0}.intention-card textarea{margin:0;padding:0;border:0;border-bottom:1px solid #d6d7c3;background:transparent;border-radius:0;resize:vertical;min-height:62px;font-size:12px;line-height:1.7;color:#566147}.intention-card label{font-size:10px;font-weight:400;color:#7d826d;margin:21px 0 3px}.auto-save{font-size:9px;color:#8c927e;margin-top:9px}.period-link{width:100%;padding:15px 0;border-bottom:1px solid #edf0e8;display:flex;align-items:center;gap:11px;text-align:left}.period-link:last-child{border:0;padding-bottom:0}.period-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#f1f4ed;border-radius:6px;color:#879778}.period-icon svg{width:17px;height:17px}.period-text{flex:1}.period-text strong{font-size:12px;font-weight:500;display:block}.period-text small{font-size:10px}.period-link>svg{width:14px;color:#a5b19e}.daily-reminder{padding:0 6px}.daily-reminder .eyebrow{font-size:8px;color:#8b937f;letter-spacing:1.6px;margin-bottom:10px}.daily-reminder p{font:14px/1.8 var(--serif);color:#7a846f}.plant-line{height:22px;margin-top:16px;color:#8d9b7e}.notice{background:#edf1e7;border:1px solid #e0e7d8;border-radius:7px;padding:16px 19px;font-size:12px;color:#65715d;margin-bottom:23px;line-height:1.8}.notice a{font-weight:500}.plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.plan-toolbar .segmented{margin-bottom:0;border:0}.plan-toolbar .segmented button{padding-bottom:6px}.plan-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:16px 19px;background:#fff}.plan-row:last-child{border-bottom:0}.plan-row.paused{background:#f6f7f3;color:#8b9386}.plan-row .norm-description{font-size:11px}.plan-row .btn{font-size:10px;padding:6px 10px;min-height:31px}.plan-list{border:1px solid var(--line);border-radius:9px;overflow:hidden}.badge{font-size:9px;border-radius:4px;padding:3px 7px;background:#eff3e9;color:#687c5e;display:inline-block}.badge.paused{background:#ebece5;color:#858b7c}.empty{padding:42px 20px;text-align:center;color:var(--muted);border:1px dashed #d7dfcf;border-radius:8px;background:#fcfdf9}.empty h2{color:var(--ink);font-size:21px;margin-bottom:7px}.empty p{font-size:12px;margin-bottom:0}.history-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}.calendar{padding:24px;background:#fff;border:1px solid var(--line);border-radius:10px}.calendar-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.calendar-top h2{font-size:20px;text-transform:capitalize;margin:0}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calendar-grid .dow{text-align:center;font-size:10px;color:var(--muted);margin-bottom:8px}.calendar-day{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#f7f9f3;border-radius:7px;font-size:12px;border:1px solid transparent}.calendar-day.has-record{background:#eaf0e1}.calendar-day.selected{border-color:#416345;background:#dfe8d8}.calendar-day.is-today{font-weight:700}.calendar-day small{font-size:8px}.history-detail{background:#fff;border:1px solid var(--line);padding:24px;border-radius:10px}.history-detail h2{font-size:22px}.history-detail .norm-row{padding:14px 0;min-height:60px}.history-detail .norm-toggle{width:19px;height:19px}.history-detail .norm-description{font-size:10px}.history-detail .empty{padding:27px 15px}.history-freq{font-size:10px;text-transform:uppercase;letter-spacing:1px;margin:22px 0 8px;color:var(--muted)}.legend{display:flex;gap:15px;color:var(--muted);font-size:10px;margin-top:20px}.legend .status-dot{background:#ceddc1;margin-right:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:27px}.settings-card h2{font-size:24px;margin-bottom:14px}.settings-card p{font-size:12px;line-height:1.9;color:#75806f}.settings-card ul{padding-left:17px;font-size:12px;color:var(--muted);line-height:2}.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.settings-card .source-link{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-top:1px solid var(--line);font-size:12px;text-decoration:none}.settings-card .source-link:hover{text-decoration:underline}.footer{max-width:1380px;margin:20px auto 0;padding:24px 48px;font-size:10px;color:#98a08e;display:flex;justify-content:space-between;gap:15px}.footer button{font-size:10px;color:#7c8872;padding:0}.save-warning{background:#fff1d7;padding:12px 48px;font-size:12px;color:#79571d}.skip-link{position:fixed;left:10px;top:-100px;z-index:50;padding:12px;background:white}.skip-link:focus{top:10px}dialog{border:1px solid #d9e2d1;border-radius:12px;width:min(530px,calc(100% - 28px));padding:28px;color:var(--ink);box-shadow:0 24px 100px #13271833;max-height:90dvh;overflow:auto}dialog::backdrop{background:#1b2b245c;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;margin-bottom:19px;align-items:start}.dialog-top h2{font-size:27px;margin:0}.dialog-top .icon-btn{font-size:24px}.dialog-top .eyebrow{font-size:8px;margin-bottom:8px}label{font-size:12px;font-weight:500;display:block;margin-bottom:16px}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #dce3d6;background:#fafbf8;border-radius:5px;color:var(--ink);margin-top:7px;min-width:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#98a08e}.optional{font-size:10px;color:#89957e;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-help{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}#confirm-dialog p{font-size:13px;line-height:1.9;color:var(--muted)}.toast{position:fixed;bottom:27px;left:calc(50% + 122px);transform:translateX(-50%) translateY(30px);background:#263f31;color:white;padding:12px 21px;font-size:12px;border-radius:7px;box-shadow:0 6px 25px #243a2522;z-index:40;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 30px)}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:1550px){.dashboard{grid-template-columns:minmax(0,1fr) 310px;gap:32px}.hero{min-height:184px}.side-card{padding:25px}.norm-row{padding:18px 22px}}
@media(max-width:1180px){.sidebar{width:214px;padding:34px 19px}.brand{font-size:18px}.brand small{font-size:6px}.brand-icon{font-size:35px}.workspace{margin-left:214px}main{padding:32px 29px}.topbar{padding:0 29px}.dashboard{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.hero{padding:24px 22px}.hero h2{font-size:25px}.hero p{font-size:11px}.progress-ring{width:83px;height:83px}.footer{padding:23px 29px}.side-card{padding:19px}.toast{left:calc(50% + 107px)}.norm-description{font-size:10px}.skip-btn{opacity:1}}
@media(max-width:960px){.dashboard{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.daily-reminder{grid-column:1/-1}.side-card{margin-bottom:0}.settings-grid,.history-layout{grid-template-columns:1fr}.page-heading h1{font-size:34px}.private-label{display:none}.norm-meta{font-size:10px}.hero p{font-size:12px}.hero{min-height:173px}}
@media(max-width:680px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:72px;padding:5px 12px calc(5px + env(safe-area-inset-bottom));background:#f7f8f2f5;border-top:1px solid #dde3d4;border-right:0;backdrop-filter:blur(10px)}.brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;align-items:center;justify-content:space-around}.nav-item{flex-direction:column;gap:3px;padding:6px 5px;font-size:10px;min-width:66px;margin:0;width:auto}.nav-item svg{width:19px;height:19px}.workspace{margin-left:0;margin-bottom:72px}.topbar{height:61px;padding:0 21px}.topbar #breadcrumb{font-size:10px}.topbar #breadcrumb>span{padding:0 9px}main{padding:27px 20px 5px;min-height:calc(100dvh - 206px)}.page-heading{gap:12px;margin-bottom:23px;align-items:flex-start}.page-heading h1{font-size:31px}.page-heading p{font-size:11px;line-height:1.8;max-width:230px}.page-heading .btn{padding:8px 10px;font-size:10px;min-height:36px;gap:5px;margin-top:24px}.eyebrow{font-size:8px;letter-spacing:1.5px}.hero{min-height:169px;padding:23px 20px;gap:16px}.hero h2{font-size:23px;max-width:190px}.hero p{font-size:10px;line-height:1.8;max-width:180px}.progress-ring{width:79px;height:79px}.ring-inner strong{font-size:22px}.ring-inner small{font-size:8px}.week-strip{margin:18px 0 23px;padding:8px 6px;gap:3px}.week-day{padding:8px 2px}.week-day strong{font-size:15px}.week-day span{font-size:8px}.week-strip>.icon-btn{width:22px}.section-head h2{font-size:22px}.section-head .hint{font-size:9px}.segmented{gap:0;margin-bottom:17px}.segmented button{padding:0 11px 11px;font-size:11px}.norm-row{padding:15px 13px;gap:11px;min-height:77px}.norm-title{font-size:12px}.norm-description{font-size:9px;line-height:1.6}.norm-meta{display:none}.skip-btn{font-size:9px;opacity:1;padding:7px 0;max-width:39px;line-height:1.5}.norm-toggle{width:23px;height:23px}.dashboard-aside{grid-template-columns:1fr;gap:18px;margin-top:8px}.intention-card{padding:23px}.intention-card h2{margin:17px 0 10px;font-size:23px}.daily-reminder{padding:3px 7px}.daily-reminder p{font-size:13px}.footer{padding:26px 21px 17px;flex-direction:column;align-items:flex-start;font-size:9px;gap:7px}.toast{left:50%;bottom:88px;width:max-content;max-width:calc(100% - 36px);text-align:center}.plan-row{padding:14px 13px;gap:9px;flex-wrap:wrap}.plan-row .norm-text{min-width:50%;flex-basis:60%}.plan-row .btn{padding:6px 7px;font-size:10px}.plan-toolbar{align-items:flex-start}.plan-toolbar .hint{display:none}.notice{font-size:11px;padding:14px 16px}.settings-card{padding:22px}.calendar,.history-detail{padding:20px}.calendar-grid{gap:5px}.calendar-top h2{font-size:18px}.save-warning{padding:12px 20px}.form-grid{gap:10px}dialog{padding:23px}.calendar-day small{font-size:7px}.settings-card .source-link{font-size:11px}.settings-actions .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
