@import "https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap";.med-app,.med-auth,.med-loading{--m-ink:#172d4b;--m-muted:#75849a;--m-blue:#3976eb;--m-blue-soft:#eaf1ff;--m-line:#e8edf4;--m-bg:#f6f8fc;color:var(--m-ink);background:var(--m-bg);min-height:100vh;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));font-family:Cairo,sans-serif}.med-app *,.med-auth *{box-sizing:border-box}.med-icon{flex:none;width:21px;height:21px}.med-topbar{border-bottom:1px solid var(--m-line);z-index:20;background:#fff;justify-content:space-between;align-items:center;height:76px;padding:0 max(24px,50vw - 560px);display:flex;position:sticky;top:0}.med-brand{color:inherit;align-items:center;gap:11px;text-decoration:none;display:flex}.med-brand-mark{color:#fff;background:linear-gradient(145deg,#568df8,#2e65d8);border-radius:14px;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 7px 16px #3976eb30}.med-brand-mark .med-icon{width:22px;height:22px}.med-brand b,.med-brand small{display:block}.med-brand b{font-size:17px;font-weight:800;line-height:1.35}.med-brand small{color:var(--m-muted);font-size:10px}.med-top-actions{align-items:center;gap:13px;display:flex}.med-user-name{color:var(--m-muted);text-overflow:ellipsis;white-space:nowrap;max-width:200px;font-size:12px;overflow:hidden}.med-icon-button,.med-close{border:1px solid var(--m-line);color:#62748c;cursor:pointer;background:#fff;border-radius:13px;place-items:center;width:40px;height:40px;display:grid}.med-icon-button:hover{color:var(--m-blue);background:#f6f9ff}.med-main{max-width:1120px;margin:0 auto;padding:34px 24px 42px}.med-welcome{justify-content:space-between;align-items:center;margin:2px 0 25px;display:flex}.med-kicker{color:var(--m-blue);font-size:12px;font-weight:700}.med-welcome h1,.med-page-heading h1{margin:5px 0 2px;font-size:clamp(23px,4vw,31px);font-weight:800;line-height:1.5}.med-welcome p,.med-page-heading p{color:var(--m-muted);margin:0;font-size:13px}.med-avatar{color:#366bd4;background:#dce8ff;border:3px solid #fff;border-radius:50%;place-items:center;width:53px;height:53px;font-size:19px;font-weight:800;display:grid;box-shadow:0 4px 16px #1d407e14}.med-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.med-stat-card{border:1px solid var(--m-line);background:#fff;border-radius:19px;min-height:132px;padding:19px 20px;position:relative;overflow:hidden;box-shadow:0 7px 22px #223a5b08}.med-stat-card>span:first-child{color:#65758b;font-size:12px;font-weight:600}.med-stat-card>b{margin-top:12px;font-size:31px;line-height:1.2;display:block}.med-stat-card>b i{color:#8c9ab0;font-size:14px;font-style:normal;font-weight:600}.med-stat-card>small{color:var(--m-muted);font-size:11px}.med-stat-icon{border-radius:13px;place-items:center;width:37px;height:37px;display:grid;position:absolute;top:19px;left:19px}.med-stat-card.blue .med-stat-icon{color:#4478db;background:#edf3ff}.med-stat-card.green .med-stat-icon{color:#26a279;background:#e5f7f0}.med-section{margin-top:31px}.med-section-heading{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.med-section-heading h2{margin:3px 0 0;font-size:19px}.med-link,.med-text-button{color:var(--m-blue);cursor:pointer;background:0 0;border:0;padding:7px;font-family:inherit;font-size:12px;font-weight:700}.med-dose-list{gap:10px;display:grid}.med-dose-card{border:1px solid var(--m-line);background:#fff;border-radius:16px;grid-template-columns:75px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 15px;display:grid;box-shadow:0 5px 16px #20365607}.med-dose-time{text-align:center;color:#3268d4;direction:ltr;background:#f2f6ff;border-radius:11px;padding:9px 4px;font-size:13px;font-weight:800}.med-dose-info b,.med-dose-info span{display:block}.med-dose-info b{font-size:14px}.med-dose-info span{color:var(--m-muted);margin-top:2px;font-size:11px}.med-take-button,.med-done-button{cursor:pointer;white-space:nowrap;border:0;border-radius:11px;padding:9px 13px;font-family:inherit;font-size:11px;font-weight:700}.med-take-button{color:#3269d4;background:#eaf1ff}.med-take-button:hover{background:#dce8ff}.med-done-button{color:#19875e;background:#e7f7f0;align-items:center;gap:4px;display:flex}.med-done-button .med-icon{width:15px;height:15px}.med-dose-card.is-done{border-color:#d9f0e6}.med-quick-actions{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:25px;display:grid}.med-quick-actions button{border:1px solid var(--m-line);text-align:right;cursor:pointer;background:#fff;border-radius:16px;justify-items:start;gap:3px;padding:14px;font-family:inherit;transition:transform .16s,border-color .16s;display:grid}.med-quick-actions button:active{transform:scale(.98)}.med-quick-actions b{margin-top:5px;font-size:12px}.med-quick-actions small{color:var(--m-muted);font-size:10px}.med-quick-actions button>span:first-child{border-radius:11px;place-items:center;width:35px;height:35px;display:grid}.quick-blue{color:#3976eb;background:#edf3ff}.quick-peach{color:#e38466;background:#fff0e9}.quick-green{color:#269877;background:#e5f7f0}.med-page{min-height:65vh}.med-page-heading{justify-content:space-between;align-items:center;gap:15px;margin:3px 0 22px;display:flex}.med-page-heading h1{margin-top:1px}.med-primary,.med-secondary{cursor:pointer;white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:0 15px;font-family:inherit;font-size:12px;font-weight:700;display:inline-flex}.med-primary{color:#fff;background:linear-gradient(120deg,#4a84f2,#3269dc);border:1px solid #3976eb;box-shadow:0 6px 15px #3976eb26}.med-primary:hover{filter:brightness(1.04)}.med-primary:disabled{opacity:.6;cursor:wait}.med-secondary{color:#376ccf;background:#fff;border:1px solid #dce5f3}.med-primary .med-icon,.med-secondary .med-icon{width:17px;height:17px}.med-card-list{gap:11px;display:grid}.med-card{border:1px solid var(--m-line);background:#fff;border-radius:17px;grid-template-columns:44px 1fr auto;align-items:start;gap:13px;padding:16px;display:grid;box-shadow:0 5px 18px #223a5b07}.med-med-icon,.med-doctor-avatar{color:#3976eb;background:#edf3ff;border-radius:14px;place-items:center;width:43px;height:43px;display:grid}.med-card-content{min-width:0}.med-card-title{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.med-card-title h3{margin:0;font-size:15px}.med-status{color:#16845a;background:#e8f7f0;border-radius:20px;padding:3px 8px;font-size:9px}.med-status.paused,.med-status.completed,.med-status.archived{color:#728198;background:#f1f3f6}.med-card-content>p{color:var(--m-muted);margin:3px 0;font-size:11px}.med-schedule-chips{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.med-schedule-chips span{color:#65758c;direction:rtl;background:#f4f7fb;border-radius:8px;padding:4px 8px;font-size:10px}.med-card-content>small{color:var(--m-muted);margin-top:7px;font-size:10px;display:block}.med-delete{color:#bb665e;cursor:pointer;background:#fff4f3;border:0;border-radius:9px;align-self:start;padding:7px 10px;font:600 10px Cairo,sans-serif}.med-delete:hover{background:#ffe9e6}.med-empty{text-align:center;background:#fff;border:1px dashed #d9e2ee;border-radius:18px;justify-items:center;padding:37px 20px;display:grid}.med-empty>span{margin-bottom:8px;font-size:31px}.med-empty>b{font-size:14px}.med-empty p{color:var(--m-muted);margin:6px 0 17px;font-size:11px}.med-empty .med-primary{min-height:39px}.med-record-list{gap:9px;display:grid}.med-record-list article{border:1px solid var(--m-line);background:#fff;border-radius:15px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;display:grid}.record-dot{border-radius:12px;place-items:center;width:36px;height:36px;display:grid}.record-dot .med-icon{width:18px;height:18px}.blue-dot{color:#3976eb;background:#edf3ff}.peach-dot{color:#e38466;background:#fff0e9}.green-dot{color:#269877;background:#e5f7f0}.med-record-list article>div{min-width:0}.med-record-list article>div>b,.med-record-list article>div>small{display:block}.med-record-list article>div>b{font-size:12px}.med-record-list article>div>small{color:var(--m-muted);margin-top:3px;font-size:10px;line-height:1.7}.record-status,.med-severity{color:#19875e;white-space:nowrap;background:#e7f7f0;border-radius:20px;padding:4px 8px;font-size:9px}.med-severity.moderate{color:#a67420;background:#fff5df}.med-severity.severe{color:#bd5d4f;background:#fff0ed}.med-subheading{margin:23px 0 11px;font-size:16px}.med-subheading.spaced{margin-top:30px}.med-muted{color:var(--m-muted);font-size:12px}.med-inline-actions{justify-content:flex-start;margin-top:-8px;display:flex}.med-card-list.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.med-doctor-card{border:1px solid var(--m-line);background:#fff;border-radius:15px;align-items:center;gap:11px;padding:13px;display:flex}.med-doctor-card>div:last-child{min-width:0}.med-doctor-card b,.med-doctor-card small{display:block}.med-doctor-card b{font-size:12px}.med-doctor-card small{color:var(--m-muted);margin-top:2px;font-size:10px}.med-upload-card{cursor:pointer;background:#fff;border:1px dashed #cbd9ee;border-radius:18px;align-content:center;justify-items:center;gap:6px;min-height:175px;display:grid;position:relative}.med-upload-card:hover{background:#fbfdff;border-color:#6090e8}.upload-icon{color:#3976eb;background:#edf3ff;border-radius:14px;place-items:center;width:44px;height:44px;margin-bottom:4px;display:grid}.med-upload-card>b{font-size:13px}.med-upload-card>small{color:var(--m-muted);font-size:10px}.med-upload-card input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.med-bottom-nav{bottom:0;height:calc(72px + env(safe-area-inset-bottom,0px));padding:5px 8px env(safe-area-inset-bottom,0px);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:30;background:#ffffffed;border-top:1px solid #e8edf4;justify-content:center;align-items:center;display:flex;position:fixed;inset-inline:0}.med-bottom-nav button{color:#8996a8;cursor:pointer;background:0 0;border:0;border-radius:13px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;max-width:145px;height:57px;font:500 10px Cairo,sans-serif;display:flex}.med-bottom-nav button .med-icon{width:20px;height:20px}.med-bottom-nav button.active{color:#326ddd;font-weight:700}.med-bottom-nav button.active .med-icon{filter:drop-shadow(0 3px 5px #3976eb36)}.med-toast{z-index:50;color:#fff;background:#193352;border-radius:13px;align-items:center;gap:14px;max-width:min(560px,100% - 28px);padding:12px 15px;font-size:12px;display:flex;position:fixed;top:88px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #192d4a2a}.med-toast button{color:#dce7f6;cursor:pointer;background:0 0;border:0;font-size:19px}.med-refresh-line{top:76px;z-index:40;background:linear-gradient(90deg,#0000,#3976eb,#0000);height:2px;animation:1.3s infinite med-refresh;position:fixed;inset-inline:0}@keyframes med-refresh{0%{transform:translate(100%)}to{transform:translate(-100%)}}.med-sheet-backdrop{z-index:60;background:#15243b75;justify-content:center;align-items:flex-end;padding:0;display:flex;position:fixed;inset:0}.med-sheet{width:min(100%,560px);max-height:92vh;padding:20px 21px calc(23px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:24px 24px 0 0;animation:.2s ease-out med-sheet-up;overflow:auto;box-shadow:0 -12px 50px #15243b22}.med-sheet>header{border-bottom:1px solid #edf0f5;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:12px;display:flex}.med-sheet>header h2{margin:0;font-size:18px}.med-close{font-size:25px;line-height:1}.med-form{gap:12px;display:grid}.med-form>label,.med-two-fields>label{color:#415570;gap:5px;font-size:11px;font-weight:700;display:grid}.med-form input,.med-form select,.med-form textarea{color:var(--m-ink);background:#fbfcfe;border:1px solid #e1e7f0;border-radius:11px;outline:none;width:100%;min-height:44px;padding:9px 11px;font:500 13px Cairo,sans-serif}.med-form textarea{resize:vertical;min-height:auto}.med-form input:focus,.med-form select:focus,.med-form textarea:focus{background:#fff;border-color:#82a7ec;box-shadow:0 0 0 3px #3976eb15}.med-two-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.med-times{grid-template-columns:1fr 1fr;gap:8px;display:grid}.med-times small{color:var(--m-muted);grid-column:1/-1;font-size:10px}.med-form-actions{margin-top:4px}.med-form-actions .full{width:100%}.med-auth{background:radial-gradient(at 50% 0,#e7efff,#0000 52%),#f6f8fc;flex-direction:column;justify-content:center;align-items:center;min-height:100svh;padding:26px 18px;display:flex}.med-auth-card{background:#fff;border:1px solid #e9edf4;border-radius:24px;width:min(100%,430px);padding:29px;box-shadow:0 22px 65px #203a5c10}.med-auth-heading h1{margin:5px 0;font-size:25px}.med-auth-heading p{color:var(--m-muted);margin:0;font-size:12px}.med-auth .med-form>label{font-size:11px}.med-auth .med-form input{min-height:47px}.med-primary.full{width:100%;min-height:47px;margin-top:4px}.med-text-button{width:100%;padding:10px}.med-alert{border-radius:11px;padding:10px 12px;font-size:11px;line-height:1.8}.med-alert.error{color:#a4473c;background:#fff0ed}.med-alert.success{color:#19764f;background:#eaf8f1}.med-auth-foot{color:#8795a8;margin:17px 0;font-size:10px}.med-loading{place-content:center;justify-items:center;gap:12px;font-size:13px;display:grid}.med-loading span{border:3px solid #dce7fa;border-top-color:#3976eb;border-radius:50%;width:29px;height:29px;animation:.8s linear infinite med-spin}@keyframes med-spin{to{transform:rotate(360deg)}}@keyframes med-sheet-up{0%{opacity:.7;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@media (width>=760px){.med-app{padding-bottom:30px}.med-bottom-nav{border:1px solid var(--m-line);background:#fff;border-radius:17px;width:max-content;height:auto;margin:0 auto 20px;padding:5px;position:static;box-shadow:0 6px 20px #223a5b08}.med-bottom-nav button{min-width:105px}.med-sheet-backdrop{align-items:center;padding:20px}.med-sheet{border-radius:22px;max-height:min(85vh,780px);padding:22px 24px}.med-stat-grid{max-width:690px}.med-welcome{margin-top:10px}.med-page{padding:12px 0}.med-upload-card{max-width:560px}}@media (width<=540px){.med-topbar{height:65px;padding:0 16px}.med-brand-mark{border-radius:12px;width:38px;height:38px}.med-main{padding:23px 16px 28px}.med-user-name{max-width:118px;font-size:10px}.med-icon-button{width:37px;height:37px}.med-welcome{margin-bottom:18px}.med-welcome h1{font-size:22px}.med-avatar{width:46px;height:46px}.med-stat-grid{gap:9px}.med-stat-card{border-radius:16px;min-height:116px;padding:15px}.med-stat-card>b{margin-top:10px;font-size:27px}.med-stat-icon{border-radius:11px;width:31px;height:31px;top:13px;left:13px}.med-section{margin-top:25px}.med-section-heading h2{font-size:17px}.med-dose-card{grid-template-columns:60px minmax(0,1fr) auto;gap:9px;padding:10px}.med-dose-time{font-size:11px}.med-dose-info b{font-size:12px}.med-dose-info span{font-size:10px}.med-take-button,.med-done-button{padding:8px 9px;font-size:10px}.med-quick-actions{gap:8px;margin-top:20px}.med-quick-actions button{border-radius:14px;padding:11px 9px}.med-quick-actions b{font-size:10px}.med-quick-actions small{font-size:9px}.med-quick-actions button>span:first-child{width:31px;height:31px}.med-page-heading{align-items:flex-start}.med-page-heading h1{font-size:23px}.med-page-heading p{font-size:11px}.med-page-heading>.med-primary,.med-page-heading>.med-secondary{min-height:39px;padding:0 10px;font-size:10px}.med-card{grid-template-columns:37px minmax(0,1fr) auto;gap:9px;padding:12px}.med-med-icon{border-radius:12px;width:37px;height:37px}.med-card-title h3{font-size:13px}.med-schedule-chips span{padding:4px 6px;font-size:9px}.med-delete{padding:6px 7px;font-size:9px}.med-card-list.compact{grid-template-columns:1fr}.med-record-list article{grid-template-columns:33px minmax(0,1fr) auto;gap:8px;padding:10px}.record-dot{width:32px;height:32px}.med-record-list article>div>b{font-size:11px}.med-record-list article>div>small{font-size:9px}.record-status,.med-severity{padding:4px 6px;font-size:8px}.med-refresh-line{top:65px}.med-sheet{padding-inline:16px}.med-auth-card{border-radius:21px;padding:24px 20px}}@media (prefers-reduced-motion:reduce){.med-sheet,.med-refresh-line{animation:none}.med-loading span{animation-duration:2s}}.med-dose-actions{align-items:center;gap:5px;display:flex}.med-skip-button{color:#758198;cursor:pointer;white-space:nowrap;background:#f2f4f7;border:0;border-radius:10px;padding:8px 9px;font:700 10px Cairo,sans-serif}.med-skip-button:hover{background:#e8ebf0}.med-report-generator{border:1px solid var(--m-line);background:#fff;border-radius:17px;margin-bottom:14px;padding:17px}.med-report-generator h2{margin:0 0 3px;font-size:14px}.med-report-generator p{color:var(--m-muted);margin:0 0 12px;font-size:10px}.med-report-dates{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px;display:grid}.med-report-dates label{color:#50627b;gap:4px;font-size:10px;font-weight:700;display:grid}.med-report-dates input{color:var(--m-ink);background:#fbfcfe;border:1px solid #e1e7f0;border-radius:9px;min-width:0;padding:9px;font:500 11px Cairo,sans-serif}.med-print-report{display:none}@media print{body{background:#fff!important}body *{visibility:hidden!important}.med-print-report,.med-print-report *{visibility:visible!important}.med-app{background:#fff!important;min-height:0!important;padding:0!important;position:static!important}.med-print-report{color:#182d4c;direction:rtl;width:100%;padding:18mm 15mm;font-family:Cairo,sans-serif;position:absolute;inset:0 auto auto 0;display:block!important}.med-print-report>header{border-bottom:2px solid #e7edf5;justify-content:space-between;align-items:center;padding-bottom:12px;display:flex}.med-print-report>header>span{color:#718097;font-size:11px}.med-print-report h1{margin:20px 0 3px;font-size:24px}.med-print-report .print-period{color:#697b94;margin:0 0 20px;font-size:12px}.med-print-report h2{break-after:avoid;border-bottom:1px solid #e7edf5;margin:18px 0 7px;padding-bottom:5px;font-size:15px}.med-print-report .print-row{break-inside:avoid;border-bottom:1px solid #f0f2f6;justify-content:space-between;gap:14px;padding:7px 3px;font-size:11px;display:flex}.med-print-report .print-row span{color:#63748c;text-align:left}.med-brand-mark{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:A4;margin:0}}.med-card-actions{justify-items:stretch;gap:6px;display:grid}.med-edit{color:#426db8;cursor:pointer;background:#f8faff;border:1px solid #dce5f3;border-radius:9px;padding:6px 10px;font:600 10px Cairo,sans-serif}.med-edit:hover{background:#edf3ff}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;background:#edf3fb}html,body,#root{width:100%;min-height:100%;margin:0}body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}.med-app,.med-auth{--glass-fill:#ffffff9e;--glass-edge:#ffffffc7;--glass-shadow:0 16px 44px #314b761c, inset 0 1px #ffffffe0;isolation:isolate;background-color:#edf3fb;background-image:radial-gradient(at 12% 8%,#77aaff3d,#0000 36%),radial-gradient(at 90% 37%,#80e2d92b,#0000 34%),linear-gradient(155deg,#f1f5fc,#e9f0f9 55%,#f3f6fb);position:relative;overflow-x:clip}.med-app:before,.med-auth:before{content:"";z-index:-1;pointer-events:none;filter:blur(26px);will-change:transform;background:radial-gradient(at 19% 34%,#7aa5ff42,#0000 25%),radial-gradient(at 78% 20%,#77e6e033,#0000 23%),radial-gradient(at 70% 82%,#bba4ff2b,#0000 26%);animation:18s ease-in-out infinite alternate med-glass-drift;position:fixed;inset:-16%;transform:translate(0,0)}.med-main{z-index:1;position:relative}.med-app{min-height:100dvh}.med-topbar{height:calc(76px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);-webkit-backdrop-filter:blur(28px)saturate(180%);backdrop-filter:blur(28px)saturate(180%);background:#f9fcff94;border-bottom-color:#ffffffb8;box-shadow:0 8px 28px #344e770e}.med-stat-card,.med-dose-card,.med-quick-actions button,.med-card,.med-record-list article,.med-doctor-card,.med-upload-card,.med-report-generator,.med-empty,.med-auth-card{border-color:var(--glass-edge);box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(24px)saturate(170%);backdrop-filter:blur(24px)saturate(170%);background:linear-gradient(145deg,#ffffffbd,#f8fbff87);transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s,background .3s}.med-stat-card,.med-dose-card,.med-card,.med-record-list article,.med-quick-actions button,.med-upload-card,.med-report-generator{animation:.48s cubic-bezier(.2,.8,.2,1) both med-glass-enter}.med-stat-card:nth-child(2),.med-dose-card:nth-child(2),.med-card:nth-child(2),.med-record-list article:nth-child(2),.med-quick-actions button:nth-child(2){animation-delay:45ms}.med-stat-card:nth-child(3),.med-dose-card:nth-child(3),.med-card:nth-child(3),.med-record-list article:nth-child(3),.med-quick-actions button:nth-child(3){animation-delay:90ms}.med-stat-card:after,.med-dose-card:after,.med-card:after{content:"";pointer-events:none;border-radius:inherit;opacity:.48;background:linear-gradient(118deg,#0000 15%,#ffffff6b 48%,#0000 76%);position:absolute;inset:0}.med-stat-card,.med-dose-card,.med-card{position:relative;overflow:hidden}.med-dose-card{border-radius:19px}.med-stat-card{border-radius:22px}.med-quick-actions button{border-radius:19px}.med-card{border-radius:20px}.med-record-list article{border-radius:18px}.med-upload-card{border-style:dashed}.med-bottom-nav{-webkit-backdrop-filter:blur(30px)saturate(185%);backdrop-filter:blur(30px)saturate(185%);padding-bottom:calc(5px + env(safe-area-inset-bottom,0px));height:calc(77px + env(safe-area-inset-bottom,0px));background:#f8fbffa8;border-top-color:#ffffffd1;box-shadow:0 -10px 34px #2b436a14}.med-bottom-nav button{isolation:isolate;touch-action:manipulation;min-height:57px;position:relative}.med-bottom-nav button:before{content:"";z-index:-1;opacity:0;background:linear-gradient(145deg,#ffffffd6,#e1edffb3);border:1px solid #ffffffd1;border-radius:15px;transition:opacity .22s,transform .3s cubic-bezier(.2,.8,.2,1);position:absolute;inset:3px 10px;transform:scale(.9);box-shadow:0 5px 15px #305ba417,inset 0 1px #fff}.med-bottom-nav button.active:before{opacity:1;transform:scale(1)}.med-bottom-nav button.active{color:#3269d5}.med-icon-button,.med-close,.med-primary,.med-secondary,.med-take-button,.med-done-button,.med-skip-button,.med-edit,.med-delete{touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .18s,box-shadow .25s,background .25s}.med-primary{background:linear-gradient(135deg,#5a97fff2,#3169dde6);border-color:#ffffff8a;box-shadow:0 8px 22px #3976eb40,inset 0 1px #ffffff7a}.med-icon-button,.med-close{-webkit-backdrop-filter:blur(16px)saturate(160%);backdrop-filter:blur(16px)saturate(160%);background:#ffffff8a;border-color:#ffffffdb;box-shadow:0 5px 17px #32486e14,inset 0 1px #fff}.med-sheet-backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#15243b57}.med-sheet{-webkit-backdrop-filter:blur(32px)saturate(175%);backdrop-filter:blur(32px)saturate(175%);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#f9fcffe0;border:1px solid #ffffffdb;max-height:min(92dvh,860px);box-shadow:0 -18px 55px #1d34582e,inset 0 1px #fff}.med-form input,.med-form select,.med-form textarea,.med-report-dates input{appearance:none;background:#ffffffb0;border-color:#d7e1f0e6;font-size:16px}.med-auth{min-height:100dvh;padding-top:calc(26px + env(safe-area-inset-top,0px));padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))}.med-auth-card{border-radius:28px}.med-auth .med-primary{min-height:50px}.med-toast{-webkit-backdrop-filter:blur(24px)saturate(150%);backdrop-filter:blur(24px)saturate(150%);background:#193352d6;border:1px solid #fff3;box-shadow:0 12px 36px #192d4b33,inset 0 1px #ffffff1f}@keyframes med-glass-enter{0%{opacity:0;transform:translateY(9px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes med-glass-drift{0%{transform:translate(-1.5%,-1%)scale(1)}to{transform:translate(1.5%,1.2%)scale(1.06)}}@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.med-topbar,.med-bottom-nav,.med-stat-card,.med-dose-card,.med-card,.med-record-list article,.med-quick-actions button,.med-sheet,.med-auth-card{background:#f8fbfff5}}@media (hover:hover) and (pointer:fine){.med-stat-card:hover,.med-dose-card:hover,.med-card:hover,.med-record-list article:hover,.med-quick-actions button:hover{border-color:#80a9eeb8;transform:translateY(-3px);box-shadow:0 22px 48px #314b7626,inset 0 1px #fff}.med-icon-button:hover,.med-primary:hover{transform:translateY(-1px)}}@media (hover:none),(pointer:coarse){.med-quick-actions button:active,.med-primary:active,.med-secondary:active,.med-take-button:active,.med-skip-button:active,.med-icon-button:active{transform:scale(.97)}.med-card,.med-stat-card,.med-dose-card{box-shadow:0 12px 32px #314b761a,inset 0 1px #ffffffe6}}@media (width<=540px){.med-topbar{height:calc(65px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}.med-main{padding-top:20px;padding-bottom:30px}.med-stat-grid,.med-dose-list,.med-card-list,.med-record-list{gap:11px}.med-sheet-backdrop{align-items:flex-end}.med-sheet{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}.med-form input,.med-form select,.med-form textarea{min-height:48px}.med-form textarea{min-height:72px}}@media (prefers-reduced-motion:reduce){.med-app:before,.med-auth:before,.med-stat-card,.med-dose-card,.med-card,.med-record-list article,.med-quick-actions button,.med-upload-card,.med-report-generator{animation:none}.med-bottom-nav button:before,.med-stat-card,.med-dose-card,.med-card,.med-record-list article,.med-quick-actions button,.med-primary,.med-icon-button{transition:none}}@media print{.med-app:before,.med-auth:before{display:none!important}}.med-auth{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:calc(24px + env(safe-area-inset-top,0px)) 12px 0;background-color:#edf3fb;background-image:radial-gradient(at 16% 8%,#78a9ff4d,#0000 40%),radial-gradient(at 85% 35%,#7edede38,#0000 39%),linear-gradient(150deg,#edf3fb,#e5edf8 68%,#eff4fa);justify-content:flex-end;position:relative;overflow:clip auto}.med-auth:after{content:"";z-index:-1;pointer-events:none;background:radial-gradient(at 50% 100%,#7b9fe129,#0000 58%);animation:7s ease-in-out infinite alternate med-auth-glow;position:fixed;inset:0}.med-auth-card{isolation:isolate;width:min(100%,510px);padding:30px 24px calc(25px + env(safe-area-inset-bottom,0px));-webkit-backdrop-filter:blur(34px)saturate(185%);backdrop-filter:blur(34px)saturate(185%);will-change:transform, opacity;background:linear-gradient(145deg,#ffffffd6,#f7faffad);border-bottom:0;border-radius:32px 32px 0 0;margin:auto auto 0;animation:.72s cubic-bezier(.18,.86,.26,1.08) both med-login-rise;position:relative;box-shadow:0 -18px 54px #2c467124,inset 0 1px #fffffff2}.med-auth-card:before{content:"";background:#5a6c8b38;border-radius:99px;width:42px;height:5px;position:absolute;top:11px;left:calc(50% - 21px)}.med-auth .med-brand{margin-bottom:24px}.med-auth .med-brand-mark{border-radius:16px;width:48px;height:48px}.med-auth-heading{margin-bottom:21px}.med-auth-heading .med-kicker{align-items:center;gap:8px;display:inline-flex}.med-auth-heading .med-kicker:before{content:"";background:#53b9aa;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #53b9aa1f}.med-auth-heading h1{letter-spacing:-.035em;font-size:clamp(25px,6vw,30px)}.med-auth-heading p{font-size:13px;line-height:1.8}.med-auth .med-form{gap:15px}.med-auth .med-form>label{color:#3d526d;gap:7px;font-size:12px}.med-auth .med-form input{background:#ffffffc7;border-color:#d5e0f0e6;border-radius:14px;min-height:51px;box-shadow:inset 0 1px #ffffffe6}.med-auth .med-form input:focus{background:#fffffff7;border-color:#80a7ef;box-shadow:0 0 0 4px #3976eb1c,0 6px 16px #3976eb12}.med-auth .med-primary.full{border-radius:15px;min-height:53px;margin-top:3px;font-size:14px}.med-auth .med-text-button{min-height:44px;font-size:12px}.med-auth-foot{z-index:1;text-align:center;margin:12px 0 14px;position:relative}@keyframes med-login-rise{0%{opacity:0;transform:translateY(72px)scale(.985)}72%{opacity:1;transform:translateY(-5px)scale(1)}to{opacity:1;transform:translate(0,0)scale(1)}}@keyframes med-auth-glow{0%{opacity:.55}to{opacity:1}}@media (width>=700px){.med-auth{justify-content:center;padding:36px 24px}.med-auth-card{border:1px solid #ffffffdb;border-radius:30px;width:min(100%,460px);margin:auto;padding:34px}.med-auth-card:before{display:none}.med-auth-foot{margin:14px 0 0}}@media (height<=720px) and (width<=699px){.med-auth{padding-top:calc(12px + env(safe-area-inset-top,0px))}.med-auth-card{padding-top:24px;padding-bottom:calc(19px + env(safe-area-inset-bottom,0px))}.med-auth .med-brand{margin-bottom:16px}.med-auth-heading{margin-bottom:14px}.med-auth .med-form{gap:11px}}@media (prefers-reduced-motion:reduce){.med-auth:after{animation:none}.med-auth-card{will-change:auto;animation:none}}@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.med-auth-card{background:#fafcfff7}}.med-welcome-splash{z-index:5;pointer-events:none;color:#1d3658;-webkit-backdrop-filter:blur(22px)saturate(155%);backdrop-filter:blur(22px)saturate(155%);will-change:opacity, transform, filter;background:radial-gradient(at 18% 18%,#7aa9ff45,#0000 38%),radial-gradient(at 84% 74%,#7edede38,#0000 39%),linear-gradient(145deg,#f4f8ff,#eaf1fb 58%,#f5f8fc);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:24px;animation:.58s cubic-bezier(.55,0,.75,.35) 1.12s forwards med-welcome-exit;display:flex;position:fixed;inset:0}.med-splash-orb{place-items:center;width:112px;height:112px;margin-bottom:8px;animation:.72s cubic-bezier(.18,.85,.25,1.2) both med-splash-orb-in;display:grid;position:relative}.med-splash-orb:before,.med-splash-orb:after{content:"";border:1px solid #ffffffdb;border-radius:37px;animation:2.4s ease-out .28s infinite med-splash-ring;position:absolute;inset:4px;box-shadow:0 0 0 9px #ffffff26,0 12px 38px #4670b91f}.med-splash-orb:after{border-color:#ffffff73;animation-delay:.72s;inset:-9px;box-shadow:0 0 0 1px #6e9fee14}.med-splash-mark{z-index:1;color:#fff;-webkit-backdrop-filter:blur(18px)saturate(160%);backdrop-filter:blur(18px)saturate(160%);background:linear-gradient(145deg,#649dfff5,#2c65dbf0);border:1px solid #ffffffad;border-radius:27px;place-items:center;width:76px;height:76px;animation:1.5s ease-in-out .5s infinite med-splash-heart;display:grid;position:relative;box-shadow:0 14px 32px #3976eb4d,inset 0 1px #ffffff8f}.med-splash-mark .med-icon{stroke-width:1.65px;width:34px;height:34px}.med-welcome-splash>strong{letter-spacing:-.045em;font-size:31px;font-weight:800;animation:.6s .25s both med-splash-copy}.med-welcome-splash>span{color:#71829a;font-size:12px;font-weight:600;animation:.6s .4s both med-splash-copy}.med-splash-progress{background:#567bb521;border-radius:9px;width:58px;height:4px;margin-top:18px;animation:.5s .48s both med-splash-copy;overflow:hidden}.med-splash-progress i{border-radius:inherit;transform-origin:100%;background:linear-gradient(90deg,#5a91f1,#59c1bd);width:100%;height:100%;animation:.9s cubic-bezier(.55,.08,.3,.98) .48s forwards med-splash-progress;display:block;transform:scaleX(0)}.med-auth-card{z-index:1;animation-delay:1.42s}@keyframes med-splash-orb-in{0%{opacity:0;filter:blur(8px);transform:translateY(18px)scale(.76)rotate(-8deg)}to{opacity:1;filter:blur();transform:translate(0,0)scale(1)rotate(0)}}@keyframes med-splash-copy{0%{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes med-splash-ring{0%{opacity:.65;transform:scale(.84)}to{opacity:0;transform:scale(1.2)}}@keyframes med-splash-heart{0%,to{transform:scale(1)}14%{transform:scale(1.06)}28%{transform:scale(1)}42%{transform:scale(1.035)}56%{transform:scale(1)}}@keyframes med-splash-progress{to{transform:scaleX(1)}}@keyframes med-welcome-exit{to{opacity:0;visibility:hidden;filter:blur(5px);transform:translateY(-7px)}}@media (prefers-reduced-motion:reduce){.med-welcome-splash{animation:.01ms linear forwards med-welcome-exit}.med-splash-orb,.med-splash-orb:before,.med-splash-orb:after,.med-splash-mark,.med-welcome-splash>strong,.med-welcome-splash>span,.med-splash-progress,.med-splash-progress i,.med-auth-card{animation:none}}@media (width<=380px){.med-splash-orb{width:96px;height:96px}.med-splash-mark{border-radius:24px;width:68px;height:68px}}@media (width>=760px){.med-app{padding-bottom:126px}.med-topbar{height:82px;padding-inline:max(34px,50vw - 660px)}.med-main{max-width:1320px;padding:42px 44px 30px}.med-welcome{margin:8px 0 30px}.med-welcome h1,.med-page-heading h1{font-size:clamp(30px,3vw,38px)}.med-welcome p,.med-page-heading p{font-size:14px}.med-stat-grid{grid-template-columns:repeat(2,minmax(250px,1fr));gap:18px;max-width:none}.med-stat-card{border-radius:24px;min-height:156px;padding:26px 28px}.med-stat-card>span:first-child{font-size:13px}.med-stat-card>b{margin-top:19px;font-size:38px}.med-stat-icon{border-radius:15px;width:44px;height:44px;top:24px;left:24px}.med-section{margin-top:34px}.med-section-heading h2{font-size:22px}.med-dose-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.med-dose-card{grid-template-columns:82px minmax(0,1fr) auto;min-height:86px;padding:15px 17px}.med-dose-info b{font-size:15px}.med-dose-info span{font-size:12px}.med-quick-actions{gap:12px;margin-top:34px}.med-quick-actions button{border-radius:20px;min-height:106px;padding:18px}.med-quick-actions b{font-size:13px}.med-quick-actions small{font-size:11px}.med-bottom-nav{border:1px solid #ffffffd1;border-radius:22px;width:max-content;max-width:calc(100vw - 40px);height:auto;margin:0;padding:6px;position:fixed;bottom:22px;left:50%;right:auto;transform:translate(-50%);box-shadow:0 15px 42px #23395c2b,inset 0 1px #fff}.med-bottom-nav button{min-width:112px;max-width:150px;height:62px}.med-page{min-height:60vh;padding:14px 0 25px}.med-page-heading{align-items:center;margin-bottom:28px}.med-page-heading>.med-primary,.med-page-heading>.med-secondary{min-height:48px;padding-inline:20px;font-size:13px}.med-card-list:not(.compact){grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.med-card{border-radius:21px;gap:16px;min-height:130px;padding:20px}.med-card-content{align-self:center}.med-card-title h3{font-size:17px}.med-schedule-chips span{padding:5px 9px;font-size:11px}.med-card-actions{align-self:center;min-width:68px}.med-edit,.med-delete{min-height:36px;font-size:11px}.med-record-list{gap:12px}.med-record-list article{grid-template-columns:44px minmax(0,1fr) auto;min-height:68px;padding:14px 16px}.med-record-list article>div>b{font-size:14px}.med-record-list article>div>small{font-size:11px}.med-subheading{margin-top:30px;font-size:19px}.med-upload-card{border-radius:22px;max-width:820px;min-height:200px}.med-report-generator{max-width:820px;padding:23px}.med-auth{padding:54px 28px}.med-auth-card{border-radius:32px;width:min(100%,520px);padding:40px}.med-auth .med-brand{margin-bottom:30px}.med-auth-heading{margin-bottom:26px}.med-auth-heading h1{font-size:34px}.med-auth .med-form{gap:18px}.med-auth .med-form>label{font-size:13px}.med-auth .med-form input{min-height:54px}}@media (width>=980px){.med-view-home{grid-template-columns:minmax(0,1.5fr) minmax(290px,.72fr);align-items:start;column-gap:32px;display:grid}.med-view-home>.med-welcome{grid-column:1/-1}.med-view-home>.med-stat-grid{grid-column:1/-1;width:min(100%,850px)}.med-view-home>.med-section{grid-column:1;margin-top:32px}.med-view-home>.med-quick-actions{grid-area:3/2;grid-template-columns:1fr;align-self:start;margin-top:32px}.med-view-home>.med-quick-actions button{min-height:108px}.med-view-home .med-dose-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1440px){.med-main{max-width:1440px;padding-inline:56px}.med-view-home{grid-template-columns:minmax(0,1.65fr) minmax(330px,.7fr);column-gap:42px}.med-dose-list{gap:16px}.med-card-list:not(.compact){gap:18px}}.med-settings-page>.med-alert{margin:0 0 14px}.med-settings-grid{gap:14px;display:grid}.med-settings-card{-webkit-backdrop-filter:blur(24px)saturate(170%);backdrop-filter:blur(24px)saturate(170%);background:linear-gradient(145deg,#ffffffc2,#f8fbff94);border:1px solid #fffc;border-radius:20px;min-width:0;padding:18px;box-shadow:0 14px 38px #314b7618,inset 0 1px #ffffffe6}.med-settings-title{align-items:center;gap:12px;margin-bottom:17px;display:flex}.settings-symbol{border-radius:14px;flex:none;place-items:center;width:42px;height:42px;font-size:22px;display:grid}.blue-symbol{color:#3976eb;background:#edf3ff}.green-symbol{color:#269877;background:#e7f7f0}.purple-symbol{color:#7968d7;background:#f1edff}.peach-symbol{color:#dc8767;background:#fff0e9}.med-settings-title h2{margin:0;font-size:15px}.med-settings-title p{color:var(--m-muted);margin:3px 0 0;font-size:10px;line-height:1.7}.med-settings-form{gap:12px}.med-settings-form>label{color:#405570;gap:6px;font-size:11px;font-weight:700;display:grid}.med-age-result{color:#687b95;background:#eff5ffc7;border-radius:12px;justify-content:space-between;align-items:center;padding:11px 13px;font-size:11px;display:flex}.med-age-result b{color:#3269d5;font-size:15px}.med-settings-form>.med-primary{width:100%;min-height:45px}.med-toggle-row{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:54px;display:flex;position:relative}.med-toggle-row>span b,.med-toggle-row>span small{display:block}.med-toggle-row>span b{font-size:12px}.med-toggle-row>span small{max-width:300px;color:var(--m-muted);margin-top:3px;font-size:10px;line-height:1.6}.med-toggle-row input{opacity:0;cursor:pointer;z-index:2;width:48px;height:28px;position:absolute;inset-inline-end:0}.med-toggle-row i{background:#d8e0ec;border-radius:99px;flex:none;width:48px;height:28px;transition:background .22s;position:relative;box-shadow:inset 0 1px 3px #152d4e24}.med-toggle-row i:before{content:"";top:3px;background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .22s cubic-bezier(.2,.8,.2,1);position:absolute;inset-inline-start:3px;box-shadow:0 2px 6px #22375438}.med-toggle-row input:checked+i{background:linear-gradient(110deg,#55c3ad,#36a68d)}.med-toggle-row input:checked+i:before{transform:translate(-20px)}.med-toggle-row input:focus-visible+i{outline-offset:3px;outline:3px solid #3976eb3d}.med-settings-note{color:#697c95;background:#f0f5fccc;border-radius:11px;margin:11px 0 0;padding:10px 11px;font-size:10px;line-height:1.75}.med-install-steps{background:#f1f6fdd1;border-radius:12px;align-items:center;gap:10px;padding:11px 12px;display:flex}.med-install-steps>span{color:#3976eb;background:#e4edff;border-radius:50%;flex:none;place-items:center;width:27px;height:27px;font-size:12px;font-weight:800;display:grid}.med-install-steps p{color:#60748e;margin:0;font-size:11px;line-height:1.75}.med-install-card>.med-primary{width:100%}@media (width>=760px){.med-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.med-settings-card{border-radius:23px;min-height:220px;padding:23px}.med-settings-title{margin-bottom:21px}.med-settings-title h2{font-size:17px}.med-settings-title p,.med-settings-form>label{font-size:12px}.med-age-result{min-height:48px}.med-install-card{flex-direction:column;align-items:stretch;display:flex}.med-install-card>.med-primary,.med-install-steps{margin-top:auto}}@media (prefers-reduced-motion:reduce){.med-toggle-row i,.med-toggle-row i:before{transition:none}}.med-forgot-password{color:#3976eb;cursor:pointer;text-underline-offset:3px;background:0 0;border:0;align-self:flex-start;padding:0;font:700 12px Cairo,sans-serif;text-decoration:underline}.med-forgot-password:disabled{opacity:.55;cursor:wait}.med-assistant-page{flex-direction:column;min-height:min(72vh,760px);display:flex}.med-assistant-page .med-page-heading{align-items:center}.med-ai-consent{text-align:center;border:1px solid var(--m-line);background:linear-gradient(145deg,#fff,#f4f8ff);border-radius:22px;justify-items:center;margin:auto 0;padding:27px 22px;display:grid;box-shadow:0 16px 45px #203a5c0c}.med-ai-consent h2{margin:15px 0 7px;font-size:19px}.med-ai-consent p{max-width:520px;color:var(--m-muted);margin:0 0 18px;font-size:12px;line-height:1.9}.med-ai-orb{color:#3976eb;background:linear-gradient(145deg,#eaf1ff,#dce8ff);border-radius:18px;place-items:center;width:52px;height:52px;display:grid;box-shadow:inset 0 1px #fff,0 8px 20px #3976eb1b}.med-ai-orb .med-icon{width:24px;height:24px}.med-ai-disclaimer{color:#64758e;background:#f1f5fb;border-radius:12px;margin-bottom:10px;padding:10px 12px;font-size:10px;line-height:1.7}.med-chat-thread{scroll-behavior:smooth;flex-direction:column;flex:1;gap:11px;min-height:290px;max-height:calc(100svh - 310px);padding:5px 2px 13px;display:flex;overflow:auto}.med-chat-welcome{text-align:center;flex-direction:column;align-items:center;gap:8px;margin:auto;padding:14px 0;display:flex}.med-chat-welcome>b{font-size:14px}.med-chat-welcome>span:not(.med-ai-orb){color:var(--m-muted);font-size:11px}.med-chat-suggestions{flex-wrap:wrap;justify-content:center;gap:7px;margin-top:8px;display:flex}.med-chat-suggestions button{color:#50647f;cursor:pointer;background:#fff;border:1px solid #dce5f3;border-radius:18px;padding:7px 10px;font:600 10px Cairo,sans-serif}.med-chat-suggestions button:hover{color:#326ddd;border-color:#9eb7e7}.med-chat-message{border-radius:15px;max-width:min(88%,620px);padding:10px 13px;box-shadow:0 3px 12px #203a5c08}.med-chat-message>span{color:#7c8ca2;margin-bottom:3px;font-size:9px;font-weight:700;display:block}.med-chat-message p{white-space:pre-wrap;color:#293d59;margin:0;font-size:12px;line-height:1.85}.med-chat-message.from-user{background:#eaf1ff;border:1px solid #dce7fb;border-bottom-right-radius:5px;align-self:flex-start}.med-chat-message.from-assistant{border:1px solid var(--m-line);background:#fff;border-bottom-left-radius:5px;align-self:flex-end}.med-chat-typing{color:#7789a2!important}.med-chat-composer{background:#fff;border:1px solid #e0e7f1;border-radius:17px;align-items:flex-end;gap:8px;padding:8px;display:flex;box-shadow:0 8px 25px #203a5c0b}.med-chat-composer textarea{resize:vertical;min-width:0;max-height:120px;color:var(--m-ink);background:0 0;border:0;outline:0;flex:1;padding:8px;font:500 12px Cairo,sans-serif}.med-chat-composer .med-primary{align-items:center;gap:5px;min-height:40px;padding:0 12px;display:flex}.med-chat-composer .med-icon{width:16px;height:16px}.med-chat-footnote{color:#8492a6;margin:7px 2px 0;font-size:9px;line-height:1.6}@media (width>=760px){.med-assistant-page{max-width:860px;min-height:680px;margin-inline:auto}.med-ai-consent{padding:36px}.med-chat-thread{min-height:400px;max-height:580px}.med-chat-message p{font-size:13px}}@media (width<=540px){.med-assistant-page{min-height:calc(100svh - 145px)}.med-assistant-page .med-page-heading{gap:8px}.med-assistant-page .med-page-heading h1{font-size:21px}.med-assistant-page .med-page-heading>.med-secondary{min-height:35px;padding:0 9px;font-size:9px}.med-chat-thread{min-height:250px;max-height:calc(100svh - 330px)}.med-chat-message{max-width:94%}.med-chat-composer{border-radius:15px;padding:6px}.med-chat-composer .med-primary{min-height:38px;padding:0 9px;font-size:10px}}.med-chat-period-buttons{gap:7px;padding:2px 1px 9px;display:flex;overflow:auto}.med-chat-period-buttons button{color:#42648f;cursor:pointer;background:#fff;border:1px solid #dce5f3;border-radius:18px;flex:none;padding:7px 11px;font:700 10px Cairo,sans-serif}.med-chat-period-buttons button:hover:not(:disabled){color:#2f67cf;background:#f6f9ff;border-color:#8aa9df}.med-chat-period-buttons button:disabled{opacity:.55;cursor:wait}.med-assistant-fab{z-index:55;inset-inline-end:22px;color:#fff;-webkit-backdrop-filter:blur(18px)saturate(155%);cursor:pointer;background:linear-gradient(135deg,#5991ffd1,#2b63d5c7);border:1px solid #ffffffad;border-radius:28px;align-items:center;gap:8px;min-height:54px;padding:0 17px;font:700 12px Cairo,sans-serif;transition:transform .2s,box-shadow .2s,background .2s;display:flex;position:fixed;bottom:28px;overflow:hidden;box-shadow:0 12px 30px #3267d047,inset 0 1px #ffffff80}.med-assistant-fab:before{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,#ffffff5c,#0000);height:45%;position:absolute;inset:1px 18% auto 1px}.med-assistant-fab>*{z-index:1;position:relative}.med-assistant-fab:hover{transform:translateY(-2px);box-shadow:0 16px 34px #3267d057,inset 0 1px #ffffff94}.med-assistant-fab .med-icon{width:22px;height:22px}.med-assistant-fab.is-open{background:#2b405ec2;border-radius:50%;justify-content:center;width:50px;min-height:50px;padding:0}.med-assistant-popup{z-index:55;inset-inline-end:18px;-webkit-backdrop-filter:blur(30px)saturate(165%);isolation:isolate;background:linear-gradient(145deg,#ffffffc2,#eef5ffa1);border:1px solid #ffffffc2;border-radius:25px;flex-direction:column;width:min(420px,100vw - 28px);height:min(620px,100dvh - 145px);animation:.22s ease-out med-chat-pop;display:flex;position:fixed;bottom:92px;overflow:hidden;box-shadow:0 24px 72px #172d4b3d,inset 0 1px #ffffffd9}.med-assistant-popup:before{content:"";z-index:-1;pointer-events:none;background:radial-gradient(at 95% 0,#77a5ff38,#0000 42%),radial-gradient(at 0 100%,#bcdaff38,#0000 45%);position:absolute;inset:0}.med-assistant-popup-head{background:#ffffff5c;border-bottom:1px solid #ffffffb3;flex:none;align-items:center;gap:10px;padding:13px 14px;display:flex;box-shadow:0 1px #3253820a}.med-assistant-popup-head .med-ai-orb{background:linear-gradient(145deg,#ffffffeb,#d7e6ffb8);border:1px solid #ffffffe6;border-radius:14px;flex:none;width:38px;height:38px;box-shadow:0 6px 16px #3667bb1f,inset 0 1px #fff}.med-assistant-popup-head .med-ai-orb .med-icon{width:19px;height:19px}.med-assistant-popup-head>div{flex:1;min-width:0;display:grid}.med-assistant-popup-head>div b{font-size:12px}.med-assistant-popup-head>div small{color:var(--m-muted);font-size:9px}.med-assistant-close{color:#687a94;cursor:pointer;background:#ffffff7a;border:1px solid #ffffffd9;border-radius:50%;flex:none;width:31px;height:31px;font-size:21px;line-height:1;box-shadow:0 3px 9px #2d426014}.med-assistant-close:hover{color:#315fae;background:#ffffffd1}.med-assistant-clear{color:#4772bd;cursor:pointer;background:#ffffff5c;border:1px solid #ffffffbf;border-radius:13px;flex:none;padding:5px 8px;font:700 9px Cairo,sans-serif}.med-assistant-clear:hover{background:#ffffffbf}.med-popup-consent{-webkit-backdrop-filter:blur(16px);background:#ffffff7a;border:1px solid #ffffffd1;border-radius:20px;margin:auto 13px;padding:18px 16px;box-shadow:0 14px 34px #2b4c791a,inset 0 1px #ffffffe6}.med-popup-consent .med-ai-orb,.med-popup-consent h2{display:none}.med-popup-consent p{margin-bottom:12px;font-size:11px}.med-assistant-popup .med-chat-period-buttons{flex:none;padding:9px 11px 2px}.med-assistant-popup .med-chat-period-buttons button{-webkit-backdrop-filter:blur(12px);background:#ffffff75;border-color:#ffffffd9;box-shadow:0 2px 7px #243e630d}.med-assistant-popup .med-chat-period-buttons button:hover:not(:disabled){background:#ffffffc7}.med-assistant-popup .med-chat-thread{gap:8px;min-height:0;max-height:none;padding:10px}.med-assistant-popup .med-chat-welcome{padding:12px 2px}.med-assistant-popup .med-chat-welcome>b{font-size:12px}.med-assistant-popup .med-chat-suggestions{gap:5px}.med-assistant-popup .med-chat-suggestions button{-webkit-backdrop-filter:blur(12px);background:#ffffff7a;border-color:#ffffffd9;padding:5px 8px;font-size:9px}.med-assistant-popup .med-chat-message{-webkit-backdrop-filter:blur(14px);border-color:#ffffffd1;max-width:95%;padding:8px 10px}.med-assistant-popup .med-chat-message.from-user{background:#dbe9ffb8}.med-assistant-popup .med-chat-message.from-assistant{background:#ffffff9e}.med-assistant-popup .med-chat-message p{font-size:11px}.med-assistant-popup .med-chat-composer{-webkit-backdrop-filter:blur(18px);background:#ffffff80;border-color:#ffffffd1;flex:none;margin:0 10px;padding:5px;box-shadow:0 8px 24px #2b4c7917,inset 0 1px #ffffffd9}.med-assistant-popup .med-chat-composer textarea{font-size:11px}.med-assistant-popup .med-chat-composer .med-primary{background:linear-gradient(140deg,#4d82ebeb,#2f63cfe0);border:1px solid #ffffff80;box-shadow:0 5px 13px #3267d033}.med-assistant-popup .med-chat-footnote{flex:none;margin:4px 12px 8px;font-size:8px}.med-assistant-popup .med-ai-disclaimer{-webkit-backdrop-filter:blur(10px);background:#ffffff6b;border:1px solid #fff9}@keyframes med-chat-pop{0%{opacity:0;transform:translateY(10px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@media (width<=540px){.med-assistant-fab{inset-inline-end:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));min-height:49px;padding:0 14px}.med-assistant-fab.is-open{width:46px;min-height:46px}.med-assistant-popup{width:auto;inset-inline:10px;bottom:calc(145px + env(safe-area-inset-bottom,0px));border-radius:22px;height:min(570px,100dvh - 205px)}.med-assistant-popup-head{padding:10px 12px}.med-assistant-popup .med-chat-thread{padding:8px}.med-assistant-popup .med-chat-composer .med-primary{min-height:36px}}@media (prefers-reduced-motion:reduce){.med-assistant-popup{animation:none}.med-assistant-fab{transition:none}}.med-empty-icon{color:#3976eb;background:linear-gradient(145deg,#edf4ff,#e0ebff);border-radius:17px;place-items:center;width:52px;height:52px;display:grid;margin-bottom:9px!important}.med-empty-icon .med-icon{width:26px;height:26px}.med-greeting-icon{vertical-align:-.12em;color:#d89b31;display:inline-grid}.med-greeting-icon .med-icon{width:.9em;height:.9em}.med-chat-action-confirm{gap:8px;margin-top:10px;display:flex}.med-chat-action-confirm button{color:#344665;cursor:pointer;background:#ffffffb8;border:1px solid #57709b33;border-radius:12px;min-height:36px;padding:0 12px;font:700 11px Cairo,sans-serif}.med-chat-action-confirm button.med-primary{color:#fff;border:0}.med-chat-action-confirm button:disabled{opacity:.55;cursor:wait}
