:root{--bg:#f7f8fc;--surface:#fff;--ink:#252739;--muted:#777b8d;--line:#eceef4;--purple:#8270d9;--purple-soft:#eeebfb;--teal:#57a99c;--peach:#d69a79;--navy:#242841;--radius:24px;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a497e9;outline-offset:4px}button:disabled{opacity:.45;cursor:default}svg{display:block}button svg{pointer-events:none}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:750;letter-spacing:-1.3px;line-height:1.25}h2{font-size:18px;font-weight:750;letter-spacing:-.45px}h3{font-size:16px;font-weight:700}p{line-height:1.65}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:38px 22px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:35px;letter-spacing:-2px;padding:0 14px}.brand-mark{width:37px;height:37px;background:#8270d9;border-radius:13px;color:#fff;font-size:30px;line-height:29px;text-align:center;font-weight:500;transform:rotate(-9deg)}.brand-dot{color:var(--purple)}.sidebar-caption{font-size:10px;letter-spacing:1.4px;color:#9b9dae;font-weight:700;margin:17px 0 45px 14px}nav button{border:0;background:none;text-align:left}.nav-link{width:100%;display:flex;align-items:center;gap:14px;padding:15px 18px;border-radius:14px;font-size:14px;font-weight:650;color:var(--muted);margin-bottom:7px}.nav-link.active{background:var(--purple-soft);color:#7663c6}.nav-link:hover:not(.active){background:#f7f8fc}.nav-link svg{width:21px;height:21px}.sidebar-bottom{margin-top:auto;padding:25px 16px 36px}.sidebar-bottom h3{font-size:19px;line-height:1.5;letter-spacing:-.4px}.sidebar-bottom p{font-size:12px;color:var(--muted);margin:10px 0 18px}.small-orbit{width:38px;height:38px;border:1px solid #c7c0e8;border-radius:50%;position:relative;margin-bottom:19px}.small-orbit:before{content:'';position:absolute;width:22px;height:22px;border:1px solid #c7c0e8;border-radius:50%;left:18px;top:8px}.small-orbit:after{content:'';width:8px;height:8px;background:#b4a7e7;border:3px solid white;box-sizing:content-box;border-radius:50%;position:absolute;left:4px;top:0}.text-btn{padding:0;border:0;background:none;color:#8170c4;font-size:13px;font-weight:700}.text-btn span{margin-left:10px}.profile{border-top:1px solid var(--line);padding:20px 0 0;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;background:#f0ecf8;border-radius:50%;display:grid;place-items:center;color:#8b78b7;font-size:13px}.profile strong{font-size:12px;display:block}.profile div span{font-size:10px;display:block;color:var(--muted);margin-top:3px}.profile .icon-btn{margin-left:auto}.shell{margin-left:238px}.topbar{height:91px;padding:0 44px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fdfdff}.breadcrumb{font-size:13px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:18px}.demo-badge{font-size:11px;font-weight:650;color:#89829f;background:#f0edf7;border:1px solid #e7e1f4;padding:7px 11px;border-radius:7px;display:flex;gap:7px;align-items:center}.demo-badge i{width:5px;height:5px;background:#a193c9;border-radius:50%}.icon-btn{border:0;background:none;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border-radius:10px;color:#85889a}.icon-btn:hover{background:var(--purple-soft)}.icon-btn svg{width:19px;height:19px}main{max-width:1250px;margin:0 auto;padding:34px 44px 24px;min-height:calc(100vh - 150px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:700;color:#9597a6;margin-bottom:9px;text-transform:uppercase}.subtitle{font-size:13px;color:var(--muted);margin-top:9px}.date-button{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #e8e9f0;border-radius:11px;padding:10px 13px;font-size:12px;font-weight:650}.date-button input{border:0;background:none;color:var(--ink);font-size:12px;max-width:130px}.date-button svg{width:16px;height:16px}.week-strip{display:flex;gap:10px;padding-bottom:25px;align-items:center}.day{flex:1;max-width:85px;border:1px solid transparent;border-radius:16px;background:transparent;padding:11px 5px 9px;color:#9799a8;display:flex;flex-direction:column;align-items:center;gap:6px}.day span{font-size:10px;font-weight:600}.day strong{font-size:16px;font-weight:650}.day i{width:3px;height:3px;background:#ccc7e1;border-radius:50%;margin-top:2px}.day.active{background:#8270d9;color:#fff;box-shadow:0 5px 14px #8270d920}.day.active i{background:#d8d1f3}.day:hover:not(.active){background:#eeebf8}.week-nav{flex-shrink:0}.dashboard{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(265px,1fr);gap:22px}.stack{display:flex;flex-direction:column;gap:22px}.card{background:var(--surface);border:1px solid #eff0f6;border-radius:var(--radius);padding:24px;box-shadow:0 4px 15px #292b421f;box-shadow:0 4px 16px #292b4203}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.card-header h2{display:flex;align-items:center;gap:8px}.card-header .meta{font-size:11px;color:#989bab}.label{font-size:12px;color:var(--muted)}.wellbeing{position:relative;overflow:hidden;min-height:188px;background:linear-gradient(110deg,#f0edfb,#f8f6ff 80%);border:1px solid #e8e2f9;display:flex;align-items:center;justify-content:space-between;padding:25px 28px}.wellbeing .eyebrow{color:#8f83b2;font-size:10px;letter-spacing:1px;margin-bottom:9px}.wellbeing h2{font-size:25px;font-weight:700;letter-spacing:-1px}.wellbeing p{font-size:12px;color:#8c83a4;max-width:225px;margin-top:9px;line-height:1.7}.ring{position:relative;width:118px;height:118px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.ring svg{width:118px;height:118px;transform:rotate(-90deg)}.ring-text{position:absolute;text-align:center}.ring-text strong{font-size:32px;letter-spacing:-1px;font-weight:750;display:block}.ring-text span{font-size:9px;letter-spacing:.3px;color:#8f83ad}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:17px}.quick{border:1px solid var(--line);border-radius:17px;padding:16px 5px 12px;background:#fff;display:flex;align-items:center;flex-direction:column;gap:9px;font-size:11px;font-weight:650;transition:transform .15s,border-color .15s}.quick:hover{transform:translateY(-3px);border-color:#cfc5f1}.icon-circle{display:grid;place-items:center;border-radius:12px;width:38px;height:38px;flex-shrink:0}.icon-circle svg{width:20px;height:20px}.purple{background:#f1edfc;color:#9480d7}.peach{background:#fbefe6;color:#cd9977}.teal{background:#e9f4f0;color:#65a996}.blue{background:#ebf0fb;color:#7d9bcf}.pink{background:#faedf2;color:#cf8daa}.metric-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.metric{padding:20px;overflow:hidden;position:relative}.metric-title{display:flex;align-items:center;gap:7px;font-size:11px;color:#878b9a}.metric-title svg{width:14px;height:14px}.metric-number{font-size:26px;font-weight:700;letter-spacing:-1px;margin:12px 0 4px}.metric-number small{font-size:12px;font-weight:500;color:#999aab;letter-spacing:0}.metric-note{font-size:10px;color:#8a8d9f}.spark{height:32px;width:100%;margin-top:8px}.card-link{border:0;background:none;font-size:11px;font-weight:650;color:#9685cd;padding:4px 0;white-space:nowrap}.event-list{display:flex;flex-direction:column}.event{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f2f3f7}.event:first-child{padding-top:0}.event:last-child{border-bottom:0;padding-bottom:0}.event .icon-circle{width:35px;height:35px;border-radius:11px}.event .icon-circle svg{width:17px;height:17px}.event-content{flex:1;min-width:0}.event-title{font-size:12px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.event-sub{font-size:10px;color:#9a9dac;margin-top:3px;line-height:1.6}.event-time{font-size:10px;color:#9a9dac;align-self:flex-start;padding-top:4px;font-variant-numeric:tabular-nums}.empty{padding:24px 12px;color:var(--muted);font-size:13px;text-align:center;line-height:1.8}.small-label{font-size:10px;letter-spacing:1px;color:#a0a2b0;font-weight:650}.medication{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.medication:last-child{border:0;padding-bottom:0}.medication:first-of-type{padding-top:0}.med-name{font-size:12px;font-weight:650}.med-meta{font-size:10px;color:#9599aa;margin-top:5px}.med-content{flex:1}.check-btn{width:27px;height:27px;border-radius:50%;border:1.5px solid #e3e5ed;background:white;display:grid;place-items:center;color:#fff}.check-btn.done{background:#9dbfb0;border-color:#9dbfb0}.check-btn svg{width:13px;height:13px}.mini-note{font-size:10px;color:#9699aa;line-height:1.6;margin-top:20px}.lab-row{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:18px}.lab-value{font-size:25px;font-weight:700;letter-spacing:-.8px}.lab-value small{font-size:11px;letter-spacing:0;font-weight:500;color:#999bab}.pill{display:inline-flex;font-size:9px;line-height:1.5;padding:5px 8px;border-radius:6px;background:#f1eef9;color:#9688bd;white-space:nowrap}.lab-line{height:40px;width:100%}.insight{background:#eef5f3;border-color:#e3efeb;display:flex;gap:13px;align-items:flex-start}.insight .icon-circle{background:#e0eeea}.insight h3{font-size:12px;margin:3px 0 6px}.insight p{font-size:11px;color:#80938b;line-height:1.7}.page-footer{padding:20px 44px 26px;max-width:1250px;margin:auto;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#a7a9b6}.mobile-nav,.mobile-brand{display:none}.primary-btn{border:0;background:#8270d9;color:white;padding:13px 20px;border-radius:13px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-btn svg{width:17px;height:17px}.primary-btn:hover{background:#7561cf}.secondary-btn{border:1px solid #e7e5ef;background:#fff;padding:12px 17px;border-radius:12px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary-btn svg{width:16px;height:16px}.heading-actions{display:flex;gap:10px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 23px}.filter{border:1px solid #e7e8ef;background:#fff;color:#8a8e9e;border-radius:10px;font-size:11px;font-weight:600;padding:9px 13px;white-space:nowrap}.filter.active{background:var(--purple-soft);border-color:#ddd5f6;color:#8270bd}.diary-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:22px}.diary-events .event{padding:20px 0}.diary-events .event-title{font-size:14px}.diary-events .event-sub,.diary-events .event-time{font-size:12px}.diary-events .event .icon-circle{width:42px;height:42px}.section-heading{margin-bottom:20px}.day-summary{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}.day-summary:last-child{border:0}.day-summary span{color:var(--muted)}.analytics-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:22px;align-items:start}.chart-card{padding:25px 27px;background:var(--navy);border-color:var(--navy);color:white}.chart-card h2{font-size:17px;color:#f0edf9}.chart-card .subtitle{color:#acadc5;font-size:11px}.chart-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.chart-options select{border:1px solid #4b4e69;background:#343852;color:#e2dff3;border-radius:9px;padding:9px 28px 9px 11px;font-size:12px;max-width:100%;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23aaa5c5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.plot-wrap{position:relative;padding-bottom:8px}.plot-title{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;color:#c4c1dc;margin-bottom:6px}.plot-title strong{font-size:19px;color:#e9e5ff}.plot-title strong small{font-size:10px;font-weight:500;color:#b2adc8}.plot{width:100%;height:150px}.plot rect{cursor:pointer}.plot rect:hover,.plot rect.selected{opacity:1;filter:brightness(1.25)}.plot-separator{height:1px;background:#3b3f59;margin:8px 0 20px}.chart-foot{border-top:1px solid #3d405a;margin-top:8px;padding-top:15px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#a8a5c1}.chart-foot strong{color:#d8d3ee;font-weight:600}.insight-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.insight-stat{background:#f8f7fc;border-radius:13px;padding:14px 9px;text-align:center}.insight-stat strong{display:block;font-size:24px;font-weight:700;color:#8d7bc6}.insight-stat span{font-size:10px;color:#9690a7;line-height:1.7;display:block;margin-top:5px}.neutral-note{font-size:11px;line-height:1.8;color:#9295a5}.observed-days{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.observed-days span{font-size:10px;background:#f2effa;color:#8c7abf;padding:4px 7px;border-radius:6px}.health-tabs{margin-bottom:23px}.health-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.health-card{min-height:205px}.health-card .lab-value{margin:20px 0 6px}.health-card .lab-line{height:55px;margin-top:15px}.health-card .med-name{font-size:15px}.health-card .med-meta{font-size:12px;line-height:1.7}.report-cta{display:flex;align-items:center;gap:18px;margin-top:22px;background:#efedf9;border-color:#e5e0f5}.report-cta p{font-size:12px;color:#8c83a3;margin-top:5px}.report-cta .secondary-btn{margin-left:auto}.report-cta h3{font-size:15px}.report-cta .icon-circle{background:#e5dff7;width:46px;height:46px}.toast{position:fixed;bottom:32px;left:calc(50% + 119px);transform:translate(-50%,20px);background:#303348;color:white;font-size:13px;padding:13px 21px;border-radius:13px;box-shadow:0 7px 30px #25273920;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:26px;padding:0;width:min(520px,calc(100vw - 28px));max-height:90dvh;box-shadow:0 30px 100px #1d1d4530;color:var(--ink)}dialog::backdrop{background:#25273c55;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:26px 26px 0}.modal-head h2{font-size:21px}.modal-subtitle{font-size:12px;color:var(--muted);padding:8px 26px 0;line-height:1.7}.modal-body{padding:24px 26px 28px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:12px;font-weight:650}.field input:not([type=range]):not([type=checkbox]),.field textarea,.field select{width:100%;border:1px solid #e7e6ef;border-radius:12px;background:#fafafe;padding:12px 13px;font-size:14px;color:var(--ink);min-height:45px}.field textarea{resize:vertical;min-height:76px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.range-label{display:flex;justify-content:space-between;gap:15px;align-items:center}.range-label output{background:var(--purple-soft);color:#8a75c7;border-radius:8px;min-width:35px;padding:5px;text-align:center}.range-hints{display:flex;justify-content:space-between;font-size:10px;color:#9a9cad;font-weight:500}input[type=range]{accent-color:var(--purple);width:100%;margin:10px 0}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:20px}.choice{border:1px solid #eceaf3;border-radius:14px;background:#fff;padding:14px 5px;display:flex;align-items:center;flex-direction:column;gap:10px;font-size:11px}.choice .icon-circle{border-radius:50%;background:#f8f6fc;color:#8d7ac7}.choice.selected{border-color:#9f8cdd;background:#f6f3fd;color:#8c75ca}.type-selector{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:24px}.type-chip{font-size:11px;padding:8px 11px;background:#f5f4f9;border:1px solid transparent;border-radius:8px;color:#8a899b}.type-chip.active{background:#ece7fb;color:#7d68be;border-color:#dcd1f4}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:9px}.modal-actions .primary-btn{min-width:140px}.checkbox-field{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted);margin:12px 0 23px}.checkbox-field input{accent-color:var(--purple);width:17px;height:17px}.scale-choices{display:flex;gap:6px}.scale-choices label{flex:1;text-align:center;position:relative}.scale-choices input{position:absolute;opacity:0;width:1px;height:1px}.scale-choices span{display:flex;align-items:center;justify-content:center;border:1px solid #e9e5f1;background:#faf9fd;border-radius:10px;height:40px;font-size:14px}.scale-choices input:checked+span{background:#ece6fb;border-color:#b7a7e3;color:#7f69bc}.scale-choices input:focus-visible+span{outline:3px solid #a497e9}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.settings-row p{font-size:11px;color:var(--muted);margin-top:5px}.report-block{margin-bottom:22px}.report-block h3{margin-bottom:12px}.report-block p{font-size:12px;color:var(--muted)}.wide{width:100%}.badge-count{background:#f1eef9;font-size:11px;color:#9684c8;border-radius:7px;padding:4px 8px}.event-actions{display:flex;gap:4px}.event-actions .icon-btn{width:28px;height:28px}.event-actions .icon-btn svg{width:14px;height:14px}.upload-preview{max-width:100%;max-height:150px;object-fit:contain;border-radius:12px;margin-bottom:15px}.file-hint{font-size:10px;color:var(--muted);font-weight:400}.hidden{display:none!important}.button-list{display:flex;flex-direction:column;gap:10px}.about-text{font-size:13px;color:var(--muted);line-height:1.9}.status-tag{font-size:10px;color:#85a396;background:#eff6f3;padding:5px 8px;border-radius:6px}.compare-info{margin-top:18px}.compare-info p{font-size:12px;color:var(--muted);line-height:1.8}.report-preview{border:1px solid var(--line);padding:20px;border-radius:15px;margin:10px 0 20px}.print-only{display:none}
@media(min-width:1600px){main{padding-top:45px}.sidebar{width:260px;padding-top:40px}.shell{margin-left:260px}.topbar{padding:0 max(44px,calc((100vw - 260px - 1162px)/2))}.toast{left:calc(50% + 130px)}}
@media(max-width:1150px){.sidebar{width:200px;padding-left:14px;padding-right:14px}.shell{margin-left:200px}.sidebar-caption{font-size:8px}.topbar{padding:0 28px}main{padding:28px}.dashboard{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:16px}.card{padding:20px}.wellbeing{padding:23px;gap:12px}.wellbeing h2{font-size:23px}.ring,.ring svg{width:99px;height:99px}.stack{gap:16px}.quick-actions{gap:8px}.quick{font-size:10px}.analytics-grid{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:16px}.chart-card{padding:23px}.page-footer{padding:20px 28px}.toast{left:calc(50% + 100px)}}
@media(max-width:900px){.sidebar{width:80px;padding:26px 10px}.brand{padding:0;justify-content:center}.brand>span:last-child,.sidebar-caption,.sidebar-bottom,.profile{display:none}.brand-mark{width:35px;height:35px;font-size:28px}.sidebar nav{margin-top:40px}.nav-link{justify-content:center;padding:16px 8px}.nav-link span{display:none}.shell{margin-left:80px}.dashboard{grid-template-columns:minmax(0,1.5fr) minmax(225px,1fr)}.wellbeing{min-height:180px;padding:20px}.wellbeing p{font-size:11px}.wellbeing h2{font-size:22px}.ring,.ring svg{width:90px;height:90px}.ring-text strong{font-size:26px}.ring-text span{font-size:8px}.page-footer{font-size:9px}.toast{left:calc(50% + 40px)}.analytics-grid{grid-template-columns:1fr}.analytics-grid>.stack{display:grid;grid-template-columns:1fr 1fr}.diary-layout{grid-template-columns:1fr}.diary-layout>.stack{display:none}}
@media(max-width:700px){.sidebar{display:none}.shell{margin:0}.topbar{height:71px;background:var(--bg);border:0;padding:0 22px}.breadcrumb{display:none}.mobile-brand{display:block;font-weight:800;font-size:27px;letter-spacing:-1.4px}.mobile-brand span{color:var(--purple)}.demo-badge{font-size:9px;padding:6px 8px}.topbar-right{gap:9px}.topbar .icon-btn{width:28px}main{padding:12px 20px 24px;min-height:calc(100vh - 170px)}h1{font-size:28px;letter-spacing:-1px}.page-heading{margin-bottom:23px;align-items:flex-start}.eyebrow{font-size:9px;margin-bottom:8px}.subtitle{font-size:12px;margin-top:8px}.date-button{padding:8px;border-radius:10px;margin-top:3px}.date-button input{font-size:10px;width:106px}.date-button>svg{display:none}.dashboard{grid-template-columns:1fr;gap:18px}.stack{gap:18px}.card{padding:21px;border-radius:22px}.wellbeing{padding:25px;min-height:183px;gap:16px}.wellbeing h2{font-size:25px}.wellbeing p{font-size:12px}.ring,.ring svg{width:110px;height:110px}.ring-text strong{font-size:31px}.ring-text span{font-size:9px}.wellbeing .eyebrow{font-size:9px}.quick-actions{gap:9px;margin-top:14px}.quick{padding:15px 5px 12px;border-radius:16px;font-size:11px}.quick .icon-circle{width:36px;height:36px}.metric-pair{gap:14px}.metric{padding:19px}.metric-number{font-size:28px}.week-strip{gap:2px;padding-bottom:20px}.day{padding:10px 3px 8px;border-radius:14px}.day strong{font-size:16px}.day span{font-size:9px}.week-nav{display:none}.page-footer{padding:14px 22px 115px;flex-direction:column;gap:5px;font-size:9px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:9px 12px max(12px,env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(20px);border-top:1px solid #efedf5;z-index:30;justify-content:space-around}.mobile-nav .nav-link{display:flex;flex-direction:column;gap:5px;padding:9px 7px 6px;flex:1;margin:0;max-width:85px;border-radius:13px;font-size:9px}.mobile-nav .nav-link span{display:block}.mobile-nav .nav-link svg{width:21px;height:21px}.mobile-nav .nav-link.active{background:#f3effb}.toast{bottom:100px;left:50%;font-size:12px;white-space:normal;width:max-content;max-width:90vw;text-align:center}.heading-actions{gap:7px}.heading-actions .primary-btn{padding:10px 12px;font-size:11px}.heading-actions .secondary-btn{padding:9px;font-size:10px}.heading-actions .primary-btn svg{width:15px;height:15px}.filter-row{gap:6px;flex-wrap:nowrap;overflow:auto;margin-bottom:18px;padding:2px 0 7px}.filter{font-size:10px;padding:8px 11px}.diary-events .event-title{font-size:12px}.diary-events .event-sub,.diary-events .event-time{font-size:10px}.diary-events .event{gap:10px;padding:16px 0}.diary-events .event .icon-circle{width:36px;height:36px}.analytics-grid{gap:18px}.analytics-grid>.stack{display:flex}.chart-card{padding:21px 18px}.chart-card h2{font-size:17px}.plot{height:156px}.chart-foot{font-size:9px}.chart-options select{font-size:11px}.health-grid{grid-template-columns:1fr;gap:16px}.report-cta{flex-wrap:wrap;gap:12px}.report-cta .secondary-btn{margin-left:0;width:100%;margin-top:6px}.report-cta p{font-size:11px}.report-cta h3{font-size:14px}.health-card{min-height:180px}.event-actions{display:none}.diary-events .event-actions{display:flex}.modal-head{padding:23px 22px 0}.modal-head h2{font-size:20px}.modal-subtitle{padding-left:22px;padding-right:22px}.modal-body{padding:20px 22px 24px}.field-row{gap:12px}.field{font-size:12px}.field input:not([type=range]):not([type=checkbox]),.field textarea,.field select{font-size:16px}.choice-grid{gap:7px}.choice{font-size:10px}.modal-actions .primary-btn{min-width:120px}.card-header{margin-bottom:20px}dialog{max-height:88dvh;border-radius:24px}.chart-card .card-header{align-items:flex-start}.chart-card .card-header .pill{font-size:8px}.card-header h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white}.sidebar,.shell,.mobile-nav,.toast{display:none!important}body:has(dialog[open]) dialog[open]{display:block;position:static;max-height:none;width:100%;box-shadow:none;border-radius:0;margin:0}dialog::backdrop{display:none}.modal-actions,.modal-head .icon-btn{display:none!important}.modal-body{padding:15px}.print-only{display:block}dialog{overflow:visible}}

/* Readable controls and primary labels at every viewport size. */
.nav-link,.mobile-nav .nav-link,.quick,.card-link,.filter,.type-chip,.date-button input,.metric-title,.label,.event-title,.med-name,.choice,.field,.secondary-btn,.primary-btn,.plot-title,.chart-options select{font-size:14px}
.event-sub,.event-time,.metric-note,.med-meta,.mini-note,.neutral-note,.insight p,.subtitle,.day span,.range-hints,.file-hint{font-size:12px}
.event-sub,.event-time,.metric-note,.med-meta,.mini-note,.neutral-note,.label,.subtitle{color:#797d90}
.quick{gap:10px}.mobile-nav .nav-link{font-size:11px}.insight h3{font-size:14px}.field{font-size:14px}.chart-card .subtitle,.chart-card .label{color:#bcb7d1}.day-summary{font-size:14px}.topbar .demo-badge{font-size:11px}.metric-title{font-size:13px}.pill{font-size:11px}.metric-pair .metric-note{line-height:1.5}.settings-row p,.about-text{font-size:13px}.sidebar-caption{font-size:10px}
@media(max-width:700px){.date-button input{font-size:11px}.quick{font-size:13px}.card-link{font-size:13px}.filter,.type-chip{font-size:12px}.event-title,.diary-events .event-title{font-size:14px}.wellbeing h2{font-size:23px}.wellbeing p{font-size:12px}.metric-title{font-size:14px}.choice{font-size:12px}.chart-options select{font-size:13px}.health-card .med-meta{font-size:13px}.topbar .demo-badge{font-size:10px}.event-sub,.diary-events .event-sub{font-size:12px}.diary-events .event-time{font-size:11px}}
/* Mobile structure based on the selected Bevel home and journal screens. */
:root{--bg:#f6f6f9;--ink:#171717;--muted:#87878b;--line:#ededee;--purple:#202020;--purple-soft:#f1f1f2;--teal:#202020;--peach:#202020;--navy:#fff;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;color:var(--ink)}
body{background:var(--bg);-webkit-font-smoothing:antialiased}.sidebar{display:none}.shell{margin:0 auto;max-width:540px;padding:0 0 30px}.topbar{position:relative;display:flex;justify-content:space-between;height:66px;padding:10px 20px 0;background:transparent;border:0}.topbar .breadcrumb{display:block;position:absolute;left:50%;transform:translateX(-50%);color:#1d1d1f;font-size:15px;font-weight:600}.topbar>.icon-btn{background:white;border-radius:50%;color:#292929;width:34px;height:34px}.topbar-right{gap:7px;display:flex;background:#ffffffb0;border-radius:30px;padding:3px}.icon-btn{color:#292929}.topbar-right .icon-btn{width:30px;height:30px;border-radius:50%}#settings-button{background:#e7e7e8}.topbar-right .icon-btn svg{width:18px;height:18px}.save-line{padding:0 21px;text-align:right;height:21px}#sync-status{font-size:11px;border:0;color:#7a7a7d;background:none;padding:3px 0}#sync-status[data-status=pending]{color:#98662a}#connection-warning{font-size:12px;color:#805625;line-height:1.6;padding:0 20px}#connection-warning:empty{display:none}main{padding:18px 18px 0;margin:0;min-height:60vh;max-width:none}.page-heading{gap:12px;margin:0 0 18px;align-items:center}h1{font-size:25px;font-weight:650;letter-spacing:-.7px;line-height:1.2}h2{font-size:17px;font-weight:600;letter-spacing:-.25px}h3{font-weight:600}.eyebrow{display:none}.subtitle:empty{display:none}.subtitle{font-size:13px;color:#8b8b90;line-height:1.5;margin-top:7px}.date-button{border:0;background:transparent;padding:0;margin:0}.date-button>svg{display:none}.date-button input{font-size:11px;color:#7f7f84;width:105px;background:transparent}.week-strip{gap:3px;padding-bottom:17px}.week-nav{display:none}.day{max-width:none;border-radius:13px;padding:9px 3px;gap:7px}.day span{font-size:11px}.day strong{font-weight:500;font-size:15px}.day.active{background:#242424;color:white;box-shadow:none}.day:hover:not(.active){background:#e9e9ec}.day i{display:none}.summary-card{display:grid;grid-template-columns:repeat(3,1fr);padding:19px 10px 15px;gap:0}.card{border:0;background:#fff;border-radius:18px;box-shadow:0 3px 13px #16162306;padding:18px;margin:0}.summary-ring{display:flex;flex-direction:column;align-items:center;gap:8px;border-right:1px solid #eeeeef}.summary-ring:last-child{border:0}.summary-ring>span{font-size:12px;color:#707075}.summary-dial{position:relative;width:89px;height:89px}.summary-dial svg{width:100%;height:100%}.summary-dial>strong{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:24px;font-weight:600;letter-spacing:-.7px}.summary-dial small{font-size:10px;color:#a4a4a8;font-weight:400;letter-spacing:0;margin-top:3px}.section-row{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px;gap:10px}.section-row h2{font-size:16px;font-weight:600}.card-link{font-size:13px;color:#737378;font-weight:500;padding:6px 0}.bowel-card{display:grid;grid-template-columns:1.5fr 1fr;gap:16px}.bowel-card>div{display:flex;flex-direction:column;gap:8px}.bowel-card strong{font-size:17px;font-weight:500}.bowel-card .attention{color:#bb5045}.label{font-size:12px;color:#929296}.day-complete{grid-column:1/-1;display:flex;gap:8px;align-items:center;padding-top:15px;border-top:1px solid #efeff0;color:#79797e;font-size:12px;line-height:1.5}.day-complete input{accent-color:#222;width:17px;height:17px;margin:0;flex-shrink:0}.inline-actions{display:flex;gap:10px;margin-top:12px}.inline-actions .secondary-btn{flex:1;padding:11px 12px}.primary-btn{background:#202020;color:white;border-radius:30px;min-height:48px;font-size:15px;font-weight:500;padding:12px 20px}.primary-btn:hover{background:#383838}.secondary-btn{border:0;background:#fff;border-radius:14px;min-height:44px;font-size:14px;font-weight:500;color:#333}.secondary-btn:hover{background:#ededf0}.icon-circle,.purple,.pink,.teal,.peach,.blue{color:#555!important;background:#f5f5f6!important;border-radius:50%}.icon-circle{width:35px;height:35px}.metric-pair{gap:12px;margin:0}.metric{padding:18px;text-align:left;border:0}.metric-title{font-size:13px;color:#8c8c90}.metric-number{font-size:29px;font-weight:550;letter-spacing:-1px;margin:11px 0 4px}.metric-note{font-size:12px;color:#a0a0a4}.medication{padding:14px 0;gap:11px}.med-name{font-size:14px;font-weight:500}.med-meta{font-size:12px;color:#99999d}.check-btn{width:27px;height:27px;border-color:#ddd}.check-btn.done{background:#313131;border-color:#313131}.medication:first-of-type{padding-top:0}.medication:last-child{padding-bottom:0}.event{gap:10px;padding:14px 0}.event-title,.diary-events .event-title{font-size:14px;font-weight:500}.event-sub,.diary-events .event-sub{font-size:12px;color:#97979b;line-height:1.6}.event-time,.diary-events .event-time{font-size:11px;color:#97979b}.event-actions,.diary-events .event-actions{display:flex}.event-actions .icon-btn{width:32px;height:32px}.event .icon-circle{width:30px;height:30px}.event .icon-circle svg{width:16px;height:16px}.card-header{margin-bottom:18px}.card-header h2{font-size:17px}.card-header>svg{width:18px;height:18px}.badge-count,.pill{background:#f4f4f5;color:#8b8b90;font-size:11px;border-radius:6px}.empty{font-size:14px;line-height:1.8;padding:20px 8px;color:#a0a0a5}.empty .card-link{display:inline-block;margin-top:8px}.mini-note,.neutral-note{font-size:12px;color:#909095;line-height:1.8}.backup-nudge{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;border-radius:15px;background:#eeeef1;font-size:13px;line-height:1.6;padding:13px 16px;margin-top:18px;color:#6a6a70}.backup-nudge svg{width:17px;height:17px;flex-shrink:0}.page-footer{padding:26px 18px 100px;font-size:11px;color:#b1b1b5;display:block}.mobile-nav{display:flex!important;position:fixed;left:calc(50% - 170px);right:auto;bottom:max(18px,env(safe-area-inset-bottom));width:275px;padding:6px;justify-content:space-between;background:#ffffffd9;backdrop-filter:blur(24px);border-radius:40px;border:1px solid #ffffffc0;box-shadow:0 4px 24px #20202a0a;z-index:30}.mobile-nav .nav-link{display:flex;flex-direction:column;align-items:center;justify-content:center;width:61px;max-width:65px;flex:1;gap:4px;margin:0;padding:8px 3px;font-size:9px;font-weight:500;color:#777;background:none;border-radius:32px}.mobile-nav .nav-link.active{color:#151515;background:#eeeeef}.mobile-nav .nav-link span{display:block}.mobile-nav .nav-link svg{width:22px;height:22px}.floating-add{position:fixed;left:calc(50% + 115px);bottom:max(18px,env(safe-area-inset-bottom));border:1px solid #ffffffc0;border-radius:50%;background:#ffffffdd;backdrop-filter:blur(24px);box-shadow:0 4px 24px #20202a0a;width:56px;height:56px;font-size:34px;font-weight:300;z-index:30;display:flex;align-items:center;justify-content:center;color:#222}.toast{left:50%;bottom:100px;max-width:calc(100vw - 30px);border-radius:25px;font-size:13px;background:#292929}.diary-layout,.analytics-grid{display:block}.diary-layout>.stack{display:none}.diary-events .event{padding:15px 0}.filter-row{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0 0 4px;margin:6px 0 18px;gap:7px;scrollbar-width:none}.filter{border:0;color:#8a8a8f;background:transparent;border-radius:20px;font-weight:500;font-size:13px;padding:9px 13px}.filter.active{color:#222;background:#e9e9ec}.chart-card{background:#fff;border:0;color:#222;padding:20px;margin-bottom:20px}.chart-card h2{color:#222;font-size:17px}.chart-card .subtitle{color:#999}.chart-options{gap:8px}.chart-options select{background-color:#f4f4f6;border:0;color:#444;font-size:13px;padding:10px 29px 10px 12px}.plot-title{font-size:13px;color:#96969a}.plot-title strong{color:#222;font-size:23px}.plot-title strong small{color:#aaa}.plot{height:auto;min-height:145px}.plot-separator,.chart-foot{background:none;border-color:#eeeeef}.plot-separator{background:#ededee}.chart-foot,.chart-foot strong,.chart-card .label{color:#8c8c91}.chart-card .label input{background:#f5f5f6!important;color:#666!important;border-color:#eee!important}.analytics-grid>.stack{display:flex;gap:15px}.analytics-grid>.stack .card{margin-bottom:0}.insight{background:#f0f0f3;border:0;gap:12px}.insight h3{font-size:14px}.insight p{font-size:12px;color:#8b8b90}.insight-stats{gap:10px}.insight-stat{background:#f6f6f8}.insight-stat strong{color:#333}.insight-stat span{color:#96969c}.day-summary{font-size:13px}.observed-days span{background:#f2f2f4;color:#777}.health-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.health-card{min-height:190px;padding:17px}.health-card .card-header{align-items:flex-start;gap:7px}.health-card .card-header h2{font-size:14px;line-height:1.4}.health-card .card-header .icon-circle{display:none}.health-card .lab-value{font-size:27px;margin:20px 0 5px}.health-card .event-sub{font-size:11px}.health-card .mini-note{font-size:11px;line-height:1.5}.report-cta{margin-top:20px;background:#fff;border:0;display:block}.report-cta>.icon-circle{display:none}.report-cta .secondary-btn{width:100%;background:#f2f2f4;margin-top:14px}.report-cta p{color:#999}.heading-actions .primary-btn{font-size:13px;padding:10px 16px}.health-tabs{margin-top:5px}.mobile-brand{display:none}dialog{border-radius:28px;width:min(520px,100%);max-height:90dvh;padding:0;border:0;box-shadow:0 -4px 40px #11111110}dialog::backdrop{background:#00000025;backdrop-filter:blur(5px)}.modal-head{padding:23px 23px 0}.modal-head h2{font-size:18px;letter-spacing:-.4px;font-weight:600}.modal-head .icon-btn{background:#f4f4f5;border-radius:50%;width:30px;height:30px}.modal-subtitle{font-size:12px;line-height:1.6;color:#939398;padding:8px 23px 0}.modal-body{padding:23px}.type-selector{gap:5px}.type-chip{font-size:12px;color:#8a8a90;background:transparent;border-radius:20px;border:0;padding:9px 10px}.type-chip.active{background:#222;color:white}.choice-grid{grid-template-columns:repeat(3,1fr);gap:8px}.choice{border:0;border-radius:17px;background:#f7f7f9;font-size:12px;padding:17px 5px;color:#777}.choice .icon-circle{width:44px;height:44px;background:white!important;color:#555!important;box-shadow:0 3px 8px #00000007}.choice.selected{background:#ededf0;color:#171717;box-shadow:inset 0 0 0 1px #d7d7da}.choice.selected .icon-circle{color:#111!important}.field{font-size:14px;font-weight:500;margin-bottom:20px;gap:10px}.field input:not([type=range]):not([type=checkbox]),.field select,.field textarea{font-size:16px;background:#f7f7f9;border:0;border-radius:12px;min-height:47px}.range-label output{background:#f2f2f4;color:#333}.field input[type=range]{accent-color:#222}.checkbox-field input{accent-color:#222}.modal-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.modal-actions .primary-btn{flex:1}.modal-actions .secondary-btn{background:#f2f2f4}.settings-row{font-size:14px}.settings-row p{font-size:12px;color:#929298}.settings-row>svg{width:24px;height:24px}.range-hints,.file-hint{font-size:12px}.scale-choices input:checked+span{background:#222;color:white;border-color:#222}.about-text{font-size:14px}.report-preview{border-radius:15px}.observed-days{font-size:12px}
@media(max-width:700px){dialog{margin:auto 0 0;width:100%;max-width:100%;border-radius:30px 30px 0 0;max-height:91dvh}.modal-body{padding-bottom:max(26px,env(safe-area-inset-bottom))}.page-heading h1{font-size:24px}.page-heading .date-button input{width:88px;font-size:10px}.week-strip .day strong{font-size:15px}.summary-dial{width:86px;height:86px}.plot{min-height:145px}.mobile-nav{left:calc(50% - 170px)}.shell{padding-bottom:10px}.topbar{padding-left:20px;padding-right:20px}.event-actions .icon-btn{width:30px}.section-row{margin-top:25px}.report-cta p{font-size:12px}}
@media(min-width:701px){.shell{padding-top:15px}.topbar{padding-left:18px;padding-right:18px}.page-footer{padding-bottom:110px}.mobile-nav .nav-link{font-size:10px}.toast{left:50%}}
.med-day-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:15px;border-bottom:1px solid #efeff0}.med-day-actions .secondary-btn{background:#f3f3f5;font-size:13px;padding:10px 14px}.med-day-actions .card-link{font-size:12px}
.scatter{width:100%;height:auto;max-height:230px;margin:12px 0}.chart-options{flex-wrap:wrap}.chart-options select{max-width:100%}.chart-options select:last-child{flex-basis:100%}

.auth-page .topbar,.auth-page .save-line,.auth-page .mobile-nav,.auth-page .floating-add,.auth-page .page-footer{display:none}.auth-intro{padding:64px 10px 32px}.auth-intro h1{font-size:42px;line-height:1.12;letter-spacing:-1.5px;margin:16px 0}.auth-intro p{color:#78797d;line-height:1.7}.auth-card{padding:28px}.auth-card h2{margin:0 0 24px}.auth-card .field{margin-top:20px}.auth-links{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:25px}.auth-note{text-align:center;padding:15px}.recovery-code{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:#f4f4f4;border-radius:14px;user-select:all;font-size:16px}.auth-card a.primary-btn{display:block;text-align:center;text-decoration:none;margin-top:24px}
