.verify-page{min-height:100vh;min-height:100dvh;padding:var(--medai-space-6) var(--medai-space-4);background:var(--medai-bg-sunken,#f4f5f8);place-items:start center;display:grid}.verify-card{gap:var(--medai-space-4);width:min(100%,520px);padding:var(--medai-space-6);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);display:grid}.verify-logo{width:140px;height:auto}.verify-card h1,.verify-card h2,.verify-card p{margin:0}.verify-result{gap:var(--medai-space-2);padding:var(--medai-space-4);border-radius:var(--medai-radius-md);border:1px solid #0000;display:grid}.verify-result.is-ok{color:#05603a;background:#ecfdf3;border-color:#abefc6}.verify-result.is-warn{color:#93370d;background:#fffaeb;border-color:#fedf89}.verify-result.is-bad{color:#912018;background:#fef3f2;border-color:#fecdca}.verify-details{gap:var(--medai-space-3);margin:0;display:grid}.verify-details>div{gap:var(--medai-space-3);grid-template-columns:120px minmax(0,1fr);display:grid}.verify-details dt{color:var(--medai-text-muted)}.verify-details dd{color:var(--medai-text);gap:2px;margin:0;display:grid}.verify-details small{color:var(--medai-text-muted)}.verify-lines{gap:var(--medai-space-2);padding-top:var(--medai-space-3);border-top:1px solid var(--medai-border);display:grid}.verify-lines ul{gap:var(--medai-space-1,4px);margin:0;padding-left:1.2em;display:grid}.verify-hint,.verify-footer{color:var(--medai-text-muted)}@media (max-width:480px){.verify-card{padding:var(--medai-space-4)}.verify-details>div{grid-template-columns:1fr;gap:2px}}.verify-hash code{overflow-wrap:anywhere;display:block}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2)format("woff2"),url(/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-cyrillic-400-normal-obahsSVq.woff2)format("woff2"),url(/assets/inter-cyrillic-400-normal-HOLc17fK.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2)format("woff2"),url(/assets/inter-greek-ext-400-normal-KugGGMne.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-greek-400-normal-B4URO6DV.woff2)format("woff2"),url(/assets/inter-greek-400-normal-q2sYcFCs.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-vietnamese-400-normal-DMkecbls.woff2)format("woff2"),url(/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-ext-400-normal-C1nco2VV.woff2)format("woff2"),url(/assets/inter-latin-ext-400-normal-77YHD8bZ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-400-normal-C38fXH4l.woff2)format("woff2"),url(/assets/inter-latin-400-normal-CyCys3Eg.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2)format("woff2"),url(/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-cyrillic-500-normal-BasfLYem.woff2)format("woff2"),url(/assets/inter-cyrillic-500-normal-CxZf_p3X.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-greek-ext-500-normal-C4iEst2y.woff2)format("woff2"),url(/assets/inter-greek-ext-500-normal-2j5mBUwD.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-greek-500-normal-BIZE56-Y.woff2)format("woff2"),url(/assets/inter-greek-500-normal-Xzm54t5V.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-vietnamese-500-normal-DOriooB6.woff2)format("woff2"),url(/assets/inter-vietnamese-500-normal-mJboJaSs.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2)format("woff2"),url(/assets/inter-latin-ext-500-normal-BxGbmqWO.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-500-normal-Cerq10X2.woff2)format("woff2"),url(/assets/inter-latin-500-normal-BL9OpVg8.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2)format("woff2"),url(/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-cyrillic-600-normal-CWCymEST.woff2)format("woff2"),url(/assets/inter-cyrillic-600-normal-4D_pXhcN.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2)format("woff2"),url(/assets/inter-greek-ext-600-normal-B8X0CLgF.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-greek-600-normal-plRanbMR.woff2)format("woff2"),url(/assets/inter-greek-600-normal-BZpKdvQh.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2)format("woff2"),url(/assets/inter-vietnamese-600-normal-BuLX-rYi.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2)format("woff2"),url(/assets/inter-latin-ext-600-normal-CIVaiw4L.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-600-normal-LgqL8muc.woff2)format("woff2"),url(/assets/inter-latin-600-normal-CiBQ2DWP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2)format("woff2"),url(/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-cyrillic-700-normal-CjBOestx.woff2)format("woff2"),url(/assets/inter-cyrillic-700-normal-DrXBdSj3.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2)format("woff2"),url(/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-greek-700-normal-C3JjAnD8.woff2)format("woff2"),url(/assets/inter-greek-700-normal-BUv2fZ6O.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2)format("woff2"),url(/assets/inter-vietnamese-700-normal-BZaoP0fm.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2)format("woff2"),url(/assets/inter-latin-ext-700-normal-TidjK2hL.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-latin-700-normal-Yt3aPRUw.woff2)format("woff2"),url(/assets/inter-latin-700-normal-BLAVimhd.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/poppins-devanagari-500-normal-BIdkeU1p.woff2)format("woff2"),url(/assets/poppins-devanagari-500-normal-DMPDjHtT.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/poppins-latin-ext-500-normal-CK-6C4Hw.woff2)format("woff2"),url(/assets/poppins-latin-ext-500-normal-CgAe2rWW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/poppins-latin-500-normal-C8OXljZJ.woff2)format("woff2"),url(/assets/poppins-latin-500-normal-DGXqpDMm.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/poppins-devanagari-600-normal-STEjXBNN.woff2)format("woff2"),url(/assets/poppins-devanagari-600-normal-ClASKHrr.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/poppins-latin-ext-600-normal-CAhIAdZj.woff2)format("woff2"),url(/assets/poppins-latin-ext-600-normal-Df5ffKXP.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/poppins-latin-600-normal-zEkxB9Mr.woff2)format("woff2"),url(/assets/poppins-latin-600-normal-BJdTmd5m.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--medai-type-page-title:600 24px/32px var(--medai-font-display);--medai-tracking-page-title:-.36px;--medai-type-section-title:600 18px/26px var(--medai-font-display);--medai-tracking-section-title:-.18px;--medai-type-subsection-title:600 15px/22px var(--medai-font-display);--medai-tracking-subsection-title:0px;--medai-type-settings-group:600 12px/16px var(--medai-font);--medai-tracking-settings-group:.72px;--medai-type-body:400 15px/22px var(--medai-font);--medai-tracking-body:0px;--medai-type-paragraph:400 15px/24px var(--medai-font);--medai-tracking-paragraph:0px;--medai-type-label:500 15px/20px var(--medai-font);--medai-tracking-label:0px;--medai-type-body-emphasis:600 15px/22px var(--medai-font);--medai-tracking-body-emphasis:0px;--medai-type-table-header:500 13px/18px var(--medai-font);--medai-tracking-table-header:0px;--medai-type-secondary:400 13px/18px var(--medai-font);--medai-tracking-secondary:0px;--medai-type-caption:400 13px/18px var(--medai-font);--medai-tracking-caption:0px;--medai-type-caption-emphasis:500 13px/18px var(--medai-font);--medai-tracking-caption-emphasis:0px;--medai-type-overline:600 12px/16px var(--medai-font);--medai-tracking-overline:.72px;--medai-type-data-value:600 18px/26px var(--medai-font);--medai-tracking-data-value:-.18px;--medai-type-navigation-group:600 12px/16px var(--medai-font);--medai-tracking-navigation-group:.72px;--medai-type-reading:400 15px/26px var(--medai-font);--medai-tracking-reading:0px;--medai-type-metric:600 28px/36px var(--medai-font);--medai-tracking-metric:-.56px;--medai-type-chart-small:400 12px/16px var(--medai-font);--medai-tracking-chart-small:0px;--medai-type-chart-micro:600 12px/16px var(--medai-font);--medai-tracking-chart-micro:.2px;--medai-type-search-hero:400 20px/28px var(--medai-font);--medai-tracking-search-hero:0px;--medai-type-identifiers:400 15px/24px var(--medai-font);--medai-tracking-identifiers:0px;--medai-text-page:24px;--medai-text-section:18px;--medai-text-body:15px}@media (max-width:760px){:root{--medai-type-section-title:600 20px/28px var(--medai-font-display);--medai-type-subsection-title:600 17px/24px var(--medai-font-display);--medai-type-body:400 16px/24px var(--medai-font);--medai-type-paragraph:400 16px/26px var(--medai-font);--medai-type-label:500 16px/22px var(--medai-font);--medai-type-body-emphasis:600 16px/24px var(--medai-font);--medai-type-table-header:500 14px/20px var(--medai-font);--medai-type-secondary:400 14px/20px var(--medai-font);--medai-type-caption:400 14px/20px var(--medai-font);--medai-type-caption-emphasis:500 14px/20px var(--medai-font);--medai-type-reading:400 16px/26px var(--medai-font);--medai-type-search-hero:400 18px/26px var(--medai-font);--medai-type-identifiers:400 14px/20px var(--medai-font)}}:root{--medai-white:#fff;--medai-gray-25:#f9fafb;--medai-gray-50:#f4f5f7;--medai-gray-100:#ebedf0;--medai-gray-200:#e3e6ea;--medai-gray-300:#d0d5dc;--medai-gray-400:#8b929e;--medai-gray-500:#626978;--medai-gray-600:#4a5160;--medai-gray-700:#343a46;--medai-gray-800:#20242e;--medai-gray-900:#0b0d12;--medai-black:#000;--medai-success-50:#f0fdf4;--medai-success-200:#bbf7d0;--medai-success-600:#15803d;--medai-success-700:#166534;--medai-warning-50:#fffbeb;--medai-warning-200:#fde68a;--medai-warning-600:#b45309;--medai-warning-700:#92400e;--medai-danger-50:#fef2f2;--medai-danger-200:#fecaca;--medai-danger-600:#b91c1c;--medai-danger-700:#991b1b;--medai-info-50:#eff6ff;--medai-info-200:#bfdbfe;--medai-info-600:#1d4ed8;--medai-info-700:#1e40af;--medai-teal-50:#f0fdfa;--medai-teal-200:#99f6e4;--medai-teal-600:#0f766e;--medai-teal-700:#115e59;--medai-orange-50:#fff7ed;--medai-orange-200:#fed7aa;--medai-orange-600:#c2410c;--medai-orange-700:#9a3412;--medai-rose-50:#fff1f2;--medai-rose-200:#fecdd3;--medai-rose-600:#be123c;--medai-rose-700:#9f1239;--medai-slate-50:#f1f5f9;--medai-slate-200:#cbd5e1;--medai-slate-600:#475569;--medai-slate-700:#334155;--medai-bg:var(--medai-gray-50);--medai-bg-sunken:#f5f6fa;--medai-surface:#fff;--medai-surface-hover:#f5f6fa;--medai-surface-selected:var(--medai-accent-wash);--medai-border:#e3e6ee;--medai-border-strong:#cdd2de;--medai-border-control:var(--medai-gray-400);--medai-border-control-hover:var(--medai-gray-500);--medai-text:#151826;--medai-text-secondary:#4a5065;--medai-text-muted:#585e73;--medai-text-placeholder:#626978;--medai-text-on-action:#fff;--medai-icon:#6b7186;--medai-action:#1b55e2;--medai-action-hover:#1747c0;--medai-action-active:#133da6;--medai-focus:#1b55e2;--medai-overlay:#0b0d1266;--medai-surface-translucent:#ffffffeb;--medai-status-scheduled-bg:var(--medai-warning-50);--medai-status-scheduled-fg:var(--medai-warning-700);--medai-status-scheduled-line:var(--medai-warning-600);--medai-status-confirmed-bg:var(--medai-info-50);--medai-status-confirmed-fg:var(--medai-info-700);--medai-status-confirmed-line:var(--medai-info-600);--medai-status-progress-bg:var(--medai-teal-50);--medai-status-progress-fg:var(--medai-teal-700);--medai-status-progress-line:var(--medai-teal-600);--medai-status-completed-bg:var(--medai-slate-50);--medai-status-completed-fg:var(--medai-slate-700);--medai-status-completed-line:var(--medai-slate-600);--medai-status-cancelled-bg:var(--medai-rose-50);--medai-status-cancelled-fg:var(--medai-rose-700);--medai-status-cancelled-line:var(--medai-rose-600);--medai-status-noshow-bg:var(--medai-orange-50);--medai-status-noshow-fg:var(--medai-orange-700);--medai-status-noshow-line:var(--medai-orange-600);--medai-avatar-start:#c9d6ff;--medai-avatar-end:#ead6fb;--medai-avatar-ink:#2a3170;--medai-accent-wash:#1b55e212;--medai-accent-line:#1b55e259;--medai-accent-glow:0 8px 20px #1b55e242;--medai-ink-strong:#151826;--medai-font:"Inter", system-ui, sans-serif;--medai-font-display:"Poppins", "Inter", system-ui, sans-serif;--medai-space-1:4px;--medai-space-2:8px;--medai-space-3:12px;--medai-space-4:16px;--medai-space-6:24px;--medai-space-8:32px;--medai-space-12:48px;--medai-space-16:64px;--medai-radius-sm:10px;--medai-radius-md:14px;--medai-radius-lg:20px;--medai-radius-xl:28px;--medai-radius-full:999px;--medai-shadow-xs:0 1px 2px #10141c0f;--medai-shadow-card:0 1px 2px #1e24460d, 0 4px 14px #1e24460f;--medai-shadow-raised:0 2px 4px #1e24460a, 0 14px 36px #1e244617;--medai-shadow-sm:var(--medai-shadow-card);--medai-shadow-md:var(--medai-shadow-raised);--medai-shadow-lg:0 4px 10px #1e244614, 0 24px 60px #1e24462e;--medai-control-sm:32px;--medai-control-md:40px;--medai-control-lg:48px;--medai-focus-ring:2px solid var(--medai-focus);--medai-focus-offset:0px;--medai-shell-sidebar-width:248px;--medai-shell-sidebar-collapsed-width:72px;--medai-shell-topbar-height:56px;--medai-page-inset:32px;--medai-section-gap:24px;--medai-z-raised:10;--medai-z-sticky:20;--medai-z-sidebar:30;--medai-z-dropdown:40;--medai-z-overlay:100;--medai-z-modal:110;--medai-z-toast:120;--medai-duration:.15s;--medai-ease:cubic-bezier(.2, 0, 0, 1);--medai-brand:var(--medai-action);--medai-ink:var(--medai-text);--medai-canvas:var(--medai-bg);--medai-surface-subtle:var(--medai-surface-hover);--medai-accent-soft:var(--medai-surface-hover);--medai-selection-surface:var(--medai-surface-selected);--medai-control-border:var(--medai-border-control);--medai-control-hover-border:var(--medai-border-control-hover);--medai-success:var(--medai-success-600);--medai-success-bg:var(--medai-success-50);--medai-warning:var(--medai-warning-600);--medai-warning-bg:var(--medai-warning-50);--medai-danger:var(--medai-danger-600);--medai-danger-bg:var(--medai-danger-50);--medai-radius-control:var(--medai-radius-md);--medai-radius-card:var(--medai-radius-lg);--medai-radius-pill:var(--medai-radius-full);--medai-shadow-popover:var(--medai-shadow-md);--medai-workspace-inset:var(--medai-page-inset);--medai-workspace-mobile-inset:16px;--medai-workspace-section-gap:var(--medai-section-gap);--medai-workspace-surface-inset:24px;--medai-workspace-surface-border:0px;--medai-workspace-surface-radius:var(--medai-radius-xl)}@media (max-width:760px),(pointer:coarse){:root{--medai-control-sm:44px;--medai-control-md:48px;--medai-control-lg:52px}}@media (max-width:760px){:root{--medai-page-inset:16px;--medai-workspace-surface-inset:16px}}.medai-button-primary{background:var(--medai-action);color:var(--medai-text-on-action);font:var(--medai-type-label);border-radius:var(--medai-radius-full);box-shadow:var(--medai-accent-glow);min-height:var(--medai-control-lg);padding:0 var(--medai-space-6);border:0}.medai-button-primary:hover{background:var(--medai-action-hover)}.medai-button-primary:focus-visible{outline:var(--medai-focus-ring);outline-offset:var(--medai-focus-offset)}*{box-sizing:border-box}svg{flex-shrink:0}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{background-color:var(--medai-bg);color:var(--medai-text);font-family:var(--medai-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}h1,h2,h3,h4,p{margin-top:0}h1{margin-bottom:var(--medai-space-2);color:var(--medai-text)}h2{margin-bottom:var(--medai-space-4);color:var(--medai-text)}h3{margin-bottom:var(--medai-space-3);color:var(--medai-text)}p{color:var(--medai-text-muted);margin-bottom:var(--medai-space-4)}a{color:var(--medai-text);text-decoration:none}a:hover{text-underline-offset:3px;text-decoration:underline}::selection{background:var(--medai-gray-200)}button,a.primary{min-height:var(--medai-control-md);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);padding:0 var(--medai-space-4);background:var(--medai-surface);color:var(--medai-action);box-shadow:var(--medai-shadow-card);justify-content:center;align-items:center;gap:var(--medai-space-2);cursor:pointer;white-space:nowrap;transition:background-color var(--medai-duration) var(--medai-ease), border-color var(--medai-duration) var(--medai-ease), color var(--medai-duration) var(--medai-ease), box-shadow var(--medai-duration) var(--medai-ease);display:inline-flex}button:hover{background:var(--medai-surface-hover);border-color:var(--medai-border-strong)}button:active{background:var(--medai-surface-selected)}button:disabled,button[aria-disabled=true]{opacity:.5;cursor:not-allowed;box-shadow:none}button[aria-busy=true]{cursor:progress}input,select,textarea{width:100%;min-height:var(--medai-control-md);padding:0 var(--medai-space-3);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-md);color:var(--medai-text);background:var(--medai-surface);transition:border-color var(--medai-duration) var(--medai-ease), box-shadow var(--medai-duration) var(--medai-ease)}:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=search]),select,textarea):hover:not(:focus):not(:disabled){border-color:var(--medai-border-control-hover);box-shadow:inset 0 0 0 1px var(--medai-border-control-hover)}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--medai-text);outline:var(--medai-focus-ring);outline-offset:var(--medai-focus-offset)}input:disabled,select:disabled,textarea:disabled{background:var(--medai-surface-hover);color:var(--medai-text-muted);cursor:not-allowed}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--medai-danger-600);box-shadow:0 0 0 3px var(--medai-danger-50)}input::placeholder,textarea::placeholder{color:var(--medai-text-placeholder)}select{appearance:none;text-overflow:ellipsis;background-image:url(/brand/chevron-down.svg);background-position:right 12px center;background-repeat:no-repeat;background-size:16px 16px;min-width:0;max-width:100%;padding-right:40px}select[multiple],select[size]:not([size="1"]){appearance:auto;padding:var(--medai-space-2) var(--medai-space-3);background-image:none}input[type=date],input[type=time],input[type=datetime-local]{min-width:0;padding-right:var(--medai-space-3)}@media (forced-colors:active){select{appearance:auto;background-image:none}}textarea{resize:vertical;min-height:96px;padding:var(--medai-space-2) var(--medai-space-3)}input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--medai-action);flex:none;margin:0;padding:0}input[type=color]{padding:var(--medai-space-1)}input[type=file]{padding:var(--medai-space-1);min-height:var(--medai-control-md)}input[type=file]::file-selector-button{margin-right:var(--medai-space-3);min-height:calc(var(--medai-control-md) - 2 * var(--medai-space-1) - 2px);padding:0 var(--medai-space-3);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-full);background:var(--medai-surface);color:var(--medai-text);cursor:pointer}:focus-visible{outline:2px solid var(--medai-focus);outline-offset:var(--medai-focus-offset)}@media (forced-colors:active){:focus-visible{outline-color:highlight}}form{gap:var(--medai-space-4);flex-direction:column;display:flex}table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}th{color:var(--medai-text-muted);height:40px;padding:0 var(--medai-space-4);border-bottom:1px solid var(--medai-border);background:var(--medai-bg-sunken);vertical-align:middle}td{padding:var(--medai-space-3) var(--medai-space-4);border-bottom:1px solid var(--medai-border);vertical-align:middle}tbody tr{transition:background-color var(--medai-duration) var(--medai-ease)}tbody tr:hover{background:var(--medai-bg-sunken)}tr:last-child td{border-bottom:0}td small{color:var(--medai-text-muted);white-space:normal;max-width:280px;margin-top:2px;display:block}td button{min-height:var(--medai-control-sm);padding:0 var(--medai-space-3)}td select{min-height:var(--medai-control-sm)}summary{cursor:pointer}@media (max-width:760px),(pointer:coarse){summary{align-items:center;min-height:44px;display:flex}}hr{border:0;border-top:1px solid var(--medai-border);margin:var(--medai-space-6) 0}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.primary,a.primary{background:var(--medai-action);color:var(--medai-text-on-action);border-color:var(--medai-action);border-radius:var(--medai-radius-full);box-shadow:var(--medai-accent-glow)}.primary:hover,a.primary:hover{background:var(--medai-action-hover);border-color:var(--medai-action-hover);color:var(--medai-text-on-action);text-decoration:none}.primary:active,a.primary:active{background:var(--medai-action-active);border-color:var(--medai-action-active);box-shadow:var(--medai-accent-glow)}.text-button,.ghost{box-shadow:none;color:var(--medai-text);background:0 0;border-color:#0000}.text-button:hover,.ghost:hover{background:var(--medai-surface-hover);border-color:#0000}.text-button:active,.ghost:active{background:var(--medai-surface-selected)}.danger-action,button.danger{color:var(--medai-danger-700);border-color:var(--medai-danger-200);background:var(--medai-surface)}.danger-action:hover,button.danger:hover{background:var(--medai-danger-50);border-color:var(--medai-danger-600)}button.size-sm,a.primary.size-sm{min-height:var(--medai-control-sm);padding:0 var(--medai-space-3)}button.size-lg,a.primary.size-lg{min-height:var(--medai-control-lg);padding:0 var(--medai-space-6)}.icon-button{width:var(--medai-control-md);box-shadow:none;color:var(--medai-icon);background:0 0;border-color:#0000;padding:0}.icon-button:hover{background:var(--medai-surface-hover);color:var(--medai-text);border-color:#0000}button>.spin{width:16px;height:16px}form .primary{align-self:flex-start}.field{gap:var(--medai-space-2);color:var(--medai-text);flex-direction:column;min-width:0;display:flex}.field small{color:var(--medai-text-muted)}.form-grid{gap:var(--medai-space-4) var(--medai-space-6);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.card>.field{margin-bottom:var(--medai-space-4)}.notice+button,.notice+a.primary{margin-top:var(--medai-space-4)}.check{gap:var(--medai-space-3);align-items:center;display:flex}:is(h1,h2,h3,h4):has(>svg:first-child){align-items:center;gap:var(--medai-space-2);display:flex}:is(h1,h2,h3,h4)>svg:first-child{color:var(--medai-icon)}.eyebrow{color:var(--medai-text-muted);margin-bottom:var(--medai-space-2)}.subtle{color:var(--medai-text-muted)}.narrow{max-width:760px}.card{background:var(--medai-surface);border-radius:var(--medai-radius-xl);box-shadow:var(--medai-shadow-card);padding:var(--medai-space-6);margin-bottom:var(--medai-section-gap);border:0}.stack{gap:var(--medai-section-gap);flex-direction:column;display:flex}.stack>.card{margin:0}.section-head{justify-content:space-between;align-items:center;gap:var(--medai-space-4);margin-bottom:var(--medai-space-4);display:flex}.section-head h2,.section-head h3{margin-bottom:0}.section-head p{margin:var(--medai-space-1) 0 0}.section-head h2,.section-head a{align-items:center;gap:var(--medai-space-2);display:flex}.section-head h2 svg{color:var(--medai-icon)}.section-head select,.section-head input{width:auto;max-width:280px}.section-head .field{min-width:180px}.page-head{justify-content:space-between;align-items:flex-end;gap:var(--medai-space-4);margin-bottom:var(--medai-section-gap);display:flex}.page-head h1{margin-bottom:var(--medai-space-1)}.page-head .eyebrow{margin-bottom:var(--medai-space-2)}.page-head p:last-child{margin-bottom:0}.page-head>button,.page-head>a{flex:none}.back-link{align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-sm);margin-bottom:var(--medai-space-3);color:var(--medai-text-muted);display:inline-flex}.back-link:hover{color:var(--medai-text);text-decoration:none}.icon-tile{width:var(--medai-control-sm);height:var(--medai-control-sm);color:var(--medai-icon);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-md);flex:none;place-items:center;display:grid}.table-wrap{border-top:1px solid var(--medai-border);overflow-x:auto}.card>.table-wrap,.card .section-head+.table-wrap{margin-inline:calc(-1 * var(--medai-space-6))}.card>.table-wrap th:first-child,.card>.table-wrap td:first-child,.card .section-head+.table-wrap th:first-child,.card .section-head+.table-wrap td:first-child{padding-left:var(--medai-space-6)}.card>.table-wrap th:last-child,.card>.table-wrap td:last-child,.card .section-head+.table-wrap th:last-child,.card .section-head+.table-wrap td:last-child{padding-right:var(--medai-space-6)}.card>.table-wrap:last-child{margin-bottom:calc(-1 * var(--medai-space-6))}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.empty{text-align:center;padding:var(--medai-space-12) var(--medai-space-6);color:var(--medai-text-muted);background:var(--medai-bg-sunken);border:1px dashed var(--medai-border-strong);border-radius:var(--medai-radius-lg)}.notice{padding:var(--medai-space-3) var(--medai-space-4);background:var(--medai-bg-sunken);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);color:var(--medai-text-secondary);margin:0}ul.notice{padding-left:calc(var(--medai-space-4) + 1.25rem)}ul.notice li{padding-left:var(--medai-space-1)}ul.notice li+li{margin-top:var(--medai-space-1)}.notice.danger,.global-error{background:var(--medai-danger-50);border-color:var(--medai-danger-200);color:var(--medai-danger-700)}.notice.success{background:var(--medai-success-50);border-color:var(--medai-success-200);color:var(--medai-success-700)}.notice.warning{background:var(--medai-warning-50);border-color:var(--medai-warning-200);color:var(--medai-warning-700)}.notice.info{background:var(--medai-info-50);border-color:var(--medai-info-200);color:var(--medai-info-700)}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.skip-link{left:var(--medai-space-4);z-index:var(--medai-z-toast);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);box-shadow:var(--medai-shadow-md);padding:var(--medai-space-3) var(--medai-space-4);position:fixed;top:-60px}.skip-link:focus{top:var(--medai-space-4)}.avatar{border-radius:var(--medai-radius-full);background:linear-gradient(135deg, var(--medai-avatar-start), var(--medai-avatar-end));width:44px;height:44px;color:var(--medai-avatar-ink);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.avatar.large{width:56px;height:56px}.avatar.small{width:36px;height:36px}.person{align-items:center;gap:var(--medai-space-3);color:var(--medai-text);min-width:0;display:flex}.person:hover{text-decoration:none}.badge{--badge-bg:var(--medai-surface-hover);--badge-fg:var(--medai-text-secondary);--badge-dot:var(--medai-gray-400);white-space:nowrap;border-radius:var(--medai-radius-full);background:var(--badge-bg);min-height:24px;color:var(--badge-fg);align-items:center;gap:6px;padding:0 10px;display:inline-flex}.badge:before{content:"";border-radius:var(--medai-radius-full);background:var(--badge-dot);flex:none;width:6px;height:6px}.badge.scheduled,.badge.treatment-planned,.badge.account-trial,.badge.account-grace{--badge-bg:var(--medai-status-scheduled-bg);--badge-fg:var(--medai-status-scheduled-fg);--badge-dot:var(--medai-status-scheduled-line)}.badge.confirmed{--badge-bg:var(--medai-status-confirmed-bg);--badge-fg:var(--medai-status-confirmed-fg);--badge-dot:var(--medai-status-confirmed-line)}.badge.in_progress,.badge.treatment-in_progress{--badge-bg:var(--medai-status-progress-bg);--badge-fg:var(--medai-status-progress-fg);--badge-dot:var(--medai-status-progress-line)}.badge.completed{--badge-bg:var(--medai-status-completed-bg);--badge-fg:var(--medai-status-completed-fg);--badge-dot:var(--medai-status-completed-line)}.badge.treatment-completed,.badge.account-active{--badge-bg:var(--medai-success-50);--badge-fg:var(--medai-success-700);--badge-dot:var(--medai-success-600)}.badge.cancelled,.badge.account-hold{--badge-bg:var(--medai-status-cancelled-bg);--badge-fg:var(--medai-status-cancelled-fg);--badge-dot:var(--medai-status-cancelled-line)}.badge.no_show{--badge-bg:var(--medai-status-noshow-bg);--badge-fg:var(--medai-status-noshow-fg);--badge-dot:var(--medai-status-noshow-line)}.badge.treatment-cancelled{--badge-bg:var(--medai-surface-hover);--badge-fg:var(--medai-text-muted);--badge-dot:var(--medai-gray-400)}.metrics{gap:var(--medai-space-4);margin-bottom:var(--medai-section-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));display:grid}.metric{padding:var(--medai-space-4) var(--medai-space-6);background:var(--medai-surface);border-radius:var(--medai-radius-xl);box-shadow:var(--medai-shadow-card);border:0;min-width:0}.metric>span{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-muted);margin-bottom:var(--medai-space-2);display:flex}.metric>span svg{color:var(--medai-icon)}.metric strong{color:var(--medai-text);display:block}.metric small{color:var(--medai-text-muted);margin-top:var(--medai-space-1);display:block}.segmented{background:var(--medai-surface);border-radius:var(--medai-radius-full);box-shadow:var(--medai-shadow-card);flex-shrink:0;align-items:center;gap:2px;padding:3px;display:inline-flex}.segmented button{min-height:calc(var(--medai-control-md) - 6px);padding:0 var(--medai-space-3);border-radius:var(--medai-radius-full);box-shadow:none;color:var(--medai-text-muted);background:0 0;border:0}.segmented button:hover{color:var(--medai-text);background:0 0}.segmented button.selected,.segmented button[aria-pressed=true]{background:var(--medai-ink-strong);box-shadow:none;color:var(--medai-text-on-action)}.tabs{border-bottom:1px solid var(--medai-border);margin-bottom:var(--medai-section-gap);gap:var(--medai-space-6);scrollbar-width:none;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tabs a{min-height:44px;color:var(--medai-text-muted);white-space:nowrap;border-bottom:2px solid #0000;align-items:center;margin-bottom:-1px;display:inline-flex}.tabs a.active{color:var(--medai-text);border-bottom-color:var(--medai-action)}.tabs a:hover{color:var(--medai-text);text-decoration:none}.tabs button{min-height:44px;box-shadow:none;color:var(--medai-text-muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;margin-bottom:-1px;padding:0}.tabs button:hover,.tabs button:active{color:var(--medai-text);background:0 0}.tabs button.active,.tabs button[aria-selected=true]{color:var(--medai-text);border-bottom-color:var(--medai-action)}.search-field{align-items:center;gap:var(--medai-space-2);min-width:0;min-height:var(--medai-control-md);padding:0 var(--medai-space-2) 0 var(--medai-space-4);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-full);background:var(--medai-surface);color:var(--medai-icon);transition:border-color var(--medai-duration) var(--medai-ease), box-shadow var(--medai-duration) var(--medai-ease);display:flex}.search-field>svg{flex:none}.search-field:hover:not(:focus-within){border-color:var(--medai-border-control-hover);box-shadow:inset 0 0 0 1px var(--medai-border-control-hover)}.search-field:focus-within{border-color:var(--medai-text);box-shadow:0 0 0 2px var(--medai-focus)}.search-field>input,.search-field>input:hover:not(:focus):not(:disabled),.search-field>input:focus-visible{width:auto;min-width:0;min-height:calc(var(--medai-control-md) - 2px);box-shadow:none;color:var(--medai-text);background:0 0;border:0;outline:0;flex:1;padding:0}.floating-panel{z-index:var(--medai-z-dropdown);padding:var(--medai-space-1) 0;border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md)}.floating-option{justify-content:flex-start;align-items:center;gap:var(--medai-space-3);width:100%;min-height:var(--medai-control-md);padding:var(--medai-space-2) var(--medai-space-4);box-shadow:none;color:var(--medai-text);text-align:left;white-space:normal;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;display:flex}.floating-option:hover,.floating-option.is-active{background:var(--medai-surface-hover);border:0}.floating-option:active{background:var(--medai-surface-selected)}.overlay{background:var(--medai-overlay);z-index:var(--medai-z-overlay);padding:var(--medai-space-6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--medai-surface);box-shadow:var(--medai-shadow-lg);border-radius:var(--medai-radius-xl);width:100%;max-width:640px;max-height:90vh;padding:var(--medai-space-6);border:0;overflow:auto}.modal>.section-head{margin-bottom:var(--medai-space-6)}.modal>.section-head>button{width:36px;min-height:36px;box-shadow:none;color:var(--medai-icon);background:0 0;border-color:#0000;padding:0}.modal>.section-head>button:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.card>*+a{margin-top:var(--medai-space-3);display:inline-flex}@media (max-width:760px),(pointer:coarse){.section-head a,.card>a{align-items:center;min-height:44px;display:inline-flex}td>a:only-child{padding-block:var(--medai-space-3);margin-block:calc(-1 * var(--medai-space-3));display:inline-block}.card>*+a{margin-top:var(--medai-space-1)}}@media (max-width:760px){.table-wrap{overflow:visible}.table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{width:100%;display:block}.table-wrap table{white-space:normal}.table-wrap thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.table-wrap tbody tr{padding:var(--medai-space-3) var(--medai-space-4);border-bottom:1px solid var(--medai-border)}.table-wrap tbody tr:last-child{border-bottom:0}.table-wrap tbody tr:hover{background:0 0}.table-wrap td,.card>.table-wrap td:first-child,.card>.table-wrap td:last-child,.card .section-head+.table-wrap td:first-child,.card .section-head+.table-wrap td:last-child{padding:var(--medai-space-1) 0;text-align:right;border:0}.table-wrap td:before{content:attr(data-label);float:left;margin-right:var(--medai-space-3);color:var(--medai-text-muted);text-align:left;padding-top:2px}.table-wrap td:after{content:"";clear:both;display:block}.table-wrap td[data-label=""]:before,.table-wrap td:first-child:before{content:none}.table-wrap td:first-child,.card>.table-wrap td:first-child,.card .section-head+.table-wrap td:first-child{padding-bottom:var(--medai-space-2);text-align:left}.table-wrap td:not(:first-child):has(>select,>button){justify-content:space-between;align-items:center;gap:var(--medai-space-3);display:flex}.table-wrap td:has(>select,>button):before{float:none;padding-top:0}.table-wrap td:has(>select,>button):after{content:none}.table-wrap td[data-label=""]:has(>select,>button){justify-content:flex-end}.table-wrap td small{max-width:none}.table-wrap td>select{width:auto;max-width:60%}.page-head{align-items:flex-start}.card{padding:var(--medai-space-4)}.card>.table-wrap,.card .section-head+.table-wrap{margin-inline:calc(-1 * var(--medai-space-4))}.card>.table-wrap th:first-child,.card .section-head+.table-wrap th:first-child{padding-left:var(--medai-space-4)}.card>.table-wrap:last-child{margin-bottom:calc(-1 * var(--medai-space-4))}.section-head{flex-wrap:wrap}.tabs{gap:var(--medai-space-4)}.form-grid{grid-template-columns:1fr}.modal{padding:var(--medai-space-4);max-height:94vh}.overlay{padding:var(--medai-space-3)}.metric{padding:var(--medai-space-4)}}@media (max-width:480px){.page-head{flex-wrap:wrap}.page-head>div{flex:100%;min-width:0}}.history-paper .paper-head{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 16px;margin:0 0 16px;display:grid}.history-paper .paper-head dd{overflow-wrap:anywhere;margin:0}.history-paper .paper-companion{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px;display:grid}.history-paper .antecedent-list{margin-bottom:20px}.history-paper .antecedent-list h3{margin:0 0 8px}.history-paper .antecedent-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;display:grid}@media (max-width:640px){.history-paper .antecedent-grid{grid-template-columns:minmax(0,1fr)}}.history-paper .antecedent{border-top:1px solid var(--medai-border);gap:6px;padding:8px 0;display:grid}.history-paper .antecedent-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.history-paper .antecedent-label{overflow-wrap:anywhere;min-width:0}.history-paper .antecedent-note{border-radius:var(--medai-radius-full);width:100%;min-width:0;padding:8px 14px}.history-paper .legacy-notes{margin-bottom:16px}.loading{justify-content:center;align-items:center;gap:var(--medai-space-6);height:100vh;color:var(--medai-text-muted);flex-direction:column;display:flex}.loading img{width:140px}.app-shell{min-height:100vh;display:flex}.sidebar{width:var(--medai-shell-sidebar-width);background:var(--medai-surface);border-right:1px solid var(--medai-border);box-shadow:none;height:100vh;height:100dvh;padding:var(--medai-space-3) var(--medai-space-3) var(--medai-space-4);z-index:var(--medai-z-sidebar);border-radius:0;flex-direction:column;display:flex;position:fixed;top:0;left:0;overflow:hidden auto}.brand{gap:var(--medai-space-2);margin:0 0 var(--medai-space-6);flex-direction:column;flex-shrink:0;display:flex}.clinic-identity{align-items:center;gap:var(--medai-space-3);width:100%;min-width:0;display:flex}.clinic-identity-icon{aspect-ratio:1;border-radius:var(--medai-radius-full);background:var(--medai-surface);width:36px;height:36px;box-shadow:inset 0 0 0 1px var(--medai-border);flex:0 0 36px;display:block;position:relative;overflow:hidden}.clinic-identity-icon img{object-fit:contain;width:70%;max-width:none;height:70%;max-height:none;position:absolute;inset:15%}.clinic-identity-initials{background:var(--medai-action);height:100%;color:var(--medai-text-on-action);place-items:center;display:grid}.clinic-identity-name{color:var(--medai-text);text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-head{align-items:center;gap:var(--medai-space-1);margin:0 0 var(--medai-space-6);flex-shrink:0;display:flex}.workspace-identity-menu{flex:1;min-width:0;position:relative}button.sidebar-toggle{width:36px;min-height:36px;box-shadow:none;color:var(--medai-icon);border-radius:var(--medai-radius-full);background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}button.sidebar-toggle:hover{background:var(--medai-surface-hover);box-shadow:none;color:var(--medai-text);border:0}.sidebar-edge{display:none}.workspace-identity-trigger{align-items:center;gap:var(--medai-space-2);width:100%;min-height:48px;padding:6px var(--medai-space-2);box-shadow:none;border-radius:var(--medai-radius-md);background:0 0;border:1px solid #0000;display:flex}.workspace-identity-trigger>svg{color:var(--medai-icon);flex-shrink:0}.workspace-identity-trigger:hover,.workspace-identity-trigger[aria-expanded=true]{background:var(--medai-surface-hover);border-color:var(--medai-border);box-shadow:none}.workspace-identity-options{top:calc(100% + var(--medai-space-2));width:100%;min-width:220px;padding:var(--medai-space-2);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-md);background:var(--medai-surface);z-index:var(--medai-z-dropdown);position:absolute;left:0}.workspace-identity-options>a,.workspace-identity-options>button{justify-content:flex-start;align-items:center;gap:var(--medai-space-3);padding:0 var(--medai-space-2);min-height:var(--medai-control-md);width:100%;color:var(--medai-text);box-shadow:none;border-radius:var(--medai-radius-sm);text-align:left;background:0 0;border:0;text-decoration:none;display:flex}.workspace-identity-options>a svg,.workspace-identity-options>button svg{color:var(--medai-icon)}.workspace-identity-options>a:hover,.workspace-identity-options>button:hover{background:var(--medai-surface-hover)}.workspace-identity-options label{gap:var(--medai-space-2);padding:var(--medai-space-3) var(--medai-space-2);display:grid}.workspace-identity-options select{width:100%;min-width:0}.sidebar nav{flex-direction:column;gap:2px;display:flex}.nav-section{margin-bottom:var(--medai-space-6);flex-direction:column;gap:2px;display:flex}.nav-section:last-child{margin-bottom:0}.nav-section-label{margin:0 var(--medai-space-3) var(--medai-space-2);color:var(--medai-text-muted)}.sidebar nav a{align-items:center;gap:var(--medai-space-3);min-height:36px;padding:0 var(--medai-space-3);border-radius:var(--medai-radius-md);color:var(--medai-text-secondary);border:1px solid #0000;display:flex}.sidebar nav a svg{color:var(--medai-icon)}.sidebar nav a:hover{background:var(--medai-surface-hover);color:var(--medai-text);text-decoration:none}.sidebar nav a.active{background:var(--medai-action);box-shadow:var(--medai-accent-glow);color:var(--medai-text-on-action);border-color:#0000}.sidebar nav a.active:hover{background:var(--medai-action-hover);color:var(--medai-text-on-action)}.sidebar nav a.active svg,.sidebar nav a.active:hover svg{color:var(--medai-text-on-action)}.sidebar-bottom{padding-top:var(--medai-space-6);margin-top:auto}.sidebar-bottom>button{box-shadow:none;color:var(--medai-text-muted);border:0;justify-content:flex-start;width:100%}.sidebar-upgrade{min-height:56px;margin-bottom:var(--medai-space-3);padding:6px var(--medai-space-3) 6px 8px;background:linear-gradient(135deg, var(--medai-action) 0%, #4f7bf0 100%);color:var(--medai-text-on-action,#fff);transition:transform var(--medai-duration) var(--medai-ease), box-shadow var(--medai-duration) var(--medai-ease), filter var(--medai-duration) var(--medai-ease);border:0;border-radius:999px;align-items:center;gap:10px;text-decoration:none;display:flex;box-shadow:0 8px 20px -8px #1b55e28c}.sidebar-upgrade:hover{color:var(--medai-text-on-action,#fff);filter:brightness(1.05);text-decoration:none;transform:translateY(-1px);box-shadow:0 12px 26px -8px #1b55e2a6}.sidebar-upgrade:active{filter:brightness(.97);transform:translateY(0)}.sidebar-upgrade:focus-visible{outline:3px solid var(--medai-focus,#93b4ff);outline-offset:2px}.sidebar-upgrade.active{box-shadow:inset 0 0 0 2px #ffffffb3,0 8px 20px -8px #1b55e28c}.sidebar-upgrade-icon{background:#fff3;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.sidebar-upgrade-icon svg,.sidebar-upgrade-arrow{color:inherit}.sidebar-upgrade-text{white-space:nowrap;text-align:center;flex:1;min-width:0}.sidebar-upgrade-arrow{transition:transform var(--medai-duration) var(--medai-ease);flex-shrink:0}.sidebar-upgrade:hover .sidebar-upgrade-arrow{transform:translate(3px)}.workspace-switch{margin-top:var(--medai-space-2);padding-top:var(--medai-space-2);border-top:1px solid var(--medai-border)}.workspace-switch-label{padding:var(--medai-space-1) var(--medai-space-2);text-transform:uppercase;color:var(--medai-text-muted);margin:0}.workspace-identity-options .workspace-switch>button{align-items:center;gap:var(--medai-space-3);width:100%;min-height:var(--medai-control-md);padding:0 var(--medai-space-2);box-shadow:none;color:var(--medai-text);border-radius:var(--medai-radius-sm);text-align:left;background:0 0;border:0;display:flex}.workspace-identity-options .workspace-switch>button:hover{background:var(--medai-surface-hover)}.workspace-switch-avatar{background:var(--medai-selection-surface,#eef2ff);width:28px;height:28px;color:var(--medai-action);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.workspace-switch-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.close-navigation{display:none}.app-main{margin-left:var(--medai-shell-sidebar-width);background:0 0;flex:1;min-width:0}.topbar{z-index:var(--medai-z-sticky);height:var(--medai-shell-topbar-height);background:color-mix(in srgb, var(--medai-bg) 82%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);align-items:center;gap:var(--medai-space-3);padding:0 var(--medai-page-inset) 0 var(--medai-space-4);display:flex;position:sticky;top:0}.menu-button{width:36px;min-height:36px;box-shadow:none;color:var(--medai-icon);border-radius:var(--medai-radius-full);background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}.menu-button:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.menu-button,.mobile-brand,.topbar-page{display:none}.topbar-context{align-items:center;gap:var(--medai-space-3);margin-left:auto;display:flex}.app-main .topbar .global-search.unified-search,.app-main .topbar .global-search.unified-search:hover:not(:focus-within){background:var(--medai-surface);border-radius:var(--medai-radius-full);box-shadow:var(--medai-shadow-card);border:0}.app-main .topbar .global-search.unified-search:has(input:focus-visible){box-shadow:var(--medai-shadow-card), 0 0 0 2px var(--medai-focus);border:0}.app-main .topbar .unified-search input:hover:not(:focus):not(:disabled){box-shadow:none;border:0}.topbar-new-appointment{min-height:var(--medai-control-sm);padding:0 var(--medai-space-4);white-space:nowrap;flex-shrink:0}.notification-link{border-radius:var(--medai-radius-full);width:36px;height:36px;color:var(--medai-icon);place-items:center;display:grid}.notification-link:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.content{padding:var(--medai-page-inset);max-width:1560px;margin:0 auto}.app-footer{justify-content:space-between;gap:var(--medai-space-6);padding:var(--medai-space-4) var(--medai-page-inset) var(--medai-space-6);border-top:1px solid var(--medai-border);color:var(--medai-text-muted);display:flex}.global-error{padding:var(--medai-space-3) var(--medai-page-inset);justify-content:space-between;align-items:center;gap:var(--medai-space-4);border-width:0 0 1px;border-radius:0;display:flex}.global-error button{width:32px;min-height:32px;box-shadow:none;color:inherit;background:0 0;border:0;padding:0}.workspace-bootstrap-error{width:calc(100% - 32px);max-width:560px;padding:var(--medai-space-8);margin:64px auto}.workspace-bootstrap-error>img{margin-bottom:var(--medai-space-8)}.workspace-bootstrap-error>button{margin-top:var(--medai-space-6)}.standalone-account{max-width:960px;padding:var(--medai-page-inset);margin:0 auto}.workspace-loading{background:var(--medai-surface-translucent);z-index:var(--medai-z-overlay);justify-content:center;align-items:center;gap:var(--medai-space-3);color:var(--medai-text);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);flex-direction:column;display:flex;position:fixed;inset:0}.sidebar-backdrop,.mobile-tabs{display:none}@media (min-width:761px){.navigation-collapsed .sidebar{width:var(--medai-shell-sidebar-collapsed-width);padding-inline:var(--medai-space-3)}.navigation-collapsed .app-main,.navigation-peek .app-main{margin-left:var(--medai-shell-sidebar-collapsed-width)}.navigation-collapsed .sidebar-head{gap:var(--medai-space-3);flex-direction:column}.navigation-collapsed .workspace-identity-menu{flex:none}.navigation-peek .sidebar{box-shadow:var(--medai-shadow-lg);animation:sidebar-peek-in .12s var(--medai-ease)}.navigation-peek .nav-link-label,.navigation-peek .nav-section-label,.navigation-peek .clinic-identity-name{animation:sidebar-label-in .12s var(--medai-ease)}.navigation-collapsed .sidebar-edge,.navigation-peek .sidebar-edge{width:var(--medai-space-2);z-index:calc(var(--medai-z-sidebar) + 1);display:block;position:fixed;top:0;bottom:0;left:0}.navigation-collapsed .nav-link-label,.navigation-collapsed .nav-section-label,.navigation-collapsed .workspace-identity-trigger .clinic-identity-name,.navigation-collapsed .workspace-identity-trigger>svg{display:none}.navigation-collapsed .workspace-identity-trigger{justify-content:center}.navigation-collapsed .workspace-identity-trigger .clinic-identity{width:auto}.navigation-collapsed .sidebar nav a{justify-content:center;padding:0}.navigation-collapsed .sidebar-upgrade{justify-content:center;min-height:52px;padding:4px}.navigation-collapsed .sidebar-upgrade-icon{background:0 0}.navigation-collapsed .nav-section{margin-bottom:var(--medai-space-3)}.agenda-shell .app-main{flex-direction:column;height:100dvh;min-height:0;display:flex}.agenda-shell .content{flex-direction:column;flex:1;width:100%;max-width:none;min-height:0;margin:0;padding:0;display:flex}.agenda-shell .topbar{flex-shrink:0;position:relative}.agenda-shell .app-footer{display:none}}@keyframes sidebar-peek-in{0%{clip-path:inset(0 calc(100% - var(--medai-shell-sidebar-collapsed-width)) 0 0)}to{clip-path:inset(0)}}@keyframes sidebar-label-in{0%{opacity:0;transform:translateX(calc(-1 * var(--medai-space-2)))}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.navigation-peek .sidebar,.navigation-peek .nav-link-label,.navigation-peek .nav-section-label,.navigation-peek .clinic-identity-name{animation:none}}@media (max-width:1100px){.topbar-new-appointment{width:var(--medai-control-sm);padding:0}.topbar-new-appointment span{display:none}}@media (max-width:760px){.topbar-new-appointment{width:44px;min-height:44px}.sidebar{border-radius:0 var(--medai-radius-xl) var(--medai-radius-xl) 0;background:var(--medai-surface);width:min(300px,86vw);height:auto;box-shadow:var(--medai-shadow-lg);transition:transform var(--medai-duration) var(--medai-ease);border-right:0;padding-top:64px;padding-bottom:96px;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.sidebar:not(.open){visibility:hidden}.sidebar-backdrop{background:var(--medai-overlay);z-index:calc(var(--medai-z-sidebar) - 1);display:block;position:fixed;inset:0}.close-navigation{top:var(--medai-space-3);right:var(--medai-space-3);width:44px;box-shadow:none;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute}.sidebar nav a{min-height:44px}.app-shell{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.app-main{margin-left:0}button.sidebar-toggle{display:none}.topbar{height:auto;min-height:var(--medai-shell-topbar-height);padding:calc(var(--medai-space-2) + env(safe-area-inset-top)) var(--medai-space-4) var(--medai-space-2);gap:var(--medai-space-2);flex-wrap:wrap;position:relative}.mobile-brand{flex:1;align-items:center;min-width:0;min-height:44px;display:flex}.mobile-brand .clinic-identity-icon{flex-basis:44px;width:44px;height:44px}.mobile-brand .clinic-identity-icon img{width:80%;height:80%;inset:10%}.topbar-context{gap:var(--medai-space-1)}.notification-link{width:44px;height:44px}.content{padding:var(--medai-page-inset)}.app-footer{padding:var(--medai-space-3) var(--medai-page-inset) var(--medai-space-4)}.app-footer span{display:none}.agenda-shell .content{padding:0}.workspace-bootstrap-error{padding:var(--medai-space-6);margin:var(--medai-space-6) auto}.mobile-tabs{z-index:calc(var(--medai-z-sidebar) + 5);background:var(--medai-surface-translucent);-webkit-backdrop-filter:saturate(180%)blur(8px);backdrop-filter:saturate(180%)blur(8px);border-top:1px solid var(--medai-border);padding:var(--medai-space-1) var(--medai-space-2) calc(var(--medai-space-1) + env(safe-area-inset-bottom));grid-template-columns:repeat(4,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-tabs a,.mobile-tabs button{min-height:56px;box-shadow:none;padding:var(--medai-space-1);color:var(--medai-text-muted);border-radius:var(--medai-radius-md);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;text-decoration:none;display:flex}.mobile-tabs .active,.mobile-tabs button[aria-expanded=true]{color:var(--medai-text)}.mobile-tabs .active svg{stroke-width:2.25px}}.access-banner{padding:var(--medai-space-3) var(--medai-page-inset);justify-content:space-between;align-items:center;gap:var(--medai-space-3);border-width:0 0 1px;border-radius:0;flex-wrap:wrap;margin:0;display:flex}.access-banner p{flex:280px;margin:0}.access-banner a.primary{flex:none}@media (max-height:520px) and (orientation:landscape){.topbar{position:relative}}.content-loading{justify-content:center;align-items:center;gap:var(--medai-space-3);min-height:40vh;color:var(--medai-text-muted);display:flex}.auth{background:var(--medai-bg);grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.auth-story{background:var(--medai-surface-hover);padding:var(--medai-space-16) 10%;flex-direction:column;justify-content:space-between;display:flex;position:relative;overflow:hidden}.auth-story:after{content:"";border:50px solid var(--medai-surface-hover);border-radius:var(--medai-radius-full);width:330px;height:330px;right:-170px;bottom:var(--medai-space-8);pointer-events:none;position:absolute}.auth-story>img{width:155px}.auth-story h1{margin-bottom:var(--medai-space-6)}.auth-story h1 span{color:var(--medai-text)}.auth-story>div>p:last-child{color:var(--medai-text-muted)}.auth-story .eyebrow{color:var(--medai-text-muted);margin-bottom:var(--medai-space-6)}.auth-foot{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-muted);z-index:var(--medai-z-raised);margin:0;display:flex}.auth-form{padding:var(--medai-space-12) var(--medai-space-8);justify-content:center;align-items:center;display:flex}.auth-card{width:100%;max-width:370px}.auth-card h2{margin-bottom:var(--medai-space-3)}.auth-card>p{margin-bottom:var(--medai-space-6)}.auth-card form{margin:var(--medai-space-6) 0}.auth-card form>.primary{width:100%}.auth-card .auth-login-error{margin:0 0 var(--medai-space-3)}.auth-callback-error{margin:var(--medai-space-6) 0}.auth-callback-error>p{margin:0}.auth-callback-actions{gap:var(--medai-space-2);margin-top:var(--medai-space-3);flex-wrap:wrap;display:flex}.auth-callback-actions button{flex:140px}.auth-captcha{justify-content:center;display:flex}.auth-resend-confirmation{margin:calc(-1 * var(--medai-space-1)) 0 var(--medai-space-3);text-align:center}.auth-resend-confirmation .text-button{padding:var(--medai-space-2);color:var(--medai-text);text-underline-offset:3px;margin:0 auto;text-decoration:underline}.auth-resend-confirmation .text-button:disabled{color:var(--medai-text-muted);cursor:not-allowed}.auth-resend-result{margin:var(--medai-space-1) 0 0;color:var(--medai-text-secondary)}.auth-registration-password-label-row{justify-content:space-between;align-items:center;display:flex}.auth-registration-password-label-row label{margin:0}.auth-password-strength-label[data-score="1"]{color:var(--medai-danger-700)}.auth-password-strength-label[data-score="2"]{color:var(--medai-warning-700)}.auth-password-strength-label[data-score="3"]{color:var(--medai-success-600)}.auth-password-strength-label[data-score="4"]{color:var(--medai-success-700)}.auth-password-control{align-items:center;display:flex;position:relative}.auth-card .auth-password-control input{width:100%;padding-right:var(--medai-space-12)}.auth-password-toggle{top:50%;right:var(--medai-space-1);width:var(--medai-control-md);height:var(--medai-control-md);border-radius:var(--medai-radius-sm);box-shadow:none;color:var(--medai-icon);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;transform:translateY(-50%)}.auth-password-toggle:hover{background:var(--medai-surface-hover)}.auth-password-guidance,.auth-password-strength{margin:var(--medai-space-2) 0 0;color:var(--medai-text-muted)}.auth-password-meter{gap:var(--medai-space-1);margin-top:var(--medai-space-2);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.auth-password-meter span{border-radius:var(--medai-radius-full);background:var(--medai-gray-200);height:3px}.auth-password-meter span.is-filled{background:var(--medai-danger-600)}.auth-password-meter[data-score="2"] span.is-filled{background:var(--medai-warning-600)}.auth-password-meter[data-score="3"] span.is-filled{background:var(--medai-success-600)}.auth-password-meter[data-score="4"] span.is-filled{background:var(--medai-success-700)}.auth-password-strength>p{margin:var(--medai-space-2) 0 0}.auth-registration-password[data-password-state=weak] .auth-password-control input{border-color:var(--medai-danger-600)}.auth-register .auth-password-guidance{align-items:flex-start;gap:var(--medai-space-2);color:var(--medai-danger-700);display:flex}.auth-password-guidance svg{flex:none;margin-top:2px}.auth-password-strength small{margin-top:var(--medai-space-1);color:var(--medai-text-muted);display:block}.auth-card input:not([type=checkbox]):not([type=radio]):not([type=file]),.auth-card select{min-height:var(--medai-control-lg);border-radius:var(--medai-radius-md)}@media (forced-colors:active){.auth-card input:focus-visible,.auth-card select:focus-visible,.auth-card textarea:focus-visible{outline-offset:0;box-shadow:none;outline:2px solid highlight}}.auth-card>a,.auth-card>.text-button{text-align:center;margin-top:var(--medai-space-3);display:block}.auth-card>.text-button{margin:var(--medai-space-2) auto 0}.auth-card>.subtle{margin-top:var(--medai-space-6)}.auth.auth-login{min-height:100vh;background:var(--medai-bg-sunken);flex-direction:column;min-height:100dvh;display:flex}.auth-login-header{padding:0 clamp(var(--medai-space-6), 4vw, var(--medai-space-12));border-bottom:1px solid var(--medai-border);background:var(--medai-surface);flex:0 0 76px;align-items:center;display:flex}.auth-login-header img{width:132px;height:auto;display:block}.auth-login .auth-login-panel{width:100%;padding:var(--medai-space-12) var(--medai-space-6);flex:1}.auth-login .auth-login-card{max-width:540px;padding:var(--medai-space-8) var(--medai-space-8) 0;border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);overflow:hidden}.auth-login-card h2{margin:0 0 var(--medai-space-2);color:var(--medai-text)}.auth-login-card>p{margin:0 0 var(--medai-space-6);color:var(--medai-text-muted)}.auth-login-card form{gap:var(--medai-space-4);margin:0}.auth-login .auth-login-card.auth-recovery-card{padding-bottom:var(--medai-space-8)}.auth-recovery-card .auth-return-login{width:100%;min-height:var(--medai-control-md);margin-top:var(--medai-space-4)}.auth-login-card .field{gap:var(--medai-space-2);color:var(--medai-text);margin:0}.auth-login-card .field input{min-height:var(--medai-control-lg);border-radius:var(--medai-radius-md)}.auth-login-footer a:hover{color:var(--medai-text);text-underline-offset:3px;text-decoration:underline}.auth-login-card form>.primary{width:100%;min-height:var(--medai-control-lg);border-radius:var(--medai-radius-md)}.auth-login-card .auth-resend-confirmation{margin:var(--medai-space-3) 0 0}.auth-login-footer{justify-content:center;gap:var(--medai-space-4);padding:0 var(--medai-space-4) var(--medai-space-6);color:var(--medai-text-muted);flex-wrap:wrap;display:flex}.auth-login-footer a{color:inherit;text-decoration:none}@media (max-width:1000px){.auth-story{padding:var(--medai-space-12) 8%}}@media (max-width:760px){.auth{grid-template-columns:1fr}.auth-login .auth-login-panel{padding:var(--medai-space-8) var(--medai-space-4)}.auth-login-footer{padding-bottom:var(--medai-space-4)}.auth-story{padding:var(--medai-space-6) var(--medai-space-6) var(--medai-space-8);gap:var(--medai-space-8);min-height:250px}.auth-story>img{width:125px}.auth-story h1{margin-bottom:var(--medai-space-2)}.auth-story h1 br{display:none}.auth-story h1 span{display:block}.auth-story .eyebrow{margin-bottom:var(--medai-space-3)}.auth-story>div>p:last-child{margin-bottom:0}.auth-story .auth-foot{display:none}.auth-story:after{width:180px;height:180px;right:-100px;bottom:var(--medai-space-4);border-width:30px}.auth-form{padding:var(--medai-space-8) var(--medai-space-6)}}.auth.auth-register{isolation:isolate;min-height:100vh;height:100vh;min-height:100dvh;height:100dvh;padding:var(--medai-space-8) var(--medai-space-6) var(--medai-space-16);background:var(--medai-surface-selected);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.auth-register .auth-register-panel{z-index:var(--medai-z-raised);width:min(960px,100%);min-height:620px;padding:var(--medai-space-8) 0;border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;display:grid;position:relative;overflow:hidden}.auth-register .auth-register-panel:after{content:"";z-index:var(--medai-z-raised);background:var(--medai-border);pointer-events:none;width:1px;position:absolute;top:0;bottom:0;left:50%}.auth-register .auth-card{width:auto;max-width:none;padding:var(--medai-space-3) var(--medai-space-12) var(--medai-space-2);align-self:center}.auth-register .auth-card .eyebrow{margin:0 0 var(--medai-space-2);color:var(--medai-text-muted)}.auth-register .auth-card h2{margin:0 0 var(--medai-space-2)}.auth-register-form-logo{width:112px;height:auto;margin:0 0 var(--medai-space-6);display:block}.auth-register .auth-card>p:not(.eyebrow){margin:0 0 var(--medai-space-4);color:var(--medai-text-muted)}.auth-confirmation-pending{flex-direction:column;align-items:stretch;display:flex}.auth-confirmation-pending .auth-register-form-logo{margin-bottom:var(--medai-space-6)}.auth-confirmation-pending .eyebrow{margin:0 0 var(--medai-space-2);color:var(--medai-text-muted)}.auth-confirmation-pending h2{margin:0 0 var(--medai-space-2)}.auth-confirmation-pending>p:not(.eyebrow){margin:0 0 var(--medai-space-3);color:var(--medai-text-muted)}.auth-confirmation-pending .auth-confirmation-email{overflow-wrap:anywhere;padding:var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-sm);color:var(--medai-text);background:var(--medai-bg-sunken)}.auth-confirmation-pending>.primary{min-height:var(--medai-control-lg);width:100%;margin:var(--medai-space-1) 0 var(--medai-space-2);border-radius:var(--medai-radius-md)}.auth-confirmation-pending>.text-button{width:100%;margin:var(--medai-space-2) auto 0}.auth-confirmation-pending .auth-resend-result{margin:0 0 var(--medai-space-1);text-align:center}.auth-register .auth-card form{gap:var(--medai-space-3);margin:0}.auth-register .auth-card form .field{gap:var(--medai-space-2);margin:0}.auth-register .auth-registration-password{margin:0}.auth-register .auth-password-guidance,.auth-register .auth-password-strength{max-width:52ch}.auth-register .auth-password-guidance{margin:0}.auth-register .auth-password-strength{margin-top:var(--medai-space-1)}.auth-register .auth-password-meter{gap:var(--medai-space-1)}.auth-register .auth-password-meter span{height:3px}.auth-register .auth-password-strength>p{margin:var(--medai-space-1) 0 0}.auth-register .auth-card form>.primary{min-height:var(--medai-control-lg);border-radius:var(--medai-radius-md);align-self:stretch;margin-top:0}.auth-card .auth-registration-password[data-password-state=weak] .auth-password-control input:not([type=checkbox]):not([type=radio]):not([type=file]){border-color:var(--medai-danger-600)}.auth-register .auth-card>.text-button{width:100%;margin-top:var(--medai-space-3)}@media (max-width:820px){.auth.auth-register{height:auto;min-height:100vh;min-height:100dvh;padding:var(--medai-space-6) var(--medai-space-4) var(--medai-space-16);align-items:flex-start;overflow:auto}.auth-register .auth-register-panel{min-height:0;padding:var(--medai-space-6) 0;flex-direction:column;display:flex}.auth-register .auth-register-panel:after{display:none}.auth-register-form-logo{margin-bottom:var(--medai-space-4)}.auth-register .auth-card{padding:var(--medai-space-4) var(--medai-space-8) var(--medai-space-6);align-self:stretch}.auth-register-next{width:auto;padding:var(--medai-space-6) var(--medai-space-8) var(--medai-space-1);border-top:1px solid var(--medai-border);align-self:stretch;margin:0}.auth-register-next h2{margin-bottom:var(--medai-space-4)}.auth-register-steps{gap:var(--medai-space-4)}}@media (max-width:480px){.auth-login-header{padding:0 var(--medai-space-4);flex-basis:64px}.auth-login-header img{width:120px}.auth-login .auth-login-panel{padding:var(--medai-space-6) var(--medai-space-3) var(--medai-space-8)}.auth-login .auth-login-card{padding:var(--medai-space-4) var(--medai-space-6) 0}.auth-login-footer{gap:var(--medai-space-3)}.auth.auth-register{padding:var(--medai-space-3) var(--medai-space-2) var(--medai-space-16)}.auth-register .auth-register-panel{padding:var(--medai-space-4) 0}.auth-register .auth-card{padding:var(--medai-space-2) var(--medai-space-6) var(--medai-space-6)}.auth-register .auth-card>p:not(.eyebrow){margin-bottom:var(--medai-space-4)}.auth-register-next{padding:var(--medai-space-6) var(--medai-space-6) 0}.auth-register-footer{right:var(--medai-space-4);bottom:var(--medai-space-4);gap:var(--medai-space-3)}.auth-register-preview-nav{display:none}.auth-register-preview-content{left:var(--medai-space-6)}.auth-register-preview-metrics{grid-template-columns:1fr}.auth-register-preview-metrics span:not(:first-child){display:none}}@media (max-width:760px),(pointer:coarse){.auth-login-header a,.auth-login-footer a,.auth-register-footer a,.auth-registration-password-label-row a,.password-field .auth-registration-password-label-row a{padding-block:var(--medai-space-3);margin-block:calc(-1 * var(--medai-space-3));display:inline-block}}#auth-confirmation-title:focus,#auth-confirmation-title:focus-visible{outline:0}.google-signin{gap:var(--medai-space-2);margin:0;display:grid}.google-signin-button{width:100%;min-height:var(--medai-control-lg);border-radius:var(--medai-radius-md);color:#1f1f1f;cursor:pointer;background:#fff;border:1px solid #747775;justify-content:center;align-items:center;gap:10px;padding:0 12px;display:inline-flex}.google-signin-button:hover:not(:disabled){background:#f8f9fa;box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326}.google-signin-button:focus-visible{outline:var(--medai-focus-ring);outline-offset:var(--medai-focus-offset)}.google-signin-button:disabled{color:#1f1f1f61;cursor:not-allowed;background:#ffffff9c;border-color:#1f1f1f1f}.google-signin-logo{flex:none}.auth-terms{margin:var(--medai-space-5) 0 0;color:var(--medai-text-secondary);text-align:center}.auth-terms a{color:var(--medai-text);text-underline-offset:2px;text-decoration:underline}.google-signin-error{margin:0}.auth-divider{align-items:center;gap:var(--medai-space-3);margin:var(--medai-space-4) 0;color:var(--medai-text-muted);display:flex}.auth-divider:before,.auth-divider:after{content:"";border-top:1px solid var(--medai-border);flex:1}.auth-entry-title,.auth-entry-subtitle{text-align:center}.auth-login .auth-login-card{padding-bottom:var(--medai-space-8)}.auth-entry-links{justify-items:center;gap:var(--medai-space-1);margin-top:var(--medai-space-4);color:var(--medai-text-secondary);text-align:center;display:grid}.auth-entry-links p{margin:0}.auth-entry-links a,.auth-entry-links .text-button{min-height:44px;padding:0 var(--medai-space-1);color:var(--medai-text);align-items:center;display:inline-flex}.auth-entry-links a:hover,.auth-entry-links .text-button:hover{text-underline-offset:3px;background:0 0;text-decoration:underline}.google-identity-slot{justify-content:center;min-height:44px;display:flex}.google-identity-slot.is-disabled{opacity:.6;pointer-events:none}.auth.auth-minimal{height:auto;min-height:100vh;background:var(--medai-surface);flex-direction:column;justify-content:flex-start;align-items:stretch;min-height:100dvh;padding:0;display:flex;overflow:visible}.auth.auth-minimal .auth-login-header{background:0 0;border-bottom:0;flex:0 0 72px}.auth.auth-minimal .auth-form{width:100%;min-height:0;padding:clamp(var(--medai-space-6), 9vh, 112px) var(--medai-space-4) var(--medai-space-12);box-shadow:none;background:0 0;border:0;flex:1;justify-content:center;align-items:flex-start;display:flex}.auth.auth-minimal .auth-form:after{display:none}.auth.auth-minimal .auth-card{width:100%;max-width:400px;box-shadow:none;background:0 0;border:0;border-radius:0;margin:0;padding:0;overflow:visible}.auth.auth-minimal .auth-card>h2,.auth.auth-minimal .auth-card>p:not(.notice):not(.auth-terms){text-align:center}.auth.auth-minimal .auth-card>h2{margin:0 0 var(--medai-space-2)}.auth.auth-minimal .auth-card>p:not(.notice):not(.auth-terms){margin:0 auto var(--medai-space-8);max-width:340px;color:var(--medai-text-muted)}.auth.auth-minimal .auth-card form{gap:var(--medai-space-4);margin:0;display:grid}.auth.auth-minimal .auth-card .field{margin:0}.auth.auth-minimal .auth-card input:not([type=checkbox]):not([type=radio]):not([type=file]){border-radius:var(--medai-radius-md);min-height:48px}.auth.auth-minimal .auth-card form>.primary{width:100%;min-height:48px;margin-top:var(--medai-space-2);border-radius:var(--medai-radius-full)}.auth.auth-minimal .google-identity-slot{justify-content:center;min-height:44px;display:flex}.auth.auth-minimal .auth-divider{margin:var(--medai-space-5,20px) 0}.auth.auth-minimal .auth-card>.auth-terms{margin:var(--medai-space-4) 0 0;text-align:center;text-wrap:balance;max-width:none;color:var(--medai-text-muted)}.auth.auth-minimal .auth-entry-links{margin-top:var(--medai-space-6);padding-top:var(--medai-space-6);border-top:1px solid var(--medai-border);text-align:center}.auth.auth-minimal .auth-resend-confirmation,.auth.auth-minimal .auth-confirmation-pending{text-align:center}.auth.auth-minimal .auth-confirmation-pending>.primary{border-radius:var(--medai-radius-full);width:100%;min-height:48px}.auth.auth-minimal .auth-return-login{width:100%}@media (max-width:480px){.auth.auth-minimal .auth-login-header{flex-basis:60px}.auth.auth-minimal .auth-form{padding:var(--medai-space-4) var(--medai-space-4) var(--medai-space-8)}}.appointment-end-preview{align-content:center;gap:var(--medai-space-1);min-width:0;color:var(--medai-text-muted);display:grid}.appointment-end-preview strong{color:var(--medai-text)}.appointment-row{--row-line:var(--medai-border-strong);gap:var(--medai-space-4);padding:var(--medai-space-4) 0;border-bottom:1px solid var(--medai-border);align-items:center;display:flex}.appointment-row:last-child{border-bottom:0}.appointment-row.status-scheduled{--row-line:var(--medai-status-scheduled-line)}.appointment-row.status-confirmed{--row-line:var(--medai-status-confirmed-line)}.appointment-row.status-in_progress{--row-line:var(--medai-status-progress-line)}.appointment-row.status-completed{--row-line:var(--medai-status-completed-line)}.appointment-row.status-cancelled{--row-line:var(--medai-status-cancelled-line)}.appointment-row.status-no_show{--row-line:var(--medai-status-noshow-line)}.appointment-time{min-width:92px;padding-left:var(--medai-space-3);border-left:3px solid var(--row-line);white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}.appointment-time small{color:var(--medai-text-muted);margin-top:2px;display:block}.appointment-info{flex:1;min-width:0}.appointment-info>a{color:var(--medai-text)}.appointment-date{color:var(--medai-text);display:inline-block}.appointment-date:first-letter{text-transform:uppercase}@media (max-width:760px),(pointer:coarse){.appointment-info>a{padding-block:var(--medai-space-3);margin-block:calc(-1 * var(--medai-space-3));display:inline-block}}.appointment-info p{color:var(--medai-text-secondary);margin:2px 0}.appointment-info small{color:var(--medai-text-muted)}.appointment-row>button{min-height:var(--medai-control-sm);padding:0 var(--medai-space-3)}@media (max-width:760px){.appointment-row{align-items:start;gap:var(--medai-space-2) var(--medai-space-3);grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"time info action""time status action";display:grid}.appointment-time{grid-area:time;min-width:84px}.appointment-info{grid-area:info}.appointment-row .badge{grid-area:status;justify-self:start}.appointment-row>button{grid-area:action;align-self:center}.appointment-row:has(>.reminder-link){grid-template-areas:"time info reminder""time status action"}.appointment-row>.reminder-link{grid-area:reminder;justify-self:end}}.patient-header{align-items:center;gap:var(--medai-space-6);flex-wrap:wrap;display:flex}.patient-header>div{flex:1;min-width:0}@media (min-width:761px){.patient-header>div{flex:240px}}.patient-header h1,.patient-header p{margin-bottom:var(--medai-space-2)}.patient-identifiers{align-items:center;gap:var(--medai-space-1) var(--medai-space-3);color:var(--medai-text-secondary);flex-wrap:wrap;min-width:0;display:flex}.patient-identifiers span{overflow-wrap:anywhere;min-width:0}.patient-header .eyebrow{margin-bottom:var(--medai-space-1)}.patient-header .avatar.large{background:linear-gradient(135deg, var(--medai-avatar-start), var(--medai-avatar-end));color:var(--medai-avatar-ink)}.contact-line{gap:var(--medai-space-2) var(--medai-space-6);color:var(--medai-text-secondary);flex-wrap:wrap;display:flex}.contact-line span{align-items:center;gap:var(--medai-space-2);display:flex}.contact-line svg{color:var(--medai-icon)}.detail-grid{gap:var(--medai-section-gap);grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);align-items:start;display:grid}.detail-grid>.card{margin-bottom:0}.balance-card strong{margin:var(--medai-space-2) 0 var(--medai-space-4);display:block}.notes{margin-top:var(--medai-space-6)}.notes article{padding:var(--medai-space-4) 0;border-bottom:1px solid var(--medai-border)}.notes article:last-child{border-bottom:0}.notes small{color:var(--medai-text-muted)}.notes p{white-space:pre-wrap;color:var(--medai-text);margin:var(--medai-space-2) 0 0}@media (max-width:1200px){.detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}}@media (max-width:1000px){.detail-grid{grid-template-columns:1fr}.detail-grid>.stack{grid-template-columns:1fr 1fr;display:grid}}@media (max-width:760px){.detail-grid>.stack{grid-template-columns:1fr}.patient-header{gap:var(--medai-space-4);flex-wrap:wrap}.patient-header .avatar.large{width:48px;height:48px}.patient-header>div{min-width:200px}.contact-line{flex-direction:column}}.patient-header.card.is-compact{padding:var(--medai-space-3) var(--medai-space-4);gap:var(--medai-space-4)}.patient-header.is-compact .eyebrow,.patient-header.is-compact .contact-line{display:none}.patient-header.is-compact h1{margin:0 0 2px}.patient-header.is-compact .patient-identifiers{margin:0}.patient-header.is-compact .avatar.large{width:44px;height:44px}.patient-header.card.is-compact{margin-bottom:var(--medai-space-3)}.patient-header-back{width:44px;height:44px;margin-right:calc(var(--medai-space-2) * -1);border-radius:var(--medai-radius-full);color:var(--medai-text-muted);flex:none;justify-content:center;align-items:center;display:inline-flex}.patient-header-back:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.patient-header.is-compact .patient-edit{justify-content:center;width:44px;min-width:44px;height:44px;padding:0}.patient-header.is-compact .patient-edit-label{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.tabs.is-tight{margin-bottom:var(--medai-space-3)}.patients-head{flex-wrap:wrap}.patients-toolbar{align-items:center;gap:var(--medai-space-3);flex-wrap:wrap;min-width:0;display:flex}.patients-search{align-items:center;gap:var(--medai-space-2);min-width:260px;height:var(--medai-control-md);padding:0 var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);background:var(--medai-bg-sunken);color:var(--medai-icon);display:flex}.patients-search:focus-within{background:var(--medai-surface);border-color:var(--medai-border-strong)}.section-head .patients-search input{width:100%;max-width:none;height:100%;min-height:0;color:var(--medai-text);box-shadow:none;background:0 0;border:0;outline:none;padding:0}.patients-search input::-webkit-search-cancel-button{cursor:pointer}.patients-sort{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-muted);white-space:nowrap;display:flex}.patients-filter{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-secondary);white-space:nowrap;cursor:pointer;display:flex}.patients-table .person-text{min-width:0;display:grid}.patients-table .person-text small{color:var(--medai-text-muted)}.patients-table td>small{color:var(--medai-text-muted);display:block}.patients-phone{align-items:center;gap:var(--medai-space-1);white-space:nowrap;min-height:24px;display:inline-flex}a.patients-phone svg{color:var(--medai-success-600)}.patients-muted{color:var(--medai-text-muted)}.patients-actions{white-space:nowrap;padding-left:var(--medai-space-2)}.patients-table .person .avatar{width:36px;height:36px}@media (max-width:760px){.patients-toolbar{flex:100%}.patients-search{min-width:0;height:var(--medai-control-lg);flex:100%}.patients-actions{white-space:normal}}.patients-table td.patients-contact>small{text-overflow:ellipsis;white-space:nowrap;max-width:130px;overflow:hidden}.card>.table-wrap .patients-table td.patients-actions{padding-right:var(--medai-space-4)}.patients-table .person{gap:var(--medai-space-2)}.patients-table .person:hover strong,.patients-table .person:focus-visible strong{text-underline-offset:2px;text-decoration:underline}fieldset.phone-field{border:0;min-width:0;margin:0;padding:0}fieldset.phone-field legend{padding:0}.phone-field-inputs{gap:var(--medai-space-2);grid-template-columns:auto minmax(0,1fr);display:grid}.phone-code-picker{display:inline-flex;position:relative}.phone-code-display{align-items:center;gap:var(--medai-space-1);height:var(--medai-control-md);padding:0 var(--medai-space-2) 0 var(--medai-space-3);border:1px solid var(--medai-control-border);border-radius:var(--medai-radius-md);background:var(--medai-surface);color:var(--medai-text);white-space:nowrap;display:inline-flex}.phone-code-display svg{color:var(--medai-icon)}.phone-code-picker select{opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;position:absolute;inset:0}.phone-code-picker:hover .phone-code-display{border-color:var(--medai-border-strong)}.phone-code-picker:has(select:focus-visible) .phone-code-display{outline:2px solid var(--medai-text);outline-offset:0}fieldset.phone-field small.phone-field-error{color:var(--medai-danger-700)}@media (pointer:coarse){.phone-code-display{height:var(--medai-control-lg)}}.patient-contact-card .section-head button{min-height:var(--medai-control-sm);padding:0 var(--medai-space-3)}.patient-contact-list{gap:var(--medai-space-3);margin:0 0 var(--medai-space-4);display:grid}.patient-contact-list dt{align-items:center;gap:var(--medai-space-1);color:var(--medai-text-muted);display:flex}.patient-contact-list dt svg{color:var(--medai-icon)}.patient-contact-list dd{overflow-wrap:anywhere;margin:2px 0 0}.patient-contact-list dd a{align-items:center;gap:var(--medai-space-1);min-height:24px;display:inline-flex}.patient-consent-row{justify-content:space-between;align-items:center;gap:var(--medai-space-3);padding-top:var(--medai-space-3);border-top:1px solid var(--medai-border);display:flex}.contact-line a{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-secondary);display:flex}.contact-line a svg{color:var(--medai-success-600)}@media (max-width:760px){.table-wrap .patients-table td.patients-actions{justify-content:flex-end;gap:var(--medai-space-2);flex-wrap:wrap}.table-wrap .patients-table td.patients-actions:before{content:none}.patients-actions a{white-space:nowrap}}.patients-archived-toggle[aria-pressed=true]{background:var(--medai-surface-selected);border-color:var(--medai-text);color:var(--medai-text)}.patients-archived-note{margin:0 0 var(--medai-space-3);color:var(--medai-text-muted)}.patient-archived-banner{justify-content:space-between;align-items:center;gap:var(--medai-space-3);flex-wrap:wrap;display:flex}.patient-archive-list{margin:0 0 var(--medai-space-4);padding-left:var(--medai-space-6);gap:var(--medai-space-2);display:grid}.patient-archive-actions{justify-content:flex-end;gap:var(--medai-space-2);margin-top:var(--medai-space-4);flex-wrap:wrap;display:flex}.patient-archive-option{align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-sm);margin-bottom:var(--medai-space-3);cursor:pointer;display:flex}.patient-header>.patient-header-actions{align-items:center;gap:var(--medai-space-2);flex-wrap:wrap;flex:none;display:flex}@media (max-width:760px){.patient-header.card{flex-wrap:wrap}.patient-header>.patient-header-actions{margin-top:calc(var(--medai-space-2) * -1);flex-basis:100%;justify-content:flex-end}}.patient-actions-menu{z-index:var(--medai-z-dropdown);width:max-content;max-width:calc(100vw - var(--medai-space-4));padding:var(--medai-space-1);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);display:grid;position:fixed}.patient-actions-menu button{justify-content:flex-start;align-items:center;gap:var(--medai-space-3);width:100%;min-height:var(--medai-control-lg);height:auto;padding:var(--medai-space-2) var(--medai-space-3);border-radius:var(--medai-radius-sm);color:var(--medai-text);box-shadow:none;text-align:left;white-space:normal;background:0 0;border:0}.patient-actions-menu button span{display:grid}.patient-actions-menu button small{color:var(--medai-text-muted)}.patient-actions-menu button:hover:not(:disabled),.patient-actions-menu button:focus-visible{background:var(--medai-surface-hover)}.patient-actions-menu button.danger,.patient-actions-menu button.danger small{color:var(--medai-danger-700)}.patient-actions-menu button:disabled{opacity:.55;cursor:not-allowed}.patients-actions .patients-row-action{min-height:var(--medai-control-md);margin:0 var(--medai-space-2) 0 0;padding-inline:var(--medai-space-4);border-color:var(--medai-border);background:var(--medai-surface);color:var(--medai-text-secondary);box-shadow:none;transition:background-color var(--medai-duration) var(--medai-ease), border-color var(--medai-duration) var(--medai-ease), color var(--medai-duration) var(--medai-ease), box-shadow var(--medai-duration) var(--medai-ease), transform var(--medai-duration) var(--medai-ease)}.patients-actions .patients-row-action:last-child{margin-right:0}.patients-actions .patients-row-action svg{color:var(--medai-icon);transition:color var(--medai-duration) var(--medai-ease)}.patients-actions .patients-row-action:hover:not(:disabled),.patients-actions .patients-row-action:focus-visible{background:var(--medai-accent-wash);border-color:var(--medai-action);color:var(--medai-action);box-shadow:var(--medai-shadow-sm)}.patients-actions .patients-row-action:hover:not(:disabled) svg,.patients-actions .patients-row-action:focus-visible svg{color:var(--medai-action)}.patients-actions .patients-row-action:active:not(:disabled){transform:scale(.95)}.patients-actions .patients-icon-action{width:var(--medai-control-md);padding:0}.patients-actions .patients-new-appointment,.patients-actions .patients-new-appointment svg{color:var(--medai-action)}.patients-actions .patients-new-appointment:hover:not(:disabled),.patients-actions .patients-new-appointment:focus-visible{background:var(--medai-action);border-color:var(--medai-action);color:var(--medai-text-on-action)}.patients-actions .patients-new-appointment:hover:not(:disabled) svg,.patients-actions .patients-new-appointment:focus-visible svg{color:var(--medai-text-on-action)}.patients-actions .patients-row-action.is-danger:hover:not(:disabled),.patients-actions .patients-row-action.is-danger:focus-visible{background:var(--medai-danger-50);border-color:var(--medai-danger-600);color:var(--medai-danger-700)}.patients-actions .patients-row-action.is-danger:hover:not(:disabled) svg,.patients-actions .patients-row-action.is-danger:focus-visible svg{color:var(--medai-danger-600)}@media (min-width:761px) and (max-width:1500px){.patients-actions .patients-new-appointment{width:var(--medai-control-md);padding:0}.patients-actions .patients-action-label{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}@media (max-width:760px){.patients-actions .patients-row-action{margin:0}}.modal.patient-delete-dialog{max-width:580px}.patient-delete-hero{align-items:flex-start;gap:var(--medai-space-4);padding:var(--medai-space-4);border:1px solid var(--medai-danger-200);border-radius:var(--medai-radius-lg);background:linear-gradient(135deg, var(--medai-danger-50), var(--medai-surface) 85%);display:flex}.patient-delete-icon{border-radius:var(--medai-radius-full);background:var(--medai-danger-600);width:52px;height:52px;color:var(--medai-text-on-action);flex:none;place-items:center;display:grid;box-shadow:0 0 0 6px #b91c1c1f}.patient-delete-hero h3{margin:0 0 var(--medai-space-1);color:var(--medai-danger-700)}.patient-delete-hero p{color:var(--medai-text-secondary);margin:0}.patient-delete-loss{gap:var(--medai-space-2);margin:var(--medai-space-4) 0 0;display:grid}.patient-delete-loss small{color:var(--medai-text-muted)}.patient-delete-loss ul{gap:var(--medai-space-2);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.patient-delete-loss li{align-items:baseline;gap:var(--medai-space-1);padding:var(--medai-space-1) var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);background:var(--medai-bg-sunken);color:var(--medai-text-secondary);display:inline-flex}.patient-delete-loss li strong{color:var(--medai-danger-700)}.patient-delete-legal{gap:var(--medai-space-2);margin:var(--medai-space-4) 0 0;padding:var(--medai-space-3);border-radius:var(--medai-radius-md);background:var(--medai-warning-50);color:var(--medai-warning-700);display:flex}.patient-delete-legal svg{flex:none;margin-top:2px}.patient-delete-alternative{align-items:center;gap:var(--medai-space-3);margin-top:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-4);border:1px dashed var(--medai-border-strong);border-radius:var(--medai-radius-lg);display:flex}.patient-delete-alternative>span:nth-child(2){flex:1;min-width:0;display:grid}.patient-delete-alternative small{color:var(--medai-text-muted)}.patient-delete-alternative-icon{border-radius:var(--medai-radius-full);background:var(--medai-accent-wash);width:40px;height:40px;color:var(--medai-action);flex:none;place-items:center;display:grid}.patient-delete-alternative .patient-delete-archive{min-height:var(--medai-control-sm);padding-inline:var(--medai-space-3);flex:none}.patient-delete-confirm{margin:var(--medai-space-6) 0 var(--medai-space-2);display:block}.patient-delete-input{position:relative}.patient-delete-input input{padding-right:var(--medai-space-12)}.patient-delete-input svg{top:50%;right:var(--medai-space-4);color:var(--medai-success-600);position:absolute;transform:translateY(-50%)}.patient-delete-input.is-match input{border-color:var(--medai-success-600)}.patient-delete-dialog .patient-archive-actions{margin-top:var(--medai-space-6)}.patient-delete-dialog button.danger:not(:disabled){background:var(--medai-danger-600);border-color:var(--medai-danger-600);color:var(--medai-text-on-action);box-shadow:0 6px 16px #b91c1c40}.patient-delete-dialog button.danger:not(:disabled):hover{background:var(--medai-danger-700);border-color:var(--medai-danger-700)}@media (max-width:760px){.patient-delete-hero{padding:var(--medai-space-3);gap:var(--medai-space-3)}.patient-delete-icon{width:44px;height:44px}.patient-delete-alternative{flex-wrap:wrap}.patient-delete-alternative .patient-delete-archive{width:100%}}.patients-table td.patients-owed{color:var(--medai-danger)}@media (min-width:761px){.patient-band.is-sticky{top:var(--medai-shell-topbar-height);z-index:calc(var(--medai-z-sticky) - 1);background:var(--medai-bg);padding-top:var(--medai-space-2);margin-top:calc(var(--medai-space-2) * -1);margin-bottom:var(--medai-space-3);position:sticky}.patient-band.is-sticky .patient-header.card.is-compact{margin-bottom:var(--medai-space-2);padding:var(--medai-space-2) var(--medai-space-3)}.patient-band.is-sticky .patient-header .avatar.large{width:36px;height:36px}.patient-band.is-sticky .patient-header>div{align-items:baseline;gap:0 var(--medai-space-3);flex-wrap:wrap;display:flex}.patient-band.is-sticky .patient-header h1{margin:0}.patient-band.is-sticky .tabs{margin-bottom:0}}@media print{.patient-band.is-sticky{position:static}}@media (max-height:520px) and (orientation:landscape){.patient-band.is-sticky{position:static}}.history-summary{gap:var(--medai-space-3);flex-direction:column;display:flex}.history-summary-head{justify-content:space-between;align-items:flex-start;gap:var(--medai-space-3);display:flex}.history-summary-head h2{margin:0}.history-summary-head p{margin:2px 0 0}.history-summary-head button{align-items:center;gap:var(--medai-space-2);flex:none;display:inline-flex}.history-summary-patient{gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-4);border-radius:var(--medai-radius-md);background:var(--medai-surface-muted,#f4f5f8);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:0;display:grid}.history-summary-patient dt{color:var(--medai-text-muted)}.history-summary-patient dd{color:var(--medai-text);margin:2px 0 0}.history-summary h3{margin:var(--medai-space-2) 0 0}.history-summary-marked{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.history-summary-marked li{align-items:baseline;gap:var(--medai-space-3);padding:var(--medai-space-2) 0;border-top:1px solid var(--medai-border);grid-template-columns:48px minmax(140px,220px) minmax(0,1fr);display:grid}.history-summary-marked li:first-child{border-top:0}.history-summary-flag{background:var(--medai-warning-surface,#fff4e5);color:var(--medai-warning-text,#92400e);border-radius:999px;justify-self:start;padding:2px 10px}.history-summary-marked span:last-child{color:var(--medai-text);overflow-wrap:anywhere}.history-summary-none{color:var(--medai-text-muted);margin:0}.history-summary-text{white-space:pre-wrap;margin:0}.history-edit-bar{margin-bottom:var(--medai-space-2);justify-content:flex-end;display:flex}@media (max-width:760px){.history-summary-marked li{grid-template-columns:48px minmax(0,1fr)}.history-summary-marked span:last-child{grid-column:2}}.upload-form{align-items:end;gap:var(--medai-space-4);border-bottom:1px solid var(--medai-border);padding-bottom:var(--medai-space-6);margin-bottom:var(--medai-space-2);grid-template-columns:minmax(0,3fr) minmax(0,2fr) auto;display:grid}.upload-form:not(:has(.patient-picker)){grid-template-columns:minmax(0,1fr) auto}.upload-form .primary{align-self:end}.file-list article{align-items:center;gap:var(--medai-space-4);padding:var(--medai-space-4) 0;border-bottom:1px solid var(--medai-border);display:flex}.file-list article:last-child{border-bottom:0}.file-list article>svg{color:var(--medai-icon)}.file-list article>div{min-width:0;color:var(--medai-text);flex:1}.file-list article>div>strong{color:var(--medai-text);overflow-wrap:anywhere}.file-list article>button{flex:none}.file-list small{color:var(--medai-text-muted);display:block}@media (max-width:1100px){.upload-form{grid-template-columns:minmax(0,1fr) auto}.upload-form .patient-picker{grid-column:1/-1}}@media (max-width:760px){:is(.upload-form,.upload-form:not(:has(.patient-picker))){grid-template-columns:minmax(0,1fr)}.upload-form .primary{justify-self:start}}.clinical-document-modal{flex-direction:column;width:min(1080px,100%);height:min(900px,92vh);max-height:92vh;display:flex;overflow:hidden}.clinical-document-modal>.section-head{margin-bottom:var(--medai-space-2);flex:none}.clinical-document-preview-note{margin:0 0 var(--medai-space-3);color:var(--medai-text-muted);flex:none}.clinical-document-frame{background:var(--medai-bg-sunken);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);flex:auto;width:100%;min-height:360px;display:block}.clinical-document-actions{margin-top:var(--medai-space-3);flex:none;justify-content:flex-end}.clinical-document-actions a{min-height:var(--medai-control-md);padding:0 var(--medai-space-4);color:var(--medai-action);background:var(--medai-surface);border-radius:var(--medai-radius-full);box-shadow:var(--medai-shadow-card);border:0;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.clinical-document-actions a:hover{background:var(--medai-surface-hover);text-decoration:none}.consent-actions{gap:var(--medai-space-3);margin-top:var(--medai-space-4);flex-wrap:wrap;display:flex}.consent-preview{max-width:70ch;margin-top:var(--medai-space-6);padding:var(--medai-space-6);background:var(--medai-surface);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-card);border:0}.consent-preview p{white-space:pre-wrap;overflow-wrap:anywhere}.consent-record{justify-content:space-between;align-items:flex-start;gap:var(--medai-space-4);padding:var(--medai-space-4) 0;border-bottom:1px solid var(--medai-border);flex-wrap:wrap;display:flex}.consent-record:last-child{border-bottom:0}.consent-ceremony{z-index:var(--medai-z-modal);padding:var(--medai-space-6);background:var(--medai-bg-sunken);justify-content:center;display:flex;position:fixed;inset:0}.consent-reader{background:var(--medai-surface);border-radius:var(--medai-radius-xl);width:min(880px,100%);height:100%;box-shadow:var(--medai-shadow-raised);border:0;flex-direction:column;display:flex;overflow:hidden}.consent-reader>header{padding:var(--medai-space-4) var(--medai-space-6);border-bottom:1px solid var(--medai-border);align-items:start;margin:0}.consent-reader-logo{max-width:140px;max-height:42px;margin-bottom:var(--medai-space-2);object-fit:contain}.consent-reader-content{min-height:0;padding:var(--medai-space-6);flex:1;overflow-y:auto}.consent-reader-content .consent-preview{border:0;margin:0 auto;padding:0}.consent-reader-footer{justify-content:flex-end;gap:var(--medai-space-2);padding:var(--medai-space-4) var(--medai-space-6);border-top:1px solid var(--medai-border);flex-wrap:wrap;display:flex}.signature-pad{margin:var(--medai-space-4) 0}.signature-pad>svg{touch-action:none;background:var(--medai-surface);border-radius:var(--medai-radius-lg);width:100%;height:160px;box-shadow:var(--medai-shadow-card);border:0;display:block}.signature-pad small{max-width:54ch;color:var(--medai-text-muted)}.consent-check{align-items:flex-start;gap:var(--medai-space-3);padding:var(--medai-space-4) 0;display:flex}.consent-check input{width:20px;min-width:20px;height:20px;margin-top:var(--medai-space-1)}@media (max-width:600px){.clinical-document-modal{height:100%;max-height:100%;padding:var(--medai-space-4);border-radius:0}.clinical-document-frame{min-height:240px}.clinical-document-actions{justify-content:stretch}.clinical-document-actions>*{flex:130px}.consent-record{flex-direction:column;align-items:flex-start}.consent-ceremony{padding:0}.consent-reader{border:0;border-radius:0}.consent-reader>header,.consent-reader-content,.consent-reader-footer{padding:var(--medai-space-4)}.consent-reader>header{gap:var(--medai-space-3);flex-wrap:wrap}.consent-reader-footer button{flex:150px}}.consent-reader:focus,.consent-reader:focus-visible{outline:0}.consent-document{max-width:80ch;margin:var(--medai-space-4) 0 0;border:1px solid var(--medai-border);box-shadow:none}.consent-document-head{margin-bottom:var(--medai-space-4);padding-bottom:var(--medai-space-4);border-bottom:1px solid var(--medai-border)}.consent-document-head h3{margin:var(--medai-space-1) 0}.consent-document-kind,.consent-document-date,.consent-document-note{color:var(--medai-text-muted);margin:0}.consent-document section{margin-bottom:var(--medai-space-4)}.consent-document section h4{margin:0 0 var(--medai-space-1)}.consent-document section p{margin:0}.consent-document-note{margin-top:var(--medai-space-4)}.consent-document-signatures{gap:var(--medai-space-3);margin-top:var(--medai-space-3);grid-template-columns:minmax(0,1fr);display:grid}.consent-document-signature{gap:var(--medai-space-1);min-width:0;padding:var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);flex-direction:column;display:flex}.consent-document-signature-area{align-items:end;gap:var(--medai-space-3);min-height:96px;margin-bottom:var(--medai-space-2);grid-template-columns:minmax(0,1fr);display:grid}.consent-document-signature-area.has-stamp{grid-template-columns:minmax(0,1fr) minmax(0,30%)}.consent-document-signature-line{border-bottom:1px solid var(--medai-text-muted);justify-content:center;align-items:flex-end;min-width:0;height:88px;display:flex}.consent-document-signature-line img{object-fit:contain;max-width:100%;max-height:80px;display:block}.consent-document-stamp{object-fit:contain;place-self:end center;max-width:100%;max-height:104px;display:block}.consent-document-signature small{color:var(--medai-text-muted);overflow-wrap:anywhere}.consent-record-feedback{flex-basis:100%}.consent-record-feedback:empty{display:none}.consent-editor-head{justify-content:space-between;align-items:flex-start;gap:var(--medai-space-3) var(--medai-space-6);margin-bottom:var(--medai-space-6);flex-wrap:wrap;display:flex}.consent-editor-head h2{margin:0 0 var(--medai-space-1)}.consent-editor-head p{max-width:68ch;color:var(--medai-text-muted);margin:0}.consent-editor-badge{padding:var(--medai-space-1) var(--medai-space-3);color:var(--medai-text-secondary);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-full);flex:none}.consent-editor-meta{gap:var(--medai-space-4);grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1fr);display:grid}.consent-editor-sheet{gap:var(--medai-space-3);margin-top:var(--medai-space-6);padding:var(--medai-space-6);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);flex-direction:column;display:flex}.consent-editor-label{justify-content:space-between;align-items:baseline;gap:var(--medai-space-2);flex-wrap:wrap;width:min(76ch,100%);margin:0 auto;display:flex}.consent-editor-label small{color:var(--medai-text-muted)}.consent-editor .consent-editor-body{width:min(76ch,100%);min-height:480px;padding:var(--medai-space-8) var(--medai-space-8);color:var(--medai-text-secondary);background:var(--medai-surface);border-radius:var(--medai-radius-md);box-shadow:var(--medai-shadow-card);field-sizing:content;border-color:#0000;margin:0 auto;display:block}.consent-editor-foot{justify-content:space-between;align-items:center;gap:var(--medai-space-3);margin-top:var(--medai-space-4);flex-wrap:wrap;display:flex}.consent-editor-foot small{color:var(--medai-text-muted)}@media (max-width:900px){.consent-editor-meta{grid-template-columns:minmax(0,1fr)}}@media (max-width:640px){.consent-editor-sheet{padding:var(--medai-space-3);margin-inline:calc(-1 * var(--medai-space-2))}.consent-editor .consent-editor-body{padding:var(--medai-space-4);min-height:360px}}.consent-registered-signature{gap:var(--medai-space-3);padding:var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);flex-direction:column;display:flex}.consent-registered-label{color:var(--medai-text-muted);margin:0}.consent-registered-images{align-items:center;gap:var(--medai-space-6);flex-wrap:wrap;min-height:96px;display:flex}.consent-registered-images img{object-fit:contain;max-width:min(260px,100%);max-height:96px}.consent-registered-note{color:var(--medai-text-muted);margin:0}.consent-registered-signature>button{align-self:flex-start}.consent-replaced{margin-top:var(--medai-space-3);border-top:1px solid var(--medai-border);padding-top:var(--medai-space-3)}.consent-replaced>summary{cursor:pointer;color:var(--medai-text-muted);align-items:center;min-height:44px;display:flex}.clinic-logo-preview{height:180px;margin:var(--medai-space-6) 0 var(--medai-space-4);padding:var(--medai-space-4);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-card);border:0;align-items:center;display:flex}.clinic-logo-preview .clinic-identity-icon{flex-basis:72px;width:72px;height:72px}.clinic-logo-preview .clinic-identity{gap:var(--medai-space-4)}.logo-upload{gap:var(--medai-space-2);flex-direction:column;width:100%;max-width:430px;display:inline-flex}.logo-upload>span{align-items:center;gap:var(--medai-space-2);display:flex}.branding-note{margin:var(--medai-space-4) 0;max-width:520px}.clinic-branding .notice{margin-top:var(--medai-space-3)}.invitation{margin-top:var(--medai-space-6);padding:var(--medai-space-4);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);border:0}.invitation button{margin-top:var(--medai-space-3)}.invitation p{margin:var(--medai-space-3) 0 0}.app-shell:not(.agenda-shell) .content{max-width:none;padding:var(--medai-page-inset)}.app-shell .content :is(.workspace-section,.medai-home-panel,.piece-card,.dental-preparation,.consent-preview){background:var(--medai-surface);border:var(--medai-workspace-surface-border) solid var(--medai-border);border-radius:var(--medai-workspace-surface-radius);padding:var(--medai-workspace-surface-inset);box-shadow:var(--medai-shadow-card)}.app-shell .content :is(.card,.workspace-section) :is(.card,.workspace-section){margin-bottom:var(--medai-section-gap);border:0;border-radius:0;padding:0}.app-shell .content :is(.page-head,.medai-home-heading){margin-bottom:var(--medai-section-gap)}.app-shell .content :is(.detail-grid,.medai-home-workspace){gap:var(--medai-section-gap)}.app-shell .content .settings-hub-section{margin-bottom:var(--medai-section-gap)}.workspace-bootstrap-error.card{box-shadow:var(--medai-shadow-md)}.page-head>button,.page-head>a{white-space:normal;max-width:100%}.metric strong,.medai-home-metric-label{overflow-wrap:anywhere}.medai-home-heading-actions{flex-wrap:wrap}.medai-home-heading-actions button{white-space:normal;max-width:100%}.medai-home-treatment-summary li{flex-wrap:wrap;min-width:0}.settings-hub-item h3,.settings-hub-item p{overflow-wrap:anywhere}.medai-home-agenda-filters{flex-wrap:wrap}.app-shell .content h1{overflow-wrap:anywhere}.app-shell .content .medai-home-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5em),1fr))}.medai-home-metric small{overflow-wrap:anywhere}.app-shell .content .medai-home-treatment-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,9em),1fr))}@media (max-width:760px){.mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-tabs a,.mobile-tabs button,.mobile-tabs span{overflow-wrap:anywhere;min-width:0;max-width:100%}.app-main{padding-bottom:calc(2lh + 56px)}.calendar-mobile-days{grid-template-columns:repeat(7,minmax(3em,1fr));overflow-x:auto}.calendar-month button{height:auto;min-height:max(36px,1lh)}}@media (max-width:380px){.app-shell .content .medai-home-appointment{grid-template-columns:minmax(0,1fr) 44px}.app-shell .content .medai-home-appointment-time{grid-area:1/1}.app-shell .content .medai-home-appointment-person{grid-area:2/1}.app-shell .content .medai-home-appointment .medai-home-status{grid-area:3/1}.app-shell .content .medai-home-row-action{grid-area:1/2/4}}body,.platform-admin,.pa-auth-wrap,.app-shell,.medai-home,.calendar-workspace,.odontogram-workspace,.piece-sheet,.tooth-context-menu,.tooth-hover-preview,td,.unified-result,.unified-search-empty,.dental-prepared-record>span>span,.piece-item p,.piece-timeline p,.contact-line,.odc-quicklook,.global-search-glance-name span,.pa-plans-table tbody th,.team-card-head p{font:var(--medai-type-body);letter-spacing:var(--medai-tracking-body)}p,.pharma-dev-preview-warning,.page-head>div>p,.medai-home-intro,.medai-home-empty p,.medai-home-about p,.medai-home-banner-copy>span,.settings-hub-item p,.branding-note,.piece-hint,.piece-summary p,.piece-capture-status,.piece-draft-notice,.dental-preparation>p,.dental-preparation footer p,.dental-record>p,.dental-record-footnote,.dental-record-empty,.dental-filter-empty,.dental-render-error p,.dental-leave-dialog p{font:var(--medai-type-paragraph);letter-spacing:var(--medai-tracking-paragraph)}button,input,select,textarea,label,.pharma-picker-label,.pharma-dev-preview-fields label,.field,.check,.sidebar nav a,.sidebar-bottom>button,.workspace-identity-options label,.workspace-identity-options select,.tabs a,.medai-home-section-heading a,.medai-home-team-footer a,.medai-home-focus-actions a,.medai-home-about>a,.calendar-month-heading h2,.calendar-toolbar .segmented button,.calendar-appointment,.dental-preparation button,.dental-prepared-grid label,.piece-sheet button,.odontogram-workspace button,.piece-editor label,.piece-editor legend,.tooth-context-menu button,.tooth-context-surfaces button,.tooth-context-detail label,.dental-presentation-tools button,.dental-arch-control button,.dental-tooth-jump select,.dental-focus-select,.dental-view-select,.dental-camera-controls button,.dental-journey button,.dental-general-plan,.calendar-legend summary,.calendar-status-color,.auth-password-toggle,.auth-register-step-number,.auth-register .auth-card form .field>label,.dcx .ruler button,.global-search-hero-go,.dcx .txt,.dcx .lab-print input,.dcx .lab-print select,.dcx .lab-print textarea,.reminder-link,.patients-phone,fieldset.phone-field legend,.phone-code-display,.sidebar-upgrade,.pa-plans-tabs button,.team-card-head .primary,.team-member select,.team-member-actions button,.team-role-badge,.professional-photo-upload{font:var(--medai-type-label);letter-spacing:var(--medai-tracking-label)}h1,.pa-auth-card h1,.pa-page-title h1,.page-head h1,.patient-header h1,.medai-home-heading h1,.workspace-bootstrap-error>h1,.auth-card h2,.dcx .charts-head h2,.dcx .lab-head h3,.dcx .xd-side h3,.medai-home-focus-time time,.team-card-head h2{font:var(--medai-type-page-title);letter-spacing:var(--medai-tracking-page-title)}h2,.pa-panel-head h2,.section-head h2,.medai-home-section-heading h2,.medai-home-empty h3,.medai-home-banner-copy strong,.piece-chart-heading h2,.piece-sheet-header h2,.piece-sheet-mobile .piece-sheet-header h2,.auth-register-next h2,.dental-preparation h3,.dental-presentation-title h2,.dental-leave-dialog h2,.tooth-context-menu h3,.calendar-day-list h3,.calendar-mobile-list h3,.search-page h2,.dcx .ruler button[aria-current=true],.dcx .key,.dcx .cmd-input,.medicine-sheet-title h2,.dcx .pc-head h3,.dcx .stage-title h2,.dcx .title,.ck-step-title,.ck-plan-name,.pa-code-box{font:var(--medai-type-section-title);letter-spacing:var(--medai-tracking-section-title)}h3,.pa-subpanel h3,.pa-subpanel h4,.dental-record h5,.dental-piece-heading h3,.dental-record-section>h4,.medai-home-focus-person a,.calendar-period h2,.patient-header.is-compact h1,.notification-panel-head h2,.mdc-sheet h2,.mdc-modal-card h2,.history-summary h3{font:var(--medai-type-subsection-title);letter-spacing:var(--medai-tracking-subsection-title)}.settings-hub-section>h2{font:var(--medai-type-settings-group);letter-spacing:var(--medai-tracking-settings-group)}.pa-wordmark,.appointment-end-preview strong,strong,.pharma-picker-result-main strong,b,.person strong,td strong,.clinic-identity-name,.clinic-identity-initials,.medai-home-appointment-person a,.medai-home-appointment-time,.medai-home-focus-details dd,.medai-home-treatment-summary strong,.medai-home-treatment-list strong,.medai-home-team-list strong,.piece-number,.piece-arcade-label,.piece-selection-label,.piece-tag,.piece-editor h4,.piece-records summary,.unified-search-caption,.unified-result-title,.dental-record-summary strong,.dental-treatment-status,.dental-record-surface,.dental-panel-toggle>span:first-child,.dental-preparation legend,.tooth-context-draft,.signature-pad>p,.odc-ql-head,.dcx .lab-case b,.dcx .span-chip b,.dcx .peek h5,.dcx .cmd-head,.patient-header.is-compact .avatar.large,.prescription-detail-head dd,.medicine-fact dd,.medicine-section h3,.medicine-append-patient,.consent-document section h4,.ck-strong,.ck-summary-lines dd,.ck-timeline strong,.ck-pending-facts dd,.pa-pay-facts dd,.google-signin-button,.global-search-glance-name,.global-search-glance-alert,.pa-plans-tabs button.is-active,.pa-plans-name>button,.pa-plans-name>span:first-child,.pa-plans-card-price,.mdc-records span,.mdc-primary,.mdc-secondary,.mdc-top b,.mdc-row b,.mdc-choices button,.team-question,.team-subtitle,.sidebar-upgrade-text,.ck-progress li.is-current .ck-progress-label{font:var(--medai-type-body-emphasis);letter-spacing:var(--medai-tracking-body-emphasis)}small,.pharma-picker-hint,.pharma-picker-status,.pharma-picker-result-description,.pharma-dev-preview-muted,.subtle,.auth-foot,.auth-card>.subtle,td small,.field small,.app-footer,.unified-result-detail,.search-key-hint,.back-link,.notes small,.file-list small,.metric>span,.metric small,.appointment-info p,.appointment-info small,.appointment-time small,.medai-home-date,.medai-home-appointment-time time:last-child,.medai-home-appointment-person p,.medai-home-appointment-person small,.medai-home-section-heading p,.medai-home-metric small,.medai-home-agenda-footer,.medai-home-focus-time small,.medai-home-focus-overdue,.medai-home-focus-details dt,.medai-home-preview-note,.medai-home-team-list small,.dental-presentation-title h2 span,.dental-presentation-title p,.dental-scene-guide,.dental-panel-toggle>span:last-child,.dental-piece-position,.dental-record-summary span,.dental-record-date,.dental-journey-summary,.dental-journey-count,.dental-tooth-jump>span,.dental-prepared-record small,.piece-orientation,.piece-quadrant-name,.piece-header-description,.piece-sheet-mobile .piece-summary p,.piece-zone-picker>.piece-hint,.piece-status-legend,.piece-inline-validation,.piece-timeline small,.piece-item small,.piece-optional,.calendar-weekday,.calendar-hours span,.calendar-time-heading,.calendar-zone,.calendar-appointment-practitioner,.appointment-end-preview,.tooth-context-caption,.tooth-context-retained,.tooth-context-error,.tooth-context-success,.auth-password-guidance,.auth-password-strength,.auth-resend-result,.calendar-month button,.mouth3d-head p,.mouth3d-note,.ck-secondary-text,.ck-summary-lines dt,.auth-entry-links,.global-search-glance-facts,.global-search-glance-suggestion,.mdc-records em,.mdc-empty,.mdc-top span,.mdc-toast{font:var(--medai-type-secondary);letter-spacing:var(--medai-tracking-secondary)}.pa-auth-foot,.pharma-picker-country,.pharma-picker-footer,.pharma-picker-results-heading,.pa-field small,.pa-totp-qr p,.pa-totp-qr code,.pa-wordmark small,.pa-live,.pa-sidebar-note,.pa-empty-inline,.pa-pagination,.pa-summary p,.pa-summary small,.pa-subpanel>p,.pa-definition-list code,.pa-record-list button,.pa-operator-row button,.pa-footnote,.pa-app-footer,.auth-register .auth-password-guidance,.auth-register .auth-password-strength>p,.auth-register .auth-card>.text-button,.auth-register-footer,.auth-login-footer,.calendar-appointment span,.table-wrap td:before,.odc-legend,.odc-credit,.odc-ql-sub,.odc-ql-state,.dcx button,.dcx .hint-line,.dcx .crumbs,.dcx .stage-title .sub,.dcx .hint,.dcx .empty,.dcx .rec-item,.dcx .void-form,.dcx .next-tooth,.dcx .exist-box p,.dcx .cmd-preview li,.dcx .peek,.dcx .peek li,.dcx .peek .line,.dcx .lab-head .sub,.dcx .xd-side .sub,.dcx .lab-sign,.dcx .toast,.dcx .vals,.dcx .pcells .vals,.dcx .qbar .count,.dcx .qbtn,.history-paper .paper-head dt,.appointment-detail-grid dt,.prescription-detail-head dt,.prescription-detail-grid dt,.medicine-loading,.medicine-error,.medicine-status,.medicine-reference>header small,.medicine-disclaimer,.medicine-sheet-buttons p,.medicine-append-patient small,.medicine-append-medicines,.medicine-append-empty,.medicine-append-note,.unified-medicine-tag,.patient-photo-error,.notification-item-body p,.notification-empty,.consent-document .consent-document-date,.consent-document .consent-document-note,.consent-document-signature small,.mouth3d-hint,.mouth3d-credit,.ck-caption,.ck-optional,.auth-terms,.auth-divider,.consent-editor-badge,.pa-plans-table small,.pa-plans-table td:before,.pa-plans-footnote,.pa-plans-checks small,.pa-plans-preview-note,.pa-plans-card-tagline,.pa-plans-card-prices dt,.pa-plans-card-prices dd,.pa-plans-card-prices small,.pa-plans-card-members,.mdc-where span,.mdc-key,.mdc-tags .tag,.mdc-note,.mdc-row small,.team-link code,.verify-hash code,.consent-registered-note,.history-summary-patient dt,.history-summary-none,.clinic-blocked-note,.ck-receipt .is-amount small,.team-member-name small,.patient-presence-text{font:var(--medai-type-caption);letter-spacing:var(--medai-tracking-caption)}.pharma-picker-results-heading strong,.pharma-dev-preview-badge,.pa-role-badge,.pa-status,.billing-status,.auth-register .auth-password-strength-label,.badge,.medai-home-status,.calendar-appointment strong,.odc-rx,.dcx .pill,.dcx .sec h4,.dcx .more-toggle,.dcx .link,.dcx .opt,.dcx .crumbs button,.dcx .lab-check,.dcx .vals b,.dcx .vals b.deep,.dcx .pc-tab,.dcx .act,.dcx .cards.root .card,.dcx .exist-box .exist-what,.dcx .cmd-preview .ok,.dcx .cmd-preview .err,.dcx .peek .warn,.dcx .hint-line .idx b,.calendar-day-column .calendar-appointment strong,.calendar-day-column .calendar-appointment.is-short strong,.calendar-month-event em,.prescription-detail-index,.mobile-tabs a,.mobile-tabs button,.patient-photo-caption,.notification-count,.mouth3d-tooth-label,.ck-save-pill,.ck-badge,.ck-state,.ck-copy span,.ck-progress li,.pa-pay-count,.pa-plans-count,.pa-plans-tag,.pa-plans-preview-label,.mdc-seg button,.mdc-rail-seg button,.mdc-rail-btn,.mdc-turn,.pa-pay-state,.history-summary-flag,.workspace-switch-avatar,.patient-presence-avatar{font:var(--medai-type-caption-emphasis);letter-spacing:var(--medai-tracking-caption-emphasis)}.pharma-dev-preview-brand,.pa-eyebrow,.pa-sidebar-label,.eyebrow,.patient-header .eyebrow,.auth-story .eyebrow,.piece-eyebrow,.dental-panel-eyebrow,.odc-ql-title,.odc-views,.odc-sheet-views figcaption,.dcx .lab-note,.medicine-sheet-title p,.medicine-fact dt,.medicine-pair strong,.consent-document .consent-document-kind,.mouth3d-panel h3,.ck-eyebrow,.ck-pending-facts dt,.pa-pay-facts dt,.mdc-where b,.mdc-eyebrow,.workspace-switch-label,.clinic-blocked-eyebrow{font:var(--medai-type-overline);letter-spacing:var(--medai-tracking-overline)}.pa-summary strong,.pa-definition-list dd,.calendar-day-heading strong,.ck-summary-lines .is-total dd,.pa-pay-amount strong,.pa-pay-rate strong,.pa-plans-card-amount,.team-avatar,.team-member-name strong,.ck-receipt .is-amount dd{font:var(--medai-type-data-value);letter-spacing:var(--medai-tracking-data-value)}.sidebar .nav-section-label,.calendar-day-heading span{font:var(--medai-type-navigation-group);letter-spacing:var(--medai-tracking-navigation-group)}th,.pa-plans-table thead th{font:var(--medai-type-table-header);letter-spacing:var(--medai-tracking-table-header)}.pharma-picker-input-wrap input,.pharma-dev-preview-fields input,.consent-preview p,.consent-reader-content p,.consent-check,.consent-preview li,.history-paper .legacy-notes,.consent-editor .consent-editor-body{font:var(--medai-type-reading);letter-spacing:var(--medai-tracking-reading)}.metric strong,.balance-card strong,.medai-home-metric strong,.ck-price,.ck-amount,.clinic-logo-preview .clinic-identity-initials,.professional-photo-avatar{font:var(--medai-type-metric);letter-spacing:var(--medai-tracking-metric)}.dcx .seg-pills button,.dcx .legend-row,.dcx .pc-head p,.dcx .pc-summary,.dcx .lab,.dcx .site.on .lab,.dcx .card,.dcx .chip,.dcx .pc-foot,.dcx .flag,.dcx .seg-row,.dcx .seg button,.dcx .tag,.dcx .test,.dcx .sec-head .muted,.dcx .steps,.dcx .more-sum,.dcx .note,.dcx .cmd-help,.dcx .lab-t,.dcx .lab-print label,.dcx .xd-nav,.dcx .head-act,.dcx .hist li,.dcx .qchip,.dcx .peek .sub,.dcx .pk-btn,.dcx .small-btn,.calendar-day-column .calendar-appointment>span:first-child,.calendar-day-column .calendar-appointment>span:not(:first-child),.calendar-event-symbol,.calendar-day-column .calendar-appointment.is-short>span:first-child,.calendar-month-event,.calendar-month-more{font:var(--medai-type-chart-small);letter-spacing:var(--medai-tracking-chart-small)}.dcx kbd,.dcx .credit,.dcx .view-label,.dcx .pc-face,.dcx .st,.dcx .test .res,.dcx .pcells .lab,.dcx .span-chip,.dcx .span-chip.sm,.dcx .steps li:before,.dcx .xr-list span,.dcx .lab-case,.dcx .peek .tag,.dcx .peek .grp-h,.dcx .cmd-help code,.dcx .peek .foot,.dcx .hist .who,.calendar-month-event span{font:var(--medai-type-chart-micro);letter-spacing:var(--medai-tracking-chart-micro)}.global-search-hero input{font:var(--medai-type-search-hero);letter-spacing:var(--medai-tracking-search-hero)}.patient-header .patient-identifiers{font:var(--medai-type-identifiers);letter-spacing:var(--medai-tracking-identifiers)}th{text-transform:none}.sidebar .nav-section-label,.settings-hub-section>h2,.eyebrow,.piece-eyebrow,.dental-panel-eyebrow{text-transform:uppercase}.metric strong,.balance-card strong,.medai-home-metric strong,.calendar-hours,.calendar-period,time,td{font-variant-numeric:tabular-nums}.auth:not(.auth-register) .auth-story h1{font:600 clamp(36px, 4.4vw, 60px)/1.1 var(--medai-font);letter-spacing:-1.5px}.piece-sheet-navigation button,.piece-sheet-header button,.tooth-context-close,.dental-camera-controls .dental-control-icon,.dental-journey .dental-control-icon{font:500 24px/1 var(--medai-font);letter-spacing:0}.piece-sheet-header .piece-clear-button{font:var(--medai-type-label);letter-spacing:0}.calendar-workspace{background:var(--medai-surface);grid-template-columns:244px minmax(0,1fr);display:grid}.calendar-workspace.calendar-filters-collapsed{grid-template-columns:minmax(0,1fr)}.calendar-sidebar{padding:var(--medai-space-3);background:var(--medai-surface);border-right:1px solid var(--medai-border)}.calendar-sidebar[hidden]{display:none}.calendar-month-heading{justify-content:space-between;align-items:center;gap:var(--medai-space-1);display:flex}.calendar-month-heading h2{text-align:center;margin:0}.calendar-month-heading h2:first-letter{text-transform:uppercase}.calendar-month-heading button[aria-label],.calendar-period button[aria-label]{min-width:var(--medai-control-md);box-shadow:none;color:var(--medai-icon);background:0 0;border-color:#0000;justify-content:center;align-items:center;padding:0;display:flex}.calendar-month-heading button[aria-label]:hover,.calendar-period button[aria-label]:hover{background:var(--medai-surface-hover);color:var(--medai-text);border-color:#0000}.calendar-month{gap:var(--medai-space-1);margin-top:var(--medai-space-2);grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-weekday{text-align:center;color:var(--medai-text-muted);padding-bottom:var(--medai-space-2)}.calendar-month button{aspect-ratio:1;border-radius:var(--medai-radius-sm);width:100%;min-width:0;height:auto;min-height:0;box-shadow:none;color:var(--medai-text);background:0 0;border:0;place-items:center;padding:0;display:grid;position:relative}.calendar-month button.is-today{border:1px solid var(--medai-border-strong)}.calendar-month button:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.calendar-month button.is-selected,.calendar-month button.is-selected:hover{background:var(--medai-action);border-color:var(--medai-action);color:var(--medai-text-on-action)}.calendar-month button i{border-radius:var(--medai-radius-full);background:var(--medai-text-placeholder);width:4px;height:4px;position:absolute;bottom:2px;left:50%;transform:translate(-50%)}.calendar-month button.is-selected i{background:currentColor}.calendar-filters{gap:var(--medai-space-3);margin-top:var(--medai-space-4);padding-top:0;display:grid}.calendar-filters label{gap:var(--medai-space-2);display:grid}.calendar-filters input,.calendar-filters select{min-width:0}.calendar-side-note{margin:var(--medai-space-4) 0 0;color:var(--medai-text-muted)}.calendar-zone{margin:var(--medai-space-2) 0 0;color:var(--medai-text-muted);overflow-wrap:anywhere}.calendar-filter-count{width:var(--medai-space-6);height:var(--medai-space-6);border-radius:var(--medai-radius-full);background:var(--medai-surface-selected);color:var(--medai-text);place-items:center;display:grid}.calendar-main{min-width:0}.calendar-toolbar{justify-content:space-between;align-items:center;gap:var(--medai-space-2);padding:var(--medai-space-2) var(--medai-space-3);flex-wrap:wrap;grid-column:1/-1;display:flex}.calendar-period{align-items:center;gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.calendar-period h2{margin:0 0 0 var(--medai-space-2)}.calendar-actions{align-items:center;gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.calendar-timeline-scroll{max-height:72dvh;overflow:auto}.calendar-timeline{min-width:652px;display:grid}.calendar-time-heading,.calendar-day-heading{z-index:var(--medai-z-raised);background:var(--medai-surface);border:0;border-bottom:1px solid var(--medai-border);padding:var(--medai-space-3) var(--medai-space-1);position:sticky;top:0}.calendar-time-heading{color:var(--medai-text-muted);padding-right:var(--medai-space-2);justify-content:flex-end;align-items:flex-end;display:flex}.calendar-day-heading{min-height:auto;padding:var(--medai-space-2) var(--medai-space-1);box-shadow:none;cursor:pointer;border-radius:0;align-content:center;justify-items:center;gap:2px;display:grid}.calendar-day-heading:hover{background:var(--medai-bg-sunken)}.calendar-day-heading span{color:var(--medai-text-muted);text-transform:uppercase}.calendar-day-heading strong{width:36px;height:36px;color:var(--medai-text);border-radius:var(--medai-radius-full);font-variant-numeric:tabular-nums;place-items:center;display:grid}.calendar-day-heading.is-selected strong{background:var(--medai-surface-selected)}.calendar-day-heading.is-today span{color:var(--medai-text)}.calendar-day-heading.is-today strong{background:var(--medai-action);color:var(--medai-text-on-action)}.calendar-hours{background:var(--medai-surface);color:var(--medai-text-muted);font-variant-numeric:tabular-nums}.calendar-hours span{height:88px;padding:var(--medai-space-1) var(--medai-space-2) 0 0;text-align:right;white-space:nowrap;display:block}.calendar-day-column{border-left:1px solid var(--medai-border);background:repeating-linear-gradient(to bottom,var(--medai-border) 0,var(--medai-border) 1px,transparent 1px,transparent 44px,var(--medai-gray-100) 44px,var(--medai-gray-100) 45px,transparent 45px,transparent 88px);position:relative}.calendar-day-column .calendar-appointment{text-align:left;padding:var(--medai-space-1) var(--medai-space-2);min-height:var(--medai-control-md);white-space:normal;border:1px solid color-mix(in srgb, var(--appointment-color) 28%, transparent);border-radius:var(--medai-radius-sm);background:var(--appointment-fill);color:var(--medai-text);box-shadow:none;cursor:pointer;transition:box-shadow var(--medai-duration) var(--medai-ease), border-color var(--medai-duration) var(--medai-ease);flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;display:flex;position:absolute;overflow:hidden}.calendar-appointment span,.calendar-appointment strong{white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;overflow:hidden}.calendar-appointment>span:first-child{color:var(--medai-text-secondary);font-variant-numeric:tabular-nums;white-space:normal}.calendar-appointment>span:not(:first-child){color:var(--medai-text-secondary)}.calendar-appointment .calendar-appointment-practitioner{color:var(--medai-text-muted)}.calendar-day-column .calendar-appointment:hover{background:var(--appointment-fill);border-color:var(--appointment-color);box-shadow:var(--medai-shadow-sm)}.calendar-day-column .calendar-appointment.is-compact{padding-block:var(--medai-space-1)}.calendar-appointment.is-compact strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-appointment.is-short>span:first-child{display:none}.calendar-day-column .calendar-appointment.is-short{justify-content:center}.calendar-workspace .status-scheduled{--appointment-color:var(--medai-status-scheduled-line);--appointment-fill:var(--medai-status-scheduled-bg)}.calendar-workspace .status-confirmed{--appointment-color:var(--medai-status-confirmed-line);--appointment-fill:var(--medai-status-confirmed-bg)}.calendar-workspace .status-in_progress{--appointment-color:var(--medai-status-progress-line);--appointment-fill:var(--medai-status-progress-bg)}.calendar-workspace .status-completed{--appointment-color:var(--medai-status-completed-line);--appointment-fill:var(--medai-status-completed-bg)}.calendar-workspace .status-cancelled{--appointment-color:var(--medai-status-cancelled-line);--appointment-fill:var(--medai-status-cancelled-bg)}.calendar-workspace .status-no_show{--appointment-color:var(--medai-status-noshow-line);--appointment-fill:var(--medai-status-noshow-bg)}.calendar-workspace .appointment-row>button{min-height:var(--medai-control-md)}.calendar-event-symbol{color:var(--appointment-color);margin-right:var(--medai-space-1);font-style:normal}.calendar-slot{justify-content:center;align-items:center;gap:var(--medai-space-2);width:100%;min-height:var(--medai-control-md);box-shadow:none;color:var(--medai-text);cursor:pointer;background:0 0;border:0;border-radius:0;padding:0;display:flex;position:absolute;inset-inline:0}.calendar-slot>*{visibility:hidden}.calendar-slot:hover,.calendar-slot:focus{background:var(--medai-surface-hover)}.calendar-slot:hover>*,.calendar-slot:focus>*{visibility:visible}.calendar-single-day{min-width:0}.calendar-legend{position:relative}.calendar-legend summary{align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-md);padding:var(--medai-space-2);border-radius:var(--medai-radius-md);color:var(--medai-text-muted);cursor:pointer;list-style:none;display:flex}.calendar-legend summary:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.calendar-legend summary:before{content:"";width:var(--medai-space-3);height:var(--medai-space-3);border-radius:var(--medai-radius-full);background:conic-gradient(var(--medai-status-confirmed-line) 0 33%,var(--medai-status-progress-line) 33% 66%,var(--medai-status-scheduled-line) 66%)}.calendar-legend summary::-webkit-details-marker{display:none}.calendar-legend-content{z-index:var(--medai-z-dropdown);gap:var(--medai-space-2);min-width:200px;padding:var(--medai-space-4);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-md);display:grid;position:absolute;top:100%;right:0}.calendar-status-color{align-items:center;gap:var(--medai-space-2);white-space:nowrap;display:flex}.calendar-status-color i{width:var(--medai-control-sm);height:var(--medai-control-sm);border-radius:var(--medai-radius-sm);background:var(--appointment-fill);color:var(--appointment-color);place-items:center;font-style:normal;display:grid}.calendar-day-list,.calendar-mobile-list{padding:var(--medai-space-4)}.calendar-day-list h3,.calendar-mobile-list h3{margin-bottom:var(--medai-space-4)}.calendar-day-list h3:first-letter,.calendar-mobile-list h3:first-letter{text-transform:uppercase}.calendar-mobile-days,.calendar-mobile-list{display:none}.calendar-empty-note{padding:var(--medai-space-4);color:var(--medai-text-muted);margin:0}.calendar-day-list-heading{justify-content:space-between;align-items:center;gap:var(--medai-space-2);display:flex}.calendar-day-list-heading h3{margin:0}.calendar-accessible-title{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (min-width:761px){.calendar-workspace{flex:1;grid-template-rows:auto minmax(0,1fr);min-height:0}.calendar-sidebar{min-height:0;overflow:auto}.calendar-main{flex-direction:column;min-height:0;display:flex}.calendar-timeline-scroll{flex:1;min-height:0;max-height:none}.calendar-day-list{flex:1;min-height:0;overflow:auto}.calendar-month-heading button[aria-label]{min-width:var(--medai-control-sm);padding-inline:var(--medai-space-1)}.calendar-month-heading h2{white-space:nowrap}}@media (max-width:760px){.calendar-workspace{grid-template-columns:minmax(0,1fr)}.calendar-toolbar{padding:var(--medai-space-2)}.calendar-period{width:100%}.calendar-period h2{margin:var(--medai-space-1) 0;flex-basis:100%}.calendar-actions{justify-content:space-between;gap:var(--medai-space-1);width:100%;position:relative}.calendar-actions>button{padding-inline:var(--medai-space-2)}.calendar-sidebar{padding:var(--medai-space-3)}.calendar-filters{grid-template-columns:1fr 1fr}.calendar-filters label:first-child{grid-column:1/-1}.calendar-month{max-width:350px;margin-inline:auto}.calendar-month button{min-height:var(--medai-control-md)}.calendar-month-heading{max-width:350px;margin:auto}.calendar-timeline-scroll{display:none}.calendar-mobile-days{padding:var(--medai-space-3) var(--medai-space-2);gap:var(--medai-space-1);border-bottom:1px solid var(--medai-border);grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-mobile-days button{min-width:0;min-height:60px;padding:var(--medai-space-2) 0;border-radius:var(--medai-radius-md);background:var(--medai-surface);box-shadow:none;gap:var(--medai-space-2);border:0;display:grid}.calendar-mobile-days button span:first-letter{text-transform:uppercase}.calendar-mobile-days button[aria-pressed=true]{background:var(--medai-action);color:var(--medai-text-on-action)}.calendar-mobile-days button.is-today strong{width:var(--medai-control-sm);height:var(--medai-control-sm);border-radius:var(--medai-radius-full);background:var(--medai-action);color:var(--medai-text-on-action);place-items:center;margin-inline:auto;display:grid}.calendar-mobile-list{display:block}.calendar-day-list,.calendar-mobile-list{padding:var(--medai-space-4) var(--medai-space-3)}.calendar-actions{gap:var(--medai-space-1)}.calendar-legend summary{padding:var(--medai-space-2) var(--medai-space-1)}.calendar-legend{position:static}.calendar-day-list-heading{margin-bottom:var(--medai-space-3);flex-wrap:wrap}}.duration-field{gap:var(--medai-space-2);align-content:start;display:grid}.duration-presets{gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.duration-chip{min-height:32px;padding:0 var(--medai-space-3);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-full);background:var(--medai-surface);color:var(--medai-text);cursor:pointer;transition:background var(--medai-duration) var(--medai-ease), border-color var(--medai-duration) var(--medai-ease)}.duration-chip:hover:not(:disabled){background:var(--medai-surface-hover)}.duration-chip[aria-pressed=true]{background:var(--medai-action);border-color:var(--medai-action);color:var(--medai-text-on-action)}.duration-chip:focus-visible{outline:var(--medai-focus-ring) solid var(--medai-focus-offset);outline-offset:2px}.duration-chip:disabled{opacity:.6;cursor:not-allowed}.calendar-day-column .calendar-appointment{border-left:3px solid var(--appointment-color);border-radius:var(--medai-radius-md);padding:var(--medai-space-2) var(--medai-space-2) var(--medai-space-2) var(--medai-space-3)}.calendar-day-column .calendar-appointment:focus-visible{outline:var(--medai-focus-ring) solid var(--medai-focus-offset);outline-offset:2px}.calendar-now-line{background:var(--medai-action);z-index:2;pointer-events:none;height:2px;position:absolute;left:0;right:0}.calendar-now-line:before{content:"";border-radius:var(--medai-radius-full);background:var(--medai-action);width:8px;height:8px;position:absolute;top:-3px;left:-4px}.calendar-month button.is-today:not(.is-selected){background:var(--medai-surface-selected);border-color:#0000}.calendar-month-view{min-height:0;padding:var(--medai-space-3);flex-direction:column;flex:1;display:flex;overflow:auto}.calendar-month-weekdays{color:var(--medai-text-muted);text-align:center;padding-bottom:var(--medai-space-2);grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-month-grid{border-top:1px solid var(--medai-border);border-left:1px solid var(--medai-border);flex:1;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(112px,1fr);display:grid}.calendar-month-cell{gap:var(--medai-space-1);min-width:0;padding:var(--medai-space-1);border-right:1px solid var(--medai-border);border-bottom:1px solid var(--medai-border);cursor:pointer;flex-direction:column;display:flex;position:relative}.calendar-month-cell:hover{background:var(--medai-bg-sunken)}.calendar-month-cell.is-outside{color:var(--medai-text-placeholder);background:var(--medai-surface)}button.calendar-month-number{border-radius:var(--medai-radius-full);width:28px;min-width:28px;height:28px;min-height:0;box-shadow:none;color:inherit;font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;flex:none;align-self:flex-end;place-items:center;padding:0;display:grid}button.calendar-month-number:hover{background:var(--medai-surface-hover)}button.calendar-month-number:active{background:var(--medai-surface-selected)}.calendar-month-cell.is-today button.calendar-month-number{background:var(--medai-action);color:var(--medai-text-on-action)}.calendar-month-cell.is-selected{box-shadow:inset 0 0 0 2px var(--medai-action)}.calendar-month-events{gap:2px;min-width:0;display:grid}.calendar-month-event{align-items:center;gap:var(--medai-space-1);border-radius:var(--medai-radius-md);background:var(--appointment-fill);width:100%;min-width:0;height:auto;min-height:22px;color:var(--medai-text);text-align:left;text-transform:none;cursor:pointer;box-shadow:none;white-space:nowrap;border:0;margin:0;padding:3px 8px;display:flex}.calendar-month-event:hover{box-shadow:var(--medai-shadow-sm)}.calendar-month-event span{color:var(--medai-text-secondary);font-variant-numeric:tabular-nums;flex:none}.calendar-month-event em{text-overflow:ellipsis;flex:1;min-width:0;font-style:normal;overflow:hidden}.calendar-month-more{padding:0 var(--medai-space-1);box-shadow:none;color:var(--medai-text-muted);cursor:pointer;background:0 0;border:0;justify-self:start}.calendar-month-more:hover{color:var(--medai-text);text-decoration:underline}.appointment-detail{max-width:480px}.appointment-detail-head{gap:var(--medai-space-1);padding-bottom:var(--medai-space-4);border-bottom:1px solid var(--medai-border);display:grid}.appointment-detail-head h3{margin:var(--medai-space-2) 0 0}.appointment-detail-head p{color:var(--medai-text-muted);margin:0}.appointment-detail-head p:first-letter{text-transform:uppercase}.appointment-detail-grid{gap:var(--medai-space-4);margin:var(--medai-space-4) 0;grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.appointment-detail-grid dt{color:var(--medai-text-muted)}.appointment-detail-grid dd{overflow-wrap:anywhere;margin:2px 0 0}.appointment-detail-grid div:last-child:nth-child(odd){grid-column:1/-1}.appointment-detail-actions{justify-content:space-between;align-items:center;gap:var(--medai-space-3);flex-wrap:wrap;display:flex}.appointment-detail-actions a{color:var(--medai-action)}@media (max-width:760px){.calendar-month-view{padding:var(--medai-space-2)}.calendar-month-grid{grid-auto-rows:minmax(64px,1fr)}.calendar-month-event span{display:none}.appointment-detail-grid{grid-template-columns:1fr}}.calendar-period h2:first-letter{text-transform:uppercase}.calendar-sidebar.is-month-view .calendar-month-heading,.calendar-sidebar.is-month-view .calendar-month{display:none}.calendar-day-column .calendar-appointment{border-radius:var(--medai-radius-md);box-shadow:none;border:0;gap:2px;padding:6px 8px}.calendar-day-column .calendar-appointment:hover{box-shadow:var(--medai-shadow-sm);border:0}.calendar-day-column .calendar-appointment>span:first-child{color:var(--medai-text-muted);padding-right:44px}.calendar-day-column .calendar-appointment strong{color:var(--medai-text)}.calendar-day-column .calendar-appointment>span:not(:first-child){color:var(--medai-text-secondary)}.calendar-event-symbol{color:var(--appointment-color);margin:0;position:absolute;top:6px;right:8px}.calendar-day-column .calendar-appointment{position:absolute}.calendar-day-column .calendar-appointment>span:first-child{white-space:nowrap;text-overflow:ellipsis;padding-right:16px;overflow:hidden}.calendar-slot.is-covered{display:none}.calendar-day-column .calendar-appointment{background:linear-gradient(var(--appointment-fill), var(--appointment-fill)), var(--medai-surface)}.calendar-day-column .calendar-appointment.is-short{align-items:center;gap:var(--medai-space-2);flex-direction:row;padding:2px 8px}.calendar-day-column .calendar-appointment.is-short>span:first-child{flex:none;max-width:45%;padding-right:0;display:block}.calendar-day-column .calendar-appointment.is-short strong{min-width:0}.calendar-day-column .calendar-appointment.is-short .calendar-event-symbol{flex:none;margin:0;position:static}.calendar-day-column .calendar-appointment.is-short strong{flex:auto}.calendar-day-column .calendar-appointment.is-short>span:first-child{font-variant-numeric:tabular-nums}.calendar-month-event em{color:var(--medai-text)}.patient-picker-control.is-disabled{background:var(--medai-surface-hover);cursor:not-allowed}.patient-picker-clear{border-radius:var(--medai-radius-full);width:24px;height:24px;min-height:24px;box-shadow:none;background:var(--medai-surface-hover);color:var(--medai-text-muted);border:0;flex:none;place-items:center;padding:0;display:grid}.patient-picker-clear:hover{background:var(--medai-surface-selected);color:var(--medai-text)}.patient-picker-list{margin:0;list-style:none;overflow-y:auto}.patient-picker-list .floating-option{justify-content:space-between;gap:var(--medai-space-3)}.patient-picker-list .floating-option span{overflow-wrap:anywhere;min-width:0}.patient-picker-list .floating-option small{color:var(--medai-text-muted);font-variant-numeric:tabular-nums;flex:none}.patient-picker-list .patient-picker-all{color:var(--medai-text-muted);border-bottom:1px solid var(--medai-border)}.patient-picker-note{padding:var(--medai-space-2) var(--medai-space-4);color:var(--medai-text-muted)}.reminder-link{justify-content:center;align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-md);padding:0 var(--medai-space-4);border:1px solid var(--medai-success-200);border-radius:var(--medai-radius-full);background:var(--medai-success-50);color:var(--medai-success-700);box-shadow:var(--medai-shadow-card);white-space:nowrap;display:inline-flex}.reminder-link:hover{background:var(--medai-surface);text-decoration:none}.reminder-link.is-icon{width:var(--medai-control-md);padding:0}.reminder-note{color:var(--medai-text-muted);margin:0}@media (pointer:coarse){.reminder-link{min-height:var(--medai-control-lg)}.reminder-link.is-icon{width:var(--medai-control-lg)}}.appointment-detail>.reminder-link,.appointment-detail>.reminder-note{margin-bottom:var(--medai-space-4)}.medai-home-focus>.reminder-link{margin-bottom:var(--medai-space-4);align-self:flex-start}.medai-home-focus>.reminder-note{margin-bottom:var(--medai-space-4)}.medicine-sheet-overlay{z-index:var(--medai-z-modal)}.medicine-sheet{width:min(760px,100%);max-width:760px;max-height:min(90vh,880px);flex-direction:column;max-height:min(90dvh,880px);padding:0;display:flex;overflow:hidden}.medicine-sheet:focus{outline:0}.medicine-sheet-head{align-items:flex-start;gap:var(--medai-space-4);padding:var(--medai-space-6) var(--medai-space-6) var(--medai-space-4);border-bottom:1px solid var(--medai-border);display:flex}.medicine-sheet-icon{border-radius:var(--medai-radius-md);background:var(--medai-accent-wash);width:44px;height:44px;color:var(--medai-action);flex:none;justify-content:center;align-items:center;display:inline-flex}.medicine-sheet-title{flex:1;min-width:0}.medicine-sheet-title p{text-transform:uppercase;color:var(--medai-text-muted);margin:0 0 2px}.medicine-sheet-title h2{color:var(--medai-text);overflow-wrap:anywhere;margin:0}.medicine-sheet-title h2:focus,.medicine-sheet-title h2:focus-visible{outline:0}.medicine-sheet-close{width:36px;min-height:36px;box-shadow:none;color:var(--medai-icon);background:0 0;border-color:#0000;flex:none;padding:0}.medicine-sheet-close:hover{background:var(--medai-surface-hover);color:var(--medai-text);border-color:#0000}.medicine-sheet-scroll{overscroll-behavior:contain;min-height:0;padding:var(--medai-space-4) var(--medai-space-6) var(--medai-space-6);flex:1;overflow-y:auto}.medicine-loading,.medicine-error{align-items:center;gap:var(--medai-space-2);margin:0 0 var(--medai-space-4);color:var(--medai-text-muted);flex-wrap:wrap;display:flex}.medicine-sheet-body{gap:var(--medai-space-6);display:grid}.medicine-facts{border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);background:var(--medai-bg-sunken);grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;margin:0;display:grid;overflow:hidden}.medicine-fact{min-width:0;padding:var(--medai-space-3) var(--medai-space-4)}.medicine-fact.is-wide{border-bottom:1px solid var(--medai-border);background:var(--medai-surface);grid-column:1/-1}.medicine-fact dt{text-transform:uppercase;color:var(--medai-text-muted)}.medicine-fact dd{margin:var(--medai-space-1) 0 0;color:var(--medai-text);overflow-wrap:anywhere}.medicine-status{align-items:flex-start;gap:var(--medai-space-2);margin:calc(-1 * var(--medai-space-3)) 0 0;color:var(--medai-text-muted);display:flex}.medicine-status svg{flex:none;margin-top:1px}.medicine-section h3{margin:0 0 var(--medai-space-3);color:var(--medai-text)}.medicine-lead{padding-left:var(--medai-space-4);border-left:3px solid var(--medai-action);color:var(--medai-text-body);white-space:pre-line;margin:0}.medicine-pair{gap:var(--medai-space-3);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));display:grid}.medicine-pair>div{padding:var(--medai-space-3) var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md)}.medicine-pair strong{margin-bottom:var(--medai-space-1);text-transform:uppercase;color:var(--medai-text-muted);display:block}.medicine-pair p{color:var(--medai-text-body);margin:0}.medicine-data{gap:0 var(--medai-space-6);border-top:1px solid var(--medai-border);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.medicine-data>div{justify-content:space-between;gap:var(--medai-space-3);min-width:0;padding:var(--medai-space-2) 0;border-bottom:1px solid var(--medai-border);display:flex}.medicine-data dt{color:var(--medai-text-muted);flex:none}.medicine-data dd{text-align:right;overflow-wrap:anywhere;margin:0}.medicine-reference{border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);overflow:hidden}.medicine-reference+.medicine-reference{margin-top:var(--medai-space-3)}.medicine-reference>header{padding:var(--medai-space-3) var(--medai-space-4);background:var(--medai-bg-sunken);gap:2px;display:grid}.medicine-reference>header small{color:var(--medai-text-muted);overflow-wrap:anywhere}.medicine-reference details{border-top:1px solid var(--medai-border)}.medicine-reference summary{min-height:var(--medai-control-md);padding:var(--medai-space-2) var(--medai-space-4);cursor:pointer;justify-content:space-between;align-items:center;list-style:none;display:flex}.medicine-reference summary::-webkit-details-marker{display:none}.medicine-reference summary:after{content:"+";color:var(--medai-text-muted)}.medicine-reference details[open] summary:after{content:"–"}.medicine-reference summary:hover{background:var(--medai-surface-hover)}.medicine-reference details>p{padding:0 var(--medai-space-4) var(--medai-space-4);color:var(--medai-text-body);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.medicine-muted{padding:var(--medai-space-3) var(--medai-space-4);color:var(--medai-text-muted);margin:0}.medicine-disclaimer{gap:var(--medai-space-2);padding:var(--medai-space-3) var(--medai-space-4);border-radius:var(--medai-radius-md);background:var(--medai-bg-sunken);color:var(--medai-text-muted);display:flex}.medicine-disclaimer svg{flex:none;margin-top:1px}.medicine-disclaimer p{margin:0}.medicine-disclaimer p+p{margin-top:var(--medai-space-1)}.medicine-sheet-actions{gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-6) max(var(--medai-space-3), env(safe-area-inset-bottom,0px));border-top:1px solid var(--medai-border);background:var(--medai-surface);flex:none;display:grid}.medicine-sheet-buttons{align-items:center;gap:var(--medai-space-2);display:flex}.medicine-sheet-buttons p{min-width:0;color:var(--medai-text-muted);flex:1;margin:0}.medicine-sheet-buttons button{flex:none}.medicine-append{gap:var(--medai-space-2);display:grid}.medicine-append-head{align-items:center;gap:var(--medai-space-2);display:flex}.medicine-append-head .text-button{padding-inline:var(--medai-space-2)}.medicine-append-filter{align-items:center;gap:var(--medai-space-2);padding:0 var(--medai-space-3);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-control);color:var(--medai-icon);display:flex}.medicine-append-filter input{min-width:0;box-shadow:none;background:0 0;border:0;flex:1;padding:0}.medicine-append-list{border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);max-height:248px;margin:0;padding:0;list-style:none;overflow-y:auto}.medicine-append-list li+li{border-top:1px solid var(--medai-border)}.medicine-append-list button{justify-content:space-between;align-items:center;gap:var(--medai-space-4);width:100%;min-height:52px;padding:var(--medai-space-2) var(--medai-space-4);box-shadow:none;color:var(--medai-text);text-align:left;white-space:normal;background:0 0;border:0;border-radius:0;display:flex}.medicine-append-list button:hover,.medicine-append-list button:focus-visible{background:var(--medai-surface-hover)}.medicine-append-patient{gap:2px;min-width:0;display:grid}.medicine-append-patient small{color:var(--medai-text-muted)}.medicine-append-medicines{min-width:0;max-width:55%;color:var(--medai-text-muted);text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.medicine-append-empty,.medicine-append-note{color:var(--medai-text-muted);margin:0}@media (max-width:760px){.medicine-sheet-buttons{flex-wrap:wrap}.medicine-sheet-buttons p{flex-basis:100%}.medicine-sheet-buttons button{flex:1}.medicine-sheet-overlay{padding:var(--medai-space-2);align-items:flex-end}.medicine-sheet{width:100%;max-height:calc(100dvh - var(--medai-space-4))}.medicine-sheet-head,.medicine-sheet-scroll{padding:var(--medai-space-4)}.medicine-data{grid-template-columns:minmax(0,1fr)}.medicine-sheet-actions{max-height:55dvh;padding-inline:var(--medai-space-4);overflow-y:auto}.medicine-append-list{max-height:30dvh}}.topbar .global-search.unified-search{align-items:center;gap:var(--medai-space-2);width:auto;max-width:600px;height:var(--medai-control-md);min-width:180px;padding:0 var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);background:var(--medai-bg-sunken);color:var(--medai-icon);transition:background-color var(--medai-duration) var(--medai-ease), border-color var(--medai-duration) var(--medai-ease);flex:360px;display:flex;position:relative}.topbar .global-search.unified-search:hover:not(:focus-within){border-color:var(--medai-border-control-hover);box-shadow:inset 0 0 0 1px var(--medai-border-control-hover)}.topbar .unified-search:focus-within{background:var(--medai-surface)}.topbar .unified-search:has(input:focus-visible){border-color:var(--medai-text);box-shadow:inset 0 0 0 1px var(--medai-focus)}.topbar .unified-search input:hover:not(:focus):not(:disabled){box-shadow:none;border-color:#0000}.topbar .unified-search input{width:100%;min-width:0;min-height:0;height:calc(var(--medai-control-md) - 2px);color:var(--medai-text);box-shadow:none;background:0 0;border:0;outline:none;padding:0}.search-key-hint{white-space:nowrap;padding:0 var(--medai-space-1);border:1px solid var(--medai-border);border-radius:var(--medai-radius-sm);background:var(--medai-surface);color:var(--medai-text-muted)}.unified-search .unified-search-clear{width:24px;min-height:24px;box-shadow:none;border-radius:var(--medai-radius-sm);color:var(--medai-text-muted);background:0 0;border:0;padding:0}.unified-search-popup{top:calc(100% + var(--medai-space-2));width:600px;max-width:calc(100vw - 32px);padding:0;position:absolute;left:0;overflow:hidden}.unified-search-list{overscroll-behavior:contain;max-height:min(65vh,560px);padding:var(--medai-space-1) 0;overflow-y:auto}.unified-search-list>div+div{border-top:1px solid var(--medai-border)}.unified-search-caption{padding:var(--medai-space-2) var(--medai-space-4) var(--medai-space-1);color:var(--medai-text-muted);margin:0}.unified-result{align-items:center;gap:var(--medai-space-3);min-height:48px;padding:var(--medai-space-2) var(--medai-space-4);color:var(--medai-text);text-decoration:none;display:flex}.unified-result>svg{color:var(--medai-icon);flex-shrink:0}.unified-result-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.unified-result-title{overflow-wrap:anywhere}.unified-result-detail{color:var(--medai-text-muted);overflow-wrap:anywhere}.unified-result-arrow{opacity:0}.unified-result:hover,.unified-result.is-active{background:var(--medai-surface-hover);text-decoration:none}.unified-result:hover .unified-result-arrow,.unified-result.is-active .unified-result-arrow{opacity:1}.unified-result mark{color:inherit;background:var(--medai-warning-50);box-shadow:inset 0 -2px 0 var(--medai-warning-200);padding:0}.unified-search-empty{padding:var(--medai-space-4);color:var(--medai-text-muted);margin:0}.unified-search .unified-search-all{border:0;border-top:1px solid var(--medai-border);width:100%;min-height:44px;box-shadow:none;padding:0 var(--medai-space-4);background:var(--medai-bg-sunken);color:var(--medai-text);text-align:left;border-radius:0;justify-content:space-between;align-items:center;display:flex}.search-page{max-width:1000px}.search-page h1{margin:0 0 var(--medai-space-2)}.search-page-summary{color:var(--medai-text-muted);margin-bottom:var(--medai-space-6)}.search-page h2{margin:var(--medai-space-6) 0 var(--medai-space-2)}.search-page .unified-result,.search-page button.unified-result{border-bottom:1px solid var(--medai-border);padding-inline:0}@media (max-width:1100px){.topbar .global-search.unified-search{flex:1;max-width:360px}.search-key-hint{display:none}}@media (max-width:760px){.topbar .global-search.unified-search{flex:1 0 100%;order:5;width:100%;min-width:0;max-width:none;height:44px}.topbar .unified-search input{height:42px}.topbar .unified-search-clear{width:40px;min-height:40px}.unified-search-popup{width:100%;max-width:100%}.unified-search-list{max-height:55vh}}@media (forced-colors:active){.topbar .unified-search:has(input:focus-visible){outline-offset:0;box-shadow:none;outline:2px solid highlight}}.unified-search .sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.unified-search-popup button.unified-result,.search-page button.unified-result{width:100%;min-height:48px;box-shadow:none;white-space:normal;text-align:left;color:var(--medai-text);cursor:pointer;background:0 0;border:0;border-radius:0;justify-content:flex-start;margin:0}.unified-search-popup button.unified-result:hover,.unified-search-popup button.unified-result.is-active,.search-page button.unified-result:hover{background:var(--medai-surface-hover);border:0}.unified-search-popup button.unified-result:active{background:var(--medai-surface-selected)}.unified-medicine>svg:first-child{color:var(--medai-action)}.unified-medicine .unified-result-detail{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.unified-medicine-tag{padding:1px var(--medai-space-2);border:1px solid var(--medai-border);border-radius:var(--medai-radius-sm);font-variant-numeric:tabular-nums;color:var(--medai-text-muted);flex:none}@media (max-width:760px){.unified-medicine-tag{display:none}}.global-search-hero.unified-search{align-items:center;gap:var(--medai-space-3);max-width:860px;height:64px;margin-bottom:var(--medai-section-gap);padding-left:var(--medai-space-6);border-radius:var(--medai-radius-full);background:var(--medai-surface);color:var(--medai-icon);box-shadow:0 0 0 1px var(--medai-border), var(--medai-shadow-raised);transition:box-shadow var(--medai-duration) var(--medai-ease);display:flex;position:relative}.global-search-hero.unified-search:hover:not(:focus-within){box-shadow:0 0 0 1px var(--medai-border-strong), var(--medai-shadow-raised)}.global-search-hero.unified-search:has(input:focus){box-shadow:0 0 0 2px var(--medai-focus), var(--medai-shadow-raised)}.global-search-hero>svg{flex-shrink:0}.global-search-hero input,.global-search-hero input:hover:not(:focus):not(:disabled){width:auto;min-width:0;height:100%;min-height:0;box-shadow:none;color:var(--medai-text);background:0 0;border:0;border-radius:0;outline:none;flex:1;padding:0}.global-search-hero input::placeholder{color:var(--medai-text-placeholder)}.global-search-hero .unified-search-clear{border-radius:var(--medai-radius-full);flex-shrink:0;width:36px;min-height:36px}.global-search-hero .unified-search-clear:hover{background:var(--medai-surface-hover)}.global-search-hero .search-key-hint{flex-shrink:0}.global-search-hero .global-search-hero-go{height:auto;min-height:0;padding:0 var(--medai-space-8) 0 var(--medai-space-6);border-radius:0 var(--medai-radius-full) var(--medai-radius-full) 0;background:var(--medai-action);color:var(--medai-text-on-action);box-shadow:none;border:0;flex-shrink:0;align-self:stretch}.global-search-hero .global-search-hero-go:hover{background:var(--medai-action-hover);border:0}.global-search-hero .global-search-hero-go:active{background:var(--medai-action-active)}.global-search-hero .unified-search-popup{top:calc(100% + var(--medai-space-2));border-radius:var(--medai-radius-lg);width:100%}.global-search-hero .unified-search-list{max-height:min(60vh,520px)}.global-search-hero .unified-result,.global-search-hero .unified-search-popup button.unified-result{min-height:52px;padding-inline:var(--medai-space-6)}.global-search-hero .unified-search-caption,.global-search-hero .unified-search-empty{padding-inline:var(--medai-space-6)}.global-search-hero .unified-search-all{min-height:48px;padding-inline:var(--medai-space-6)}@media (max-width:1100px){.global-search-hero .search-key-hint{display:none}}@media (max-width:760px){.global-search-hero.unified-search{height:56px;padding-left:var(--medai-space-4);gap:var(--medai-space-2)}.global-search-hero.unified-search:not(.is-open)>svg:not(.global-search-ai-mark){display:none}.global-search-hero .global-search-hero-go{padding:0 var(--medai-space-4)}.global-search-hero .global-search-hero-go span{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.global-search-hero .unified-result,.global-search-hero .unified-search-popup button.unified-result,.global-search-hero .unified-search-caption,.global-search-hero .unified-search-empty,.global-search-hero .unified-search-all{padding-inline:var(--medai-space-4)}}@media (forced-colors:active){.global-search-hero.unified-search:has(input:focus){outline:2px solid highlight}}.search-page button.unified-result{border-bottom:1px solid var(--medai-border);padding-inline:0}@media (min-width:761px){:is(.global-search-hero.unified-search.is-open,.global-search-hero.unified-search.is-open:has(input:focus)){box-shadow:0 0 0 1px var(--medai-border), var(--medai-shadow-raised);border-radius:32px 32px 0 0}.global-search-hero.is-open .global-search-hero-go{border-radius:0 32px 0 0}.global-search-hero .unified-search-popup{width:100%;padding:0 0 var(--medai-space-2);border:0;border-top:1px solid var(--medai-border);box-shadow:0 0 0 1px var(--medai-border), var(--medai-shadow-raised);clip-path:inset(0 -64px -64px);border-radius:0 0 28px 28px;top:100%;left:0}}:root{--medai-ai-1:#1b55e2;--medai-ai-2:#7c5cff;--medai-ai-3:#e0559e;--medai-ai-4:#1fb5e8}@property --medai-ai-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes medai-ai-orbit{to{--medai-ai-angle:360deg}}.global-search-hero .global-search-ai{isolation:isolate;align-items:center;gap:var(--medai-space-1);min-height:40px;padding:0 var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);color:var(--medai-text);box-shadow:none;background:0 0;flex-shrink:0;display:inline-flex;position:relative}.global-search-hero .global-search-ai:before{content:"";z-index:-2;border-radius:inherit;background:conic-gradient(from var(--medai-ai-angle), transparent 0 40%, var(--medai-ai-1), var(--medai-ai-2), var(--medai-ai-3), var(--medai-ai-4), transparent 92%);filter:blur(3px);opacity:0;transition:opacity var(--medai-duration) var(--medai-ease);position:absolute;inset:-2px}.global-search-hero .global-search-ai:after{content:"";z-index:-1;border-radius:inherit;background:var(--medai-surface);position:absolute;inset:0}.global-search-hero .global-search-ai>svg{color:var(--medai-ai-2)}.global-search-hero .global-search-ai:hover,.global-search-hero .global-search-ai:focus-visible{background:0 0;border-color:#0000}.global-search-hero .global-search-ai:hover:before,.global-search-hero .global-search-ai:focus-visible:before{opacity:1;animation:1.4s linear infinite medai-ai-orbit}.global-search-hero .global-search-ai.is-active{color:var(--medai-text-on-action);border-color:#0000}.global-search-hero .global-search-ai.is-active:after{background:linear-gradient(120deg, var(--medai-ai-1), var(--medai-ai-2))}.global-search-hero .global-search-ai.is-active>svg{color:currentColor}@keyframes medai-ai-halo{0%{box-shadow:0 0 0 1px var(--medai-border), var(--medai-shadow-raised)}20%{box-shadow:0 0 0 2px var(--medai-ai-3), -14px 6px 28px -4px var(--medai-ai-3), -6px -10px 28px -6px var(--medai-ai-4), var(--medai-shadow-raised)}45%{box-shadow:0 0 0 2px var(--medai-ai-2), 0 -14px 30px -6px var(--medai-ai-2), 14px -4px 30px -6px var(--medai-ai-3), var(--medai-shadow-raised)}70%{box-shadow:0 0 0 2px var(--medai-ai-1), 14px 10px 30px -6px var(--medai-ai-1), 0 14px 30px -8px var(--medai-ai-4), var(--medai-shadow-raised)}to{box-shadow:0 0 0 1px var(--medai-border), var(--medai-shadow-raised)}}.global-search-hero.is-ai-entering,.global-search-hero.is-ai-entering .unified-search-popup{animation:medai-ai-halo 1s var(--medai-ease) both}:is(.global-search-hero.unified-search.is-ai:not(.is-ai-entering),.global-search-hero.unified-search.is-ai:not(.is-ai-entering):has(input:focus),.global-search-hero.is-ai:not(.is-ai-entering) .unified-search-popup){box-shadow:0 0 0 1px var(--medai-ai-2), var(--medai-shadow-raised)}.global-search-hero .global-search-ai-mark{color:var(--medai-ai-2);flex-shrink:0}.global-search-ai-examples{gap:var(--medai-space-2);padding:var(--medai-space-2) var(--medai-space-6) 0;flex-wrap:wrap;display:flex}.global-search-hero .global-search-ai-example{align-items:center;gap:var(--medai-space-1);min-height:36px;padding:0 var(--medai-space-3);border-radius:var(--medai-radius-full);background:var(--medai-bg-sunken);color:var(--medai-text);box-shadow:none;border:0;display:inline-flex}.global-search-hero .global-search-ai-example:hover{background:var(--medai-surface-hover)}.global-search-hero .global-search-ai-example>svg{color:var(--medai-ai-2)}.global-search-hero .global-search-ai-command>svg:first-child{color:var(--medai-ai-1)}@media (prefers-reduced-motion:reduce){.global-search-hero .global-search-ai:hover:before,.global-search-hero .global-search-ai:focus-visible:before,.global-search-hero.is-ai-entering,.global-search-hero.is-ai-entering .unified-search-popup{animation:none}}@media (max-width:760px){.global-search-hero .global-search-ai{min-width:44px;min-height:44px;padding:0 var(--medai-space-3)}.global-search-hero .global-search-ai span{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.global-search-ai-examples{padding-inline:var(--medai-space-4)}.global-search-hero.unified-search.is-ai .unified-search-popup{box-shadow:none}.global-search-hero.unified-search.is-ai-entering .unified-search-popup{animation:none}}.global-search-assistant{gap:var(--medai-space-3);padding:var(--medai-space-4);color:var(--medai-text);display:flex}.global-search-assistant>svg{color:var(--medai-ai-1);flex-shrink:0;margin-top:2px}.global-search-assistant>p{margin:0}.global-search-assistant.is-loading>p,.global-search-assistant.is-failed>p{color:var(--medai-text-muted)}.global-search-assistant.is-loading>svg{animation:1.2s ease-in-out infinite global-search-assistant-pulse}@keyframes global-search-assistant-pulse{50%{opacity:.35}}.global-search-assistant-body{gap:var(--medai-space-3);flex-direction:column;flex:1;min-width:0;display:flex}.global-search-assistant-text{overflow-wrap:anywhere;margin:0}.global-search-assistant-text a{color:var(--medai-text);text-underline-offset:2px;text-decoration:underline}.global-search-assistant-action{align-self:flex-start;align-items:center;gap:var(--medai-space-2);min-height:44px;padding:0 var(--medai-space-4);border-radius:var(--medai-radius-full);background:var(--medai-bg-sunken);color:var(--medai-text);text-decoration:none;display:inline-flex}.global-search-assistant-action:hover{background:var(--medai-surface-hover)}.global-search-assistant-note{color:var(--medai-warning-700);margin:0}.global-search-assistant-footer{justify-content:space-between;align-items:center;gap:var(--medai-space-2);color:var(--medai-text-muted);flex-wrap:wrap;display:flex}.global-search-assistant-votes{gap:var(--medai-space-2);display:inline-flex}.global-search-assistant-votes button{min-height:36px;padding:0 var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);color:var(--medai-text);box-shadow:none;background:0 0}@media (prefers-reduced-motion:reduce){.global-search-assistant.is-loading>svg{animation:none}}button.global-search-assistant-action{box-shadow:none;cursor:pointer;border:0}.assistant-message-draft-actions{justify-content:flex-end;gap:var(--medai-space-2);margin-top:var(--medai-space-3);display:flex}.global-search-thread{flex-direction:column;display:flex}.global-search-turn+.global-search-turn{border-top:1px solid var(--medai-border)}.global-search-turn-question{padding:var(--medai-space-3) var(--medai-space-4) 0;color:var(--medai-text-muted);text-align:right;overflow-wrap:anywhere;margin:0}.global-search-assistant-suggestions{gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.global-search-thread-footer{justify-content:space-between;align-items:center;gap:var(--medai-space-2);padding:var(--medai-space-2) var(--medai-space-4) var(--medai-space-3);border-top:1px solid var(--medai-border);color:var(--medai-text-muted);flex-wrap:wrap;display:flex}.global-search-thread-footer button{min-height:36px;padding:0 var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);color:var(--medai-text);box-shadow:none;background:0 0}.global-search-glance{margin:var(--medai-space-2) var(--medai-space-4) var(--medai-space-2);padding:var(--medai-space-3) var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);background:var(--medai-surface-subtle);gap:var(--medai-space-1);display:grid}.global-search-glance p,.global-search-glance ul{margin:0}.global-search-glance-name{color:var(--medai-text)}.global-search-glance-name span{color:var(--medai-text-secondary)}.global-search-glance-alert{color:var(--medai-danger-600)}.global-search-glance-facts{gap:var(--medai-space-1) var(--medai-space-3);color:var(--medai-text-secondary);flex-wrap:wrap;padding:0;list-style:none;display:flex}.global-search-glance-facts li+li:before{content:"·";margin-right:var(--medai-space-3)}.global-search-glance-suggestion{justify-self:start;align-items:center;gap:var(--medai-space-2);margin-top:var(--medai-space-1);padding:var(--medai-space-1) var(--medai-space-3);border:1px solid var(--medai-border);background:var(--medai-surface);color:var(--medai-text);cursor:pointer;text-align:left;border-radius:999px;display:inline-flex}.global-search-glance-suggestion svg:first-child{color:var(--medai-ai-1);flex:none}.global-search-glance-suggestion:hover,.global-search-glance-suggestion:focus-visible{border-color:var(--medai-ai-1)}@media (max-width:760px){.global-search-glance-facts{flex-direction:column}.global-search-glance-facts li+li:before{content:none}}.avatar.has-photo{background:var(--medai-gray-100);overflow:hidden}.avatar.has-photo img{object-fit:cover;width:100%;height:100%;display:block}.patient-header .avatar.large.has-photo{background:var(--medai-gray-100)}.patient-photo{flex-shrink:0;display:inline-flex;position:relative}button.patient-photo-button{align-items:center;gap:var(--medai-space-2);border-radius:var(--medai-radius-md);min-height:0;color:var(--medai-action);box-shadow:none;background:0 0;border:0;flex-direction:column;padding:0;display:flex}button.patient-photo-button:hover,button.patient-photo-button:active{background:0 0}button.patient-photo-button:disabled{opacity:1;cursor:progress}button.patient-photo-button:focus-visible{outline:2px solid var(--medai-focus,var(--medai-action));outline-offset:4px}.patient-photo-frame{display:flex;position:relative}.patient-header .patient-photo .avatar.large{width:96px;height:96px}.patient-photo-button:not(.has-photo) .avatar.large{outline:2px dashed var(--medai-border-strong);outline-offset:3px}.patient-photo-overlay{border-radius:var(--medai-radius-full);color:#fff;opacity:0;background:#0f172a73;place-items:center;transition:opacity .12s;display:grid;position:absolute;inset:0}@media (hover:hover){.patient-photo-button:hover .patient-photo-overlay,.patient-photo-button:focus-visible .patient-photo-overlay{opacity:1}}.patient-photo-badge{border:3px solid var(--medai-surface);border-radius:var(--medai-radius-full);background:var(--medai-action);width:32px;height:32px;color:var(--medai-text-on-action);place-items:center;display:grid;position:absolute;bottom:-2px;right:-2px}.patient-photo-button:hover .patient-photo-badge{background:var(--medai-action-hover)}.patient-photo-caption{white-space:nowrap}.patient-photo-button:hover .patient-photo-caption{text-decoration:underline}@media (max-width:760px){.patient-header .patient-photo .avatar.large{width:72px;height:72px}.patient-header:has(.patient-photo)>div{min-width:0}.patient-header .patient-identifiers .patient-id-value{white-space:nowrap;overflow-wrap:normal}.patient-photo-badge{width:28px;height:28px}}.patient-header.is-compact .patient-photo .avatar.large{width:44px;height:44px}.patient-header.is-compact .patient-photo-caption{display:none}.patient-header.is-compact .patient-photo-badge{border-width:2px;width:24px;height:24px;bottom:-6px;right:-6px}.patient-header.is-compact .patient-photo-overlay svg{width:16px;height:16px}.patient-photo-menu{top:calc(100% + var(--medai-space-2));z-index:var(--medai-z-dropdown);min-width:200px;padding:var(--medai-space-1);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);display:grid;position:absolute;left:0}.patient-photo-menu button{width:100%;min-height:var(--medai-control-md);padding:0 var(--medai-space-3);border-radius:var(--medai-radius-sm);color:var(--medai-text);box-shadow:none;background:0 0;border:0;justify-content:flex-start}.patient-photo-menu button:hover,.patient-photo-menu button:focus-visible,.patient-photo-menu button:active{background:var(--medai-surface-hover)}.patient-photo-menu button.danger{color:var(--medai-danger-700)}.patient-photo-error{top:calc(100% + var(--medai-space-2));z-index:var(--medai-z-dropdown);width:max-content;max-width:min(280px,100vw - 48px);padding:var(--medai-space-2) var(--medai-space-3);border-radius:var(--medai-radius-md);background:var(--medai-surface);border:1px solid var(--medai-border);box-shadow:var(--medai-shadow-md);color:var(--medai-danger-700);position:absolute;left:0}.unified-result>.avatar.search-photo{width:24px;height:24px;margin:-3px}.patient-photo-full{aspect-ratio:1;border-radius:var(--medai-radius-lg);object-fit:cover;width:min(360px,100%);margin:0 auto;display:block}.patient-photo .sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.patient-photo-error{cursor:pointer}.notification-bell{position:relative}.notification-bell .notification-link{box-shadow:none;background:0 0;border:0;min-height:0;padding:0;position:relative}.notification-bell .notification-link:hover{background:var(--medai-surface-hover);border-color:#0000}.notification-bell .notification-link.has-alerts{color:var(--medai-text)}.notification-count{border-radius:var(--medai-radius-full);background:var(--medai-danger-600);min-width:18px;height:18px;color:var(--medai-text-on-action);box-shadow:0 0 0 2px var(--medai-surface);justify-content:center;align-items:center;padding:0 5px;display:inline-flex;position:absolute;top:2px;right:2px}.notification-panel{top:calc(100% + var(--medai-space-2));width:min(380px, calc(100vw - 2 * var(--medai-page-inset)));max-height:min(70vh,560px);z-index:var(--medai-z-dropdown);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-popover);position:absolute;right:0;overflow:auto}.notification-panel-head{justify-content:space-between;align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-4);background:var(--medai-surface);border-bottom:1px solid var(--medai-border);display:flex;position:sticky;top:0}.notification-panel-head h2{margin:0}.notification-close{width:32px;min-height:32px;box-shadow:none;color:var(--medai-icon);background:0 0;border:0;padding:0}.notification-panel-foot{padding:var(--medai-space-2) var(--medai-space-4);background:var(--medai-surface);border-top:1px solid var(--medai-border);text-align:right;position:sticky;bottom:0}.notification-panel-foot a{color:var(--medai-action)}.notification-empty{padding:var(--medai-space-5) var(--medai-space-4);color:var(--medai-text-muted);margin:0}.notification-list{margin:0;padding:0;list-style:none}.notification-item{align-items:start;gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-4);border-bottom:1px solid var(--medai-border);grid-template-columns:auto minmax(0,1fr) auto;display:grid}.notification-item:last-child{border-bottom:0}.notification-item-body{min-width:0}.notification-item-body a{color:var(--medai-text)}.notification-item-body p{color:var(--medai-text-secondary);margin:2px 0 0}.notification-item-actions{align-items:center;gap:var(--medai-space-1);display:flex}.notification-item-actions .reminder-link.is-icon,.notification-agenda-link{width:32px;height:32px;min-height:32px}.notification-agenda-link{border-radius:var(--medai-radius-md);color:var(--medai-icon);justify-content:center;align-items:center;display:inline-flex}.notification-agenda-link:hover{background:var(--medai-surface-hover);color:var(--medai-text);text-decoration:none}@media (max-width:760px){.notification-bell{position:static}.notification-panel{top:calc(100% + var(--medai-space-2));right:var(--medai-page-inset);left:var(--medai-page-inset);width:auto}}@media (pointer:coarse){.notification-close,.notification-item-actions .reminder-link.is-icon,.notification-agenda-link{width:var(--medai-control-lg);min-height:var(--medai-control-lg);height:var(--medai-control-lg)}}@media (max-width:760px){.notification-item{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"badge actions""body actions"}.notification-item>.badge{grid-area:badge;justify-self:start}.notification-item-body{grid-area:body}.notification-item-actions{grid-area:actions;align-self:start}}.password-field{min-width:0}.password-field .auth-password-control input{width:100%;padding-right:var(--medai-space-12)}.password-field .auth-password-toggle{width:var(--medai-control-md);height:var(--medai-control-md);right:var(--medai-space-1)}.password-field .auth-registration-password-label-row{gap:var(--medai-space-3);flex-wrap:wrap}.password-field .password-field-guidance,.password-field .password-field-error{margin:var(--medai-space-2) 0 0}.password-field.auth-registration-password .password-field-guidance{align-items:flex-start;gap:var(--medai-space-2);color:var(--medai-text-muted);display:flex}.password-field .password-field-guidance.is-short,.password-field .password-field-error{color:var(--medai-danger-700)}.password-field .password-field-guidance svg{flex:none;margin-top:2px}.password-field input[aria-invalid=true]{border-color:var(--medai-danger-600)}.password-field.auth-registration-password .auth-password-strength-label[data-score="2"]{color:var(--medai-warning-700)}.password-field.auth-registration-password .auth-password-meter[data-score="2"] span.is-filled{background:var(--medai-warning-600)}.password-field.auth-registration-password .auth-password-strength-label[data-score="4"]{color:var(--medai-success-700)}.password-field.auth-registration-password .auth-password-meter[data-score="4"] span.is-filled{background:var(--medai-success-700)}.personal-workspace{min-height:100vh;background:var(--medai-bg);min-height:100dvh}.personal-workspace-header{justify-content:space-between;align-items:center;gap:var(--medai-space-4);max-width:1120px;padding:var(--medai-space-6);margin:0 auto;display:flex}.personal-workspace-header img{width:132px;height:auto;display:block}.personal-workspace-content{max-width:680px;margin:clamp(var(--medai-space-6), 6vh, var(--medai-space-16)) auto 0;padding:0 var(--medai-space-6) var(--medai-space-12)}.personal-workspace-greeting{margin-bottom:var(--medai-space-4);color:var(--medai-text-muted);overflow-wrap:anywhere}.personal-workspace-content .page-head h1{overflow-wrap:anywhere}.personal-workspace-copy{max-width:62ch;margin-bottom:var(--medai-space-6)}.personal-workspace-trial{margin-bottom:var(--medai-space-6);padding-top:var(--medai-space-6);border-top:1px solid var(--medai-border)}.personal-workspace-trial h2,.personal-workspace-access h2{margin-bottom:var(--medai-space-2)}.personal-workspace-trial p,.personal-workspace-access p{max-width:62ch;margin-bottom:var(--medai-space-4)}.personal-workspace-actions{justify-items:start;gap:var(--medai-space-4);margin-bottom:var(--medai-space-8);display:grid}.personal-workspace-actions button{min-height:var(--medai-control-lg);white-space:normal;text-align:left}.personal-workspace-profile-link{color:var(--medai-text);text-underline-offset:3px;text-decoration:underline}.personal-workspace-access{margin-bottom:var(--medai-space-6);padding-top:var(--medai-space-6);border-top:1px solid var(--medai-border)}.personal-workspace-access button{white-space:normal;text-align:left}.personal-workspace-access .notice{margin-top:var(--medai-space-4)}@media (max-width:480px){.personal-workspace-header{gap:var(--medai-space-3);padding:var(--medai-space-4)}.personal-workspace-header img{width:112px}.personal-workspace-content{margin-top:var(--medai-space-6);padding:0 var(--medai-space-4) var(--medai-space-8)}.personal-workspace-actions{justify-items:stretch}}.patient-presence{align-items:center;gap:var(--medai-space-3);margin-top:var(--medai-space-3);padding:6px var(--medai-space-4) 6px 6px;background:var(--medai-selection-surface,#eef2ff);color:var(--medai-text);border-radius:999px;max-width:100%;display:inline-flex}.patient-presence-stack{flex-shrink:0;display:inline-flex}.patient-presence-avatar{background:var(--medai-surface);width:34px;height:34px;color:var(--medai-action);box-shadow:0 0 0 2px var(--medai-selection-surface,#eef2ff);border-radius:50%;place-items:center;margin-left:-8px;display:grid;position:relative}.patient-presence-avatar:first-child{margin-left:0}.patient-presence-avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%}.patient-presence-avatar.is-more{background:var(--medai-action);color:var(--medai-text-on-action,#fff)}.patient-presence-dot{background:var(--medai-success-600,#16a34a);width:11px;height:11px;box-shadow:0 0 0 2px var(--medai-surface);border-radius:50%;position:absolute;bottom:-1px;right:-1px}.patient-presence-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}button.switch{--switch-on:var(--medai-action,#2f5fe3);--switch-off:color-mix(in srgb, var(--switch-on) 30%, transparent);background:var(--switch-off);width:48px;min-width:48px;height:28px;min-height:0;box-shadow:none;cursor:pointer;border:0;border-radius:999px;flex:none;align-self:center;padding:0;transition:background .16s;display:block;position:relative}button.switch:hover,button.switch:active{background:var(--switch-off);border:0}button.switch[aria-checked=true],button.switch[aria-checked=true]:hover,button.switch[aria-checked=true]:active{background:var(--switch-on)}.switch-knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .16s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0f172a40}.switch[aria-checked=true] .switch-knob{transform:translate(20px)}button.switch:focus-visible{outline:2px solid var(--switch-on);outline-offset:2px}button.switch:disabled{cursor:not-allowed;opacity:.5}@media (prefers-reduced-motion:reduce){.switch,.switch-knob{transition:none}}@media (pointer:coarse){.switch:after{content:"";position:absolute;inset:-8px}}.medai-home{color:var(--medai-text)}.medai-home-heading{justify-content:space-between;align-items:baseline;gap:var(--medai-space-2) var(--medai-space-6);margin-bottom:var(--medai-space-4);flex-wrap:wrap;display:flex}.medai-home-heading h1{margin:0}.medai-home-date{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-muted);display:flex}.medai-home-date svg{color:var(--medai-icon)}.topbar-home-slot{display:none}@media (min-width:761px){.topbar-home-slot{flex:1;align-items:center;min-width:0;display:flex}.medai-home-heading-topbar{justify-content:flex-start;gap:var(--medai-space-4);flex-wrap:nowrap;flex:1;min-width:0;margin:0}.medai-home-heading-topbar h1{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.medai-home-heading-topbar .medai-home-date{white-space:nowrap;flex-shrink:0}.app-shell .content .medai-home>.medai-home-heading{display:none}.app-shell .content:has(>.medai-home){padding-top:var(--medai-space-4)}}@media (min-width:761px) and (max-width:1100px){.medai-home-heading-topbar{flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.medai-home-heading-topbar h1{max-width:100%}}.medai-home{container-type:inline-size}.app-shell .content .medai-home .medai-home-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@container (width<=880px){.app-shell .content .medai-home .medai-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=300px){.app-shell .content .medai-home .medai-home-metrics{grid-template-columns:1fr}}.medai-home-metrics{gap:var(--medai-space-3);margin-bottom:var(--medai-space-4);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.medai-home-metric{align-items:center;gap:var(--medai-space-3);min-width:0;padding:var(--medai-space-3) var(--medai-space-4);background:var(--medai-surface);border-radius:var(--medai-radius-xl);box-shadow:var(--medai-shadow-card);color:var(--medai-text);transition:box-shadow var(--medai-duration) var(--medai-ease);border:0;flex-direction:row;display:flex}.medai-home-metric:hover{box-shadow:var(--medai-shadow-md);text-decoration:none}.medai-home-metric-icon{flex-shrink:0}.medai-home-metric strong{font-variant-numeric:tabular-nums;flex-shrink:0;margin:0}.medai-home-metric-text{flex-direction:column;min-width:0;display:flex}.medai-home-metric-label{color:var(--medai-text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-shell .content .medai-home .medai-home-metric-label{overflow-wrap:normal}.medai-home-metric small{color:var(--medai-text-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (max-width:1440px){.medai-home-metric-label{white-space:normal}.medai-home-metric small{display:none}}.medai-home-workspace{gap:var(--medai-section-gap);margin-bottom:var(--medai-section-gap);grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);align-items:start;display:grid}.medai-home-panel{min-width:0;padding:var(--medai-space-6);background:var(--medai-surface);border-radius:var(--medai-radius-xl);box-shadow:var(--medai-shadow-card);border:0}.medai-home-section-heading{justify-content:space-between;align-items:center;gap:var(--medai-space-4);margin-bottom:var(--medai-space-4);display:flex}.medai-home-section-heading h2{margin:0}.medai-home-section-heading p{margin:var(--medai-space-1) 0 0}.medai-home-section-heading a,.medai-home-team-footer a{align-items:center;gap:var(--medai-space-1);min-height:var(--medai-control-md);padding:0 var(--medai-space-2);margin-right:calc(-1 * var(--medai-space-2));border-radius:var(--medai-radius-md);white-space:nowrap;display:flex}.medai-home-section-heading a:hover,.medai-home-team-footer a:hover{background:var(--medai-surface-hover);text-decoration:none}.medai-home-section-heading>svg{color:var(--medai-icon)}.medai-home-agenda-filters{margin-bottom:var(--medai-space-2)}.medai-home-agenda-filters button span{min-width:22px;height:20px;padding:0 var(--medai-space-1);border-radius:var(--medai-radius-full);background:var(--medai-gray-200);color:var(--medai-text-secondary);font-variant-numeric:tabular-nums;place-items:center;display:grid}.medai-home-agenda-filters button[aria-pressed=true] span{background:color-mix(in srgb, var(--medai-text-on-action) 18%, transparent);color:var(--medai-text-on-action)}.medai-home-appointment{align-items:center;gap:var(--medai-space-4);padding:var(--medai-space-4) 0;border-bottom:1px solid var(--medai-border);grid-template-columns:92px minmax(0,1fr) auto 40px;display:grid;position:relative}.medai-home-appointment:last-child{border-bottom:0}.medai-home-status-in_progress:before{content:"";left:calc(-1 * var(--medai-space-6));top:var(--medai-space-4);bottom:var(--medai-space-4);background:var(--medai-status-progress-line);border-radius:0 2px 2px 0;width:3px;position:absolute}.medai-home-appointment-time{white-space:nowrap;font-variant-numeric:tabular-nums;flex-direction:column;gap:2px;display:flex}.medai-home-appointment-time time:last-child{color:var(--medai-text-muted)}.medai-home-appointment-person{min-width:0}.medai-home-appointment-person a{color:var(--medai-text)}@media (max-width:760px),(pointer:coarse){.medai-home-appointment-person a,.medai-home-focus-person a{padding-block:var(--medai-space-3);margin-block:calc(-1 * var(--medai-space-3));display:inline-block}}.medai-home-appointment-person p{color:var(--medai-text-secondary);overflow-wrap:anywhere;margin:2px 0}.medai-home-appointment-person small{color:var(--medai-text-muted)}.medai-home-status{align-self:center;width:-moz-fit-content;width:fit-content}.medai-home .medai-home-row-action{width:36px;min-height:36px;box-shadow:none;color:var(--medai-icon);background:0 0;border:0;padding:0}.medai-home .medai-home-row-action:hover{background:var(--medai-surface-hover);color:var(--medai-text)}.medai-home-agenda-footer{justify-content:space-between;align-items:center;gap:var(--medai-space-2);border-top:1px solid var(--medai-border);padding-top:var(--medai-space-3);margin-top:var(--medai-space-1);color:var(--medai-text-muted);flex-wrap:wrap;display:flex}.medai-home-preview-note{align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-md);display:flex}.medai-home-agenda{grid-area:1/1}.medai-home-focus{flex-direction:column;grid-area:1/2;display:flex}.medai-home-focus-person{align-items:center;gap:var(--medai-space-3);display:flex}.medai-home-patient-avatar{border-radius:var(--medai-radius-full);background:linear-gradient(135deg, var(--medai-avatar-start), var(--medai-avatar-end));width:44px;height:44px;color:var(--medai-avatar-ink);flex-shrink:0;place-items:center;display:grid}.medai-home-focus-person>div{align-items:flex-start;gap:var(--medai-space-2);flex-direction:column;min-width:0;display:flex}.medai-home-focus-person a{color:var(--medai-text);overflow-wrap:anywhere}.medai-home-focus-time{margin-top:var(--medai-space-6);padding:var(--medai-space-4);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);color:var(--medai-text);font-variant-numeric:tabular-nums;border:0}.medai-home-focus-time>span{margin-left:var(--medai-space-2);color:var(--medai-text-muted)}.medai-home-focus-time small{color:var(--medai-text-muted);margin-top:var(--medai-space-1);display:block}.medai-home-focus-overdue{margin:var(--medai-space-3) 0 0;color:var(--medai-warning-700)}.medai-home-focus-details{gap:var(--medai-space-4);margin:var(--medai-space-6) 0;display:grid}.medai-home-focus-details dt{color:var(--medai-text-muted);margin-bottom:2px}.medai-home-focus-details dd{overflow-wrap:anywhere;margin:0}.medai-home-focus-actions{gap:var(--medai-space-2);flex-direction:column;display:flex}.medai-home-focus-actions a{justify-content:center;align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-md);border-radius:var(--medai-radius-full);display:flex}.medai-home-clinical-link{color:var(--medai-text)}.medai-home-clinical-link:hover{background:var(--medai-surface-hover);text-decoration:none}.medai-home-treatment-bar{border-radius:var(--medai-radius-full);height:8px;margin:var(--medai-space-1) 0 var(--medai-space-4);gap:3px;display:flex;overflow:hidden}.medai-home-treatment-bar .in_progress,.medai-home-treatment-summary .in_progress{background:var(--medai-teal-600)}.medai-home-treatment-bar .planned,.medai-home-treatment-summary .planned{background:var(--medai-warning-600)}.medai-home-treatment-bar .completed,.medai-home-treatment-summary .completed{background:var(--medai-success-600)}.medai-home-treatment-bar .cancelled,.medai-home-treatment-summary .cancelled{background:var(--medai-gray-300)}.medai-home-treatment-summary{gap:var(--medai-space-2) var(--medai-space-6);margin:0 0 var(--medai-space-4);grid-template-columns:1fr 1fr;padding:0;list-style:none;display:grid}.medai-home-treatment-summary li{align-items:center;gap:var(--medai-space-2);color:var(--medai-text-secondary);display:flex}.medai-home-treatment-summary i{border-radius:var(--medai-radius-full);flex-shrink:0;width:8px;height:8px}.medai-home-treatment-summary strong{color:var(--medai-text);font-variant-numeric:tabular-nums;margin-left:auto}.medai-home-treatment-list>a{align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) 0;border-top:1px solid var(--medai-border);color:var(--medai-text);display:flex}.medai-home-treatment-list>a:hover{background:var(--medai-bg-sunken);text-decoration:none}.medai-home-treatment-list>a>svg{color:var(--medai-icon)}.medai-home-treatment-list>a>span:first-child{flex:1;min-width:0}.medai-home-treatment-list strong{display:block}.medai-home-treatment-list small{color:var(--medai-text-muted);margin-top:2px;display:block}.medai-home-team{flex-direction:column;display:flex}.medai-home-team-list{margin:0;padding:0;list-style:none}.medai-home-team-list li{align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) 0;border-bottom:1px solid var(--medai-border);display:flex}.medai-home-team-avatar{background:linear-gradient(135deg, var(--medai-avatar-start), var(--medai-avatar-end));border-radius:var(--medai-radius-full);width:44px;height:44px;color:var(--medai-avatar-ink);flex-shrink:0;place-items:center;display:grid}.medai-home-team-list li>div{flex:1;min-width:0}.medai-home-team-list strong{display:block}.medai-home-team-list small{color:var(--medai-text-muted);display:block}.medai-home-team-count{text-align:right;flex-shrink:0}.medai-home-team-count small{max-width:140px}.medai-home-team-footer{justify-content:space-between;align-items:center;gap:var(--medai-space-2);padding-top:var(--medai-space-4);flex-wrap:wrap;margin-top:auto;display:flex}.medai-home .medai-home-brand-banner{justify-content:space-between;align-items:center;gap:var(--medai-space-6);width:100%;min-height:auto;padding:var(--medai-space-6);text-align:left;white-space:normal;border-radius:var(--medai-radius-xl);box-shadow:var(--medai-shadow-card);background:var(--medai-surface);border:0;display:flex;overflow:hidden}.medai-home .medai-home-brand-banner:hover{box-shadow:var(--medai-shadow-md);background:var(--medai-surface)}.medai-home-banner-copy strong{margin-bottom:var(--medai-space-1);display:block}.medai-home-banner-copy>span{color:var(--medai-text-muted);display:block}.medai-home-banner-signature{align-items:center;gap:var(--medai-space-6);display:flex}.medai-home-symbol-tile{border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);place-items:center;width:56px;height:56px;display:grid}.medai-home-symbol-tile img{width:40px;height:40px}.medai-home-banner-arrow{border-radius:var(--medai-radius-full);width:40px;height:40px;color:var(--medai-text);background:var(--medai-surface-hover);place-items:center;display:grid}.medai-home-empty{padding:var(--medai-space-8) var(--medai-space-4);text-align:center;color:var(--medai-text-muted)}.medai-home-empty>svg{color:var(--medai-icon);margin-bottom:var(--medai-space-3)}.medai-home-empty h3{color:var(--medai-text);margin-bottom:var(--medai-space-2)}.medai-home-empty a{align-items:center;gap:var(--medai-space-2);min-height:var(--medai-control-md);display:inline-flex}.medai-home-appointment-person a,.medai-home-appointment-person small,.medai-home-treatment-list strong,.medai-home-treatment-list small,.medai-home-team-list li>div strong{overflow-wrap:anywhere}.medai-home-about>img{width:120px;margin:var(--medai-space-1) 0 var(--medai-space-6);display:block}.medai-home-about>a{align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-4) 0;color:var(--medai-text);border-top:1px solid var(--medai-border);display:flex}.medai-home-about>a>span{flex:1}@media (max-width:1380px){.medai-home-workspace{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.medai-home-appointment{gap:var(--medai-space-2) var(--medai-space-4);grid-template-columns:92px minmax(0,1fr) 40px}.medai-home-appointment-time{grid-row:1/3}.medai-home-appointment-person{grid-area:1/2}.medai-home-appointment .medai-home-status{grid-area:2/2}.medai-home-row-action{grid-area:1/3/3}.medai-home-team-list li{flex-wrap:wrap}.medai-home-team-count{text-align:left;gap:var(--medai-space-3);flex-basis:100%;padding-left:52px;display:flex}.medai-home-team-count small{max-width:none}}@media (max-width:1180px){.medai-home-heading{align-items:flex-start}.medai-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.medai-home-workspace{grid-template-columns:1fr}.medai-home-focus,.medai-home-agenda{grid-area:auto}.medai-home-focus-details{grid-template-columns:repeat(3,1fr)}.medai-home-focus-actions{flex-direction:row}.medai-home-focus-actions a{flex:1}}@media (max-width:760px){.medai-home-heading{align-items:stretch;gap:var(--medai-space-4);flex-direction:column}.medai-home-metrics{gap:var(--medai-space-3)}.medai-home-metric{padding:var(--medai-space-3) var(--medai-space-4) var(--medai-space-4)}.medai-home-section-heading{gap:var(--medai-space-3);flex-wrap:wrap}.medai-home-appointment{gap:var(--medai-space-2) var(--medai-space-3);grid-template-columns:80px minmax(0,1fr) 40px}.medai-home-status-in_progress:before{left:calc(-1 * var(--medai-space-4))}.medai-home-focus-details{grid-template-columns:1fr}.medai-home-focus-actions{flex-direction:column}.medai-home-treatment-list>a{flex-wrap:wrap}.medai-home-treatment-list>a>span:first-child{flex-basis:calc(100% - 32px)}.medai-home-team-footer{flex-direction:column;align-items:stretch}.medai-home .medai-home-brand-banner{padding:var(--medai-space-4);gap:var(--medai-space-4)}.medai-home-banner-signature{gap:0}.medai-home-symbol-tile{display:none}}@media (max-width:480px){.medai-home-metric .medai-home-metric-icon{display:none}}.clinic-blocked{justify-items:center;gap:var(--medai-space-3);max-width:620px;margin:var(--medai-space-10,40px) auto;padding:var(--medai-space-8,32px);text-align:center;border:1px solid var(--medai-border);border-radius:var(--medai-radius-card,20px);background:var(--medai-surface);box-shadow:var(--medai-shadow-md);display:grid}.clinic-blocked-icon{background:var(--medai-danger-50,#fef3f2);width:72px;height:72px;color:var(--medai-danger-700,#b42318);border-radius:50%;place-items:center;display:grid}.clinic-blocked-eyebrow{margin:var(--medai-space-2) 0 0;color:var(--medai-text-muted);text-transform:uppercase}.clinic-blocked h1{margin:0}.clinic-blocked-body{max-width:520px;color:var(--medai-text);margin:0}.clinic-blocked-actions{justify-content:center;gap:var(--medai-space-3);margin-top:var(--medai-space-3);flex-wrap:wrap;display:flex}.clinic-blocked-actions .button{min-height:48px;padding:0 var(--medai-space-6,24px);align-items:center;display:inline-flex}.clinic-blocked-note{color:var(--medai-text-muted);margin:0}.dental-leave-dialog{width:min(480px,100vw - 32px);max-height:90dvh;padding:var(--medai-space-6);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-lg);color:var(--medai-text);overflow:auto}.dental-leave-dialog::backdrop{background:var(--medai-overlay)}.dental-leave-dialog h2{margin-bottom:var(--medai-space-3)}.dental-leave-actions{gap:var(--medai-space-2);margin-top:var(--medai-space-6);flex-wrap:wrap;display:flex}.dental-leave-actions button{min-height:var(--medai-control-md);flex:1}.piece-capture-status{margin:0 0 var(--medai-space-3);color:var(--medai-text-muted)}.piece-capture-status span{margin-top:var(--medai-space-1);display:block}.piece-draft-notice{align-items:center;gap:var(--medai-space-2) var(--medai-space-3);flex-wrap:wrap;display:flex}.piece-pending-links{gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.piece-pending-links button{min-height:var(--medai-control-md)}.piece-pending-explanation summary{cursor:pointer;min-height:var(--medai-control-md);align-items:center;display:flex}.piece-pending-explanation[open]{flex-basis:100%}.piece-pending-explanation p{margin:var(--medai-space-1) 0}.piece-validation{border-left:3px solid var(--medai-danger-600);background:var(--medai-danger-50);padding:var(--medai-space-3);margin-bottom:var(--medai-space-4);border-radius:0 var(--medai-radius-md) var(--medai-radius-md) 0;color:var(--medai-danger-700)}.piece-validation ul{margin:var(--medai-space-2) 0 0;padding-left:var(--medai-space-4)}.piece-validation li button{color:inherit;min-height:var(--medai-control-sm);padding:var(--medai-space-1) 0;text-align:left;background:0 0;border:0;text-decoration:underline;display:inline}.piece-sheet .piece-editor-actions{flex-wrap:wrap}.piece-sheet .piece-editor-actions button{min-height:var(--medai-control-md)}.piece-sheet-mobile .piece-editor-actions button:first-child{min-height:var(--medai-control-md);color:var(--medai-text-muted);background:0 0;border:0;flex:0 0 100%}.piece-sheet-mobile .piece-editor-actions button{padding:var(--medai-space-2) var(--medai-space-1)}@media (max-width:760px){.dental-leave-dialog{padding:var(--medai-space-4)}.dental-leave-actions{flex-direction:column}}:root{--medai-tabbar-height:calc(64px + env(safe-area-inset-bottom,0px))}.unified-search-cancel{display:none}.modal>.section-head>button,.medicine-sheet-close{width:var(--medai-control-md);min-height:var(--medai-control-md);flex-shrink:0}.patient-header .patient-id-short{display:none}@media (min-width:761px){.patient-menu-edit{display:none}}@media (max-width:760px),(pointer:coarse){button,a,summary,label,input,select,textarea{touch-action:manipulation}.global-search-hero .unified-search-clear,.topbar .unified-search-clear,.patient-picker-clear,.content .medai-home .medai-home-row-action,.global-error button{width:44px;min-width:44px;min-height:44px}.segmented button{min-height:var(--medai-control-sm)}.duration-chip{min-width:56px;min-height:44px}.check,.prescription-replaced-toggle,.account-checkbox{align-items:center;gap:var(--medai-space-3);min-height:44px;display:flex}input[type=checkbox],input[type=radio]{width:22px;height:22px}.sidebar nav a,.back-link,.content .account-row-action{min-height:44px}button.sidebar-toggle,.menu-button{width:44px;min-height:44px}.notification-link{width:44px;height:44px}.content .calendar-sidebar .calendar-month button{aspect-ratio:auto;min-height:44px}.content article small a[href^="/pacientes/"]{align-items:center;min-height:44px;display:inline-flex}.content .dcx .charts-head .pill.write,.content .dcx .qchips button.link[data-action=cmd-open]{display:none}.content .dcx .charts-head h2{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.content .dcx .charts-bar>.charts-head{flex:100%;min-width:0;max-width:100%}.content .dcx .charts-head .pills{scrollbar-width:none;flex-wrap:nowrap;flex:100%;min-width:0;max-width:100%;overflow-x:auto}.content .dcx .charts-head .pills::-webkit-scrollbar{display:none}.content .dcx .charts-head .pills .pill{flex-shrink:0}}@media (max-width:760px){.content .card,.content .metric,.content .settings-hub-item,.content .account-settings-section,.content .medai-home-metric,.content .medai-home-panel{border-radius:var(--medai-radius-lg)}.app-shell{padding-bottom:0}.app-main{padding-bottom:calc(var(--medai-tabbar-height) + var(--medai-space-6))}.app-footer{display:none}.app-shell,.loading{min-height:100vh;min-height:100dvh}.page-head{align-items:stretch;gap:var(--medai-space-4);flex-direction:column}.page-head>button,.page-head>a.primary,.page-head>.page-actions>*{width:100%}.modal form .primary{align-self:stretch;width:100%}.tabs{scroll-padding-inline:var(--medai-space-6)}.overlay{align-items:flex-end;padding:0}.modal{max-height:92vh;border-radius:var(--medai-radius-xl) var(--medai-radius-xl) 0 0;max-width:none;max-height:92dvh}.modal:not(.prescription-create-modal):not(.prescription-detail-modal):not(.clinical-document-modal):not(.medicine-sheet):not(.pharma-detail-modal){padding:0 var(--medai-space-4) calc(var(--medai-space-4) + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}.modal:not(.prescription-create-modal):not(.prescription-detail-modal):not(.clinical-document-modal):not(.medicine-sheet):not(.pharma-detail-modal)>.section-head{z-index:2;margin:0 calc(-1 * var(--medai-space-4)) var(--medai-space-4);padding:var(--medai-space-3) var(--medai-space-2) var(--medai-space-3) var(--medai-space-4);background:var(--medai-surface);border-bottom:1px solid var(--medai-border);position:sticky;top:0}.modal:not(.prescription-create-modal):not(.prescription-detail-modal):not(.clinical-document-modal):not(.medicine-sheet):not(.pharma-detail-modal) form>button.primary[type=submit]:last-child{z-index:2;min-height:var(--medai-control-lg);box-shadow:0 0 0 var(--medai-space-4) var(--medai-surface);position:sticky;bottom:0}.modal:not(.prescription-create-modal):not(.prescription-detail-modal):not(.clinical-document-modal):not(.medicine-sheet):not(.pharma-detail-modal) form>button.primary[type=submit]:last-child:disabled{opacity:1;background:color-mix(in srgb, var(--medai-action) 40%, var(--medai-surface));box-shadow:0 0 0 var(--medai-space-4) var(--medai-surface)}.patient-header.card{align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-2) var(--medai-space-3) var(--medai-space-4);flex-wrap:wrap}.patient-header .avatar.large{flex-shrink:0;width:44px;height:44px}.patient-header .eyebrow,.patient-header .contact-line{display:none}.patient-header h1{margin:0 0 2px}.patient-header .patient-identifiers{color:var(--medai-text-muted);white-space:nowrap;flex-wrap:nowrap;gap:0;margin:0;overflow:hidden}.patient-header .patient-id-label,.patient-header .patient-birth-date,.patient-header .patient-id-long{display:none}.patient-header .patient-id-short{display:inline}.patient-header .patient-identifiers.no-age .patient-id-sep{display:none}.patient-header .patient-id-sep{margin-inline:.3em}.patient-header .patient-edit{width:var(--medai-control-md);min-width:var(--medai-control-md);box-shadow:none;background:0 0;border-color:#0000;flex-shrink:0;padding:0}.patient-edit-label{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.patient-header .patient-edit:not(.patient-more){display:none}.content .patient-header.card{gap:var(--medai-space-2);padding:var(--medai-space-3) var(--medai-space-1) var(--medai-space-3) var(--medai-space-2);flex-wrap:nowrap}.content .patient-header>div{min-width:0}.content .patient-header .patient-photo .avatar.large,.content .patient-header.is-compact .patient-photo .avatar.large{width:56px;height:56px}.content .patient-header .patient-photo-badge{display:none}.content .patient-header h1{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 2px;display:-webkit-box;overflow:hidden}.content .patient-header>.patient-header-actions{flex-wrap:nowrap;flex-basis:auto;margin-top:0}.app-main .topbar .global-search.unified-search:not(.is-open),.app-main .topbar .global-search.unified-search:not(.is-open):hover:not(:focus-within){flex:0 0 44px;order:initial;border-radius:var(--medai-radius-md);width:44px;min-width:44px;max-width:44px;height:44px;box-shadow:none;background:0 0;justify-content:center;padding:0;position:relative}.topbar .unified-search:not(.is-open)>svg{pointer-events:none;width:20px;height:20px}.topbar .unified-search:not(.is-open) input{border-radius:inherit;opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.topbar .unified-search:not(.is-open) .unified-search-clear,.topbar .unified-search:not(.is-open) .search-key-hint{display:none}.topbar:has(.unified-search.is-open){-webkit-backdrop-filter:none;z-index:var(--medai-z-overlay)}:is(.app-main .topbar .global-search.unified-search,.global-search-hero.unified-search).is-open{z-index:calc(var(--medai-z-overlay) + 1);width:auto;max-width:none;height:auto;min-height:0;padding:calc(var(--medai-space-2) + env(safe-area-inset-top,0px)) var(--medai-space-2) var(--medai-space-2) var(--medai-space-4);border:0;border-bottom:1px solid var(--medai-border);background:var(--medai-surface);box-shadow:none;order:initial;border-radius:0;margin:0;position:fixed;inset:0 0 auto}.unified-search.is-open input{height:var(--medai-control-md)}.unified-search.is-open .global-search-hero-go,.unified-search.is-open .search-key-hint{display:none}.unified-search.is-open .unified-search-cancel{min-height:44px;padding:0 var(--medai-space-2);box-shadow:none;color:var(--medai-action);background:0 0;border:0;flex-shrink:0;display:inline-flex}.unified-search.is-open .unified-search-popup{--unified-search-top:calc(var(--medai-control-md) + 2 * var(--medai-space-2) + 1px + env(safe-area-inset-top,0px));top:var(--unified-search-top);height:calc(var(--unified-search-viewport,100dvh) - var(--unified-search-top));width:auto;box-shadow:none;border:0;border-radius:0;flex-direction:column;display:flex;position:fixed;left:0;right:0;max-width:none!important}.unified-search.is-open .unified-search-list{flex:auto;max-height:none}.unified-search.is-open .unified-result,.unified-search.is-open .unified-search-popup button.unified-result{min-height:56px;padding-inline:var(--medai-space-4)}body .overlay:has(>.prescription-create-modal){padding:0}body .prescription-form-actions .primary{min-height:var(--medai-control-lg);justify-self:stretch}body .prescription-form-actions .primary:disabled{opacity:1;background:color-mix(in srgb, var(--medai-action) 40%, var(--medai-surface))}.content .dcx .stage-head{gap:var(--medai-space-2);grid-template-columns:auto minmax(0,1fr) auto}.content .dcx .stage-head>.nav-btn:first-child,.content .dcx .stage-title+.nav-btn{justify-self:auto}.content .dcx .nav-btn{height:44px}.content .dcx .back,.content .dcx .close{width:44px;height:44px}.content .dcx .charts-bar{gap:0}.content .dcx .charts-bar>.charts-head,.content .dcx .charts-bar>.chart-tools{scrollbar-width:none;flex-wrap:nowrap;flex:100%;justify-content:flex-start;min-width:0;max-width:none;margin:0 -4px;padding:4px;position:relative;overflow-x:auto}.content .dcx .charts-bar>.charts-head::-webkit-scrollbar{display:none}.content .dcx .charts-bar>.chart-tools::-webkit-scrollbar{display:none}.content .dcx .charts-head .pills{flex-wrap:nowrap;flex:none;min-width:auto;max-width:none;overflow:visible}.content .dcx .charts-head .pill,.content .dcx .chart-tools>*{flex:none}.content .dcx .chart-tools .full-toggle{order:-1}.content .dcx .chart-tools .dent-select{order:1}.content .dcx .qbar{bottom:calc(var(--medai-tabbar-height) + var(--medai-space-3))}.content .dcx .pwrap[data-side]{bottom:var(--medai-tabbar-height)}.content .dcx .toast{bottom:calc(var(--medai-tabbar-height) + var(--medai-space-3))}}@media (pointer:coarse){.content .dcx [data-action=cmd-open]{display:none}}.platform-admin,.pa-auth-wrap{min-height:100vh;color:var(--medai-text);background:var(--medai-bg)}.pa-auth-wrap{padding:var(--medai-space-6) var(--medai-space-4);background:var(--medai-bg-sunken);place-items:center;display:grid}.pa-auth-card{width:min(100%,440px);padding:var(--medai-space-8);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);box-shadow:var(--medai-shadow-md)}.pa-auth-card h1,.pa-page-title h1{margin:0 0 var(--medai-space-2);color:var(--medai-text)}.pa-brand-mark{width:var(--medai-control-md);height:var(--medai-control-md);color:var(--medai-icon);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);place-items:center;display:inline-grid}.pa-auth-card>.pa-brand-mark{margin-bottom:var(--medai-space-4)}.pa-auth-logo{width:min(100%,160px);height:auto;margin-bottom:var(--medai-space-4);display:block}.pa-eyebrow{margin:0 0 var(--medai-space-2);color:var(--medai-text-muted)}.pa-muted{color:var(--medai-text-muted)}.pa-auth-card>p:not(.pa-eyebrow){margin:0 0 var(--medai-space-6)}.pa-auth-card>p.pa-auth-foot{margin:var(--medai-space-4) 0 0;color:var(--medai-text-muted)}.pa-auth-card form,.pa-subpanel form{gap:var(--medai-space-3);display:grid}.pa-auth-card input,.pa-subpanel input,.pa-subpanel select,.pa-subpanel textarea{min-width:0}.pa-field{gap:var(--medai-space-1);color:var(--text-strong-950);display:grid}.pa-field small{color:var(--text-sub-600)}.pa-totp-qr{justify-items:center;gap:var(--medai-space-2);margin:var(--medai-space-4) 0;padding:var(--medai-space-4);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-lg);display:grid}.pa-totp-qr img{width:min(210px,100%);height:auto;image-rendering:pixelated}.pa-totp-qr p{color:var(--medai-text-muted);text-align:center;margin:0}.pa-totp-qr code{overflow-wrap:anywhere;max-width:100%;padding:var(--medai-space-2);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-sm)}.pa-mfa-setup{gap:var(--medai-space-3);display:grid}.pa-mfa-setup p{color:var(--medai-text-muted);margin:0}.pa-spin{animation:.9s linear infinite pa-spin}@keyframes pa-spin{to{transform:rotate(360deg)}}.pa-topbar{z-index:var(--medai-z-sticky);min-height:var(--medai-shell-topbar-height);justify-content:space-between;align-items:center;gap:var(--medai-space-4);padding:var(--medai-space-2) var(--medai-page-inset);background:var(--medai-surface);border-bottom:1px solid var(--medai-border);display:flex;position:sticky;top:0}.pa-wordmark{align-items:center;gap:var(--medai-space-2);color:var(--medai-text);display:inline-flex}.pa-wordmark:hover{text-decoration:none}.pa-wordmark img{object-fit:contain;flex:none;width:132px;max-width:none;height:auto}.pa-wordmark small{color:var(--medai-text-muted);display:block}.pa-topbar-right{align-items:center;gap:var(--medai-space-2);display:flex}.pa-layout{min-height:calc(100vh - var(--medai-shell-topbar-height));grid-template-columns:var(--medai-shell-sidebar-width) minmax(0, 1fr);display:grid}.pa-sidebar{z-index:var(--medai-z-raised);top:var(--medai-shell-topbar-height);height:calc(100vh - var(--medai-shell-topbar-height));gap:var(--medai-space-1);padding:var(--medai-space-6) var(--medai-space-3);background:var(--medai-bg-sunken);border-right:1px solid var(--medai-border);flex-direction:column;display:flex;position:sticky}.pa-sidebar-label{margin:0 var(--medai-space-3) var(--medai-space-2);color:var(--medai-text-muted);text-transform:uppercase}.pa-sidebar button{justify-content:flex-start;gap:var(--medai-space-3);min-height:36px;padding:0 var(--medai-space-3);border-radius:var(--medai-radius-md);box-shadow:none;color:var(--medai-text-secondary);background:0 0;border-color:#0000}.pa-sidebar button svg{color:var(--medai-icon)}.pa-sidebar button:hover{background:var(--medai-surface-selected);color:var(--medai-text);border-color:#0000}.pa-sidebar button.active{background:var(--medai-surface);border-color:var(--medai-border);box-shadow:var(--medai-shadow-xs);color:var(--medai-text)}.pa-sidebar button.active svg{color:var(--medai-text)}.pa-sidebar-note{gap:var(--medai-space-2);padding:var(--medai-space-3);color:var(--medai-text-muted);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);margin-top:auto;display:flex}.pa-sidebar-note svg{color:var(--medai-icon);flex:none}.pa-main{min-width:0;padding:var(--medai-space-6) var(--medai-page-inset) var(--medai-space-4)}.pa-page-title{justify-content:space-between;align-items:center;gap:var(--medai-space-4);margin:0 0 var(--medai-space-6);display:flex}.pa-page-title h1{margin:0}.pa-live{align-items:center;gap:var(--medai-space-2);min-height:24px;padding:0 var(--medai-space-2);color:var(--medai-text-muted);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);white-space:nowrap;display:inline-flex}.pa-live i{background:var(--medai-success-600);border-radius:var(--medai-radius-full);flex:none;width:6px;height:6px}.pa-back{margin:0 0 var(--medai-space-4);align-self:flex-start}.pa-search{align-items:center;gap:var(--medai-space-2);margin-bottom:var(--medai-space-3);flex-direction:row;display:flex}.pa-panel{padding:var(--medai-space-6);background:var(--bg-white-0);border:1px solid var(--stroke-soft-200);border-radius:16px;box-shadow:0 1px 2px #0a0d1408}.pa-panel-head{justify-content:space-between;align-items:flex-start;gap:var(--medai-space-4);margin-bottom:var(--medai-space-4);display:flex}.pa-panel-head h2{margin:0 0 var(--medai-space-1);color:var(--medai-text)}.pa-panel-head p{margin:0}.pa-subpanel{min-width:0;padding:var(--medai-space-4);background:var(--bg-white-0);border:1px solid var(--stroke-soft-200);border-radius:12px}.pa-subpanel h3,.pa-subpanel h4{margin:0 0 var(--medai-space-2);color:var(--medai-text)}.pa-subpanel>p{margin:0 0 var(--medai-space-3)}.pa-plan-card{justify-content:space-between;gap:var(--medai-space-3);min-height:180px;padding:var(--medai-space-4);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);flex-direction:column;display:flex}.pa-plan-card h3{margin:var(--medai-space-2) 0 var(--medai-space-1)}.pa-plan-card p{margin:var(--medai-space-1) 0;color:var(--medai-text-muted)}.pa-plan-card small{color:var(--medai-text-muted)}.pa-trial-counts{align-items:center;gap:var(--medai-space-3);margin:0 0 var(--medai-space-3);padding:var(--medai-space-3);color:var(--medai-text-muted);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);flex-wrap:wrap;display:flex}.pa-trial-counts strong{color:var(--medai-text)}.pa-summary{gap:var(--medai-space-3);min-width:0;padding:var(--medai-space-4);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);display:flex}.pa-summary p,.pa-summary strong,.pa-summary small{margin:0;display:block}.pa-summary p{color:var(--medai-text-muted)}.pa-summary strong{margin:var(--medai-space-1) 0;color:var(--medai-text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pa-summary small{color:var(--medai-text-muted)}.pa-clinic-symbol,.pa-summary-icon,.pa-coupon-icon{width:32px;height:32px;color:var(--medai-icon);background:var(--medai-bg-sunken);border-radius:var(--medai-radius-md);box-shadow:inset 0 0 0 1px var(--medai-border);flex:none;place-items:center;display:grid}.pa-metric-grid{gap:var(--medai-space-3);margin-bottom:var(--medai-space-4);grid-template-columns:repeat(auto-fit,minmax(190px,1fr));display:grid}.pa-detail-grid{gap:var(--medai-space-3);margin-top:var(--medai-space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.pa-definition-list{gap:0;margin:0;display:grid}.pa-definition-list>div{justify-content:space-between;gap:var(--medai-space-3);padding:var(--medai-space-2) 0;border-bottom:1px solid var(--medai-border);display:flex}.pa-definition-list>div:last-child{border-bottom:0}.pa-definition-list dt{color:var(--medai-text-muted)}.pa-definition-list dd{text-align:right;margin:0}.pa-definition-list code{overflow-wrap:anywhere;color:var(--medai-text-muted)}.pa-ledger{margin-top:var(--medai-space-3)}.pa-ledger-grid{gap:var(--medai-space-4);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));display:grid}.pa-record-list{gap:var(--medai-space-2);margin:0;padding:0;list-style:none;display:grid}.pa-record-list li{justify-content:space-between;align-items:center;gap:var(--medai-space-2);padding:var(--medai-space-2) 0;border-bottom:1px solid var(--medai-border);display:flex}.pa-record-list li>span{gap:var(--medai-space-1);min-width:0;display:grid}.pa-record-list small{color:var(--medai-text-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pa-plan-grid{gap:var(--medai-space-3);margin-bottom:var(--medai-space-4);grid-template-columns:repeat(auto-fit,minmax(210px,1fr));display:grid}.pa-footnote{margin:var(--medai-space-3) 0 0;color:var(--medai-text-muted)}.pa-empty{padding:var(--medai-space-6) var(--medai-space-3);color:var(--medai-text-muted);text-align:center}.pa-empty-inline{margin:var(--medai-space-1) 0 0;color:var(--medai-text-muted)}.pa-clinic-list{min-height:100px}.pa-clinic-row{align-items:center;gap:var(--medai-space-3);width:100%;min-height:72px;padding:var(--medai-space-3) var(--medai-space-2);text-align:left;border:0;border-bottom:1px solid var(--medai-border);box-shadow:none;cursor:pointer;background:0 0;border-radius:0;grid-template-columns:40px minmax(120px,1.2fr) minmax(100px,.9fr) auto 18px;display:grid}.pa-clinic-row:hover{background:var(--medai-bg-sunken);border-color:var(--medai-border)}.pa-clinic-primary,.pa-clinic-meta{gap:var(--medai-space-1);min-width:0;display:grid}.pa-clinic-primary strong,.pa-clinic-meta strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pa-clinic-primary small,.pa-clinic-meta small{color:var(--medai-text-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pa-status{align-items:center;gap:var(--medai-space-2);width:-moz-fit-content;width:fit-content;min-height:24px;padding:0 var(--medai-space-2);white-space:nowrap;color:var(--medai-text-secondary);background:var(--medai-surface-hover);border-radius:var(--medai-radius-full);display:inline-flex}.pa-status:before{content:"";border-radius:var(--medai-radius-full);background:var(--medai-gray-400);flex:none;width:6px;height:6px}.status-active,.status-activa,.status-activada,.status-approved{color:var(--medai-success-700);background:var(--medai-success-50)}.status-active:before,.status-activa:before,.status-activada:before,.status-approved:before{background:var(--medai-success-600)}.status-inactive,.status-inactiva,.status-cancelled,.status-cancelada,.status-rejected,.status-billing_hold{color:var(--medai-rose-700);background:var(--medai-rose-50)}.status-inactive:before,.status-inactiva:before,.status-cancelled:before,.status-cancelada:before,.status-rejected:before,.status-billing_hold:before{background:var(--medai-rose-600)}.status-grace,.status-trial,.status-prueba,.status-pending{color:var(--medai-warning-700);background:var(--medai-warning-50)}.status-grace:before,.status-trial:before,.status-prueba:before,.status-pending:before{background:var(--medai-warning-600)}.pa-role-badge{align-items:center;gap:var(--medai-space-2);min-height:24px;padding:0 var(--medai-space-2);color:var(--medai-text);background:var(--medai-surface);border:1px solid var(--medai-border);border-radius:var(--medai-radius-full);white-space:nowrap;display:inline-flex}.pa-pagination{justify-content:space-between;align-items:center;gap:var(--medai-space-3);padding-top:var(--medai-space-3);color:var(--medai-text-muted);display:flex}.pa-pagination div{gap:var(--medai-space-2);display:flex}.pa-coupon-list,.pa-request-list{margin:0 0 var(--medai-space-4);display:grid}.pa-coupon-row{grid-template-columns:var(--medai-control-md) minmax(180px, 1fr) auto auto auto;align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) var(--medai-space-1);border-bottom:1px solid var(--medai-border);display:grid}.pa-coupon-copy{gap:var(--medai-space-1);min-width:0;display:grid}.pa-coupon-copy small{color:var(--medai-text-muted);overflow-wrap:anywhere}.pa-coupon-percent{white-space:nowrap}.pa-request-row{justify-content:space-between;align-items:center;gap:var(--medai-space-4);padding:var(--medai-space-3) var(--medai-space-1);border-bottom:1px solid var(--medai-border);display:flex}.pa-request-row h3,.pa-request-row p{margin:var(--medai-space-2) 0 var(--medai-space-1)}.pa-request-row small{color:var(--medai-text-muted)}.pa-request-actions{gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.pa-inline-form{align-items:end;gap:var(--medai-space-3);grid-template-columns:minmax(140px,.4fr) minmax(200px,1fr) auto;display:grid}.pa-plan-editor{margin-top:var(--medai-space-4)}.pa-plan-editor form{grid-template-columns:repeat(2,minmax(0,1fr))}.pa-plan-editor .pa-field:last-of-type,.pa-form-actions{grid-column:1/-1}.pa-form-actions{gap:var(--medai-space-2);display:flex}.pa-operator-list{display:grid}.pa-operator-row{align-items:center;gap:var(--medai-space-3);padding:var(--medai-space-3) 0;border-bottom:1px solid var(--medai-border);grid-template-columns:minmax(120px,1fr) auto auto;display:grid}.pa-operator-row>span:first-child{gap:var(--medai-space-1);min-width:0;display:grid}.pa-operator-row small{color:var(--medai-text-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pa-app-footer{justify-content:space-between;gap:var(--medai-space-3);margin-top:var(--medai-space-4);padding:var(--medai-space-2) var(--medai-space-1);color:var(--medai-text-muted);display:flex}@media (max-width:800px){.pa-layout{min-height:calc(100vh - var(--medai-shell-topbar-height));display:block}.pa-sidebar{z-index:var(--medai-z-raised);top:var(--medai-shell-topbar-height);gap:var(--medai-space-1);height:auto;padding:var(--medai-space-2) var(--medai-space-3);border-right:0;border-bottom:1px solid var(--medai-border);flex-direction:row;overflow-x:auto}.pa-sidebar-label,.pa-sidebar-note{display:none}.pa-sidebar button{min-width:max-content}.pa-main{padding:var(--medai-space-4) var(--medai-space-3)}.pa-detail-grid{grid-template-columns:1fr}.pa-panel{padding:var(--medai-space-4)}}@media (max-width:560px){.pa-topbar{padding:var(--medai-space-2) var(--medai-space-3)}.pa-role-badge{white-space:nowrap;max-width:150px;overflow:hidden}.pa-live{white-space:normal}.pa-page-title{flex-direction:column;align-items:flex-start}.pa-clinic-row{grid-template-columns:var(--medai-control-md) minmax(100px, 1fr) auto 16px;gap:var(--medai-space-2)}.pa-clinic-meta{display:none}.pa-pagination{flex-direction:column;align-items:flex-start}.pa-plan-editor form{grid-template-columns:1fr}.pa-plan-editor .pa-field:last-of-type,.pa-form-actions{grid-column:auto}.pa-inline-form{grid-template-columns:1fr}.pa-coupon-row{grid-template-columns:var(--medai-control-md) minmax(110px, 1fr) auto;gap:var(--medai-space-2)}.pa-coupon-percent{grid-column:2}.pa-coupon-row>button{grid-area:2/3}.pa-request-row{flex-direction:column;align-items:flex-start}.pa-request-actions{width:100%}.pa-request-actions button{flex:1}.pa-operator-row{grid-template-columns:1fr auto}.pa-operator-row button{grid-column:2}.pa-app-footer{flex-direction:column}.pa-auth-card{padding:var(--medai-space-6) var(--medai-space-4)}}@media (max-width:420px){.pa-wordmark small{display:none}.pa-wordmark img{width:104px}.pa-role-badge{max-width:116px}}@media (prefers-reduced-motion:reduce){.pa-spin{animation-duration:1.5s}}.pa-ai-controls{align-items:flex-end;gap:var(--medai-space-2);display:flex}.pa-ai-row{border-bottom:1px solid var(--medai-border)}.pa-ai-row-head{align-items:center;gap:var(--medai-space-3);width:100%;min-height:72px;padding:var(--medai-space-3) var(--medai-space-2);text-align:left;white-space:normal;box-shadow:none;cursor:pointer;background:0 0;border:0;border-radius:0;grid-template-columns:minmax(140px,1.1fr) minmax(160px,1.2fr) minmax(110px,.7fr) 18px;display:grid}.pa-ai-row-head:hover{background:var(--medai-bg-sunken)}.pa-ai-meter{gap:var(--medai-space-1);min-width:0;display:grid}.pa-ai-meter small{color:var(--medai-text-muted)}.pa-ai-bar{background:var(--medai-surface-hover);border-radius:var(--medai-radius-full);height:8px;display:block;overflow:hidden}.pa-ai-bar i{background:var(--medai-success-600);border-radius:inherit;height:100%;display:block}.pa-ai-bar.is-warning i{background:var(--medai-warning-600)}.pa-ai-bar.is-full i{background:var(--medai-rose-600)}.pa-ai-detail{padding:0 var(--medai-space-2) var(--medai-space-3)}.pa-ai-detail>p{grid-column:1/-1;margin:0}@media (max-width:720px){.pa-ai-head{flex-direction:column;align-items:stretch}.pa-ai-row-head{grid-template-columns:minmax(0,1fr) 16px}.pa-ai-row-head .pa-ai-meter{grid-area:2/1}.pa-ai-row-head .pa-clinic-meta{display:none}.pa-ai-row-head>svg{grid-area:1/2}.pa-ai-detail{grid-template-columns:1fr}}.pa-ai-switch-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.pa-ai-switch-row>span{gap:4px;min-width:0;display:grid}.pa-ai-switch-row small{color:var(--medai-text-muted)}.pa-pay-filters{margin-bottom:var(--medai-space-4)}.pa-pay-count{border-radius:var(--medai-radius-full);background:var(--medai-warning-50);min-width:20px;height:20px;color:var(--medai-warning-700);place-items:center;margin-left:6px;padding:0 6px;display:inline-grid}.pa-pay-list{gap:var(--medai-space-3);display:grid}.pa-pay-row{gap:var(--medai-space-4);padding:var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);background:var(--medai-surface);display:grid}.pa-pay-row.state-pending{border-color:var(--medai-warning-200);box-shadow:inset 3px 0 0 var(--medai-warning-600)}.pa-pay-main{align-items:flex-start;gap:var(--medai-space-3);display:flex}.pa-pay-mark{border-radius:var(--medai-radius-md);background:var(--medai-gray-100);width:38px;height:38px;color:var(--medai-text);flex:none;place-items:center;display:grid}.pa-pay-who{flex:1;min-width:0}.pa-pay-who h3{margin:var(--medai-space-2) 0 var(--medai-space-1)}.pa-pay-who p{margin:0 0 var(--medai-space-1)}.pa-pay-who small,.pa-pay-amount small{color:var(--medai-text-muted)}.pa-pay-amount{text-align:right;justify-items:end;gap:2px;display:grid}.pa-pay-facts{gap:var(--medai-space-2);grid-template-columns:repeat(4,minmax(0,1fr));margin:0;display:grid}.pa-pay-facts>div{min-width:0;padding:var(--medai-space-2) var(--medai-space-3);border-radius:var(--medai-radius-md);background:var(--medai-gray-50)}.pa-pay-facts .is-wide{grid-column:1/-1}.pa-pay-facts dt{color:var(--medai-text-muted)}.pa-pay-facts dd{overflow-wrap:anywhere;margin:0}.pa-pay-actions{align-items:end;gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.pa-pay-reason{flex:260px;margin:0}.pa-pay-rate{justify-content:space-between;align-items:end;gap:var(--medai-space-4);flex-wrap:wrap;display:flex}.pa-pay-rate>div{gap:2px;display:grid}.pa-pay-rate small{color:var(--medai-text-muted)}.pa-pay-rate-form{align-items:end;gap:var(--medai-space-2);flex-wrap:wrap;display:flex}.pa-pay-rate-form .pa-field{margin:0}.pa-pay-methods{gap:var(--medai-space-3);flex-direction:column;display:flex}.pa-pay-method-row{align-items:center;gap:var(--medai-space-3);grid-template-columns:auto minmax(0,1fr) auto;display:grid}.pa-pay-method-text h3{align-items:center;gap:var(--medai-space-2);flex-wrap:wrap;margin:0;display:flex}.pa-pay-method-text small{color:var(--medai-text-muted);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.pa-pay-state{background:var(--medai-surface-muted,#f1f3f7);color:var(--medai-text-muted);border-radius:999px;padding:2px 10px}.pa-pay-state.is-on{background:var(--medai-success-surface,#ecfdf3);color:var(--medai-success-text,#166534)}.pa-pay-method-form{gap:var(--medai-space-3);margin-top:var(--medai-space-3);padding-top:var(--medai-space-3);border-top:1px solid var(--medai-border);display:grid}.pa-pay-fields{gap:var(--medai-space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.pa-pay-method-actions{justify-content:flex-end;gap:var(--medai-space-2);display:flex}.pa-select{width:100%;min-height:40px;padding:0 var(--medai-space-3);border:1px solid var(--medai-border);border-radius:var(--medai-radius-md);background:var(--medai-surface);color:var(--medai-text)}@media (max-width:640px){.pa-pay-fields{grid-template-columns:1fr}}.pa-pay-method{align-content:start;gap:var(--medai-space-2);padding:var(--medai-space-4);border:1px solid var(--medai-border);border-radius:var(--medai-radius-lg);display:grid}.pa-pay-method.is-active{border-color:var(--medai-success-200)}.pa-pay-method-head{align-items:center;gap:var(--medai-space-3);margin-bottom:var(--medai-space-2);display:flex}.pa-pay-method-head>div{flex:1;min-width:0}.pa-pay-method-head h3{margin:0}.pa-pay-method-head small{color:var(--medai-text-muted)}.pa-pay-toggle{align-items:center;gap:var(--medai-space-1);display:inline-flex}.pa-pay-missing{color:var(--medai-warning-700)}@media (max-width:760px){.pa-pay-main{flex-wrap:wrap}.pa-pay-amount{text-align:left;justify-items:start;width:100%}.pa-pay-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}.pa-subpanel form>button{justify-self:start}.pa-auth-card form input:not([type=checkbox]):not([type=radio]){border-radius:var(--medai-radius-md);width:100%;min-height:48px}.pa-auth-card form>button,.pa-auth-card .pa-mfa-setup>button{border-radius:var(--medai-radius-full);justify-self:stretch;width:100%;height:auto;min-height:48px}.pa-auth-card .auth-divider{margin:var(--medai-space-5,20px) 0}.pa-members-title{margin-top:var(--medai-space-4)}.pa-auth-card form.pa-code-form{gap:var(--medai-space-6)}.pa-code{gap:var(--medai-space-2);display:grid}.pa-code-label{color:var(--medai-text)}.pa-code-boxes{justify-content:center;gap:var(--medai-space-2);display:flex}.pa-auth-card form .pa-code-boxes input.pa-code-box{text-align:center;font-variant-numeric:tabular-nums;width:46px;height:56px;min-height:56px;caret-color:var(--medai-text);border:1px solid var(--medai-border-control);border-radius:var(--medai-radius-md);background:var(--medai-surface);box-shadow:none;outline:none;flex:none;padding:0}.pa-auth-card form .pa-code-boxes input.pa-code-box:focus{border-color:var(--medai-text);box-shadow:0 0 0 1px var(--medai-text)}.pa-pay-page{gap:var(--medai-space-4);flex-direction:column;width:100%;max-width:960px;margin:0 auto;display:flex}.pa-head-actions{align-items:center;gap:8px;display:flex}.pa-create-account{gap:14px;margin-bottom:16px;display:grid}.pa-create-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.pa-kind{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;display:grid}.pa-kind label{border:1px solid var(--medai-border);cursor:pointer;border-radius:12px;align-items:center;gap:10px;padding:12px 14px;display:flex}.pa-kind label.is-selected{border-color:var(--medai-action);background:var(--medai-selection-surface,#eef2ff)}.pa-kind input{accent-color:var(--medai-action)}.pa-kind span{gap:2px;display:grid}.pa-kind small{color:var(--medai-text-muted)}.pa-field{gap:6px;display:grid}.pa-kind-badge{background:var(--medai-surface-muted,#f1f3f7);color:var(--medai-text-muted);border-radius:999px;margin-left:6px;padding:1px 8px;font-style:normal}@media (max-width:640px){.pa-kind{grid-template-columns:1fr}}
