:root{color-scheme:light;--bg:#f4f6f8;--panel:#ffffff;--panel2:#edf3f7;--line:#e1e8ee;--muted:#617487;--text:#263341;--accent:#2586c4;--cyan:#43c4dc;--nav:#17212b;--link:#176c9f;--purple:#7b62b2;--blue:#2586c4;--orange:#ae7242;--radius:16px;--font:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.25px;font-weight:550;line-height:1.2}h2{font-size:19px;font-weight:550;letter-spacing:-.4px}h3{font-size:15px;font-weight:550}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.65px;text-transform:uppercase;color:var(--muted);font-weight:600}.accent{color:var(--accent)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:20px}.hidden{display:none!important}
.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid #e7ebef;padding:30px 18px 20px;display:flex;flex-direction:column;background:#17212b}.brand{display:flex;gap:10px;align-items:center;padding:0 12px;margin-bottom:42px}.brand-symbol{background:var(--accent);color:#17212b;border-radius:12px;width:38px;height:38px;display:grid;place-items:center}.brand-symbol svg{width:27px;height:27px}.brand-word{font-size:33px;line-height:1;font-weight:650;letter-spacing:-1.8px}.project-label{padding:0 15px;margin-bottom:14px;font-size:10px;letter-spacing:1.6px;color:#87a1b5}.nav{display:flex;flex-direction:column;gap:7px}.nav-link{background:transparent;color:#adbdc9;display:flex;align-items:center;gap:13px;width:100%;padding:13px 15px;border-radius:10px;text-align:left;transition:background .2s,color .2s}.nav-link:hover{background:#213341;color:var(--text)}.nav-link.active{background:#233644;color:var(--accent)}.nav-link .nav-count{margin-left:auto;background:#2a4856;color:var(--accent);border-radius:5px;font-size:10px;padding:1px 6px}.sidebar-bottom{margin-top:auto}.local-note{padding:16px 13px;border:1px solid var(--line);border-radius:13px;margin:28px 0 20px}.local-note .row{font-size:12px;margin-bottom:7px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0}.local-note p{font-size:11px;color:var(--muted);line-height:1.6}.profile-link{display:flex;align-items:center;gap:10px;padding:10px;width:100%;background:transparent;text-align:left}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#e6f0f7;color:#356b91;font-size:11px;font-weight:600;border-radius:50%;flex-shrink:0}.avatar.large{width:54px;height:54px;font-size:17px}.profile-copy{flex:1}.profile-copy strong{display:block;font-size:12px;font-weight:500}.profile-copy span{font-size:10px;color:var(--muted)}
.workspace{min-width:0}.topbar{height:82px;border-bottom:1px solid #e7ebef;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 10px;color:#a1acb6}.breadcrumb b{font-weight:450;color:var(--text)}.top-actions{display:flex;align-items:center;gap:16px}.role-switch{display:flex;padding:4px;background:#edf2f6;border-radius:9px}.role-switch button{padding:7px 11px;border-radius:6px;font-size:11px;background:transparent;color:var(--muted)}.role-switch button.selected{background:#ffffff;color:#2078b2}.icon-btn{width:36px;height:36px;background:transparent;display:grid;place-items:center;border-radius:9px;position:relative}.icon-btn:hover{background:var(--panel2)}.notification-dot{position:absolute;top:6px;right:7px;width:5px;height:5px;border-radius:50%;background:var(--accent)}main{max-width:1600px;margin:auto;padding:32px 38px 28px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:27px}.page-heading p{color:var(--muted);font-size:13px;margin-top:8px}.date-pill{display:flex;align-items:center;gap:8px;font-size:12px;color:#596f81;background:#ffffff;border:1px solid #dfe7ed;padding:9px 12px;border-radius:9px;white-space:nowrap}.date-pill .icon{width:15px;height:15px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:9px;background:var(--accent);color:#ffffff;font-size:12px;font-weight:650;min-height:41px;white-space:nowrap;transition:filter .15s,transform .15s}.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.btn .icon{width:17px;height:17px}.btn.secondary{background:#eaf4fb;color:#206e9e;border:1px solid #cce3f1}.btn.ghost{background:transparent;color:#536c7f;border:1px solid var(--line)}.btn.danger{background:#fff0ee;color:#b94638}.text-btn{background:transparent;color:var(--accent);font-size:12px;padding:5px 0;display:inline-flex;align-items:center;gap:7px}.text-btn .icon{width:15px;height:15px}.hero{position:relative;background:#2586c4;border:1px solid #2586c4;border-radius:var(--radius);min-height:180px;overflow:hidden;display:flex;align-items:center;padding:25px 30px;margin-bottom:23px}.hero-copy{z-index:1;max-width:65%}.hero .eyebrow{color:#d7f4ff;margin-bottom:12px;display:flex;align-items:center;gap:7px;font-size:10px}.hero h2{font-size:25px;line-height:1.25;font-weight:500;letter-spacing:-.65px}.hero p{font-size:12px;color:#e0f1fb;margin:8px 0 18px}.hero-actions{display:flex;align-items:center;gap:15px}.hero-actions span{font-size:11px;color:#e0f1fb}.hero-art{position:absolute;width:360px;height:235px;right:-5px;top:-22px;opacity:.95}.hero-art text{font-family:var(--font)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.metric-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:18px 18px 14px;text-align:left;position:relative;overflow:hidden;transition:border-color .2s}.metric-card:hover{border-color:#b1d2e6}.metric-head{display:flex;align-items:center;gap:8px;color:#607587;font-size:12px;margin-bottom:16px}.metric-head .icon{width:16px;height:16px;color:var(--metric)}.metric-head .arrow{margin-left:auto;color:#839baa}.metric-value{font-size:29px;letter-spacing:-1px;line-height:1.1;font-weight:500}.metric-value small{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:3px}.metric-foot{font-size:10px;color:#6c7f8e;margin-top:15px;display:flex;align-items:center;gap:8px}.metric-foot b{color:var(--metric);font-weight:500}.sparkline{position:absolute;width:83px;height:35px;right:16px;top:66px;opacity:.9}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:23px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card-head p{font-size:11px;color:var(--muted);margin-top:5px}.card-head h2{font-size:17px}.segmented{display:flex;gap:3px;padding:3px;border:1px solid #dfe7ed;border-radius:8px}.segmented button{background:transparent;color:#6c8090;border-radius:5px;padding:5px 9px;font-size:10px}.segmented button.active{background:#e8f3fb;color:#176c9f}.chart-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:10px;overflow:auto}.chart-tabs button{border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:0 0 11px;color:#718392;font-size:11px;white-space:nowrap}.chart-tabs button.active{color:var(--accent);border-color:var(--accent)}.chart{width:100%;height:180px;display:block;overflow:visible}.chart text{font:10px var(--font);fill:#6d8293}.chart-footer{padding-top:10px;display:flex;justify-content:space-between;gap:10px;color:#6d8293;font-size:10px}.legend{display:flex;align-items:center;gap:6px}.legend i{width:6px;height:6px;background:var(--accent);border-radius:50%}.legend i.dashed{background:transparent;border:1px solid #92a7b9}.goal-summary{display:flex;gap:20px;align-items:center;margin-bottom:18px}.goal-node{flex:1}.goal-node .small{font-size:10px;color:var(--muted)}.goal-node strong{display:block;font-size:25px;font-weight:500;margin:5px 0}.goal-node strong small{font-size:11px;color:var(--muted);font-weight:400}.goal-node .label{font-size:10px;color:#6a8193}.goal-node.current strong{color:var(--accent)}.goal-line{height:1px;width:26px;position:relative;background:#d0e1ed;flex-shrink:0}.goal-line:after{content:'›';position:absolute;right:-2px;top:-13px;font-size:19px;color:#8caabc}.progress-track{height:5px;background:#e6f0f6;border-radius:10px;overflow:hidden}.progress-track span{height:100%;background:var(--accent);border-radius:10px;display:block;transition:width .3s}.goal-caption{display:flex;justify-content:space-between;font-size:10px;margin-top:9px;color:#647f90}.goal-caption b{color:#176c9f;font-weight:500}
.plan-progress{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.mini-ring{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) var(--angle),#e4edf3 0)}.mini-ring:before{content:'';width:23px;height:23px;background:var(--panel);border-radius:50%}.task-list{display:flex;flex-direction:column}.task-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #edf1f5}.task-row:first-child{border-top:0;padding-top:2px}.check-btn{background:transparent;flex-shrink:0;border:1px solid #b8cbd8;border-radius:7px;width:23px;height:23px;display:grid;place-items:center;color:#ffffff;padding:0}.check-btn.checked{background:var(--accent);border-color:var(--accent)}.check-btn .icon{width:16px;height:16px}.task-copy{flex:1;min-width:0}.task-copy strong{font-size:12px;font-weight:450;display:block}.task-copy span{font-size:10px;color:#6c8190;display:block;margin-top:3px}.task-row.done strong{color:#8196a5;text-decoration:line-through}.task-time{font-size:10px;color:#718798}.task-category{height:6px;width:6px;border-radius:50%;background:var(--purple);margin-left:4px}.observer-note{display:flex;align-items:flex-start;gap:11px;background:#f1f7fb;border-radius:12px;padding:14px;margin-top:15px}.observer-note .icon{color:#2586c4;width:16px;margin-top:2px}.observer-note strong{font-size:11px;font-weight:500}.observer-note p{font-size:11px;color:#657d8d;margin-top:5px;line-height:1.6}.footer{font-size:10px;color:#7b8d9c;display:flex;justify-content:space-between;gap:15px;padding-top:26px}.footer .row{gap:6px}.footer .icon{width:12px;height:12px}
.wide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.three-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.subheading{margin:26px 0 16px}.notice{background:#edf6fc;border:1px solid #d3e6f2;border-radius:12px;padding:14px 17px;color:#527388;font-size:12px;margin-bottom:20px}.notice .icon{width:17px;height:17px}.entry-row{display:flex;gap:18px;padding:18px 0;border-top:1px solid var(--line);align-items:center}.entry-date{min-width:64px}.entry-date strong{font-size:20px;font-weight:500;display:block}.entry-date span{font-size:10px;color:var(--muted)}.entry-details{flex:1}.entry-details p{font-size:12px}.entry-details span{font-size:10px;color:var(--muted)}.badge{font-size:10px;padding:4px 8px;border-radius:5px;background:#e9f4fb;color:#216f9e;display:inline-flex;align-items:center;gap:5px}.badge.purple{color:var(--purple);background:#f1edfa}.badge.gray{color:#607888;background:#eef2f5}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty .icon{width:35px;height:35px;margin-bottom:10px}.empty h3{color:#344e62;margin-bottom:7px}.timeline{display:flex;gap:0;margin-top:27px}.timeline-step{flex:1;border-top:1px solid #d4e1e9;padding:24px 15px 0 0;position:relative}.timeline-step:before{position:absolute;content:'';width:10px;height:10px;border:3px solid var(--panel);border-radius:50%;background:#b9cad7;top:-8px;left:0}.timeline-step.active:before{background:var(--accent)}.timeline-step h3{font-size:12px;margin:6px 0}.timeline-step p{font-size:11px;color:var(--muted)}.plan-item{display:flex;align-items:center;gap:16px;padding:18px 0;border-top:1px solid var(--line)}.category-icon{width:41px;height:41px;border-radius:12px;background:#e8f4fb;color:var(--accent);display:grid;place-items:center;flex-shrink:0}.category-icon.purple{background:#f0ebf8;color:var(--purple)}.category-icon.blue{background:#e8f4fb;color:var(--blue)}.plan-item .body{flex:1}.plan-item .body p{color:var(--muted);font-size:11px;margin-top:4px}.switch{position:relative;width:36px;height:21px;border-radius:14px;border:0;background:#c6d5e0;padding:3px;flex-shrink:0}.switch:before{content:'';display:block;width:15px;height:15px;background:#ffffff;border-radius:50%;transition:transform .2s}.switch.on{background:var(--accent)}.switch.on:before{transform:translateX(15px);background:#ffffff}.settings-row{padding:17px 0;display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid var(--line)}.settings-row p{font-size:11px;color:var(--muted);margin-top:4px;max-width:400px}.settings-row h3{font-size:13px}.profile-card{display:flex;align-items:center;gap:16px;padding:4px 0 25px}.profile-card h2{font-size:20px}.profile-card p{color:var(--muted);font-size:12px;margin-top:5px}.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.participant-card{padding:20px}.participant-card .row{margin-bottom:18px}.participant-card .row h3{font-size:13px}.participant-card .row p{font-size:10px;color:var(--muted)}.group-stats{display:flex;gap:20px;padding-top:15px;border-top:1px solid var(--line)}.group-stats strong{display:block;font-size:22px;font-weight:500}.group-stats span{color:var(--muted);font-size:10px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}.data-table th{font-size:10px;font-weight:400;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--line)}.data-table td{padding:17px 14px;border-bottom:1px solid #edf1f5}.data-table tr:last-child td{border:0}.data-table td:first-child{padding-left:0}.data-table .row{gap:10px}.table-card{margin-top:20px}.stats-number{font-size:35px;font-weight:500;margin:12px 0 5px;letter-spacing:-1px}.activity-feed{padding-top:3px}.feed-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.feed-row p{font-size:12px}.feed-row span{font-size:10px;color:var(--muted)}
dialog{padding:0;border:1px solid #d7e3ec;border-radius:22px;background:#ffffff;color:var(--text);width:min(580px,calc(100% - 28px));max-height:90vh;box-shadow:0 30px 100px #17212b26}dialog::backdrop{background:#17212b80;backdrop-filter:blur(6px)}.modal-header{padding:25px 26px 19px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.modal-header h2{font-size:23px;letter-spacing:-.5px}.modal-header p{font-size:11px;color:var(--muted);margin-top:7px}.modal-body{padding:24px 26px}.modal-footer{padding:17px 26px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.stepper{display:flex;gap:6px;margin-bottom:22px}.stepper span{height:3px;flex:1;background:#e2edf4;border-radius:8px}.stepper span.active{background:var(--accent)}.step-label{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#326f93;margin-bottom:6px}.diary-title{font-size:23px;font-weight:500;letter-spacing:-.6px;margin-bottom:8px}.field{display:block;margin:17px 0}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:8px}.field-label b{color:var(--accent);font-size:15px;font-weight:500}.field-hint{display:block;font-size:10px;color:var(--muted);margin-top:6px}.field input:not([type=range]),.field select,.field textarea,.form-input{width:100%;padding:11px 12px;color:var(--text);background:#f9fbfd;border:1px solid #cfdee9;border-radius:8px;min-height:41px}.field textarea{resize:vertical;min-height:88px}.field input[type=range]{width:100%;accent-color:var(--accent);margin:12px 0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.choices{display:flex;gap:7px;flex-wrap:wrap}.choice{padding:7px 12px;border:1px solid #d3e0e9;background:transparent;color:#527185;border-radius:7px;font-size:11px;min-height:34px}.choice.active{background:#e6f3fc;border-color:#78b7dc;color:#17658f}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.sleep-preview{background:#eaf5fc;color:#28688f;padding:13px;border-radius:10px;font-size:12px}.confirmation{padding:30px 0;text-align:center}.confirmation-icon{width:64px;height:64px;border-radius:50%;background:#e8f5fa;display:grid;place-items:center;color:var(--accent);margin:0 auto 18px}.confirmation-icon .icon{width:30px;height:30px}.confirmation h2{font-size:25px;margin-bottom:10px}.confirmation p{color:var(--muted);font-size:12px;max-width:360px;margin:auto}.history-item{border-left:1px solid #cee2ef;padding:0 0 22px 18px;font-size:12px}.history-item p{font-size:11px;color:var(--muted);margin-top:5px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);border:1px solid #274b61;border-radius:10px;background:#172f41;box-shadow:0 8px 25px #17212b24;padding:12px 20px;font-size:12px;color:#f0f8fc;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-brand{display:none}.onboarding-note{font-size:11px;color:var(--muted);line-height:1.65;margin:12px 0}.alert{background:#fff6ee;border:1px solid #efcfae;color:#8d542a;padding:12px;border-radius:9px;margin-bottom:15px;font-size:12px}.metric-detail-value{font-size:46px;color:var(--accent);letter-spacing:-1.5px}.break{word-break:break-word}.actions-wrap{display:flex;gap:10px;flex-wrap:wrap}.reaction-pad{width:100%;height:180px;border-radius:14px;background:#e9f3fa;color:var(--accent);font-size:18px;margin:20px 0}.reaction-pad.ready{background:var(--accent);color:#ffffff}.reaction-pad.waiting{background:#fff2e6;color:#94612f}
@media(min-width:1500px){main{padding-top:39px}.hero{min-height:200px}.card{padding:26px}.chart{height:207px}}
@media(max-width:1200px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:0 25px}main{padding:27px 25px}.metrics{gap:10px}.metric-card{padding:15px 13px}.metric-value{font-size:25px}.sparkline{width:60px;right:9px;top:64px}.metric-foot{font-size:9px;gap:4px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:17px}.card{padding:19px}.hero-art{right:-60px;opacity:.8}.top-actions{gap:10px}.three-grid{gap:12px}.chart-tabs{gap:12px}}
@media(max-width:1000px){.shell{grid-template-columns:170px minmax(0,1fr)}.nav-link{font-size:12px;padding:12px 10px;gap:10px}.brand{padding-left:8px}.project-label{font-size:9px;padding-left:10px}.breadcrumb{font-size:11px}.topbar{padding:0 22px}main{padding:25px 22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sparkline{width:90px;top:60px;right:15px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.stack:last-child{display:grid;grid-template-columns:1fr}.hero-art{right:-100px;opacity:.55}.hero-copy{max-width:80%}.three-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wide-grid{grid-template-columns:1fr}.page-heading .date-pill{font-size:10px}.page-heading h1{font-size:29px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;z-index:10;top:auto;bottom:0;left:0;width:100%;height:70px;padding:6px 9px max(6px,env(safe-area-inset-bottom));background:#fffffff5;border:0;border-top:1px solid #dfe9f0;backdrop-filter:blur(12px)}.sidebar .brand,.project-label,.sidebar-bottom{display:none}.nav{display:flex;flex-direction:row;gap:3px;justify-content:space-around;height:100%}.nav-link{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 3px;font-size:9px;width:20%;border-radius:9px}.nav-link .icon{width:20px;height:20px}.nav-link .nav-count{display:none}.nav-link[data-page=plan]{display:none}.topbar{height:67px;padding:0 18px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:25px;letter-spacing:-1px;font-weight:600}.mobile-brand .brand-symbol{height:29px;width:29px;border-radius:9px}.mobile-brand .brand-symbol svg{width:21px;height:21px}.role-switch button{padding:6px 8px;font-size:9px}.top-actions{gap:5px}main{padding:26px 17px 94px}.page-heading{align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:27px;letter-spacing:-1px}.page-heading p{font-size:11px;max-width:235px}.page-heading>.date-pill{padding:6px 8px;font-size:9px}.page-heading .btn{font-size:10px;padding:9px 11px;min-height:35px}.hero{padding:23px 21px;min-height:220px;margin-bottom:17px}.hero h2{font-size:25px}.hero p{max-width:230px;line-height:1.7}.hero-copy{max-width:95%}.hero-art{width:280px;right:-137px;top:20px;opacity:.3}.hero .eyebrow{font-size:9px}.hero-actions{gap:10px}.hero-actions span{font-size:10px}.metrics{gap:10px;margin-bottom:19px}.metric-card{border-radius:13px;padding:14px 12px}.metric-head{font-size:10px;gap:6px;margin-bottom:14px}.metric-head .icon{width:14px;height:14px}.metric-value{font-size:26px}.metric-value small{font-size:11px}.sparkline{width:53px;right:8px;top:62px;height:26px}.metric-foot{font-size:9px;margin-top:13px;gap:4px;flex-wrap:wrap}.dashboard-grid{gap:17px}.stack{gap:17px}.card{padding:19px 17px;border-radius:16px}.card-head h2{font-size:16px}.card-head p{font-size:10px}.chart-tabs{gap:16px}.chart-tabs button{font-size:10px}.chart-footer{font-size:9px}.goal-node strong{font-size:22px}.goal-summary{gap:11px}.goal-line{width:17px}.footer{font-size:9px;align-items:flex-start}.footer>span{max-width:125px;text-align:right}.three-grid{grid-template-columns:1fr}.entry-row{gap:12px}.entry-details p{font-size:11px}.entry-date{min-width:54px}.entry-row>.actions-wrap{flex-direction:column;gap:2px}.entry-row .text-btn{font-size:10px}.notice{font-size:11px}.timeline{flex-direction:column;margin-left:5px}.timeline-step{border-top:0;border-left:1px solid #d4e1e9;padding:0 0 25px 22px}.timeline-step:before{top:0;left:-8px}.settings-form{grid-template-columns:1fr}.modal-header{padding:21px 20px 17px}.modal-header h2{font-size:21px}.modal-body{padding:21px 20px}.modal-footer{padding:16px 20px}.field-grid{gap:0 12px}.choice{font-size:10px;padding:8px 9px}.profile-card h2{font-size:18px}#toast{bottom:84px;min-width:240px;text-align:center}.hero-actions .btn{font-size:11px}.subheading{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:380px){.hero-actions{flex-wrap:wrap}.hero-actions span{flex-basis:100%;margin-top:2px}.page-heading{gap:8px}.page-heading h1{font-size:25px}.date-pill{max-width:84px;white-space:normal}.card-head{flex-wrap:wrap}.chart-footer{flex-wrap:wrap}.metric-head{min-height:30px}.modal-footer{flex-wrap:wrap}.modal-footer #draft-status{order:3;flex-basis:100%;text-align:center}}

/* SIVAVIS identity: cool white surfaces, navy navigation, blue and cyan accents. */
body{font-size:14px;-webkit-font-smoothing:antialiased}
h1,h2,h3{text-wrap:balance}h1{font-size:34px;font-weight:650;letter-spacing:-1.2px}h2{font-weight:600}
.eyebrow,.project-label,.step-label{text-transform:none;letter-spacing:0;font-size:12px;font-weight:500}
.shell{grid-template-columns:224px minmax(0,1fr)}
.sidebar{border-right:0;padding-top:32px}
.brand{margin-bottom:39px;color:#fff}.brand-word{font-size:34px;font-weight:650}.brand-symbol{background:var(--cyan);color:var(--nav);border-radius:11px}
.project-label{color:#809cad;font-size:11px;padding-bottom:8px}
.nav-link{height:47px;font-size:13px;font-weight:500;position:relative;color:#a5b7c6;border-radius:9px}
.nav-link.active{color:#6fdded;background:#233644}.nav-link.active:before{content:'';position:absolute;left:-18px;top:14px;bottom:14px;width:3px;background:var(--cyan);border-radius:0 3px 3px 0}
.nav-link:hover{color:#e7f7ff}.nav-link .nav-count{color:#a3e8f2}
.local-note{background:#1d2b36;border:1px solid #2c3f4f;color:#cadce8;border-radius:12px}.local-note p{color:#99aebb}.sidebar .status-dot{background:var(--cyan)}
.sidebar .avatar{background:#2a4655;color:#b6e4f2}.profile-copy strong{color:#deebf3}.profile-copy span{color:#8da7b8}.profile-link{color:#92afc0}
.topbar{background:#fff;height:76px;border-color:#e4ebf0}.breadcrumb{font-size:12px}
.role-switch{border:1px solid #e0e8ee;background:#f1f5f8}.role-switch button{font-size:11px;min-height:31px}.role-switch button.selected{box-shadow:0 1px 4px #17212b12;color:#205e86;font-weight:600}
.top-actions>.icon-btn{color:#657f92}.notification-dot{background:var(--blue)}
main{padding-top:30px}.page-heading{margin-bottom:24px}.page-heading p{font-size:13px}.date-pill{background:#fff;border:1px solid #dfe7ed;color:#526b7f;border-radius:8px}
.hero{background:#2586c4;color:#fff;min-height:210px;padding:28px 32px;border:0;border-radius:18px;margin-bottom:24px}
.hero-copy{max-width:72%}.hero .eyebrow{color:#e2f5ff;text-transform:none;letter-spacing:0;font-size:12px;margin-bottom:13px;gap:9px}.hero .eyebrow .icon{width:17px;height:17px}
.hero h2{font-size:29px;line-height:1.25;letter-spacing:-.65px;font-weight:600;max-width:570px}.hero p{font-size:13px;color:#e4f4fe;margin:9px 0 21px;max-width:520px}.hero-actions span{color:#e7f5fc;font-size:11px}
.hero .btn{background:#fff;color:#17648f;border:1px solid #ffffff80;box-shadow:0 3px 8px #0c52731a;font-size:12px;min-height:43px}.hero .btn:hover{background:#edfaff;transform:none}
.hero-art{right:15px;top:-6px;width:350px;height:236px;opacity:1}
.btn{background:#2078b2;color:#fff;min-height:42px;border-radius:9px;font-size:12px}.btn:hover{transform:none;filter:brightness(1.06)}.btn.secondary{background:#eaf4fb;color:#216a98;border-color:#cfe4f1}.btn.ghost{background:#fff;color:#566f82;border-color:#d8e3ec}.btn.danger{background:#fff0ee;color:#b94638}
.text-btn,.accent{color:var(--link)}.text-btn{font-weight:550}.text-btn:hover{color:#125279}.text-btn:disabled{cursor:default}
.metrics{gap:16px;margin-bottom:24px}.metric-card{padding:18px 20px 17px;background:#fff;border:1px solid #e1e9ef;border-radius:13px;min-height:147px}.metric-card:hover{border-color:#80b9da;box-shadow:0 4px 16px #2586c40b}
.metric-head{font-size:12px;color:#586f81;gap:8px;margin-bottom:13px}.metric-head>.icon{width:15px;height:15px;box-sizing:content-box;padding:6px;border-radius:8px;background:color-mix(in srgb,var(--metric) 9%,white)}.metric-head .arrow .icon{width:15px;height:15px;color:#8fa4b4}
.metric-value{font-size:32px;font-weight:550;color:#243f52;font-variant-numeric:tabular-nums;letter-spacing:-1px}.metric-value small{font-size:13px;color:#6d8292}.metric-foot{font-size:11px;color:#6e8393;margin-top:13px}.metric-foot b{font-weight:550}.sparkline{top:75px;right:17px;width:84px;height:32px}
.card{border:1px solid #e0e8ee;border-radius:15px;background:#fff;padding:24px}.card-head h2{font-size:18px}.card-head p{font-size:12px;color:#697f90}
.segmented{background:#f6f9fb;border:1px solid #e0e9f0}.segmented button{min-height:28px;font-size:11px}.segmented button.active{background:#fff;color:#216f9e;box-shadow:0 1px 4px #17212b10;font-weight:600}
.chart-tabs{gap:23px}.chart-tabs button{font-size:12px;padding-bottom:12px}.chart-tabs button.active{color:#176c9f;border-color:var(--accent);font-weight:600}
.chart text{fill:#688193;font-size:10px}.chart-footer{color:#698193;font-size:11px}.legend i.dashed{border-color:#829cb0}.legend i{background:var(--accent)}
.goal-summary{gap:17px}.goal-node .small{font-size:10px;letter-spacing:.3px;color:#6f8798}.goal-node strong{color:#314f66;font-size:27px;font-variant-numeric:tabular-nums}.goal-node.current strong{color:#217bad}.goal-node .label{font-size:11px}.goal-caption{font-size:11px}.progress-track{height:5px;background:#e4eef5}.progress-track span{background:var(--cyan)}
.task-row{padding:15px 0;border-color:#edf2f6}.task-copy strong{font-size:13px;font-weight:500;color:#334f62}.task-copy span{font-size:11px;color:#6f8595}.task-time{font-size:11px;color:#6f8595}.task-row.done strong{color:#8199aa}.task-row.done .task-copy span{color:#879cab}.check-btn{width:25px;height:25px;border:1.5px solid #b8cbd8;border-radius:7px}.check-btn.checked{background:var(--accent);border-color:var(--accent);color:white}
.plan-progress{color:#677f91;font-size:12px}.mini-ring{background:conic-gradient(var(--cyan) var(--angle),#e6eff5 0)}.observer-note{background:#f0f7fc;border-radius:10px;padding:15px}.observer-note strong{font-size:12px;color:#426a86}.observer-note p{font-size:12px;color:#607d92}.observer-note>.icon{color:#2586c4}
.footer{font-size:10px;color:#748b9d}.notice{background:#eff7fc;border:1px solid #dcebf5;color:#4f728a}.notice.row{align-items:flex-start}
.badge{font-weight:500}.settings-row h3{font-size:14px}.settings-row p,.onboarding-note{font-size:12px;color:#677e90}.settings-row{padding:19px 0}.switch{width:38px;height:24px;padding:4px}.switch:before{width:16px;height:16px}.switch.on:before{transform:translateX(14px)}
.profile-card{padding-bottom:26px}.group-stats{font-variant-numeric:tabular-nums}.group-stats strong{color:#314f66}.participant-card .row h3{font-size:14px}.participant-card .row p{font-size:11px}.data-table th{font-size:11px;color:#718899}.data-table{font-size:13px}.data-table td{padding-top:18px;padding-bottom:18px}
.entry-details p{font-size:13px}.entry-details span{font-size:11px}.entry-date strong{color:#31556f}.feed-row p{font-size:13px}.feed-row span{font-size:11px}
.plan-item .body p{font-size:12px}.category-icon{background:#edf6fc;color:#2586c4}.category-icon.purple{background:#f0ecf8;color:#7b62b2}.category-icon.blue{background:#eaf5fb;color:#2586c4}
.timeline-step p{font-size:12px}.timeline-step h3{font-size:14px}.timeline-step .eyebrow{font-size:11px}.timeline-step.active:before{background:var(--accent)}
dialog{background:#fff;border:1px solid #dbe6ee;box-shadow:0 22px 80px #102c4430;overscroll-behavior:contain}dialog::backdrop{background:#132d4380;backdrop-filter:blur(5px)}.modal-header{border-color:#e4edf3}.modal-header p{font-size:12px}.modal-body{background:#fff}.modal-footer{background:#fafcfe;border-color:#e4edf3}
.field-label{font-size:13px;color:#395b74}.field-hint,.range-labels{font-size:11px;color:#6c8495}.field input:not([type=range]),.field select,.field textarea,.form-input{background:#fff;border-color:#c8dce9;color:#2d4e65;min-height:44px}.field input:focus,.field textarea:focus,.field select:focus,.form-input:focus{border-color:#2586c4}.field input::placeholder,.field textarea::placeholder{color:#8095a4}.field-label b{color:#216f9e}
.choice{background:#fff;border-color:#d5e3ed;color:#57788e;min-height:37px}.choice.active{background:#e9f5fd;border-color:#6dadd4;color:#176c9f}.choice:hover{border-color:#6dadd4}.sleep-preview{background:#eaf5fc;color:#28688f}.stepper span.active{background:var(--cyan)}.confirmation p{font-size:13px}.confirmation-icon{color:#2586c4;background:#e7f5fc}
.reaction-pad.ready{background:#2586c4;color:#fff}.reaction-pad.waiting{background:#fff2e6;color:#94612f}.reaction-pad{background:#e9f3fa;color:#216f9e}
.skip-link{position:fixed;top:8px;left:8px;z-index:100;padding:11px 17px;border-radius:8px;background:#fff;color:#176c9f;box-shadow:0 4px 15px #17212b30;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #43c4dc;outline-offset:3px}
@media(min-width:1500px){.hero{min-height:225px}.hero-art{right:50px;top:-2px}.hero h2{font-size:32px}.card{padding:25px}}
@media(max-width:1200px){.shell{grid-template-columns:200px minmax(0,1fr)}.hero-art{right:-75px;opacity:.8}.hero-copy{max-width:79%}.metric-card{padding:16px 14px}.metric-head{font-size:11px;gap:6px}.metric-foot{font-size:10px}.sparkline{width:62px;right:10px}.card{padding:21px}.chart-tabs{gap:17px}.goal-node strong{font-size:25px}.chart-footer{font-size:10px}}
@media(max-width:1000px){.shell{grid-template-columns:175px minmax(0,1fr)}.nav-link{font-size:12px}.nav-link.active:before{left:-12px}.brand-word{font-size:31px}.hero-copy{max-width:90%}.hero-art{right:-95px;opacity:.35}.hero h2{font-size:27px}.sparkline{width:90px}.metrics{gap:12px}.metric-card{min-height:143px}.topbar{padding:0 22px}}
@media(max-width:700px){.shell{display:block}.sidebar{padding:6px 9px max(6px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #dce7ef;box-shadow:0 -5px 25px #1e547309}.nav-link{height:54px;color:#718799;font-size:10px}.nav-link.active{color:#176c9f;background:#eaf4fb}.nav-link.active:before{display:none}.nav-link:hover{color:#176c9f}.topbar{height:68px;padding:0 18px}.mobile-brand{color:#203b50}.mobile-brand .brand-symbol{background:#43c4dc}.role-switch{padding:3px}.role-switch button{font-size:10px;padding:5px 8px;min-height:29px}.top-actions{gap:5px}.top-actions>.icon-btn{width:31px}
main{padding:25px 18px 96px}.page-heading{gap:10px;align-items:center}.page-heading h1{font-size:29px}.page-heading p{font-size:12px;line-height:1.6;max-width:235px}.page-heading>.date-pill{font-size:10px;max-width:93px;white-space:nowrap;padding:7px 9px}.page-heading .btn{min-height:40px}.hero{padding:25px 23px;min-height:239px;margin-bottom:18px;border-radius:16px}.hero h2{font-size:27px;line-height:1.3}.hero-copy{max-width:100%}.hero .eyebrow{font-size:11px;margin-bottom:15px}.hero p{font-size:12px;max-width:260px;margin-bottom:20px}.hero-art{right:-166px;top:9px;opacity:.3}.hero-actions{gap:10px}.hero-actions span{font-size:10px;max-width:90px}.hero .btn{font-size:11px;min-height:44px;padding:11px 13px}.metrics{gap:11px;margin-bottom:21px}.metric-card{padding:14px 13px;border-radius:12px;min-height:150px}.metric-head{font-size:10px;min-height:28px;gap:6px;line-height:1.35}.metric-head>.icon{width:14px;height:14px;padding:5px}.metric-head .arrow{display:none}.metric-value{font-size:29px}.metric-value small{font-size:11px}.metric-foot{font-size:10px;gap:3px;margin-top:14px}.sparkline{width:62px;top:73px;right:11px;height:30px}.card{padding:21px 18px;border-radius:13px}.card-head h2{font-size:17px}.card-head p{font-size:11px}.chart-tabs{gap:17px}.chart-tabs button{font-size:11px}.chart-footer{font-size:10px;flex-wrap:wrap}.goal-summary{gap:9px}.goal-node .small{font-size:9px}.goal-node strong{font-size:24px}.goal-node .label{font-size:10px;line-height:1.7;display:block}.goal-caption{font-size:10px}.goal-line{width:13px}.task-copy strong{font-size:13px}.task-copy span{font-size:11px}.task-time{font-size:10px}.observer-note p{font-size:11px}.settings-row h3{font-size:13px}.settings-row p{font-size:11px}.modal-header{padding:22px 20px 18px}.modal-header h2{font-size:23px}.modal-body{padding:23px 20px}.modal-footer{padding:16px 20px}.choice{min-height:38px}.switch{min-width:38px}.footer{font-size:9px}.entry-row{gap:11px}.entry-details p{font-size:11px}.entry-details span{font-size:10px}.notice{font-size:11px}.notice .icon{flex-shrink:0}}
@media(max-width:380px){.hero-actions{flex-wrap:wrap}.hero-actions span{flex-basis:100%;max-width:none}.hero h2{font-size:25px}.metric-card{padding:13px 10px}.metric-head{font-size:10px}.metric-head>.icon{padding:4px;width:13px;height:13px}.metric-foot{font-size:9px}.sparkline{width:44px;right:8px}.page-heading>.date-pill{max-width:82px;white-space:normal}.card-head{gap:10px}.role-switch button{font-size:9px;padding:5px 7px}.topbar{padding:0 14px}.mobile-brand{font-size:24px}.check-btn{flex-shrink:0}}

/* Contrast and touch refinements from the interface review. */
.hero{background:#2078b2}.hero p,.hero .eyebrow,.hero-actions span{color:#fff}
button.task-row{background:transparent;border-right:0;border-left:0;border-bottom:0;text-align:left;width:100%;border-radius:0;min-height:65px}button.task-row:hover .task-copy strong{color:#176c9f}button.task-row:first-child{padding-top:8px}
.switch:after{content:'';position:absolute;inset:-10px -5px}.switch:focus-visible{outline-offset:8px}
.data-table td,.metric-value,.stats-number{font-variant-numeric:tabular-nums}
@media(max-width:700px){.hero{background:#2078b2}.hero-art{opacity:.22}.nav-link{display:flex}.switch:after{inset:-11px -4px}}

.metric-foot b{color:color-mix(in srgb,var(--metric) 82%,#17212b)}
.metric-foot,.chart-footer,.goal-node .label,.goal-caption,.footer,.task-copy span,.task-time,.card-head p,.settings-row p,.onboarding-note,.field-hint,.range-labels{color:#617487}
.sidebar .local-note p,.sidebar .profile-copy span{color:#a9bfce}
.field-grid{align-items:end}
