:root{color:#25322f;font-synthesis:none;text-rendering:optimizelegibility;background:#f7f8f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:#31564e}:focus-visible{outline-offset:3px;outline:3px solid #d28b5a}.auth-shell{background:#f7f8f5;grid-template-columns:minmax(360px,46%) 1fr;min-height:100vh;display:grid}.auth-intro{isolation:isolate;color:#fafffc;background:#486b63;flex-direction:column;justify-content:space-between;min-height:100vh;padding:clamp(34px,5vw,76px);display:flex;position:relative;overflow:hidden}.auth-intro:before,.auth-intro:after{z-index:-1;content:"";background:#ffffff14;border-radius:999px;position:absolute}.auth-intro:before{width:440px;height:440px;top:-190px;right:-210px}.auth-intro:after{width:300px;height:300px;bottom:90px;left:-190px}.brand{align-items:center;gap:12px;width:fit-content;display:inline-flex}.brand-mark{background:#f1d9c9;border-radius:14px;flex:none;place-items:center;width:44px;height:44px;display:grid}.brand-mark svg{fill:#486b63;width:33px;height:33px}.brand-mark .brand-mark-line{fill:none;stroke:#f1d9c9;stroke-linecap:round;stroke-width:2.2px}.brand>span:last-child{gap:2px;display:grid}.brand strong{letter-spacing:.01em;font-family:Georgia,Times New Roman,serif;font-size:1.35rem;font-weight:600}.brand small{letter-spacing:.04em;opacity:.82;font-size:.7rem}.intro-copy{max-width:590px;margin:auto 0;padding:72px 0}.eyebrow{color:#9e5d35;letter-spacing:.11em;text-transform:uppercase;margin:0 0 12px;font-size:.75rem;font-weight:750}.auth-intro .eyebrow{color:#f3cdb5}.intro-copy h1{letter-spacing:-.04em;max-width:520px;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.7rem,5vw,5.2rem);font-weight:500;line-height:.99}.intro-copy>p:last-child{color:#e5eeea;max-width:520px;margin:28px 0 0;font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.75}.auth-intro blockquote{color:#f4f8f6;background:#1f3d3647;border-left:3px solid #f1c8ad;max-width:530px;margin:0;padding:18px 22px;font-family:Georgia,Times New Roman,serif;font-size:.96rem;line-height:1.6}.auth-content{flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:48px clamp(24px,7vw,112px) 24px;display:flex}.mobile-brand{display:none}.auth-content .brand{color:#31564e}.auth-card{width:min(100%,440px)}.auth-card header{margin-bottom:34px}.auth-card h2{color:#25322f;letter-spacing:-.03em;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2rem,4vw,2.65rem);font-weight:500}.auth-card header>p:last-child,.support-copy,.recovery-result p{color:#5f6d68;line-height:1.6}.auth-card header>p:last-child{margin:10px 0 0}.auth-card form{gap:10px;display:grid}.auth-card label{color:#34433f;margin-top:7px;font-size:.88rem;font-weight:700}.auth-card input{color:#25322f;background:#fff;border:1px solid #bdc9c4;border-radius:12px;width:100%;min-height:52px;padding:0 15px;transition:border-color .15s,box-shadow .15s}.auth-card input:hover{border-color:#7b928b}.auth-card input:focus{border-color:#486b63;outline:none;box-shadow:0 0 0 3px #486b632e}.auth-card input::placeholder{color:#87938f}.field-heading{justify-content:space-between;align-items:baseline;gap:16px;margin-top:7px;display:flex}.field-heading label{margin:0}.field-heading a,.text-link{text-underline-offset:3px;font-size:.83rem;font-weight:700}.password-field{position:relative}.password-field input{padding-right:88px}.show-password{color:#31564e;cursor:pointer;background:0 0;border:0;padding:7px;font-size:.78rem;font-weight:750;position:absolute;top:50%;right:11px;transform:translateY(-50%)}.primary-button,.secondary-button{cursor:pointer;border-radius:12px;justify-content:center;align-items:center;min-height:50px;font-weight:750;transition:background-color .15s,transform .15s;display:inline-flex}.primary-button{color:#fff;background:#31564e;border:1px solid #31564e;width:100%;margin-top:18px}.primary-button:hover:not(:disabled){background:#25473f;transform:translateY(-1px)}.primary-button:disabled,.secondary-button:disabled{cursor:wait;opacity:.65}.link-button{text-decoration:none}.centered-link{justify-self:center;margin-top:12px}.support-copy{text-align:center;margin:26px 0 0;font-size:.83rem}.form-message{border-radius:10px;margin-bottom:6px;padding:12px 14px;font-size:.86rem;line-height:1.45}.form-message-error{color:#743d35;background:#fbedeb;border:1px solid #d4a9a2}.recovery-result{text-align:center}.recovery-result>span{color:#fff;background:#486b63;border-radius:50%;place-items:center;width:52px;height:52px;margin:0 auto 18px;font-size:1.35rem;font-weight:800;display:grid}.recovery-result h3{margin:0;font-family:Georgia,Times New Roman,serif;font-size:1.7rem;font-weight:500}.privacy-note{color:#687570;text-align:center;width:min(100%,520px);margin:auto 0 0;padding-top:48px;font-size:.73rem;line-height:1.55}.page-loading,.configuration-error{text-align:center;place-content:center;min-height:100vh;padding:24px;display:grid}.page-loading{color:#486b63;gap:12px}.spinner{border:3px solid #dce5e1;border-top-color:#486b63;border-radius:50%;justify-self:center;width:34px;height:34px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.app-placeholder{background:#f7f8f5;min-height:100vh;padding:clamp(24px,5vw,72px)}.app-placeholder>header{justify-content:space-between;align-items:center;gap:24px;display:flex}.app-placeholder .brand{color:#31564e}.secondary-button{color:#31564e;background:0 0;border:1px solid #8ba098;min-height:42px;padding:0 20px}.app-placeholder section{text-align:center;width:min(100%,720px);margin:clamp(100px,20vh,220px) auto 0}.app-placeholder h1{letter-spacing:-.04em;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.2rem,6vw,4.5rem);font-weight:500}.app-placeholder section>p:last-child{color:#5f6d68;font-size:1.05rem;line-height:1.65}@media (width<=820px){.auth-shell{display:block}.auth-intro{display:none}.auth-content{justify-content:flex-start;min-height:100vh;padding:28px 22px 20px}.mobile-brand{width:min(100%,440px);margin-bottom:clamp(64px,12vh,118px);display:block}.auth-card header{margin-bottom:26px}.privacy-note{padding-top:56px}}@media (width<=420px){.field-heading{align-items:flex-start}.field-heading a{text-align:right;max-width:118px}}.portal-shell{background:#f4f6f2;grid-template-columns:250px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:#fcfdfb;border-right:1px solid #dfe5e0;flex-direction:column;height:100vh;padding:30px 22px 22px;display:flex;position:sticky;top:0}.sidebar .brand{color:#31564e;margin:0 8px 44px}.sidebar nav{gap:7px;display:grid}.sidebar nav button{color:#53615d;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:11px;align-items:center;gap:12px;min-height:46px;padding:0 14px;font-weight:700;display:flex}.sidebar nav button span{text-align:center;width:22px;font-size:1.1rem}.sidebar nav button:hover{background:#eff3ef}.sidebar nav button.active{color:#24483f;background:#e2ece7}.sidebar-user{border-top:1px solid #e2e7e3;grid-template-columns:42px 1fr 30px;align-items:center;gap:10px;margin-top:auto;padding-top:20px;display:grid}.sidebar-user>div:nth-child(2){gap:3px;min-width:0;display:grid}.sidebar-user strong{text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.sidebar-user small{color:#71807a;font-size:.72rem}.sidebar-user button{color:#53615d;cursor:pointer;background:0 0;border:0;font-size:1.2rem}.avatar{color:#31564e;background:#f1d9c9;border-radius:50%;place-items:center;width:42px;height:42px;font-size:.78rem;font-weight:800;display:grid}.portal-main{min-width:0;padding:54px clamp(28px,5vw,76px) 80px}.page-header{justify-content:space-between;align-items:flex-end;gap:24px;max-width:1200px;margin:0 auto 28px;display:flex}.page-header h1{letter-spacing:-.035em;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.2rem,4vw,3.4rem);font-weight:500}.page-header>div>p:last-child{color:#65736e;max-width:650px;margin:10px 0 0;line-height:1.6}.primary-action,.small-primary{color:#fff;cursor:pointer;background:#31564e;border:1px solid #31564e;border-radius:11px;font-weight:750}.primary-action{min-height:46px;padding:0 20px}.small-primary{min-height:38px;padding:0 14px}.primary-action:hover,.small-primary:hover{background:#24473f}.primary-action:disabled,.small-primary:disabled{opacity:.55;cursor:wait}.period-filter,.patient-picker{max-width:1200px;margin:0 auto 18px}.period-filter{background:#fff;border:1px solid #dbe2dd;border-radius:13px;align-items:center;gap:14px;padding:14px 18px;display:flex}.period-filter strong{color:#34433f;margin-right:auto}.period-filter label,.patient-picker{color:#65736e;align-items:center;gap:8px;font-size:.82rem;font-weight:700;display:flex}.period-filter input,.patient-picker select,.field-block input,.field-block select,.field-block textarea,.security-card input{color:#25322f;background:#fff;border:1px solid #bdc9c4;border-radius:9px}.period-filter input{padding:7px 9px}.patient-picker{background:#fff;border:1px solid #dbe2dd;border-radius:13px;width:100%;padding:14px 18px}.patient-picker select{min-width:240px;margin-left:auto;padding:9px 12px}.content-section,.tags-layout,.settings-card{max-width:1200px;margin:0 auto}.record-list{gap:16px;display:grid}.record-card{background:#fff;border:1px solid #dbe2dd;border-radius:15px;overflow:hidden;box-shadow:0 5px 18px #25322f0a}.record-card>header{border-bottom:1px solid #ebefec;justify-content:space-between;align-items:center;gap:14px;padding:17px 20px;display:flex}.record-card time{color:#34433f;font-weight:800}.version-badge,.auto-badge{border-radius:999px;margin-left:9px;padding:3px 8px;font-size:.68rem;font-weight:800;display:inline-flex}.version-badge{color:#31564e;background:#e5eee9}.auto-badge{color:#7c512f;background:#faeadf}.card-actions{gap:8px;display:flex}.card-actions button{color:#31564e;cursor:pointer;text-underline-offset:3px;background:0 0;border:0;padding:6px 9px;font-size:.76rem;font-weight:800;text-decoration:underline}.record-grid{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.record-grid>div{border-bottom:1px solid #edf0ee;border-right:1px solid #edf0ee;min-width:0;padding:18px 20px}.record-grid>div:nth-child(2n){border-right:0}.record-grid>div:last-child{border-bottom:0;grid-column:1/-1}.record-grid span{color:#7c8984;letter-spacing:.07em;text-transform:uppercase;font-size:.7rem;font-weight:800}.record-grid p{color:#34413d;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;line-height:1.6}.tag-editor{background:#f9faf8;border-top:1px solid #e4e9e5;padding:18px 20px}.tag-options{flex-wrap:wrap;gap:8px;margin:13px 0;display:flex}.tag-options label{cursor:pointer}.tag-options input{opacity:0;pointer-events:none;position:absolute}.tag-options span{background:#fff;border:1px solid #cbd5d0;border-radius:999px;padding:7px 11px;font-size:.76rem;font-weight:700;display:inline-flex}.tag-options input:checked+span{border-color:var(--tag-color);box-shadow:inset 0 0 0 1px var(--tag-color);background:color-mix(in srgb, var(--tag-color) 12%, white)}.empty-state{color:#687670;text-align:center;background:#fff9;border:1px dashed #c8d2cd;border-radius:15px;padding:58px 24px}.empty-state>span{color:#91a49c;font-size:2rem;display:block}.empty-state h3{color:#34433f;margin:9px 0 4px;font-family:Georgia,Times New Roman,serif;font-size:1.35rem}.empty-state p{max-width:460px;margin:0 auto;line-height:1.6}.inline-loading{color:#64736d;place-items:center;gap:8px;min-height:240px;display:grid}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#14231f8f;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.record-dialog,.history-dialog{background:#fff;border-radius:17px;width:min(100%,790px);max-height:calc(100vh - 48px);padding:28px;overflow:auto;box-shadow:0 30px 90px #0003}.history-dialog{width:min(100%,650px)}.modal-heading{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.modal-heading h2,.tag-form h2,.share-panel h2,.settings-card h2{margin:0;font-family:Georgia,Times New Roman,serif;font-size:1.7rem;font-weight:500}.icon-button{color:#53615c;cursor:pointer;background:#f0f3f0;border:0;border-radius:50%;place-items:center;width:38px;height:38px;font-size:1.5rem;display:grid}.record-form{gap:14px;display:grid}.field-block{color:#34433f;gap:7px;font-size:.83rem;font-weight:750;display:grid}.field-block input,.field-block select,.field-block textarea{resize:vertical;width:100%;padding:11px 13px}.field-block textarea:focus,.field-block input:focus,.field-block select:focus{border-color:#486b63;outline:none;box-shadow:0 0 0 3px #486b6324}.field-block small,.share-panel small{color:#74817c;font-size:.72rem;font-weight:500;line-height:1.5}.form-actions{justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.history-dialog>p{color:#66736e;line-height:1.6}.history-dialog ol{gap:12px;padding-left:22px;display:grid}.history-dialog li{background:#f4f6f3;border-radius:10px;padding:12px 14px}.history-dialog li p{color:#6a7772;margin:5px 0 0;font-size:.82rem}.toast-error{z-index:30;color:#743d35;background:#fbedeb;border:1px solid #d5aaa3;border-radius:11px;align-items:center;gap:16px;max-width:440px;padding:14px 16px;display:flex;position:fixed;top:20px;right:22px;box-shadow:0 10px 30px #0000001a}.toast-error button{color:inherit;cursor:pointer;background:0 0;border:0;font-size:1.2rem}.patient-heading{align-items:center;gap:13px;max-width:1200px;margin:25px auto 15px;display:flex}.patient-heading h2{margin:0;font-family:Georgia,Times New Roman,serif;font-weight:500}.patient-heading p{color:#71807a;margin:4px 0 0;font-size:.78rem}.report-card,.share-panel,.tag-form,.tag-catalog,.settings-card{background:#fff;border:1px solid #dbe2dd;border-radius:15px;padding:25px;box-shadow:0 5px 18px #25322f0a}.report-date{color:#6c7a75;margin:0 0 15px;font-size:.78rem}.metrics{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px;display:grid}.metrics div{background:#f1f5f2;border-radius:12px;padding:18px;display:grid}.metrics strong{color:#31564e;font-family:Georgia,Times New Roman,serif;font-size:2rem}.metrics span{color:#697771;font-size:.75rem;font-weight:750}.report-card blockquote{background:#fff7f1;border-left:3px solid #d28b5a;margin:0 0 24px;padding:16px 18px;font-family:Georgia,Times New Roman,serif;line-height:1.6}.chart{gap:11px;display:grid}.chart-row{grid-template-columns:minmax(110px,180px) 1fr 35px;align-items:center;gap:12px;font-size:.8rem;display:grid}.chart-row>div{background:#edf1ee;border-radius:999px;height:12px;overflow:hidden}.chart-row i{border-radius:inherit;height:100%;display:block}.chart-row strong{text-align:right}.share-panel{gap:13px;margin-top:18px;display:grid}.share-panel .primary-action{justify-self:start}.tags-layout{grid-template-columns:330px 1fr;gap:18px;display:grid}.tag-form{align-self:start;gap:14px;display:grid}.tag-catalog{gap:23px;display:grid}.tag-catalog section{gap:10px;display:grid}.tag-catalog h3{text-transform:uppercase;letter-spacing:.07em;margin:0;font-size:.82rem}.tag-catalog section>div{flex-wrap:wrap;gap:8px;display:flex}.catalog-tag{border:1px solid;border-radius:999px;align-items:center;gap:7px;padding:7px 10px;font-size:.75rem;font-weight:750;display:inline-flex}.catalog-tag i{border-radius:50%;width:8px;height:8px}.catalog-tag small{color:#78857f;font-size:.62rem}.settings-card{max-width:760px}.settings-card dl{gap:0;margin:20px 0;display:grid}.settings-card dl div{border-bottom:1px solid #e6ebe7;grid-template-columns:190px 1fr;gap:16px;padding:14px 0;display:grid}.settings-card dt{color:#74817c;font-size:.8rem;font-weight:750}.settings-card dd{margin:0}.status-ok{color:#2f6656;font-weight:800}.privacy-copy{color:#728079;margin:24px 0 0;font-size:.77rem;line-height:1.6}.security-gate{background:#edf3ef;place-items:center;min-height:100vh;padding:25px;display:grid}.security-card{text-align:center;background:#fff;border:1px solid #d3ddd7;border-radius:18px;width:min(100%,520px);padding:36px;box-shadow:0 20px 55px #25322f1a}.security-icon{color:#fff;background:#486b63;border-radius:50%;place-items:center;width:52px;height:52px;margin:0 auto 18px;font-weight:900;display:grid}.security-card h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:2.2rem;font-weight:500}.security-card>p:not(.eyebrow){color:#64716c;line-height:1.6}.security-card form{text-align:left;gap:9px;margin-top:20px;display:grid}.security-card input{text-align:center;letter-spacing:.25em;padding:13px;font-size:1.2rem}@media (width<=900px){.portal-shell{grid-template-columns:1fr}.sidebar{z-index:10;border-bottom:1px solid #dfe5e0;border-right:0;flex-direction:row;align-items:center;height:auto;padding:12px 16px;position:sticky}.sidebar .brand{margin:0 auto 0 0}.sidebar .brand small{display:none}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav button{min-width:46px;padding:0 12px}.sidebar nav button span,.sidebar-user{display:none}.portal-main{padding:32px 20px 70px}.tags-layout{grid-template-columns:1fr}}@media (width<=620px){.sidebar .brand strong{display:none}.sidebar nav button{font-size:.74rem}.page-header{flex-direction:column;align-items:stretch}.page-header .primary-action{align-self:stretch}.period-filter{flex-direction:column;align-items:stretch}.period-filter strong{margin:0}.period-filter label{justify-content:space-between}.patient-picker{flex-direction:column;align-items:stretch}.patient-picker select{min-width:0;margin:0}.record-grid{grid-template-columns:1fr}.record-grid>div,.record-grid>div:nth-child(2n){border-right:0;grid-column:auto}.record-card>header{flex-direction:column;align-items:flex-start}.metrics{grid-template-columns:1fr}.chart-row{grid-template-columns:100px 1fr 25px}.settings-card dl div{grid-template-columns:1fr;gap:4px}.modal-backdrop{padding:8px}.record-dialog,.history-dialog{max-height:calc(100vh - 16px);padding:20px}}
