:root{font-family:'DM Sans',system-ui,sans-serif;color:#243f40;background:#e5e8e3;font-synthesis:none;--navy:#183f43;--blue:#17635d;--line:#dce4dc}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;min-height:52px;border:0;border-radius:13px;font-weight:600;font-size:16px}button:focus-visible{outline:3px solid #c87924;outline-offset:3px}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2{font-family:Manrope,system-ui,sans-serif}h1{font-size:29px;font-weight:800;letter-spacing:-1px;line-height:1.35}h2{font-size:20px;letter-spacing:-.5px;line-height:1.4}h3{font-size:18px;line-height:1.5}.shell{max-width:460px;min-height:100dvh;margin:auto;background:#f7f7f2;box-shadow:0 0 60px #27445c14}.main{min-width:0}.topbar{position:sticky;top:0;z-index:2;background:#f7f7f2f5;backdrop-filter:blur(14px);padding:calc(14px + env(safe-area-inset-top)) 20px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5ebf0;gap:10px}.topbar>strong{display:none}.brand{display:flex;align-items:center;gap:9px;font-family:Manrope,system-ui,sans-serif;font-size:18px;font-weight:800;letter-spacing:-.6px}.mark{width:33px;height:36px;display:grid;place-items:center;background:var(--navy);color:#fff;border-radius:11px}.mark svg{width:21px;height:21px}.language{display:flex;background:#e7ede7;padding:3px;border-radius:11px}.language button{background:transparent;color:#455e72;min-height:44px;padding:0 10px;font-size:14px;border-radius:8px}.language .selected{background:white;color:var(--navy);box-shadow:0 1px 5px #183f4315}.sidebar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(460px,100%);background:#fffffff5;backdrop-filter:blur(15px);z-index:3;border-top:1px solid var(--line);padding:7px 9px calc(9px + env(safe-area-inset-bottom))}.sidebar>.brand,.sidebar>.eyebrow,.side-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 2px;font-size:14px;line-height:1.4;background:transparent;color:#627586;min-height:62px;border-radius:12px}.nav button.active{color:var(--blue);background:#e4f1eb}.nav button svg{width:23px;height:23px}.content{padding:14px 18px calc(110px + env(safe-area-inset-bottom))}.demo{font-size:12px;line-height:1.5;color:#775f3b;background:#fbf1df;border:1px solid #ecdfc7;padding:8px 12px;border-radius:8px;margin-bottom:24px}.heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:23px}.heading>div:first-child{flex:1;min-width:0}.subtitle{font-size:15px;line-height:1.65;color:#586f70;margin-top:5px}.profile{display:flex;align-items:center;gap:8px}.profile>div{display:none}.avatar{background:#e4eee0;color:#446d4b;border:3px solid #fff;border-radius:50%;width:49px;height:49px;display:grid;place-items:center;font-size:15px;font-weight:700;box-shadow:0 2px 7px #183f4310}.grid,.stack{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;box-shadow:0 3px 8px #183f4303}.card-head{padding:20px 19px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.card-head .icon-title{display:flex;align-items:center;gap:10px}.card-head>.primary{width:100%}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}.progress-card{background:var(--navy);color:#fff;padding:20px 22px;border:0;border-radius:17px}.progress-top{display:flex;align-items:center;gap:20px;justify-content:space-between}.progress-top>div{flex:1}.progress-card p{font-size:14px;line-height:1.6;color:#cee0ee;margin-top:7px}.progress-num{font-family:Manrope,system-ui,sans-serif;font-size:32px;font-weight:800;white-space:nowrap}.progress{height:6px;background:#ffffff25;border-radius:10px;margin-top:16px;overflow:hidden}.progress>div{height:100%;background:#9ed1fa;transition:width .25s}.med-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:13px;row-gap:15px;padding:20px;border-top:1px solid #e7ece6}.med-icon{width:42px;height:45px;background:#e9f2eb;color:#33715f;border-radius:13px;display:grid;place-items:center}.med-info{min-width:0;overflow-wrap:anywhere}.med-info p{font-size:15px;color:#586f70;margin:5px 0 9px;line-height:1.5}.med-row>button{grid-column:1/-1;width:100%;min-height:54px}.med-row>.med-info:first-child{grid-column:1/-1}.muted{font-size:14px;color:#586f70;line-height:1.6}.pill{display:inline-block;font-size:13px;line-height:1.5;border-radius:6px;background:#fff2df;color:#8a5c20;padding:3px 8px;font-weight:500}.primary{background:var(--blue);color:white;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.5}.secondary{border:1px solid #cbd9cd;background:#fff;color:var(--navy);padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.5}.taken{background:#eaf5ee;color:#286546;padding:12px 16px}.text-btn{background:none;color:var(--blue);padding:7px 0;min-height:48px}.card-foot{padding:13px 19px;background:#fafbfd;color:#5d746a;font-size:13px;line-height:1.6;border-top:1px solid #e7ece6}.readings{padding:0 19px 3px;display:grid;gap:0}.reading{display:grid;grid-template-columns:37px minmax(0,1fr) auto;column-gap:10px;align-items:center;position:relative;padding:15px 0;border-top:1px solid #e7ece6}.reading-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;color:#317867}.reading .muted{grid-column:2;grid-row:1;font-size:16px;color:#334e62}.reading .value{grid-column:3;grid-row:1;font-size:22px;font-weight:700;letter-spacing:-.6px;text-align:right}.reading .unit{grid-column:3;grid-row:2;font-size:12px;color:#5d746a;text-align:right}.reading small{grid-column:2;grid-row:2;font-size:12px;color:#5d746a;margin-top:4px;line-height:1.5}.reading-add{padding:14px 19px 20px}.reading-add button{width:100%}.refill{padding:0 20px 20px}.refill-name{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;line-height:1.6}.refill-name strong{overflow-wrap:anywhere}.refill-name .pill{white-space:nowrap}.refill .secondary{width:100%;margin-top:17px}.visit-teaser{padding:22px;background:#edf3eb}.icon-box{display:inline-flex;padding:11px;background:white;border-radius:12px;color:var(--blue);margin-bottom:15px}.visit-teaser p{font-size:16px;color:#57738a;line-height:1.7;margin:10px 0 18px}.visit-teaser button{width:100%}.bottom-note{display:flex;align-items:start;gap:9px;font-size:12px;color:#60746b;line-height:1.65;margin:25px 5px 0}.bottom-note svg{width:17px;height:20px}.section-sub{padding:0 20px 20px;color:#586f70;font-size:14px}.table-wrap{padding:0 18px 10px}table,tbody{display:block;width:100%}thead{display:none}tr{display:grid;grid-template-columns:1fr auto;gap:7px 12px;border-top:1px solid var(--line);padding:17px 0}td{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.history-date{grid-column:1/-1;font-size:12px;color:#586f70}.history-type{font-weight:600}.history-value{font-size:18px;font-weight:700;text-align:right}.history-value span{font-size:12px;color:#586f70;font-weight:400}.history-note{grid-column:1/-1;color:#586f70;font-size:14px}.report{padding:22px}.report-header{padding-bottom:20px;border-bottom:1px solid var(--line)}.report h2{margin:24px 0 12px}.report-header h2{margin-top:14px}.report p{font-size:15px;line-height:1.8}.report .table-wrap{padding:0}.report-list{padding-left:20px;font-size:16px;line-height:1.9}.report-list li{margin-bottom:12px;overflow-wrap:anywhere}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions button{width:100%}dialog{position:fixed;inset:auto 0 0;margin:0 auto;border:0;border-radius:25px 25px 0 0;padding:25px 22px calc(24px + env(safe-area-inset-bottom));width:min(460px,100%);max-width:100%;max-height:92dvh;overflow:auto;color:#243f40;box-shadow:0 -10px 60px #183f4330;overscroll-behavior:contain}dialog::backdrop{background:#102f4c75}.dialog-top{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:22px}.dialog-top h2{font-size:22px;padding-top:6px}.close{background:#eff2ec;color:#36576c;min-width:44px;min-height:44px;font-size:25px;line-height:1}.form{display:grid;gap:18px}.form label{display:grid;gap:9px;font-size:16px;font-weight:500;min-width:0}input,select,textarea{border:1px solid #b2c8bc;border-radius:11px;min-height:54px;padding:13px;width:100%;min-width:0;max-width:100%;font-size:17px;color:#243f40;background:#fff}textarea{min-height:80px;resize:vertical}.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px}.form>.primary{min-height:56px}.error{font-size:14px;color:#a62828;line-height:1.6}.error:empty{display:none}#toast{position:fixed;bottom:calc(96px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;max-inline-size:min(420px,calc(100% - 32px));background:#183f43;color:white;padding:14px 18px;border-radius:12px;box-shadow:0 4px 20px #183f4320;display:none;z-index:5;text-align:center;font-size:15px;line-height:1.6}@media(min-width:600px){body{padding:24px 0}.shell{border:1px solid #cad6df;border-radius:28px 28px 0 0;overflow:clip;min-height:calc(100dvh - 24px)}.sidebar{border-left:1px solid #cad6df;border-right:1px solid #cad6df}.topbar{top:0}}@media(max-width:360px){.topbar{padding-left:14px;padding-right:14px}.brand{font-size:16px;gap:6px}.language button{padding:0 8px}.content{padding-left:13px;padding-right:13px}.nav button{font-size:12px}.reading .muted{font-size:14px}.reading .value{font-size:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media print{body{padding:0;background:white}.shell{max-width:none;border:0;border-radius:0;box-shadow:none}.sidebar,.topbar,.demo,.heading,.bottom-note,.no-print,#toast{display:none!important}.content{padding:0}.card{border:0;box-shadow:none}.report{padding:0}.table-wrap{padding:0}table{display:table;border-collapse:collapse}thead{display:table-header-group}tbody{display:table-row-group}tr{display:table-row}th,td{display:table-cell;border-bottom:1px solid #ddd;padding:10px;text-align:left;font-size:12px}.report h2{break-after:avoid}.history-value{font-size:14px}}
.routine{padding:18px 20px;border-top:1px solid #e7ece6}.routine-head{display:flex;align-items:center;gap:13px;margin-bottom:14px}.routine-symbol{width:42px;height:44px;border-radius:12px;background:#e9f2eb;color:#33715f;display:grid;place-items:center;flex-shrink:0}.routine-head>div{flex:1}.routine>button{width:100%}.complete{color:#28724c}.routine-detail{padding:12px 0;border-bottom:1px solid var(--line);line-height:1.7}.routine-detail:first-child{padding-top:0}.check-line{display:flex!important;align-items:center;gap:13px!important;padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer}.check-line input{width:25px;height:25px;min-height:25px;flex-shrink:0;accent-color:#17635d}.check-line small{display:block;font-size:14px;color:#586f70;font-weight:400;line-height:1.7;margin-top:5px}.check-line span{min-width:0;overflow-wrap:anywhere}.stock-row{padding:19px 20px;border-top:1px solid var(--line)}.stock-row p{margin-top:7px}.stock-row button{width:100%;margin-top:14px}.stock-row h3{overflow-wrap:anywhere}#stock-section{scroll-margin-top:95px}.schedule-set{border:1px solid var(--line);border-radius:12px;padding:12px 15px;min-width:0}.schedule-set legend{font-weight:600}.schedule-fields{display:grid;gap:14px;background:#f3f7fb;padding:15px 12px;border-radius:9px;margin:8px 0}.refill>p+ p{margin-top:8px}
/* Compact spacing while retaining touch targets. */
h1{font-size:25px}h2{font-size:18px}h3{font-size:16px}.topbar{padding:calc(9px + env(safe-area-inset-top)) 17px 9px}.content{padding-top:11px}.demo{margin-bottom:17px;padding:6px 10px}.heading{margin-bottom:17px}.subtitle{font-size:14px}.stack,.grid{gap:14px}.card{border-radius:15px}.card-head{padding:15px 17px 12px;gap:10px}.routine{padding:13px 17px}.routine-head{margin-bottom:10px}.routine-symbol{width:36px;height:38px}.routine>button{min-height:46px}.primary,.secondary{padding:10px 14px;min-height:46px;font-size:15px}.routine-detail{padding:9px 0}.routine-detail .muted{font-size:14px;line-height:1.5}.form{gap:13px}.dialog-top{margin-bottom:16px}.dialog-top h2{font-size:20px}dialog{padding:20px 18px calc(18px + env(safe-area-inset-bottom))}.form label{font-size:15px;gap:6px}input,select,textarea{min-height:48px;padding:10px 12px;font-size:16px}.form>.primary{min-height:48px}.reading{padding:11px 0}.readings{padding-left:17px;padding-right:17px}.reading-add{padding:11px 17px 15px}.card-foot{padding:10px 17px}.nav button{min-height:55px;gap:3px;font-size:13px}.sidebar{padding-top:5px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.nav button svg{width:21px;height:21px}.check-line{padding:11px 0}.stock-row{padding:15px 17px}.visit-teaser{padding:18px}.when-set{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}.when-set legend{font-size:15px;font-weight:600}.segmented{display:flex;gap:4px;background:#edf0ea;border-radius:10px;padding:4px}.segmented button,.segmented label{flex:1;min-width:0}.segmented button{background:transparent;font-size:14px;min-height:44px;padding:6px}.segmented .selected,.range-buttons .selected,.sugar-filters .selected{background:white;color:#175d53;box-shadow:0 1px 4px #183f4319}.segmented label{position:relative;display:block!important;cursor:pointer}.segmented label input,.ampm input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.segmented label span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:5px;font-size:13px;text-align:center;line-height:1.35;border-radius:7px}.segmented input:checked+span,.ampm input:checked+span{background:#fff;color:#175d53;box-shadow:0 1px 4px #183f4320}.segmented input:focus-visible+span,.ampm input:focus-visible+span{outline:3px solid #c87924}.when-set>p{margin-top:10px}.date-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin-top:12px}.date-fields label{min-width:0}.ampm{display:flex;align-self:end;gap:3px;background:#edf0ea;border-radius:8px;padding:3px;position:relative}.ampm label{flex:1;position:relative;cursor:pointer}.ampm span{display:grid;place-items:center;min-height:44px;font-size:13px;border-radius:6px}.history-controls{padding:0 17px}.range-buttons{display:flex;background:#edf0ea;padding:3px;border-radius:9px;gap:3px}.range-buttons button{font-size:13px;min-height:44px;padding:5px 9px;background:none}.sugar-filters{display:flex;gap:4px;margin-top:9px;flex-wrap:wrap}.sugar-filters button{font-size:13px;min-height:44px;padding:6px 10px;background:#eff2ec;flex:1}.trend-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.trend-summary strong{font-size:27px;letter-spacing:-.7px}.trend-summary p{margin-top:4px}.trend-summary>.muted{font-size:13px}.chart-legend{display:flex;gap:16px;font-size:12px;margin-top:12px;flex-wrap:wrap}.legend-upper{color:#17635d}.legend-lower{color:#875522}.trend-chart{width:100%;height:auto;display:block;stroke:none;fill:none;padding:3px 10px 0;max-height:245px}.trend-chart text{font-family:inherit;font-size:12px;fill:#61788a;stroke:none}.chart-note{font-size:12px;line-height:1.6;color:#687e8f;padding:0 17px 13px}.raw-readings{margin:0 17px 14px;border-top:1px solid var(--line)}summary{cursor:pointer;padding:14px 0;font-size:15px;font-weight:600;min-height:48px}summary:focus-visible{outline:3px solid #c87924}.raw-readings>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}.raw-readings>div p{flex-basis:100%;overflow-wrap:anywhere}.empty-chart{padding:25px 17px;color:#586f70;font-size:15px;line-height:1.7}.routine-bars{padding:0 17px 4px}.routine-bars>div{margin-bottom:16px}.bar-label{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:7px}.dose-bar{height:9px;background:#e3e9e1;border-radius:8px;overflow:hidden}.dose-bar>span{display:block;height:100%;background:#17635d}.routine-bars .chart-note{padding:0 0 10px}#doctor-report>summary{padding:15px 17px}#doctor-report .report{border:0;border-top:1px solid var(--line);border-radius:0}.report{padding:17px}.report h2{margin:17px 0 10px}.report p{font-size:14px}.report-list{font-size:14px;line-height:1.7}.report-list li{margin-bottom:10px}@media print{.content>.stack>section,.content>.stack>details>summary{display:none!important}#doctor-report{display:block;border:0}#doctor-report .report{border:0}.content>.stack{display:block}}
.time-confirmation{background:#e5f1eb;border:1px solid #cbded0;border-radius:9px;padding:11px 12px;margin-top:13px;font-size:14px;color:#215649;font-weight:600;line-height:1.6}.sugar-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 8px}.sugar-overview>div{border:1px solid var(--line);border-radius:10px;padding:11px 10px;min-width:0}.series-label{display:flex;align-items:center;gap:5px;font-size:13px;color:#3a5366}.series-label i{display:inline-block;width:16px;border-top-width:3px;flex-shrink:0}.sugar-overview strong{font-size:23px}.sugar-overview p{margin:7px 0 3px}.sugar-overview small{font-size:12px;color:#586f70;line-height:1.5}.routine-choice{display:flex;gap:8px}.routine-choice button{flex:1}.when-set>input[type=hidden]{display:none}

/* Larger reading text with compact card spacing. */
body{font-size:17px}h1{font-size:28px}h2{font-size:20px}h3{font-size:18px}.subtitle,.muted,.form label,.card-foot,.routine-detail .muted{font-size:16px}.primary,.secondary{font-size:17px;min-height:50px}.form label{font-size:17px}input,select,textarea{font-size:18px;min-height:52px}.dialog-top h2{font-size:22px}.nav button{font-size:14px}.time-confirmation{font-size:16px}.when-set legend{font-size:17px;font-weight:600;line-height:1.5}.moment-choices label span,.calendar-choices label span{font-size:16px}.calendar-choices{margin-top:12px}.setup-step{font-size:15px;font-weight:600;color:#17635d}.reading .muted{font-size:17px}.reading small,.sugar-overview small{font-size:14px}.routine-detail{line-height:1.6}.form>.primary{min-height:50px}
.medicine-name{display:flex;align-items:start;justify-content:space-between;gap:12px}.state-label{font-size:13px;padding:3px 7px;border:1px solid #d1ded4;border-radius:6px;color:#536a7e;white-space:nowrap}.med-management{display:flex;gap:10px;margin-top:10px}.stock-row .med-management button{width:auto;flex:1;margin:0}.remove-med{color:#8d3a36}.medicine-section{border-top:1px solid var(--line)}.medicine-section>summary{padding:16px 18px}.earlier-medicine summary{font-size:14px;line-height:1.6}.routine-choice button{width:100%}.check-line small:empty{display:none}.stock-row h3{flex:1}

/* Clear, familiar surfaces and status colours. */
:root{--navy:#183f43;--blue:#17635d;--line:#dce4dc}.shell{box-shadow:0 8px 55px #273e3212}.topbar{border-bottom:1px solid #dce4dc}.card{box-shadow:0 3px 12px #233b3005}.primary{box-shadow:0 2px 4px #174d3212}.primary:hover{background:#124f49}.secondary:hover{background:#f0f5ed}.nav button{color:#5b7067}.nav button.active{color:#175c51;background:#e1eee2}.nav button.active svg{stroke-width:2.2}.card-head h2{color:#25453a}.state-active{background:#e7f3e9;border-color:#c9dfce;color:#24643b}.state-paused{background:#fff3d9;border-color:#ead3a2;color:#775715}.state-removed{background:#edf0ee;border-color:#dce2de;color:#59665e}.med-management{flex-wrap:wrap}.med-management button{min-width:85px}.edit-group{display:flex!important;align-items:center;gap:10px!important;padding:5px 0;min-height:44px;font-weight:600}.edit-group input{width:24px;min-height:24px;height:24px;accent-color:#17635d}.schedule-set{border-color:#cfdbd0}.schedule-set legend{color:#315940}.time-confirmation{background:#e7f2e9;border-color:#c8ddcc;color:#234f35}.demo{background:#faf1d9;border-color:#e7d8ae;color:#725c22}.remove-med{color:#91413a}.dose-bar>span{background:#17635d}.setup-step{color:#17635d}.reading-icon{color:#33745e}.sugar-overview>div{background:#fcfdf9}.bottom-note{color:#637467}.brand{color:#234b40}

/* Refill attention dashboard */
.attention-card{border-color:#c5d7d0}.attention-card>.card-head{background:#eef5f0;border-radius:20px 20px 0 0}.attention-count{background:#214f47;color:white;border-radius:50%;min-width:28px;padding:3px 8px;text-align:center}.attention-row{padding:16px 20px;border-top:1px solid #e3e9e6}.attention-row p{margin:6px 0;font-size:16px}.attention-row strong{font-size:18px}.attention-row button{margin-top:8px;min-height:44px;width:100%}.refill-badge{display:inline-block;padding:3px 9px;background:#fff0ce;color:#78530e;border-radius:7px;font-size:14px}.attention-actions{display:grid;gap:10px;padding:16px 20px}.stock-summary{font-size:18px;font-weight:600}#refill-message{font-size:16px;line-height:1.5;min-height:190px}.form .check-line{gap:12px}#delivery-fields[hidden]{display:none}.attention-card .card-foot{font-size:14px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a96d17;outline-offset:3px}

/* Compact, closed-by-default refill summary. */
.refill-compact{border:1px solid #d3dfd9;background:#f3f7f3}
.refill-compact>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;min-height:72px;cursor:pointer;list-style:none}
.refill-compact>details>summary::-webkit-details-marker{display:none}
.refill-summary-copy{display:grid;gap:3px;min-width:0}.refill-summary-copy strong{font-size:17px;color:#214f47}.refill-summary-copy>span{font-size:15px;line-height:1.4;color:#4b6058}
.refill-expand{font-size:25px;flex:0 0 24px;text-align:center}.refill-compact>details[open]>summary>.refill-expand{transform:rotate(180deg)}
.refill-expanded{padding:0 18px 14px;background:white;border-radius:0 0 20px 20px}.refill-mini-row{padding:14px 0;border-top:1px solid #e0e7e3}.refill-mini-row>strong{font-size:17px}.refill-mini-row p{margin:4px 0;font-size:15px;line-height:1.45}.refill-mini-status{font-weight:600;color:#76500f}.refill-mini-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.refill-mini-actions button{min-height:44px;padding:8px 12px;font-size:15px}.refill-dismiss{background:transparent;color:#53615d;border:0;text-decoration:underline;cursor:pointer}.refill-family-tools,.hidden-refill-alerts{margin-top:12px;border-top:1px solid #e0e7e3}.refill-family-tools>summary,.hidden-refill-alerts>summary{padding:12px 0;min-height:44px;cursor:pointer;font-size:15px}.refill-family-tools>button{display:block;width:100%;margin-top:8px}.refill-hidden-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 0}.refill-hidden-row small{display:block;color:#53615d;font-size:14px}.refill-hidden-row button{min-height:44px}.dismiss-reasons{border:0;padding:0}.dismiss-reasons legend{font-weight:600}.dismiss-reasons input{flex-shrink:0}.refill-compact summary:focus-visible{outline:3px solid #a96d17;outline-offset:-3px;border-radius:12px}

/* Distinct alert treatment without enlarging the collapsed card. */
.refill-compact.refill-attention{background:#fff0c2;border-color:#b97608;border-inline-start:5px solid #a96300;box-shadow:0 2px 7px #81510014}
.refill-compact.refill-update{background:#eaf2fc;border-color:#7798bd;border-inline-start:5px solid #3d6996}
.refill-compact>details>summary{gap:10px;padding:12px 14px}
.refill-summary-copy{flex:1}.refill-attention .refill-summary-copy strong{color:#613a00;font-weight:800}.refill-attention .refill-summary-copy>span{color:#704600;font-size:16px;font-weight:600}
.refill-update .refill-summary-copy strong,.refill-update .refill-summary-copy>span{color:#23496f}
.refill-alert-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#f7d982;color:#754400}.refill-alert-icon svg{width:22px;height:22px;stroke-width:2}
.refill-update .refill-alert-icon{background:#d3e3f5;color:#23496f}
.refill-attention .refill-expand{color:#613a00;font-weight:800}.refill-update .refill-expand{color:#23496f}

.profile-trigger{display:flex;flex-direction:column;gap:3px;flex-shrink:0;background:transparent;padding:0;min-width:52px;color:#315940}.profile-caption{font-size:12px;line-height:1.4}.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.profile-photo-editor{display:flex;align-items:center;gap:14px}.profile-photo-editor .avatar{width:64px;height:64px}.profile-photo-editor>div{min-width:0;flex:1}.photo-label input{width:100%;font-size:14px}.profile-photo-remove{background:transparent;text-decoration:underline;color:#704b38;padding:4px 0;min-height:44px;font-size:15px}.profile-preferences{border:1px solid #d3dfd9;border-radius:14px;padding:14px;display:grid;gap:14px}.profile-preferences legend{font-weight:700}.profile-size-preview{background:#eef4ed;border-radius:10px;padding:12px;font-size:16px;line-height:1.5}.profile-size-preview.large{font-size:19px}.profile-family summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}.preview-badge{font-size:12px;background:#f7eacb;color:#745019;padding:3px 7px;border-radius:5px}.profile-family li{margin:8px 0}.profile-family p,.profile-family li{font-size:15px;line-height:1.5}
.text-large body{font-size:19px}.text-large .form label,.text-large .form input,.text-large .form select,.text-large .form textarea,.text-large .muted,.text-large .section-sub,.text-large .subtitle,.text-large .check-line small{font-size:18px;line-height:1.5}.text-large .card h2,.text-large .dialog-top h2{font-size:24px}.text-large h3,.text-large .check-line strong{font-size:21px}.text-large button{font-size:18px;white-space:normal;height:auto}.text-large .nav button{font-size:15px}.text-large .language button{font-size:15px}.text-large .refill-summary-copy strong{font-size:19px}.text-large .refill-summary-copy>span,.text-large .refill-mini-row p{font-size:18px}.text-large .profile-caption{font-size:14px}.text-large .refill-mini-actions{flex-wrap:wrap}.text-large .form .when-tabs{flex-wrap:wrap}

/* Aumi Care identity: original logo, solid blue actions, neutral cards. */
:root{--navy:#0b1020;--blue:#1e66ff;--line:#dce1ec;color:#0b1020;background:#eef0f6}
.shell{background:#f7f8fc}.topbar{background:#ffffff;border-bottom-color:#dce1ec;padding-top:8px;padding-bottom:8px}.aumi-logo{display:block;width:125px;height:50px;object-fit:contain}.brand{color:#0b1020}.language{background:#edf1f9}.language .selected{color:#164ab8}.primary{background:#1e66ff;color:#fff}.primary:hover{background:#1855da}.secondary{background:#fff;border-color:#b9c5d8;color:#153b84}.nav button.active{background:#eaf1ff;color:#164ab8}.nav button{color:#536077}.card{background:#fff}.card h2,.card h3,.dialog-top h2,h1{color:#0b1020}.routine-symbol,.reading-icon{background:#edf3ff;color:#1b55c9}.subtitle,.muted,.section-sub,.bottom-note{color:#536077}.avatar{background:#eaf1ff;color:#164ab8}.profile-trigger{color:#164ab8}.time-confirmation{background:#edf3ff;border-color:#c4d4f5;color:#153b84}.schedule-set legend{color:#153b84}.schedule-set{border-color:#cbd5e5}.setup-step{color:#164ab8}.check-line input,.edit-group input{accent-color:#1e66ff}.dose-bar>span{background:#1e66ff}.profile-size-preview{background:#edf3ff}.demo{background:#f0f2f7;border-color:#dce1ec;color:#536077;margin-bottom:18px}.refill-attention .refill-summary-copy strong{color:#613a00}.refill-attention .refill-summary-copy>span{color:#704600}.refill-update .refill-summary-copy strong,.refill-update .refill-summary-copy>span{color:#23496f}
@media(max-width:360px){.topbar{padding-left:14px;padding-right:14px}.aumi-logo{width:112px;height:45px}.language button{padding:0 8px}}

.dose-slot{border:1px solid #d3ddeb;padding:12px;border-radius:12px;margin:12px 0;min-width:0}.dose-slot details{margin-top:8px}.dose-slot summary,.change-notice>summary{padding:10px 0;min-height:44px;cursor:pointer}.dose-slot label{display:grid;gap:7px;margin-top:8px}.text-button{background:transparent;color:#164ab8;text-decoration:underline;min-height:44px;padding:7px 4px;font-size:15px}.day-choice{display:inline-flex!important;align-items:center;gap:5px;padding:8px!important;min-height:44px}.day-choice input{width:22px!important;min-height:22px!important;height:22px!important}.intake-row{border-bottom:1px solid #dce1ec;padding-bottom:8px}.intake-row .check-line{border:0}.change-notice{padding:0 18px;border-color:#97b8f5;background:#edf3ff}.reading-log .stock-row{padding:14px 18px}.reading-log p{overflow-wrap:anywhere}.profile-family button{margin:8px 0}.form details>summary{min-height:44px;padding:10px 0;cursor:pointer}.form .two{align-items:start}.form .two>*{min-width:0}.card strong,.card p,.form label{overflow-wrap:anywhere}#dose-slots:empty:after{content:'+';display:block;text-align:center;color:#64748b}
/* v10: compact cards, explicit states, retained 44px touch targets. */
.stack{gap:16px}.heading{margin-bottom:18px}.card-head{padding:16px 18px}.card-head h2{font-size:19px}.routine{padding:12px 18px}.routine-head{margin-bottom:8px}.routine-symbol{width:38px;height:38px}.routine h3{font-size:18px}.routine .muted{font-size:15px}.routine button{min-height:46px}.quick-readings{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px 16px}.reading-action{border:1px solid #c5d5f5;background:#f4f7ff;color:#153b84;padding:14px;text-align:left;display:grid;gap:8px;min-width:0}.reading-action span{display:flex;gap:7px;align-items:center}.reading-action strong{color:#164ab8;font-size:17px}.reading-action small{color:#536077;font-size:13px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.medicine-item{border-top:1px solid var(--line)}.medicine-item summary{padding:15px 18px;cursor:pointer;min-height:52px}.medicine-item summary span{display:inline-grid;gap:4px;max-width:90%;vertical-align:middle}.medicine-item small{color:#536077;font-size:14px}.medicine-item-body{padding:0 18px 16px}.medicine-item-body p{font-size:16px;margin:8px 0}.compact-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.compact-actions button{flex:1;min-width:90px;min-height:44px}.danger-text{color:#9b2734}.choice-row{display:flex;flex-wrap:wrap;gap:6px}.choice-row label{position:relative;flex:1;min-width:85px;cursor:pointer}.choice-row input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.choice-row span{display:flex;justify-content:center;align-items:center;min-height:46px;padding:8px;border:1px solid #b9c5d8;border-radius:10px;font-size:15px}.choice-row input:checked+span{background:#eaf1ff;color:#153b84;border:2px solid #1e66ff;font-weight:700}.choice-row input:focus-visible+span{outline:3px solid #995600;outline-offset:2px}.position-set{border:0;padding:0;margin:0}.position-set legend{margin-bottom:8px}.measurement-row{padding:14px 18px;border-top:1px solid var(--line);overflow-wrap:anywhere}.measurement-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.measurement-title small{font-size:14px;font-weight:400}.measurement-row p{font-size:15px;line-height:1.5;margin-top:6px}.measurement-event{background:#fff9e9;border-left:4px solid #b77a00}.measurement-event .measurement-title{color:#613a00}.repeat-note{padding:10px;background:#edf3ff;border-radius:8px}.history-controls label{display:grid;gap:6px;margin:10px 0}.history-controls select{min-height:44px;border:1px solid #b9c5d8;border-radius:8px;padding:8px;max-width:100%}.trend-chart circle{stroke:white;stroke-width:1.5}.form input:disabled{opacity:.6}.check-line:has(input:disabled){color:#536077}.form>details{border-top:1px solid #dce1ec}.form details[open]>label{margin:10px 0}.intake-row .text-button{margin-left:12px}.demo{font-size:12px;padding:7px 10px;margin-bottom:14px}.text-large .measurement-row p,.text-large .medicine-item small{font-size:18px}.text-large .reading-action small{font-size:16px}.text-large .choice-row span{font-size:18px}
@media(max-width:370px){.quick-readings{gap:8px;padding:0 12px 12px}.reading-action{padding:10px}.reading-action span{display:block}.reading-action span svg{display:none}.content{padding-left:14px;padding-right:14px}}
@media print{.compact-actions,.quick-readings{display:none!important}.measurement-row{break-inside:avoid}.measurement-event{border:1px solid #8c691d}}
.required-mark{color:#992a35;font-weight:700;display:inline;font-size:1em}.required-note{font-size:13px!important;margin:0 0 4px!important}.field-error{color:#992a35!important;font-size:15px;line-height:1.45;margin:5px 0 12px!important}.form [aria-invalid=true]{border:2px solid #992a35;outline-offset:2px}.weekday-required{font-size:15px;font-weight:600}.form label:has(>.required-mark){display:block}.form label:has(>.required-mark)>input,.form label:has(>.required-mark)>select,.form label:has(>.required-mark)>textarea{display:block;width:100%;margin-top:7px}#dose-slots:empty:after{content:none}
/* Compact optional activities and readable chart keys. */
.care-plan-card .card-head{padding-bottom:10px}.activity-today{padding:0 18px 14px}.activity-today>summary{min-height:44px;display:list-item;align-content:center;font-weight:600;color:#23496f}.activity-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #e1e6ed}.activity-row>div{min-width:0;flex:1}.activity-row strong,.activity-row small{display:block;overflow-wrap:anywhere}.activity-row button{width:auto;min-width:86px;min-height:44px;padding:10px 14px;flex-shrink:0}.activity-row details{font-size:.94rem;margin-top:4px}.activity-row p{white-space:pre-wrap}.activity-manage{border-top:1px solid #e1e6ed;padding:16px 0}.activity-days{display:flex;flex-wrap:wrap;gap:8px}.activity-days label{display:flex;align-items:center;min-height:44px;padding:4px 8px;gap:6px}.activity-days input{width:22px;height:22px}.clear-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 18px;font-size:1rem;color:#253b46}.clear-legend span{display:inline-flex;align-items:center;gap:5px}.clear-legend svg{flex-shrink:0}.trend-chart text{fill:#4d596b}.position-set .choice-row{grid-template-columns:repeat(3,minmax(0,1fr))}
/* V13: soft page colour, plain reading surfaces, visible daily activities. */
:root{--bg:#F4F6FA}
body{background:radial-gradient(ellipse at 5% 0%,#e8f0ff 0,transparent 52%),radial-gradient(ellipse at 100% 85%,#f9edf3 0,transparent 48%),#f4f6fa;background-attachment:fixed}
.main,.content,.shell{background:transparent}.card{background:#fff;border-color:#dce2eb;box-shadow:0 3px 14px rgba(34,56,88,.035)}
.topbar{background:#f8faff}.sidebar{background:#f8faff}dialog,.form{background:#fff}
.empty-medicines{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;flex-wrap:wrap}.empty-medicines span{color:#536077}.empty-medicines button{min-height:44px}
.activity-summary{display:grid;gap:4px;padding:0 18px 10px}.activity-summary small{color:#536077}.activity-visible{padding:0 18px 8px}.activity-visible>details{border-top:1px solid #e1e6ed}.activity-visible>details>summary{min-height:44px;align-content:center;padding:10px 0;color:#23496f;font-weight:600;cursor:pointer}.activity-row>.activity-row-actions{flex:0 0 auto;display:grid;gap:2px;justify-items:stretch;min-width:96px}.activity-row-actions .text-button{font-size:.88rem;padding:5px;min-height:44px}.activity-reason{padding:10px 0;border-top:1px solid #e1e6ed}.activity-reason strong,.activity-reason small{display:block}.activity-reason small,.activity-reason-text{color:#536077;margin:5px 0}.activity-status{color:#365f52}.activity-row>div:first-child{overflow-wrap:anywhere}
@media(max-width:400px){.activity-visible,.activity-summary{padding-left:14px;padding-right:14px}.activity-row{gap:8px}.activity-row>.activity-row-actions{min-width:84px}.activity-row button{min-width:84px;padding-left:8px;padding-right:8px}}
@media print{body{background:#fff}.card{box-shadow:none}.activity-row-actions{display:none!important}}
/* V14: wrapping text and shrinkable mobile form columns. */
*,*::before,*::after{box-sizing:border-box}
.form,.form>*,.form label,.form fieldset,.two>*,.card-head>*,.routine-head>*,.heading>*,.reading-action,.activity-row>div{min-width:0;max-width:100%}
.form input,.form select,.form textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.form input[type=checkbox],.form input[type=radio]{width:auto}
.form input::placeholder{text-overflow:ellipsis}
.form label,.form legend,.form summary,.field-hint,.field-error,.card h2,.card h3,.card p,.card small,.activity-row strong{overflow-wrap:anywhere;white-space:normal}
button,.choice-row span,.nav button span{white-space:normal;overflow-wrap:anywhere;height:auto}
.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-hint{font-size:.9rem;line-height:1.5;color:#536077;margin:0 0 8px}
.activity-row>.activity-row-actions{min-width:80px;max-width:40%;flex:0 0 auto}
.activity-row-actions button{min-width:0;width:100%;max-width:100%;min-height:44px}
.card-head{flex-wrap:wrap;gap:8px}
@media(max-width:380px){.form .two{grid-template-columns:minmax(0,1fr)}.activity-row>.activity-row-actions{min-width:76px}.choice-row label{min-width:70px}}