.hb-fade-in{animation:hbFadeIn .35s ease both}.hb-slide-up{animation:hbSlideUp .4s cubic-bezier(.4,0,.2,1) both}@keyframes hbFadeIn{0%{opacity:0}to{opacity:1}}@keyframes hbSlideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes hb-toast-in{0%{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}@keyframes hbPulse{0%,to{opacity:1}50%{opacity:.55}}.hb-loading-pulse{animation:hbPulse 1.2s ease-in-out infinite}.hb-portal-topbar{height:56px;background:var(--surface);border-bottom:1px solid var(--border);padding:0 16px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;grid-gap:12px;gap:12px;position:-webkit-sticky;position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.hb-portal-topbar--compact{height:48px;padding:0 12px}.hb-portal-topbar--dark .hb-clock-time{color:#fff}.hb-patient-header{background:var(--primary,#1a4d8c);color:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:100;box-shadow:0 2px 12px rgba(26,77,140,.25);padding-top:env(safe-area-inset-top,0)}.hb-patient-header .hb-portal-topbar{height:54px;padding:0 14px}.hb-topbar-logo{display:inline-flex;align-items:center;min-width:0}.hb-topbar-logo img{max-height:38px;width:auto;max-width:min(180px,42vw);object-fit:contain}@media (max-width:400px){.hb-patient-header .hb-portal-topbar{height:50px;padding:0 10px;gap:6px}.hb-topbar-logo img{max-height:32px;max-width:38vw}.hb-live-clock{padding:4px 8px;font-size:10px}.hb-clock-time{font-size:11px}.hb-icon-btn{width:32px;height:32px}}@media (min-width:401px) and (max-width:640px){.hb-topbar-logo img{max-height:36px;max-width:40vw}}.hb-topbar-left,.hb-topbar-right{display:flex;align-items:center;gap:10px;min-width:0}.hb-topbar-left{justify-self:start}.hb-topbar-center{justify-self:center;display:flex;align-items:center;gap:8px;flex-shrink:0}.hb-topbar-sos{flex-shrink:0;z-index:3}@media (max-width:420px){.hb-patient-header .hb-live-clock{display:none}}.hb-topbar-right{justify-self:end;min-width:max-content;flex-shrink:0;z-index:2}.hb-topbar-title{margin:0;font-size:15px;font-weight:700;color:var(--text)}.hb-topbar-user{font-size:12px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-live-clock,.hb-topbar-user{color:var(--text-muted);font-weight:600}.hb-live-clock{display:flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;background:var(--surface-2);border:1px solid var(--border);font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.hb-clock-time{color:var(--primary);font-weight:700;font-size:12px}.hb-clock-date{font-size:11px;padding-left:6px;border-left:1px solid var(--border);margin-left:2px;white-space:nowrap}@media (max-width:520px){.hb-clock-date,.hb-topbar-user{display:none}.hb-patient-header .hb-topbar-center{gap:4px}.hb-patient-header .hb-topbar-logout{flex-shrink:0}.hb-patient-header .hb-live-clock{padding:4px 6px;gap:4px;font-size:11px}.hb-patient-header .hb-theme-toggle{flex-shrink:0}}.hb-topbar-logout{flex-shrink:0;min-width:34px}.hb-topbar-logout--labeled{width:auto!important;min-width:44px;height:34px;padding:0 10px;gap:6px;font-weight:700;font-size:12px;display:inline-flex!important;align-items:center;justify-content:center;visibility:visible!important;opacity:1!important}.hb-topbar-logout-label{line-height:1;letter-spacing:.02em;white-space:nowrap}.hb-live-clock--compact,.hb-portal-topbar--compact .hb-live-clock{display:inline-flex!important;padding:4px 8px;gap:5px;font-size:12px;max-width:none}.hb-portal-topbar--compact .hb-theme-toggle{display:inline-flex!important;flex-shrink:0}@media (max-width:900px){.hb-portal-topbar .hb-live-clock,.hb-portal-topbar .hb-theme-toggle{display:inline-flex!important}.hb-topbar-logout{flex-shrink:0!important}}@media (min-width:521px){.hb-clock-date{display:inline}}.hb-icon-btn{border:1px solid var(--border);background:var(--surface-2);border-radius:8px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;color:var(--text);transition:transform var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}.hb-icon-btn:hover{background:var(--surface);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.hb-icon-btn:active{transform:scale(.96)}.hb-theme-toggle{color:var(--color-warning)}.hb-stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));grid-gap:10px;gap:10px;margin-bottom:16px}.hb-stat-card{background:var(--surface);border-radius:10px;border:1px solid var(--border);padding:10px 12px;display:flex;gap:10px;align-items:center;transition:transform var(--motion-fast),box-shadow var(--motion-fast),border-color var(--motion-fast);cursor:default}.hb-stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--primary-light)}.hb-stat-icon{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px}.hb-stat-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:2px}.hb-stat-value{font-size:18px;font-weight:800;color:var(--text);line-height:1.1}.hb-stat-desc{font-size:10px;color:var(--text-muted);margin-top:1px}.hb-stat-icon--blue{background:#dbeafe;color:#2563eb}.hb-stat-icon--teal{background:#ccfbf1;color:#0d9488}.hb-stat-icon--green{background:#d1fae5;color:#059669}.hb-stat-icon--amber{background:#fef3c7;color:#d97706}.hb-stat-icon--red{background:#fee2e2;color:#dc2626}.hb-stat-icon--purple{background:#ede9fe;color:#7c3aed}.hb-stat-icon--pink{background:#fce7f3;color:#db2777}[data-theme=dark] .hb-stat-icon--blue{background:#1e3a5f;color:#93c5fd}[data-theme=dark] .hb-stat-icon--teal{background:#134e4a;color:#5eead4}[data-theme=dark] .hb-stat-icon--green{background:#14532d;color:#6ee7b7}[data-theme=dark] .hb-stat-icon--amber{background:#78350f;color:#fcd34d}[data-theme=dark] .hb-stat-icon--red{background:#7f1d1d;color:#fca5a5}[data-theme=dark] .hb-stat-icon--purple{background:#4c1d95;color:#c4b5fd}[data-theme=dark] .hb-stat-icon--pink{background:#831843;color:#f9a8d4}.hb-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin}.hb-compact-table{width:100%;border-collapse:collapse;font-size:12.5px}.hb-compact-table td,.hb-compact-table th{padding:7px 10px;vertical-align:middle}.hb-compact-table th{font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--text-muted,#6b7280);white-space:nowrap}.hb-row-actions{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}.hb-row-actions .hb-btn,.hb-row-actions a,.hb-row-actions button{padding:4px 8px!important;font-size:11px!important;min-width:32px;min-height:32px;line-height:1.2;border-radius:6px;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hb-row-actions .hb-btn-sm{padding:3px 7px!important;font-size:11px!important}.hb-icon-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}.hb-quick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));grid-gap:8px;gap:8px;margin-bottom:16px}.hb-quick-action{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;text-decoration:none;color:var(--text);font-size:11px;font-weight:600;text-align:center;transition:transform var(--motion-fast),box-shadow var(--motion-fast),border-color var(--motion-fast),background var(--motion-fast)}.hb-quick-action:hover{transform:translateY(-2px) scale(1.02);box-shadow:var(--shadow-md);border-color:var(--primary-light);background:var(--surface-2)}.hb-quick-action:active{transform:scale(.97)}.hb-quick-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff}.hb-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 18px;border-radius:12px;border:1px solid var(--border);margin-bottom:16px;flex-wrap:wrap;background:var(--surface)}.hb-welcome-title{margin:0;font-size:17px;font-weight:700;color:var(--text)}.hb-welcome-sub{margin:4px 0 0;font-size:12px;color:var(--text-muted);max-width:520px;line-height:1.45}.hb-section-divider{display:flex;align-items:center;gap:8px;margin:4px 0 10px}.hb-section-divider h3{margin:0;font-size:13px;font-weight:700;color:var(--text)}.hb-section-divider-line{flex:1 1;height:1px;background:var(--border)}.hb-legacy-sidebar{background:var(--surface)!important;border-right-color:var(--border)!important;color:var(--text)}.hb-legacy-sidebar,.hb-portal-shell{--nav-accent:var(--primary,#1a4d8c);--role-primary:var(--nav-accent)}.hb-legacy-sidebar[data-role=admin],.hb-portal-shell[data-role=admin]{--nav-accent:#1a4d8c;--role-primary:#1a4d8c}.hb-legacy-sidebar[data-role=staff],.hb-portal-shell[data-role=staff]{--nav-accent:#368551;--role-primary:#368551}.hb-legacy-sidebar[data-role=institution],.hb-portal-shell[data-role=institution]{--nav-accent:#2f6f4e;--role-primary:#2f6f4e}.hb-legacy-sidebar[data-role=patient],.hb-patient-shell[data-role=patient],.hb-portal-shell[data-role=patient]{--nav-accent:#1a4d8c;--role-primary:#1a4d8c}.hb-patient-shell{min-height:100vh;min-height:100dvh}.hb-nav-section{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--border,#e5e7eb)}.hb-nav-section:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}.hb-nav-section-title{padding:0 20px;margin-bottom:6px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted,#6b7280);display:flex;align-items:center;gap:8px}.hb-nav-section-title:after{content:"";flex:1 1;height:1px;background:var(--border,#e5e7eb);opacity:.7}.hb-legacy-sidebar .hb-nav-link{position:relative;margin:2px 10px;border-radius:10px;transition:background var(--motion-fast),transform var(--motion-fast),color var(--motion-fast),box-shadow var(--motion-fast)}.hb-legacy-sidebar .hb-nav-link:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:0;border-radius:0 3px 3px 0;background:var(--nav-accent);transition:height var(--motion-fast)}.hb-legacy-sidebar .hb-nav-link:hover{background:var(--surface-2,#f3f4f6);color:var(--text,#111827);transform:translateX(3px)}.hb-legacy-sidebar .hb-nav-link:active{transform:scale(.98) translateX(1px)}.hb-legacy-sidebar .hb-nav-link.active{font-weight:700;color:var(--nav-accent)!important;background:color-mix(in srgb,var(--nav-accent) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nav-accent) 18%,transparent)}.hb-legacy-sidebar .hb-nav-link--logout:focus-visible,.hb-legacy-sidebar .hb-nav-link--logout:hover{background:#fef2f2!important;color:#b91c1c!important}.hb-legacy-sidebar .hb-nav-link--logout:active{transform:scale(.98)}.hb-legacy-sidebar .hb-nav-link.active:before{height:60%}.hb-nav-active-dot{width:6px;height:6px;border-radius:50%;background:var(--nav-accent);flex-shrink:0;box-shadow:0 0 0 2px color-mix(in srgb,var(--nav-accent) 25%,transparent)}.hb-legacy-sidebar-footer{flex-shrink:0;margin-top:auto;padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--border,#e5e7eb);background:var(--surface,#fff);z-index:2}.hb-legacy-sidebar .hb-logout-btn{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;min-height:48px;border:none;border-radius:10px;background:#fef2f2;color:#dc2626;font-size:15px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background var(--motion-fast),transform var(--motion-fast)}.hb-legacy-sidebar .hb-logout-btn:hover{background:#fee2e2}.hb-legacy-sidebar .hb-logout-btn:active{transform:scale(.97)}.hb-portal-shell{min-height:100vh;min-height:100dvh;background:var(--bg);font-family:var(--font-primary,system-ui);color:var(--text)}.hb-portal-shell,.hb-portal-sidebar-slot{display:flex;max-height:100vh;max-height:100dvh;overflow:hidden}.hb-portal-sidebar-slot{flex-direction:column;align-self:stretch;flex-shrink:0;min-height:0;height:100vh;height:100dvh}.hb-portal-sidebar-slot>.hb-legacy-sidebar{height:100%;min-height:0;max-height:100%;overflow:hidden}.hb-portal-main{flex:1 1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.hb-portal-content{flex:1 1;padding:16px;overflow:auto;-webkit-overflow-scrolling:touch;min-height:0}@media (min-width:768px){.hb-portal-content{padding:20px}}.hb-patient-shell main{padding:16px}@media (min-width:768px){.hb-patient-shell main{padding:20px}}.hb-profile-nudge{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin-bottom:12px;border-radius:10px;background:#fffbeb;border:1px solid #fcd34d;font-size:13px;color:#92400e}[data-theme=dark] .hb-profile-nudge{background:#451a03;border-color:#b45309;color:#fde68a}.hb-profile-nudge a{color:inherit;font-weight:700;white-space:nowrap}.hb-nav-badge{position:absolute;top:-4px;right:-10px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#ef4444;color:#fff;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid var(--surface)}.hb-patient-bottom-nav{position:fixed!important;bottom:0!important;left:0!important;right:0!important;top:auto!important;width:100%;max-width:100vw;height:calc(52px + env(safe-area-inset-bottom, 0px));padding:2px 6px max(2px,env(safe-area-inset-bottom));margin:0;background:rgba(255,255,255,.98);border-top:1px solid #e2e8f0;box-shadow:0 -2px 10px rgba(15,23,42,.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;justify-content:space-around;align-items:center;gap:2px;z-index:10000;pointer-events:auto;transform:translateZ(0);-webkit-transform:translateZ(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.hb-clinical-bottom-nav,.hb-patient-bottom-nav{box-sizing:border-box;justify-content:space-between;gap:2px}.hb-bottom-nav-end{display:flex;align-items:center;flex-shrink:0;gap:0;margin-left:4px;padding-left:4px;border-left:1px solid #e2e8f0}.hb-bottom-nav-end .hb-bottom-nav-item{flex:0 0 auto;max-width:52px}.hb-bottom-nav-end .hb-bottom-nav-logout{margin-right:-2px}.hb-bottom-nav-item.hb-bottom-nav-logout--labeled{max-width:48px;width:auto;flex:0 0 auto}.hb-bottom-nav-item.hb-bottom-nav-logout--labeled .hb-bottom-nav-icon{flex-direction:row;gap:0;width:36px;height:36px;background:#fef2f2;color:#dc2626;box-shadow:none}.hb-bottom-nav-logout-text{display:none}.hb-bottom-nav-item.hb-bottom-nav-logout--labeled:focus-visible .hb-bottom-nav-icon,.hb-bottom-nav-item.hb-bottom-nav-logout--labeled:hover .hb-bottom-nav-icon{background:#fee2e2;color:#b91c1c}.hb-bottom-nav-item{flex:1 1;max-width:52px;height:40px;display:flex;text-decoration:none;background:transparent;border:none;cursor:pointer;color:#94a3b8;transition:background .15s ease,color .15s ease,transform .12s ease;-webkit-tap-highlight-color:transparent}.hb-bottom-nav-item,.hb-bottom-nav-item .hb-bottom-nav-icon{position:relative;align-items:center;justify-content:center;border-radius:12px}.hb-bottom-nav-item .hb-bottom-nav-icon{display:inline-flex;width:36px;height:36px;font-size:18px;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.hb-bottom-nav-item[data-tone=home] .hb-bottom-nav-icon{color:#64748b}.hb-bottom-nav-item[data-tone=visits] .hb-bottom-nav-icon{color:#b45309}.hb-bottom-nav-item[data-tone=messages] .hb-bottom-nav-icon{color:#0e7490}.hb-bottom-nav-item[data-tone=video] .hb-bottom-nav-icon{color:#0369a1}.hb-bottom-nav-item[data-tone=menu] .hb-bottom-nav-icon{color:#475569}.hb-bottom-nav-item[data-tone=logout] .hb-bottom-nav-icon{color:#dc2626}.hb-bottom-nav-item.hb-bottom-nav-logout:focus-visible .hb-bottom-nav-icon,.hb-bottom-nav-item.hb-bottom-nav-logout:hover .hb-bottom-nav-icon{background:#fee2e2;color:#b91c1c}.hb-bottom-nav-item:focus-visible .hb-bottom-nav-icon,.hb-bottom-nav-item:hover .hb-bottom-nav-icon{background:#f1f5f9}.hb-bottom-nav-item.active[data-tone=home] .hb-bottom-nav-icon{background:#dbeafe;color:#1a4d8c;box-shadow:0 2px 8px rgba(26,77,140,.2)}.hb-bottom-nav-item.active[data-tone=visits] .hb-bottom-nav-icon{background:#fef3c7;color:#b45309;box-shadow:0 2px 8px rgba(180,83,9,.18)}.hb-bottom-nav-item.active[data-tone=messages] .hb-bottom-nav-icon{background:#cffafe;color:#0e7490;box-shadow:0 2px 8px rgba(14,116,144,.2)}.hb-bottom-nav-item.active[data-tone=video] .hb-bottom-nav-icon{background:#e0f2fe;color:#0369a1;box-shadow:0 2px 8px rgba(3,105,161,.2)}.hb-bottom-nav-item.active[data-tone=menu] .hb-bottom-nav-icon{background:#e2e8f0;color:#334155}.hb-bottom-nav-item:active{transform:scale(.94)}.hb-bottom-nav-item .hb-nav-badge{top:-2px;right:-4px;min-width:18px;height:18px;font-size:10px;border-width:2px}.hb-hub-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;padding:4px;background:var(--surface-2,#f1f5f9);border-radius:12px;border:1px solid var(--border)}.hb-hub-tab{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text-muted,#475569);font-size:13px;font-weight:600;cursor:pointer;transition:background var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-fast)}.hb-hub-tab:hover{background:var(--surface);color:var(--text)}.hb-hub-tab[data-channel=messages].hb-hub-tab--active{background:#0e7490;border-color:#0e7490;color:#fff;box-shadow:0 1px 3px rgba(14,116,144,.35)}.hb-hub-tab[data-channel=alerts].hb-hub-tab--active{background:#d97706;border-color:#d97706;color:#fff;box-shadow:0 1px 3px rgba(217,119,6,.35)}.hb-hub-tab--active:not([data-channel]){background:var(--role-primary,var(--primary));border-color:var(--role-primary,var(--primary));color:#fff}.hb-hub-tab-badge{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}.hb-hub-tab[data-channel=messages] .hb-hub-tab-badge{background:#0891b2}.hb-hub-tab[data-channel=alerts] .hb-hub-tab-badge{background:#ea580c}.hb-hub-tab--active .hb-hub-tab-badge{background:rgba(255,255,255,.95)!important;color:#0f172a}.hb-hub-panel--messages{border-top:3px solid #0e7490;border-radius:0 0 12px 12px}.hb-hub-panel--alerts{border-top:3px solid #d97706;border-radius:0 0 12px 12px}.hb-alerts-inbox{background:var(--surface);border:1px solid #fde68a;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(217,119,6,.06)}.hb-alerts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid #fde68a;background:linear-gradient(90deg,#fffbeb,#fef3c7);font-size:12px}.hb-alerts-toolbar-label{color:#92400e;font-weight:600}.hb-alerts-mark-all{border:none;background:transparent;color:#b45309;font-size:12px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:6px}.hb-alerts-mark-all:hover{background:rgba(217,119,6,.12)}.hb-alerts-empty{margin:0;padding:24px 16px;text-align:center;color:var(--text-muted);font-size:13px}.hb-alerts-list{list-style:none;margin:0;padding:0;max-height:420px;overflow-y:auto}.hb-alert-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #fef3c7;border-left:3px solid transparent;transition:background var(--motion-fast)}.hb-alert-row:hover{background:#fffbeb}.hb-alert-row--read{opacity:.72}.hb-alert-row--important{border-left-color:#ef4444;background:#fff7ed}.hb-alert-row[data-type=appointment]{border-left-color:#2563eb}.hb-alert-row[data-type=referral]{border-left-color:#7c3aed}.hb-alert-row[data-type=prescription]{border-left-color:#059669}.hb-alert-row[data-type=telemedicine]{border-left-color:#0891b2}.hb-alert-row[data-type=billing]{border-left-color:#d97706}.hb-alert-row[data-type=system]{border-left-color:#64748b}.hb-alert-row[data-type=message]{border-left-color:#0e7490}.hb-alert-row-main{flex:1 1;min-width:0}.hb-alert-row-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}.hb-alert-dot{width:7px;height:7px;border-radius:50%;background:#d97706;flex-shrink:0}.hb-alert-type{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px;border-radius:4px}.hb-alert-type[data-type=appointment]{background:#dbeafe;color:#1e40af}.hb-alert-type[data-type=referral]{background:#ede9fe;color:#5b21b6}.hb-alert-type[data-type=prescription]{background:#d1fae5;color:#065f46}.hb-alert-type[data-type=telemedicine]{background:#cffafe;color:#155e75}.hb-alert-type[data-type=billing]{background:#fef3c7;color:#92400e}.hb-alert-type[data-type=system]{background:#f1f5f9;color:#475569}.hb-alert-type[data-type=message]{background:#ecfeff;color:#0e7490}.hb-alert-type:not([data-type]){background:#f1f5f9;color:#64748b}.hb-alert-msg{margin:4px 0 0;font-size:13px;color:var(--text-muted);line-height:1.45}.hb-alert-time{display:block;margin-top:6px;font-size:11px;color:#94a3b8}.hb-alert-row-actions{display:flex;flex-direction:column;gap:4px;flex-shrink:0}.hb-alert-link{font-size:11px;font-weight:600;color:var(--primary);text-decoration:none;background:none;border:none;cursor:pointer;padding:2px 0;text-align:right}.hb-alert-link:hover{text-decoration:underline}.hb-module-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:48px 24px;color:var(--text-muted);font-size:14px;font-weight:500}.hb-module-loading--compact{flex-direction:row;padding:24px 16px;gap:10px}.hb-module-loading-spinner,.hb-page-loading{display:flex;align-items:center;justify-content:center}.hb-page-loading{min-height:240px;width:100%}.hb-page-loading-inner{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--primary);font-weight:600;font-size:15px}.hb-inline-loading{display:inline-flex;align-items:center;gap:8px;color:var(--text-muted);font-size:13px}.hb-clickable-row{cursor:pointer;transition:background var(--motion-fast),transform var(--motion-fast),box-shadow var(--motion-fast)}.hb-clickable-row:hover{background:var(--surface-2)}.hb-clickable-row:active{transform:scale(.995)}.hb-chat{display:grid;grid-template-columns:minmax(240px,300px) 1fr;height:min(70vh,640px);min-height:440px;max-height:calc(100dvh - 200px);border:1px solid var(--border,#e2e8f0);border-radius:14px;overflow:hidden;background:#efeae2;box-shadow:0 1px 3px rgba(0,0,0,.06)}.hb-chat-aside,.hb-chat-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.hb-chat-aside{background:#fff;border-right:1px solid var(--border,#e2e8f0)}.hb-chat-aside-head{flex-shrink:0;padding:12px 14px;background:var(--gradient-primary,linear-gradient(135deg,var(--role-primary,#1a4d8c),#4a7cb0));color:#fff}.hb-chat-aside-title{font-weight:700;font-size:14px;margin-bottom:10px}.hb-chat-aside-title,.hb-chat-search{display:flex;align-items:center;gap:8px}.hb-chat-search{background:rgba(255,255,255,.18);border-radius:8px;padding:6px 10px}.hb-chat-search input{flex:1 1;border:none;background:transparent;color:#fff;font-size:13px;outline:none;min-width:0}.hb-chat-search input::placeholder{color:rgba(255,255,255,.7)}.hb-chat-conv-list{flex:1 1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.hb-chat-row{display:flex;gap:10px;width:100%;padding:12px 14px;border:none;border-bottom:1px solid #f1f5f9;background:transparent;text-align:left;cursor:pointer;transition:background .15s ease}.hb-chat-row:hover{background:#f8fafc}.hb-chat-row.active{background:color-mix(in srgb,var(--role-primary,#1a4d8c) 8%,#fff);border-left:3px solid var(--role-primary,#1a4d8c);padding-left:11px}.hb-chat-avatar-wrap{position:relative;flex-shrink:0}.hb-chat-avatar{width:42px;height:42px;border-radius:50%;background:var(--gradient-primary,linear-gradient(135deg,var(--role-primary,#1a4d8c),#4a7cb0));color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}.hb-chat-avatar--sm{width:36px;height:36px;font-size:12px;background:rgba(255,255,255,.22)}.hb-chat-online{position:absolute;bottom:1px;right:1px;width:10px;height:10px;border-radius:50%;background:#22c55e;border:2px solid #fff}.hb-chat-row-body{flex:1 1;min-width:0}.hb-chat-row-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.hb-chat-row-name{font-weight:650;font-size:13px;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-chat-row-time{font-size:11px;color:#94a3b8;flex-shrink:0}.hb-chat-row-role{font-size:11px;color:#64748b;margin-top:1px}.hb-chat-row-bottom{display:flex;align-items:center;gap:8px;margin-top:2px}.hb-chat-row-preview{flex:1 1;font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-chat-unread{flex-shrink:0;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.hb-chat-unread-dot{width:8px;height:8px;border-radius:50%;background:#0891b2;flex-shrink:0}.hb-chat-panel-head{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;background:var(--gradient-primary,linear-gradient(135deg,var(--role-primary,#1a4d8c),#4a7cb0))}.hb-chat-back,.hb-chat-panel-head{flex-shrink:0;align-items:center;color:#fff}.hb-chat-back{display:none;justify-content:center;width:32px;height:32px;border:none;border-radius:8px;background:rgba(255,255,255,.15);cursor:pointer}.hb-chat-messages{flex:1 1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 12px;background:linear-gradient(rgba(239,234,226,.92),rgba(239,234,226,.92)),url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cfc6' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.hb-chat-empty{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#94a3b8;font-size:14px;background:#f8fafc;padding:24px;text-align:center}.hb-chat-quick{flex-shrink:0;display:flex;gap:6px;padding:8px 12px;overflow-x:auto;background:#fff;border-top:1px solid #e2e8f0}.hb-chat-quick button{flex-shrink:0;border:1px solid #e2e8f0;background:#f8fafc;border-radius:99px;padding:6px 12px;font-size:12px;color:#334155;cursor:pointer}.hb-chat-compose{flex-shrink:0;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid #e2e8f0}.hb-chat-compose textarea{flex:1 1;min-height:40px;max-height:100px;resize:none;border:1px solid #e2e8f0;border-radius:20px;padding:10px 14px;font-size:14px;font-family:inherit;outline:none;line-height:1.4}.hb-chat-compose textarea:focus{border-color:#0891b2}.hb-chat-quick-btn,.hb-chat-send{width:40px;height:40px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}.hb-chat-quick-btn{background:#f1f5f9}.hb-chat-quick-btn.active{background:#0891b2}.hb-topbar-notify{position:relative;display:inline-flex}.hb-topbar-notify .hb-nav-badge{top:-2px;right:-6px}@media (max-width:768px){.hb-chat{grid-template-columns:1fr;height:calc(100dvh - 220px);min-height:380px;max-height:calc(100dvh - 180px)}.hb-chat--thread-open .hb-chat-aside,.hb-chat:not(.hb-chat--thread-open) .hb-chat-panel{display:none}.hb-chat-back{display:inline-flex}}.hb-edu-body{font-size:15px;color:#334155;line-height:1.75}.hb-edu-p{margin:0 0 14px}.hb-edu-figure img,.hb-edu-gallery-item img,.hb-edu-html img{max-width:100%;border-radius:12px;display:block}.hb-edu-figure{margin:16px 0}.hb-edu-figure figcaption{margin-top:6px;font-size:12px;color:#94a3b8;text-align:center}.hb-edu-embed{position:relative;padding-top:56.25%;margin:16px 0;border-radius:12px;overflow:hidden;background:#0f172a}.hb-edu-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:none}.hb-edu-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:10px;gap:10px;margin-top:16px}.hb-edu-gallery-item{display:block;border-radius:10px;overflow:hidden;border:1px solid #e2e8f0;aspect-ratio:4/3;background:#f8fafc}.hb-edu-gallery-item img{width:100%;height:100%;object-fit:cover;border-radius:0}.hb-edu-comments{margin-top:20px;border-top:1px solid #e2e8f0;padding-top:16px}.hb-edu-comment{padding:12px 0;border-bottom:1px solid #f1f5f9}.hb-edu-comment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.hb-edu-comment-author{font-weight:650;font-size:13px;color:#0f172a}.hb-edu-comment-time{font-size:11px;color:#94a3b8}.hb-edu-comment-body{margin:0;font-size:14px;color:#475569;line-height:1.55;white-space:pre-wrap}.hb-edu-comment-form{display:flex;flex-direction:column;gap:8px;margin-top:12px}.hb-edu-comment-form textarea{width:100%;min-height:72px;padding:10px 12px;border-radius:10px;border:1px solid #e2e8f0;font:inherit;resize:vertical;box-sizing:border-box}.hb-edu-comment-form textarea:focus{outline:none;border-color:#1a4d8c}.hb-patient-shell button:not(.hb-bottom-nav-item):not(.hb-icon-btn):not(.hb-chip-filter):not([data-no-press]),.hb-portal-content button:not(.hb-nav-link):not(.hb-bottom-nav-item):not(.hb-icon-btn):not(.hb-logout-btn):not(.hb-hub-tab):not(.hb-chat-row):not(.hb-alerts-mark-all):not(.hb-chip-filter):not([data-no-press]),.hb-pressable{transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,filter .18s ease,background .18s ease,border-color .18s ease}.hb-patient-shell button:not(:disabled):not(.hb-bottom-nav-item):not(.hb-icon-btn):not(.hb-chip-filter):not([data-no-press]):hover,.hb-portal-content button:not(:disabled):not(.hb-nav-link):not(.hb-bottom-nav-item):not(.hb-icon-btn):not(.hb-logout-btn):not(.hb-hub-tab):not(.hb-chat-row):not(.hb-alerts-mark-all):not(.hb-chip-filter):not([data-no-press]):hover,.hb-pressable:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.12);filter:brightness(1.03)}.hb-patient-shell button:not(:disabled):not(.hb-bottom-nav-item):not(.hb-icon-btn):not([data-no-press]):active,.hb-portal-content button:not(:disabled):not(.hb-nav-link):not(.hb-bottom-nav-item):not(.hb-icon-btn):not(.hb-logout-btn):not(.hb-hub-tab):not(.hb-chat-row):not(.hb-alerts-mark-all):not([data-no-press]):active,.hb-pressable:not(:disabled):active{transform:translateY(0) scale(.97);box-shadow:0 2px 6px rgba(15,23,42,.08);filter:brightness(.98)}.hb-link-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,filter .18s ease,background .18s ease}.hb-link-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.14);filter:brightness(1.04)}.hb-link-btn:active{transform:translateY(0) scale(.97);box-shadow:0 2px 6px rgba(15,23,42,.08);filter:brightness(.98)}.hb-chip-filter{padding:6px 14px;border-radius:18px;border:1px solid var(--border,#e2e8f0);font-size:13px;font-weight:600;cursor:pointer;background:var(--surface-2,#f1f5f9);color:var(--text-muted,#475569);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .16s cubic-bezier(.22,1,.36,1),box-shadow .16s ease,background .16s ease,color .16s ease,border-color .16s ease;white-space:nowrap;flex-shrink:0}.hb-chip-filter:hover:not(.is-active){transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,23,42,.08);background:var(--surface,#fff);border-color:color-mix(in srgb,var(--primary,#1a4d8c) 25%,var(--border,#e2e8f0))}.hb-chip-filter:active{transform:scale(.97)}.hb-chip-filter.is-active{background:var(--chip-active-bg,var(--primary,#1a4d8c));color:var(--chip-active-color,#fff);border-color:transparent;box-shadow:0 4px 12px color-mix(in srgb,var(--chip-active-bg,var(--primary,#1a4d8c)) 35%,transparent)}.hb-chip-filter--outline.is-active{background:color-mix(in srgb,var(--chip-active-bg,#0891b2) 12%,var(--surface,#fff));color:var(--chip-active-bg,#0891b2);border-color:var(--chip-active-bg,#0891b2);box-shadow:none}.hb-edu-media-tile{position:relative;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--hb-edu-accent,var(--primary,#1a4d8c)) 18%,var(--surface)),color-mix(in srgb,var(--hb-edu-accent,var(--primary,#1a4d8c)) 32%,var(--surface-2)))}.hb-edu-media-tile__embed,.hb-edu-media-tile__media{width:100%;height:100%;object-fit:cover;display:block;border:none;pointer-events:none}.hb-edu-media-tile__embed{background:var(--surface-2)}.hb-edu-media-tile__fallback{width:100%;height:100%;background:linear-gradient(135deg,color-mix(in srgb,var(--hb-edu-accent,var(--primary,#1a4d8c)) 14%,var(--surface)),color-mix(in srgb,var(--hb-edu-accent,var(--primary,#1a4d8c)) 28%,var(--surface-2)))}.hb-edu-media-tile__fallback,.hb-edu-media-tile__play{display:flex;align-items:center;justify-content:center}.hb-edu-media-tile__play{position:absolute;inset:0;pointer-events:none}.hb-edu-media-tile__play:before{content:"";width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 4px 14px rgba(15,23,42,.2);position:absolute}.hb-edu-media-tile__play i,.hb-edu-media-tile__play svg{position:relative;z-index:1;margin-left:2px}.hb-edu-media-tile__type-badge{position:absolute;bottom:8px;left:8px;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:8px;background:rgba(15,23,42,.72);color:#fff;font-size:10px;font-weight:700;letter-spacing:.02em}.hb-edu-card{border:1px solid var(--border,#e2e8f0);border-radius:14px;overflow:hidden;background:var(--surface,#fff);display:flex;flex-direction:column;transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s ease,border-color .2s ease}.hb-edu-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(15,23,42,.1);border-color:color-mix(in srgb,var(--primary,#1a4d8c) 22%,var(--border,#e2e8f0))}.hb-edu-card:active{transform:translateY(-1px) scale(.995)}.hb-edu-card-link{text-decoration:none;color:inherit;display:block}.hb-async-btn.hb-btn:disabled{transform:none!important;box-shadow:none!important;filter:none!important}.hb-text-muted{color:var(--text-muted)!important}.hb-text-subtle{color:var(--text-subtle)!important}.hb-text-body{color:var(--text)!important}.hb-text-primary{color:var(--primary)!important}.hb-surface-box{color:var(--text)}.hb-search-bar,.hb-surface-box{background:var(--surface);border:1px solid var(--border)}.hb-search-bar{display:flex;align-items:center;gap:8px;border-radius:24px;padding:8px 14px}.hb-search-bar input{flex:1 1;border:none;outline:none;font-size:13px;background:transparent;color:var(--text)}.hb-search-bar input::placeholder{color:var(--text-subtle)}.hb-cat-badge{display:inline-flex;align-items:center;font-size:10px;padding:2px 8px;border-radius:10px;font-weight:700;text-transform:capitalize}.hb-cat-badge,.hb-cat-badge--general{background:var(--status-neutral-bg);color:var(--status-neutral-fg)}.hb-cat-badge--chronic,.hb-cat-badge--ncd{background:var(--status-danger-bg);color:var(--status-danger-fg)}.hb-cat-badge--maternal,.hb-cat-badge--recovery{background:var(--status-warning-bg);color:var(--status-warning-fg)}.hb-cat-badge--child,.hb-cat-badge--pediatric,.hb-cat-badge--telemedicine{background:var(--status-blue-bg);color:var(--status-blue-fg)}.hb-cat-badge--medication,.hb-cat-badge--mental{background:var(--status-purple-bg);color:var(--status-purple-fg)}.hb-cat-badge--nutrition,.hb-cat-badge--surgical,.hb-cat-badge--wellness{background:var(--status-success-bg);color:var(--status-success-fg)}.hb-cat-badge--exercise,.hb-cat-badge--prevention{background:var(--status-info-bg);color:var(--status-info-fg)}.hb-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:2px 8px;border-radius:6px;font-weight:650;text-transform:capitalize}.hb-badge--info{background:var(--status-info-bg);color:var(--status-info-fg)}.hb-badge--success{background:var(--status-success-bg);color:var(--status-success-fg)}.hb-badge--warning{background:var(--status-warning-bg);color:var(--status-warning-fg)}.hb-badge--danger{background:var(--status-danger-bg);color:var(--status-danger-fg)}.hb-badge--neutral{background:var(--status-neutral-bg);color:var(--status-neutral-fg)}.hb-tag{padding:4px 10px;background:var(--chip-bg);border-radius:12px;font-size:11px;color:var(--text-muted)}.hb-pill-overlay{background:var(--pill-overlay-bg);color:var(--pill-overlay-fg);font-size:10px;font-weight:700;padding:3px 8px;border-radius:12px;text-transform:uppercase}.hb-action-chip{flex:1 1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:13px;font-weight:600;cursor:pointer;transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}.hb-action-chip:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.1);border-color:color-mix(in srgb,var(--primary) 25%,var(--border))}.hb-action-chip:active:not(:disabled){transform:scale(.97)}.hb-action-chip--liked{background:var(--status-danger-bg);color:var(--status-danger-fg);border-color:color-mix(in srgb,var(--status-danger-fg) 30%,var(--border))}.hb-action-chip--saved{background:var(--status-info-bg);color:var(--status-info-fg);border-color:color-mix(in srgb,var(--status-info-fg) 30%,var(--border))}.hb-divider-top{border-top:1px solid var(--border)}.hb-featured-badge{position:absolute;top:8px;right:8px;background:var(--status-warning-bg);color:var(--status-warning-fg);padding:3px 8px}.hb-audience-badge,.hb-featured-badge{font-size:10px;font-weight:700;border-radius:10px}.hb-audience-badge{padding:2px 8px;background:var(--status-success-bg);color:var(--status-success-fg);text-transform:capitalize}[data-theme=dark] .hb-edu-media-tile,[data-theme=dark] .hb-edu-media-tile__fallback{background:linear-gradient(135deg,color-mix(in srgb,var(--hb-edu-accent,var(--primary)) 22%,var(--surface)),color-mix(in srgb,var(--hb-edu-accent,var(--primary)) 38%,var(--surface-2)))}[data-theme=dark] .hb-edu-media-tile__embed{background:var(--surface-2)}[data-theme=dark] .hb-edu-card:hover{box-shadow:0 10px 28px rgba(0,0,0,.35);border-color:color-mix(in srgb,var(--primary) 30%,var(--border))}[data-theme=dark] .hb-overlay-actions{background:var(--surface);border-top:1px solid var(--border)}[data-theme=dark] .hb-table-wrap{background:var(--surface);border-color:var(--border)}[data-theme=dark] .hb-telemedicine-alert{background:var(--surface-2);color:var(--text-muted)}[data-theme=dark] .hb-telemedicine-alert--error{background:var(--status-danger-bg);color:var(--status-danger-fg)}[data-theme=dark] .hb-telemedicine-status-banner{background:var(--surface-2);color:var(--text-muted)}[data-theme=dark] .hb-telemedicine-status-banner span{color:var(--text-subtle)}[data-theme=dark] .hb-telemedicine-meta{color:var(--text-muted)}[data-theme=dark] .hb-telemedicine-chat-compose,[data-theme=dark] .hb-telemedicine-chat-panel{background:var(--surface);border-color:var(--border)}[data-theme=dark] .hb-telemedicine-chat-compose input{background:var(--input-bg);color:var(--text);border-color:var(--border)}[data-theme=dark] .hb-telemedicine-chat-bubble{background:var(--surface-2);color:var(--text)}[data-theme=dark] .hb-telemedicine-controls{background:linear-gradient(transparent,var(--surface) 30%)}[data-theme=dark] .hb-telemedicine-chat-toggle{background:var(--surface);border-color:var(--border);color:var(--text)}[data-theme=dark] .hb-chip-filter:hover:not(.is-active){background:var(--surface);border-color:color-mix(in srgb,var(--primary) 35%,var(--border))}[data-theme=dark] .hb-chip-filter--outline.is-active{background:color-mix(in srgb,var(--chip-active-bg,var(--primary)) 18%,var(--surface))}.hb-rx-med-item{padding:12px 14px;background:var(--surface-2);border-radius:10px;border:1px solid var(--border);border-left:4px solid var(--rx-accent,var(--primary))}.hb-rx-med-item--compact{padding:10px 12px}.hb-rx-add-panel{padding:14px;background:color-mix(in srgb,var(--color-success) 8%,var(--surface));border-radius:12px;border:1px solid color-mix(in srgb,var(--color-success) 28%,var(--border))}.hb-rx-add-panel-title{font-weight:700;font-size:14px;color:var(--status-success-fg);margin-bottom:12px}[data-theme=dark] .hb-rx-add-panel{background:color-mix(in srgb,var(--color-success) 12%,var(--surface-2));border-color:color-mix(in srgb,var(--color-success) 35%,var(--border))}.hb-rx-review-panel{padding:14px;background:var(--surface-2);border-radius:12;border:1px solid var(--border);margin-bottom:14px;font-size:14px;color:var(--text)}.hb-rx-card{padding:14px 16px}.hb-rx-card,.hb-rx-doses-panel{background:var(--surface);border-radius:12px;border:1px solid var(--border)}.hb-rx-doses-panel{overflow:hidden}.hb-rx-dose-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid var(--border)}.hb-rx-dose-row:first-child{border-top:none}.hb-rx-modal-backdrop{position:fixed;inset:0;background:var(--overlay);display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px}.hb-rx-modal{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;width:100%;max-width:400px;color:var(--text);box-shadow:var(--shadow-xl)}.hb-alert-error{padding:10px 12px;background:var(--status-danger-bg);color:var(--status-danger-fg);border-radius:8px;margin-bottom:12px;font-size:13px}.hb-alert-success{padding:10px 14px;background:var(--status-success-bg);color:var(--status-success-fg);border-radius:10px;margin-bottom:12px;font-size:13px}.hb-btn-danger-outline{color:var(--status-danger-fg)!important;border-color:color-mix(in srgb,var(--status-danger-fg) 35%,var(--border))!important}.hb-btn-success{background:var(--gradient-healing)!important;color:#fff!important}.hb-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:4px;color:var(--text)}.hb-field-input{width:100%;padding:10px 12px;margin-bottom:12px;border-radius:8px;border:1px solid var(--border);font-size:14px;box-sizing:border-box;background:var(--input-bg);color:var(--text);font-family:inherit}.hb-field-input textarea::placeholder,.hb-field-input::placeholder{color:var(--text-subtle)}textarea.hb-field-input{resize:vertical;min-height:72px}.hb-rx-patient-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px;margin-bottom:16px}.hb-rx-patient-stat{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 10px;text-align:center}.hb-rx-patient-stat-value{font-size:20px;font-weight:800;color:var(--primary);line-height:1.1}.hb-rx-patient-stat-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-top:4px}.hb-rx-patient-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:0;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.hb-rx-patient-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:color-mix(in srgb,var(--primary) 22%,var(--border))}.hb-rx-patient-card-head{padding:14px 16px 10px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 6%,var(--surface)),var(--surface))}.hb-rx-patient-card-body{padding:12px 16px}.hb-rx-patient-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--border);background:var(--surface-2)}.hb-rx-patient-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:var(--text-muted);margin-top:8px}.hb-rx-patient-meta span{display:inline-flex;align-items:center;gap:5px}.hb-rx-patient-med-preview{display:flex;flex-direction:column;gap:6px;margin-top:10px}.hb-rx-patient-med-line{display:flex;gap:8px;align-items:flex-start;font-size:13px}.hb-rx-patient-med-num{width:20px;height:20px;border-radius:6px;background:color-mix(in srgb,var(--primary) 12%,var(--surface-2));color:var(--primary);font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.hb-rx-dose-status{font-size:10px;font-weight:700;padding:2px 7px;border-radius:8px;text-transform:uppercase;letter-spacing:.03em}.hb-rx-dose-status--due{background:var(--status-warning-bg);color:var(--status-warning-fg)}.hb-rx-dose-status--taken{background:var(--status-success-bg);color:var(--status-success-fg)}.hb-rx-dose-status--missed{background:var(--status-danger-bg);color:var(--status-danger-fg)}.hb-rx-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px;margin-bottom:14px}.hb-rx-detail-item{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:10px 12px}.hb-rx-detail-item-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}.hb-rx-detail-item-value{font-size:13px;font-weight:650;color:var(--text)}@media (max-width:420px){.hb-rx-detail-grid,.hb-rx-patient-stats{grid-template-columns:1fr}}.hb-profile-overview{display:flex;flex-direction:column;gap:14px}.hb-profile-incomplete-banner{padding:12px 14px;background:var(--status-warning-bg);border:1px solid var(--status-warning-fg);border-radius:10px;font-size:13px;color:var(--status-warning-fg);line-height:1.5}.hb-profile-edit-row{display:flex;justify-content:flex-end}.hb-profile-edit-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;border:none;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.hb-profile-section{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.hb-profile-section-head{display:flex;align-items:center;gap:10px;padding:12px 16px;background:linear-gradient(90deg,color-mix(in srgb,var(--profile-accent,var(--primary)) 10%,transparent) 0,transparent 100%);border-bottom:1px solid var(--border)}.hb-profile-section-icon{width:32px;height:32px;border-radius:8px;background:color-mix(in srgb,var(--profile-accent,var(--primary)) 14%,transparent);display:flex;align-items:center;justify-content:center;color:var(--profile-accent,var(--primary));flex-shrink:0}.hb-profile-section-title{margin:0;font-size:14px;font-weight:700;color:var(--text)}.hb-profile-section-body{padding:14px 16px 16px}.hb-profile-field-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));grid-gap:16px 20px;gap:16px 20px}.hb-profile-field{min-width:0}.hb-profile-field--full{grid-column:1/-1}.hb-profile-field-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.hb-profile-field-value{font-size:14px;font-weight:500;color:var(--text);margin-top:4px;line-height:1.45;word-break:break-word;overflow-wrap:anywhere}.hb-profile-contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));grid-gap:12px;gap:12px;margin-bottom:16px}.hb-profile-contact-cards--single{margin-bottom:0}.hb-profile-contact-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:14px 16px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);text-decoration:none;color:inherit;transition:border-color .15s ease,box-shadow .15s ease}.hb-profile-contact-card:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));box-shadow:0 2px 8px color-mix(in srgb,var(--text) 6%,transparent)}.hb-profile-contact-icon{width:36px;height:36px;border-radius:10px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}.hb-profile-contact-text{min-width:0;flex:1 1}.hb-profile-contact-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.hb-profile-contact-value{margin-top:4px;font-size:14px;font-weight:600;color:var(--text);line-height:1.45;word-break:break-word;overflow-wrap:anywhere}.hb-profile-stack{display:flex;flex-direction:column;gap:14px}.hb-profile-care-team{display:flex;flex-direction:column;gap:8px}.hb-profile-care-member{padding:10px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px}.hb-profile-care-name{font-weight:600;font-size:14px;color:var(--text)}.hb-profile-care-role{font-size:12px;color:var(--text-muted);margin-top:2px}.hb-profile-form-contact{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));grid-gap:12px;gap:12px;margin-bottom:4px}@media (max-width:480px){.hb-profile-contact-cards,.hb-profile-field-grid,.hb-profile-form-contact{grid-template-columns:1fr}}[data-theme=dark] .hb-patient-shell,[data-theme=dark] .hb-portal-content,[data-theme=dark] .hb-portal-main,[data-theme=dark] .hb-portal-shell{background:var(--bg)!important;color:var(--text)}[data-theme=dark] .hb-portal-topbar{background:color-mix(in srgb,var(--surface) 92%,transparent);border-bottom-color:var(--border);color:var(--text)}[data-theme=dark] .hb-clock-date,[data-theme=dark] .hb-clock-time,[data-theme=dark] .hb-topbar-title,[data-theme=dark] .hb-topbar-user{color:var(--text)!important}[data-theme=dark] .hb-live-clock{color:var(--text-muted)!important}[data-theme=dark] .hb-icon-btn,[data-theme=dark] .hb-live-clock{background:var(--surface-2)!important;border-color:var(--border)!important}[data-theme=dark] .hb-icon-btn{color:var(--text)!important}[data-theme=dark] .hb-legacy-sidebar{background:var(--surface)!important;border-right-color:var(--border)!important;color:var(--text)!important}[data-theme=dark] .hb-nav-link{color:var(--text-muted)!important}[data-theme=dark] .hb-nav-link:hover{background:var(--surface-2)!important;color:var(--text)!important}[data-theme=dark] .hb-nav-link.active{background:color-mix(in srgb,var(--nav-accent,var(--primary)) 18%,transparent)!important;color:var(--text)!important}[data-theme=dark] .hb-nav-section-title{color:var(--text-subtle)!important}[data-theme=dark] .hb-alerts-inbox,[data-theme=dark] .hb-card,[data-theme=dark] .hb-stat-card{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text);box-shadow:var(--shadow-sm)}[data-theme=dark] .hb-stat-value{color:var(--text)!important}[data-theme=dark] input:not([type=checkbox]):not([type=radio]),[data-theme=dark] select,[data-theme=dark] textarea{background:var(--input-bg)!important;color:var(--text)!important;border-color:var(--border)!important}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:var(--text-subtle)!important}[data-theme=dark] option{background:var(--surface);color:var(--text)}[data-theme=dark] table{color:var(--text)}[data-theme=dark] th,[data-theme=dark] thead tr{background:var(--table-head)!important;color:var(--text-muted)!important;border-color:var(--border)!important}[data-theme=dark] td{border-color:var(--border)!important;color:var(--text)!important}[data-theme=dark] .hb-hub-tabs,[data-theme=dark] tbody tr:hover{background:var(--surface-2)!important}[data-theme=dark] .hb-hub-tabs{border-color:var(--border)!important}[data-theme=dark] .hb-hub-tab{color:var(--text-muted)}[data-theme=dark] .hb-hub-tab:hover{background:var(--surface)!important;color:var(--text)}[data-theme=dark] .hb-alerts-toolbar{background:linear-gradient(90deg,#3b2f14,#422006)!important;border-bottom-color:#78350f!important}[data-theme=dark] .hb-alerts-toolbar-label{color:#fcd34d!important}[data-theme=dark] .hb-alert-row{border-bottom-color:var(--border)!important}[data-theme=dark] .hb-alert-row:hover{background:var(--surface-2)!important}[data-theme=dark] .hb-alert-msg{color:var(--text-muted)!important}[data-theme=dark] .hb-chat{border-color:var(--border);background:#0f172a}[data-theme=dark] .hb-chat-aside{background:var(--surface);border-right-color:var(--border)}[data-theme=dark] .hb-chat-row{border-bottom-color:var(--border)}[data-theme=dark] .hb-chat-row:hover{background:var(--surface-2)}[data-theme=dark] .hb-chat-row.active{background:color-mix(in srgb,var(--role-primary,var(--primary)) 16%,var(--surface))}[data-theme=dark] .hb-chat-row-name{color:var(--text)}[data-theme=dark] .hb-chat-messages{background:#0b1220}[data-theme=dark] .hb-chat-compose,[data-theme=dark] .hb-chat-quick{background:var(--surface);border-top-color:var(--border)}[data-theme=dark] .hb-chat-compose textarea{background:var(--input-bg)!important;color:var(--text)!important;border-color:var(--border)!important}[data-theme=dark] .hb-chat-empty{background:var(--surface-2);color:var(--text-muted)}[data-theme=dark] .hb-edu-body,[data-theme=dark] .hb-edu-p{color:var(--text)}[data-theme=dark] .hb-edu-comments{border-top-color:var(--border)}[data-theme=dark] .hb-edu-comment{border-bottom-color:var(--border)}[data-theme=dark] .hb-edu-comment-author{color:var(--text)}[data-theme=dark] .hb-edu-comment-body{color:var(--text-muted)}[data-theme=dark] .hb-bottom-nav-end{border-left-color:#334155}[data-theme=dark] .hb-patient-bottom-nav{background:color-mix(in srgb,var(--surface) 94%,transparent)!important;border-top-color:var(--border)!important;box-shadow:0 -8px 28px rgba(0,0,0,.45)}[data-theme=dark] .hb-bottom-nav-item:hover .hb-bottom-nav-icon{background:var(--surface-2)}[data-theme=dark] .hb-profile-nudge{background:#3b2f14!important;border-color:#92400e!important;color:#fde68a!important}[data-theme=dark] .hb-logout-btn{color:#fca5a5!important}[data-theme=dark] .hb-logout-btn:hover{background:#450a0a!important}[data-theme=dark] .hb-patient-shell [style*="background: #fff"],[data-theme=dark] .hb-patient-shell [style*="background: #ffffff"],[data-theme=dark] .hb-patient-shell [style*="background:#fff"],[data-theme=dark] .hb-patient-shell [style*="background:#ffffff"],[data-theme=dark] .hb-portal-content [style*="background: #fff"],[data-theme=dark] .hb-portal-content [style*="background: #ffffff"],[data-theme=dark] .hb-portal-content [style*="background: rgb(255, 255, 255)"],[data-theme=dark] .hb-portal-content [style*="background:#fff"],[data-theme=dark] .hb-portal-content [style*="background:#ffffff"]{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)}[data-theme=dark] .hb-patient-shell [style*="background: #edf2f7"],[data-theme=dark] .hb-patient-shell [style*="background: #f1f5f9"],[data-theme=dark] .hb-patient-shell [style*="background: #f8fafc"],[data-theme=dark] .hb-patient-shell [style*="background:#edf2f7"],[data-theme=dark] .hb-patient-shell [style*="background:#f1f5f9"],[data-theme=dark] .hb-patient-shell [style*="background:#f8fafc"],[data-theme=dark] .hb-portal-content [style*="background: #edf2f7"],[data-theme=dark] .hb-portal-content [style*="background: #f1f5f9"],[data-theme=dark] .hb-portal-content [style*="background: #f3f4f6"],[data-theme=dark] .hb-portal-content [style*="background: #f8fafc"],[data-theme=dark] .hb-portal-content [style*="background: #f9fafb"],[data-theme=dark] .hb-portal-content [style*="background:#edf2f7"],[data-theme=dark] .hb-portal-content [style*="background:#f1f5f9"],[data-theme=dark] .hb-portal-content [style*="background:#f3f4f6"],[data-theme=dark] .hb-portal-content [style*="background:#f8fafc"],[data-theme=dark] .hb-portal-content [style*="background:#f9fafb"]{background:var(--surface-2)!important;color:var(--text)}[data-theme=dark] .hb-patient-shell [style*="color: #0C4A6E"],[data-theme=dark] .hb-patient-shell [style*="color: #0f172a"],[data-theme=dark] .hb-patient-shell [style*="color: #1e293b"],[data-theme=dark] .hb-patient-shell [style*="color:#0C4A6E"],[data-theme=dark] .hb-patient-shell [style*="color:#0f172a"],[data-theme=dark] .hb-patient-shell [style*="color:#1e293b"],[data-theme=dark] .hb-portal-content [style*="color: #0C4A6E"],[data-theme=dark] .hb-portal-content [style*="color: #0f172a"],[data-theme=dark] .hb-portal-content [style*="color: #111827"],[data-theme=dark] .hb-portal-content [style*="color: #1e293b"],[data-theme=dark] .hb-portal-content [style*="color: #1f2937"],[data-theme=dark] .hb-portal-content [style*="color:#0C4A6E"],[data-theme=dark] .hb-portal-content [style*="color:#0f172a"],[data-theme=dark] .hb-portal-content [style*="color:#111827"],[data-theme=dark] .hb-portal-content [style*="color:#1e293b"],[data-theme=dark] .hb-portal-content [style*="color:#1f2937"]{color:var(--text)!important}[data-theme=dark] .hb-patient-shell [style*="color: #475569"],[data-theme=dark] .hb-patient-shell [style*="color: #64748b"],[data-theme=dark] .hb-patient-shell [style*="color: #6b7280"],[data-theme=dark] .hb-patient-shell [style*="color: #94a3b8"],[data-theme=dark] .hb-patient-shell [style*="color:#475569"],[data-theme=dark] .hb-patient-shell [style*="color:#64748b"],[data-theme=dark] .hb-patient-shell [style*="color:#6b7280"],[data-theme=dark] .hb-patient-shell [style*="color:#94a3b8"],[data-theme=dark] .hb-portal-content [style*="color: #475569"],[data-theme=dark] .hb-portal-content [style*="color: #64748b"],[data-theme=dark] .hb-portal-content [style*="color: #6b7280"],[data-theme=dark] .hb-portal-content [style*="color: #718096"],[data-theme=dark] .hb-portal-content [style*="color: #94a3b8"],[data-theme=dark] .hb-portal-content [style*="color:#475569"],[data-theme=dark] .hb-portal-content [style*="color:#64748b"],[data-theme=dark] .hb-portal-content [style*="color:#6b7280"],[data-theme=dark] .hb-portal-content [style*="color:#718096"],[data-theme=dark] .hb-portal-content [style*="color:#94a3b8"]{color:var(--text-muted)!important}[data-theme=dark] .hb-patient-shell [style*="border: 1px solid #e2e8f0"],[data-theme=dark] .hb-patient-shell [style*="border: 1px solid #e5e7eb"],[data-theme=dark] .hb-patient-shell [style*="border:1px solid #e2e8f0"],[data-theme=dark] .hb-patient-shell [style*="border:1px solid #e5e7eb"],[data-theme=dark] .hb-portal-content [style*="border: 1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border: 1px solid #e5e7eb"],[data-theme=dark] .hb-portal-content [style*="border:1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border:1px solid #e5e7eb"]{border-color:var(--border)!important}[data-theme=dark] .hb-patient-shell [style*="background: #d1fae5"],[data-theme=dark] .hb-patient-shell [style*="background: #dbeafe"],[data-theme=dark] .hb-patient-shell [style*="background: #e0f2fe"],[data-theme=dark] .hb-patient-shell [style*="background: #ecfeff"],[data-theme=dark] .hb-patient-shell [style*="background: #f0f9ff"],[data-theme=dark] .hb-patient-shell [style*="background: #f0fdf4"],[data-theme=dark] .hb-patient-shell [style*="background: #fee2e2"],[data-theme=dark] .hb-patient-shell [style*="background: #fef2f2"],[data-theme=dark] .hb-patient-shell [style*="background: #fef3c7"],[data-theme=dark] .hb-patient-shell [style*="background: #fffbeb"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(236, 254, 255)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(240, 253, 244)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(241, 245, 249)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(248, 250, 252)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(249, 250, 251)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(254, 242, 242)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(255, 251, 235)"],[data-theme=dark] .hb-patient-shell [style*="background: rgb(255, 255, 255)"],[data-theme=dark] .hb-patient-shell [style*="background:#d1fae5"],[data-theme=dark] .hb-patient-shell [style*="background:#dbeafe"],[data-theme=dark] .hb-patient-shell [style*="background:#e0f2fe"],[data-theme=dark] .hb-patient-shell [style*="background:#ecfeff"],[data-theme=dark] .hb-patient-shell [style*="background:#f0f9ff"],[data-theme=dark] .hb-patient-shell [style*="background:#f0fdf4"],[data-theme=dark] .hb-patient-shell [style*="background:#fee2e2"],[data-theme=dark] .hb-patient-shell [style*="background:#fef2f2"],[data-theme=dark] .hb-patient-shell [style*="background:#fef3c7"],[data-theme=dark] .hb-patient-shell [style*="background:#fffbeb"],[data-theme=dark] .hb-patient-shell [style*="background:rgb(255, 255, 255)"],[data-theme=dark] .hb-portal-content [style*="background: #d1fae5"],[data-theme=dark] .hb-portal-content [style*="background: #dbeafe"],[data-theme=dark] .hb-portal-content [style*="background: #e0f2fe"],[data-theme=dark] .hb-portal-content [style*="background: #ecfeff"],[data-theme=dark] .hb-portal-content [style*="background: #ede9fe"],[data-theme=dark] .hb-portal-content [style*="background: #f0f9ff"],[data-theme=dark] .hb-portal-content [style*="background: #f0fdf4"],[data-theme=dark] .hb-portal-content [style*="background: #fee2e2"],[data-theme=dark] .hb-portal-content [style*="background: #fef2f2"],[data-theme=dark] .hb-portal-content [style*="background: #fef3c7"],[data-theme=dark] .hb-portal-content [style*="background: #fffbeb"],[data-theme=dark] .hb-portal-content [style*="background: rgb(236, 254, 255)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(240, 249, 255)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(240, 253, 244)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(241, 245, 249)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(243, 244, 246)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(248, 250, 252)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(249, 250, 251)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(254, 242, 242)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(255, 251, 235)"],[data-theme=dark] .hb-portal-content [style*="background: rgb(255, 255, 255)"],[data-theme=dark] .hb-portal-content [style*="background:#d1fae5"],[data-theme=dark] .hb-portal-content [style*="background:#dbeafe"],[data-theme=dark] .hb-portal-content [style*="background:#e0f2fe"],[data-theme=dark] .hb-portal-content [style*="background:#ecfeff"],[data-theme=dark] .hb-portal-content [style*="background:#ede9fe"],[data-theme=dark] .hb-portal-content [style*="background:#f0f9ff"],[data-theme=dark] .hb-portal-content [style*="background:#f0fdf4"],[data-theme=dark] .hb-portal-content [style*="background:#fee2e2"],[data-theme=dark] .hb-portal-content [style*="background:#fef2f2"],[data-theme=dark] .hb-portal-content [style*="background:#fef3c7"],[data-theme=dark] .hb-portal-content [style*="background:#fffbeb"],[data-theme=dark] .hb-portal-content [style*="background:rgb(255, 255, 255)"]{background:var(--surface-2)!important;color:var(--text)}[data-theme=dark] .hb-patient-shell [style*="color: #334155"],[data-theme=dark] .hb-patient-shell [style*="color: #374151"],[data-theme=dark] .hb-patient-shell [style*="color:#334155"],[data-theme=dark] .hb-patient-shell [style*="color:#374151"],[data-theme=dark] .hb-portal-content [style*="color: #334155"],[data-theme=dark] .hb-portal-content [style*="color: #374151"],[data-theme=dark] .hb-portal-content [style*="color:#334155"],[data-theme=dark] .hb-portal-content [style*="color:#374151"]{color:var(--text)!important}[data-theme=dark] .hb-patient-shell [style*="color: #dc2626"],[data-theme=dark] .hb-patient-shell [style*="color:#dc2626"],[data-theme=dark] .hb-portal-content [style*="color: #dc2626"],[data-theme=dark] .hb-portal-content [style*="color:#dc2626"]{color:var(--status-danger-fg)!important}[data-theme=dark] .hb-patient-shell [style*="color: #0369a1"],[data-theme=dark] .hb-patient-shell [style*="color: #0e7490"],[data-theme=dark] .hb-patient-shell [style*="color:#0369a1"],[data-theme=dark] .hb-patient-shell [style*="color:#0e7490"],[data-theme=dark] .hb-portal-content [style*="color: #0369a1"],[data-theme=dark] .hb-portal-content [style*="color: #0e7490"],[data-theme=dark] .hb-portal-content [style*="color:#0369a1"],[data-theme=dark] .hb-portal-content [style*="color:#0e7490"]{color:var(--status-info-fg)!important}[data-theme=dark] .hb-patient-shell [style*="color: #166534"],[data-theme=dark] .hb-patient-shell [style*="color:#166534"],[data-theme=dark] .hb-portal-content [style*="color: #166534"],[data-theme=dark] .hb-portal-content [style*="color:#166534"]{color:var(--status-success-fg)!important}[data-theme=dark] .hb-patient-shell [style*="color: #92400e"],[data-theme=dark] .hb-patient-shell [style*="color:#92400e"],[data-theme=dark] .hb-portal-content [style*="color: #92400e"],[data-theme=dark] .hb-portal-content [style*="color:#92400e"]{color:var(--status-warning-fg)!important}[data-theme=dark] .hb-patient-shell [style*="color: #1a4d8c"],[data-theme=dark] .hb-patient-shell [style*="color:#1a4d8c"],[data-theme=dark] .hb-portal-content [style*="color: #1a4d8c"],[data-theme=dark] .hb-portal-content [style*="color:#1a4d8c"]{color:var(--primary)!important}[data-theme=dark] .hb-patient-shell [style*="border-top: 1px solid #e2e8f0"],[data-theme=dark] .hb-patient-shell [style*="border-top:1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border-top: 1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border-top:1px solid #e2e8f0"]{border-top-color:var(--border)!important}[data-theme=dark] .hb-patient-shell [style*="border-bottom: 1px solid #e2e8f0"],[data-theme=dark] .hb-patient-shell [style*="border-bottom: 1px solid #e5e7eb"],[data-theme=dark] .hb-patient-shell [style*="border-bottom:1px solid #e2e8f0"],[data-theme=dark] .hb-patient-shell [style*="border-bottom:1px solid #e5e7eb"],[data-theme=dark] .hb-portal-content [style*="border-bottom: 1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border-bottom: 1px solid #e5e7eb"],[data-theme=dark] .hb-portal-content [style*="border-bottom:1px solid #e2e8f0"],[data-theme=dark] .hb-portal-content [style*="border-bottom:1px solid #e5e7eb"]{border-bottom-color:var(--border)!important}[data-theme=dark] .hb-patient-shell [style*="rgba(255, 255, 255, 0.92)"],[data-theme=dark] .hb-patient-shell [style*="rgba(255,255,255,0.92)"],[data-theme=dark] .hb-portal-content [style*="rgba(255, 255, 255, 0.92)"],[data-theme=dark] .hb-portal-content [style*="rgba(255,255,255,0.92)"]{background:var(--pill-overlay-bg)!important;color:var(--pill-overlay-fg)!important}[data-theme=dark] .hb-patient-shell h1,[data-theme=dark] .hb-patient-shell h2,[data-theme=dark] .hb-patient-shell h3,[data-theme=dark] .hb-portal-content h1,[data-theme=dark] .hb-portal-content h2,[data-theme=dark] .hb-portal-content h3{color:var(--text)}[data-theme=dark] .hb-btn-secondary{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important}.hb-bottom-nav-item,.hb-icon-btn,.hb-logout-btn,.hb-nav-link,a.hb-btn,button.hb-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.hb-bottom-nav-item:active,.hb-icon-btn:active,.hb-nav-link:active{transform:scale(.97)}.hb-content-swap{animation:hbFadeIn .2s ease both}@media (prefers-reduced-motion:reduce){.hb-bottom-nav-item:active,.hb-chip-filter,.hb-content-swap,.hb-edu-card,.hb-fade-in,.hb-icon-btn:active,.hb-link-btn,.hb-nav-link:active,.hb-pressable,.hb-slide-up{animation:none!important;transform:none!important;transition:none!important}}@media (min-width:640px){.hb-chart-grid>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (min-width:1100px){.hb-chart-grid>div{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.hb-brand-loading{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--bg);color:var(--text);padding:24px}.hb-brand-loading .hb-page-loading{min-height:0;padding:0}.hb-brand-loading .hb-page-loading-inner{gap:10px;font-size:14px}.hb-portal-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10040;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}body.hb-drawer-open{overflow:hidden;overscroll-behavior:none}.hb-portal-sidebar-slot--drawer{position:fixed;top:0;left:0;bottom:0;z-index:10050;transform:translateX(-105%);transition:transform .22s ease;box-shadow:8px 0 32px rgba(15,23,42,.18);height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;width:min(300px,86vw);display:flex;flex-direction:column;overflow:hidden;touch-action:pan-y}.hb-portal-sidebar-slot--drawer.is-open{transform:translateX(0)}.hb-portal-sidebar-slot--drawer .hb-legacy-sidebar{height:100%!important;max-height:100%!important;min-height:0!important;width:100%!important;position:relative!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.hb-legacy-sidebar-nav{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:8px}.hb-portal-sidebar-slot--drawer .hb-legacy-sidebar-footer{flex-shrink:0;padding-bottom:max(12px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--border,#e5e7eb);background:var(--surface,#fff)}body.hb-drawer-open .hb-clinical-bottom-nav,body.hb-drawer-open .hb-patient-bottom-nav{visibility:hidden;pointer-events:none}.hb-clinical-bottom-nav{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%;max-width:100vw;height:calc(52px + env(safe-area-inset-bottom, 0px));padding:2px 6px max(2px,env(safe-area-inset-bottom));margin:0;background:rgba(255,255,255,.98);border-top:1px solid #e2e8f0;box-shadow:0 -2px 10px rgba(15,23,42,.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;justify-content:space-between;align-items:center;gap:2px;z-index:10000;transform:translateZ(0)}@supports (-webkit-touch-callout:none){input,select,textarea{font-size:max(16px,1em)}}.hb-clinical-bottom-nav .hb-bottom-nav-item[data-tone=patients] .hb-bottom-nav-icon{color:#0f766e}.hb-clinical-bottom-nav .hb-bottom-nav-item.active[data-tone=patients] .hb-bottom-nav-icon{background:#ccfbf1;color:#0f766e;box-shadow:0 2px 8px rgba(15,118,110,.18)}.hb-portal-shell--mobile{flex-direction:column}.hb-portal-shell--mobile .hb-portal-main{width:100%;min-height:0;padding-bottom:0}.hb-portal-shell--mobile .hb-portal-content{padding:12px 12px calc(56px + env(safe-area-inset-bottom, 0px));overflow-x:hidden;overflow-y:auto}@media (max-width:900px){.hb-patient-shell main{padding-bottom:calc(56px + env(safe-area-inset-bottom, 0px))}.hb-table-wrap{border-radius:10px;border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff)}.hb-overlay-actions{padding-bottom:calc(56px + env(safe-area-inset-bottom, 0px))}}@media (min-width:901px){.hb-clinical-bottom-nav,.hb-patient-bottom-nav{display:none!important}.hb-patient-shell main,.hb-portal-content{padding-bottom:20px}.hb-portal-shell--mobile{flex-direction:row}.hb-portal-shell--desktop .hb-portal-main{padding-bottom:0}.hb-portal-shell .hb-portal-drawer-backdrop,.hb-portal-shell--desktop .hb-clinical-bottom-nav{display:none!important}.hb-portal-shell .hb-portal-sidebar-slot--drawer{position:static;transform:none;box-shadow:none;height:100vh;height:100dvh}.hb-portal-shell .hb-portal-sidebar-slot--drawer .hb-legacy-sidebar{width:auto!important;min-height:100vh}.hb-patient-shell .hb-portal-sidebar-slot--drawer{position:fixed;transform:translateX(-105%);box-shadow:8px 0 32px rgba(15,23,42,.18);height:100vh;height:100dvh;width:min(300px,86vw)}.hb-patient-shell .hb-portal-sidebar-slot--drawer.is-open{transform:translateX(0)}.hb-patient-shell .hb-portal-drawer-backdrop{display:block}.hb-patient-shell main{position:relative;z-index:1;min-height:40vh}}@media (max-width:900px){.hb-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.hb-patient-shell .hb-table-wrap,.hb-patient-shell [style*=overflow],.hb-portal-content .hb-table-wrap,.hb-portal-content [style*=overflow]{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.hb-patient-shell main table,.hb-portal-content table,.hb-table-wrap table{display:table;width:max(100%,720px);min-width:720px}.hb-patient-shell main table td,.hb-patient-shell main table th,.hb-portal-content table td,.hb-portal-content table th{white-space:nowrap}.hb-portal-shell--mobile .hb-portal-content [style*="grid-template-columns: repeat(auto-fit"]{grid-template-columns:1fr!important}.hb-portal-shell--mobile .hb-chat{height:calc(100dvh - 200px);min-height:360px}.hb-legacy-stat-grid,.hb-portal-content>div>div[style*=grid],.hb-portal-shell--mobile [class*=StatGrid]{gap:10px}}[data-theme=dark] .hb-clinical-bottom-nav{background:rgba(15,23,42,.96);border-top-color:#1e293b;box-shadow:0 -8px 24px rgba(0,0,0,.35)}[data-theme=dark] .hb-brand-loading{background:var(--bg)}.hb-overlay-actions{position:-webkit-sticky;position:sticky;bottom:0;display:flex;gap:8px;flex-wrap:wrap;align-items:stretch;margin-top:16px;padding:12px 0 max(10px,env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--border);z-index:2}.hb-overlay-actions button{min-height:44px;touch-action:manipulation}@media (max-width:900px){.hb-row-actions{flex-wrap:nowrap;justify-content:flex-end}.hb-compact-table td,.hb-compact-table th{padding:10px 8px}}.hb-telemedicine-room{display:flex;flex-direction:column;gap:12px}.hb-telemedicine-alert{padding:12px;border-radius:10px;background:#f8fafc}.hb-telemedicine-alert--error{background:#fef2f2;color:#b91c1c}.hb-telemedicine-alert p{margin:0 0 8px}.hb-telemedicine-status-banner{margin:0;padding:10px 12px;border-radius:10px;background:#f1f5f9;color:#475569;font-size:13px}.hb-telemedicine-status-banner span{display:block;margin-top:4px;font-size:12px;color:#64748b}.hb-telemedicine-header-card{margin-bottom:0!important}.hb-telemedicine-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.hb-telemedicine-title{font-weight:700;font-size:18px;line-height:1.3}.hb-telemedicine-meta{font-size:13px;color:#64748b;margin-top:4px}.hb-telemedicine-meta-sep{margin:0 6px;opacity:.5}.hb-telemedicine-room-body{display:grid;grid-template-columns:1fr;grid-gap:12px;gap:12px;align-items:start}.hb-telemedicine-room-body--chat{grid-template-columns:1fr minmax(260px,320px)}.hb-telemedicine-remote-audio{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.hb-telemedicine-call{display:flex;flex-direction:column;gap:12px;min-width:0}.hb-telemedicine-stage{position:relative;border-radius:16px;overflow:hidden;background:#0f172a;min-height:min(58vh,540px);aspect-ratio:16/10}.hb-telemedicine-stage-top{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;background:linear-gradient(180deg,rgba(15,23,42,.72),transparent);pointer-events:none}.hb-telemedicine-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#e2e8f0;padding:4px 10px;border-radius:999px;background:rgba(15,23,42,.55);max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hb-telemedicine-live--on{color:#bbf7d0}.hb-telemedicine-live-dot{width:8px;height:8px;border-radius:50%;background:#fbbf24;flex-shrink:0;animation:hb-telemedicine-pulse 1.4s ease-in-out infinite}.hb-telemedicine-live--on .hb-telemedicine-live-dot{background:#22c55e}@keyframes hb-telemedicine-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.92)}}.hb-telemedicine-stage-name{font-size:13px;font-weight:600;color:#f8fafc;text-shadow:0 1px 2px rgba(0,0,0,.45)}.hb-telemedicine-video{width:100%;display:block;transform:translateZ(0);-webkit-transform:translateZ(0)}.hb-telemedicine-video--remote{height:100%;min-height:inherit;object-fit:cover}.hb-telemedicine-waiting{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#94a3b8;font-size:14px;background:rgba(15,23,42,.35);pointer-events:none}.hb-telemedicine-call[data-hb-connected="1"] .hb-telemedicine-waiting{display:none}.hb-telemedicine-pip{position:absolute;bottom:14px;right:14px;z-index:4;width:min(32%,210px);aspect-ratio:3/4;border-radius:12px;overflow:hidden;border:2px solid rgba(255,255,255,.9);box-shadow:0 10px 28px rgba(0,0,0,.45);background:#1e293b}.hb-telemedicine-pip-label{position:absolute;top:6px;left:8px;z-index:2;font-size:10px;font-weight:600;color:#f8fafc;text-shadow:0 1px 2px rgba(0,0,0,.5)}.hb-telemedicine-video--local{width:100%;height:100%;object-fit:cover}.hb-telemedicine-video-off{position:absolute;inset:0;background:#1e293b;display:flex;align-items:center;justify-content:center;color:#94a3b8}.hb-telemedicine-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}.hb-telemedicine-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border-radius:12px;border:none;cursor:pointer;font-weight:600;font-size:13px;background:#0f172a;color:#fff;min-width:44px;min-height:44px;touch-action:manipulation}.hb-telemedicine-btn--off{background:#dc2626}.hb-telemedicine-btn span{display:none}.hb-telemedicine-chat{position:relative;min-width:0}.hb-telemedicine-chat-toggle{display:none}.hb-telemedicine-chat-panel{display:flex;flex-direction:column;height:min(58vh,540px);min-height:320px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden}.hb-telemedicine-chat-header{padding:12px 14px;border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:2px}.hb-telemedicine-chat-header strong{font-size:14px}.hb-telemedicine-chat-hint{font-size:11px;color:#64748b}.hb-telemedicine-chat-messages{flex:1 1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch}.hb-telemedicine-chat-empty{margin:auto;text-align:center;font-size:12px;color:#94a3b8;max-width:220px}.hb-telemedicine-chat-bubble{max-width:88%;padding:8px 10px;border-radius:12px 12px 12px 4px;background:#f1f5f9;font-size:13px;line-height:1.4;align-self:flex-start}.hb-telemedicine-chat-bubble--mine{align-self:flex-end;background:#0d9488;color:#fff;border-radius:12px 12px 4px 12px}.hb-telemedicine-chat-bubble time{display:block;margin-top:4px;font-size:10px;opacity:.75}.hb-telemedicine-chat-compose{display:flex;gap:8px;padding:10px;border-top:1px solid #e2e8f0}.hb-telemedicine-chat-compose input{flex:1 1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-size:14px}.hb-telemedicine-chat-badge{margin-left:6px;background:#dc2626;color:#fff;font-size:11px;padding:1px 6px;border-radius:999px}.hb-telemedicine-call[data-hb-busy="1"]{padding-bottom:max(4px,env(safe-area-inset-bottom,0px))}@media (min-width:640px){.hb-telemedicine-btn span{display:inline}}@media (max-width:900px){.hb-telemedicine-room-body--chat{grid-template-columns:1fr}.hb-telemedicine-chat-panel{display:none}.hb-telemedicine-chat--open .hb-telemedicine-chat-panel{display:flex}.hb-telemedicine-stage{min-height:min(50vh,420px);aspect-ratio:auto}.hb-telemedicine-pip{width:min(38%,160px)}.hb-telemedicine-chat-toggle{display:inline-flex;align-items:center;margin-bottom:8px;padding:8px 14px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;font-weight:600;font-size:13px;cursor:pointer}.hb-telemedicine-chat-panel{height:min(42vh,360px);min-height:240px}.hb-telemedicine-controls{position:-webkit-sticky;position:sticky;bottom:0;z-index:2;background:linear-gradient(transparent,#fff 30%);padding-top:10px}}@media (min-width:901px){.hb-telemedicine-call:-webkit-full-screen{padding:16px;background:#0f172a;min-height:100vh}.hb-telemedicine-call:-webkit-full-screen,.hb-telemedicine-call:fullscreen{padding:16px;background:#0f172a;min-height:100vh}.hb-telemedicine-call:-webkit-full-screen .hb-telemedicine-stage{min-height:calc(100vh - 100px);max-height:calc(100vh - 100px);aspect-ratio:auto}.hb-telemedicine-call:-webkit-full-screen .hb-telemedicine-stage,.hb-telemedicine-call:fullscreen .hb-telemedicine-stage{min-height:calc(100vh - 100px);max-height:calc(100vh - 100px);aspect-ratio:auto}}