:root{--background:#fff;--foreground:#0f172a;--runtime-brand-primary:#1e3a5f;--runtime-brand-primary-foreground:#fff;--runtime-brand-secondary:#0ea5e9;--runtime-brand-accent:#f8fafc;--emr-app-background:#f8fafc;--emr-surface:#fff;--emr-surface-muted:#f8fafc;--emr-surface-subtle:#f1f5f9;--emr-text:#0f172a;--emr-text-subtle:#334155;--emr-text-secondary:#475569;--emr-text-muted:#64748b;--emr-text-faint:#94a3b8;--emr-border:#e2e8f0;--emr-border-strong:#cbd5e1;--emr-control-bg:#fff;--emr-control-border:#cbd5e1;--emr-info-surface:#eff6ff;--emr-info-surface-strong:#dbeafe;--emr-info-text:#1d4ed8;--emr-success-surface:#f0fdf4;--emr-success-surface-strong:#dcfce7;--emr-success-text:#166534;--emr-warning-surface:#fffbeb;--emr-warning-surface-strong:#fef3c7;--emr-warning-text:#92400e;--emr-danger-surface:#fef2f2;--emr-danger-surface-strong:#fee2e2;--emr-danger-text:#991b1b}html[data-portal-theme=dark],.portal-shell-root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#0f172a;--foreground:#e2e8f0;--runtime-brand-primary:#0f172a;--runtime-brand-secondary:#38bdf8;--runtime-brand-accent:#0f172a;--emr-app-background:#0f172a;--emr-surface:#172033;--emr-surface-muted:#1e293b;--emr-surface-subtle:#263449;--emr-text:#f8fafc;--emr-text-subtle:#e2e8f0;--emr-text-secondary:#d7e0ec;--emr-text-muted:#cbd5e1;--emr-text-faint:#aebdcd;--emr-border:#334155;--emr-border-strong:#475569;--emr-control-bg:#0f172a;--emr-control-border:#475569;--emr-info-surface:#172554;--emr-info-surface-strong:#1e3a8a;--emr-info-text:#bfdbfe;--emr-success-surface:#052e1d;--emr-success-surface-strong:#064e3b;--emr-success-text:#bbf7d0;--emr-warning-surface:#451a03;--emr-warning-surface-strong:#78350f;--emr-warning-text:#fde68a;--emr-danger-surface:#450a0a;--emr-danger-surface-strong:#7f1d1d;--emr-danger-text:#fecaca}*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%}body{background:var(--background);color:var(--foreground);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.5;overflow-x:hidden}button,input,select,textarea{font:inherit}a{color:inherit}:focus-visible{outline:3px solid var(--runtime-brand-secondary);outline-offset:2px}button,[role=button],.portal-nav-link,.portal-card-action-link{min-height:40px}button,a,input,select,textarea,summary{touch-action:manipulation}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip-link{z-index:9999;color:#fff;background:#0f172a;border-radius:10px;padding:10px 14px;font-weight:800;text-decoration:none;transition:transform .15s;position:fixed;top:12px;left:12px;transform:translateY(-140%)}.skip-link:focus-visible{transform:translateY(0)}.landing-page{background:radial-gradient(circle at 0 0,#0ea5e929,#0000 34%),linear-gradient(135deg,#f8fafc,#eef2ff);align-content:center;gap:28px;min-height:100vh;padding:40px;display:grid}.landing-hero{background:#ffffffdb;border:1px solid #94a3b85c;border-radius:28px;width:min(960px,100%);padding:clamp(28px,5vw,56px);box-shadow:0 30px 80px #0f172a1f}.landing-hero h1{color:#0f172a;letter-spacing:-.05em;max-width:820px;margin:10px 0 18px;font-size:clamp(32px,6vw,62px);line-height:1.02}.landing-hero p{color:#475569;max-width:760px;font-size:clamp(16px,2vw,19px)}.landing-actions{flex-wrap:wrap;gap:12px;margin-top:28px;display:flex}.primary-action,.secondary-action{border-radius:999px;align-items:center;min-height:46px;padding:12px 18px;font-weight:900;text-decoration:none;display:inline-flex}.primary-action{color:#fff;background:#1e3a5f}.secondary-action{color:#1e3a5f;background:#fff;border:1px solid #cbd5e1}.landing-boundary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:min(960px,100%);display:grid}.landing-boundary-grid div{background:#ffffffc7;border:1px solid #94a3b852;border-radius:18px;gap:6px;padding:18px;display:grid}.landing-boundary-grid strong{color:#0f172a;font-size:15px}.landing-boundary-grid span{color:#475569;font-size:13px}.emr-theme-scope{background:var(--emr-app-background);color:var(--emr-text)}.portal-theme-surface,.portal-card{background:var(--emr-surface)!important;border-color:var(--emr-border)!important;color:var(--emr-text)!important}.portal-theme-surface-muted{background:var(--emr-surface-muted)!important;border-color:var(--emr-border)!important;color:var(--emr-text)!important}.portal-theme-text{color:var(--emr-text)!important}.portal-theme-muted{color:var(--emr-text-muted)!important}.portal-theme-control{background:var(--emr-control-bg);border:1px solid var(--emr-control-border);color:var(--emr-text);border-radius:10px;width:100%;padding:10px 12px}.portal-shell-root{background:var(--emr-app-background);min-height:100vh}.portal-sidebar{z-index:40;background:var(--runtime-brand-primary);height:100dvh;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom);flex-direction:column;transition:width .2s,transform .2s,box-shadow .2s;display:flex;position:fixed;inset:0 auto 0 0;overflow:hidden}.portal-sidebar-brand{border-bottom:1px solid #ffffff24;align-items:center;gap:10px;padding:18px 14px 14px;display:flex}.portal-brand-lockup,.portal-patient-summary,.portal-nav-link{align-items:center;min-width:0;display:flex}.portal-brand-lockup{gap:10px}.portal-brand-mark{background:var(--runtime-brand-secondary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex;overflow:hidden}.portal-brand-text,.portal-patient-copy,.portal-topbar-copy{min-width:0}.portal-brand-title,.portal-patient-name,.portal-topbar-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.portal-brand-title{color:#fff;font-size:15px;font-weight:800;line-height:1.2}.portal-brand-subtitle,.portal-patient-role,.portal-topbar-subtitle{text-overflow:ellipsis;white-space:nowrap;color:#cbd5e1;font-size:11px;overflow:hidden}.portal-sidebar-icon-button,.portal-menu-toggle{cursor:pointer;border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.portal-sidebar-icon-button{color:#fff;background:0 0;border:1px solid #ffffff38;flex-shrink:0;width:36px;height:36px}.portal-nav{-webkit-overflow-scrolling:touch;flex:1;min-height:0;padding:12px 10px;overflow-y:auto}.portal-nav-group{margin-bottom:14px}.portal-nav-group-label{color:#ffffff94;letter-spacing:.06em;text-transform:uppercase;padding:8px 10px 6px;font-size:11px;font-weight:800}.portal-nav-link{color:#cbd5e1;border-left:3px solid #0000;border-radius:10px;gap:10px;min-height:40px;margin-bottom:3px;padding:9px 11px;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.portal-nav-link:hover,.portal-nav-link:focus-visible{color:#fff;outline-offset:2px;background:#ffffff1f;outline:2px solid #ffffff4d}.portal-nav-link-active{border-left-color:var(--runtime-brand-secondary);color:#fff;background:#ffffff29;font-weight:800}.portal-nav-icon{text-align:center;flex-shrink:0;width:22px;font-size:15px}.portal-nav-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.portal-sidebar-footer{padding:14px 14px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #ffffff24;flex-shrink:0}.portal-patient-summary{gap:10px}.portal-patient-avatar{color:#fff;background:#ffffff24;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:900;display:flex}.portal-patient-name{color:#fff;font-size:12px;font-weight:800}.portal-patient-role{color:#cbd5e1}.portal-sign-out-button{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #ffffff52;border-radius:7px;justify-content:center;align-items:center;width:100%;margin-top:12px;padding:7px 14px;font-size:13px;text-decoration:none;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.portal-sign-out-button:hover,.portal-sign-out-button:focus-visible{background:#ffffff2e;border-color:#ffffff8a;outline:none;box-shadow:0 0 0 3px #0ea5e93d}.portal-shell-overlay{z-index:35;background:#0f172a80;border:0;position:fixed;inset:0}.portal-shell-main{flex-direction:column;min-width:0;min-height:100vh;transition:margin-left .2s;display:flex}.portal-topbar{z-index:30;border-bottom:1px solid var(--emr-border);background:color-mix(in srgb, var(--emr-surface) 94%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);align-items:center;gap:14px;min-width:0;padding:12px 20px;display:flex;position:sticky;top:0}.portal-menu-toggle{border:1px solid var(--emr-border-strong);background:var(--emr-surface);width:38px;height:38px;color:var(--runtime-brand-primary);flex-shrink:0;font-weight:900}.portal-topbar-copy{flex:1}.portal-topbar-title{color:var(--emr-text);font-size:15px;font-weight:900}.portal-topbar-subtitle{color:var(--emr-text-muted)}.portal-topbar-signout .portal-sign-out-button{background:var(--emr-surface);border-color:var(--emr-border-strong);width:auto;color:var(--emr-text-subtle);margin-top:0}.portal-shell-content{flex:1;min-width:0;padding:24px;overflow-x:clip}.portal-shell-page{width:min(100%,1120px);min-width:0;margin:0 auto}.portal-page-heading{margin-bottom:24px}.portal-eyebrow{color:var(--runtime-brand-secondary);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:900}.portal-page-heading h1{color:var(--emr-text);margin:4px 0 8px;font-size:clamp(24px,4vw,34px);line-height:1.1}.portal-page-heading p:not(.portal-eyebrow){color:var(--emr-text-muted);max-width:760px;font-size:15px}.portal-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.portal-card{border:1px solid var(--emr-border);overflow-wrap:anywhere;border-radius:12px;padding:20px}.portal-card-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.portal-card-header h2,.portal-card-header h3{color:var(--emr-text);font-size:16px;font-weight:900}.portal-card-header p,.portal-card-note{color:var(--emr-text-muted);font-size:12px}.portal-card-header a{color:var(--runtime-brand-secondary);white-space:nowrap;font-size:12px;font-weight:900;text-decoration:none}.portal-list-item{background:var(--emr-surface-muted);border-radius:8px;gap:3px;margin-bottom:8px;padding:10px 12px;display:grid}.portal-list-item strong{color:var(--emr-text);font-size:13px}.portal-list-item span{color:var(--emr-text-muted);font-size:12px}.portal-list-item small{color:var(--emr-text-faint);font-size:11px}.portal-left-info{border-left:3px solid var(--runtime-brand-secondary)}.portal-left-warning{background:var(--emr-warning-surface);border-left:3px solid #f59e0b}.portal-left-danger{background:var(--emr-danger-surface);border-left:3px solid #ef4444}.portal-quick-access{background:var(--runtime-brand-primary)!important;color:#fff!important}.portal-quick-access h3{margin-bottom:14px}.portal-quick-access a{color:#fff;background:#ffffff1a;border-radius:8px;margin-bottom:8px;padding:10px 14px;font-size:14px;text-decoration:none;display:block}.portal-dashboard-status-row{justify-content:space-between;align-items:flex-start;gap:12px;min-width:0;display:flex}.portal-dashboard-status-copy{flex:12rem;gap:3px;min-width:0;display:grid}.portal-vitals-card{grid-column:span 2}.portal-vitals-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.portal-vitals-tile{text-align:center;background:var(--emr-surface-muted);border-radius:10px;padding:12px}.portal-vitals-icon{margin-bottom:4px;font-size:24px}.portal-vitals-value{color:var(--emr-text);font-size:18px;font-weight:900}.portal-vitals-value span{color:var(--emr-text-muted);font-size:12px;font-weight:500}.portal-vitals-label{color:var(--emr-text-faint);font-size:11px}.portal-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.portal-summary-tile{border:1px solid var(--emr-border);border-radius:12px;gap:3px;padding:16px;display:grid}.portal-summary-tile span{color:var(--emr-text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:900}.portal-summary-tile strong{color:var(--emr-text);font-size:15px}.portal-record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.portal-record-card{border:1px solid var(--emr-border);border-radius:12px;gap:10px;padding:16px;display:grid}.portal-record-card p{color:var(--emr-text-subtle)}.portal-card-row{justify-content:space-between;gap:12px;display:flex}.portal-card-row-primary{align-items:flex-start}.portal-card-eyebrow{color:var(--emr-text-muted);letter-spacing:.02em;text-transform:uppercase;font-size:11px;font-weight:800;display:block}.portal-card-title{color:var(--emr-text);font-size:15px;font-weight:900;line-height:1.35}.portal-empty-state{text-align:center;color:var(--emr-text-muted);padding:32px}.portal-endpoint-grid{flex-wrap:wrap;gap:10px;display:flex}.portal-endpoint-chip{border:1px solid var(--emr-border-strong);color:var(--emr-text-subtle);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;text-decoration:none}.portal-api-contract-card{margin-top:20px}.accessible-status-badge{white-space:nowrap;border:1px solid;border-radius:999px;align-items:center;gap:5px;padding:4px 9px;font-size:11px;font-weight:900;line-height:1.2;display:inline-flex}.accessible-status-badge:before{content:attr(data-status-symbol);flex:none;font-weight:900}.responsive-status-badge{background:var(--status-badge-bg,var(--emr-surface-subtle));border-color:var(--status-badge-border,currentColor);color:var(--status-badge-text,var(--emr-text-secondary));overflow-wrap:anywhere;text-align:center;white-space:normal;flex:0 auto;justify-content:center;min-inline-size:0;max-inline-size:min(14rem,46%)}.portal-shell-root[data-theme=dark] .responsive-status-badge{background:var(--status-badge-dark-bg,var(--emr-surface-subtle))!important;border-color:var(--status-badge-dark-border,currentColor)!important;color:var(--status-badge-dark-text,var(--emr-text))!important}.portal-utility-bar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.portal-utility-button,.portal-utility-link{border:1px solid var(--emr-border-strong);background:var(--emr-surface);color:var(--runtime-brand-primary);border-radius:999px;align-items:center;gap:6px;min-height:38px;padding:8px 12px;font-size:12px;font-weight:900;text-decoration:none;display:inline-flex}.portal-search-panel{background:var(--emr-surface);border:1px solid var(--emr-border-strong);z-index:45;border-radius:14px;width:560px;max-width:min(92vw,560px);padding:14px;position:fixed;top:66px;right:20px;box-shadow:0 18px 40px #0f172a29}.portal-search-panel label{color:var(--emr-text);margin-bottom:8px;font-size:13px;font-weight:900;display:block}.portal-search-panel input{margin-top:8px}.portal-search-panel .portal-theme-muted{margin-top:6px;font-size:12px}.portal-search-results{gap:8px;max-height:min(55dvh,420px);margin-top:12px;display:grid;overflow-y:auto}.portal-search-result{border:1px solid var(--emr-border);color:inherit;border-radius:10px;padding:10px 12px;text-decoration:none;display:block}.portal-search-result:hover,.portal-search-result:focus-visible{background:var(--emr-surface-subtle)}.portal-card-actions details{position:relative}.portal-card-actions summary{border:1px solid var(--emr-border-strong);cursor:pointer;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;list-style:none;display:inline-flex}.portal-card-actions summary::-webkit-details-marker{display:none}.portal-card-actions [role=menu]{background:var(--emr-surface);border:1px solid var(--emr-border-strong);z-index:20;border-radius:10px;gap:4px;min-width:180px;padding:6px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 28px #0f172a24}.portal-card-actions [role=menuitem]{color:var(--emr-text);border-radius:8px;padding:8px 10px;text-decoration:none}.portal-card-actions [role=menuitem]:hover,.portal-card-actions [role=menuitem]:focus-visible{background:var(--emr-surface-subtle)}@media (prefers-reduced-motion:reduce){.portal-sidebar,.portal-shell-main,.portal-nav-link{transition:none}}@media (max-width:1023px){.portal-topbar{gap:10px;padding:10px 14px}.portal-topbar-signout{display:none}.portal-shell-content{padding:18px 14px}.portal-utility-bar{flex-wrap:nowrap;flex:none;gap:6px}.portal-utility-link{display:none}.portal-utility-button{white-space:nowrap;min-height:36px;padding:7px 10px}.portal-search-panel{width:auto;max-width:none;top:62px;left:12px;right:12px}}@media (max-width:900px){.portal-dashboard-grid,.portal-summary-grid,.portal-record-grid{grid-template-columns:minmax(0,1fr)!important}.portal-dashboard-grid>*,.portal-summary-grid>*,.portal-record-grid>*{grid-column:auto!important}.landing-boundary-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:640px){.landing-page{padding:20px}.portal-shell-content{padding:16px 12px}.portal-vitals-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.portal-card-row,.portal-dashboard-status-row{flex-wrap:wrap;gap:8px}.responsive-status-badge{max-inline-size:100%}}@media (max-width:430px){.portal-topbar{padding:9px 10px}.portal-topbar-title{font-size:13px}.portal-topbar-subtitle{display:none}.portal-menu-toggle{width:36px;height:36px}}
