:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#343047;background:#faf9fc;font-synthesis:none;--forest:#5c4e7a;--ink:#302c45;--muted:#928799;--line:#eae5ef;--white:#fff;--sage:#eee8f5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b19bc7;outline-offset:3px}button:disabled{cursor:wait;opacity:.65}header{height:78px;padding:0 max(calc((100vw - 1290px)/2),5vw);display:flex;align-items:center;justify-content:space-between;background:#fcfbfe;border-bottom:1px solid #ede8f2}.brand{text-decoration:none;color:#55486e;font-size:21px;font-weight:800;letter-spacing:-.05em;display:flex;align-items:center;gap:10px}.brand span{display:inline-grid;place-items:center;color:#fff;background:#665582;border-radius:12px;width:36px;height:36px;font-size:25px}.brand:after{content:'FAMILY CARE';font-size:9px;letter-spacing:.16em;font-weight:700;color:#a79dad;border-left:1px solid #e5ddec;padding-left:14px;margin-left:5px}#account{font-size:12px;color:#958a9b;display:flex;align-items:center;gap:16px}#account button{font-weight:650;color:#7e6d8c}main{max-width:1340px;margin:auto;padding:40px 48px 90px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#9c8da7;margin:0 0 11px}.eyebrow-dot{display:inline-block;width:7px;height:7px;background:#a995bc;border-radius:50%;margin-right:7px}.muted{color:#958a9b;line-height:1.6}.dashboard-intro{min-height:240px;background:#eee9f6;border:1px solid #e3dbee;border-radius:22px;position:relative;overflow:hidden;padding:38px 48px;display:flex;justify-content:space-between;align-items:center}.intro-copy{position:relative;z-index:1}.intro-copy h1,.hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(38px,4.5vw,58px);line-height:1.05;letter-spacing:-.05em;color:#4c3e66;margin:12px 0 14px}.intro-copy h1 em{font-weight:400;color:#9a8aaa}.intro-copy>p:last-child{font-size:14px;color:#80758c;margin:0;line-height:1.6}.intro-aside{height:100%;width:37%;position:absolute;right:0;top:0;display:grid;place-items:center;overflow:hidden}.intro-orbit{position:absolute;border:1px solid #d2c6e1;border-radius:50%;width:310px;height:310px;opacity:.8}.orbit-two{width:440px;height:440px;opacity:.55}.intro-cat{z-index:1;width:140px;height:140px;border-radius:50%;background:#e0d6ee;color:#9583ad;display:grid;place-items:center}.intro-cat svg{width:90px}.intro-sparkle{position:absolute;right:19%;top:28%;color:#b4a3c8;font-size:32px}.overview{padding-top:50px}.overview-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:27px}.overview-heading h2{font-family:Georgia,serif;font-size:34px;line-height:1.1;font-weight:400;letter-spacing:-.04em;color:#403552;margin:0}.overview-heading p:last-child{font-size:13px;color:#a196a4;margin:9px 0 0}.family-count{font-family:ui-sans-serif,system-ui,sans-serif;font-size:11px;font-weight:750;color:#827097;background:#eee9f6;border-radius:99px;padding:5px 8px;vertical-align:middle;margin-left:5px;letter-spacing:0}button.primary,.button{background:#685783;color:#fff;padding:13px 19px;border-radius:10px;font-size:13px;font-weight:700;box-shadow:0 5px 12px #59466e1b;transition:background .18s,transform .18s}button.primary:hover{background:#504168;transform:translateY(-1px)}.plus{font-size:19px;vertical-align:-1px;margin-right:4px;font-weight:400}.overview-stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #ebe7f0;border-radius:15px;overflow:hidden;box-shadow:0 4px 22px #58466d08}.filter{background:#fff;text-align:left;padding:17px 21px;color:#928799;font-size:12px;display:flex;align-items:center;gap:12px;min-width:0;position:relative}.filter+.filter:before{content:'';position:absolute;left:0;height:32px;border-left:1px solid #f0edf3}.filter.active{background:#f4f0f8;color:#68547f}.filter:hover{background:#faf8fc}.filter-number{font-size:23px;font-family:Georgia,serif;color:#695884;min-width:20px}.color-attention{color:#bd7764}.color-soon{color:#c19351}.color-missing{color:#a9a0ac}.legend{color:#aca2af;font-size:11px;margin:15px 1px 19px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cat-card{text-align:left;border:1px solid #eae5ef;border-radius:16px;background:#fff;padding:20px;color:#3f354d;display:flex;flex-direction:column;position:relative;min-width:0;box-shadow:0 4px 20px #58466d08;transition:transform .18s,box-shadow .18s,border-color .18s}.cat-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #4f3b6410;border-color:#d1c3df}.card-top{display:flex;justify-content:space-between;align-items:start}.avatar{width:68px;height:68px;display:grid;place-items:center;border-radius:19px;background:#eee8f5;color:#a18db8;overflow:hidden}.avatar svg{width:44px}.avatar img{width:100%;height:100%;object-fit:cover}.status-attention .avatar{background:#f8e8e2;color:#c49280}.status-soon .avatar{background:#f9eedc;color:#c1a478}.status-missing .avatar{background:#f1edf4;color:#b2aab7}.card-arrow{font-size:17px;color:#b0a4b7}.cat-heading{display:flex;flex-direction:column;gap:4px;margin:15px 0 13px;min-width:0}.cat-heading strong{font-size:20px;letter-spacing:-.035em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cat-heading>span{font-size:12px;color:#a69bad}.status-chip{display:inline-flex;align-items:center;align-self:flex-start;gap:7px;padding:7px 10px;border-radius:7px;font-size:11px;font-weight:700;background:#f1edf5;color:#877895}.status-attention .status-chip{background:#fbebe6;color:#a85e4b}.status-soon .status-chip{background:#fbf2e0;color:#a07a3e}.status-missing .status-chip{background:#f2eff4;color:#9a909f}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.card-divider{height:1px;background:#f0edf3;width:100%;margin:18px 0}.card-data{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.card-data>span{display:flex;flex-direction:column;gap:6px}.card-data small,.card-next>span{font-size:9px;letter-spacing:.08em;font-weight:750;color:#aea4b1}.card-data b{font-size:12px;font-weight:650;color:#756b7c}.card-next{margin-top:16px;padding:11px;background:#faf8f0;border-radius:9px;display:grid;grid-template-columns:1fr auto;gap:5px 10px;width:100%}.card-next>span{grid-column:1/-1}.card-next b{font-size:12px;color:#6d6248;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-next small{color:#9b8967;font-size:11px}.card-insight{display:flex;gap:8px;margin-top:17px;padding:12px;border-radius:9px;background:#f8f6fa;color:#8d8194;font-size:11px;line-height:1.5;width:100%}.card-insight>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sparkle{color:#a18bb5;font-size:15px;line-height:1}.card-footer{width:100%;padding-top:17px;margin-top:auto;display:flex;justify-content:space-between;color:#907ea4;font-size:11px;font-weight:700}.filter-empty{grid-column:1/-1;text-align:center;padding:45px;color:#9a909f;background:#fff;border:1px dashed #e7dfed;border-radius:16px;font-size:13px}.empty-family{display:flex;align-items:center;gap:20px;background:#fff;border:1px dashed #dfd4e9;border-radius:16px;padding:25px}.empty-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:18px;color:#a594b9;background:#f2ecf7;flex:none}.empty-icon svg{width:42px}.empty-family strong{font-size:15px}.empty-family p{margin:6px 0 0;color:#9a909f;font-size:12px}.empty-family .secondary{margin-left:auto}.hero{padding:12vh 0;max-width:680px}.hero h1{font-size:clamp(44px,6vw,72px)}.hero p:not(.eyebrow){color:#827789;line-height:1.7;margin-bottom:30px}.top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:36px}.top h1,.profile-heading h1{font-family:Georgia,serif;font-weight:400;color:#504063;font-size:44px;letter-spacing:-.04em;margin:5px 0}.top p,.profile-heading p{margin:0}.profile-header{display:flex;align-items:center;gap:24px;margin:24px 0 32px}.profile-heading{flex:1}.profile-heading .muted{font-size:13px}.profile-photo{width:112px;height:112px;border-radius:25px;background:#ede7f5;color:#a18bb5;position:relative;display:grid;place-items:center;flex:none}.profile-photo svg{width:70px}.profile-photo img{width:100%;height:100%;object-fit:cover;border-radius:25px}.profile-photo input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.photo-action{position:absolute;bottom:-11px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff;border:1px solid #e5dceb;border-radius:99px;padding:7px 11px;color:#79658b;font-size:10px;font-weight:750;box-shadow:0 4px 12px #47365718;cursor:pointer}.photo-action:hover{background:#faf7fc}.profile-photo:focus-within .photo-action{outline:3px solid #b19bc7;outline-offset:3px}.layout{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.panel{background:#fff;border:1px solid #ece7f0;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 4px 20px #58466d08}.panel h2{font-size:18px;letter-spacing:-.025em;margin:0 0 18px;color:#50415f}.panel-title{display:flex;justify-content:space-between;align-items:start}.new-cat-panel{margin-bottom:20px;max-width:600px}.icon-button{background:#f2edf6;color:#887b93;border-radius:9px;width:33px;height:33px;font-size:23px;line-height:1}.row{padding:16px 0;border-top:1px solid #f0edf3;line-height:1.5}.row:first-of-type{border-top:0}.row strong{display:block;font-size:14px;color:#594e63}.row p{margin:6px 0;color:#84788b;white-space:pre-wrap;font-size:13px}.row small{display:block;color:#a79bab;font-size:11px;margin-bottom:6px}.row button{margin:5px 5px 0 0}.row form{margin-top:16px}.notice{padding:14px 18px;background:#f6f3e7;color:#8e8058;border:1px solid #eee9d8;border-radius:11px;margin-bottom:20px;font-size:12px;line-height:1.5}.empty{color:#a397a8;font-size:13px;line-height:1.6}.link{background:none;color:#836d9b;padding:0;font-size:12px;font-weight:700}.link:hover{text-decoration:underline}button.secondary{background:#f0eaf6;color:#715a89;padding:10px 13px;border-radius:9px;font-size:12px;font-weight:700}button.secondary:hover{background:#e8def1}form{display:grid;gap:13px}form button.primary{justify-self:start}label{font-size:12px;color:#817689;font-weight:650;display:grid;gap:7px}input,select,textarea{width:100%;border:1px solid #e4dfea;background:#fff;border-radius:9px;padding:11px;color:#41374c}input::placeholder,textarea::placeholder{color:#bab0bf}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:auto;accent-color:#806596}.checkbox-label{display:flex;align-items:center;gap:8px}details summary{cursor:pointer;color:#806991;font-weight:700;font-size:12px;list-style:none}details summary::-webkit-details-marker{display:none}details form{margin:18px 0}.chart{padding:12px 0;border-bottom:1px solid #f0edf3}.chart svg{display:block;width:100%;height:100px}.chart small{color:#827789}.review textarea{min-height:180px}a{color:#806c95}#message:not(:empty){padding:13px 16px;background:#fae9e4;color:#9c5e4e;border:1px solid #f3dbd3;border-radius:10px;margin-bottom:16px;font-size:13px}#ai-health .row{margin-top:14px}.row a{font-size:13px;font-weight:650;overflow-wrap:anywhere}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){header{height:68px;padding:0 20px}.brand:after{display:none}#account span{display:none}main{padding:23px 18px 70px}.dashboard-intro{padding:30px 25px;min-height:200px}.intro-copy h1{font-size:39px}.intro-copy>p:last-child{max-width:225px;font-size:12px}.intro-aside{right:-50px;opacity:.48;width:48%}.intro-cat{width:105px;height:105px}.intro-cat svg{width:67px}.intro-orbit{width:220px;height:220px}.orbit-two{width:300px;height:300px}.overview{padding-top:36px}.overview-heading{align-items:start;flex-direction:column}.overview-heading h2{font-size:30px}.overview-stats{grid-template-columns:repeat(2,1fr)}.filter{padding:13px 15px}.filter:nth-child(3),.filter:nth-child(4){border-top:1px solid #f0edf3}.filter:nth-child(3):before{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cat-card{padding:15px}.avatar{width:54px;height:54px;border-radius:16px}.avatar svg{width:37px}.cat-heading strong{font-size:17px}.card-data{grid-template-columns:1fr;gap:10px}.card-next{grid-template-columns:1fr}.card-next small{grid-column:1}.card-insight{padding:9px;font-size:10px}.empty-family{align-items:start;flex-wrap:wrap}.empty-family .secondary{margin-left:0}.layout{grid-template-columns:1fr}.profile-header{gap:16px;flex-wrap:wrap}.profile-heading h1{font-size:36px}.profile-photo{width:88px;height:88px;border-radius:20px}.profile-photo img{border-radius:20px}.profile-photo svg{width:57px}.profile-header>button{margin-left:auto}.top{align-items:start;flex-direction:column}}@media(max-width:370px){.grid{grid-template-columns:1fr}.card-data{grid-template-columns:1fr 1fr}.intro-aside{opacity:.25}}
.card-insight .insight-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.insight-label{font-size:9px;letter-spacing:.06em;color:#a491b2;font-weight:800}.insight-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-insight > span.insight-copy{display:flex;-webkit-line-clamp:unset;overflow:hidden}
/* Photos must not enlarge grid tracks when the original is tall or wide. */
.avatar{position:relative}
.avatar img,.profile-photo img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:cover}
.photo-action{z-index:1}
.overview-actions,.profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.card-medications{font-size:11px;color:#78618f;margin-top:11px;font-weight:700}.medication-row{border-top:1px solid #f0edf3;padding:17px 0}.medication-header>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.medication-header strong{font-size:14px;color:#50415f}.medication-status{background:#f0eaf6;color:#715a89;font-size:10px;font-weight:750;padding:5px 8px;border-radius:99px}.medication-status.is-completed{background:#f1f0f2;color:#938b98}.medication-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;color:#62566c;font-size:12px;line-height:1.5}.medication-details span{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.medication-details small{font-size:9px;letter-spacing:.08em;color:#a79bab;font-weight:750}.med-period,.med-instructions{font-size:12px;color:#817689;line-height:1.6;margin:10px 0 0;white-space:pre-wrap}.med-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:13px}.med-empty{margin:13px 0 0}.med-help{font-size:11px;color:#93879c;line-height:1.5;margin:0}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.administrations{margin-top:15px}.administration{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0edf3;color:#83778b;font-size:11px}.administration.voided{opacity:.6;text-decoration:line-through}.medication-row form{margin-top:16px}.chat-panel{position:fixed;z-index:100;right:24px;bottom:24px;width:min(430px,calc(100vw - 32px));height:min(680px,calc(100dvh - 48px));background:#fff;border:1px solid #e5ddec;border-radius:20px;box-shadow:0 18px 70px #46345430;display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:19px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0edf3}.chat-header>div{display:flex;align-items:center;gap:11px}.chat-header strong,.chat-header small{display:block}.chat-header strong{font-size:14px;color:#4c3e66}.chat-header small{font-size:11px;color:#a196a4;margin-top:3px}.chat-symbol,.chat-welcome>span{display:grid;place-items:center;background:#eee8f5;color:#806991;border-radius:12px;width:40px;height:40px;font-size:20px}.chat-context{padding:11px 20px;background:#faf8fc;color:#928799;font-size:11px;line-height:1.5}.chat-messages{padding:18px;overflow-y:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:14px}.chat-welcome{margin:auto;text-align:center;color:#8b7f92;max-width:280px;font-size:12px;line-height:1.6}.chat-welcome>span{margin:0 auto 12px}.chat-welcome strong{display:block;font-size:15px;color:#50415f}.chat-bubble{border-radius:13px;padding:12px 14px;max-width:92%;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.chat-bubble span{font-size:9px;font-weight:800;letter-spacing:.08em}.chat-bubble p{white-space:pre-wrap;margin:7px 0 0}.chat-user{align-self:flex-end;background:#eee8f5;color:#594a67}.chat-ai{align-self:flex-start;background:#f7f5f8;color:#64576d}.chat-form{padding:14px 18px;border-top:1px solid #eee9f1;gap:8px}.chat-form textarea{min-height:72px;max-height:150px;font-size:13px}.chat-form>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-hint{font-size:10px;color:#a79bab}.chat-form button.primary{padding:10px 16px}.chat-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:700px){.overview-actions,.profile-actions{width:100%}.profile-actions{margin-top:8px}.chat-panel{right:0;bottom:0;width:100%;height:min(720px,95dvh);border-radius:20px 20px 0 0}.form-pair{grid-template-columns:1fr}}
.med-last{margin:12px 0 0;padding:9px 11px;border-radius:8px;background:#f7f3fa;color:#81708d;font-size:11px;line-height:1.5}.med-last strong{color:#655172}
/* Cat record navigation */
.cat-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start;border-top:1px solid #ebe6f0;padding-top:30px}.cat-sidebar{position:sticky;top:24px;display:flex;flex-direction:column;gap:4px}.cat-sidebar-label{font-size:10px;font-weight:800;letter-spacing:.14em;color:#a598ad;margin:0 0 12px 13px}.cat-nav-item{display:flex;align-items:center;gap:11px;width:100%;background:transparent;color:#887b93;text-align:left;padding:12px 13px;border-radius:10px;font-size:12px;font-weight:650;transition:background .15s,color .15s}.cat-nav-item:hover{background:#f4f0f8;color:#665278}.cat-nav-item.active{background:#eee8f5;color:#634f79;font-weight:750}.cat-nav-icon{font-size:16px;width:19px;display:inline-grid;place-items:center;color:#a491b2}.cat-nav-item.active .cat-nav-icon{color:#806596}.cat-main{min-width:0}.cat-main [data-cat-view][hidden]{display:none}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:0 0 22px}.section-heading h2{font-family:Georgia,serif;font-weight:400;color:#4c3e66;font-size:32px;letter-spacing:-.04em;margin:0}.section-heading p:last-child{font-size:12px;color:#9a909f;margin:8px 0 0}.summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.summary-strip>button{background:#fff;border:1px solid #ece7f0;border-radius:14px;padding:19px;text-align:left;display:flex;align-items:center;gap:13px;color:#50415f;min-width:0}.summary-strip>button:hover{border-color:#d1c3df;background:#fdfbff}.summary-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;background:#f2edf7;color:#907ea4;border-radius:13px;font-size:19px}.summary-icon.summary-warn{background:#fbebe6;color:#a85e4b}.summary-strip button>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.summary-strip small{font-size:9px;letter-spacing:.08em;font-weight:800;color:#a79bab}.summary-strip strong{font-size:22px;font-family:Georgia,serif;font-weight:400;color:#4c3e66}.summary-strip em{font-style:normal;font-size:10px;color:#a196a4}.overview-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:16px}.overview-columns .panel{margin-bottom:16px}.overview-panel-head{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:15px}.overview-panel-head .eyebrow{margin-bottom:8px}.overview-panel-head h3{font-size:16px;color:#50415f;letter-spacing:-.02em;margin:0}.overview-ai-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#f2ecf7;color:#9b83ae;font-size:20px}.overview-ai-date{font-size:10px;line-height:1.5;color:#a79bab}.overview-ai-content{font-size:13px;line-height:1.7;color:#74667d;white-space:pre-wrap;overflow-wrap:anywhere}.overview-empty{font-size:12px;line-height:1.6;color:#a397a8;margin:0 0 15px}.overview-link{background:none;color:#806991;font-size:11px;font-weight:750;padding:0;text-align:left;white-space:nowrap}.overview-link:hover{text-decoration:underline}.overview-record{display:flex;gap:11px;padding:12px 0;border-top:1px solid #f1edf3}.overview-record>div{display:flex;flex-direction:column;gap:5px;min-width:0}.overview-record strong{font-size:12px;color:#594e63;overflow-wrap:anywhere}.overview-record small{font-size:11px;color:#a79bab}.record-dot{margin-top:4px;width:9px;height:9px;border-radius:50%;background:#c6b3d4;flex:none}.record-dot.is-late{background:#c17b69}.overview-facts>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #f1edf3;font-size:12px}.overview-facts span{color:#a196a4}.overview-facts strong{color:#695a70;font-weight:650;text-align:right}.overview-disclaimer{font-size:11px;color:#a196a4;line-height:1.6;margin:0 0 20px}.cat-main .panel{max-width:100%}.cat-main [data-cat-view]>.panel:not(.medications-panel){padding:26px}.cat-main .medications-panel>.panel-title{display:none}
@media(max-width:900px){.cat-workspace{grid-template-columns:1fr;gap:22px;padding-top:20px}.cat-sidebar{position:static;flex-direction:row;overflow-x:auto;gap:5px;padding:0 0 6px;scrollbar-width:thin}.cat-sidebar-label{display:none}.cat-nav-item{width:auto;white-space:nowrap;flex:none;padding:10px 12px}.summary-strip>button{padding:15px 12px;gap:9px}.summary-icon{width:36px;height:36px}.overview-columns{grid-template-columns:1fr}}
@media(max-width:600px){.cat-workspace{gap:18px}.summary-strip{grid-template-columns:1fr;gap:8px}.summary-strip>button{padding:12px 14px}.summary-strip button>span:last-child{display:grid;grid-template-columns:1fr auto;align-items:center;width:100%}.summary-strip strong{grid-column:2;grid-row:1/3}.summary-strip em{grid-column:1}.section-heading h2{font-size:29px}.overview-columns .panel{padding:20px}.overview-ai-content{font-size:12px}.cat-main [data-cat-view]>.panel:not(.medications-panel){padding:20px}}
/* Legible, bounded Markdown for model-generated analysis and chat. */
.ai-report{margin-top:24px;border-top:1px solid #eee8f1;padding-top:20px}.ai-report-meta{font-size:11px;color:#9b8da1;margin:0 0 19px;line-height:1.6}.ai-markdown{color:#5d5167;font-size:13px;line-height:1.75;overflow-wrap:anywhere;white-space:normal}.ai-markdown>:first-child{margin-top:0}.ai-markdown>:last-child{margin-bottom:0}.ai-markdown h1,.ai-markdown h2,.ai-markdown h3,.ai-markdown h4{font-family:inherit;font-size:15px;line-height:1.4;letter-spacing:-.015em;color:#55446a;margin:25px 0 10px;font-weight:750}.ai-markdown h1:first-child,.ai-markdown h2:first-child,.ai-markdown h3:first-child{margin-top:0}.ai-markdown h1:not(:first-child),.ai-markdown h2:not(:first-child){border-top:1px solid #f0ebf2;padding-top:21px}.ai-markdown p{margin:0 0 13px;white-space:normal}.ai-markdown ul,.ai-markdown ol{margin:10px 0 16px;padding-left:21px}.ai-markdown li{padding-left:3px;margin:6px 0}.ai-markdown li::marker{color:#a58eb8}.ai-markdown li p{margin:0}.ai-markdown strong{font-weight:750;color:#51405f}.ai-markdown blockquote{margin:14px 0;padding:2px 0 2px 14px;border-left:3px solid #ded0e9;color:#806f8b}.ai-markdown code{font-family:ui-monospace,monospace;background:#f3eff6;padding:2px 5px;border-radius:4px;font-size:.9em}.ai-markdown pre{max-width:100%;overflow:auto;background:#f7f4f9;border-radius:8px;padding:12px}.ai-markdown pre code{background:none;padding:0}.ai-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:12px;margin:14px 0}.ai-markdown th,.ai-markdown td{border:1px solid #ece6ef;padding:8px;text-align:left}.ai-markdown a{color:#745b8e;text-decoration:underline;overflow-wrap:anywhere}.ai-markdown hr{border:0;border-top:1px solid #eee8f1;margin:20px 0}.overview-ai-content{white-space:normal}.overview-ai-content h1,.overview-ai-content h2,.overview-ai-content h3{font-size:13px}.chat-markdown{margin-top:7px;font-size:13px;line-height:1.65}.chat-bubble .chat-markdown p{white-space:normal;margin:0 0 10px}.chat-bubble .chat-markdown p:last-child{margin-bottom:0}.chat-markdown h1,.chat-markdown h2,.chat-markdown h3{font-size:13px;margin:15px 0 7px}.chat-markdown h1:not(:first-child),.chat-markdown h2:not(:first-child){padding-top:12px}.chat-markdown ul,.chat-markdown ol{margin:8px 0 12px;padding-left:19px}
/* Medication overview */
.med-panel-top>.link{margin-bottom:23px}.med-panel-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.med-panel-heading h1{font:400 clamp(36px,4vw,48px)/1.08 Georgia,serif;letter-spacing:-.045em;color:#4c3e66;margin:0}.med-panel-heading p:last-child{font-size:13px;line-height:1.6;color:#958a9b;margin:10px 0 0}.med-panel-note{display:flex;align-items:start;gap:12px;padding:15px 18px;margin:26px 0 23px;background:#f4eff8;border:1px solid #e9e0f0;border-radius:12px;color:#806c91}.med-panel-note>span{font-size:17px}.med-panel-note p{font-size:12px;line-height:1.6;margin:0}.med-panel-summary{display:flex;gap:24px;color:#928799;font-size:12px;margin-bottom:19px}.med-panel-summary strong{font-family:Georgia,serif;font-size:19px;color:#665278;margin-right:4px}.med-panel-groups{display:grid;gap:16px}.med-cat-group{background:#fff;border:1px solid #eae5ef;border-radius:17px;overflow:hidden;box-shadow:0 4px 20px #58466d08}.med-cat-heading{display:flex;align-items:center;gap:14px;padding:20px 23px;border-bottom:1px solid #f0edf3}.med-cat-avatar{width:54px;height:54px;display:grid;place-items:center;position:relative;flex:none;overflow:hidden;border-radius:16px;background:#eee8f5;color:#a18db8}.med-cat-avatar svg{width:38px}.med-cat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.med-cat-heading>div{flex:1;min-width:0}.med-cat-heading .eyebrow{font-size:9px;margin:0 0 4px}.med-cat-heading h2{font-size:18px;letter-spacing:-.03em;color:#50415f;margin:0}.med-cat-heading p:last-child{font-size:11px;color:#a196a4;margin:4px 0 0}.med-panel-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 23px 23px}.med-panel-item{border:1px solid #eee9f1;border-radius:12px;padding:17px;min-width:0}.med-panel-item-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.med-panel-item-heading .eyebrow{font-size:9px;margin:0 0 5px}.med-panel-item-heading h3{font-size:15px;color:#50415f;margin:0;overflow-wrap:anywhere}.med-panel-fields{display:flex;flex-wrap:wrap;gap:15px 28px;margin-top:19px}.med-panel-fields>div{display:flex;flex-direction:column;gap:5px}.med-panel-fields small,.med-panel-record small{font-size:9px;letter-spacing:.07em;color:#a79bab;font-weight:800}.med-panel-fields strong{font-size:12px;color:#67596e;font-weight:650}.med-panel-instructions{font-size:12px;line-height:1.6;color:#88798f;white-space:pre-wrap;margin:15px 0 0}.med-panel-record{display:flex;justify-content:space-between;align-items:end;gap:12px;border-top:1px solid #f1edf3;margin-top:17px;padding-top:15px}.med-panel-record>div{display:flex;flex-direction:column;gap:5px;min-width:0}.med-panel-record strong{font-size:12px;color:#665573;font-weight:700}.med-panel-record span{font-size:10px;color:#9b8da1;overflow-wrap:anywhere}.med-record-button{white-space:nowrap}.med-panel-empty{margin-top:24px}@media(max-width:700px){.med-panel-heading{align-items:start;flex-direction:column}.med-panel-list{grid-template-columns:1fr;padding:14px}.med-cat-heading{padding:16px}.med-panel-record{align-items:start;flex-direction:column}.med-panel-record .primary{width:100%}.ai-report{margin-top:20px}.ai-markdown{font-size:13px}}
.med-panel-feedback:not(:empty){padding:11px 14px;margin:-8px 0 18px;background:#eef5ed;border:1px solid #dfebdd;border-radius:9px;color:#56775c;font-size:12px;font-weight:650}.med-undo{align-self:flex-start;margin-top:4px;font-size:10px}
