.patient-portal:not(:has(.success-state)) { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 12%, rgba(30,127,114,.16), transparent 30%), radial-gradient(circle at 92% 86%, rgba(245,158,11,.13), transparent 28%), linear-gradient(135deg, #eaf7f8 0%, #f8fbff 52%, #fff5e6 100%); }
.patient-portal::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(30,127,114,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,127,114,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.patient-portal:not(:has(.success-state)) .patient-portal-card { position: relative; border-color: rgba(30,127,114,.2); border-radius: 24px; box-shadow: 0 26px 70px rgba(15,42,74,.13); }
.patient-portal .product-form { gap: 1.15rem; }
.patient-portal .input-label { color: var(--navy); }
.patient-portal .product-form input, .patient-portal .product-form select, .patient-portal .product-form textarea { width: 100%; padding: .82rem .9rem; border: 1.5px solid #d7e7e7; border-radius: 11px; background: #fbfefd; color: var(--text); font: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.patient-portal .product-form textarea { resize: vertical; min-height: 92px; }
.patient-portal .product-form input:focus, .patient-portal .product-form select:focus, .patient-portal .product-form textarea:focus { outline: none; border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(30,127,114,.12); }
.patient-portal .product-form input[type="file"] { padding: .55rem; border-style: dashed; border-color: rgba(30,127,114,.42); background: #f2fbf8; color: var(--text-muted); cursor: pointer; }
.patient-portal .product-form input[type="file"]::file-selector-button { margin-right: .75rem; padding: .58rem .8rem; border: 0; border-radius: 8px; background: var(--teal); color: white; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.patient-portal .product-form input[type="file"]::file-selector-button:hover { background: #176b61; }
.patient-portal .product-form button[type="submit"] { min-height: 52px; margin-top: .35rem; background: linear-gradient(135deg, var(--teal) 0%, #12645a 100%); box-shadow: 0 14px 24px rgba(30,127,114,.2); }
.patient-portal .product-form button[type="submit"]:hover { box-shadow: 0 18px 30px rgba(30,127,114,.28); }
.patient-portal .self-registration-field-error { color: #b84b43; font-size: .75rem; font-weight: 700; }
.patient-portal .product-form [aria-invalid="true"] { border-color: #c9574e; box-shadow: 0 0 0 3px rgba(201,87,78,.12); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .input-label { display: block; margin-bottom: .2rem; color: #f3f7f6 !important; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card { background: #ffffff; color: #10233b; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card h2,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card .muted,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card label { color: #10233b; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card input { border-color: #cbd9db; background: #f8fbfc; color: #10233b; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card textarea { border-color: #cbd9db; background: #f8fbfc; color: #10233b; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-layout-register .auth-card .auth-switch { color: #576a80; }
.otp-resend-row { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .9rem; color: #576a80; font-size: .82rem; }
.otp-resend-row form { margin: 0; }.otp-resend-row button { color: #1e7f72; font-weight: 800; }
.terms-consent { display: grid; gap: .45rem; }
.terms-preview-button { width: fit-content; padding: 0; border: 0; background: transparent; color: #1e7f72; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.terms-preview-button:hover { color: #d97706; text-decoration: underline; }
.policy-dialog { width: min(100% - 2rem, 520px); padding: 1.5rem; border: 1px solid #d9e7e8; border-radius: 16px; background: #fff; color: #10233b; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.policy-dialog::backdrop { background: rgba(3,10,13,.65); }
.policy-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.policy-dialog h2 { margin: 0; color: #10233b; font-size: 1.25rem; }
.policy-dialog p { color: #576a80; font-size: .88rem; }
.policy-dialog-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef5f4; color: #174943; font-size: 1.3rem; cursor: pointer; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .policy-dialog { border-color: rgba(79,211,194,.24); background: #102a32; color: #f3f7f6; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .policy-dialog h2 { color: #f3f7f6; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .policy-dialog p { color: #a9bdc4; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .policy-dialog-close { background: rgba(79,211,194,.14); color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .policy-dialog .btn-secondary { border-color: rgba(255,255,255,.12); background: #0b2027; color: #f3f7f6; }
.hms-action-dialog { width: min(calc(100% - 2rem), 470px); max-width: none; max-height: min(90dvh, 560px); padding: 0; overflow: visible; border: 1px solid rgba(79,211,194,.24); border-radius: 20px; background: #102a32; color: #f3f7f6; box-shadow: 0 30px 90px rgba(0,0,0,.58); animation: hms-action-dialog-enter .18s ease-out both; }
.hms-action-dialog::backdrop { background: rgba(2,10,14,.74); backdrop-filter: blur(5px); }
.hms-action-dialog-card { display: grid; gap: 1rem; padding: 1.25rem 1.4rem 1.35rem; }
.hms-action-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.hms-action-dialog-brand { color: #4fd3c2; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.hms-action-dialog-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.04); color: #c0d0d3; font: inherit; font-size: 1.35rem; cursor: pointer; }
.hms-action-dialog-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(79,211,194,.26); border-radius: 14px; background: rgba(79,211,194,.12); color: #4fd3c2; font-family: Manrope, sans-serif; font-size: 1.25rem; font-weight: 900; }
.hms-action-dialog-title { margin: 0; color: #f3f7f6; font-family: Manrope, sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.hms-action-dialog-description { margin: -.45rem 0 .15rem; color: #b8c9ce; font-size: .92rem; line-height: 1.65; overflow-wrap: anywhere; }
.hms-action-dialog-fields { display: grid; gap: .8rem; }
.hms-action-dialog [hidden] { display: none !important; }
.hms-action-dialog-fields label { display: grid; gap: .4rem; color: #d2dfe1; font-size: .78rem; font-weight: 700; }
.hms-action-dialog-input { width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: #0b2027; color: #f3f7f6; font: inherit; font-size: .85rem; }
.hms-action-dialog-input:focus { border-color: #4fd3c2; outline: 2px solid rgba(79,211,194,.18); }
.hms-action-dialog-error { min-height: 1em; margin: 0; color: #ff9a91; font-size: .78rem; }
.hms-action-dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.hms-action-dialog-button { min-height: 42px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.hms-action-dialog-button:hover { transform: translateY(-1px); }
.hms-action-dialog-cancel { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #d2dfe1; }
.hms-action-dialog-accept { border-color: rgba(79,211,194,.4); background: linear-gradient(135deg, #4fd3c2, #2da99a); color: #082127; box-shadow: 0 8px 20px rgba(79,211,194,.16); }
.hms-action-dialog.is-danger .hms-action-dialog-icon { border-color: rgba(255,141,131,.3); background: rgba(255,141,131,.12); color: #ff9a91; }
.hms-action-dialog.is-danger .hms-action-dialog-accept { border-color: rgba(255,141,131,.38); background: linear-gradient(135deg, #ff9a91, #e36d66); color: #321312; box-shadow: 0 8px 20px rgba(227,109,102,.16); }
.hms-action-dialog-button:focus-visible, .hms-action-dialog-close:focus-visible { outline: 3px solid rgba(79,211,194,.72); outline-offset: 3px; }
.hms-action-dialog-actions.is-alert { justify-content: flex-end; }
@keyframes hms-action-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) { .hms-action-dialog-card { gap: .85rem; padding: 1rem 1.05rem 1.1rem; }.hms-action-dialog-description { font-size: .86rem; }.hms-action-dialog-actions { flex-direction: column-reverse; }.hms-action-dialog-button { width: 100%; } }
.role-switch-dialog { width: min(calc(100% - 2rem), 500px); padding: 0; overflow: hidden; border: 1px solid var(--workspace-border, rgba(255,255,255,.07)); border-radius: 20px; background: var(--workspace-card, #102a32); color: var(--workspace-ink, #f3f7f6); box-shadow: 0 30px 90px rgba(0,0,0,.58); animation: role-switch-enter .2s ease-out both; }
.role-switch-dialog::backdrop { background: rgba(2,10,14,.76); backdrop-filter: blur(5px); }
.role-switch-card { position: relative; display: grid; gap: 1rem; padding: 1.7rem 1.8rem 1.5rem; }
.role-switch-card::before { content: "!"; display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: .1rem; border: 1px solid rgba(226,149,79,.3); border-radius: 13px; background: rgba(226,149,79,.16); color: var(--workspace-amber, #e2954f); font-size: 1.25rem; font-weight: 900; }
.role-switch-card h2 { margin: 0; color: var(--workspace-ink, #f3f7f6); font-family: Manrope, sans-serif; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.role-switch-card p { max-width: 430px; margin: 0; color: var(--workspace-muted, #9bb0ba); font-size: .9rem; line-height: 1.6; }
.role-switch-card p strong { color: var(--workspace-ink, #f3f7f6); font-weight: 800; }
.role-switch-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: .2rem; padding-top: 1.1rem; border-top: 1px solid var(--workspace-border, rgba(255,255,255,.07)); }
.role-switch-actions .btn { min-height: 44px; padding: .72rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.role-switch-actions .btn-secondary { border-color: rgba(255,255,255,.12); background: #edf3f4; color: #17375d; }
.role-switch-actions .btn-secondary:hover { background: #fff; border-color: var(--workspace-teal, #4fd3c2); }
.role-switch-actions .btn-primary { border-color: rgba(226,149,79,.35); background: linear-gradient(135deg, #e2954f 0%, #c87535 100%); color: #fff; box-shadow: 0 10px 22px rgba(226,149,79,.2); }
@keyframes role-switch-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) { .role-switch-card { padding: 1.4rem 1.2rem 1.25rem; }.role-switch-actions { flex-direction: column-reverse; }.role-switch-actions .btn { width: 100%; text-align: center; } }
.otp-lockout-timer { margin: .8rem 0 0; padding: .7rem .85rem; border: 1px solid rgba(226,149,79,.35); border-radius: 9px; background: rgba(226,149,79,.12); color: #b96d2b; font-size: .84rem; text-align: center; }
.otp-lockout-timer strong { color: #8e4e1e; font-variant-numeric: tabular-nums; }
/* Hospital access panel and admission controls */
.hospital-access-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1rem 0 1.5rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(42,112,94,.14); border-radius: 14px; background: white; }.hospital-access-panel h2 { margin: .25rem 0; color: #174943; font-size: 1.1rem; }.hospital-access-panel p { margin: 0; font-size: .82rem; }.hospital-access-actions { display: flex; flex-wrap: wrap; gap: .55rem; }.hospital-access-actions .btn { padding: .65rem .9rem; font-size: .75rem; }
/* Patient admission summary and edit form */
.admission-summary { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 1.2rem; margin: 0 0 1.5rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(42,112,94,.14); border-radius: 15px; background: linear-gradient(120deg, #edf7ed, #fff7df); }.admission-summary p { margin: .45rem 0 0; color: #5d756f; font-size: .85rem; }.admission-status { display: block; margin-top: .45rem; color: #17574d; font-size: 1.05rem; }.admission-status-admitted { color: #b15c3d; }.admission-status-discharged { color: #648078; }.admission-location { display: grid; grid-template-columns: auto 1fr; gap: .25rem .7rem; align-content: center; padding-left: 1rem; border-left: 1px solid rgba(42,112,94,.16); }.admission-location span { color: #6a817b; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }.admission-location strong { color: #174943; }.admission-edit { margin-bottom: 1.7rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(42,112,94,.14); border-radius: 15px; background: #fff; }.admission-edit h2 { margin-top: .3rem; }.form-help { color: #70817a; font-size: .78rem; }.admission-form-page .form-section { background: rgba(255,255,255,.45); }
/* Homepage login and signup buttons */
.home-login-btn, .home-signup-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: .45rem .85rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.home-login-btn { border: 1px solid rgba(255,255,255,.5); color: white; }.home-login-btn:hover { background: rgba(255,255,255,.14); color: white; }.home-signup-btn { border: 1px solid #f2d28e; background: #f2d28e; color: #163e3a; }.home-signup-btn:hover { background: #ffe0a4; color: #163e3a; }
/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  --navy: #0f2a4a;
  --navy-deep: #081a2e;
  --teal: #1e7f72;
  --teal-strong: #0e8f82;
  --teal-light: #eafaf7;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fff3d9;
  --purple: #8b5cf6;
  --purple-light: #f3e8ff;
  --cyan: #06b6d4;
  --cyan-light: #cffafe;

  --bg: #f8fbff;
  --bg-gray: #f3f7fb;

  --text: #10233b;
  --text-muted: #576a80;
  --text-on-dark: #f3f6f8;
  --text-on-dark-muted: #a9bbcb;

  --border: #dfeaf5;
  --border-dark: #1c3a5e;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 26px;

  --shadow-card: 0 12px 30px rgba(15, 42, 74, 0.08), 0 2px 10px rgba(15, 42, 74, 0.05);
  --shadow-glow: 0 20px 45px rgba(30, 127, 114, 0.12);

  --container-w: 1180px;

  --fs-hero: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h3: 1.2rem;

  --gap-section: clamp(4rem, 3rem + 3vw, 6.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 127, 114, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.1), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(30, 127, 114, 0.18);
  color: var(--navy);
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: var(--white); }
h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--text-muted); }

h1 {
  background: linear-gradient(135deg, var(--navy) 0%, #123d68 38%, var(--teal-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--gap-section) 0; }
.section-gray { background: var(--bg-gray); }
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-lead {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
}
.section-lead-dark { color: var(--text-on-dark-muted); }

/* =========================================================================
  HMS workspace
  ========================================================================= */
.product-shell { 
  min-height: 100vh; 
  padding: 0 5vw 5rem; 
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 50%, #fff0f5 100%);
  position: relative;
  overflow: hidden;
}
.product-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 30%, rgba(139, 92, 246, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.08), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(30, 127, 114, 0.05), transparent 60%);
  pointer-events: none;
}
.product-header { max-width: 1180px; margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.product-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--navy); font-size: 1.1rem; font-weight: 700; }
.product-brand strong { color: var(--teal); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-back, .back-link, .text-link { color: var(--teal); font-weight: 700; font-size: .9rem; }
.product-back:hover, .back-link:hover, .text-link:hover { color: var(--amber-dark); }
.product-messages { max-width: 1180px; margin: 0 auto 1rem; }
.message { padding: .85rem 1rem; border-radius: 10px; font-weight: 600; background: #e9f8f1; color: #176447; transition: opacity .22s ease, transform .22s ease; }
.message.is-dismissing { opacity: 0; transform: translateY(-4px); }
.message-error, .inline-error { background: #fff0ef; color: #a63d38; }
.auth-layout { max-width: 1050px; min-height: calc(100vh - 88px); margin: 0 auto; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.auth-intro { padding: 2rem 0; }
.product-eyebrow, .card-kicker, .plan-label { display: block; color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-intro h1, .subscription-copy h1 { max-width: 600px; margin-top: 1rem; font-size: clamp(2.35rem, 4vw, 4.15rem); line-height: 1.05; }
.auth-intro > p, .subscription-copy > p { max-width: 520px; font-size: 1.08rem; }
.auth-feature { display: flex; align-items: flex-start; gap: 1rem; margin-top: 2rem; }
.auth-feature > span { color: var(--amber-dark); font-weight: 800; font-size: .8rem; padding-top: .2rem; }
.auth-feature strong, .auth-feature small { display: block; }
.auth-feature small { color: var(--text-muted); margin-top: .2rem; }
.trial-callout { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.7rem; padding: 1rem 1.2rem; border-left: 3px solid var(--amber); background: rgba(255,255,255,.75); box-shadow: var(--shadow-card); }
.trial-callout strong { font-size: 1.25rem; color: var(--navy); }
.trial-callout span { color: var(--text-muted); font-size: .9rem; }
.auth-card, .subscription-card { 
  padding: clamp(1.6rem, 3vw, 2.7rem); 
  border: 1px solid rgba(30, 127, 114, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 
    0 24px 60px rgba(15, 42, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent);
  pointer-events: none;
}
.auth-card h2, .subscription-card h2 { margin-top: .7rem; }
.muted { color: var(--text-muted); }
.product-form, .record-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.product-form label, .record-form label { display: grid; gap: .4rem; color: var(--navy); font-weight: 700; font-size: .85rem; }
.product-form input, .record-form input, .record-form select, .record-form textarea, .search-bar input { 
  width: 100%; 
  padding: .82rem .9rem; 
  border: 1.5px solid var(--border); 
  border-radius: 12px; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.98));
  color: var(--text); 
  font: inherit; 
  font-weight: 400;
  transition: all 0.3s var(--ease);
  box-shadow: inset 0 2px 4px rgba(15, 42, 74, 0.02);
}
.auth-frame-register .product-form textarea {
  width: 100%;
  min-height: 92px;
  padding: .82rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.98));
  color: var(--text);
  font: inherit;
  font-weight: 400;
  resize: vertical;
  transition: all 0.3s var(--ease);
  box-shadow: inset 0 2px 4px rgba(15, 42, 74, 0.02);
}
.product-form input:focus, .record-form input:focus, .record-form select:focus, .record-form textarea:focus, .search-bar input:focus { 
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 
    inset 0 2px 4px rgba(15, 42, 74, 0.02),
    0 0 0 3px rgba(30, 127, 114, 0.12),
    0 8px 20px rgba(30, 127, 114, 0.08);
}
.auth-frame-register .product-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: inset 0 2px 4px rgba(15, 42, 74, 0.02), 0 0 0 3px rgba(30, 127, 114, 0.12), 0 8px 20px rgba(30, 127, 114, 0.08);
}
.form-two, .form-three { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
[data-admission-fields][hidden] { display: none !important; }
[data-reception-fields][hidden], [data-self-registration-panel][hidden] { display: none !important; }
.form-three { grid-template-columns: repeat(3, 1fr); }
.auth-switch { margin: 1.4rem 0 0; text-align: center; font-size: .9rem; }
.auth-switch a { color: var(--teal); font-weight: 700; }
.admin-workspace-back:hover { color: var(--amber-dark) !important; }
.inline-error { padding: .7rem .85rem; border-radius: 8px; margin-top: 1rem; font-size: .88rem; }
/* Hospital workspace dashboard layout */
.workspace-header, .workspace-grid, .form-page, .subscription-page { max-width: 1180px; margin-left: auto; margin-right: auto; }
.workspace-header { display: flex; justify-content: space-between; align-items: end; padding: 3rem 0 2rem; }
.workspace-header h1, .form-page h1 { margin: .5rem 0 .25rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.workspace-actions { display: flex; align-items: center; gap: 1.2rem; }
.trial-badge { padding: .55rem .8rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber-dark); font-size: .8rem; font-weight: 800; }
.workspace-grid { display: grid; grid-template-columns: 1fr 270px; gap: 2rem; }
.workspace-main, .add-visit { background: rgba(255,255,255,.72); border: 1px solid rgba(15,42,74,.08); padding: clamp(1.3rem, 3vw, 2rem); border-radius: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading h2, .add-visit h2 { margin-top: .35rem; }
.search-bar { display: flex; gap: .7rem; margin: 1.5rem 0; }
.search-bar input { flex: 1; }
.search-result-label { font-size: .88rem; }
/* Patient list and patient detail layout */
.patient-list { border-top: 1px solid var(--border); }
.patient-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); transition: padding .2s var(--ease); }
.patient-row:hover { padding-left: .35rem; }
.patient-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: var(--teal-light); color: var(--teal); font-weight: 800; }
.patient-avatar-large { width: 64px; height: 64px; font-size: 1.5rem; }
.patient-summary { flex: 1; }.patient-summary strong, .patient-summary small { display: block; }.patient-summary small { color: var(--text-muted); margin-top: .2rem; }.patient-arrow { color: var(--teal); font-size: 1.2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }.empty-state h3 { margin: .8rem 0 .25rem; }.empty-icon { font-size: 2rem; color: var(--teal); }.empty-state.compact { padding: 2rem 1rem; }
.workspace-side { display: grid; align-content: start; gap: 1rem; }.metric-card, .side-panel, .patient-facts { padding: 1.5rem; border-radius: 15px; background: var(--navy); color: white; }.metric-label, .metric-note { display: block; color: #a9bbcb; font-size: .82rem; }.metric-card strong { display: block; margin: .6rem 0; font-size: 3rem; line-height: 1; }.side-panel { background: white; color: var(--text); border: 1px solid var(--border); }.side-panel h3 { margin-top: .7rem; }.side-panel p { font-size: .9rem; }
.form-page { padding: 2.7rem 0; }.form-page-heading { margin: 2rem 0; }.record-form { max-width: 900px; }.form-section { padding: 1.5rem 0; border-top: 1px solid var(--border); }.form-section h3 { margin-bottom: 1rem; }.record-form > label { max-width: 100%; }
.document-upload-card { margin-top: .5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); box-shadow: var(--shadow-card); }.document-upload-card h3 { margin-top: 0; color: var(--text); }.document-upload-card .form-help { margin: 0 0 .8rem; }.document-upload-card input[type="file"] { padding: .6rem; border-style: dashed; }
.document-upload-status { min-height: 1.2rem; margin-top: .7rem; color: var(--accent); font-size: .78rem; font-weight: 700; }
.document-upload-status.is-success { color: #79e0c9; }
.document-link-dialog { width: min(100% - 2rem, 460px); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.document-link-dialog::backdrop { background: rgba(3, 10, 13, .65); }
.document-link-dialog-card { display: grid; gap: .85rem; padding: 1.25rem; border: 0; color: inherit; }
.document-link-dialog-card .hms-documents-heading { margin: -1.25rem -1.25rem 0; }
.document-link-dialog-card label { display: grid; gap: .4rem; color: var(--text); font-size: .82rem; font-weight: 700; }
.document-link-dialog-card input { width: 100%; padding: .75rem .8rem; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); font: inherit; }
.document-link-feedback { min-height: 1.2rem; margin: 0; color: var(--accent); font-size: .78rem; font-weight: 700; }
.document-link-feedback.is-sending { color: var(--text-muted); }
.document-link-feedback.is-error { color: #ffb4ad; }
.document-link-dialog-card .card-kicker { margin-bottom: .2rem; color: var(--accent); }
.document-link-dialog-card h2 { margin: 0; color: var(--text); font-size: 1.15rem; }
.patient-profile { display: flex; align-items: center; gap: 1.2rem; padding: 2.5rem 0; }.patient-profile h1 { margin: .4rem 0 .2rem; }.detail-grid { display: grid; grid-template-columns: 1fr 290px; gap: 2rem; }.history-list { margin-top: 1rem; }.history-item { display: grid; grid-template-columns: 100px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--border); }.history-date { color: var(--teal); font-size: .85rem; font-weight: 800; }.history-item p { margin: .25rem 0; font-size: .9rem; }.prescription { display: inline-block; margin-top: .5rem; padding: .35rem .55rem; border-radius: 5px; color: #176447; background: #e9f8f1; font-size: .8rem; }.patient-facts { background: white; color: var(--text); border: 1px solid var(--border); }.patient-facts dl { margin-top: 1rem; }.patient-facts dt { margin-top: 1rem; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }.patient-facts dd { margin: .2rem 0 0; font-size: .9rem; }.add-visit { margin-top: 2rem; }.add-visit h2 { margin-bottom: 1rem; }
/* Subscription page and plan card */
.subscription-page { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 1fr minmax(390px, 780px); align-items: center; gap: 4rem; }.subscription-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.subscription-card ul { margin: 1.6rem 0; }.subscription-card li { padding: .75rem 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }.subscription-card li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: .6rem; }.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 .25rem; }.plan-price strong { color: var(--navy); font-size: 3rem; line-height: 1; }.plan-price span { color: var(--text-muted); }.payment-note { display: block; margin-top: 1rem; color: var(--text-muted); font-size: .72rem; line-height: 1.45; }
.payment-submission-card { width: 100%; max-width: 560px; justify-self: end; }.payment-submission-card h2 { margin: .6rem 0; }.dummy-qr-card { display: grid; justify-items: center; gap: .45rem; margin: 1.4rem 0; padding: 1.2rem; border: 1px dashed var(--teal); border-radius: 14px; background: #f2faf8; text-align: center; }.dummy-qr-card > span { color: var(--text-muted); font-size: .78rem; }.dummy-qr-art { display: grid; width: 132px; height: 132px; place-items: center; border: 8px solid white; outline: 1px solid var(--border); background-color: #e3efec; background-image: repeating-linear-gradient(0deg, transparent 0 9px, #39786f 9px 15px, transparent 15px 22px), repeating-linear-gradient(90deg, transparent 0 7px, #244f4a 7px 12px, transparent 12px 20px); }.dummy-qr-art span { padding: .35rem; background: white; color: #7d2f2f; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }.payment-claim-form { display: grid; gap: .6rem; }.payment-claim-form label { margin-top: .5rem; color: var(--navy); font-weight: 700; }.payment-claim-form input { width: 100%; min-height: 44px; padding: .65rem; border: 1px solid var(--border); border-radius: 8px; }.payment-claim-form small { margin-bottom: .75rem; color: var(--text-muted); line-height: 1.5; }.payment-claim-history { margin-top: 2rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: white; }.payment-claim-history h2 { font-size: 1rem; }.payment-claim-history p { margin: .55rem 0 0; font-size: .85rem; }
.header-login { color: var(--teal); font-size: .88rem; font-weight: 700; }

/* =========================================================================
   Modern Login Page Styles
   ========================================================================= */
.feature-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.12));
  flex-shrink: 0;
}

.auth-feature > span {
  padding-top: 0 !important;
  font-size: inherit !important;
  font-weight: normal !important;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.password-field { display: flex; align-items: stretch; }.password-field input { border-radius: 12px 0 0 12px; }.password-toggle { padding: 0 .8rem; border: 1.5px solid var(--border); border-left: 0; border-radius: 0 12px 12px 0; background: white; color: var(--teal); font-size: .78rem; font-weight: 700; cursor: pointer; }.password-toggle:hover { color: var(--amber-dark); }
.checkbox-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: .55rem !important; font-size: .82rem !important; font-weight: 500 !important; color: var(--text-muted) !important; }.checkbox-label input { width: auto !important; accent-color: var(--teal); }

.forgot-password-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  padding: 0.5rem 0;
  position: relative;
}

.forgot-password-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
}

.forgot-password-link:hover {
  color: var(--amber-dark);
}

.forgot-password-link:hover::after {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.auth-divider::after {
  background: linear-gradient(90deg, transparent, var(--border));
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

/* =========================================================================
   Forgot Password Page Styles
   ========================================================================= */
.forgot-password-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.password-reset-info {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.form-footer a:hover {
  color: var(--amber-dark);
}

/* Compact responsive layout for product and workspace pages */
@media (max-width: 800px) {
  .product-shell { padding: 0 20px 3rem; }
  .product-header { min-height: 72px; }
  .product-back { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; white-space: nowrap; }
  .auth-layout, .subscription-page, .workspace-grid, .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .auth-layout { min-height: auto; padding: 3rem 0; }
  .auth-intro h1, .subscription-copy h1 { font-size: 2.5rem; }
  .workspace-header { align-items: start; flex-direction: column; gap: 1rem; }
  .workspace-actions { width: 100%; justify-content: space-between; }
  .form-three { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading .btn { width: 100%; }
  .patient-profile { padding: 2rem 0; }
  .site-header .header-login { display: none; }
}
@media (max-width: 700px) { .subscription-plans { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-two { grid-template-columns: 1fr; }.search-bar { flex-direction: column; }.search-bar .btn { width: 100%; }.history-item { grid-template-columns: 1fr; gap: .25rem; }.auth-card, .subscription-card { padding: 1.3rem; } }

/* Shared authentication header and utility links */
.header-logout-form { margin: 0; }
.auth-header-links { display: inline-flex; align-items: center; gap: 1.25rem; }.doctor-auth-link { margin-top: .7rem; font-size: .82rem; }
.button-link { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
/* Product listing, testimonials, FAQ, and product detail pages */
.product-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product-showcase-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.product-showcase-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(15,42,74,.12); }
.product-showcase-card h3 { margin-top: 1.2rem; }
.product-showcase-card p { flex: 1; }
.product-price, .product-detail-price { display: block; margin: .5rem 0 1rem; color: var(--teal); font-weight: 800; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.testimonial-card { margin: 0; padding: 1.5rem; border-left: 3px solid var(--teal); background: white; box-shadow: var(--shadow-card); }
.testimonial-card blockquote { margin: 0 0 1.25rem; color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.testimonial-card figcaption strong, .testimonial-card figcaption span { display: block; }.testimonial-card figcaption span { color: var(--text-muted); font-size: .85rem; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; align-items: start; }
.faq-item { padding: 1.1rem 0; border-top: 1px solid var(--border); }.faq-item summary { cursor: pointer; color: var(--navy); font-weight: 700; }.faq-item p { margin: .8rem 0 0; }
.product-detail-page { min-height: calc(100vh - 88px); padding: clamp(4rem, 8vw, 8rem) 0; background: linear-gradient(135deg, #f0f7ff, #fff8eb); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 390px; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.product-detail-grid h1 { margin-top: 1rem; }.product-detail-lead { max-width: 650px; font-size: 1.25rem; }.product-detail-copy { max-width: 650px; margin: 2rem 0; }.product-detail-panel { padding: 1.7rem; border: 1px solid rgba(30,127,114,.14); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-card); }.product-detail-panel h2 { font-size: 1.3rem; }.product-detail-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }.product-detail-icon { display: grid; place-items: center; height: 160px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-light), var(--purple-light)); color: var(--teal); }.product-detail-icon svg { width: 50px; height: 50px; }.product-feature-list { display: grid; gap: 1rem; }.product-feature-list li { display: flex; gap: .75rem; color: var(--text-muted); font-size: .9rem; }.product-feature-list svg { flex: 0 0 auto; width: 18px; color: var(--teal); }.product-feature-list strong { display: block; color: var(--navy); margin-bottom: .15rem; }
.pricing-price small { color: var(--text-muted); font-size: .8rem; font-weight: 500; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, #f0f7ff, #fff8eb); }.error-page-inner { max-width: 650px; }.error-page h1 { margin-top: 1rem; }.error-page p { font-size: 1.1rem; margin-bottom: 1.75rem; }
.admin-visual-panel .auth-visual-image { background-image: url('../img/workspace-admin.avif'); background-position: center; }
.auth-shell { min-height: 100vh; padding: 0 24px 2rem; background: radial-gradient(circle at 15% 10%, rgba(112, 183, 194, .18), transparent 32%), linear-gradient(145deg, #eef5f7 0%, #f8f6f2 54%, #e9f0f7 100%); }.auth-shell .product-header { max-width: 1120px; min-height: 82px; }.auth-frame { width: min(100%, 1040px); min-height: min(700px, calc(100vh - 120px)); margin: 1rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); align-items: stretch; overflow: hidden; border: 1px solid rgba(24, 52, 67, .1); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: 0 28px 80px rgba(38, 64, 78, .16); }.auth-visual-panel { position: relative; min-height: 620px; overflow: hidden; color: white; background: #355d6c; }.auth-visual-image { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1200&q=85'); background-position: center; background-size: cover; transform: scale(1.02); }.doctor-visual-panel .auth-visual-image { background-image: url('https://images.unsplash.com/photo-1550831107-1553da8c8464?auto=format&fit=crop&w=1200&q=85'); background-position: center; }.auth-visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 61, 75, .12) 18%, rgba(18, 35, 47, .82) 100%); }.auth-visual-content { position: absolute; inset: auto 2.5rem 2.5rem; max-width: 470px; }.visual-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.4rem; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; background: rgba(255,255,255,.18); font-weight: 800; letter-spacing: .04em; }.auth-visual-content .product-eyebrow { color: #b8eff0; }.auth-visual-content h1 { margin: .75rem 0 1rem; color: white; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.03; }.auth-visual-content p { max-width: 42ch; color: rgba(255,255,255,.82); }.visual-status { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: .78rem; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8fe3d1; box-shadow: 0 0 0 4px rgba(143,227,209,.16); }.auth-frame .auth-card { display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding: clamp(2rem, 5vw, 4.2rem); border: 0; border-radius: 0; background: rgba(255,255,255,.94); box-shadow: none; }.auth-frame .auth-card::before, .auth-frame .auth-card::after { display: none; }.auth-frame .auth-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }.auth-frame .product-form { margin-top: 1.8rem; }.auth-frame .btn-primary { min-height: 50px; }.auth-frame-register .auth-card { min-height: 620px; }.auth-frame-register .auth-visual-panel { min-height: 620px; }.auth-header-links { display: inline-flex; align-items: center; gap: 1.25rem; }.doctor-auth-frame .auth-card { background: rgba(254, 254, 255, 0.96); }
/* Patient workflow toolbar and public registration portal */
.workflow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.7); }.inline-assignment { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 280px; }.inline-assignment select { min-width: 180px; flex: 1; padding: .82rem .9rem; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--text); font: inherit; }.patient-portal { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(135deg, #eef8ff, #fff5e8); }.patient-portal-card { width: min(100%, 620px); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-card); }.patient-portal-card h1 { margin-top: .8rem; }.success-state { text-align: center; }.success-state .feature-icon { margin: 0 auto 1rem; color: var(--teal); }
/* Patient reports and upload controls */
.report-panel { margin-top: 2rem; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.72); }.report-list { margin-top: 1rem; border-top: 1px solid var(--border); }.report-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); color: var(--text); }.report-row .module-icon { width: 38px; height: 38px; flex: 0 0 auto; }.report-row span:nth-child(2) { flex: 1; }.report-row strong, .report-row small { display: block; }.report-row small { margin-top: .2rem; color: var(--text-muted); }.report-upload { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }.report-upload input { min-width: 150px; flex: 1; padding: .72rem; border: 1px solid var(--border); border-radius: 9px; background: white; }
.prescription-history-actions { display: inline-flex; align-items: center; gap: 1rem; }
.prescription-history-actions form { margin: 0; }
.prescription-history-actions a,
.prescription-history-actions button { padding: 0; border: 0; background: none; color: var(--teal); font: inherit; text-decoration: none; cursor: pointer; }
.prescription-history-actions a:hover,
.prescription-history-actions button:hover { text-decoration: underline; }

/* Shared mobile layout overrides */
@media (max-width: 800px) {
  html, body { overflow-x: clip; }
  * { box-sizing: border-box; }
  img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
  .product-showcase-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .faq-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .main-nav { display: none; position: absolute; top: 72px; left: 20px; right: 20px; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-card); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .85rem; }
  .nav-toggle { display: flex; }
  .site-header .header-row { position: relative; }
  .site-header .header-actions .btn-primary { display: none; }
  .workflow-toolbar, .inline-assignment { align-items: stretch; flex-direction: column; }.inline-assignment select, .inline-assignment .btn, .workflow-toolbar > form { width: 100%; }.workflow-toolbar > form .btn { width: 100%; }
  .auth-shell { padding: 0 12px 1.5rem; }
  .auth-shell .product-header { min-height: 68px; flex-wrap: wrap; gap: .8rem; }
  .auth-shell .auth-header-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; max-width: 100%; }
  .auth-shell .product-back { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .75rem; white-space: nowrap; }
  .auth-frame { display: flex; flex-direction: column; grid-template-columns: none; width: min(100%, 100%); margin-top: .4rem; border-radius: 24px; }
  .auth-visual-panel, .auth-frame-register .auth-visual-panel { min-height: 210px; }
  .auth-visual-image { background-size: cover; background-position: center center; background-repeat: no-repeat; }
  .auth-visual-content { inset: auto 1.25rem 1.25rem; max-width: 100%; }
  .auth-visual-content h1 { max-width: 15ch; font-size: 1.75rem; }
  .auth-visual-content p { display: none; }
  .visual-mark { width: 34px; height: 34px; margin-bottom: .8rem; font-size: .75rem; }
  .auth-frame .auth-card, .auth-frame-register .auth-card { min-height: auto; padding: 2rem 1.25rem 2.2rem; }
  .auth-header-links { gap: .7rem; }
  .auth-header-links .product-back:first-child { display: none; }
  .product-form, .record-form, .workspace-patient-fields, .workspace-emergency-fields { gap: .7rem; }
  .form-two, .form-three { grid-template-columns: 1fr; }
  .workspace-grid, .detail-grid, .workspace-page, .workspace-hero-row, .workspace-portals, .workspace-stats-grid, .workspace-dash-row, .workspace-info-grid { grid-template-columns: 1fr !important; }
  .workspace-profile-trigger, .workspace-profile-wrap, .workspace-profile-drawer { max-width: 100%; }
  .workspace-portal-button, .workspace-quick-btn, .workspace-profile-btn { width: 100%; min-width: 0; }
  .workspace-portal-card, .workspace-info-card, .workspace-stat-card, .workspace-activity-card, .workspace-quick-actions { width: 100%; max-width: 100%; }
  .workspace-quick-actions { display: grid; grid-template-columns: 1fr; }
  .workspace-portal-card { padding: 1rem; }
  .workspace-welcome-copy h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .workspace-header, .product-header { width: 100%; max-width: 100%; }
  .workspace-info-row, .workspace-activity-item { min-width: 0; }
  .workspace-info-row strong, .workspace-info-row small, .workspace-profile-name, .reference-admin-user-name strong, .reference-admin-user-name small { overflow-wrap: anywhere; }
  .minimal-workspace-page { padding-left: 0; padding-right: 0; }
  .workspace-info-card, .workspace-portal-card, .workspace-stat-card, .workspace-activity-card { overflow: hidden; }
  .workspace-patient-dialog, .workspace-emergency-dialog, .doctor-note-dialog, .doctor-history-dialog, .role-switch-dialog, .admin-delete-modal, .support-status-modal__dialog { max-height: calc(100dvh - 1rem); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .mobile-menu { max-height: calc(100dvh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

/* Homepage reference navigation */
.home-header { position: absolute; inset: 0 0 auto; z-index: 20; background: rgba(7, 31, 48, .48); border-bottom: 1px solid rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(12px); }
.home-header .header-row { min-height: 72px; max-width: 1280px; }
.home-brand { gap: .7rem; color: white; }
.home-brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.12); color: white; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.home-brand-copy { display: flex; flex-direction: column; line-height: 1; }.home-brand-copy strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }.home-brand-copy small { margin-top: .28rem; color: rgba(255,255,255,.68); font-size: .43rem; font-weight: 700; letter-spacing: .2em; }
.home-header .main-nav { margin-left: auto; }.home-header .main-nav ul { gap: clamp(1rem, 2vw, 2rem); }.home-header .main-nav a { color: rgba(255,255,255,.82); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.home-header .main-nav a span { color: rgba(255,255,255,.6); font-size: .82rem; }.home-header .main-nav a::after { bottom: -10px; background: #a9e5da; }.home-header .main-nav a:hover { color: white; }
.home-header .header-actions { gap: .65rem; margin-left: clamp(1rem, 3vw, 3rem); }.home-header-login { color: rgba(255,255,255,.86) !important; font-size: .7rem !important; letter-spacing: .1em; text-transform: uppercase; }.home-header-login:hover { color: #a9e5da !important; }.home-contact-btn { padding: .65em 1.15em; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.9); color: #183d4a; box-shadow: none; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }.home-contact-btn:hover { background: white; box-shadow: 0 8px 18px rgba(0,0,0,.16); }.home-icon-btn { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; }.home-icon-btn svg { width: 14px; height: 14px; }.home-header .nav-toggle span { background: white; }
.home-header + main .hero { padding-top: clamp(7.5rem, 12vw, 10rem); }
@media (max-width: 800px) { .home-header .main-nav { top: 64px; left: 14px; right: 14px; background: rgba(7,31,48,.96); border-color: rgba(255,255,255,.18); }.home-header .main-nav a { color: rgba(255,255,255,.9); }.home-header .header-actions { margin-left: auto; }.home-header .header-actions .home-icon-btn, .home-header .header-actions .home-header-login { display: none; }.home-header .home-contact-btn { display: inline-flex; }.home-header + main .hero { padding-top: 7.5rem; } }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9em 1.7em;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 12px 22px rgba(15, 42, 74, 0.08);
}
.btn:hover { 
  transform: translateY(-2px);
}
.btn:active { 
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover { 
  box-shadow: 0 16px 28px rgba(217, 119, 6, 0.24);
}
.btn-secondary { 
  background: rgba(30, 127, 114, 0.08); 
  color: var(--teal); 
  border-color: rgba(30, 127, 114, 0.18);
}
.btn-secondary:hover { 
  background: rgba(30, 127, 114, 0.14);
  border-color: var(--teal);
}
.section-dark .btn-secondary { 
  color: var(--text-on-dark); 
  border-color: var(--border-dark); 
}
.section-dark .btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm { 
  padding: 0.55em 1.2em; 
  font-size: 0.88rem; 
}
.btn-block { 
  width: 100%;
}
.btn:focus-visible { 
  outline: 2px solid var(--teal); 
  outline-offset: 2px; 
}

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: 0 8px 24px rgba(15, 42, 74, 0.04);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  transition: transform 0.2s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 42, 74, 0.12));
}
.brand-text {
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-register, .header-login {
  color: var(--teal);
  font-size: .92rem;
  font-weight: 800;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.header-register:hover, .header-login:hover { color: var(--amber-dark); transform: translateY(-1px); }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 var(--gap-section);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}
.hero::before {
  width: 260px;
  height: 260px;
  background: rgba(30, 127, 114, 0.18);
  right: 8%;
  top: 4%;
}
.hero::after {
  width: 240px;
  height: 240px;
  background: rgba(232, 135, 30, 0.12);
  left: -2%;
  bottom: 14%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; }
.hero-badge {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(30, 127, 114, 0.08);
  border: 1px solid rgba(30, 127, 114, 0.14);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-sub { font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  animation: drift 6s ease-in-out infinite;
}
.hero-floating strong { display: block; color: var(--navy); font-size: 1rem; }
.hero-floating small { display: block; color: var(--text-muted); font-size: 0.7rem; }
.hero-floating-one { top: 8%; right: 6%; }
.hero-floating-two { bottom: 10%; left: 0; animation-delay: 1.2s; }
.float-icon {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(30,127,114,0.15), rgba(245,158,11,0.2));
  color: var(--teal);
}
.float-icon svg { width: 17px; height: 17px; }

@keyframes drift {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.dashboard-mock {
  position: relative;
  width: min(100%, 500px);
  background: linear-gradient(145deg, #123b65 0%, #0d2342 100%);
  border: 1px solid rgba(143, 227, 209, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 22px 50px rgba(15, 42, 74, 0.24);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  animation: float-panel 5s ease-in-out infinite;
}
@keyframes float-panel {
  0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(0px); }
  50% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(-8px); }
}
.dm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dm-title { color: var(--text-on-dark); font-weight: 600; font-size: 0.9rem; }
.dm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; color: #8fe3d1;
  background: rgba(30, 127, 114, 0.25); padding: 4px 10px; border-radius: 999px;
}
.dm-dot { width: 6px; height: 6px; border-radius: 50%; background: #4fd6b5; animation: pulse 1.8s infinite; }

.dm-wave { width: 100%; height: 52px; margin-bottom: 18px; }
.dm-wave polyline { fill: none; stroke: #4fd6b5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.dm-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}
.dm-stat-value { display: block; font-weight: 700; font-size: 1.15rem; color: var(--text-on-dark); }
.dm-stat-ai .dm-stat-value { color: #8fe3d1; }
.dm-stat-value svg { width: 18px; height: 18px; margin: 0 auto; }
.dm-stat-label { display: block; font-size: 0.68rem; color: var(--text-on-dark-muted); margin-top: 2px; }

.dm-bars { display: flex; flex-direction: column; gap: 9px; }
.dm-bar-row { display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 10px; }
.dm-bar-row span { font-size: 0.72rem; color: var(--text-on-dark-muted); }
.dm-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.dm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #4fd6b5); border-radius: 999px; font-style: normal; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =========================================================================
   Trust strip
   ========================================================================= */
.trust-strip { background: var(--teal-light); padding: 22px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.trust-item svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; }

/* =========================================================================
   Module grid
   ========================================================================= */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.module-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}
.module-card:hover {
  border-color: rgba(30, 127, 114, 0.36);
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 42, 74, 0.08);
}
.module-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-light), rgba(245, 158, 11, 0.12));
  color: var(--teal);
  border-radius: 14px; margin-bottom: 14px;
}
.module-icon svg { width: 22px; height: 22px; }
.module-card p { font-size: 0.9rem; margin: 0; }

/* =========================================================================
   Process timeline
   ========================================================================= */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.process-step { position: relative; padding-left: 0; }
.process-num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 14px;
}
.process-step p { font-size: 0.9rem; margin: 0; }

/* =========================================================================
   AI section
   ========================================================================= */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ai-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ai-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 227, 209, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.ai-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 127, 114, 0.35); color: #8fe3d1;
  border-radius: 14px; margin-bottom: 14px;
}
.ai-icon svg { width: 21px; height: 21px; }
.ai-card p { font-size: 0.9rem; color: var(--text-on-dark-muted); margin: 0; }

/* =========================================================================
   Technology columns
   ========================================================================= */
.tech-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 2rem;
}
.tech-col {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.tech-col h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.tech-col h3 svg { width: 20px; height: 20px; color: var(--teal); }
.tech-col ul { display: flex; flex-direction: column; gap: 11px; }
.tech-col li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.tech-col li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

/* =========================================================================
   Pricing / engagement cards
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.pricing-card-highlight {
  border-color: var(--teal);
  box-shadow: var(--shadow-card);
}
.pricing-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--teal); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-price { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 0.3em; }
.pricing-desc { font-size: 0.92rem; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 26px; flex-grow: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--text); }
.pricing-features svg { width: 16px; height: 16px; color: var(--teal); margin-top: 3px; flex-shrink: 0; }

/* =========================================================================
   Case studies
   ========================================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(243,247,251,0.8));
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.case-logo-placeholder {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--amber-soft), rgba(30,127,114,0.08));
  border-radius: 12px;
  font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
  margin-bottom: 16px;
}
.case-name { font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.case-stat { font-size: 1.6rem; font-weight: 800; color: var(--teal); margin-bottom: 12px; }
.case-stat span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.case-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; color: var(--amber-dark);
  background: #fdf0e2; padding: 4px 10px; border-radius: 999px;
}

/* =========================================================================
   Final CTA / contact
   ========================================================================= */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.cta-booking { margin-top: 1.75rem; font-size: 0.95rem; }
.cta-booking a { color: #8fe3d1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-on-dark-muted); margin-bottom: 6px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: rgba(143, 227, 209, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(169, 187, 203, 0.6); }

.form-status { min-height: 1.3em; margin: 12px 0 0; font-size: 0.88rem; }
.form-status.is-success { color: #8fe3d1; }
.form-status.is-error { color: #f2a0a0; }

/* =========================================================================
   Health chat bot
   ========================================================================= */
.chat-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: var(--shadow-card);
}
.chat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.chat-status {
  display: inline-flex;
  align-items: center;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.chat-window {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.94rem;
}
.chat-message.bot {
  background: #fff;
  border: 1px solid var(--border);
  align-self: flex-start;
}
.chat-message.user {
  background: linear-gradient(135deg, rgba(30,127,114,0.12), rgba(245,158,11,0.12));
  align-self: flex-end;
}
.chat-message strong {
  color: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.chat-message span {
  color: var(--text);
}
.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  align-items: flex-end;
}
.chat-form textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  resize: vertical;
  min-height: 64px;
}
.chat-form textarea:focus { outline: 2px solid rgba(30,127,114,0.16); border-color: rgba(30,127,114,0.5); }
.chat-feedback {
  min-height: 1.2em;
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-muted); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo-footer { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer-grid p { font-size: 0.88rem; color: var(--text-on-dark-muted); }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.88rem; color: var(--text-on-dark-muted); }
.footer-nav a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--teal); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border-radius: 8px;
}
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { padding: 20px 0; font-size: 0.8rem; }

/* =========================================================================
   Scroll-reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dm-dot { animation: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-columns { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 360px; }
  .hero-floating-one { right: 8%; }
  .hero-floating-two { left: 5%; }
  .cta-grid { grid-template-columns: 1fr; }

  .main-nav, .nav-toggle { display: none; }
}

@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .dm-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-row { min-height: 70px; gap: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text { font-size: .95rem; white-space: normal; line-height: 1.15; max-width: 120px; }
  .header-actions { gap: 10px; }
  .header-register, .header-login { font-size: .78rem; }
  .header-actions .btn-sm { padding: .58em .75em; font-size: .76rem; }
}

/* Final homepage header overrides */
.home-header { position: absolute; inset: 0 0 auto; z-index: 20; background: rgba(7, 31, 48, .48); border-bottom: 1px solid rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(12px); }
.home-header .header-row { min-height: 72px; max-width: 1280px; }
.home-brand { gap: .7rem; color: white; }.home-brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.12); color: white; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }.home-brand-copy { display: flex; flex-direction: column; line-height: 1; }.home-brand-copy strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }.home-brand-copy small { margin-top: .28rem; color: rgba(255,255,255,.68); font-size: .43rem; font-weight: 700; letter-spacing: .2em; }
.home-header .main-nav { display: block; margin-left: auto; }.home-header .main-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }.home-header .main-nav a { color: rgba(255,255,255,.82); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.home-header .main-nav a span { color: rgba(255,255,255,.6); font-size: .82rem; }.home-header .main-nav a::after { bottom: -10px; background: #a9e5da; }.home-header .main-nav a:hover { color: white; }.home-header .header-actions { gap: .65rem; margin-left: clamp(1rem, 3vw, 3rem); }.home-header-login { color: rgba(255,255,255,.86) !important; font-size: .7rem !important; letter-spacing: .1em; text-transform: uppercase; }.home-header-login:hover { color: #a9e5da !important; }.home-contact-btn { padding: .65em 1.15em; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.9); color: #183d4a; box-shadow: none; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }.home-contact-btn:hover { background: white; box-shadow: 0 8px 18px rgba(0,0,0,.16); }.home-icon-btn { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; }.home-icon-btn svg { width: 14px; height: 14px; }.home-header .nav-toggle span { background: white; }.home-header + main .hero { padding-top: clamp(7.5rem, 12vw, 10rem); }
@media (max-width: 860px) { .home-header .main-nav { display: none; }.home-header .nav-toggle { display: flex; }.home-header .main-nav.is-open { display: block; position: absolute; top: 64px; left: 14px; right: 14px; padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(7,31,48,.96); box-shadow: var(--shadow-card); }.home-header .main-nav ul { display: flex; flex-direction: column; gap: .85rem; }.home-header .main-nav a { color: rgba(255,255,255,.9); }.home-header .header-actions { margin-left: auto; }.home-header .header-actions .home-icon-btn, .home-header .header-actions .home-header-login { display: none; }.home-header + main .hero { padding-top: 7.5rem; } }

/* ========================================================================
  Reference-inspired JustOne homepage
  ======================================================================== */
.reference-home { background: #f5f4ec; overflow: hidden; }
.reference-hero { position: relative; min-height: 790px; padding: 9rem 0 7rem; overflow: hidden; color: #f6f7ed; background: #0c413d; }
.reference-hero::after { content: ""; position: absolute; inset: auto -10% -20% -10%; height: 260px; border-radius: 50% 50% 0 0; background: #f5f4ec; transform: rotate(-2deg); }
.reference-hero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(12px); opacity: .55; pointer-events: none; }.reference-hero-glow-one { top: -240px; right: 8%; background: radial-gradient(circle, rgba(125,217,190,.42), transparent 68%); }.reference-hero-glow-two { bottom: 40px; left: -220px; background: radial-gradient(circle, rgba(235,191,102,.2), transparent 70%); }
.reference-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }.reference-hero-copy { padding-bottom: 3rem; }.reference-kicker { display: block; color: #9be0c9; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }.dark-kicker { color: #32746d; }.reference-hero h1 { max-width: 650px; margin: 1rem 0 1.3rem; color: white; font-size: clamp(2.55rem, 5vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }.reference-hero h1 em, .reference-section h2 em { color: #e1bf75; font-style: normal; }.reference-hero-copy p { max-width: 450px; color: rgba(246,247,237,.76); font-size: 1rem; }.reference-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.8rem; }.reference-button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 46px; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }.reference-button:hover { transform: translateY(-2px); }.reference-button-light { background: #f2d28e; color: #163e3a; box-shadow: 0 10px 22px rgba(0,0,0,.12); }.reference-button-light:hover { background: #ffe0a4; box-shadow: 0 15px 28px rgba(0,0,0,.18); }.reference-button-dark { background: #0d4d47; color: #f9f6e9; }.reference-text-link { color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 700; }.reference-text-link:hover { color: #f2d28e; }
.reference-hero-visual { position: relative; min-height: 390px; }.hospital-orbit { position: absolute; top: 50%; left: 50%; z-index: 2; width: 245px; height: 245px; border: 1px solid rgba(194,241,216,.55); border-radius: 50%; background: radial-gradient(circle, rgba(165,226,204,.25), rgba(7,56,53,.6) 60%); box-shadow: 0 0 0 24px rgba(153,224,196,.08), 0 0 90px rgba(146,222,188,.4); transform: translate(-50%, -50%); }.hospital-core { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border: 4px solid #f3d58d; border-radius: 50%; background: #f5f1dc; color: #0c4a43; transform: translate(-50%, -50%); }.hospital-core svg { width: 34px; height: 34px; margin-bottom: .25rem; }.hospital-core strong { font-size: .52rem; letter-spacing: .12em; }.hospital-core small { margin-top: .22rem; font-size: .36rem; letter-spacing: .1em; }.network-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(184,237,205,.3); border-radius: 50%; transform: translate(-50%,-50%) rotate(-18deg); }.ring-one { width: 320px; height: 150px; }.ring-two { width: 160px; height: 330px; }.network-line { position: absolute; width: 120%; height: 1px; top: 50%; left: -10%; background: linear-gradient(90deg, transparent, rgba(216,238,192,.7), transparent); transform: rotate(26deg); }.line-two { transform: rotate(-26deg); }.orbit-node { position: absolute; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: #276e64; color: #f5d78f; box-shadow: 0 8px 22px rgba(0,0,0,.15); }.orbit-node svg { width: 18px; }.node-pharmacy { top: 5%; left: 15%; }.node-lab { top: 13%; right: 10%; }.node-finance { right: 3%; bottom: 18%; }.node-patients { bottom: 4%; left: 16%; }
.reference-hero-cards { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -5.5rem; }.reference-feature-card { min-height: 185px; padding: 1.35rem; border: 1px solid rgba(36,82,74,.18); border-radius: 17px; background: linear-gradient(145deg, rgba(254,253,240,.92), rgba(225,236,219,.82)); color: #143e3a; box-shadow: 0 17px 36px rgba(3,40,35,.16); backdrop-filter: blur(8px); }.reference-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #236d60; color: #f2d28e; }.reference-card-icon svg { width: 18px; height: 18px; }.reference-feature-card h3 { margin: .9rem 0 .35rem; color: #153f3a; font-size: 1rem; }.reference-feature-card p { min-height: 2.5em; margin: 0 0 .8rem; color: #56716b; font-size: .78rem; }.reference-feature-card a { color: #236d60; font-size: .72rem; font-weight: 800; text-transform: uppercase; }.reference-proof-strip { position: relative; z-index: 5; padding: 1.2rem 0; background: #f5f4ec; }.reference-proof-row { display: flex; justify-content: center; gap: 1.5rem 3rem; flex-wrap: wrap; }.reference-proof-row span { display: inline-flex; align-items: center; gap: .4rem; color: #41645e; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.reference-proof-row svg { width: 15px; color: #4b9a7e; }
.reference-section { padding: clamp(5rem, 9vw, 9rem) 0; }.difference-section { background: #f5f4ec; }.difference-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }.reference-section h2 { margin: .8rem 0 1.3rem; color: #123f3a; font-size: clamp(2.4rem, 4.5vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }.difference-copy p, .reference-section-heading > p { max-width: 450px; color: #5b716d; font-size: 1rem; }.difference-visual { position: relative; min-height: 370px; }.difference-board { border: 1px solid rgba(24,88,79,.16); border-radius: 18px; background: linear-gradient(145deg, #e0f2e6, #f5e8bd); box-shadow: 0 20px 45px rgba(35,91,79,.15); }.board-main { position: absolute; top: 25px; right: 6%; width: 72%; padding: 1.5rem; background: #0d4e48; color: white; transform: rotate(4deg); }.board-top { display: flex; justify-content: space-between; color: #bde8cf; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }.board-top svg { width: 17px; }.board-wave { height: 115px; margin: 1.3rem 0; border-bottom: 2px solid #8be3bc; background: linear-gradient(150deg, transparent 45%, rgba(126,220,178,.45) 46%, transparent 48%), linear-gradient(30deg, transparent 55%, rgba(235,200,124,.4) 56%, transparent 58%); }.board-metrics { display: flex; gap: 1.6rem; color: #b8d9cf; font-size: .68rem; }.board-metrics strong { display: block; color: #f2d28e; font-size: 1.4rem; }.board-small { position: absolute; display: flex; align-items: center; gap: .7rem; padding: 1rem; color: #174c45; font-size: .75rem; font-weight: 800; }.board-small svg { width: 20px; color: #2b8c70; }.board-small-one { bottom: 25px; left: 2%; transform: rotate(-5deg); }.board-small-two { top: 0; right: 0; transform: rotate(8deg); }
.modules-section { background: #e8f0e6; }.reference-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.7rem; }.reference-section-heading > p { margin: 0 0 .45rem; }.reference-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.reference-module-card { position: relative; display: block; min-height: 200px; padding: 1.5rem; border: 1px solid rgba(35,96,83,.14); border-radius: 16px; background: rgba(255,255,255,.64); color: #143e3a; box-shadow: 0 8px 20px rgba(36,85,72,.05); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }.reference-module-card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px rgba(36,85,72,.12); }.reference-module-card h3 { margin: 1.1rem 0 .45rem; color: #174943; font-size: 1rem; }.reference-module-card p { max-width: 28ch; color: #648078; font-size: .82rem; }.reference-module-arrow { position: absolute; right: 1.4rem; bottom: 1.35rem; color: #2d8b70; font-size: 1.2rem; }.process-section { background: #f5f4ec; }.reference-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-top: 1px solid #c6d2c6; border-bottom: 1px solid #c6d2c6; }.reference-process-card { min-height: 215px; padding: 1.45rem; border-right: 1px solid #c6d2c6; }.reference-process-card:last-child { border-right: 0; }.reference-process-card > span { color: #d19e4d; font-size: 1.7rem; font-weight: 800; }.reference-process-card h3 { margin: 2.2rem 0 .5rem; color: #174943; font-size: 1rem; }.reference-process-card p { color: #688079; font-size: .8rem; }
.reference-ai-section { padding: clamp(5rem, 9vw, 9rem) 0; color: #f6f7ed; background: #103f3b; }.ai-feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7rem; align-items: center; }.ai-feature-copy h2 { max-width: 600px; color: white; font-size: clamp(2.4rem, 4.5vw, 4.5rem); }.ai-feature-copy p { max-width: 520px; color: rgba(246,247,237,.72); }.ai-feature-visual { min-height: 300px; display: grid; place-items: center; }.ai-orbit { position: relative; width: 260px; height: 260px; border: 1px solid rgba(151,225,193,.46); border-radius: 50%; box-shadow: 0 0 0 35px rgba(151,225,193,.06), 0 0 80px rgba(151,225,193,.18); }.ai-orbit::before, .ai-orbit::after { content: ""; position: absolute; inset: 35px; border: 1px dashed rgba(232,208,139,.45); border-radius: 50%; }.ai-orbit::after { inset: 75px; border-style: solid; border-color: rgba(151,225,193,.5); }.ai-orbit > div { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; border: 2px solid #f2d28e; border-radius: 50%; background: #f3efda; color: #177060; transform: translate(-50%,-50%); }.ai-orbit > div svg { width: 28px; }.ai-orbit > span { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2a7668; color: #f2d28e; }.ai-orbit > span svg { width: 18px; }.ai-orbit > span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }.ai-orbit > span:nth-child(2) { right: 2%; bottom: 18%; }.ai-orbit > span:nth-child(3) { bottom: 2%; left: 13%; }
.story-section { background: #edf1e8; }.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }.story-quote { padding: 2.3rem; border: 1px solid rgba(36,90,80,.15); border-radius: 20px; background: rgba(255,255,255,.65); box-shadow: 0 18px 36px rgba(39,87,75,.08); }.quote-mark { color: #d2a75f; font-size: 4rem; line-height: .5; }.story-quote blockquote { margin: 1rem 0 1.8rem; color: #174943; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }.quote-person { display: flex; align-items: center; gap: .75rem; }.quote-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #34776b; color: white; font-size: .7rem; font-weight: 800; }.quote-person strong, .quote-person small { display: block; }.quote-person strong { color: #174943; font-size: .8rem; }.quote-person small { margin-top: .2rem; color: #6d817a; font-size: .7rem; }
.reference-cta-section { padding: 6rem 0; color: #f6f7ed; background: #0d4a44; }.reference-cta-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 6rem; align-items: center; }.reference-cta-copy h2 { max-width: 550px; margin: .8rem 0 1rem; color: white; font-size: clamp(2.5rem, 4.5vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }.reference-cta-copy p { max-width: 480px; color: rgba(246,247,237,.72); }.reference-contact-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.1); }.reference-contact-card .form-row { margin-bottom: .75rem; }.reference-contact-card label { display: block; margin-bottom: .3rem; color: rgba(255,255,255,.78); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.reference-contact-card input, .reference-contact-card textarea { width: 100%; padding: .75rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.1); color: white; font: inherit; }.reference-contact-card input::placeholder, .reference-contact-card textarea::placeholder { color: rgba(255,255,255,.5); }.reference-contact-card input:focus, .reference-contact-card textarea:focus { outline: 2px solid rgba(242,210,142,.55); border-color: #f2d28e; }.reference-chat-section { padding: 3rem 0; background: #f5f4ec; }.reference-chat-section .chat-shell { margin: 0 auto; }
.reference-footer { padding: 3rem 0 1rem; color: rgba(240,246,236,.68); background: #092d2b; }.reference-footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 3rem; align-items: start; }.footer-brand { color: white; }.reference-footer p { color: rgba(240,246,236,.6); font-size: .78rem; }.reference-footer nav { display: grid; gap: .65rem; }.reference-footer nav a { color: rgba(240,246,236,.72); font-size: .78rem; }.reference-footer nav a:hover { color: #f2d28e; }.reference-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .68rem; }
@media (max-width: 860px) { .reference-hero { min-height: auto; padding-top: 8rem; }.reference-hero-grid, .difference-grid, .ai-feature-grid, .story-grid, .reference-cta-grid { grid-template-columns: 1fr; gap: 3rem; }.reference-hero-visual { min-height: 330px; order: -1; }.reference-hero-copy { padding-bottom: 0; }.reference-hero-cards { margin-top: -2rem; }.reference-module-grid { grid-template-columns: repeat(2, 1fr); }.reference-process-grid { grid-template-columns: repeat(2, 1fr); }.reference-process-card:nth-child(2) { border-right: 0; }.reference-process-card:nth-child(-n+2) { border-bottom: 1px solid #c6d2c6; }.reference-footer-grid { grid-template-columns: 1fr 1fr; }.reference-footer-grid > div:last-child { grid-column: 1 / -1; }.difference-visual { min-height: 330px; } }
@media (max-width: 560px) { .reference-hero { padding-bottom: 4rem; }.reference-hero h1 { font-size: 2.8rem; }.reference-hero-cards, .reference-module-grid, .reference-process-grid { grid-template-columns: 1fr; }.reference-feature-card { min-height: auto; }.reference-process-card { border-right: 0; border-bottom: 1px solid #c6d2c6; }.reference-process-card:last-child { border-bottom: 0; }.reference-section-heading { display: block; }.reference-section-heading > p { margin-top: 1rem; }.board-main { width: 82%; }.reference-footer-grid { grid-template-columns: 1fr; }.reference-footer-grid > div:last-child { grid-column: auto; }.reference-footer-bottom { display: block; }.reference-footer-bottom span { display: block; margin-top: .5rem; } }

/* Fixed navigation, hospital operations imagery, gallery, and support */
.home-header { position: fixed; top: 0; right: 0; left: 0; }.home-header .header-row { min-height: 70px; }.home-signup-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: white; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.home-signup-btn:hover { background: rgba(255,255,255,.14); color: white; }.home-header .header-actions { flex-wrap: nowrap; }.home-header + main .reference-hero { padding-top: 10rem; }
.home-header .header-actions { position: relative; z-index: 2; }
.home-header .home-workspace-button { position: relative; z-index: 3; pointer-events: auto; }
.reference-hero { background-image: linear-gradient(90deg, rgba(7,57,53,.97) 0%, rgba(9,69,63,.86) 45%, rgba(5,50,49,.7) 100%), url('https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=2200&q=85'); background-position: center, center; background-size: cover; background-blend-mode: normal; }.reference-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(242,210,142,.08), transparent 42%, rgba(111,216,191,.12)); pointer-events: none; }
.gallery-section { background: #f5f4ec; }.gallery-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 1rem; }.gallery-card { min-height: 350px; padding: 1rem; border: 1px solid rgba(35,96,83,.14); border-radius: 18px; background: rgba(255,255,255,.64); color: #143e3a; box-shadow: 0 12px 26px rgba(36,85,72,.07); }.gallery-card-wide { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: end; }.gallery-art { position: relative; min-height: 220px; overflow: hidden; border-radius: 13px; background: #dbe9de; }.gallery-art-command { padding: 1rem; background: linear-gradient(145deg, #104944, #68a99a); }.gallery-window-label { color: rgba(255,255,255,.72); font-size: .55rem; font-weight: 800; letter-spacing: .15em; }.gallery-dashboard { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; gap: .55rem; height: 135px; padding: .8rem; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(245,250,239,.9); box-shadow: 0 12px 25px rgba(0,0,0,.16); }.gallery-dashboard-sidebar { width: 20%; border-radius: 5px; background: #b7d4c5; }.gallery-dashboard-main { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: .45rem; }.gallery-dashboard-main span { display: block; height: 34px; border-radius: 5px; background: #e8d08d; }.gallery-dashboard-main span:nth-child(2) { background: #9ad4c6; }.gallery-dashboard-main span:nth-child(3) { background: #c2d7e7; }.gallery-dashboard-main div { grid-column: 1 / -1; border-radius: 5px; background: linear-gradient(165deg, transparent 45%, #4d9e84 46%, transparent 49%), #eaf1e9; }.gallery-index { display: block; margin-top: 1rem; color: #d09b4c; font-size: .72rem; font-weight: 800; }.gallery-card h3 { margin: .5rem 0 .35rem; color: #174943; font-size: 1rem; }.gallery-card p { margin: 0; color: #688079; font-size: .78rem; }.gallery-art-clinical { display: grid; place-items: center; background: linear-gradient(145deg, #dcecf2, #9cc8ce); color: #177060; }.gallery-art-clinical svg { width: 90px; height: 90px; padding: 1.3rem; border: 8px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.35); }.gallery-pulse-line { position: absolute; right: 0; bottom: 36px; left: 0; height: 2px; background: linear-gradient(90deg, transparent 4%, #4c9c86 5%, transparent 16%, #4c9c86 17%, transparent 25%, #4c9c86 26%, transparent 100%); }.gallery-art-ai { display: grid; place-items: center; background: radial-gradient(circle, #d7e8cc, #c3d7cf 55%, #8db5a7); color: #f0cf88; }.gallery-art-ai > svg { position: relative; z-index: 2; width: 62px; height: 62px; padding: 1rem; border-radius: 50%; background: #1a5f56; }.gallery-ai-nodes span { position: absolute; width: 17px; height: 17px; border: 2px solid #f0cf88; border-radius: 50%; background: #347b6d; }.gallery-ai-nodes span:nth-child(1) { top: 30%; left: 22%; }.gallery-ai-nodes span:nth-child(2) { top: 23%; right: 20%; }.gallery-ai-nodes span:nth-child(3) { bottom: 19%; right: 30%; }.support-band { padding: 4rem 0; background: #dfeadd; }.support-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }.support-band h2 { margin: .55rem 0; color: #174943; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }.support-band p { margin: 0; color: #648078; }.support-band .reference-button-dark { flex: 0 0 auto; }
@media (max-width: 900px) { .home-header .main-nav ul { gap: 1rem; }.home-header .main-nav a { font-size: .58rem; }.gallery-grid { grid-template-columns: 1fr 1fr; }.gallery-card-wide { grid-column: 1 / -1; } }
@media (max-width: 680px) { .home-header .home-login-btn, .home-header .home-signup-btn { display: inline-flex; padding: .4rem .58rem; font-size: .55rem; }.home-header + main .reference-hero { padding-top: 8.5rem; }.gallery-grid { grid-template-columns: 1fr; }.gallery-card-wide { display: block; }.gallery-card-wide .gallery-art { margin-bottom: 1rem; }.support-band-inner { align-items: flex-start; flex-direction: column; }.home-header .home-contact-btn { padding-inline: .75rem; font-size: .6rem; } }

/* Hospital workspace identity and registration flow */
.workspace-page { max-width: 1180px; margin: 0 auto; }.workspace-identity { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.3rem 0 1.6rem; border-bottom: 1px solid var(--border); }.workspace-identity-main { display: flex; align-items: center; gap: 1rem; }.workspace-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #0e4e48, #297c6c); color: #f2d28e; font-weight: 900; letter-spacing: .05em; box-shadow: 0 10px 20px rgba(13,74,68,.18); }.workspace-identity h1 { margin: .35rem 0 .1rem; font-size: clamp(1.7rem, 3vw, 2.7rem); }.workspace-identity p { margin: 0; }.workspace-identity-meta { display: flex; align-items: center; gap: 1rem; }.workspace-admin-button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: .35rem .7rem; border: 1px solid rgba(22,87,77,.3); border-radius: 999px; background: #174943; color: white; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.workspace-admin-button:hover { background: #2d806e; color: white; }.hospital-id-chip { display: grid; gap: .2rem; padding: .65rem .8rem; border: 1px solid rgba(46,123,103,.2); border-radius: 10px; background: #edf7ed; }.hospital-id-chip span { color: #5a7770; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.hospital-id-chip strong { color: #17574d; font-size: .95rem; letter-spacing: .08em; }.workspace-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 1.7rem 0; padding: 1.4rem 1.6rem; border: 1px solid rgba(42,112,94,.14); border-radius: 16px; background: linear-gradient(120deg, #e3f0e5, #f8efd3); }.workspace-quick-actions h2 { margin: .35rem 0 .25rem; color: #174943; font-size: 1.5rem; }.workspace-quick-actions p { margin: 0; }.quick-action-buttons { display: flex; gap: .7rem; flex-wrap: wrap; }.directory-count { color: #4f716a; font-size: .78rem; font-weight: 800; }.workspace-grid-planned { align-items: start; }.side-hospital-id { margin-top: .8rem; padding: .75rem .85rem; border: 1px dashed #79aa91; border-radius: 9px; background: #eff8ed; color: #17574d; font-size: 1.1rem; font-weight: 900; letter-spacing: .12em; text-align: center; }
@media (max-width: 800px) { .workspace-identity { align-items: flex-start; flex-direction: column; }.workspace-identity-meta { width: 100%; flex-wrap: wrap; justify-content: space-between; }.workspace-quick-actions { align-items: flex-start; flex-direction: column; }.quick-action-buttons { width: 100%; }.quick-action-buttons .btn { flex: 1; }.workspace-page { width: 100%; } }
@media (max-width: 520px) { .workspace-identity-main { align-items: flex-start; }.workspace-logo { width: 44px; height: 44px; }.hospital-id-chip { flex: 1; }.workspace-identity-meta { gap: .55rem; }.workspace-identity-meta .trial-badge { order: 3; }.quick-action-buttons { flex-direction: column; }.quick-action-buttons .btn { width: 100%; } }
@media (max-width: 800px) { .hospital-access-panel { align-items: flex-start; flex-direction: column; }.hospital-access-actions { width: 100%; }.hospital-access-actions .btn { flex: 1; }.admission-summary { grid-template-columns: 1fr; }.admission-location { padding: .8rem 0 0; border-top: 1px solid rgba(42,112,94,.16); border-left: 0; } }

/* Workspace role actions */
.workspace-hospital-title { flex: 1; text-align: center; }
.workspace-hospital-title h1 { margin: .35rem 0 .1rem; }
.workspace-profile-chip { display: grid; gap: .12rem; min-width: 155px; padding: .6rem .8rem; border: 1px solid rgba(46,123,103,.2); border-radius: 10px; background: rgba(237,247,237,.86); }
.workspace-profile-chip span, .workspace-profile-chip small { color: #5a7770; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workspace-profile-chip strong { overflow: hidden; color: #17574d; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.hospital-summary { position: relative; min-height: 245px; margin: 1.7rem 0; padding: 2.2rem; overflow: hidden; border: 1px solid rgba(42,112,94,.14); border-radius: 18px; background: linear-gradient(120deg, #e3f0e5, #f8efd3); background-position: center; background-size: cover; }
.hospital-summary.has-hospital-image { display: flex; align-items: center; color: white; }
.hospital-summary-content { position: relative; max-width: 680px; }
.hospital-summary h2 { margin: .35rem 0 .5rem; color: #174943; font-size: clamp(1.35rem, 2.3vw, 2rem); }
.hospital-summary.has-hospital-image h2, .hospital-summary.has-hospital-image p, .hospital-summary.has-hospital-image .card-kicker { color: white; }
.hospital-summary p { max-width: 650px; margin-bottom: 1.2rem; }
.hospital-summary .btn-secondary { border-color: rgba(255,255,255,.45); }
.bed-filter-panel, .bed-board { margin: 1.2rem 0; padding: 1.2rem 1.4rem; border: 1px solid rgba(42,112,94,.14); border-radius: 15px; background: rgba(255,255,255,.78); }
.bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.bed-card { display: grid; gap: .3rem; padding: 1rem; border: 1px solid rgba(42,112,94,.16); border-left: 4px solid #2d806e; border-radius: 10px; background: #f3fbf3; }
.bed-card span, .bed-card small { color: #668078; font-size: .75rem; }
.bed-card strong { color: #174943; font-size: 1.25rem; }
.bed-card em { color: #2d806e; font-size: .72rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.bed-card-occupied { border-left-color: #c56b42; background: #fff5ed; }.bed-card-occupied em { color: #b15c3d; }
.bed-card-maintenance, .bed-card-out_of_service { border-left-color: #8a7b68; background: #f3f0eb; }.bed-card-maintenance em, .bed-card-out_of_service em { color: #786b5b; }

.workspace-role-actions { display: flex; align-items: center; gap: .45rem; }
.home-workspace-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 34px; padding: .5rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.12); color: white !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.home-workspace-button:hover { background: rgba(255,255,255,.24); color: white !important; }
.minimal-workspace-shell .product-header { min-height: 66px; }.minimal-workspace-shell .product-brand { font-size: .8rem; }.minimal-workspace-shell .brand-mark { width: 28px; height: 28px; font-size: .72rem; }
.minimal-workspace-shell.has-workspace-image { background-image: linear-gradient(135deg, rgba(232,242,247,.54), rgba(245,243,255,.38) 50%, rgba(255,240,245,.46)), var(--workspace-image); background-position: center; background-size: cover; background-attachment: fixed; }
.minimal-workspace-shell.has-workspace-image::before { background: linear-gradient(135deg, rgba(232,242,247,.2), rgba(255,255,255,.04)); }
.minimal-workspace-shell .auth-header-links { gap: .55rem; }
.minimal-workspace-shell .workspace-header-logout { margin: 0; }
.minimal-workspace-shell .workspace-header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .6rem .85rem; border-radius: 999px; background: #164f4a; color: white; font-size: .7rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.minimal-workspace-shell .workspace-header-logout .workspace-header-action { border: 0; font: inherit; cursor: pointer; }
.minimal-workspace-shell .workspace-header-action:hover { background: #2d806e; color: white; }
@media (max-width: 800px) { .minimal-workspace-shell .workspace-header-action { display: inline-flex; } .minimal-workspace-shell .auth-header-links { flex-wrap: wrap; justify-content: flex-end; gap: .35rem; } .minimal-workspace-shell .workspace-header-action { min-height: 34px; padding: .45rem .6rem; font-size: .62rem; } }
/* Screenshot-style hospital workspace portal landing page */
.minimal-workspace-page { width: min(100%, 1040px); min-height: calc(100vh - 110px); margin: 0 auto; padding: clamp(3.8rem, 8vh, 6.4rem) 0 4rem; }
.workspace-welcome { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.1rem; }
.workspace-welcome-copy { flex: 1; }
.minimal-workspace-kicker { display: block; color: #299f96; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.minimal-workspace-kicker::before { content: "•"; margin-right: .55rem; color: #2ea997; font-size: 1.25rem; vertical-align: -.08em; }
.workspace-welcome h1 { margin: .7rem 0 1rem; color: #17375d; font-size: clamp(2.6rem, 5vw, 3.65rem); letter-spacing: -.045em; }
.workspace-welcome p { margin: 0; color: #6d879e; font-size: 1rem; line-height: 1.55; }
.workspace-date { display: grid; gap: .15rem; margin-bottom: .15rem; text-align: right; color: #6d879e; }
.workspace-date strong { color: #17375d; font-size: .92rem; }
.workspace-date span { font-size: .84rem; }
.workspace-portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.workspace-portal-card { min-height: 330px; padding: 1.9rem; border: 1px solid rgba(43, 75, 95, .08); border-radius: 21px; background: rgba(255,255,255,.9); box-shadow: 0 18px 42px rgba(40, 79, 91, .08); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.workspace-portal-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(40, 79, 91, .14); }
.workspace-portal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #dff3f0; color: #2ba899; font-size: 1.65rem; font-weight: 800; }
.workspace-portal-doctor .workspace-portal-icon { background: #e8edf2; color: #17375d; }
.workspace-portal-card h2 { margin: 1.25rem 0 .7rem; color: #17375d; font-size: 1.3rem; letter-spacing: -.02em; }
.workspace-portal-card p { margin: 0; color: #6d879e; font-size: .92rem; line-height: 1.55; }
.workspace-portal-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-width: 188px; min-height: 94px; margin-top: 1.45rem; padding: .75rem 1.1rem  .75rem 1.25rem; border-radius: 999px; background: #2da898; color: white; font-size: .78rem; font-weight: 800; line-height: 1.1; text-align: center; }
.workspace-portal-doctor .workspace-portal-button { background: #083f3d; }
.workspace-portal-button b { font-size: 3.1rem; font-weight: 300; line-height: .7; }
.workspace-profile-wrap { position: relative; }
.workspace-profile-trigger { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .25rem .55rem .25rem .3rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #17375d; box-shadow: 0 4px 14px rgba(31,73,85,.08); cursor: pointer; font: inherit; }
.workspace-profile-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #2da898; color: white; font-size: .68rem; font-weight: 800; }
.profile-photo-avatar { display: block; flex: 0 0 auto; border-radius: 50%; object-fit: cover; object-position: center; }
.workspace-profile-avatar.profile-photo-avatar { width: 31px; height: 31px; }
.profile-avatar.profile-photo-avatar { display: block; background: var(--profile-card, #142b33); }
[data-profile-avatar][hidden],
[data-profile-avatar-fallback][hidden],
.profile-photo-dialog-preview[hidden],
.profile-photo-dialog-preview img[hidden] { display: none !important; }
.workspace-profile-name { max-width: 90px; overflow: hidden; font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.workspace-profile-chevron { padding-left: .3rem; color: #7890a2; font-size: 1rem; }
.workspace-profile-drawer { top: calc(100% + .65rem); right: 0; }
.workspace-profile-details { display: grid; gap: .7rem; padding: 1rem; border-bottom: 1px solid #e5eee9; }
.workspace-profile-details div { display: flex; justify-content: space-between; gap: 1rem; }
.workspace-profile-details span { color: #7890a2; font-size: .68rem; }
.workspace-profile-details strong { max-width: 165px; overflow: hidden; color: #17375d; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-profile-drawer-link { display: block; padding: .75rem 1rem; color: #174943; font-size: .8rem; font-weight: 700; }
.workspace-profile-drawer-link:hover { background: #edf7ed; }
@media (max-width: 800px) { .workspace-welcome { align-items: flex-start; flex-direction: column; margin-bottom: 2rem; }.workspace-date { text-align: left; }.workspace-portals { grid-template-columns: 1fr; }.minimal-workspace-page { padding-top: 3rem; }.workspace-profile-name { display: none; } }
/* Hospital info + at-a-glance stats + quick actions + activity feed */
.workspace-hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; margin-bottom: 2.4rem; }
.workspace-hero-row .workspace-welcome-copy h1 { margin: .7rem 0 .7rem; color: #102f50; font-size: clamp(2.2rem, 4.4vw, 3rem); letter-spacing: -.04em; text-shadow: 0 1px 1px rgba(255,255,255,.45); }
.workspace-hero-row .workspace-welcome-copy p { margin: 0 0 .9rem; color: #48657e; font-size: .96rem; line-height: 1.55; }
.workspace-today-line { font-size: .85rem; color: #48657e; font-weight: 600; }
.workspace-today-line strong { color: #17375d; font-weight: 700; }
.workspace-info-card { padding: 1.4rem 1.5rem; border: 1px solid rgba(43,75,95,.16); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(25,55,75,.16); }
.workspace-info-card h4 { margin: 0 0 .9rem; color: #102f50; font-size: .95rem; letter-spacing: -.01em; }
.workspace-info-row { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid #dbe6e6; font-size: .87rem; color: #17375d; }
.workspace-info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.workspace-info-row svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; color: #2ba899; }
.workspace-info-label { display: block; margin-bottom: 1px; color: #55718a; font-size: .74rem; font-weight: 600; }
.workspace-section-head { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1rem; }
.workspace-section-head h3 { margin: 0; color: #102f50; font-size: 1.05rem; letter-spacing: -.01em; }
.workspace-live-tag { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; color: #2ba899; font-size: .78rem; font-weight: 700; }
.workspace-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ba899; animation: workspace-pulse 1.8s ease-in-out infinite; }
@keyframes workspace-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.3); } }
.workspace-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.workspace-stat-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem; border: 1px solid rgba(43,75,95,.15); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 14px 32px rgba(25,55,75,.13); }
.workspace-stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(43,168,153,.14); color: #2ba899; }
.workspace-stat-icon svg { width: 18px; height: 18px; }
.workspace-stat-card.c2 .workspace-stat-icon { background: rgba(201,162,75,.16); color: #b9903e; }
.workspace-stat-card.c3 .workspace-stat-icon { background: rgba(23,55,93,.1); color: #17375d; }
.workspace-stat-value { color: #102f50; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.workspace-stat-label { color: #55718a; font-size: .82rem; font-weight: 600; }
.workspace-dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.workspace-quick-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .5rem; }
.workspace-quick-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .68rem 1.05rem; border: 1px solid rgba(43,75,95,.2); border-radius: 999px; background: #fff; color: #17375d; font-size: .84rem; font-weight: 700; transition: border-color .15s ease, transform .15s ease; }
.workspace-quick-btn:hover { border-color: #2ba899; transform: translateY(-1px); }
.workspace-quick-btn svg { width: 15px; height: 15px; color: #2ba899; }
.workspace-activity-card { padding: 1.3rem 1.4rem; border: 1px solid rgba(43,75,95,.16); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(25,55,75,.13); }
.workspace-activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.workspace-activity-item { position: relative; margin-left: 4px; padding: 0 0 1.05rem 1.15rem; border-left: 2px solid #e5eee9; }
.workspace-activity-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.workspace-activity-item::before { content: ""; position: absolute; top: 2px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: #2ba899; }
.workspace-activity-title { margin-bottom: 2px; color: #17375d; font-size: .87rem; font-weight: 700; }
.workspace-activity-time { color: #55718a; font-size: .78rem; font-weight: 600; }
@media (max-width: 980px) { .workspace-hero-row { grid-template-columns: 1fr; } .workspace-dash-row { grid-template-columns: 1fr; } .workspace-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .workspace-stats-grid { gap: .7rem; } }
.role-dashboard-shell { width: 100%; max-width: none; min-height: 100vh; padding: 0; overflow-x: hidden; }.role-dashboard-shell > .product-header { display: none; }.role-dashboard-shell > .product-messages { position: relative; z-index: 60; max-width: 1180px; margin: 0 auto; }
.admin-management-page { width: min(100%, 920px); min-height: calc(100vh - 110px); margin: 0 auto; padding: clamp(3rem, 7vh, 5rem) 0 4rem; }
.admin-management-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.admin-management-actions { display: flex; align-items: center; gap: .65rem; }
.admin-management-heading h1 { margin: .65rem 0 .5rem; color: #102f50; font-size: clamp(2rem, 4vw, 3rem); }
.admin-management-heading p { margin: 0; color: #48657e; }
.admin-user-tabs { display: flex; gap: .45rem; margin-bottom: .9rem; padding: .35rem; border: 1px solid rgba(43,75,95,.12); border-radius: 14px; background: rgba(255,255,255,.72); }
.admin-user-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .8rem; border-radius: 10px; color: #55718a; font-size: .78rem; font-weight: 800; }
.admin-user-tabs a span { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; background: #e5f3f1; color: #2b8f84; font-size: .68rem; }
.admin-user-tabs a:hover, .admin-user-tabs a.is-active { background: #164f4a; color: white; }
.admin-user-tabs a.is-active span { background: #2ba899; color: white; }
.admin-user-search { display: grid; gap: .45rem; margin-bottom: 1rem; }
.admin-user-search label { color: #55718a; font-size: .72rem; font-weight: 800; }
.admin-user-search div { display: flex; gap: .55rem; }
.admin-user-search input { min-width: 0; flex: 1; padding: .75rem .9rem; border: 1px solid rgba(43,75,95,.18); border-radius: 11px; background: rgba(255,255,255,.96); color: #17375d; font: inherit; }
.admin-user-search button { padding: .65rem 1rem; border: 0; border-radius: 11px; background: #2ba899; color: white; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.admin-user-search button:hover { background: #197d72; }
.admin-staff-list { overflow: hidden; border: 1px solid rgba(43,75,95,.16); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(25,55,75,.13); }
.admin-staff-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; border-bottom: 1px solid #dbe6e6; }
.admin-staff-row:last-child { border-bottom: 0; }
.admin-staff-identity, .admin-staff-actions { display: flex; align-items: center; gap: .75rem; }
.admin-staff-identity { min-width: 0; }
.admin-staff-avatar, .admin-profile-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2ba899, #17375d); color: white; font-size: .85rem; font-weight: 900; }
.admin-staff-row strong, .admin-staff-row span { display: block; }
.admin-staff-row strong { color: #17375d; font-size: .95rem; }
.admin-staff-row span { margin-top: .25rem; color: #55718a; font-size: .78rem; }
.admin-staff-row small { display: block; margin-top: .2rem; color: #7890a2; font-size: .72rem; }
.admin-view-button { padding: .55rem .8rem; border: 1px solid #b9d9d5; border-radius: 999px; color: #16776d; font-size: .76rem; font-weight: 800; }
.admin-view-button:hover { background: #e8f8f4; color: #125c55; }
.admin-delete-button { min-height: 38px; padding: .55rem .85rem; border: 1px solid #e4b9b1; border-radius: 999px; background: #fff7f5; color: #b2492e; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.admin-delete-button:hover { border-color: #b2492e; background: #b2492e; color: white; }
.admin-logout-button { min-height: 38px; padding: .55rem .9rem; border: 1px solid #d5dfe2; border-radius: 999px; background: #fff; color: #17375d; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.admin-logout-button:hover { border-color: #b2492e; background: #fff7f5; color: #b2492e; }
.admin-setup-panel { position: relative; display: grid; gap: .65rem; margin-top: 1.25rem; padding: 1.05rem; overflow: hidden; border: 1px solid rgba(45,168,152,.28); border-radius: 18px; background: linear-gradient(135deg, #e8f8f4, #f3f1ff 58%, #fff6e7); box-shadow: 0 12px 28px rgba(45,104,112,.1); }
.admin-setup-panel::after { position: absolute; right: -24px; bottom: -32px; width: 105px; height: 105px; border-radius: 50%; background: rgba(255,255,255,.45); content: ""; }
.admin-setup-badge { position: absolute; top: .85rem; right: .85rem; z-index: 1; padding: .25rem .5rem; border-radius: 999px; background: #2ba899; color: white; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.admin-setup-panel h3 { margin: 0; color: #123f52; font-size: .98rem; }
.admin-setup-panel p { max-width: 34ch; margin: .25rem 0 .35rem; color: #55718a; font-size: .75rem; line-height: 1.45; }
.admin-credentials-form { position: relative; z-index: 2; display: grid; gap: .6rem; margin-top: .2rem; }
.admin-credentials-form input { width: 100%; min-height: 42px; padding: .65rem .75rem; border: 1px solid rgba(43,75,95,.18); border-radius: 10px; background: rgba(255,255,255,.9); color: #17375d; }
.admin-credentials-form .btn { min-height: 44px; }
.admin-recovery-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto .5rem; border-radius: 14px; background: linear-gradient(135deg, #17375d, #2ba899); color: white; font-size: .75rem; font-weight: 900; }
.admin-recovery-page .recovery-card { width: min(100%, 480px); }
.admin-otp-choice { display: flex !important; align-items: flex-start; gap: .55rem; color: #55718a !important; font-size: .76rem !important; line-height: 1.35; }
.admin-otp-choice input { width: auto !important; min-height: 0; margin-top: .15rem; accent-color: #2ba899; }
.recovery-form .admin-otp-choice input { flex: 0 0 16px; width: 16px !important; height: 16px; min-width: 16px; min-height: 16px !important; margin: .1rem 0 0; padding: 0; border: 1px solid #9bb8b4; border-radius: 4px; background: white; accent-color: #2ba899; }
.admin-empty-state { margin: 0; padding: 2rem; color: #55718a; text-align: center; }
.reference-admin-page { width: min(100%, 1180px); min-height: calc(100vh - 110px); margin: 0 auto; padding: 1.4rem 0 5rem; color: #17232b; }
.reference-admin-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(2rem, 5vw, 4rem); }
.reference-admin-back { display: inline-flex; align-items: center; gap: .45rem; color: #57676f; font-size: .8rem; font-weight: 700; }
.reference-admin-back:hover { color: #0b5566; }
.reference-admin-logout { padding: .65rem 1rem; border: 1px solid #e1e9ea; border-radius: 999px; background: white; color: #57676f; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.reference-admin-logout:hover { border-color: #e1741f; color: #e1741f; }
.reference-admin-messages { margin-bottom: 1rem; }
.reference-admin-page-head { max-width: 600px; }
.reference-admin-kicker { display: block; margin-bottom: .75rem; color: #0b8b88; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reference-admin-page-head h1, .reference-admin-list-head h1 { margin: 0 0 .5rem; color: #17232b; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.reference-admin-page-head p, .reference-admin-list-head p { margin: 0; color: #57676f; font-size: .92rem; line-height: 1.55; }
.reference-admin-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.2rem; }
.reference-admin-role-card { display: flex; min-height: 290px; flex-direction: column; gap: .8rem; padding: 1.45rem; border: 1px solid #e1e9ea; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px rgba(7,45,54,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.reference-admin-role-card:hover { transform: translateY(-3px); border-color: var(--role-accent); box-shadow: 0 10px 28px rgba(7,45,54,.09); }
.reference-admin-role-doctors { --role-accent: #0b5566; --role-tint: #e7f1f3; }
.reference-admin-role-reception { --role-accent: #e1741f; --role-tint: #fbe7d4; }
.reference-admin-role-staff { --role-accent: #3e6e78; --role-tint: #e7efef; }
.reference-admin-role-wards { --role-accent: #1c7a8e; --role-tint: #dff7fb; }
.reference-admin-role-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: var(--role-tint); color: var(--role-accent); font-size: 1.8rem; font-weight: 800; }
.reference-admin-role-card strong { color: #17232b; font-size: 2rem; letter-spacing: -.04em; }
.reference-admin-role-card strong small { color: #57676f; font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.reference-admin-role-card h2 { margin: 0; color: #17232b; font-size: 1.05rem; }
.reference-admin-role-card p { margin: 0; color: #57676f; font-size: .82rem; line-height: 1.5; }
.reference-admin-enter { display: flex; align-items: center; gap: .45rem; margin-top: auto; color: var(--role-accent); font-size: .8rem; font-weight: 800; }
.reference-admin-enter b { font-size: 1.35rem; font-weight: 400; }
.reference-admin-list-back { margin-bottom: 1.4rem; }
.reference-admin-list-head { margin-bottom: 1.5rem; }
.reference-admin-panel { overflow: hidden; border: 1px solid #e1e9ea; border-radius: 18px; background: white; box-shadow: 0 2px 8px rgba(7,45,54,.06); }
.reference-admin-toolbar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e1e9ea; }
.reference-admin-toolbar > span { flex: 1; color: #57676f; font-size: .78rem; }
.reference-admin-toolbar > span strong { color: #17232b; }
.reference-admin-search { display: flex; align-items: center; gap: .45rem; width: min(100%, 390px); padding: .3rem .35rem .3rem .75rem; border: 1px solid #e1e9ea; border-radius: 999px; background: #f4f8f8; }
.reference-admin-search span { color: #8b979e; font-size: 1rem; }
.reference-admin-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #17232b; font: inherit; font-size: .78rem; }
.reference-admin-search button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: #0b5566; color: white; cursor: pointer; }
.reference-admin-add { padding: .62rem .85rem; border-radius: 999px; background: #0b5566; color: white; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.reference-admin-add:hover { background: #073c48; color: white; }
.reference-admin-table-head, .reference-admin-user-row { display: grid; grid-template-columns: minmax(190px, 2.1fr) minmax(130px, 1.5fr) minmax(170px, 1.9fr) minmax(80px, .95fr) minmax(110px, 1fr); align-items: center; gap: 1rem; padding: .8rem 1.25rem; }
.reference-admin-table-head { background: #eef5f5; color: #57676f; font-size: .72rem; font-weight: 800; }
.reference-admin-user-row { border-top: 1px solid #e1e9ea; }
.reference-admin-user-row[hidden], .reference-admin-empty[hidden] { display: none; }
.reference-admin-user-row:hover { background: #f4f8f8; }
.reference-admin-user-name { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.reference-admin-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e7f1f3; color: #0b5566; font-size: .75rem; font-weight: 900; }
.reference-admin-user-name strong, .reference-admin-user-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-admin-user-name strong { color: #17232b; font-size: .82rem; }
.reference-admin-user-name small, .reference-admin-detail, .reference-admin-contact { margin-top: .2rem; color: #8b979e; font-size: .72rem; }
.reference-admin-detail, .reference-admin-contact { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-admin-status { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .35rem .55rem; border-radius: 999px; background: #e3f5ea; color: #1f8a4c; font-size: .68rem; font-weight: 800; }
.reference-admin-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reference-admin-status.is-inactive { background: #edf1f2; color: #667279; }
.reference-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.reference-admin-actions a, .reference-admin-actions button { padding: .42rem .6rem; border: 0; border-radius: 8px; background: transparent; color: #0b5566; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.reference-admin-actions a:hover { background: #e7f1f3; }
.reference-admin-actions button { color: #b2492e; }
.reference-admin-actions button:hover { background: #fbe7d4; }
.reference-admin-actions form { margin: 0; }
.reference-admin-empty { padding: 3rem 1rem; color: #57676f; text-align: center; font-size: .82rem; }
.reference-admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(123, 196, 208, 0.2);
  background: linear-gradient(180deg, rgba(8, 39, 48, 1) 0%, rgba(10, 52, 64, 1) 100%);
}
.reference-admin-summary-item {
  display: grid;
  gap: .25rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(123, 196, 208, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 53, 64, 0.96) 0%, rgba(8, 38, 46, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(130, 190, 210, 0.08);
}
.reference-admin-summary-item span { color: #b7dfe8; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reference-admin-summary-item strong { color: #edf8ff; font-size: 1.3rem; }
.reference-admin-ward-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; padding: 1.25rem; }
.reference-admin-ward-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(123, 196, 208, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 39, 48, 1) 0%, rgba(10, 52, 64, 1) 100%);
  box-shadow: 0 18px 40px rgba(0, 17, 24, 0.2);
}
.reference-admin-ward-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.reference-admin-ward-code { display: inline-flex; align-items: center; padding: .35rem .55rem; border-radius: 999px; background: rgba(77, 205, 228, 0.16); color: #8feaf9; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.reference-admin-ward-header h2 { margin: .5rem 0 0; color: #edf8ff; font-size: 1.2rem; }
.reference-admin-ward-floor { margin: 0; color: #c2dfe8; font-size: .76rem; }
.reference-admin-ward-delete {
  padding: .45rem .62rem;
  border: 1px solid rgba(104, 214, 186, 0.4);
  border-radius: 8px;
  background: rgba(19, 116, 108, 0.18);
  color: #a8f5d9;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}
.reference-admin-bed-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.reference-admin-bed-pill-wrap { display: inline-flex; align-items: center; gap: .25rem; }
.reference-admin-bed-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: .5rem .62rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.reference-admin-bed-pill strong { font-size: .78rem; line-height: 1.1; }
.reference-admin-bed-pill span { margin-top: .18rem; font-size: .64rem; line-height: 1.1; }
.reference-admin-bed-pill-free { background: rgba(47, 164, 125, 0.16); border-color: rgba(70, 209, 166, 0.32); color: #aef5d8; }
.reference-admin-bed-pill-available { background: rgba(57, 157, 199, 0.16); border-color: rgba(104, 199, 240, 0.26); color: #b8efff; }
.reference-admin-bed-pill-occupied { background: rgba(190, 75, 54, 0.16); border-color: rgba(242, 134, 109, 0.26); color: #ffc9b9; }
.reference-admin-bed-pill-maintenance { background: rgba(212, 156, 39, 0.16); border-color: rgba(250, 205, 100, 0.26); color: #ffe9b0; }
.reference-admin-bed-pill-reserved { background: rgba(96, 118, 214, 0.16); border-color: rgba(142, 121, 255, 0.26); color: #d8d4ff; }
.reference-admin-bed-pill-out_of_service { background: rgba(121, 138, 146, 0.16); border-color: rgba(170, 186, 197, 0.26); color: #e4edf1; }
.reference-admin-bed-delete {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(94, 223, 197, 0.3);
  border-radius: 50%;
  background: rgba(27, 130, 119, 0.16);
  color: #9ef3d9;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}
.reference-admin-bed-empty { color: #cfe5ee; font-size: .73rem; }
.reference-admin-bed-form { display: flex; gap: .5rem; margin-top: .25rem; }
.reference-admin-bed-form input {
  flex: 1;
  min-height: 38px;
  padding: .5rem .7rem;
  border: 1px solid rgba(130, 188, 201, 0.26);
  border-radius: 9px;
  background: rgba(4, 24, 31, 0.62);
  color: #edf8ff;
  font: inherit;
}
.reference-admin-bed-form input::placeholder { color: #8ff0ff; }
.reference-admin-bed-form button {
  min-height: 38px;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #4cc6d8 0%, #1c7a8e 100%);
  color: #f2fcff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.reference-admin-compact-button { padding: .42rem .55rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #0b5566; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.reference-admin-compact-button.is-danger { color: #b2492e; }
.reference-admin-compact-button:disabled { opacity: .5; cursor: not-allowed; }
.reference-admin-view-dialog { width: min(100% - 1rem, 620px); border: 1px solid rgba(146, 206, 217, 0.14); border-radius: 18px; background: linear-gradient(180deg, rgba(7,46,56,1) 0%, rgba(8,56,69,1) 100%); color: #edf8ff; box-shadow: 0 28px 80px rgba(2, 12, 18, 0.28); }
.reference-admin-view-dialog::backdrop { background: rgba(3, 18, 27, 0.42); backdrop-filter: blur(2px); }
.reference-admin-view-dialog[open] { padding: 0; }
.reference-admin-view-content { padding: 1.2rem 1.2rem 1rem; }
.reference-admin-view-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .4rem; }
.reference-admin-view-title-wrap { display: flex; align-items: center; gap: .8rem; }
.reference-admin-view-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: rgba(62, 208, 240, 0.18); color: #7fe5f3; font-size: 1.2rem; font-weight: 900; }
.reference-admin-view-header h2 { margin: 0; color: #edf8ff; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 900; }
.reference-admin-view-close { width: 36px; height: 36px; border: 1px solid rgba(146, 206, 217, 0.18); border-radius: 10px; background: rgba(10, 31, 39, 0.75); color: #edf8ff; font-size: 1.6rem; cursor: pointer; }
.reference-admin-view-grid { display: grid; gap: 0; margin-top: .75rem; }
.reference-admin-view-field { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .7rem 0; border-top: 1px solid rgba(146, 206, 217, 0.14); }
.reference-admin-view-field:first-child { border-top: 0; }
.reference-admin-view-field span { color: #9ec7d3; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reference-admin-view-field strong { color: #edf8ff; font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.reference-admin-add-dialog { width: min(100% - 1.5rem, 760px); border: 1px solid rgba(147, 192, 208, 0.18); border-radius: 22px; background: rgba(10, 26, 35, 0.96); color: #eaf4f8; box-shadow: 0 30px 80px rgba(2, 12, 20, 0.7); }
.reference-admin-add-dialog::backdrop { background: rgba(2, 12, 18, 0.7); backdrop-filter: blur(2px); }
.reference-admin-add-dialog[open] { padding: 0; }
.reference-admin-add-form { display: grid; gap: 1.1rem; padding: 1.25rem 1.45rem 1.15rem; }
.reference-admin-add-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding-bottom: .95rem; border-bottom: 1px solid rgba(160, 194, 209, 0.18); }
.reference-admin-add-dialog-header > div { display: flex; align-items: center; gap: .8rem; }
.reference-admin-add-dialog-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(119, 197, 224, 0.14); color: #8ad2eb; font-size: 1.35rem; font-weight: 900; }
.reference-admin-add-dialog-header h2 { margin: 0; color: #edf6fb; font-size: 1.15rem; }
.reference-admin-add-dialog-header p { margin: .15rem 0 0; color: #a5b9c5; font-size: .78rem; }
.reference-admin-add-close { width: 34px; height: 34px; border: 1px solid rgba(160, 194, 209, 0.22); border-radius: 50%; background: rgba(17, 44, 57, 0.8); color: #dff2fb; font-size: 1.5rem; cursor: pointer; }
.reference-admin-add-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.reference-admin-add-field { display: grid; gap: .45rem; color: #edf6fb; font-size: .75rem; font-weight: 700; }
.reference-admin-add-field b { color: #79d5f8; }
.reference-admin-add-field.full-width { grid-column: 1 / -1; }
.reference-admin-add-field input, .reference-admin-add-field select, .reference-admin-add-field textarea { width: 100%; min-height: 46px; padding: .7rem .9rem; border: 1px solid rgba(123, 176, 200, 0.5); border-radius: 12px; background: rgba(11, 29, 40, 0.8); color: #edf6fb; font: inherit; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.reference-admin-add-field textarea { min-height: 94px; resize: vertical; }
.reference-admin-add-field input::placeholder, .reference-admin-add-field textarea::placeholder, .reference-admin-add-field select { color: #7f9ca9; }
.reference-admin-add-field input:focus, .reference-admin-add-field select:focus, .reference-admin-add-field textarea:focus { border-color: #7ec8e8; background: rgba(13, 35, 48, 0.9); box-shadow: 0 0 0 3px rgba(126, 200, 232, 0.12); outline: none; }
.reference-admin-add-field.is-error input, .reference-admin-add-field.is-error select, .reference-admin-add-field.is-error textarea { border-color: #ef8a7d; background: rgba(49, 20, 16, 0.6); }
.reference-admin-inline-error { min-height: 1.2rem; color: #ff9a8c; font-size: .74rem; font-weight: 700; }
.reference-admin-add-dialog-footer { display: flex; justify-content: flex-end; gap: .8rem; padding-top: .15rem; }
.reference-admin-primary-button, .reference-admin-secondary-button { min-height: 42px; padding: .7rem 1.1rem; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.reference-admin-secondary-button { border: 1px solid rgba(160, 194, 209, 0.2); background: rgba(19, 36, 46, 0.9); color: #ebf6fb; }
.reference-admin-primary-button { border: 0; background: linear-gradient(135deg, #7dc9ee 0%, #7d9ae9 100%); color: #0d1b2a; box-shadow: 0 12px 28px rgba(115, 170, 228, 0.28); }
.reference-admin-primary-button:hover { filter: brightness(1.04); }
.reference-admin-primary-button:disabled { background: rgba(136, 180, 204, 0.4); color: rgba(13, 27, 42, 0.7); box-shadow: none; cursor: not-allowed; }
.reference-admin-confirm-dialog { width: min(100% - 2rem, 440px); padding: 0; border: 1px solid rgba(147, 192, 208, 0.22); border-radius: 18px; background: rgba(10, 26, 35, 0.98); color: #eaf4f8; box-shadow: 0 30px 80px rgba(2, 12, 20, 0.72); }
.reference-admin-confirm-dialog::backdrop { background: rgba(2, 12, 18, 0.72); backdrop-filter: blur(3px); }
.reference-admin-confirm-content { padding: 1.35rem; }
.reference-admin-confirm-header { display: flex; align-items: flex-start; gap: .85rem; }
.reference-admin-confirm-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: rgba(239, 138, 125, .15); color: #ffab9d; font-size: 1.2rem; font-weight: 900; }
.reference-admin-confirm-header h2 { margin: .1rem 0 0; color: #edf6fb; font-size: 1.05rem; }
.reference-admin-confirm-header p { margin: .35rem 0 0; color: #a5b9c5; font-size: .84rem; line-height: 1.45; }
.reference-admin-confirm-footer { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.35rem; }
.reference-admin-danger-button { min-height: 42px; padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: #d9675d; color: #fff7f5; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.reference-admin-danger-button:hover { background: #e2776d; }
@media (max-width: 820px) { .reference-admin-role-grid { grid-template-columns: 1fr; }.reference-admin-toolbar { align-items: stretch; flex-direction: column; }.reference-admin-search { width: 100%; max-width: none; }.reference-admin-add { text-align: center; }.reference-admin-table-head { display: none; }.reference-admin-user-row { grid-template-columns: 1fr; gap: .55rem; padding: 1rem; }.reference-admin-detail::before { content: "Detail: "; color: #8b979e; }.reference-admin-contact::before { content: "Contact: "; color: #8b979e; }.reference-admin-actions { justify-content: flex-start; }.reference-admin-actions a, .reference-admin-actions button { flex: 1; text-align: center; }.reference-admin-add-form-grid { grid-template-columns: 1fr; } }
.reference-admin-shell { padding: 0; overflow-x: hidden; background: #052026; color: #eaf3f4; }
.reference-admin-shell::before { display: none; }
.reference-admin-shell > .product-header { display: none; }
.reference-admin-shell .reference-admin-page { width: 100%; max-width: none; min-height: 100vh; padding: 0 0 5rem; }
.reference-admin-shell .reference-admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1.25rem, 4vw, 3rem); border-bottom: 1px solid #164854; background: #0d3742; }
.reference-admin-shell .reference-admin-brand { display: flex; align-items: center; gap: .8rem; }
.reference-admin-shell .reference-admin-brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 9px; background: #168ba3; color: white; font-size: 1.3rem; }
.reference-admin-shell .reference-admin-brand strong, .reference-admin-shell .reference-admin-brand small { display: block; }
.reference-admin-shell .reference-admin-brand strong { color: #f5fbfb; font-size: 1rem; }
.reference-admin-shell .reference-admin-brand small { margin-top: .12rem; color: #a9c6cb; font-size: .78rem; }
.reference-admin-shell .reference-admin-chip { display: flex; align-items: center; gap: .65rem; padding: .35rem .55rem .35rem .35rem; border: 1px solid #164854; border-radius: 999px; }
.reference-admin-shell .reference-admin-chip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #0f4753; color: #35a6bc; font-size: .75rem; font-weight: 900; }
.reference-admin-shell .reference-admin-chip strong, .reference-admin-shell .reference-admin-chip small { display: block; }
.reference-admin-shell .reference-admin-chip strong { color: #eaf3f4; font-size: .82rem; }
.reference-admin-shell .reference-admin-chip small { color: #9bb9bf; font-size: .68rem; }
.reference-admin-shell .reference-admin-chip form { margin-left: .2rem; }
.reference-admin-shell .reference-admin-chip button { border: 0; background: transparent; color: #86a0a6; font: inherit; cursor: pointer; }
.reference-admin-shell .reference-admin-chip { min-width: 235px; min-height: 54px; cursor: pointer; text-align: left; border-color: #d7e6e8; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.reference-admin-shell .reference-admin-chip:hover, .reference-admin-shell .reference-admin-chip:focus-visible { border-color: #35a6bc; box-shadow: 0 10px 26px rgba(0,0,0,.3); outline: none; }
.reference-admin-shell .reference-admin-chip > span { background: #e7f1f3; color: #0b7185; }
.reference-admin-shell .reference-admin-chip strong { color: #17232b; font-size: .86rem; }
.reference-admin-shell .reference-admin-chip small { color: #57676f; font-size: .72rem; }
.reference-admin-shell .reference-admin-chip > b { margin-left: .25rem; color: #57676f; font-size: .9rem; font-weight: 700; }
.reference-admin-drawer-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,15,20,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.reference-admin-drawer-overlay.is-visible { opacity: 1; pointer-events: auto; }
.reference-admin-drawer { position: fixed; top: 0; right: 0; z-index: 41; display: flex; width: min(100%, 390px); height: 100vh; flex-direction: column; padding: 1.5rem; border-left: 1px solid #164854; background: #0d3742; box-shadow: -18px 0 45px rgba(0,0,0,.3); transform: translateX(100%); transition: transform .25s ease; }
.reference-admin-drawer.is-open { transform: translateX(0); }
.reference-admin-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid #164854; color: #eaf3f4; font-size: 1rem; }
.reference-admin-drawer-head button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #123840; color: #b7cbcf; font-size: 1.4rem; cursor: pointer; }
.reference-admin-drawer-identity { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 0; border-bottom: 1px solid #164854; }
.reference-admin-drawer-identity > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: #168ba3; color: white; font-size: 1rem; font-weight: 900; }
.reference-admin-drawer-identity strong, .reference-admin-drawer-identity small { display: block; }
.reference-admin-drawer-identity strong { color: #eaf3f4; font-size: 1rem; }
.reference-admin-drawer-identity small { margin-top: .2rem; color: #86a0a6; font-size: .76rem; }
.reference-admin-drawer dl { margin: 0; }
.reference-admin-drawer dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #164854; }
.reference-admin-drawer dt { color: #86a0a6; font-size: .76rem; }
.reference-admin-drawer dd { margin: 0; color: #eaf3f4; font-size: .8rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.reference-admin-drawer-logout { width: 100%; margin-top: auto; padding: .85rem 1rem; border: 0; border-radius: 999px; background: #e1741f; color: white; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.reference-admin-drawer-logout:hover { background: #f0904f; }
.admin-delete-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(7, 24, 31, 0.5); }
.admin-delete-overlay[hidden] { display: none; }
.reference-admin-shell .admin-delete-modal, .admin-delete-modal { position: relative; width: min(100%, 430px); padding: 1.5rem 1.5rem 1.2rem; border: 1px solid rgba(122,173,187,.18); border-radius: 22px; background: linear-gradient(180deg, rgba(7,46,56,1) 0%, rgba(9,56,68,1) 100%) !important; color: #edf8ff !important; box-shadow: 0 30px 80px rgba(0, 22, 31, 0.3); }
.reference-admin-shell .admin-delete-close, .admin-delete-close { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border: 1px solid rgba(145, 196, 211, 0.22); border-radius: 50%; background: rgba(16, 48, 60, 0.7); color: #eaf3f4; font-size: 1.4rem; cursor: pointer; }
.reference-admin-shell .admin-delete-warning, .admin-delete-warning { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 1rem; border-radius: 14px; background: rgba(69, 201, 214, 0.14); color: #7fe5f3; font-size: 1.35rem; font-weight: 900; }
.reference-admin-shell .admin-delete-modal h2, .admin-delete-modal h2 { margin: 0 0 .55rem; color: #edf8ff; font-size: 1.2rem; }
.reference-admin-shell .admin-delete-modal p, .admin-delete-modal p { margin: 0 0 1rem; color: #d1e6ee; font-size: .82rem; line-height: 1.5; }
.reference-admin-shell .admin-delete-modal p strong, .admin-delete-modal p strong { color: #87ecff; }
.reference-admin-shell .admin-delete-modal label, .admin-delete-modal label { display: block; margin: .8rem 0 .4rem; color: #dfeef3; font-size: .75rem; font-weight: 700; }
.reference-admin-shell .admin-delete-modal input, .reference-admin-shell .admin-delete-modal textarea, .admin-delete-modal input, .admin-delete-modal textarea { width: 100%; min-height: 44px; padding: .7rem .8rem; border: 1px solid rgba(147, 204, 218, 0.28); border-radius: 10px; background: rgba(5, 27, 34, 0.45); color: #edf8ff; font: inherit; resize: vertical; }
.reference-admin-shell .admin-delete-modal textarea, .admin-delete-modal textarea { min-height: 82px; }
.reference-admin-shell .admin-delete-modal input:focus, .reference-admin-shell .admin-delete-modal textarea:focus, .admin-delete-modal input:focus, .admin-delete-modal textarea:focus { border-color: #7fe5f3; outline: 2px solid rgba(127,229,243,.18); }
.reference-admin-shell .admin-delete-modal-actions, .admin-delete-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }
.reference-admin-shell .admin-delete-modal-actions button, .admin-delete-modal-actions button { min-height: 40px; padding: .6rem .9rem; border: 0; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.reference-admin-shell .admin-delete-modal-actions button:first-child, .admin-delete-modal-actions button:first-child { border: 1px solid rgba(157, 210, 225, 0.25); background: rgba(15, 39, 49, 0.7); color: #edf8ff; }
.reference-admin-shell .admin-delete-modal-actions button:last-child, .admin-delete-modal-actions button:last-child { background: linear-gradient(135deg, #38d0ef 0%, #0d7d9a 100%) !important; color: #fff; box-shadow: 0 14px 24px rgba(31, 171, 206, 0.28); }
.reference-admin-shell .admin-delete-modal-actions button:last-child:disabled, .admin-delete-modal-actions button:last-child:disabled { background: #6f909a !important; box-shadow: none; color: rgba(255,255,255,0.82); cursor: not-allowed; }
.reference-admin-shell .reference-admin-topline, .reference-admin-shell .reference-admin-landing, .reference-admin-shell .reference-admin-list-view { width: min(100%, 1180px); margin-right: auto; margin-left: auto; }
.reference-admin-shell .reference-admin-topline { display: flex; justify-content: flex-start; margin-top: 1.3rem; margin-bottom: 0; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.reference-admin-shell .reference-admin-landing, .reference-admin-shell .reference-admin-list-view { padding: clamp(2.8rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 0; }
.reference-admin-shell .reference-admin-back { color: #86a0a6; }
.reference-admin-shell .reference-admin-back-left { display: inline-flex; align-items: center; justify-content: flex-start; }
.reference-admin-shell .reference-admin-back:hover { color: #35a6bc; }
.reference-admin-shell .reference-admin-kicker { color: #35a6bc; }
.reference-admin-shell .reference-admin-page-head h1, .reference-admin-shell .reference-admin-list-head h1 { color: #eaf3f4; }
.reference-admin-shell .reference-admin-page-head p, .reference-admin-shell .reference-admin-list-head p { color: #b7cbcf; }
.reference-admin-shell .reference-admin-role-card { border-color: #164854; background: #0d3742; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.reference-admin-shell .reference-admin-role-card:hover { border-color: var(--role-accent); box-shadow: 0 14px 32px rgba(0,0,0,.32); }
.reference-admin-shell .reference-admin-role-card strong, .reference-admin-shell .reference-admin-role-card h2 { color: #eaf3f4; }
.reference-admin-shell .reference-admin-role-card p { color: #b7cbcf; }
.reference-admin-shell .reference-admin-role-doctors { --role-accent: #35a6bc; --role-tint: #0f4753; }
.reference-admin-shell .reference-admin-role-reception { --role-accent: #f0904f; --role-tint: #48300f; }
.reference-admin-shell .reference-admin-role-staff { --role-accent: #7fb3bc; --role-tint: #123840; }
.reference-admin-shell .reference-admin-role-card strong small { color: #b7cbcf; }
.reference-admin-shell .reference-admin-panel { border-color: #164854; background: #0d3742; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.reference-admin-shell .reference-admin-toolbar { border-color: #164854; }
.reference-admin-shell .reference-admin-toolbar > span { color: #b7cbcf; }
.reference-admin-shell .reference-admin-toolbar > span strong { color: #eaf3f4; }
.reference-admin-shell .reference-admin-search { border-color: #164854; background: #0a2f38; }
.reference-admin-shell .reference-admin-search input { color: #eaf3f4; }
.reference-admin-shell .reference-admin-search input::placeholder { color: #86a0a6; }
.reference-admin-shell .admin-management-page { width: min(100%, 980px); min-height: 100vh; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 5rem; color: #eaf3f4; }
.reference-admin-shell .admin-profile-back { margin-bottom: 1.25rem; }
.reference-admin-shell .admin-profile-back a { color: #86a0a6; font-size: .82rem; font-weight: 700; }
.reference-admin-shell .admin-profile-back a:hover { color: #35a6bc; }
.reference-admin-shell .admin-staff-profile-card { max-width: 1100px; margin: 0 auto; padding: clamp(1.25rem, 2.8vw, 2rem); border: 1px solid rgba(122, 173, 187, 0.18); border-radius: 18px; background: linear-gradient(180deg, rgba(6, 38, 46, 1) 0%, rgba(7, 46, 56, 1) 100%); box-shadow: 0 22px 46px rgba(0, 14, 20, 0.42); }
.reference-admin-shell .admin-profile-hero { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(122, 173, 187, 0.18); }
.reference-admin-shell .admin-profile-avatar { display: grid; width: 54px; height: 54px; place-items: center; flex-basis: 54px; border-radius: 50%; background: linear-gradient(135deg, #3ed0f0 0%, #1f9ec7 100%); color: white; font-size: 1.7rem; font-weight: 900; }
.reference-admin-shell .admin-profile-hero .minimal-workspace-kicker { display: inline-block; margin-bottom: .3rem; color: #82d9ee; font-size: .8rem; font-weight: 700; }
.reference-admin-shell .admin-profile-hero h1 { margin: .15rem 0 .12rem; color: #eaf3f4; font-size: clamp(2.1rem, 3vw, 3rem); line-height: 1.1; }
.reference-admin-shell .admin-profile-hero p { margin: 0; color: #b7cbcf; font-size: 1.02rem; }
.reference-admin-shell .admin-profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: .5rem; }
.reference-admin-shell .admin-profile-details div { padding: 1rem 0; border-bottom: 1px solid rgba(122, 173, 187, 0.18); }
.reference-admin-shell .admin-profile-details dt { color: #93b2be; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reference-admin-shell .admin-profile-details dd { margin: .45rem 0 0; color: #edf8ff; font-size: 1.08rem; font-weight: 700; }
.reference-admin-shell .admin-profile-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.reference-admin-shell .admin-profile-actions .workspace-quick-btn { min-height: 42px; padding: .7rem 1.2rem; border: 1px solid rgba(120, 185, 204, 0.2); border-radius: 12px; background: rgba(18, 58, 69, 0.9); color: #eef8ff; font-size: .82rem; font-weight: 800; }
.reference-admin-shell .admin-profile-actions .workspace-quick-btn:hover { border-color: rgba(120, 215, 238, 0.45); background: rgba(26, 74, 87, 0.95); color: white; }
.reference-admin-shell .admin-profile-actions .admin-delete-button { min-height: 42px; padding: .7rem 1.15rem; border: 1px solid rgba(240, 147, 89, 0.7); border-radius: 12px; background: rgba(234, 147, 71, 0.08); color: #f4b58b; font-size: .82rem; font-weight: 800; }
.reference-admin-shell .admin-profile-actions .admin-delete-button:hover { border-color: rgba(240, 147, 89, 0.95); background: rgba(234, 147, 71, 0.18); color: #ffd8b4; }
@media (max-width: 600px) { .reference-admin-shell .admin-profile-details { grid-template-columns: 1fr; }.reference-admin-shell .admin-profile-actions { align-items: stretch; flex-direction: column; }.reference-admin-shell .admin-profile-actions > * { width: 100%; text-align: center; } }
.reference-admin-shell .reference-admin-search button, .reference-admin-shell .reference-admin-add { background: #1c7a8e; }
.reference-admin-shell .reference-admin-table-head { background: #0a2f38; color: #b7cbcf; }
.reference-admin-shell .reference-admin-user-row { border-color: #164854; }
.reference-admin-shell .reference-admin-user-row:hover { background: #0a2f38; }
.reference-admin-shell .reference-admin-user-name strong { color: #eaf3f4; }
.reference-admin-shell .reference-admin-user-name small, .reference-admin-shell .reference-admin-detail, .reference-admin-shell .reference-admin-contact { color: #86a0a6; }
.reference-admin-shell .reference-admin-avatar { background: #0f4753; color: #35a6bc; }
.reference-admin-shell .reference-admin-empty { color: #b7cbcf; }
.reference-admin-shell .reference-admin-messages { width: min(100%, 1180px); margin: 1rem auto 0; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.reference-admin-shell .message-success { background: #123b26; color: #4ecb86; }
.reference-admin-shell .message-error { background: #48200f; color: #f0904f; }
@media (max-width: 720px) { .reference-admin-shell .reference-admin-topbar { align-items: flex-start; gap: 1rem; }.reference-admin-shell .reference-admin-brand strong { font-size: .84rem; }.reference-admin-shell .reference-admin-chip small { display: none; }.reference-admin-shell .reference-admin-chip { flex-shrink: 0; } }
.admin-profile-back { margin-bottom: 1rem; font-size: .82rem; font-weight: 800; }
.reference-admin-shell .admin-profile-back a, .admin-profile-back a { color: #8ec7d8 !important; }
.reference-admin-shell .admin-staff-profile-card, .admin-staff-profile-card { padding: 1.5rem; border: 1px solid rgba(122,173,187,.18); border-radius: 20px; background: linear-gradient(180deg, rgba(6,38,46,1) 0%, rgba(7,46,56,1) 100%) !important; box-shadow: 0 18px 42px rgba(0,18,25,.4) !important; }
.reference-admin-shell .admin-profile-hero, .admin-profile-hero { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(122,173,187,.2); }
.reference-admin-shell .admin-profile-avatar, .admin-profile-avatar { flex-basis: 64px; width: 64px; height: 64px; font-size: 1.15rem; background: linear-gradient(135deg, #3ed0f0 0%, #1f9ec7 100%) !important; color: white !important; }
.reference-admin-shell .admin-profile-hero h1, .admin-profile-hero h1 { margin: .35rem 0 .2rem; color: #edf9ff !important; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.reference-admin-shell .admin-profile-hero p, .admin-profile-hero p { margin: 0; color: #b7cbcf !important; }
.reference-admin-shell .admin-profile-details, .admin-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; }
.reference-admin-shell .admin-profile-details div, .admin-profile-details div { padding: 1rem 0; border-bottom: 1px solid rgba(122,173,187,.2); }
.reference-admin-shell .admin-profile-details dt, .admin-profile-details dt { color: #93b2be !important; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.reference-admin-shell .admin-profile-details dd, .admin-profile-details dd { margin: .25rem 0 0; color: #edf8ff !important; font-size: .9rem; font-weight: 700; }
.reference-admin-shell .admin-profile-actions, .admin-profile-actions { display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; }
.reference-admin-shell .admin-profile-actions .workspace-quick-btn, .admin-profile-actions .workspace-quick-btn { background: rgba(13, 85, 99, 0.92) !important; border-color: rgba(144, 211, 230, 0.22) !important; color: #edf8ff !important; }
.reference-admin-shell .admin-profile-actions .admin-delete-button, .admin-profile-actions .admin-delete-button { background: rgba(17, 124, 136, 0.18) !important; border-color: rgba(115, 221, 228, 0.42) !important; color: #a6effb !important; }
@media (max-width: 800px) { .admin-management-page { padding-inline: .5rem; }.admin-management-heading { align-items: flex-start; flex-direction: column; }.admin-management-actions, .admin-staff-actions, .admin-profile-actions { flex-wrap: wrap; }.admin-user-tabs { overflow-x: auto; }.admin-user-tabs a { white-space: nowrap; }.admin-user-search div, .admin-staff-row { align-items: stretch; flex-direction: column; }.admin-user-search button, .admin-view-button, .admin-delete-button { width: 100%; text-align: center; }.admin-profile-details { grid-template-columns: 1fr; } }
.hms-dashboard-shell { display: flex; width: 100%; min-height: 100vh; margin: 0; background: #f5f8fc; color: #102c55; }
.sidebar-scroll-locked { position: fixed; width: 100%; overflow: hidden; top: var(--sidebar-scroll-lock-top, 0); }
.hms-sidebar { width: 245px; flex: 0 0 245px; padding: 1.1rem .8rem; background: linear-gradient(180deg, #102f59, #0b2345); color: white; transition: width .22s ease, flex-basis .22s ease, padding .22s ease; }
.hms-sidebar.is-closed { width: 0; flex-basis: 0; padding-inline: 0; overflow: hidden; }
.hms-dashboard-shell.sidebar-closed .hms-sidebar { width: 0; flex-basis: 0; padding-inline: 0; overflow: hidden; }
.hms-brand { display: flex; align-items: center; gap: .65rem; padding: .2rem .6rem 1.6rem; }.hms-brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #fff; color: #1775e8; font-size: 1.5rem; font-weight: 900; }.hms-brand strong, .hms-brand small { display: block; }.hms-brand strong { font-size: .82rem; }.hms-brand small { margin-top: .12rem; color: #b9cee8; font-size: .58rem; }
.hms-sidebar-nav { display: grid; gap: .35rem; }.hms-sidebar-nav a, .hms-sidebar-nav button { display: flex; align-items: center; width: 100%; min-height: 39px; padding: .65rem .75rem; border: 0; border-radius: 8px; background: transparent; color: #d7e5f6; font: inherit; font-size: .76rem; text-align: left; cursor: pointer; }.hms-sidebar-nav a::before, .hms-sidebar-nav button::before { width: 22px; margin-right: .35rem; color: #8eb8ee; content: "•"; font-size: 1rem; }.hms-sidebar-nav a:hover, .hms-sidebar-nav a.active, .hms-sidebar-nav button:hover { background: #2478ed; color: white; }.hms-sidebar-nav form { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hms-dashboard-main { min-width: 0; flex: 1 1 auto; width: 0; padding: 0 1.5rem 2rem; transition: width .22s ease, padding .22s ease; }.hms-dashboard-shell.sidebar-closed .hms-dashboard-main { width: 100%; }
.hms-topbar { display: flex; align-items: center; gap: 1rem; min-height: 70px; border-bottom: 1px solid #e1eaf4; }
.hms-topbar .reference-profile-bar { position: static; min-height: 0; flex: 1; justify-content: flex-end; gap: .7rem; padding: 0; border: 0; }
.hms-topbar .reference-profile-identity, .hms-topbar .reference-profile-actions, .hms-topbar .reference-hospital-profile, .hms-topbar .reference-subscription-status, .hms-topbar .reference-view-profile, .hms-topbar .reference-signout { display: none; }
.hms-topbar .profile-drawer-wrap { order: 5; }
.hms-topbar .profile-drawer-trigger { background: #2878e7; }
.hms-global-search { display: flex; align-items: center; gap: .55rem; width: min(100%, 430px); min-height: 42px; padding: .35rem .4rem .35rem .85rem; border: 1px solid #dce7f3; border-radius: 11px; background: white; box-shadow: 0 5px 16px rgba(25,69,112,.05); }
.hms-global-search span { color: #5590d8; font-size: 1.05rem; }
.hms-global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #24466e; font: inherit; font-size: .78rem; }
.hms-search-button { min-height: 32px; padding: .4rem .75rem; border: 0; border-radius: 7px; background: #2478ed; color: white; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.hms-search-button:hover { background: #175fc4; }
.hms-notification { margin-left: auto; color: #2774d6; font-size: 1.4rem; }
.hms-sidebar-overlay { display: none; }
.hms-menu-toggle { width: 42px; height: 42px; border: 1px solid #c9d9d8; border-radius: 12px; background: #ffffff; color: #0f766e; font-size: 1.1rem; line-height: 1; box-shadow: 0 4px 12px rgba(16, 54, 61, .08); transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.hms-menu-toggle:hover { border-color: #0f766e; background: #e3f2ef; color: #0b615b; transform: translateY(-1px); }
.hms-menu-toggle:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.hms-menu-icon { display: block; transform: translateY(-1px); }
.hms-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0; padding: 1.35rem 1.5rem; border: 1px solid #dce8f4; border-radius: 12px; background: linear-gradient(100deg, #e8f4ff, #f6f9ff); }.hms-eyebrow { display: block; color: #2774d6; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.hms-welcome h1 { margin: .35rem 0 .2rem; color: #123b72; font-size: clamp(1.45rem, 2.5vw, 2rem); }.hms-welcome p { margin: 0; color: #5e7896; font-size: .82rem; }.hms-primary-action { display: inline-flex; align-items: center; min-height: 40px; padding: .65rem .95rem; border-radius: 8px; background: #2478ed; color: white; font-size: .76rem; font-weight: 800; }.hms-primary-action:hover { background: #175fc4; color: white; }
.hms-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-bottom: 1.1rem; }.hms-doctor-stats { grid-template-columns: repeat(4, 1fr); }.hms-stat-card { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: 1rem .8rem; border: 1px solid #e0e9f3; border-radius: 11px; background: white; box-shadow: 0 5px 15px rgba(25,69,112,.04); }.hms-stat-card:hover { transform: translateY(-2px); }.hms-stat-icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 50%; font-size: 1.1rem; }.hms-stat-card small, .hms-stat-card strong, .hms-stat-card em { display: block; }.hms-stat-card small { color: #55718e; font-size: .65rem; }.hms-stat-card strong { margin: .15rem 0; color: #133e76; font-size: 1.5rem; }.hms-stat-card em { color: #8aa0b7; font-size: .58rem; font-style: normal; }.stat-blue .hms-stat-icon { background: #e3efff; color: #2379e9; }.stat-green .hms-stat-icon { background: #def7ed; color: #14a879; }.stat-purple .hms-stat-icon { background: #eee6ff; color: #805bd4; }.stat-orange .hms-stat-icon { background: #fff0df; color: #ea8628; }.stat-pink .hms-stat-icon { background: #ffe6ed; color: #df5475; }
.hms-content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); gap: 1rem; }.hms-side-stack { display: grid; align-content: start; gap: 1rem; }.hms-panel { overflow: hidden; border: 1px solid #e0e9f3; border-radius: 11px; background: white; box-shadow: 0 5px 15px rgba(25,69,112,.04); }.hms-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10rem; padding: 1rem 1.1rem; border-bottom: 1px solid #edf2f7; }.hms-panel-heading h2 { margin: 0; color: #153e72; font-size: 1rem; }.hms-panel-heading a { color: #2478ed; font-size: .7rem; font-weight: 800; }.hms-table-wrap { overflow-x: auto; }
.hms-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.hms-table th, .hms-table td { box-sizing: border-box; padding: .8rem .55rem; border-bottom: 1px solid rgba(147,179,195,.22); color: #46617e; font-size: .72rem; text-align: left; white-space: nowrap; vertical-align: middle; }
.hms-table thead th { padding: 1rem .55rem; line-height: 1.2; }
.hms-table th { color: #d3e5ee; background: rgba(11,35,47,.12); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hms-table th:nth-child(1), .hms-table td:nth-child(1) { min-width: 150px; }
.hms-table th:nth-child(2), .hms-table td:nth-child(2) { min-width: 170px; }
.hms-table th:nth-child(3), .hms-table td:nth-child(3) { min-width: 90px; }
.hms-table th:nth-child(4), .hms-table td:nth-child(4) { min-width: 120px; }
.hms-table th:nth-child(5), .hms-table td:nth-child(5) { min-width: 130px; }
.hms-table th:nth-child(6), .hms-table td:nth-child(6) { min-width: 150px; }
.hms-table th:nth-child(7), .hms-table td:nth-child(7) { min-width: 110px; }
.hms-table td strong { color: #dfeef2; font-size: .72rem; font-weight: 800; }
.hms-status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: .28rem .6rem; border-radius: 999px; background: rgba(60,220,182,.12); color: #73f0d1; font-size: .64rem; font-weight: 800; }
.hms-status-admitted, .hms-status-under_treatment { background: rgba(72,169,255,.12); color: #7ac9ff; }
.hms-status-discharged { background: rgba(164,177,194,.14); color: #dbe5f0; }
.hms-document-cell { width: 14%; min-width: 0; }
.hms-view-link, .hms-documents-button, .hms-patient-edit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .4rem .7rem; border-radius: 8px; font-size: .68rem; font-weight: 800; }
.hms-documents-button { width: 118px; min-width: 118px; border: 1px solid rgba(98,177,201,.7); background: rgba(16,102,113,.18); color: #8ae0d8; }
.hms-patient-edit-button { min-width: 72px; border: 1px solid rgba(98,177,201,.5); background: rgba(40,94,99,.08); color: #8ae0d8; }
.hms-empty { padding: 1.5rem; color: #8297ae; font-size: .78rem; text-align: center; }.hms-pagination { display: flex; justify-content: space-between; padding: .75rem 1rem; color: #7089a3; font-size: .7rem; }.hms-pagination a { color: #2478ed; font-weight: 700; }
.hms-bed-availability { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: .55rem; max-height: 270px; padding: .7rem; overflow-y: auto; }
.hms-bed-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 74px; padding: .55rem .4rem; border: 1px solid rgba(79,211,194,.4); border-radius: 10px; background: rgba(79,211,194,.12); color: #8ae0d8; text-align: center; }
.hms-bed-box strong { display: block; color: #9feee0; font-size: .9rem; font-weight: 800; }
.hms-bed-box span { display: block; margin-top: .18rem; color: inherit; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hms-bed-box.is-free { border-color: rgba(79,211,194,.5); background: rgba(79,211,194,.12); color: #8ae0d8; }
.hms-bed-box.is-occupied { border-color: rgba(255,132,110,.7); background: rgba(255,132,110,.12); color: #ff8f7a; }
.hms-bed-box.is-other { border-color: rgba(148,160,175,.45); background: rgba(148,160,175,.1); color: #c4d2dd; }
.hms-alert-list { padding: .4rem 1rem 1rem; }.hms-alert-list > div { display: flex; gap: .55rem; padding: .65rem 0; border-bottom: 1px solid #edf2f7; }.hms-alert-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: .35rem; border-radius: 50%; background: #e88a2b; }.hms-alert-list p { margin: 0; color: #3a5c80; font-size: .72rem; }.hms-alert-list small, .hms-consultation small { display: block; margin-top: .2rem; color: #8aa0b7; font-size: .62rem; }.hms-consultation { padding: .8rem 1rem; border-bottom: 1px solid #edf2f7; color: #345a82; font-size: .75rem; }
.reception-patient-views { display: flex; gap: .45rem; margin: 0 0 1rem; padding: .35rem; border: 1px solid #dce7f3; border-radius: 10px; background: rgba(255,255,255,.8); }
.reception-patient-views a { padding: .55rem .8rem; border-radius: 7px; color: #55718e; font-size: .72rem; font-weight: 800; }
.reception-patient-views a:hover, .reception-patient-views a.is-active { background: #2478ed; color: white; }
.hms-panel-search { display: flex; align-items: center; gap: .45rem; width: min(100%, 285px); min-height: 34px; margin-left: auto; padding: .25rem .65rem; border: 1px solid #dce7f3; border-radius: 8px; background: #f8fbff; }
.hms-panel-search span { color: #2774d6; font-size: .95rem; line-height: 1; }
.hms-panel-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #173b65; font: inherit; font-size: .7rem; }
.hms-panel-search input::placeholder { color: #7890a8; }
.hms-panel-search:focus-within { border-color: #2478ed; background: white; box-shadow: 0 0 0 3px rgba(36,120,237,.1); }
.hms-dashboard-main,
.hms-recent-panel { transition: opacity .18s ease, transform .18s ease; }
.hms-dashboard-main.is-refreshing,
.hms-recent-panel.is-refreshing { opacity: .55; transform: translateY(2px); pointer-events: none; }
.hms-recent-panel .hms-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 285px) minmax(0, 1fr); gap: 1rem; }
.hms-recent-panel .hms-panel-heading > div { min-width: 0; }
.hms-recent-panel .hms-panel-heading .hms-panel-search { width: 100%; margin-left: 0; justify-self: center; }
.hms-recent-panel .hms-panel-heading > a { justify-self: end; align-self: center; white-space: nowrap; }
.hms-documents-button { background: transparent; cursor: pointer; font: inherit; }
[data-doctor-dashboard] #doctor-patients .hms-table th:nth-child(7),
[data-doctor-dashboard] #doctor-patients .hms-table td:nth-child(7) { min-width: 145px; }
.hms-documents-dialog { width: min(100% - 2rem, 560px); max-height: min(80vh, 560px); padding: 0; border: 1px solid #dce7f3; border-radius: 12px; background: white; color: #173b65; box-shadow: 0 24px 70px rgba(15,55,100,.28); }
.hms-documents-dialog.is-visible { display: block; position: fixed; inset: 0; z-index: 101; margin: auto; }
.hms-documents-dialog::backdrop { background: rgba(8,26,46,.52); }
.hms-documents-modal { padding: 1.25rem; }
.hms-documents-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #edf2f7; }
.hms-documents-heading h2 { margin: 0; color: #153e72; font-size: 1rem; }
.hms-documents-close { position: relative; display: grid; width: 32px; height: 32px; place-items: center; flex: 0 0 32px; border: 0; border-radius: 50%; background: #edf3f9; color: #46617e; font-size: 0; cursor: pointer; }
.hms-documents-close::before,
.hms-documents-close::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.hms-documents-close::before { transform: rotate(45deg); }
.hms-documents-close::after { transform: rotate(-45deg); }
.hms-documents-close:hover { background: #dceafa; color: #2478ed; }
.hms-document-list { display: grid; gap: .55rem; padding-top: .9rem; }
.hms-document-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .85rem; border: 1px solid #e2ebf4; border-radius: 8px; background: #f8fbff; color: #345a82; font-size: .76rem; }
.hms-document-row span { min-width: 0; overflow-wrap: anywhere; }
.hms-document-row a { flex: 0 0 auto; color: #2478ed; font-size: .7rem; font-weight: 800; }
.hms-document-upload { display: grid; gap: .55rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #edf2f7; }
.hms-document-upload input { min-width: 0; padding: .55rem .65rem; border: 1px solid #dce7f3; border-radius: 7px; color: #345a82; font: inherit; font-size: .72rem; }
.hms-document-upload button { justify-self: start; min-height: 34px; padding: .45rem .75rem; border: 0; border-radius: 7px; background: #2478ed; color: white; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.hms-document-upload button:hover { background: #175fc4; }
.hms-patient-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 1rem 0; }
.hms-patient-summary-grid div { min-width: 0; padding: .7rem .75rem; border: 1px solid #e2ebf4; border-radius: 8px; background: #f8fbff; }
.hms-patient-summary-grid span, .hms-patient-summary-grid strong { display: block; }
.hms-patient-summary-grid span { margin-bottom: .25rem; color: #7890a8; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.hms-patient-summary-grid strong { overflow-wrap: anywhere; color: #345a82; font-size: .76rem; }
.hms-patient-edit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .5rem .85rem; border-radius: 7px; background: #2478ed; color: white; font-size: .72rem; font-weight: 800; }
.hms-patient-edit-button:hover { background: #175fc4; color: white; }
@media (max-width: 520px) { .hms-patient-summary-grid { grid-template-columns: 1fr; } }
.hms-recent-panel .hms-table-wrap { max-height: 360px; overflow-x: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.role-dashboard-shell .hms-recent-panel .hms-table-wrap { scrollbar-color: var(--role-teal) var(--role-card); scrollbar-width: thin; }
.role-dashboard-shell .hms-recent-panel .hms-table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.role-dashboard-shell .hms-recent-panel .hms-table-wrap::-webkit-scrollbar-track { border-radius: 999px; background: var(--role-card); }
.role-dashboard-shell .hms-recent-panel .hms-table-wrap::-webkit-scrollbar-thumb { border: 2px solid var(--role-card); border-radius: 999px; background: var(--role-teal); }
.role-dashboard-shell .hms-recent-panel .hms-table-wrap::-webkit-scrollbar-thumb:hover { background: #6ee1d3; }
.hms-recent-panel .hms-table thead th { position: sticky; top: 0; z-index: 1; }
@media (max-width: 760px) { .hms-recent-panel .hms-panel-heading { flex-wrap: wrap; }.hms-recent-panel .hms-panel-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; } }
@media (max-width: 760px) { .hms-recent-panel .hms-panel-heading { grid-template-columns: minmax(0, 1fr) auto; }.hms-recent-panel .hms-panel-heading .hms-panel-search { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; } }
.workspace-page > .workspace-identity { display: none; }
.reference-profile-bar { display: flex; align-items: center; gap: 1.2rem; min-height: 150px; padding: 1.1rem 0 1.25rem; border-bottom: 1px solid rgba(42,112,94,.12); }
.reference-profile-identity { flex: 1; min-width: 260px; }.reference-profile-kicker, .reference-hospital-profile span { color: #1b7a77; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.reference-profile-identity h1 { margin: .28rem 0 .1rem; color: #123f70; font-size: clamp(1.9rem, 3.4vw, 3rem); }.reference-profile-identity p { margin: 0; color: #5f7893; font-size: 1rem; }
.reference-profile-actions { display: flex; gap: .55rem; align-items: center; }.reference-profile-actions a { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem .95rem; border-radius: 999px; background: #164f4a; color: white; font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.reference-profile-actions a:hover { background: #2d806e; color: white; }
.reference-hospital-profile { display: grid; gap: .18rem; min-width: 175px; padding: .8rem 1rem; border: 1px solid rgba(46,123,103,.2); border-radius: 12px; background: #edf7ed; }.reference-hospital-profile strong { overflow: hidden; color: #17574d; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }.reference-hospital-profile small { color: #416e69; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.reference-subscription-status { padding: .8rem 1.05rem; border-radius: 999px; background: #fff1d2; color: #c26b09; font-size: .85rem; font-weight: 800; white-space: nowrap; }.reference-view-profile { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .5rem .85rem; border: 1px solid rgba(22,87,77,.25); border-radius: 999px; background: rgba(255,255,255,.75); color: #164f4a; font-size: .76rem; font-weight: 800; white-space: nowrap; }.reference-view-profile:hover { background: #edf7ed; color: #164f4a; }.reference-signout { border: 0; background: transparent; color: #176d70; font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap; }.reference-signout:hover { color: #b84b43; }
.profile-drawer-wrap { position: relative; }.profile-drawer-trigger { display: grid; gap: 4px; width: 42px; padding: .65rem .55rem; border: 1px solid rgba(22,87,77,.22); border-radius: 9px; background: #164f4a; cursor: pointer; }.profile-drawer-trigger span { display: block; height: 2px; border-radius: 2px; background: white; }.profile-drawer { position: absolute; top: calc(100% + .7rem); right: 0; z-index: 30; width: 280px; overflow: hidden; border: 1px solid rgba(42,112,94,.14); border-radius: 12px; background: white; box-shadow: 0 18px 40px rgba(15,42,74,.18); }.profile-drawer[hidden] { display: none; }.profile-drawer-heading { display: flex; align-items: center; gap: .7rem; padding: 1rem; border-bottom: 1px solid #e5eee9; }.profile-drawer-heading div { display: grid; gap: .12rem; }.profile-drawer-heading strong { color: #174943; font-size: .86rem; }.profile-drawer-heading small { color: #6a817b; font-size: .68rem; }.profile-drawer > a, .profile-drawer-logout { display: block; width: 100%; padding: .75rem 1rem; border: 0; background: white; color: #174943; font: inherit; font-size: .8rem; text-align: left; }.profile-drawer > a:hover, .profile-drawer-logout:hover { background: #edf7ed; }.profile-drawer-logout { border-top: 1px solid #e5eee9; color: #b84b43; cursor: pointer; }
.profile-bar-wrap { position: absolute; top: 1.15rem; right: 0; z-index: 20; }
.profile-bar-trigger { display: flex; align-items: center; gap: .6rem; min-width: 190px; padding: .35rem .55rem; border: 1px solid rgba(42,112,94,.2); border-radius: 999px; background: rgba(255,255,255,.9); color: #174943; cursor: pointer; text-align: left; }
.profile-avatar { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #2d80df, #5a9af0); color: white; font-weight: 800; }
.profile-avatar-large { width: 42px; height: 42px; }
.profile-bar-copy { display: grid; flex: 1; gap: .05rem; min-width: 0; }.profile-bar-copy strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }.profile-bar-copy small, .profile-menu-heading small { color: #6a817b; font-size: .65rem; }
.profile-chevron { font-size: 1rem; }.profile-bar-menu { position: absolute; top: calc(100% + .55rem); right: 0; width: 285px; overflow: hidden; border: 1px solid rgba(42,112,94,.14); border-radius: 12px; background: white; box-shadow: 0 18px 40px rgba(15,42,74,.18); }.profile-bar-menu[hidden] { display: none; }
.profile-menu-heading { display: flex; gap: .7rem; align-items: center; padding: 1rem; border-bottom: 1px solid #e5eee9; }.profile-menu-heading div { display: grid; gap: .1rem; }.profile-menu-heading strong { color: #174943; font-size: .85rem; }.profile-bar-menu > a, .profile-logout { display: block; width: 100%; padding: .7rem 1rem; border: 0; background: white; color: #174943; font: inherit; font-size: .78rem; text-align: left; }.profile-bar-menu > a:hover, .profile-logout:hover { background: #edf7ed; }.profile-logout { border-top: 1px solid #e5eee9; color: #b84b43; cursor: pointer; }

.profile-content { max-width: 920px; margin: 0 auto; padding: 1.5rem 0 3rem; }.profile-hero { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0 1.5rem; padding: 1.5rem; border: 1px solid rgba(42,112,94,.14); border-radius: 16px; background: linear-gradient(120deg, #e2eff8, #f4f2fb); }.profile-hero h1 { margin: .25rem 0 .1rem; color: #123f70; font-size: clamp(1.6rem, 3vw, 2.5rem); }.profile-avatar-xl { width: 68px; height: 68px; font-size: 1.5rem; }.profile-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.profile-detail-card, .profile-actions-panel { padding: 1.4rem; border: 1px solid rgba(42,112,94,.14); border-radius: 14px; background: rgba(255,255,255,.82); }.profile-detail-card h2, .profile-actions-panel h2 { margin: .3rem 0 1rem; color: #174943; font-size: 1.25rem; }.profile-detail-card dl { display: grid; grid-template-columns: 1fr 1.3fr; gap: .7rem; margin: 0; }.profile-detail-card dt { color: #6a817b; font-size: .75rem; font-weight: 800; text-transform: uppercase; }.profile-detail-card dd { margin: 0; color: #174943; font-size: .88rem; }.profile-actions-panel { margin-top: 1rem; }.profile-action-links { display: flex; flex-wrap: wrap; gap: .65rem; }

@media (max-width: 1050px) { .hms-stat-grid { grid-template-columns: repeat(3, 1fr); }.hms-doctor-stats { grid-template-columns: repeat(2, 1fr); }.hms-content-grid { grid-template-columns: 1fr; }.hms-side-stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .home-header .header-actions .home-workspace-button { display: inline-flex !important; padding: .4rem .58rem; font-size: .55rem !important; } }
@media (max-width: 760px) { .hms-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; transform: translateX(-100%); transition: transform .2s ease, width .2s ease; }.hms-sidebar.is-open { width: 245px; flex-basis: 245px; padding-inline: .8rem; transform: translateX(0); }.hms-sidebar.is-closed { width: 245px; flex-basis: 245px; padding-inline: .8rem; transform: translateX(-100%); }.hms-sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(8,26,46,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }.hms-sidebar-overlay.is-visible { opacity: 1; pointer-events: auto; }.hms-dashboard-main { padding-inline: .8rem; }.hms-global-search { flex: 1; max-width: none; }.hms-welcome { align-items: flex-start; flex-direction: column; }.hms-side-stack { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .role-dashboard-shell .hms-dashboard-shell { margin: 0; min-height: 100vh; }.role-dashboard-shell .hms-dashboard-main { width: 100%; } }
@media (max-width: 520px) { .hms-stat-grid, .hms-doctor-stats { grid-template-columns: 1fr 1fr; gap: .55rem; }.hms-stat-card { padding: .75rem .55rem; }.hms-stat-icon { flex-basis: 31px; width: 31px; height: 31px; }.hms-stat-card strong { font-size: 1.2rem; }.hms-stat-card small { font-size: .58rem; }.hms-topbar .hms-notification { display: none; }.hms-topbar { gap: .55rem; }.hms-global-search { min-width: 0; padding-left: .6rem; }.hms-global-search input { font-size: .7rem; }.hms-search-button { padding-inline: .55rem; font-size: .65rem; }.hms-topbar .reference-profile-bar { flex: 0; }.hms-topbar .profile-drawer-wrap { margin-left: auto; } }

@media (max-width: 1100px) {
  .workspace-role-actions { flex-basis: 100%; order: 4; justify-content: flex-end; }
}

@media (max-width: 800px) {
  .reference-profile-bar { align-items: flex-start; flex-wrap: wrap; min-height: 0; padding-top: 1rem; }.reference-profile-identity { flex-basis: 100%; min-width: 0; }.reference-profile-actions { flex-wrap: wrap; }.reference-hospital-profile { flex: 1; min-width: 150px; }
  .profile-bar-wrap { top: .8rem; right: 1rem; }
  .profile-bar-trigger { min-width: 165px; }
  .workspace-hospital-title { width: 100%; text-align: left; }
  .workspace-profile-chip { flex: 1; min-width: 130px; }
  .hospital-summary { min-height: 220px; padding: 1.4rem; }
  .profile-detail-grid { grid-template-columns: 1fr; }.profile-content { padding-inline: .5rem; }
  .workspace-role-actions { justify-content: flex-start; }
}

/* Compact password recovery screen */
.recovery-page { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 2rem 1rem 4rem; background: #f7f8f4; }.recovery-card { width: min(100%, 430px); padding: 2.2rem 2.4rem 2rem; border: 1px solid rgba(20, 72, 65, .08); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 22px 55px rgba(20,72,65,.1); text-align: center; }.recovery-illustration { position: relative; width: 150px; height: 92px; margin: 0 auto 1rem; }.signpost-post { position: absolute; left: 73px; bottom: 14px; width: 4px; height: 58px; border-radius: 4px; background: #296c60; transform: rotate(5deg); }.signpost-board { position: absolute; display: flex; align-items: center; justify-content: space-between; width: 76px; height: 25px; padding: 0 .55rem; border: 2px solid #296c60; color: #1a5b52; font-size: .48rem; font-weight: 900; letter-spacing: .08em; background: #f4d28b; box-shadow: 3px 3px 0 rgba(41,108,96,.12); }.signpost-board b { font-size: .85rem; line-height: 1; }.signpost-board-top { top: 12px; left: 39px; transform: rotate(2deg); }.signpost-board-bottom { top: 42px; left: 31px; width: 66px; background: #dcebe0; transform: rotate(-8deg); }.signpost-ground { position: absolute; bottom: 8px; left: 33px; width: 92px; height: 8px; border-bottom: 2px solid #296c60; border-radius: 50%; transform: rotate(-4deg); }.recovery-kicker { display: block; color: #2c8870; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }.recovery-card h1 { margin: .55rem 0 .5rem; color: #164a43; font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -.035em; }.recovery-copy { margin: 0 auto 1.5rem; max-width: 31ch; color: #70817a; font-size: .84rem; line-height: 1.5; }.recovery-message { margin: 0 0 1rem; padding: .7rem .8rem; border-radius: 9px; font-size: .78rem; text-align: left; }.recovery-form { display: grid; gap: .5rem; text-align: left; }.recovery-form label { color: #315b53; font-size: .72rem; font-weight: 800; }.recovery-form input { width: 100%; min-height: 43px; padding: .7rem .9rem; border: 1px solid #d7dfd9; border-radius: 999px; background: #fbfcfa; color: #194b43; font: inherit; font-size: .82rem; }.recovery-form input:focus { outline: 3px solid rgba(242, 169, 107, .2); border-color: #e3a36e; background: white; }.recovery-submit { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 43px; margin-top: .75rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #e88965, #db7655); color: white; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 16px rgba(219,118,85,.2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }.recovery-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(219,118,85,.28); }.recovery-back { display: inline-flex; gap: .35rem; align-items: center; margin-top: 1.2rem; color: #397669; font-size: .78rem; font-weight: 700; }.recovery-back:hover { color: #c46b4c; }.recovery-back span { text-decoration: underline; text-underline-offset: 3px; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page { background: radial-gradient(circle at 12% 10%, rgba(79,211,194,.12), transparent 32%), #0b2027; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-card { border: 1px solid rgba(255,255,255,.08); background: #102a32; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-kicker { color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-card h1 { color: #f3f7f6; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-copy { color: #a9bdc4; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-form label { color: #d5e2e5; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-form input { border-color: rgba(255,255,255,.12); border-radius: 12px; background: #0b2027; color: #f3f7f6; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-form input::placeholder { color: #9bb0ba; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-form input:focus { outline: none; border-color: #4fd3c2; background: #0b2027; box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-submit { border-radius: 12px; background: #4fd3c2; color: #07181d; box-shadow: none; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-submit:hover { background: #69e0d1; box-shadow: 0 10px 20px rgba(79,211,194,.18); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-back { color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-recovery-page .recovery-back:hover { color: #9af0e4; }
@media (max-width: 520px) { .recovery-page { min-height: calc(100vh - 80px); padding: 1rem .75rem 2rem; }.recovery-card { padding: 1.7rem 1.2rem 1.5rem; border-radius: 18px; }.recovery-illustration { transform: scale(.86); margin-bottom: .45rem; } }

/* Compact auth screens */
.auth-frame { width: min(100%, 920px); min-height: min(590px, calc(100vh - 105px)); grid-template-columns: minmax(0, 1fr) minmax(320px, .76fr); margin-top: .35rem; border-radius: 22px; }.auth-visual-panel, .auth-frame-register .auth-visual-panel { min-height: 540px; }.auth-visual-content { inset: auto 2rem 2rem; }.auth-visual-content h1 { font-size: clamp(1.8rem, 3vw, 3rem); }.auth-frame .auth-card, .auth-frame-register .auth-card { min-height: 540px; padding: 2.2rem clamp(1.6rem, 3.2vw, 2.8rem); }.auth-frame .auth-card h2 { margin-top: .45rem; font-size: clamp(1.6rem, 2.5vw, 2.15rem); }.auth-frame .auth-card > .muted { margin-bottom: .4rem; font-size: .88rem; }.auth-frame .product-form { gap: .72rem; margin-top: 1rem; }.auth-frame .product-form input { padding: .68rem .78rem; }.auth-frame .input-label { margin-bottom: .2rem; font-size: .72rem; }.auth-frame .auth-actions { gap: .55rem; margin-top: .85rem; }.auth-frame .btn-primary { min-height: 43px; }.auth-frame .auth-switch { margin-top: .8rem; }

.auth-role-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-bottom: 1.55rem; padding: .28rem; border: 2px solid #d9b479; border-radius: 22px; background: #fff; }
.auth-role-toggle a { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 18px; color: #12354d; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: .01em; text-transform: none; background: #fff; transition: background .18s ease, color .18s ease, transform .18s ease; }
.auth-role-toggle a.is-active:first-child { background: #132d3b; color: #f4efe5; }
.auth-role-toggle a.is-active:last-child { background: #d9b479; color: #1a2b38; }
.auth-role-toggle a.is-active { box-shadow: 0 2px 10px rgba(19,45,59,.12); }
.auth-role-toggle a:hover { transform: translateY(-1px); }

.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-intro h1 { color: #f3f7f6; -webkit-text-fill-color: currentColor; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-intro > p,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-intro .auth-feature small { color: #a9bdc4; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-card { border-color: #dce7e9; background: #fff; color: #173b4a; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-screen .password-reset-card h2,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-screen .password-reset-card .muted,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-screen .password-reset-card .product-form label,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-screen .password-reset-card .form-footer { color: #173b4a; -webkit-text-fill-color: currentColor; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-screen .password-reset-card .input-label { color: #173b4a !important; -webkit-text-fill-color: currentColor !important; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-card .card-kicker { color: #0d776d; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-card .product-form input { border-color: #cbd9db; background: #f8fbfc; color: #173b4a; -webkit-text-fill-color: currentColor; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-card .product-form input::placeholder { color: #7c8b92; -webkit-text-fill-color: currentColor; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-card .product-form input:focus { border-color: #0d9488; background: #fff; box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-info { border-color: #dce7e9; background: #f3f8f9; color: #425b64; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-info strong { color: #173b4a; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .password-reset-info li { color: #425b64; }
.auth-shell .product-messages .session-expired { width: fit-content; max-width: min(100%, 560px); margin: .45rem auto .7rem; padding: .48rem .78rem; border: 1px solid rgba(79,211,194,.28); border-radius: 8px; background: #102a32; color: #d7efec; box-shadow: none; font-size: .74rem; font-weight: 600; line-height: 1.35; }

@media (max-width: 800px) {
  .auth-frame { min-height: 0; margin-top: .25rem; }
  .auth-visual-panel, .auth-frame-register .auth-visual-panel { min-height: 200px; }
  .auth-frame .auth-card, .auth-frame-register .auth-card { min-height: 0; padding: 1.5rem 1.25rem 1.7rem; }
  .auth-visual-content { inset: auto 1.25rem 1.2rem; }
  .auth-visual-content h1 { font-size: 1.5rem; }
  .auth-frame .product-form { gap: .65rem; }
  .auth-frame .product-form input,
  .auth-frame .product-form textarea,
  .auth-frame .product-form select { width: 100%; max-width: 100%; }
  .auth-frame .btn-block {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }
  .auth-card .checkbox-label { align-items: flex-start; }
  .auth-frame .auth-card h2 { font-size: clamp(2rem, 8vw, 2.3rem); }
  .auth-frame .auth-card .muted { font-size: .84rem; }
}

.reference-profile-bar {
  position: relative;
}

.profile-drawer-wrap {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1000;
}

.profile-drawer-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.reference-profile-bar {
  position: relative;
  width: 100%;
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 30px;
  box-sizing: border-box;
}

/* Hospital workspace header */
.reference-profile-identity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 140px);
  min-width: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.reference-profile-kicker {
  display: block;
  margin-bottom: 4px;

  background: linear-gradient(90deg, #0b5f8a, #087f83, #2a9d62, #d28a18);
  background-clip: text;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reference-profile-identity h1 {
  margin: 0;

  font-size: 28px;
  font-weight: 700;
}

/* Everything on the right */
.profile-drawer-wrap {
  position: absolute;
  right: -170px;
  top: -170%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  gap: 14px;
}

.reference-profile-bar > .profile-drawer-wrap {
  right: 0;
}

/* Reception / Doctor / Admin */
.reference-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-profile-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border: 1px solid #c7dfe1;
  border-radius: 10px;

  background: #f5fafa;
  color: #087f83;

  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.reference-profile-actions a:hover {
  background: #e8f4f4;
}

/* Profile hamburger */
.profile-drawer-trigger {
  width: 44px;
  height: 44px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid #c7dfe1;
  border-radius: 10px;

  background: #fff;
  cursor: pointer;
}

.profile-drawer-trigger span {
  display: block;
  width: 20px;
  height: 2px;

  background: #087f83;
  border-radius: 2px;
}

/* Drawer */
.profile-drawer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 280px;
  box-sizing: border-box;

  padding: 18px;

  background: #fff;
  border: 1px solid #d9e7e8;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  z-index: 1000;
}

.profile-drawer-heading {
  display: flex;
  align-items: center;
  gap: 12px;

  padding-bottom: 15px;
  margin-bottom: 10px;

  border-bottom: 1px solid #e5eeee;
}

.profile-drawer-heading div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-drawer a {
  display: block;

  padding: 10px 8px;

  color: #087f83;
  text-decoration: none;
}

.profile-drawer-logout {
  width: 100%;

  margin-top: 8px;
  padding: 10px;

  border: 0;
  border-radius: 8px;

  background: #ef9200;
  color: #fff;

  font-weight: 600;
  cursor: pointer;
}



.profile-drawer-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;

  margin: 10px 0;
}

.profile-drawer-navigation a {
  display: block;
  width: 100%;
  box-sizing: border-box;

  padding: 11px 12px;

  border-radius: 8px;

  color: #087f83;
  background: #f4fafa;

  text-decoration: none;
  font-weight: 600;
}

.profile-drawer-navigation a:hover {
  background: #e5f3f3;
}

/* Final workspace profile chip override */
.minimal-workspace-shell .workspace-profile-trigger.profile-drawer-trigger { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; width: auto; height: auto; gap: .55rem; padding: .25rem .55rem .25rem .3rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #17375d; }
.minimal-workspace-shell .workspace-profile-trigger.profile-drawer-trigger span { display: grid; width: auto; height: auto; background: transparent; border-radius: 0; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-avatar { display: grid !important; visibility: visible !important; opacity: 1 !important; flex: 0 0 31px !important; place-items: center; width: 31px !important; height: 31px !important; min-width: 31px !important; min-height: 31px !important; border: 0 !important; border-radius: 50% !important; background: #2da898 !important; color: #fff !important; font-size: .68rem !important; font-weight: 800 !important; line-height: 1 !important; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-chevron { color: #7890a2; }
.minimal-workspace-shell .product-header { position: relative; }
.minimal-workspace-shell .auth-header-links { position: absolute; top: 50%; right: -100px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; min-width: 190px; margin-left: auto; transform: translateY(-50%); }
.minimal-workspace-shell .workspace-profile-wrap { display: block; }
.minimal-workspace-shell .workspace-profile-trigger { visibility: visible; opacity: 1; min-width: 180px; min-height: 48px; padding-right: .8rem; border: 1px solid #e6eeec !important; background: #fff !important; color: #102d4f !important; box-shadow: 0 10px 24px rgba(31, 73, 85, .12); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.minimal-workspace-shell .workspace-profile-name { display: inline-block !important; max-width: 120px; color: #17375d !important; font-size: .78rem; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-name { color: #102d4f !important; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-chevron { color: #59738c !important; }
.minimal-workspace-shell .workspace-profile-trigger:hover { background: #168277 !important; color: white !important; border-color: #168277 !important; box-shadow: 0 13px 28px rgba(13, 91, 87, .3); }
.minimal-workspace-shell .workspace-profile-trigger:hover .workspace-profile-name { color: white !important; }
.minimal-workspace-shell .workspace-profile-trigger:hover .workspace-profile-chevron { color: white !important; }
.minimal-workspace-shell .workspace-profile-trigger:hover .workspace-profile-avatar { background: #0d5b57 !important; }
@media (max-width: 800px) { .minimal-workspace-shell .workspace-profile-name { display: inline-block !important; } }

/* Full-height hospital profile drawer */
.minimal-workspace-shell .workspace-profile-drawer { position: fixed; top: 0; right: 0; width: min(100vw, 430px); height: 100vh; min-height: 100vh; display: flex; flex-direction: column; padding: 30px 24px 28px; border: 0; border-radius: 0; box-shadow: -18px 0 45px rgba(20, 55, 70, .16); }
.minimal-workspace-shell .workspace-profile-drawer[hidden] { display: none; }
.workspace-profile-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.workspace-profile-drawer-header h2 { margin: 0; color: #17375d; font-size: 1.2rem; }
.workspace-profile-drawer-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f6f5; color: #17375d; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.workspace-profile-drawer-close:hover { background: #e1efec; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading { padding: 0 0 24px; margin: 0 0 20px; border-bottom: 1px solid #e5eeee; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading div { gap: .2rem; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading strong { color: #17375d !important; font-size: 1.1rem; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading small { color: #6d879e; font-size: .86rem; }
.minimal-workspace-shell .workspace-profile-details { gap: 0; padding: 0; border-bottom: 0; }
.minimal-workspace-shell .workspace-profile-details div { padding: 14px 0; border-bottom: 1px solid #e5eeee; }
.minimal-workspace-shell .workspace-profile-details span { color: #6d879e; font-size: .82rem; }
.minimal-workspace-shell .workspace-profile-details strong { max-width: 235px; color: #17375d; font-size: .86rem; }
.workspace-profile-drawer-actions { display: grid; gap: 14px; margin-top: auto; }
.minimal-workspace-shell .workspace-profile-drawer-link { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1rem; border-radius: 999px; background: #083f3d; color: white; font-size: .92rem; font-weight: 800; text-align: center; }
.minimal-workspace-shell .workspace-profile-drawer-link:hover { background: #17675f; color: white; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-logout { min-height: 52px; margin: 0; padding: .75rem 1rem; border: 1px solid #d9e7e8; border-radius: 999px; background: white; color: #17375d; font-size: .92rem; font-weight: 800; }
.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-logout:hover { background: #f4fafa; }

/* Profile page hospital chip and drawer */
.reference-profile-bar .profile-drawer-wrap { margin-left: auto; }
.reference-profile-bar .profile-drawer-trigger { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; width: auto; height: auto; min-width: 150px; gap: .55rem; padding: .25rem .55rem .25rem .3rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #17375d; box-shadow: 0 4px 14px rgba(31,73,85,.08); font: inherit; }
.reference-profile-bar .profile-drawer-trigger span { display: grid; width: auto; height: auto; background: transparent; border-radius: 0; }
.reference-profile-bar .profile-drawer-trigger .workspace-profile-avatar { width: 31px; height: 31px; border-radius: 50%; background: #2da898; color: white; font-size: .68rem; font-weight: 800; }
.reference-profile-bar .profile-drawer-trigger strong { overflow: hidden; color: #17375d; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.reference-profile-bar .profile-drawer-trigger .workspace-profile-chevron { color: #7890a2; }

/* Hospital workspace dashboard */
.workspace-brand-subtitle { display: none; }
.minimal-workspace-shell {
  --workspace-ink: #f3f7f6;
  --workspace-muted: #9bb0ba;
  --workspace-faint: #6e8590;
  --workspace-teal: #4fd3c2;
  --workspace-amber: #e2954f;
  --workspace-card: #102a32;
  --workspace-card-raised: #13323b;
  --workspace-border: rgba(255, 255, 255, .07);
  min-height: 100vh;
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--workspace-ink);
  background: linear-gradient(165deg, #0b2027 0%, #061319 65%, #050f14 100%);
}
.minimal-workspace-shell::before, .minimal-workspace-shell::after { content: ""; position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.minimal-workspace-shell::before { width: 520px; height: 520px; top: -180px; right: -140px; background: rgba(51, 183, 166, .1); }
.minimal-workspace-shell::after { width: 460px; height: 460px; bottom: -180px; left: -120px; background: rgba(226, 149, 79, .06); }
.minimal-workspace-shell.has-workspace-image { background-image: linear-gradient(165deg, rgba(11,32,39,.94), rgba(6,19,25,.92) 65%, rgba(5,15,20,.95)), var(--workspace-image); background-position: center; background-size: cover; background-attachment: fixed; }
.minimal-workspace-shell > * { position: relative; z-index: 1; }
.minimal-workspace-shell .product-header { width: 100%; max-width: none; min-height: 80px; margin: 0; padding: 1rem 3rem; border-bottom: 1px solid var(--workspace-border); background: #0f2c34; z-index: 50; }
.minimal-workspace-shell .product-brand { gap: .75rem; color: var(--workspace-ink); font-size: 1rem; }
.minimal-workspace-shell .brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgba(51,183,166,.16); color: var(--workspace-teal); font-size: .85rem; }
.minimal-workspace-shell .workspace-brand-copy { display: grid; gap: .08rem; }
.minimal-workspace-shell .workspace-brand-name { font-family: Manrope, sans-serif; font-size: .95rem; font-weight: 700; color: var(--workspace-ink); }
.minimal-workspace-shell .workspace-brand-subtitle { display: block; color: var(--workspace-muted); font-size: .75rem; }
.minimal-workspace-shell .product-header { position: relative; }
.workspace-header-center { position: absolute; left: 50%; display: grid; gap: 3px; transform: translateX(-50%); text-align: center; }
.workspace-header-center strong { color: var(--workspace-ink); font-family: Manrope, sans-serif; font-size: .95rem; font-weight: 700; }
.workspace-header-center span { color: var(--workspace-muted); font-size: .72rem; }
.minimal-workspace-shell .auth-header-links { position: static; display: flex; flex: 0 0 auto; min-width: max-content; margin-left: auto; transform: none; }
.minimal-workspace-shell .workspace-profile-wrap.profile-drawer-wrap { position: static; top: auto; right: auto; display: block; flex: 0 0 auto; gap: 0; transform: none; }
.minimal-workspace-shell .workspace-profile-trigger.profile-drawer-trigger { display: inline-flex; flex: 0 0 auto; min-width: max-content; min-height: 46px; gap: .62rem; padding: .38rem 1rem .38rem .38rem; border: 1px solid var(--workspace-border) !important; border-radius: 999px; background: var(--workspace-card) !important; color: var(--workspace-ink) !important; box-shadow: none; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-avatar { flex-basis: 32px !important; width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; background: rgba(51,183,166,.16) !important; color: var(--workspace-teal) !important; }
.minimal-workspace-shell .workspace-profile-name, .minimal-workspace-shell .workspace-profile-trigger .workspace-profile-name { max-width: 180px; color: var(--workspace-ink) !important; font-size: .88rem; font-weight: 600; }
.minimal-workspace-shell .workspace-profile-trigger .workspace-profile-chevron { color: var(--workspace-muted) !important; }
.minimal-workspace-shell .workspace-profile-trigger:hover { border-color: rgba(255,255,255,.12) !important; background: var(--workspace-card-raised) !important; box-shadow: none; transform: translateY(-1px); }
.minimal-workspace-page { width: min(100%, 1360px); min-height: calc(100vh - 80px); padding: 44px 32px 90px; }
.minimal-workspace-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--workspace-teal); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.minimal-workspace-kicker::before { width: 7px; height: 7px; margin: 0; border-radius: 50%; background: var(--workspace-teal); color: transparent; font-size: 0; vertical-align: baseline; }
.workspace-hero-row { gap: 24px; margin-bottom: 40px; }
.workspace-hero-row .workspace-welcome-copy h1 { margin: 0 0 10px; color: var(--workspace-ink); font-family: Manrope, sans-serif; font-size: clamp(2.1rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: 0; text-shadow: none; }
.workspace-hero-row .workspace-welcome-copy p { max-width: 44ch; margin: 0 0 14px; color: var(--workspace-muted); font-size: 1rem; line-height: 1.6; }
.workspace-hero-activity { max-width: 560px; margin-top: 28px; }
.workspace-hero-activity .workspace-section-head { margin-bottom: 12px; }
.workspace-hero-activity .workspace-activity-card { padding: 18px 20px; }
.workspace-hero-portals .workspace-section-head { margin-bottom: 12px; }
.workspace-hero-portals .workspace-portals { grid-template-columns: 1fr; gap: 12px; margin-bottom: 0; }
.workspace-hero-portals .workspace-portal-card { padding: 16px 18px; }
.workspace-hero-portals .workspace-portal-card p { margin-bottom: 8px; }
.workspace-today-line, .workspace-today-line strong { color: var(--workspace-muted); font-size: .86rem; font-weight: 600; }
.workspace-info-card, .workspace-activity-card { border: 1px solid var(--workspace-border); border-radius: 20px; background: var(--workspace-card); box-shadow: none; }
.workspace-info-card { padding: 22px 24px; }
.workspace-info-card h4, .workspace-section-head h3 { color: var(--workspace-ink); font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: 0; }
.workspace-info-card h4 { margin-bottom: 14px; font-size: .95rem; }
.workspace-info-row { padding: 9px 0; border-color: var(--workspace-border); color: var(--workspace-ink); }
.workspace-info-row svg { color: var(--workspace-teal); }
.workspace-info-label { color: var(--workspace-faint); font-size: .76rem; }
.workspace-section-head { margin-bottom: 16px; }.workspace-section-head h3 { font-size: 1.05rem; }.workspace-live-tag { color: var(--workspace-teal); }.workspace-live-dot { background: var(--workspace-teal); }
.workspace-stats-grid { gap: 16px; margin-bottom: 42px; }
.workspace-stat-card { gap: 10px; padding: 18px 20px; border: 1px solid var(--workspace-border); border-radius: 15px; background: var(--workspace-card); box-shadow: none; transition: border-color .15s ease; }
.workspace-stat-card:hover { border-color: rgba(255,255,255,.12); }.workspace-stat-icon { background: rgba(51,183,166,.16); color: var(--workspace-teal); }.workspace-stat-card.c2 .workspace-stat-icon { background: rgba(226,149,79,.16); color: var(--workspace-amber); }.workspace-stat-card.c3 .workspace-stat-icon { background: rgba(159,180,189,.12); color: #9fb4bd; }.workspace-stat-value { color: var(--workspace-ink); font-family: Manrope, sans-serif; font-size: 1.55rem; letter-spacing: 0; }.workspace-stat-label { color: var(--workspace-muted); font-weight: 400; }
.workspace-dash-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(250px, 0.8fr); align-items: start; gap: 18px; }.workspace-dash-row > div { display: flex; flex-direction: column; min-width: 0; }.workspace-dash-row > div > .workspace-quick-actions, .workspace-dash-row > div > .workspace-activity-card { flex: 0 0 auto; box-sizing: border-box; }
.workspace-portals { gap: 18px; margin-bottom: 34px; }.workspace-portal-card { min-height: 0; gap: 12px; padding: 26px; border: 1px solid var(--workspace-border); border-radius: 20px; background: var(--workspace-card); box-shadow: none; }.workspace-portal-card:hover { border-color: rgba(255,255,255,.12); background: var(--workspace-card-raised); box-shadow: none; }.workspace-portal-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(226,149,79,.16); color: var(--workspace-amber); font-size: 1.4rem; }.workspace-portal-doctor .workspace-portal-icon { background: rgba(51,183,166,.16); color: var(--workspace-teal); }.workspace-portal-card h2 { margin: 0; color: var(--workspace-ink); font-family: Manrope, sans-serif; font-size: 1.15rem; letter-spacing: 0; }.workspace-portal-card p { flex-grow: 1; color: var(--workspace-muted); font-size: .9rem; }.workspace-portal-button { min-width: 0; min-height: 0; margin-top: 0; padding: 10px 18px; border-radius: 999px; background: var(--workspace-amber); color: #22140a; font-size: .85rem; line-height: 1.2; text-align: left; }.workspace-portal-doctor .workspace-portal-button { background: var(--workspace-teal); color: #07181d; }.workspace-portal-button b { margin-left: .2rem; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.workspace-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 1000px); min-height: 290px; margin: 0; padding: 22px 22px 8px; border: 1px solid #1E3742; border-radius: 16px; background: #0F212A; box-sizing: border-box; }
.workspace-quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; min-height: 150px; margin: 0; padding: 20px 16px; border: 1px solid var(--workspace-border); border-radius: 18px; background: var(--workspace-card-raised); color: var(--workspace-ink); font-size: .9rem; font-weight: 700; text-align: center; box-sizing: border-box; }
.workspace-quick-btn:hover { border-color: #33b7a6; background: var(--workspace-card); }
.workspace-quick-btn svg { width: 28px; height: 28px; color: var(--workspace-teal); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 10, 14, 0.6); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-backdrop[hidden] { display: none; }
.qa-report-modal { width: min(100%, 820px); border: 1px solid #1E3742; border-radius: 18px; background: #0F212A; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); color: #F2FAFB; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 16px; border-bottom: 1px solid #1E3742; }
.m-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: rgba(47, 220, 198, 0.12); color: #2FDCC6; }
.m-icon .icon { width: 20px; height: 20px; }
.modal-head h3 { margin: 0; color: #F2FAFB; font-size: 2rem; font-weight: 800; line-height: 1.05; }
.modal-head p { margin: 2px 0 0; color: #93AAB5; font-size: 1rem; }
.modal-close { display: grid; width: 38px; height: 38px; margin-left: auto; place-items: center; border: 1px solid #1E3742; border-radius: 50%; background: transparent; color: #F2FAFB; cursor: pointer; }
.modal-close:hover { border-color: #2FDCC6; color: #2FDCC6; }
.icon-sm { width: 16px; height: 16px; }
.modal-body { padding: 20px 22px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-card { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 18px 20px; border: 1px solid #1E3742; border-radius: 14px; background: rgba(15, 33, 42, 0.9); color: #F2FAFB; text-align: left; cursor: pointer; }
.report-card:hover { border-color: rgba(47, 220, 198, 0.5); background: rgba(19, 50, 59, 0.9); }
.r-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: rgba(47, 220, 198, 0.12); color: #2FDCC6; }
.r-icon .icon { width: 20px; height: 20px; }
.r-name { color: #F2FAFB; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.r-val { margin-top: 3px; color: #93AAB5; font-size: .82rem; }
.report-detail { display: none; }
.report-back { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; background: transparent; color: #F2FAFB; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.report-detail-panel { display: grid; place-items: center; min-height: 420px; padding: 20px 0 10px; text-align: center; }
.report-number { font-size: clamp(4rem, 6vw, 7rem); line-height: 1; letter-spacing: -0.06em; font-weight: 800; color: #F2FAFB; }
.report-meta { margin-top: 10px; color: #93AAB5; font-size: 1.1rem; text-transform: lowercase; }
.report-actions { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.report-export-btn { min-height: 54px; padding: 0 24px; border: 0; border-radius: 999px; background: #5EEAD4; color: #052024; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(94, 234, 212, 0.22); }
.report-export-btn.primary { background: linear-gradient(135deg, #5eead4, #4fd3c2); }
.report-export-btn:hover { transform: translateY(-1px); }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr; } .qa-report-modal { width: min(100%, 520px); } .modal-head { padding: 18px 18px 14px; } .modal-body { padding: 18px; } .report-detail-panel { min-height: 340px; } .report-actions { flex-direction: column; } .report-export-btn { width: 100%; } }
.workspace-activity-card { padding: 22px 24px; }.workspace-activity-item { border-color: var(--workspace-border); }.workspace-activity-item::before { background: var(--workspace-teal); }.workspace-activity-title { color: var(--workspace-ink); font-weight: 600; }.workspace-activity-time { color: var(--workspace-faint); font-weight: 400; }
.workspace-patient-dialog { position: fixed; inset: 0; width: min(100% - 2rem, 680px); max-height: min(88vh, 620px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--workspace-border); border-radius: 20px; background: #102a32; color: var(--workspace-ink); box-shadow: 0 30px 90px rgba(0,0,0,.58); }.workspace-patient-dialog::backdrop { background: rgba(2,10,14,.76); backdrop-filter: blur(4px); }.workspace-patient-form { min-width: 0; }.workspace-patient-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 24px; border-bottom: 1px solid var(--workspace-border); }.workspace-patient-dialog-header > div { display: flex; align-items: center; gap: 14px; }.workspace-patient-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: rgba(51,183,166,.16); color: var(--workspace-teal); font-size: 1.4rem; }.workspace-patient-dialog h2 { margin: 0; color: var(--workspace-ink); font-family: Manrope, sans-serif; font-size: 1.3rem; }.workspace-patient-dialog p { margin: 4px 0 0; color: var(--workspace-muted); font-size: .82rem; }.workspace-patient-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--workspace-border); border-radius: 50%; background: transparent; color: var(--workspace-muted); font-size: 1.5rem; cursor: pointer; }.workspace-patient-close:hover { color: var(--workspace-ink); border-color: var(--workspace-teal); }.workspace-patient-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 22px 24px; }.workspace-patient-fields label { display: grid; gap: 6px; min-width: 0; color: var(--workspace-muted); font-size: .82rem; font-weight: 700; }.workspace-patient-full { grid-column: 1 / -1; }.workspace-patient-fields input, .workspace-patient-fields select, .workspace-patient-fields textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 13px; border: 1px solid var(--workspace-border); border-radius: 10px; outline: 0; background: #0b2028; color: var(--workspace-ink); font: inherit; font-size: .9rem; }.workspace-patient-fields textarea { min-height: 70px; resize: vertical; }.workspace-patient-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--workspace-border); }.workspace-patient-cancel, .workspace-patient-submit { min-height: 46px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.workspace-appointment-dialog { max-width: 620px; }.appointment-patient-field, .admit-patient-field { position: relative; }.appointment-patient-results { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0; display: none; max-height: 230px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--workspace-border); border-radius: 10px; background: #102a32; box-shadow: 0 18px 40px rgba(0,0,0,.32); }.appointment-patient-result { display: grid; width: 100%; gap: .3rem; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--workspace-border); background: transparent; color: var(--workspace-ink); font: inherit; text-align: left; cursor: pointer; }.appointment-patient-result:hover { background: var(--workspace-card-raised); }.appointment-patient-result-main { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }.appointment-patient-result strong { color: var(--workspace-ink); font-size: .9rem; }.appointment-patient-result small { color: var(--workspace-muted); }.appointment-patient-result span { color: var(--workspace-muted); font-size: .74rem; }.appointment-slots-field { min-width: 0; margin: 0; padding: 0; border: 0; }.appointment-slots-field legend { margin-bottom: .5rem; color: var(--workspace-muted); font-size: .82rem; font-weight: 700; }.appointment-slots-field legend b { color: #ff9b58; }.appointment-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }.appointment-slot { min-height: 42px; padding: .5rem; border: 1px solid var(--workspace-border); border-radius: 8px; background: #0b2028; color: var(--workspace-muted); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }.appointment-slot:hover, .appointment-slot.is-selected { border-color: var(--workspace-teal); background: rgba(51,183,166,.14); color: var(--workspace-ink); }.appointment-slot-empty { color: var(--workspace-faint); font-size: .78rem; }
.workspace-patient-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--workspace-border); }
.workspace-patient-cancel, .workspace-patient-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1.35rem; border-radius: 999px; font: inherit; font-size: .96rem; font-weight: 800; letter-spacing: -.01em; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.workspace-patient-cancel { border: 1px solid rgba(255,255,255,.12); background: #edf3f4; color: #17375d; box-shadow: inset 0 0 0 1px rgba(16,47,80,.04); }
.workspace-patient-cancel:hover { transform: translateY(-1px); background: #e8f0f2; }
.workspace-patient-submit { border: 1px solid rgba(43,168,153,.35); background: linear-gradient(135deg, #1bc4bb 0%, #1aaf91 100%); color: hwb(0 0% 100%); box-shadow: 0 10px 22px rgba(31,142,149,.25); }
.workspace-patient-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(31,142,149,.35); }
.workspace-patient-submit:focus-visible, .workspace-patient-cancel:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,211,194,.22); }
.doctor-note-dialog { position: fixed; inset: 0; width: min(100% - 2rem, 1120px); max-height: min(94vh, 1000px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--role-border, #315760); border-radius: 20px; background: #102a32; color: var(--role-ink, #f3f7f6); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.doctor-note-dialog::backdrop { background: rgba(2,10,14,.76); backdrop-filter: blur(4px); }
.doctor-note-form { min-width: 0; }
.doctor-note-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 24px; border-bottom: 1px solid var(--role-border, #315760); }
.doctor-note-header > div { display: flex; align-items: center; gap: 14px; }
.doctor-note-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: rgba(79,211,194,.14); color: var(--role-teal, #4fd3c2); font-size: 1.5rem; font-weight: 700; }
.doctor-note-header h2 { margin: 0; color: var(--role-ink, #f3f7f6); font-family: Manrope, sans-serif; font-size: 1.3rem; }
.doctor-note-header p { margin: 4px 0 0; color: var(--role-muted, #9bb0ba); font-size: .82rem; }
.doctor-note-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--role-border, #315760); border-radius: 50%; background: transparent; color: var(--role-muted, #9bb0ba); font-size: 1.5rem; cursor: pointer; }
.doctor-note-close:hover { border-color: var(--role-teal, #4fd3c2); color: var(--role-ink, #f3f7f6); }
.doctor-note-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 22px 24px; }
.doctor-note-fields label { display: grid; gap: 6px; min-width: 0; color: var(--role-muted, #9bb0ba); font-size: .82rem; font-weight: 700; }
.doctor-note-fields label b { color: #ff9b58; }
.doctor-note-full { grid-column: 1 / -1; }
.doctor-note-fields input, .doctor-note-fields select, .doctor-note-fields textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 13px; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: #0b2028; color: var(--role-ink, #f3f7f6); font: inherit; }
.doctor-note-fields textarea { min-height: 88px; resize: vertical; }
.doctor-note-fields input:focus, .doctor-note-fields select:focus, .doctor-note-fields textarea:focus { outline: none; border-color: var(--role-teal, #4fd3c2); box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.doctor-note-fields option { background: #0b2028; color: var(--role-ink, #f3f7f6); }
.doctor-note-patient-field { position: relative; }
.doctor-note-patient-results { position: absolute; z-index: 20; top: calc(100% - 2px); right: 0; left: 0; max-height: 190px; overflow-y: auto; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: #102a32; box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.doctor-note-patient-results[hidden] { display: none; }
.doctor-note-patient-result { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--role-border, #315760); background: transparent; color: var(--role-ink, #f3f7f6); font: inherit; text-align: left; cursor: pointer; }
.doctor-note-patient-result:hover { background: rgba(79,211,194,.1); }
.doctor-note-patient-result strong { font-size: .82rem; }
.doctor-note-patient-result small { color: var(--role-muted, #9bb0ba); font-size: .72rem; }
.doctor-note-patient-empty { display: block; padding: .8rem; color: var(--role-muted, #9bb0ba); font-size: .78rem; }
.doctor-note-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--role-border, #315760); }
.doctor-note-cancel, .doctor-note-submit { min-height: 44px; padding: .75rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.doctor-note-cancel { border: 1px solid var(--role-border, #315760); background: transparent; color: var(--role-muted, #9bb0ba); }
.doctor-note-submit { border: 0; background: var(--role-teal, #4fd3c2); color: #07181d; }
@media (max-width: 640px) { .doctor-note-fields { grid-template-columns: 1fr; padding: 18px; }.doctor-note-header, .doctor-note-footer { padding-inline: 18px; } }
.doctor-prescription-section { min-width: 0; padding: 16px; border: 1px solid var(--role-border, #315760); border-radius: 14px; background: rgba(5, 23, 29, .42); }
.doctor-prescription-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 12px; }
.doctor-prescription-heading h3 { margin: 3px 0 0; color: var(--role-ink, #f3f7f6); font: 800 1.05rem Manrope, sans-serif; }
.doctor-prescription-heading p { margin: 0; color: var(--role-muted, #9bb0ba); font-size: .78rem; }
.doctor-prescription-list { display: grid; gap: 10px; }
.doctor-medicine-card, .doctor-medicine-editor { min-width: 0; padding: 14px; border: 1px solid var(--role-border, #315760); border-radius: 12px; background: rgba(16, 42, 50, .82); }
.doctor-medicine-card > strong { color: var(--role-teal, #4fd3c2); font-size: .74rem; }
.doctor-medicine-card h4 { margin: 5px 0; color: var(--role-ink, #f3f7f6); font-size: .98rem; }
.doctor-medicine-card p { margin: 4px 0; color: var(--role-muted, #c0d0d3); font-size: .79rem; overflow-wrap: anywhere; }
.doctor-medicine-card .doctor-medicine-summary-instructions { color: var(--role-ink, #f3f7f6); }
.doctor-medicine-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.doctor-medicine-actions button, .doctor-medicine-cancel { min-height: 34px; padding: .4rem .8rem; border: 1px solid var(--role-border, #315760); border-radius: 999px; background: transparent; color: var(--role-muted, #c0d0d3); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.doctor-medicine-actions button:hover, .doctor-medicine-cancel:hover { border-color: var(--role-teal, #4fd3c2); color: var(--role-ink, #f3f7f6); }
.doctor-medicine-editor-title { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 12px; color: var(--role-teal, #4fd3c2); font-size: .82rem; }
.doctor-medicine-name { position: relative; display: grid; gap: 6px; color: var(--role-muted, #9bb0ba); font-size: .82rem; font-weight: 700; }
.doctor-medicine-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.doctor-medicine-fields label { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--role-muted, #9bb0ba); font-size: .78rem; font-weight: 700; }
.doctor-medicine-fields label b, .doctor-medicine-name b { color: #ff9b58; }
.doctor-medicine-fields input, .doctor-medicine-fields select, .doctor-medicine-fields textarea, .doctor-medicine-name input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid var(--role-border, #315760); border-radius: 8px; background: #0b2028; color: var(--role-ink, #f3f7f6); font: inherit; font-size: .84rem; }
.doctor-medicine-fields textarea { min-height: 64px; resize: vertical; }
.doctor-medicine-fields input:focus, .doctor-medicine-fields select:focus, .doctor-medicine-fields textarea:focus, .doctor-medicine-name input:focus { outline: none; border-color: var(--role-teal, #4fd3c2); box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.doctor-medicine-full { grid-column: 1 / -1; }
.doctor-medicine-results { position: absolute; z-index: 30; top: calc(100% - 2px); right: 0; left: 0; max-height: 220px; overflow: auto; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: #102a32; box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.doctor-medicine-results[hidden] { display: none; }
.doctor-medicine-result { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--role-border, #315760); background: transparent; color: var(--role-ink, #f3f7f6); font: inherit; text-align: left; cursor: pointer; }
.doctor-medicine-result:hover, .doctor-medicine-result[aria-selected="true"] { background: rgba(79,211,194,.1); }
.doctor-medicine-result small { color: var(--role-muted, #9bb0ba); }
.doctor-medicine-result-empty { display: block; padding: .8rem; color: var(--role-muted, #9bb0ba); font-size: .78rem; }
.doctor-medicine-add, .doctor-medicine-save { min-height: 40px; margin-top: 12px; padding: .65rem 1rem; border: 1px solid rgba(79,211,194,.4); border-radius: 999px; background: rgba(79,211,194,.12); color: var(--role-teal, #4fd3c2); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.doctor-medicine-add:disabled { opacity: .55; cursor: not-allowed; }
.doctor-medicine-save { display: block; margin-left: auto; background: var(--role-teal, #4fd3c2); color: #07181d; }
.doctor-medicine-error, .doctor-prescription-error { margin: 10px 0 0; color: #ffab92; font-size: .8rem; }
.doctor-note-validation-errors { margin: 16px 24px 0; padding: 12px 16px; border: 1px solid #d85d52; border-radius: 9px; background: rgba(216,93,82,.12); color: #ffd3cc; font-size: .84rem; }
.doctor-note-validation-errors strong { display: block; margin-bottom: 5px; }
.doctor-note-validation-errors ul { margin: 0; padding-left: 20px; }
.doctor-note-fields [aria-invalid=true] { border-color: #e76c60 !important; box-shadow: 0 0 0 2px rgba(231,108,96,.15); }
.doctor-clinical-note-section { min-width: 0; padding: 18px; border: 1px solid var(--role-border, #315760); border-radius: 14px; background: rgba(5, 23, 29, .42); }
.doctor-clinical-note-section h3 { margin: 0 0 14px; color: var(--role-ink, #f3f7f6); font: 800 1.05rem Manrope, sans-serif; }
.doctor-clinical-note-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; min-width: 0; }
.doctor-clinical-note-fields > label { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--role-muted, #9bb0ba); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.doctor-clinical-note-fields input, .doctor-clinical-note-fields textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: #0b2028; color: var(--role-ink, #f3f7f6); font: inherit; font-size: .9rem; line-height: 1.45; }
.doctor-clinical-note-fields textarea { height: 86px; min-height: 86px; resize: vertical; }
.doctor-clinical-note-fields input:focus, .doctor-clinical-note-fields textarea:focus { outline: none; border-color: var(--role-teal, #4fd3c2); box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.doctor-clinical-note-fields input::placeholder { color: var(--role-faint, #718b95); opacity: 1; }
.doctor-clinical-note-fields input[type="number"]::-webkit-outer-spin-button,
.doctor-clinical-note-fields input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.doctor-clinical-note-fields input[type="number"] { -moz-appearance: textfield; }
.doctor-clinical-vitals { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 16px; align-items: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.doctor-clinical-vitals legend { grid-column: 1 / -1; margin: 0; padding: 0; color: var(--role-muted, #9bb0ba); font-size: .9rem; font-weight: 700; line-height: 1.4; }
.doctor-clinical-vitals label { display: block; min-width: 0; margin: 0; overflow: hidden; color: var(--role-muted, #9bb0ba); font-size: .82rem; font-weight: 700; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.doctor-clinical-vitals input { display: block; width: 100%; min-width: 0; height: 48px; margin-top: 6px; padding: 10px 12px; box-sizing: border-box; }
.doctor-clinical-note-full { grid-column: 1 / -1; }
.doctor-prescription-section[aria-invalid=true] { border-color: #e76c60; }
.doctor-prescription-preview { padding: 24px; background: #fff; color: #15252a; }
.doctor-prescription-preview h2 { margin: 0 0 14px; font: 800 1.35rem Manrope, sans-serif; }
.doctor-prescription-preview-patient { margin-bottom: 8px; font-weight: 800; }
.doctor-prescription-preview [data-preview-diagnosis], .doctor-prescription-preview-notes, .doctor-prescription-preview [data-preview-additional-note] { white-space: pre-wrap; }
.doctor-prescription-preview-medicine { margin: 14px 0; padding: 12px; border: 1px solid #ccd7d9; border-radius: 8px; break-inside: avoid; }
.doctor-prescription-preview-medicine h3 { margin: 0 0 6px; font-size: 1rem; }
.doctor-prescription-preview-medicine p { margin: 4px 0; font-size: .86rem; }
.doctor-prescription-preview-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.doctor-history-prescription-item, .prescription-item-summary { display: grid; gap: 3px; margin-top: 9px; padding: 9px 11px; border-left: 2px solid var(--role-teal, #4fd3c2); border-radius: 0 8px 8px 0; background: rgba(79,211,194,.06); }
.doctor-history-prescription-item strong, .prescription-item-summary strong { font-size: .86rem; }
.doctor-history-prescription-item p, .prescription-item-summary p { margin: 2px 0; }
.doctor-history-prescription-item small, .prescription-item-summary small { color: var(--role-muted, #9bb0ba); font-size: .74rem; }
.doctor-prescription-preview[hidden] { display: none; }
.doctor-note-footer[hidden] { display: none; }
.doctor-note-fields[hidden] { display: none; }
@media (max-width: 720px) { .doctor-medicine-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.doctor-prescription-heading { flex-direction: column; }.doctor-prescription-heading p { margin-top: 0; } }
@media (max-width: 991px) { .doctor-clinical-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .doctor-clinical-note-fields { grid-template-columns: 1fr; }.doctor-clinical-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }.doctor-clinical-note-section { padding: 14px; } }
@media (max-width: 359px) { .doctor-clinical-vitals { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .doctor-medicine-fields { grid-template-columns: 1fr; }.doctor-prescription-section { padding: 12px; }.doctor-prescription-preview { padding: 16px; }.doctor-prescription-preview-actions { flex-direction: column; }.doctor-prescription-preview-actions button {   width: 100%; } }
.doctor-medicine-editor { border-left: 3px solid var(--role-teal, #4fd3c2); }
.doctor-medicine-editor.done { padding: 10px 12px; border-left-color: #2e9e6b; }
.doctor-medicine-editor.done .body, .doctor-medicine-editor.done .medh { display: none; }
.doctor-medicine-summary.sum { display: none; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.doctor-medicine-editor.done .doctor-medicine-summary.sum { display: flex; }
.doctor-medicine-summary[hidden] { display: none !important; }
.doctor-medicine-number.no { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--role-teal, #4fd3c2); color: #07181d; font-size: 13px; font-weight: 700; }
.doctor-medicine-summary-name { flex: 1 1 170px; min-width: 150px; color: var(--role-ink, #f3f7f6); font-size: .88rem; overflow-wrap: anywhere; }
.doctor-medicine-summary-name strong { display: block; font-size: .9rem; }
.doctor-medicine-summary-name small, .doctor-medicine-summary-column small { display: block; margin-top: 3px; color: var(--role-muted, #9bb0ba); font-size: 12.5px; font-weight: 400; overflow-wrap: anywhere; }
.doctor-medicine-summary-column { flex: 1 1 140px; min-width: 0; color: var(--role-ink, #f3f7f6); font-size: .84rem; overflow-wrap: anywhere; }
.doctor-medicine-summary-actions { display: flex; flex: 0 0 auto; gap: 6px; margin-left: auto; }
.doctor-medicine-summary-actions button, .doctor-medicine-editor-title button { min-height: 34px; padding: 5px 12px; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: transparent; color: var(--role-ink, #f3f7f6); font: inherit; font-size: 13px; cursor: pointer; }
.doctor-medicine-summary-actions button:hover, .doctor-medicine-editor-title button:hover { border-color: var(--role-teal, #4fd3c2); }
.doctor-medicine-summary-actions .doctor-medicine-remove, .doctor-medicine-editor-title .doctor-medicine-cancel { color: #ff8d83; }
.doctor-medicine-editor-title { margin-bottom: 10px; }
.doctor-medicine-body { min-width: 0; }
.doctor-medicine-fields label, .doctor-medicine-name { font-size: 12.5px; }
.doctor-medicine-fields input, .doctor-medicine-fields select, .doctor-medicine-fields textarea, .doctor-medicine-name input { font-size: 14px; }
.doctor-medicine-save { border-radius: 9px; }
.doctor-medicine-fields-reference { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.doctor-medicine-fields-reference > .doctor-medicine-name { grid-column: span 1; }
.doctor-medicine-fields-reference > label,
.doctor-medicine-paired-field { grid-template-rows: minmax(1.4em, auto) auto; align-content: start; }
.doctor-medicine-fields-reference > label,
.doctor-medicine-name,
.doctor-medicine-paired-field,
.doctor-medicine-times { min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.doctor-medicine-label-text { display: block; min-width: 0; color: var(--role-muted, #9bb0ba); font: inherit; line-height: inherit; overflow-wrap: anywhere; }
.doctor-medicine-required { display: inline; margin-left: .18em; color: #ff9b58; font: inherit; line-height: inherit; }
.doctor-medicine-fields-reference > label { gap: 6px; }
.doctor-medicine-fields-reference input:not([type="checkbox"]),
.doctor-medicine-fields-reference select { min-width: 0; min-height: 42px; padding: 9px 10px; font-size: 14px; line-height: 1.35; }
.doctor-medicine-fields-reference textarea { min-height: 76px; padding: 10px; font-size: 14px; line-height: 1.45; }
.doctor-medicine-paired-field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--role-muted, #9bb0ba); font-size: 12.5px; font-weight: 700; }
.doctor-medicine-paired-field > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; min-width: 0; }
.doctor-medicine-paired-field input, .doctor-medicine-paired-field select { min-width: 0; }
.doctor-medicine-times { display: grid; gap: 8px; min-width: 0; color: var(--role-muted, #9bb0ba); font-size: 12.5px; font-weight: 700; }
.doctor-medicine-fields-reference [hidden] { display: none !important; }
.doctor-medicine-times [data-medicine-times] { display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-medicine-times [data-medicine-times] label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 7px; min-height: 35px; padding: 6px 11px; border: 1px solid var(--role-border, #315760); border-radius: 999px; background: #0b2028; color: var(--role-muted, #c0d0d3); font-size: 12px; font-weight: 650; cursor: pointer; }
.doctor-medicine-times [data-medicine-times] label:has(input:checked) { border-color: var(--role-teal, #4fd3c2); background: rgba(79,211,194,.13); color: var(--role-teal, #4fd3c2); }
.doctor-medicine-times [data-medicine-times] input { width: 15px; min-height: 15px; height: 15px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; accent-color: var(--role-teal, #4fd3c2); }
.doctor-medicine-times [data-medicine-times][aria-invalid=true] { padding: 8px; border: 1px solid #e76c60; border-radius: 9px; }
.doctor-medicine-editor-title .doctor-medicine-cancel { border-color: rgba(231,108,96,.5); color: #ffab92; }
.doctor-medicine-save { padding: .7rem 1.15rem; border-color: transparent; background: var(--role-teal, #4fd3c2); color: #07181d; font-weight: 800; }
.doctor-medicine-save:hover { background: #72e2d3; }
.doctor-medicine-error.rerr { padding: 8px 12px; border-radius: 7px; background: rgba(216,93,82,.14); color: #ffb3a4; font-size: 13.5px; }
.doctor-medicine-editor button:focus-visible, .doctor-medicine-editor input:focus-visible, .doctor-medicine-editor select:focus-visible, .doctor-medicine-editor textarea:focus-visible { outline: 3px solid rgba(79,211,194,.55); outline-offset: 2px; }
@media (max-width: 900px) { .doctor-medicine-fields-reference { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .doctor-medicine-summary-name { flex-basis: 145px; min-width: 130px; }
  .doctor-medicine-summary-column { flex-basis: 130px; }
  .doctor-medicine-summary-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .doctor-medicine-fields-reference { grid-template-columns: 1fr; }
  .doctor-medicine-fields-reference > .doctor-medicine-name { grid-column: 1; }
  .doctor-medicine-summary.sum { align-items: flex-start; gap: 9px; }
  .doctor-medicine-summary-name { flex: 1 1 calc(100% - 42px); }
  .doctor-medicine-summary-column { flex: 1 1 calc(50% - 10px); font-size: 12.5px; }
  .doctor-medicine-summary-actions { flex: 1 1 100%; justify-content: flex-end; }
  .doctor-medicine-editor-title { align-items: flex-start; }
}
.doctor-history-dialog { position: fixed; inset: 0; width: min(100% - 2rem, 648px); max-height: min(88vh, 650px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--role-border, #315760); border-radius: 20px; background: #102a32; color: var(--role-ink, #f3f7f6); box-shadow: 0 30px 90px rgba(0,0,0,.62); }
.doctor-history-dialog::backdrop { background: rgba(2,10,14,.78); backdrop-filter: blur(5px); }
.doctor-history-card { min-height: 100%; }
.doctor-history-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 24px; border-bottom: 1px solid var(--role-border, #315760); }
.doctor-history-header > div { display: flex; align-items: center; gap: 14px; }
.doctor-history-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: rgba(79,211,194,.14); color: var(--role-teal, #4fd3c2); font-size: 1.35rem; }
.doctor-history-header h2 { margin: 0; color: var(--role-ink, #f3f7f6); font-family: Manrope, sans-serif; font-size: 1.3rem; }
.doctor-history-header p { margin: 4px 0 0; color: var(--role-muted, #9bb0ba); font-size: .82rem; }
.doctor-history-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--role-border, #315760); border-radius: 50%; background: transparent; color: var(--role-muted, #9bb0ba); font-size: 1.5rem; cursor: pointer; }
.doctor-history-close:hover { border-color: var(--role-teal, #4fd3c2); color: var(--role-ink, #f3f7f6); }
.doctor-history-list-view, .doctor-history-detail-view { padding: 20px 24px 24px; }
.doctor-history-search { display: flex; align-items: center; gap: .6rem; min-height: 42px; margin-bottom: 12px; padding: 0 .8rem; border: 1px solid var(--role-border, #315760); border-radius: 9px; background: #0b2028; color: var(--role-teal, #4fd3c2); }
.doctor-history-search:focus-within { border-color: var(--role-teal, #4fd3c2); box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.doctor-history-search span { font-size: 1.1rem; line-height: 1; }
.doctor-history-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--role-ink, #f3f7f6); font: inherit; font-size: .82rem; }
.doctor-history-search input::placeholder { color: var(--role-faint, #718b95); }
.doctor-history-patients { display: grid; gap: 2px; max-height: 430px; overflow-y: auto; }
.doctor-history-patient { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .55rem; border: 0; border-bottom: 1px solid rgba(49,87,96,.55); background: transparent; color: var(--role-ink, #f3f7f6); font: inherit; text-align: left; cursor: pointer; }
.doctor-history-patient:hover { background: rgba(79,211,194,.08); }
.doctor-history-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: rgba(79,211,194,.12); color: var(--role-teal, #4fd3c2); font-size: .76rem; font-weight: 800; }
.doctor-history-patient strong, .doctor-history-patient small, .doctor-history-patient span { display: block; }
.doctor-history-patient strong { font-size: .9rem; }
.doctor-history-patient small { margin-top: .2rem; color: var(--role-muted, #9bb0ba); font-size: .74rem; }
.doctor-history-empty { padding: 1.5rem 0; color: var(--role-muted, #9bb0ba); font-size: .82rem; text-align: center; }
.doctor-history-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: 0; border: 0; background: transparent; color: var(--role-muted, #9bb0ba); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.doctor-history-back:hover { color: var(--role-teal, #4fd3c2); }
.doctor-history-patient-heading { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--role-border, #315760); }
.doctor-history-patient-heading strong, .doctor-history-patient-heading small { display: block; }
.doctor-history-patient-heading strong { font-size: 1rem; }
.doctor-history-patient-heading small { margin-top: .2rem; color: var(--role-muted, #9bb0ba); font-size: .75rem; }
.doctor-history-visits { max-height: 390px; overflow-y: auto; }
.doctor-history-visit { padding: 1rem 0; border-bottom: 1px solid var(--role-border, #315760); }
.doctor-history-visit-meta { display: flex; align-items: center; gap: .65rem; }
.doctor-history-visit-meta strong { color: var(--role-teal, #4fd3c2); font-size: .8rem; }
.doctor-history-visit-meta span { padding: .22rem .55rem; border: 1px solid rgba(79,211,194,.25); border-radius: 999px; color: var(--role-muted, #9bb0ba); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.doctor-history-visit h3 { margin: .7rem 0 .25rem; color: var(--role-ink, #f3f7f6); font-size: 1rem; }
.doctor-history-visit p { margin: 0; color: var(--role-muted, #9bb0ba); font-size: .84rem; line-height: 1.5; }
.doctor-history-visit small, .doctor-history-visit em { display: block; margin-top: .65rem; color: var(--role-muted, #9bb0ba); font-size: .74rem; font-style: normal; }
.hms-approve-form { display: inline-block; margin: .45rem 0 0 .35rem; }
.hms-approve-button { min-height: 34px; padding: .45rem .8rem; border: 1px solid rgba(79,211,194,.35); border-radius: 999px; background: rgba(79,211,194,.14); color: var(--role-teal, #4fd3c2); font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.hms-approve-button:hover { background: rgba(79,211,194,.24); color: var(--role-ink, #f3f7f6); }
@media (max-width: 640px) { .doctor-history-list-view, .doctor-history-detail-view { padding: 18px; }.doctor-history-header { padding-inline: 18px; } }
.workspace-admit-selected { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(51,183,166,.3); border-radius: 12px; background: rgba(51,183,166,.08); color: var(--workspace-ink); }
.workspace-admit-selected-label { color: var(--workspace-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace-admit-selected strong { font-size: .96rem; }
.workspace-admit-selected span { color: var(--workspace-muted); font-size: .76rem; }
.workspace-search-error { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; padding: .7rem .8rem; border: 1px solid rgba(248,134,108,.35); border-radius: 10px; background: rgba(248,134,108,.12); color: #ffd5cc; font-size: .78rem; font-weight: 600; line-height: 1.4; }
.workspace-search-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(248,134,108,.18); color: #ffbfaa; font-size: .7rem; font-weight: 800; }
.workspace-emergency-dialog { position: fixed; inset: 0; width: min(100% - 2rem, 640px); max-height: min(88vh, 720px); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(132, 161, 175, .25); border-radius: 22px; background: rgba(15, 36, 45, .98); box-shadow: 0 36px 90px rgba(3, 12, 16, .6); color: #edf6f9; }
.workspace-emergency-dialog::backdrop { background: rgba(5, 15, 17, .6); backdrop-filter: blur(5px); }
.workspace-emergency-form { display: grid; }
.workspace-emergency-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem 1rem; border-bottom: 1px solid rgba(126, 153, 163, .18); }
.workspace-emergency-header-title-wrap { display: flex; align-items: center; gap: .9rem; }
.workspace-emergency-alert-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 109, 86, .18); color: #ff7a69; font-size: 1.3rem; font-weight: 800; }
.workspace-emergency-dialog-header h2 { margin: 0; color: #f3f6f8; font-family: Manrope, sans-serif; font-size: clamp(2rem, 3vw, 2.45rem); line-height: 1.1; }
.workspace-emergency-dialog-header p { margin: .2rem 0 0; color: #a6b7c0; font-size: .9rem; }
.workspace-emergency-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(153, 176, 185, .25); border-radius: 50%; background: transparent; color: #e8f2f5; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.workspace-emergency-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; padding: 1.2rem 1.5rem 1rem; }
.workspace-emergency-full { grid-column: 1 / -1; }
.workspace-emergency-fields label, .workspace-triage-field { display: grid; gap: .45rem; }
.workspace-emergency-fields span, .workspace-triage-field legend { color: #e8f2f5; font-size: .9rem; font-weight: 600; }
.workspace-emergency-fields b { color: #ff8d77; }
.workspace-emergency-input { width: 100%; min-height: 46px; padding: .72rem .85rem; border: 1px solid rgba(130, 150, 162, .42); border-radius: 12px; background: rgba(12, 28, 35, .9); color: #eff8fa; font: inherit; }
.workspace-emergency-input::placeholder { color: #8ca3ad; }
.workspace-emergency-input:focus { outline: none; border-color: #ff9b7a; box-shadow: 0 0 0 2px rgba(255, 155, 122, .15); }
.workspace-emergency-full .workspace-emergency-input { border-color: rgba(255, 134, 117, .9); }
.workspace-emergency-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; grid-column: 1 / -1; }
.workspace-triage-field { margin: 0; padding: 0; border: 0; }
.workspace-triage-options { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .1rem; }
.triage-option { min-height: 38px; padding: .55rem 1.1rem; border: 1px solid rgba(149, 167, 177, .35); border-radius: 999px; background: rgba(12, 28, 35, .9); color: #edf6f9; font: inherit; font-size: .96rem; font-weight: 700; cursor: pointer; }
.triage-option.is-selected { border-color: rgba(77, 196, 164, .8); background: rgba(92, 206, 176, .18); color: #f2fffb; }
.workspace-emergency-form textarea { min-height: 86px; resize: vertical; }
.workspace-emergency-dialog-footer { display: flex; justify-content: flex-end; gap: .9rem; padding: 1rem 1.5rem 1.4rem; }
.workspace-emergency-cancel, .workspace-emergency-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 148px; padding: .78rem 1.5rem; border-radius: 999px; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.workspace-emergency-cancel { border: 1px solid rgba(176, 195, 202, .28); background: rgba(255,255,255,.06); color: #edf6f9; }
.workspace-emergency-submit { min-width: 220px; border: 0; background: linear-gradient(135deg, #ff8d70 0%, #f56e4b 100%); color: #fff; box-shadow: 0 12px 26px rgba(245,110,75,.26); }
.workspace-success-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.25rem; background: rgba(3, 10, 14, .52); backdrop-filter: blur(4px); }
.workspace-success-overlay[hidden] { display: none; }
.workspace-success-card { width: min(100%, 760px); padding: 2.5rem 1.5rem 2rem; border: 1px solid rgba(93, 155, 171, .5); border-radius: 24px; background: rgba(14, 34, 42, .94); box-shadow: 0 28px 70px rgba(0,0,0,.42); text-align: center; }
.workspace-success-icon { display: grid; width: 90px; height: 90px; margin: 0 auto 1.2rem; place-items: center; border-radius: 50%; background: rgba(79, 211, 194, .15); color: #5fe4d0; }
.workspace-success-icon svg { width: 42px; height: 42px; }
.workspace-success-card h3 { margin: 0 0 .8rem; color: #f4fbff; font-family: Manrope, sans-serif; font-size: clamp(1.9rem, 2.7vw, 3rem); font-weight: 800; line-height: 1.1; }
.workspace-success-card p { margin: 0 0 2rem; color: rgba(239, 245, 247, .9); font-size: 1.1rem; line-height: 1.5; }
.workspace-success-button { min-height: 58px; padding: .8rem 2.4rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8cebe0 0%, #67d7d2 100%); color: #0a2630; font-family: Manrope, sans-serif; font-size: 1.1rem; font-weight: 800; box-shadow: 0 10px 30px rgba(108,219,209,.28); cursor: pointer; }
.workspace-success-button:hover { transform: translateY(-1px); }
body.workspace-dialog-open { overflow: hidden; }
.workspace-hero-row { padding: 26px 28px; border: 1px solid var(--workspace-border); border-radius: 20px; background: var(--workspace-card); }.workspace-info-card { height: 100%; box-sizing: border-box; padding: 0 0 0 24px; border: 0; border-left: 1px solid var(--workspace-border); border-radius: 0; background: transparent; }.workspace-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }.workspace-info-row { min-width: 0; border-bottom: 0; }.workspace-info-row strong { display: block; overflow: hidden; color: var(--workspace-ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }.workspace-info-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid var(--workspace-border); border-radius: 9px; color: var(--workspace-teal); font-size: .9rem; }.workspace-portals-section { margin-bottom: 42px; }.workspace-portals-section .workspace-section-head { margin-bottom: 16px; }.workspace-portals-section .workspace-portals { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }.workspace-portal-admin .workspace-portal-icon { background: rgba(121,159,255,.14); color: #86aaff; }.workspace-portal-admin .workspace-portal-button { background: #7fa4ff; color: #0c1a34; }.workspace-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.workspace-quick-btn { min-height: 64px; box-sizing: border-box; }
.workspace-drawer-overlay { position: fixed; z-index: 40; inset: 0; background: rgba(3,10,13,.55); }.minimal-workspace-shell .workspace-profile-drawer { z-index: 41; width: min(86vw, 340px); padding: 28px 26px; background: #0f2c34; border-left: 1px solid var(--workspace-border); box-shadow: -24px 0 60px rgba(0,0,0,.4); }.workspace-profile-drawer-header h2, .minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading strong, .minimal-workspace-shell .workspace-profile-details strong { color: var(--workspace-ink) !important; }.workspace-profile-drawer-close { background: rgba(255,255,255,.06); color: var(--workspace-ink); }.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading, .minimal-workspace-shell .workspace-profile-details div { border-color: var(--workspace-border); }.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-heading small, .minimal-workspace-shell .workspace-profile-details span { color: var(--workspace-muted); }.minimal-workspace-shell .workspace-profile-drawer-link { background: var(--workspace-teal); color: #07181d; }.minimal-workspace-shell .workspace-profile-drawer-link:hover { background: #63dfcf; color: #07181d; }.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-logout { border-color: var(--workspace-border); background: transparent; color: var(--workspace-muted); }.minimal-workspace-shell .workspace-profile-drawer .profile-drawer-logout:hover { border-color: rgba(226,105,79,.4); background: rgba(226,105,79,.1); color: #f0a188; }
body.workspace-profile-scroll-locked { position: fixed; top: var(--workspace-profile-scroll-lock-top, 0); width: 100%; overflow: hidden; }
@media (max-width: 800px) { .minimal-workspace-shell .product-header { padding: 1rem 1.25rem; }.minimal-workspace-page { padding: 32px 20px 60px; }.minimal-workspace-shell .workspace-profile-name { display: inline-block !important; max-width: 115px; }.workspace-header-center { position: static; margin: 0 auto; transform: none; }.workspace-header-center strong { font-size: .8rem; }.workspace-header-center span { display: none; }.workspace-desktop-break { display: none; }.workspace-hero-row { padding: 22px 20px; }.workspace-info-card { margin-top: 24px; padding: 24px 0 0; border-top: 1px solid var(--workspace-border); border-left: 0; }.workspace-info-grid, .workspace-portals-section .workspace-portals, .workspace-quick-actions { grid-template-columns: 1fr; }.workspace-quick-btn { min-height: 52px; } }

/* Upcoming portal cards */
.workspace-upcoming-module-card:hover { transform: none; border-color: var(--workspace-border); background: var(--workspace-card); box-shadow: none; }
.workspace-upcoming-module-card .workspace-portal-icon { background: rgba(121,159,255,.14); color: #86aaff; }
.workspace-upcoming-module-card .workspace-portal-icon svg { width: 22px; height: 22px; }
.workspace-coming-soon-label { border: 1px solid var(--workspace-border); background: transparent; color: var(--workspace-faint); cursor: default; }

/* Shared dark application shell for hospital login, registration, and care workflows */
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) {
  min-height: 100vh;
  background: linear-gradient(165deg, #0b2027 0%, #061319 65%, #050f14 100%);
  color: #f3f7f6;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell)::before { background: radial-gradient(circle at 85% 10%, rgba(51,183,166,.12), transparent 32%), radial-gradient(circle at 15% 85%, rgba(226,149,79,.06), transparent 30%); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-header { width: 100%; max-width: none; min-height: 80px; padding: 1rem 3rem; border-bottom: 1px solid rgba(255,255,255,.07); background: #0f2c34; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-brand { color: #f3f7f6; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: rgba(51,183,166,.16); color: #4fd3c2; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-brand-name { font-family: Manrope, sans-serif; color: #f3f7f6; font-size: .95rem; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-brand-subtitle { display: block; color: #9bb0ba; font-size: .75rem; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-back { padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #9bb0ba; font-size: .74rem; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-back:hover { border-color: #4fd3c2; color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-profile-wrap.profile-drawer-wrap { position: static; top: auto; right: auto; transform: none; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-profile-trigger.profile-drawer-trigger { display: inline-flex; flex-direction: row; width: auto; height: auto; min-height: 46px; padding: .38rem 1rem .38rem .38rem; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: #102a32; color: #f3f7f6; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-profile-trigger .workspace-profile-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgba(51,183,166,.16); color: #4fd3c2; font-size: .7rem; font-weight: 800; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-profile-name { display: inline-block; max-width: 150px; overflow: hidden; color: #f3f7f6; font-size: .88rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-profile-chevron { color: #9bb0ba; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame { border-color: rgba(255,255,255,.08); background: #102a32; box-shadow: 0 28px 80px rgba(0,0,0,.28); }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame .auth-card { background: #102a32; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-card h2, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-card .muted, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-page h1, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-page h2, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-page h3 { color: #f3f7f6; -webkit-text-fill-color: currentColor; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .muted, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-page p, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-help { color: #9bb0ba; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-form label, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form label { color: #f3f7f6; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-form input, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form input, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form select, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form textarea { border-color: rgba(255,255,255,.12); background: #0b2027; color: #f3f7f6; box-shadow: none; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .form-section { border-color: rgba(255,255,255,.1); }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .btn-primary { background: #4fd3c2; color: #07181d; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-switch, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-switch a { color: #9bb0ba; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-switch a { color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-form textarea { border-color: rgba(255,255,255,.12); background: #0b2027; color: #f3f7f6; box-shadow: none; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-form textarea::placeholder { color: #9bb0ba; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-form textarea:focus { border-color: #4fd3c2; background: #0b2027; box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email:-webkit-autofill {
  min-height: 45px;
  padding: .68rem .78rem;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #0b2027;
  color: #f3f7f6;
  font: inherit;
  font-weight: 400;
  -webkit-text-fill-color: #f3f7f6;
  box-shadow: inset 0 2px 4px rgba(15,42,74,.02);
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email:focus {
  border-color: #4fd3c2;
  outline: none;
  background: #0b2027;
  box-shadow: 0 0 0 3px rgba(79,211,194,.14);
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email::placeholder {
  color: #9bb0ba;
  -webkit-text-fill-color: #9bb0ba;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0b2027 inset;
  transition: background-color 9999s ease-out;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .auth-frame-register .product-form .hospital-work-email:-webkit-autofill:focus {
  border-color: #4fd3c2;
  outline: none;
  -webkit-box-shadow: 0 0 0 1000px #0b2027 inset, 0 0 0 3px rgba(79,211,194,.14);
}
.signup-field-error {
  display: block;
  margin-top: .05rem;
  color: #ff9d94;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
}
.signup-field-error[hidden] { display: none; }
.signup-password-fields > label {
  align-content: start;
  grid-template-rows: auto auto minmax(1.2rem, auto);
}
.product-form [aria-invalid="true"] { border-color: #ff8278 !important; box-shadow: 0 0 0 3px rgba(255,130,120,.14) !important; }
.terms-consent .checkbox-label .signup-field-error { grid-column: 1 / -1; }
@media (max-width: 800px) { .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-header { padding: 1rem 1.25rem; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-back { display: inline-flex; padding: .5rem .75rem; white-space: nowrap; } }

/* Dark workflow forms */
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .admission-form-page .form-section {
  margin-bottom: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: #102a32;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form .form-two {
  align-items: start;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form .form-two > label {
  grid-template-rows: auto 48px minmax(1.2rem, auto);
  align-content: start;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form .form-two > label > input,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form .form-two > label > select {
  min-height: 48px;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .record-form .form-two > label > .form-help {
  display: block;
  margin-top: .3rem;
  line-height: 1.2;
}

/* Dark bed management workflow */
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-page {
  width: min(100% - 64px, 1180px);
  padding: 2.5rem 0 4rem;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-tabs a {
  color: #9bb0ba;
  font-size: .85rem;
  font-weight: 600;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-tabs a.active,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-tabs a:hover { color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-board {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: #102a32;
  box-shadow: none;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel { padding: 1.25rem; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel .search-bar { margin: 0; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel select {
  min-height: 46px;
  padding: .65rem 2.2rem .65rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #0b2027;
  color: #f3f7f6;
  font: inherit;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel .btn-secondary {
  min-height: 46px;
  border-color: rgba(79,211,194,.35);
  background: rgba(79,211,194,.12);
  color: #4fd3c2;
  box-shadow: none;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel .btn-secondary:hover { background: rgba(79,211,194,.22); }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-board { padding: 1.5rem; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-board h2 { color: #f3f7f6; -webkit-text-fill-color: currentColor; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-board .directory-count { color: #9bb0ba; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card {
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid #4fd3c2;
  border-radius: 10px;
  background: #0b2027;
}
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card span,
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card small { color: #9bb0ba; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card strong { color: #f3f7f6; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card em { color: #4fd3c2; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card-occupied { border-left-color: #e2954f; background: #1b292c; }
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-card-occupied em { color: #e2954f; }
@media (max-width: 800px) { .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .workspace-page { width: min(100% - 40px, 1180px); padding-top: 1.5rem; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel .search-bar { flex-direction: column; }.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel select, .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .bed-filter-panel .btn-secondary { width: 100%; } }

/* Service lifecycle status */
.service-date { margin-top: .35rem; color: #4fd3c2 !important; font-weight: 700; }
.service-expiry-banner { position: relative; z-index: 45; max-width: 1180px; margin: 1rem auto 0; padding: .8rem 1rem; border: 1px solid rgba(226,149,79,.38); border-radius: 10px; background: rgba(226,149,79,.14); color: #f5d09c; font-size: .84rem; font-weight: 600; text-align: center; }
.service-expiry-banner a { color: #fff3dc; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.service-expiry-banner.is-expired { border-color: rgba(240,161,136,.42); background: rgba(176,73,46,.22); color: #ffd0c5; }
.minimal-workspace-shell .workspace-admin-login-link { border: 1px solid var(--workspace-border); background: transparent; color: var(--workspace-ink); }
.minimal-workspace-shell .workspace-admin-login-link:hover { background: var(--workspace-card-raised); color: var(--workspace-ink); }

/* Full-bleed workflow header */
.auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-header {
  width: calc(100% + 48px);
  max-width: none;
  margin-left: -24px;
  padding-inline: max(3rem, calc(24px + 3vw));
}
@media (max-width: 800px) {
  .auth-shell:not(.minimal-workspace-shell):not(.role-dashboard-shell):not(.reference-admin-shell) .product-header {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-inline: 1.25rem;
  }
}

/* Dark role dashboards */
.role-dashboard-shell {
  --role-ink: #f3f7f6;
  --role-muted: #9bb0ba;
  --role-faint: #6e8590;
  --role-teal: #4fd3c2;
  --role-card: #102a32;
  --role-card-raised: #13323b;
  --role-border: rgba(255,255,255,.08);
  background: linear-gradient(165deg, #0b2027 0%, #061319 65%, #050f14 100%);
  color: var(--role-ink);
}
.role-dashboard-shell .hms-dashboard-shell {
  background: transparent;
  color: var(--role-ink);
}
.role-dashboard-shell .hms-sidebar {
  background: #0f2c34;
  border-right: 1px solid var(--role-border);
}
.role-dashboard-shell .hms-brand strong,
.role-dashboard-shell .hms-brand small { color: var(--role-ink); }
.role-dashboard-shell .hms-brand small { color: var(--role-muted); }
.role-dashboard-shell .hms-brand-mark { background: rgba(79,211,194,.16); color: var(--role-teal); }
.role-dashboard-shell .hms-sidebar-nav a,
.role-dashboard-shell .hms-sidebar-nav button { color: var(--role-muted); }
.role-dashboard-shell .hms-sidebar-nav a::before,
.role-dashboard-shell .hms-sidebar-nav button::before { color: var(--role-teal); }
.role-dashboard-shell .hms-sidebar-nav a:hover,
.role-dashboard-shell .hms-sidebar-nav a.active,
.role-dashboard-shell .hms-sidebar-nav button:hover { background: rgba(79,211,194,.14); color: var(--role-ink); }
.role-dashboard-shell .hms-sidebar-nav form { border-color: var(--role-border); }
.role-dashboard-shell .hms-dashboard-main { background: transparent; }
.role-dashboard-shell .hms-topbar { border-color: var(--role-border); }
.role-dashboard-shell .hms-menu-toggle { width: 48px; height: 48px; border-color: #24434c; border-radius: 10px; background: #102832; color: var(--role-teal); box-shadow: none; }
.role-dashboard-shell .hms-menu-toggle:hover { border-color: var(--role-teal); background: #1d4148; color: #c3fff8; }
.role-dashboard-shell .hms-menu-toggle:focus-visible { outline-color: var(--role-teal); }
.role-dashboard-shell .hms-workspace-back { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; margin-left: auto; padding: .45rem .75rem; border: 1px solid var(--role-border); border-radius: 8px; color: var(--role-teal); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.role-dashboard-shell .hms-workspace-back span { font-size: .95rem; line-height: 1; }
.role-dashboard-shell .hms-workspace-back:hover { border-color: var(--role-teal); background: rgba(79,211,194,.1); color: #c3fff8; }
.role-dashboard-shell .hms-global-search { border-color: var(--role-border); background: var(--role-card); }
.role-dashboard-shell .hms-global-search span,
.role-dashboard-shell .hms-global-search input { color: var(--role-muted); }
.role-dashboard-shell .hms-global-search input::placeholder { color: var(--role-faint); }
.role-dashboard-shell .hms-global-search { min-height: 44px; border-color: rgba(110,225,211,.28); background: #102f38; box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.role-dashboard-shell .hms-global-search span { color: #6ee1d3; font-size: 1.1rem; line-height: 1; }
.role-dashboard-shell .hms-global-search input { color: #f0fbfa !important; caret-color: #6ee1d3; font-size: .82rem; font-weight: 600; line-height: 1.4; -webkit-text-fill-color: #f0fbfa; }
.role-dashboard-shell .hms-global-search input::placeholder { color: #a8c4c5 !important; opacity: 1; -webkit-text-fill-color: #a8c4c5; }
.role-dashboard-shell .hms-search-button { min-width: 66px; min-height: 34px; background: #4fd3c2; color: #08252b; font-size: .72rem; font-weight: 800; }
.role-dashboard-shell .hms-search-button:hover { background: #76e5d7; color: #062027; }
.role-dashboard-shell .hms-global-search { border-color: #dce7f3; background: #ffffff; box-shadow: 0 5px 16px rgba(25,69,112,.05); }
.role-dashboard-shell .hms-global-search span { color: #2774d6; }
.role-dashboard-shell .hms-global-search input { color: #173b65 !important; caret-color: #2478ed; -webkit-text-fill-color: #173b65; }
.role-dashboard-shell .hms-global-search input::placeholder { color: #7890a8 !important; -webkit-text-fill-color: #7890a8; }
.role-dashboard-shell .hms-global-search:focus-within { border-color: #2478ed; box-shadow: 0 0 0 3px rgba(36,120,237,.12), 0 5px 16px rgba(25,69,112,.05); }
.role-dashboard-shell .hms-search-button { background: #2478ed; color: #ffffff; }
.role-dashboard-shell .hms-search-button:hover { background: #175fc4; color: #ffffff; }
.role-dashboard-shell .hms-notification { color: var(--role-teal); }
.role-dashboard-shell .hms-topbar .profile-drawer-trigger { border-color: var(--role-border); background: var(--role-card); }
.role-dashboard-shell .hms-topbar .profile-drawer-trigger span { background: var(--role-teal); }
.role-dashboard-shell .hms-welcome { border-color: var(--role-border); background: linear-gradient(120deg, #102f38, #102a32); }
.role-dashboard-shell .hms-eyebrow { color: var(--role-teal); }
.role-dashboard-shell .hms-welcome h1,
.role-dashboard-shell .hms-panel-heading h2 { color: var(--role-ink); }
.role-dashboard-shell .hms-welcome p,
.role-dashboard-shell .hms-stat-card small,
.role-dashboard-shell .hms-stat-card em { color: var(--role-muted); }
.role-dashboard-shell .hms-primary-action { background: var(--role-teal); color: #07181d; }
.role-dashboard-shell .hms-primary-action:hover { background: #63dfcf; color: #07181d; }
.role-dashboard-shell .hms-stat-card,
.role-dashboard-shell .hms-panel,
.role-dashboard-shell .reception-patient-views { border-color: var(--role-border); background: var(--role-card); box-shadow: none; }
.role-dashboard-shell .hms-stat-card:hover { border-color: rgba(79,211,194,.3); }
.role-dashboard-shell .hms-stat-card strong,
.role-dashboard-shell .hms-table td strong { color: var(--role-ink); }
.role-dashboard-shell .hms-stat-icon { background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .stat-green .hms-stat-icon,
.role-dashboard-shell .stat-blue .hms-stat-icon,
.role-dashboard-shell .stat-purple .hms-stat-icon,
.role-dashboard-shell .stat-orange .hms-stat-icon,
.role-dashboard-shell .stat-pink .hms-stat-icon { background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .hms-panel-heading { border-color: var(--role-border); }
.role-dashboard-shell .hms-panel-heading a,
.role-dashboard-shell .hms-quick-links a,
.role-dashboard-shell .hms-pagination a { color: var(--role-teal); }
.role-dashboard-shell .hms-table th { background: #0b2027; color: var(--role-muted); }
.role-dashboard-shell .hms-table td { border-color: var(--role-border); color: var(--role-muted); }
.role-dashboard-shell .hms-status { background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .hms-status-admitted,
.role-dashboard-shell .hms-status-under_treatment { background: rgba(79,160,211,.16); color: #8fcaf0; }
.role-dashboard-shell .hms-status-discharged { background: rgba(255,255,255,.08); color: var(--role-muted); }
.role-dashboard-shell .hms-view-link { border-color: rgba(79,211,194,.35); background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .hms-view-link { cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.role-dashboard-shell .hms-view-link:hover { border-color: var(--role-teal); background: rgba(79,211,194,.14); color: #8af0e2; }
.role-dashboard-shell .hms-recent-panel .hms-panel-search { border-color: rgba(110,225,211,.28); background: #102f38; box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.role-dashboard-shell .hms-recent-panel .hms-panel-search span { color: #6ee1d3; }
.role-dashboard-shell .hms-recent-panel .hms-panel-search input { color: #f0fbfa; caret-color: #6ee1d3; -webkit-text-fill-color: #f0fbfa; }
.role-dashboard-shell .hms-recent-panel .hms-panel-search input::placeholder { color: #a8c4c5; opacity: 1; -webkit-text-fill-color: #a8c4c5; }
.role-dashboard-shell .hms-recent-panel .hms-panel-search:focus-within { border-color: #6ee1d3; background: #123740; box-shadow: 0 0 0 3px rgba(79,211,194,.14); }
.role-dashboard-shell .hms-documents-dialog { border-color: var(--role-border); background: var(--role-card); color: var(--role-ink); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.role-dashboard-shell .hms-documents-dialog::backdrop { background: rgba(3,13,17,.72); }
.patient-facts-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }.patient-contact-edit { padding: .4rem .65rem; border: 1px solid var(--role-border, #315760); border-radius: 7px; background: transparent; color: var(--role-teal, #4fd3c2); font: inherit; font-size: .65rem; font-weight: 800; cursor: pointer; }.patient-contact-edit:hover { border-color: var(--role-teal, #4fd3c2); background: rgba(79,211,194,.1); }.patient-contact-dialog { width: min(100% - 2rem, 600px); max-height: 90vh; }.patient-contact-dialog .hms-documents-modal { display: grid; gap: 1rem; padding: 1.25rem; }.patient-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }.patient-edit-grid label { display: grid; gap: .4rem; color: var(--role-muted, #9bb0ba); font-size: .78rem; font-weight: 700; }.patient-edit-full { grid-column: 1 / -1; }.patient-contact-dialog input, .patient-contact-dialog select, .patient-contact-dialog textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: .6rem .7rem; border: 1px solid var(--role-border, #315760); border-radius: 8px; background: var(--role-bg, #0b2027); color: var(--role-ink, #f3f7f6); font: inherit; }.patient-contact-dialog textarea { resize: vertical; }.patient-contact-dialog option { background: var(--role-bg, #0b2027); color: var(--role-ink, #f3f7f6); }
.role-dashboard-shell .hms-documents-heading { border-color: var(--role-border); }
.role-dashboard-shell .hms-documents-heading h2 { color: var(--role-ink); }
.role-dashboard-shell .hms-documents-close { background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .hms-documents-close:hover { background: rgba(79,211,194,.24); color: #8af0e2; }
.role-dashboard-shell .rmo-dashboard-stat-grid { grid-template-columns: minmax(240px, 310px); }
.role-dashboard-shell .rmo-category-count-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-dashboard-shell .rmo-category-card { text-decoration: none; }
.role-dashboard-shell .rmo-category-card:hover { border-color: var(--role-teal); }
.role-dashboard-shell .rmo-patient-category-tabs { overflow-x: auto; flex-wrap: nowrap; }
.role-dashboard-shell .rmo-patient-category-tabs a { gap: .4rem; }
.role-dashboard-shell .rmo-patient-category-tabs a span { color: inherit; opacity: .75; }
.role-dashboard-shell .rmo-category-table { min-width: 1240px; }
.role-dashboard-shell .rmo-patient-search--styled { width: min(100%, 385px); min-height: 46px; padding: .4rem .85rem; border: 1px solid #28616a; border-radius: 12px; background: #10343a; box-shadow: none; }
.role-dashboard-shell .rmo-patient-search--styled span { color: #62d7cc; font-size: 1rem; }
.role-dashboard-shell .rmo-patient-search--styled input { appearance: none; min-width: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent !important; box-shadow: none; color: #e4f0f0 !important; font-size: .82rem; font-weight: 500; -webkit-text-fill-color: #e4f0f0; }
.role-dashboard-shell .rmo-patient-search--styled input::placeholder { color: #a4b8bc !important; opacity: 1; -webkit-text-fill-color: #a4b8bc; }
.role-dashboard-shell .rmo-patient-search--styled:focus-within { border-color: #62d7cc; background: #10343a; box-shadow: 0 0 0 3px rgba(98,215,204,.12); }
.role-dashboard-shell .rmo-category-table tbody tr[hidden] { display: none; }
.role-dashboard-shell .rmo-er-register-scroll { max-height: 600px; overflow-x: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-color: var(--role-teal) var(--role-card); scrollbar-width: thin; }
.role-dashboard-shell .rmo-er-register-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.role-dashboard-shell .rmo-er-register-scroll::-webkit-scrollbar-track { border-radius: 999px; background: var(--role-card); }
.role-dashboard-shell .rmo-er-register-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--role-card); border-radius: 999px; background: var(--role-teal); }
.role-dashboard-shell .rmo-er-register-scroll .rmo-category-table thead th { position: sticky; top: 0; z-index: 2; }
.role-dashboard-shell .rmo-category-actions { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.role-dashboard-shell .rmo-category-actions .hms-primary-action { display: inline-flex; }
.role-dashboard-shell .rmo-dashboard-report-delete { display: inline-flex; align-items: center; gap: .4rem; min-height: 30px; padding: .15rem .65rem .15rem .2rem; border: 1.5px solid #b90000; border-radius: 999px; background: #ed3438; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); cursor: pointer; font: inherit; font-size: .68rem; font-weight: 800; line-height: 1; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.role-dashboard-shell .patient-detail-page .rmo-dashboard-report-delete { width: 88px; height: 32px; min-height: 32px; justify-content: center; gap: .3rem; padding: .15rem .35rem; }
.role-dashboard-shell .rmo-dashboard-report-delete:hover { transform: translateY(-1px); background: #d9232b; box-shadow: 0 4px 12px rgba(185,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.12); }
.role-dashboard-shell .rmo-dashboard-report-delete:focus-visible { outline: 3px solid rgba(255,95,95,.45); outline-offset: 3px; }
.role-dashboard-shell .rmo-dashboard-report-delete:disabled { cursor: wait; opacity: .78; transform: none; }
.role-dashboard-shell .rmo-dashboard-report-delete .rmo-delete-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #fff; color: #ed3438; }
.role-dashboard-shell .rmo-dashboard-report-delete .rmo-delete-icon svg { width: 14px; height: 14px; stroke-width: 2.5; }
.role-dashboard-shell .rmo-category-empty { margin: .4rem; }
.role-dashboard-shell .rmo-patient-search { width: min(100%, 430px); min-height: 42px; margin: 1rem 0; }
.role-dashboard-shell .rmo-search-count { margin: -.55rem 0 .6rem; color: var(--role-muted); font-size: .72rem; }
.role-dashboard-shell [data-rmo-search-empty][hidden] { display: none; }
.role-dashboard-shell .rmo-profile-trigger { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; width: auto; min-width: 190px; min-height: 42px; padding: .3rem .55rem .3rem .35rem; border: 1px solid var(--role-border); border-radius: 999px; background: var(--role-card); color: var(--role-ink); text-align: left; }
.role-dashboard-shell .hms-topbar .rmo-profile-trigger .workspace-profile-avatar { flex: 0 0 31px; width: 31px; height: 31px; background: rgba(79,211,194,.16); color: var(--role-teal); }
.role-dashboard-shell .hms-topbar .rmo-profile-trigger .rmo-profile-copy { display: grid; flex: 1; gap: .06rem; min-width: 0; background: transparent; }
.role-dashboard-shell .hms-topbar .rmo-profile-trigger .rmo-profile-copy strong { overflow: hidden; background: transparent; color: var(--role-ink); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.role-dashboard-shell .hms-topbar .rmo-profile-trigger .rmo-profile-copy small { overflow: hidden; background: transparent; color: var(--role-muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.role-dashboard-shell .hms-topbar .rmo-profile-trigger .workspace-profile-chevron { background: transparent; color: var(--role-muted); }
@media (max-width: 760px) { .role-dashboard-shell .rmo-dashboard-stat-grid { grid-template-columns: minmax(0, 1fr); }.role-dashboard-shell .rmo-category-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.role-dashboard-shell .rmo-patient-search { width: 100%; max-width: none; } }
.role-dashboard-shell .hms-document-row { border-color: var(--role-border); background: var(--role-card-raised); color: var(--role-muted); }
.role-dashboard-shell .hms-document-row a { color: var(--role-teal); }
.role-dashboard-shell .hms-document-upload { border-color: var(--role-border); }
.role-dashboard-shell .hms-document-upload input { border-color: var(--role-border); background: #0b2027; color: var(--role-ink); }
.role-dashboard-shell .hms-document-upload input::placeholder { color: var(--role-faint); }
.role-dashboard-shell .hms-document-upload button { background: var(--role-teal); color: #07181d; }
.role-dashboard-shell .hms-document-upload button:hover { background: #6ee1d3; }
.role-dashboard-shell .hms-patient-summary-grid div { border-color: var(--role-border); background: var(--role-card-raised); }
.role-dashboard-shell .hms-patient-summary-grid span { color: var(--role-faint); }
.role-dashboard-shell .hms-patient-summary-grid strong { color: var(--role-ink); }
.role-dashboard-shell .hms-patient-edit-button { background: var(--role-teal); color: #07181d; }
.role-dashboard-shell .hms-patient-edit-button:hover { background: #6ee1d3; color: #07181d; }
.role-dashboard-shell .hms-empty,
.role-dashboard-shell .hms-pagination,
.role-dashboard-shell .hms-quick-links a span,
.role-dashboard-shell .hms-alert-list p,
.role-dashboard-shell .hms-consultation { color: var(--role-muted); }
.role-dashboard-shell .hms-quick-links a,
.role-dashboard-shell .hms-alert-list > div,
.role-dashboard-shell .hms-consultation { border-color: var(--role-border); }
.role-dashboard-shell .reception-patient-views a { color: var(--role-muted); }
.role-dashboard-shell .reception-patient-views a:hover,
.role-dashboard-shell .reception-patient-views a.is-active { background: rgba(79,211,194,.16); color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page { width: min(100%, 1120px); margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2rem) 4rem; color: var(--role-ink); }
.role-dashboard-shell .patient-detail-shell { background: transparent; }
.role-dashboard-shell .patient-detail-topbar-title { flex: 1; color: var(--role-ink); font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; }
.role-dashboard-shell .hms-recent-panel .hms-pagination { display: none; }
.role-dashboard-shell .hms-recent-panel .hms-document-upload { display: none; }

.role-dashboard-shell .patient-detail-page .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.role-dashboard-shell .patient-detail-page .detail-grid > section,
.role-dashboard-shell .patient-detail-page .patient-facts {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--role-border);
  border-radius: 14px;
  background: var(--role-card);
  box-shadow: none;
}

.role-dashboard-shell .patient-detail-page .detail-grid > section .section-heading {
  margin: 0;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--role-border);
}

.role-dashboard-shell .patient-detail-page .detail-grid > section .history-list {
  margin-top: 0;
}

@media (max-width: 800px) {
  .role-dashboard-shell .patient-detail-page .detail-grid {
    grid-template-columns: 1fr;
  }
}

.role-dashboard-shell .patient-detail-page .detail-grid {
  align-items: stretch;
}

.role-dashboard-shell .patient-detail-page .detail-grid > section,
.role-dashboard-shell .patient-detail-page .patient-facts {
  height: 420px;
}

.role-dashboard-shell .patient-detail-page .detail-grid > section {
  display: flex;
  flex-direction: column;
}

.role-dashboard-shell .patient-detail-page .detail-grid > section .history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: .35rem;
  scrollbar-color: var(--role-teal) var(--role-card);
  scrollbar-width: thin;
}

.role-dashboard-shell .patient-detail-page .history-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  padding: .95rem 0;
  border-color: var(--role-border);
}

.role-dashboard-shell .patient-detail-page .history-item > div:last-child {
  min-width: 0;
}

.role-dashboard-shell .patient-detail-page .history-item p {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .role-dashboard-shell .patient-detail-page .detail-grid > section,
  .role-dashboard-shell .patient-detail-page .patient-facts {
    height: auto;
    min-height: 300px;
  }

  .role-dashboard-shell .patient-detail-page .detail-grid > section .history-list {
    max-height: 360px;
  }
}

.patient-detail-page .patient-facts dl {
  display: grid;
  gap: 0;
}

.patient-detail-page .patient-facts dl > div {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: baseline;
  padding: .8rem 0;
  border-top: 1px solid var(--role-border, var(--border));
}

.patient-detail-page .patient-facts dl > div:first-child {
  border-top: 0;
}

.patient-detail-page .patient-facts dt,
.patient-detail-page .patient-facts dd {
  margin: 0;
}

.patient-detail-page .patient-facts dd {
  overflow-wrap: anywhere;
  font-weight: 700;
  text-align: right;
}

.patient-detail-page .detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
}

.patient-detail-page .detail-grid > *,
.patient-detail-page .patient-facts {
  min-width: 0;
}

.patient-detail-page .rmo-patient-report-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  border-bottom: 1px solid var(--role-border, var(--border));
}

.patient-detail-page .rmo-patient-report-row .report-row {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}

.patient-detail-page .rmo-patient-report-row .report-row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.patient-detail-page .rmo-report-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
}

.patient-detail-page .rmo-report-actions form {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

.patient-detail-page .rmo-report-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 32px;
  box-sizing: border-box;
  border: 1.5px solid var(--role-teal);
  border-radius: 999px;
  background: rgba(79,211,194,.08);
  color: var(--role-teal);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}

.patient-detail-page .rmo-report-open:hover {
  transform: translateY(-1px);
  background: rgba(79,211,194,.16);
}

.patient-detail-page .rmo-dashboard-report-delete {
  width: 88px;
  height: 32px;
  min-height: 32px;
  justify-content: center;
  gap: .3rem;
  padding: .15rem .35rem;
}

.patient-detail-page .rmo-dashboard-report-delete .rmo-delete-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.patient-detail-page .rmo-dashboard-report-delete .rmo-delete-icon svg {
  width: 13px;
  height: 13px;
}

.patient-detail-page .add-visit {
  overflow: hidden;
  padding: 0;
}

.patient-detail-page .add-visit summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.patient-detail-page .add-visit summary::-webkit-details-marker {
  display: none;
}

.patient-detail-page .add-visit summary > span:first-child {
  display: grid;
  gap: .25rem;
}

.patient-detail-page .add-visit summary strong {
  color: var(--role-ink, var(--text));
  font-size: 1.15rem;
}

.patient-detail-page .collapse-indicator {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--role-border, var(--border));
  border-radius: 50%;
  color: var(--role-teal, var(--accent));
  font-size: 1.25rem;
  line-height: 1;
}

.patient-detail-page .add-visit[open] .collapse-indicator {
  transform: rotate(45deg);
}

.patient-detail-page .add-visit .record-form {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

@media (max-width: 600px) {
  .patient-detail-page .patient-facts dl > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .patient-detail-page .patient-facts dd {
    text-align: left;
  }
}

/* Self document upload modal: keep its local palette above generic dialog rules. */
.document-link-dialog {
  border-color: #cbdad8;
  background: #ffffff;
  color: #26343d;
}

.document-link-dialog .hms-documents-heading {
  border-color: #d8e2e1;
}

.document-link-dialog .hms-documents-heading h2,
.document-link-dialog-card label,
.document-link-dialog-card .card-kicker {
  color: #0f766e !important;
}

.document-link-dialog-card .form-help {
  color: #5b6c78;
}

.document-link-dialog-card input {
  border-color: #cbdad8;
  background: #fbfdfd;
  color: #26343d;
}

.document-link-dialog-card input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .13);
  outline: none;
}

.document-link-dialog .hms-documents-close {
  background: #e3f2ef;
  color: #0f766e;
}

.document-link-dialog .hms-documents-close:hover {
  background: #cfe8e4;
  color: #095850;
}

.document-link-dialog-card .btn-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.document-link-dialog-card .btn-primary:hover {
  background: #0b615b;
  color: #ffffff;
}

body[data-theme="dark"] .document-link-dialog {
  border-color: #315760;
  background: #142b33;
  color: #edf8ff;
}

body[data-theme="dark"] .document-link-dialog .hms-documents-heading {
  border-color: #315760;
}

body[data-theme="dark"] .document-link-dialog .hms-documents-heading h2,
body[data-theme="dark"] .document-link-dialog-card label,
body[data-theme="dark"] .document-link-dialog-card .card-kicker {
  color: #7adcd2 !important;
}

body[data-theme="dark"] .document-link-dialog-card .form-help {
  color: #b9ced8;
}

body[data-theme="dark"] .document-link-dialog-card input {
  border-color: #42616a;
  background: #0d2028;
  color: #edf8ff;
}

body[data-theme="dark"] .document-link-dialog-card input:focus {
  border-color: #7adcd2;
  box-shadow: 0 0 0 3px rgba(122, 220, 210, .17);
}

body[data-theme="dark"] .document-link-dialog .hms-documents-close {
  background: #1d4148;
  color: #7adcd2;
}

body[data-theme="dark"] .document-link-dialog .hms-documents-close:hover {
  background: #28545a;
  color: #d5fff9;
}

body[data-theme="dark"] .document-link-dialog-card .btn-primary {
  background: #7adcd2;
  color: #09242b;
}

body[data-theme="dark"] .document-link-dialog-card .btn-primary:hover {
  background: #9ae9df;
  color: #061b21;
}

/* The reception form uses the dark workspace surface even before a theme attribute is set. */
.auth-shell .document-link-dialog {
  border-color: #24484f;
  background: #102a32;
  color: #edf8ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

.auth-shell .document-link-dialog .hms-documents-heading {
  align-items: flex-start;
  padding: 1.15rem 1.25rem 1rem;
  border-color: #315760;
  background: #123740;
}

.auth-shell .document-link-dialog .hms-documents-heading h2,
.auth-shell .document-link-dialog-card label,
.auth-shell .document-link-dialog-card .card-kicker {
  color: #7adcd2 !important;
}

.auth-shell .document-link-dialog-card .form-help {
  color: #b9ced8;
}

.auth-shell .document-link-dialog-card input {
  border-color: #42616a;
  background: #0d2028;
  color: #edf8ff;
}

.auth-shell .document-link-dialog-card input::placeholder {
  color: #9ab1bd;
  opacity: 1;
}

.auth-shell .document-link-dialog .hms-documents-close {
  background: #1d4148;
  color: #7adcd2;
}

.auth-shell .document-link-dialog .hms-documents-close:hover {
  background: #28545a;
  color: #d5fff9;
}

.auth-shell .document-link-dialog-card .hms-documents-heading > div {
  position: relative;
  display: grid;
  gap: .2rem;
  min-width: 0;
  flex: 1;
  justify-items: center;
  text-align: center;
}

.auth-shell .document-link-dialog-card .hms-documents-heading .card-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .35rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #f3f7f6 !important;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.auth-shell .document-link-dialog-card .hms-documents-heading .card-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #8fe3d1;
  box-shadow: 0 0 0 4px rgba(143,227,209,.16);
}

.auth-shell .document-link-dialog-card .hms-documents-heading h2 {
  width: 100%;
  line-height: 1.2;
  text-align: center;
}

.auth-shell .document-link-dialog .hms-documents-close {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  margin: -.15rem -.1rem 0 .75rem;
  font-size: 1.35rem;
}

.file-upload-control {
  display: grid;
  gap: .45rem;
}

.file-upload-label {
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
}

.file-upload-control input[type="file"] {
  width: 100%;
  padding: .45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.file-upload-control input[type="file"]::file-selector-button {
  margin-right: .65rem;
  padding: .55rem .8rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent, #0f766e);
  color: #ffffff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.file-upload-control input[type="file"]::file-selector-button:hover {
  background: #0b615b;
}

.auth-shell .file-upload-control input[type="file"] {
  border-color: #42616a;
  background: #0d2028;
  color: #b9ced8;
}

.auth-shell .file-upload-control .file-upload-label {
  color: #edf8ff;
}

.auth-shell .file-upload-control input[type="file"]::file-selector-button {
  background: #62d4c8;
  color: #082329;
}

.auth-shell .file-upload-control input[type="file"]::file-selector-button:hover {
  background: #7ae1d6;
}

/* Profile page uses the same quiet surfaces as the dashboard. */
.profile-page {
  --profile-bg: #f5f7f8;
  --profile-card: #ffffff;
  --profile-active: #edf4f2;
  --profile-line: #d8e2e1;
  --profile-ink: #26343d;
  --profile-muted: #5b6c78;
  --profile-accent: #0f766e;
  --profile-tint: #e3f2ef;
  background: var(--profile-bg);
  color: var(--profile-ink);
}

body[data-theme="dark"] .profile-page {
  --profile-bg: #0b1b21;
  --profile-card: #142b33;
  --profile-active: #1d4148;
  --profile-line: #294b54;
  --profile-ink: #edf8ff;
  --profile-muted: #b9ced8;
  --profile-accent: #7adcd2;
  --profile-tint: #23494d;
}

.profile-page .profile-content {
  width: min(100% - 2rem, 1040px);
  max-width: none;
  padding: 1.75rem 0 3.5rem;
}

.profile-page .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .75rem;
  border: 1px solid var(--profile-line);
  border-radius: var(--radius-control);
  background: var(--profile-card);
  color: var(--profile-accent);
  font-size: .76rem;
  font-weight: 800;
}

.profile-page .back-link:hover {
  border-color: var(--profile-accent);
  background: var(--profile-active);
  color: var(--profile-accent);
}

.profile-page .profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--profile-line);
  border-radius: var(--radius-card);
  background: var(--profile-tint);
  box-shadow: none;
}

.profile-page .profile-avatar-xl {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--profile-accent);
  font-size: 1.35rem;
}

.profile-page .profile-hero h1 {
  margin: .25rem 0 .1rem;
  color: var(--profile-ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 600;
}

.profile-page .profile-hero p {
  margin: 0;
  color: var(--profile-muted);
  font-size: .82rem;
}

.profile-page .profile-hero-copy {
  min-width: 0;
  flex: 1;
}

.profile-page .profile-workspace-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 38px;
  padding: .55rem .8rem;
  border-radius: var(--radius-control);
  background: var(--profile-accent);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.profile-page .profile-workspace-link:hover {
  background: #0b615b;
  color: #ffffff;
  transform: translateY(-1px);
}

body[data-theme="dark"] .profile-page .profile-workspace-link {
  background: #7adcd2;
  color: #09242b;
}

body[data-theme="dark"] .profile-page .profile-workspace-link:hover {
  background: #9ae9df;
  color: #061b21;
}

/* Profile reference surface: deep blue-green rather than the legacy white workspace. */
.profile-page {
  width: 100%;
  min-height: calc(100vh - 82px);
  background: #0e3038;
  color: #edf8f8;
}

.profile-page .profile-content {
  color: #edf8f8;
}

.profile-page .back-link {
  border-color: #2a5960;
  background: #143d46;
  color: #a7e9df;
}

.profile-page .back-link:hover {
  border-color: #6fd0c3;
  background: #1d4b54;
  color: #d4fff9;
}

.profile-page .profile-hero {
  border-color: #2a5960;
  background: #143d46;
}

.profile-page .profile-hero h1,
.profile-page .profile-detail-card h2 {
  color: #f0fbfb;
}

.profile-page .profile-hero p,
.profile-page .profile-detail-card dt {
  color: #aac5c9;
}

.profile-page .profile-detail-card {
  border-color: #2a5960;
  background: #123943;
  box-shadow: 0 8px 22px rgba(2, 16, 20, .18);
}

.profile-page .profile-detail-card:first-child {
  background: #143f48;
}

.profile-page .profile-detail-card:nth-child(2) {
  background: #12343e;
}

.profile-page .profile-detail-card:first-child .card-kicker {
  color: #73ddd0;
}

.profile-page .profile-detail-card:nth-child(2) .card-kicker {
  color: #8fc8ee;
}

.profile-page .profile-hero h1,
.profile-page .profile-detail-card h2 {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}

.profile-page .profile-hero p,
.profile-page .profile-detail-card dt {
  color: #c8e0e2;
}

.profile-page .profile-detail-card dd {
  color: #f2fbfb;
  font-weight: 700;
}

.profile-page .profile-detail-card:first-child h2,
.profile-page .profile-detail-card:first-child dt,
.profile-page .profile-detail-card:first-child dd {
  color: #ffffff !important;
}

.profile-page .profile-detail-card:nth-child(2) h2,
.profile-page .profile-hero p {
  color: #ffffff !important;
}

.profile-page .profile-detail-card:nth-child(2) dt,
.profile-page .profile-detail-card:nth-child(2) dd {
  color: #ffffff !important;
}

.profile-page .profile-hero p,
.profile-page .profile-detail-card dd,
.profile-page .profile-detail-card dd strong,
.profile-page .muted {
  color: #ffffff !important;
}

.profile-page .profile-detail-card dt,
.profile-page .profile-detail-card dd {
  border-color: #2a5960;
}

.profile-page .profile-detail-card dd {
  color: #e3f4f4;
}

.profile-page .card-kicker,
.profile-page .product-eyebrow {
  color: #74d9cd;
}

.profile-page .profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-page .profile-detail-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--profile-line);
  border-radius: var(--radius-card);
  background: var(--profile-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .04);
}

.profile-page .profile-detail-card h2 {
  margin: .3rem 0 1rem;
  color: var(--profile-ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.profile-page .profile-detail-card dl {
  display: grid;
  grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr);
  gap: 0;
  margin: 0;
}

.profile-page .profile-detail-card dt,
.profile-page .profile-detail-card dd {
  margin: 0;
  padding: .75rem 0;
  border-top: 1px solid var(--profile-line);
}

.profile-page .profile-detail-card dt {
  color: var(--profile-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.profile-page .profile-detail-card dd {
  overflow-wrap: anywhere;
  color: var(--profile-ink);
  font-size: .82rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .profile-page .profile-content {
    width: min(100% - 1.25rem, 640px);
    padding-top: 1rem;
  }

  .profile-page .profile-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1rem;
  }

  .profile-page .profile-workspace-link {
    width: 100%;
  }

  .profile-page .profile-detail-grid {
    grid-template-columns: 1fr;
  }
}
.role-dashboard-shell .patient-detail-reception-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .5rem .75rem; border: 1px solid rgba(79,211,194,.35); border-radius: 8px; color: var(--role-teal); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.role-dashboard-shell .patient-detail-reception-link:hover { border-color: var(--role-teal); background: rgba(79,211,194,.14); color: #8af0e2; }
.role-dashboard-shell .patient-detail-shell .hms-topbar .reference-profile-bar { flex: 0; }
.role-dashboard-shell .patient-detail-page .back-link { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .back-link:hover { color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .patient-profile { padding: 1.8rem 0; border-bottom: 1px solid var(--role-border); }
.role-dashboard-shell .patient-detail-page .patient-profile h1 { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .patient-profile p { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .product-eyebrow,
.role-dashboard-shell .patient-detail-page .card-kicker { color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .workflow-toolbar,
.role-dashboard-shell .patient-detail-page .admission-summary,
.role-dashboard-shell .patient-detail-page .admission-edit,
.role-dashboard-shell .patient-detail-page .patient-facts,
.role-dashboard-shell .patient-detail-page .report-panel,
.role-dashboard-shell .patient-detail-page .add-visit { border-color: var(--role-border); background: var(--role-card); box-shadow: none; }
.role-dashboard-shell .patient-detail-page .workflow-toolbar { margin-top: 1.5rem; }
.role-dashboard-shell .patient-detail-page .workflow-toolbar select,
.role-dashboard-shell .patient-detail-page .record-form input,
.role-dashboard-shell .patient-detail-page .record-form textarea,
.role-dashboard-shell .patient-detail-page .report-upload input { border-color: var(--role-border); background: #0b2027; color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .record-form label { color: #fff; }
.role-dashboard-shell .patient-detail-page .record-form input,
.role-dashboard-shell .patient-detail-page .record-form textarea,
.role-dashboard-shell .patient-detail-page .workflow-toolbar select { color: #fff; }
.role-dashboard-shell .patient-detail-page .record-form input::placeholder,
.role-dashboard-shell .patient-detail-page .record-form textarea::placeholder { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .workflow-toolbar select:focus,
.role-dashboard-shell .patient-detail-page .record-form input:focus,
.role-dashboard-shell .patient-detail-page .record-form textarea:focus { border-color: var(--role-teal); outline: 2px solid rgba(79,211,194,.14); }
.role-dashboard-shell .patient-detail-page .admission-summary { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .admission-summary p,
.role-dashboard-shell .patient-detail-page .muted,
.role-dashboard-shell .patient-detail-page .form-help { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .admission-location { border-color: var(--role-border); }
.role-dashboard-shell .patient-detail-page .admission-location span { color: var(--role-faint); }
.role-dashboard-shell .patient-detail-page .admission-location strong,
.role-dashboard-shell .patient-detail-page .admission-summary > div > strong { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .section-heading { border-color: var(--role-border); }
.role-dashboard-shell .patient-detail-page h2 { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .history-item { border-color: var(--role-border); }
.role-dashboard-shell .patient-detail-page .history-date { color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .history-item strong { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .history-item p { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .patient-facts dt { color: var(--role-faint); }
.role-dashboard-shell .patient-detail-page .patient-facts dd { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .report-list { border-color: var(--role-border); }
.role-dashboard-shell .patient-detail-page .report-row { border-color: var(--role-border); color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .report-row small { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .report-row > span:last-child { color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .prescription-history-actions a,
.role-dashboard-shell .patient-detail-page .prescription-history-actions button { color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .prescription { background: rgba(79,211,194,.14); color: var(--role-teal); }
.role-dashboard-shell .patient-detail-page .empty-state { color: var(--role-muted); }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-panel { margin-top: 2rem; }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-update { padding: 1.2rem 0; border-top: 1px solid var(--role-border); }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-header > div { display: grid; gap: .25rem; min-width: 0; }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-header strong { color: var(--role-ink); }
.role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-header time { flex: 0 0 auto; color: var(--role-muted); font-size: .76rem; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-record-label { color: var(--role-teal); font-size: .7rem; font-weight: 800; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-fields { display: grid; gap: .65rem; margin: 1rem 0; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-fields > div { display: grid; grid-template-columns: minmax(140px, .3fr) minmax(0, 1fr); gap: 1rem; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-fields dt { color: var(--role-muted); font-size: .75rem; font-weight: 700; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-fields dd { min-width: 0; margin: 0; color: var(--role-ink); font-size: .84rem; overflow-wrap: anywhere; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-prescription { margin-top: 1rem; padding: 1rem; border: 1px solid var(--role-border); border-radius: 12px; background: #0b2027; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-prescription h4 { margin: 0 0 .75rem; color: var(--role-ink); font-size: .86rem; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table-wrap { overflow-x: auto; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table { width: 100%; border-collapse: collapse; color: var(--role-ink); font-size: .74rem; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table th,
.role-dashboard-shell .patient-detail-page .rmo-prescription-table td { padding: .65rem .55rem; border-bottom: 1px solid var(--role-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table th { color: var(--role-muted); font-size: .67rem; white-space: nowrap; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table td strong,
.role-dashboard-shell .patient-detail-page .rmo-prescription-table td small { display: block; }
.role-dashboard-shell .patient-detail-page .rmo-prescription-table td small { margin-top: .2rem; color: var(--role-muted); line-height: 1.45; }
.role-dashboard-shell .patient-detail-page .rmo-legacy-prescription { margin: 0; color: var(--role-ink); font-size: .82rem; }
.role-dashboard-shell .patient-detail-page .rmo-clinical-empty { margin: .75rem 0; color: var(--role-muted); font-size: .82rem; }
@media (max-width: 640px) {
  .role-dashboard-shell .patient-detail-page .rmo-doctor-clinical-header { flex-direction: column; }
  .role-dashboard-shell .patient-detail-page .rmo-clinical-fields > div { grid-template-columns: 1fr; gap: .15rem; }
  .role-dashboard-shell .patient-detail-page .rmo-prescription-table { min-width: 700px; }
}
@media (max-width: 800px) { .role-dashboard-shell .patient-detail-page { padding-top: 1.25rem; }.role-dashboard-shell .patient-detail-page .patient-profile { align-items: flex-start; }.role-dashboard-shell .patient-detail-page .workflow-toolbar { margin-top: 1rem; }.role-dashboard-shell .patient-detail-reception-link { padding-inline: .55rem; font-size: .64rem; } }
.role-dashboard-shell .hms-side-stack .hms-panel { background: var(--role-card); }
@media (max-width: 760px) {
  .role-dashboard-shell .hms-sidebar { box-shadow: 18px 0 45px rgba(0,0,0,.35); }
  .role-dashboard-shell .hms-sidebar.is-open { z-index: 70; }
}

/* Stable dashboard icons and controls when legacy text glyphs are mis-encoded. */
.role-dashboard-shell .hms-menu-icon,
.role-dashboard-shell .hms-notification,
.role-dashboard-shell .hms-stat-icon {
  font-size: 0;
}
.role-dashboard-shell .hms-menu-icon {
  display: block;
  width: 20px;
  height: 14px;
  margin: 0 auto;
  background: linear-gradient(currentColor, currentColor) 0 0 / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 20px 2px no-repeat;
  transform: none;
}
.hms-notification::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 3px 0 -1px currentColor;
}
.role-dashboard-shell .hms-stat-icon::before {
  display: none;
}
.role-dashboard-shell .hms-stat-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.role-dashboard-shell .reception-patient-views {
  align-items: center;
  flex-wrap: wrap;
  min-height: 48px;
}
.role-dashboard-shell .reception-patient-views a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
}
.role-dashboard-shell .reception-dashboard-main .hms-recent-panel .hms-pagination {
  display: flex;
}
#patient-search .hms-table {
  width: 100%;
  min-width: 980px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
#patient-search .hms-table th,
#patient-search .hms-table td {
  box-sizing: border-box;
  overflow-wrap: normal;
  white-space: nowrap;
  vertical-align: middle;
}
#patient-search .hms-table th {
  padding: 1rem .55rem;
}
#patient-search .hms-table td {
  padding: .8rem .55rem;
}
#patient-search .hms-table th:nth-child(1),
#patient-search .hms-table td:nth-child(1) { min-width: 150px; }
#patient-search .hms-table th:nth-child(2),
#patient-search .hms-table td:nth-child(2) { min-width: 170px; }
#patient-search .hms-table th:nth-child(3),
#patient-search .hms-table td:nth-child(3) { min-width: 100px; }
#patient-search .hms-table th:nth-child(4),
#patient-search .hms-table td:nth-child(4) { min-width: 120px; }
#patient-search .hms-table th:nth-child(5),
#patient-search .hms-table td:nth-child(5) { min-width: 140px; }
#patient-search .hms-table th:nth-child(6),
#patient-search .hms-table td:nth-child(6) { min-width: 170px; }
#patient-search .hms-table th:nth-child(7),
#patient-search .hms-table td:nth-child(7) { min-width: 110px; }
#patient-search .hms-table .hms-documents-button,
#patient-search .hms-table .hms-patient-edit-button,
#patient-search .hms-table .hms-view-link,
#patient-search .hms-table .hms-patient-summary-button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}
#patient-search .hms-documents-button {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}
#patient-search .hms-patient-edit-button {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
}
#patient-search .hms-document-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .65rem;
  white-space: nowrap;
}
#patient-search .hms-document-row span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#patient-search .hms-document-row a {
  flex: 0 0 auto;
  white-space: nowrap;
}
.role-dashboard-shell .hms-panel-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.role-dashboard-shell .hms-panel-heading > a svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.role-dashboard-shell .hms-quick-links a {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 42px;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--role-border);
  color: var(--role-muted);
  font-size: .78rem;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.role-dashboard-shell .hms-quick-links a:last-child { border-bottom: 0; }
.role-dashboard-shell .hms-quick-links a:hover { background: rgba(79,211,194,.1); color: var(--role-ink); }
.role-dashboard-shell .hms-quick-links a svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.role-dashboard-shell .hms-quick-links a span { flex: 1; color: inherit; font-size: inherit; }
.role-dashboard-shell .hms-quick-links a b { color: var(--role-teal); font-size: .95rem; font-weight: 500; }
}

/* Doctor consultation completion action */
.hms-complete-form { display: inline-block; margin: .45rem 0 0 .35rem; }
.hms-complete-button,
.hms-confirm-complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 34px;
  padding: .4rem .65rem;
  border-radius: 999px;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.hms-complete-button {
  border: 1px solid transparent;
  background: #58dfd0;
  color: #06292c;
}
.hms-complete-button:hover { background: #73eee0; }
.hms-confirm-complete-button {
  border: 1px solid #f1bd19;
  background: #162b34;
  color: #ffc82e;
}
.hms-confirm-complete-button:hover { background: #213943; }
.hms-complete-button[hidden],
.hms-confirm-complete-button[hidden] { display: none; }
.role-dashboard-shell .hms-complete-button,
.role-dashboard-shell .hms-confirm-complete-button {
  font-size: 0;
}
.role-dashboard-shell .hms-complete-button span,
.role-dashboard-shell .hms-confirm-complete-button span {
  font-size: .68rem;
}
.role-dashboard-shell .hms-complete-button::before,
.role-dashboard-shell .hms-confirm-complete-button::before {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  flex: 0 0 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}
.hms-consultation-status { background: rgba(79,211,194,.14); color: var(--role-teal, #4fd3c2); }
.role-dashboard-shell .hms-recent-panel .hms-table td:last-child {
  width: 225px;
  min-width: 225px;
  white-space: normal;
  vertical-align: middle;
}
.role-dashboard-shell .hms-recent-panel .hms-table td:nth-child(6) {
  width: 90px;
  min-width: 90px;
  white-space: normal;
  vertical-align: middle;
}
.role-dashboard-shell .hms-recent-panel .hms-complete-form {
  display: block;
  margin: .45rem 0 0;
}
.role-dashboard-shell .hms-recent-panel .hms-complete-button,
.role-dashboard-shell .hms-recent-panel .hms-confirm-complete-button {
  width: 190px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .hms-complete-form { display: block; margin: .5rem 0 0; }
  .hms-complete-button, .hms-confirm-complete-button { width: 100%; }
}

.hms-upload-choice {
  position: relative;
  display: inline-grid;
  max-width: 100%;
  gap: .35rem;
  vertical-align: middle;
}
.hms-upload-choice-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hms-upload-trigger,
.hms-upload-option {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border-radius: 8px;
  border: 1px solid rgba(15,118,110,.35);
  background: rgba(15,118,110,.08);
  color: #0f766e;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.hms-upload-trigger:hover,
.hms-upload-option:hover { border-color: #0f766e; background: rgba(15,118,110,.14); }
.hms-upload-trigger:focus-visible,
.hms-upload-option:focus-visible { outline: 3px solid rgba(15,118,110,.35); outline-offset: 2px; }
.hms-upload-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + .3rem);
  left: 0;
  display: flex;
  width: max-content;
  max-width: min(100vw - 2rem, 380px);
  gap: .4rem;
  padding: .5rem;
  border: 1px solid rgba(15,118,110,.22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(2,12,16,.16);
}
.hms-upload-menu[hidden],
.hms-upload-status[hidden],
.hms-upload-option[hidden],
.hms-upload-preview-list[hidden] { display: none !important; }
.hms-upload-option { flex: 1 1 auto; justify-content: center; background: #fff; white-space: nowrap; }
.hms-upload-status { overflow-wrap: anywhere; color: #52636a; font-size: .78rem; line-height: 1.4; }
.hms-upload-status-error { color: #c62828 !important; font-weight: 700; }
.hms-upload-preview-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.hms-upload-preview-item { display: grid; justify-items: start; gap: .4rem; }
.hms-upload-preview-item img { display: block; width: 88px; height: 88px; border: 1px solid #cbdcdd; border-radius: 8px; background: #f5fbfa; object-fit: cover; }
.hms-upload-remove { padding: .35rem .55rem; border: 1px solid #b7483d; border-radius: 7px; background: #fff; color: #a3372f; font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.hms-upload-remove:hover { background: #fff1ef; }
.auth-shell .hms-upload-trigger,
.auth-shell .hms-upload-option,
.medical-history-page .hms-upload-trigger,
.medical-history-page .hms-upload-option { border-color: rgba(86,214,197,.32); background: rgba(86,214,197,.1); color: #56d6c5; }
.auth-shell .hms-upload-trigger:hover,
.auth-shell .hms-upload-option:hover,
.medical-history-page .hms-upload-trigger:hover,
.medical-history-page .hms-upload-option:hover { border-color: #56d6c5; background: rgba(86,214,197,.18); }
.auth-shell .hms-upload-menu,
.medical-history-page .hms-upload-menu { border-color: #315760; background: #0d2028; }
.auth-shell .hms-upload-status,
.medical-history-page .hms-upload-status { color: #b9ced8; }
.auth-shell .hms-upload-preview-item img,
.medical-history-page .hms-upload-preview-item img { border-color: #315760; background: #102f38; }
.auth-shell .hms-upload-remove,
.medical-history-page .hms-upload-remove { border-color: #b46a61; background: #321f22; color: #ffd2cc; }
.auth-shell .hms-upload-remove:hover,
.medical-history-page .hms-upload-remove:hover { background: #4a292c; }
.hms-device-dialog {
  width: min(100% - 2rem, 720px);
  max-height: min(92vh, 800px);
  padding: 0;
  overflow: auto;
  border: 1px solid #cbdcdd;
  border-radius: 16px;
  background: #fff;
  color: #17343b;
  box-shadow: 0 24px 70px rgba(2,12,16,.3);
}
.hms-device-dialog::backdrop { background: rgba(2,12,16,.68); }
.hms-device-panel { display: grid; gap: 1.1rem; padding: clamp(1rem, 4vw, 2rem); }
.hms-device-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hms-device-header h2 { margin: 0; color: #17343b; font-size: 1.25rem; }
.hms-device-header .hms-camera-close { flex: 0 0 38px; background: #f5fbfa; color: #17343b; }
.hms-device-dropzone {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: .6rem;
  padding: 1.2rem;
  border: 2px dashed #258a81;
  border-radius: 14px;
  background: #f5fbfa;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.hms-device-dropzone.is-dragging,
.hms-device-dropzone:focus-visible { border-color: #0f766e; background: #e5f5f2; outline: none; }
.hms-device-plus { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid #0f766e; border-radius: 50%; color: #0f766e; font-size: 1.7rem; line-height: 1; }
.hms-device-dropzone p { margin: 0; color: #61747a; font-size: 1rem; }
.hms-device-browse { padding: 0; border: 0; background: transparent; color: #0f766e; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.hms-device-message { color: #61747a; font-size: .82rem !important; }
.auth-shell .hms-device-dialog,
.medical-history-page .hms-device-dialog { border-color: #315760; background: #0b2027; color: #edf8ff; }
.auth-shell .hms-device-header h2,
.medical-history-page .hms-device-header h2 { color: #edf8ff; }
.auth-shell .hms-device-header .hms-camera-close,
.medical-history-page .hms-device-header .hms-camera-close { border-color: #315760; background: #102f38; color: #b9ced8; }
.auth-shell .hms-device-dropzone,
.medical-history-page .hms-device-dropzone { border-color: #56d6c5; background: #102f38; }
.auth-shell .hms-device-dropzone.is-dragging,
.auth-shell .hms-device-dropzone:focus-visible,
.medical-history-page .hms-device-dropzone.is-dragging,
.medical-history-page .hms-device-dropzone:focus-visible { background: #173e44; }
.auth-shell .hms-device-plus,
.medical-history-page .hms-device-plus { border-color: #56d6c5; color: #56d6c5; }
.auth-shell .hms-device-dropzone p,
.auth-shell .hms-device-message,
.medical-history-page .hms-device-dropzone p,
.medical-history-page .hms-device-message { color: #b9ced8; }
.auth-shell .hms-device-browse,
.medical-history-page .hms-device-browse { color: #56d6c5; }
.hms-camera-dialog {
  width: min(100% - 2rem, 720px);
  max-height: min(92vh, 800px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #315760;
  border-radius: 14px;
  background: #0b2027;
  color: #f3f7f6;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.hms-camera-dialog::backdrop { background: rgba(2,12,16,.78); }
.hms-camera-panel { display: grid; gap: .8rem; padding: 1rem; }
.hms-camera-header,
.hms-camera-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.hms-camera-header h2 { margin: 0; color: #f3f7f6; font-size: 1.05rem; }
.hms-camera-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #315760; border-radius: 9px; background: #102f38; color: #b9ced8; font-size: 1.35rem; cursor: pointer; }
.hms-camera-preview { display: block; width: 100%; max-height: 68vh; aspect-ratio: 4 / 3; border-radius: 9px; background: #050d11; object-fit: contain; }
.hms-camera-message { min-height: 1.2em; margin: 0; color: #ffc28e; font-size: .82rem; line-height: 1.45; }
.hms-camera-capture { min-height: 42px; margin-left: auto; padding: .65rem 1rem; border: 0; border-radius: 8px; background: #56d6c5; color: #08252b; font: inherit; font-size: .82rem; font-weight: 850; cursor: pointer; }
.hms-camera-capture:disabled { opacity: .55; cursor: not-allowed; }
.hms-camera-switch { min-height: 42px; padding: .65rem 1rem; border: 1px solid #56d6c5; border-radius: 8px; background: #102f38; color: #d8f5f1; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.hms-camera-switch:disabled { opacity: .55; cursor: wait; }
.hms-camera-switch[hidden] { display: none !important; }
@media (max-width: 600px) {
  .hms-upload-menu { max-width: calc(100vw - 2rem); }
  .hms-upload-option { padding-inline: .55rem; font-size: .72rem; }
  .hms-device-dialog { width: min(100% - 1rem, 720px); }
  .hms-device-panel { padding: .8rem; }
  .hms-device-dropzone { min-height: 180px; }
  .hms-camera-dialog { width: min(100% - 1rem, 720px); }
  .hms-camera-panel { padding: .7rem; }
  .hms-camera-preview { max-height: 65vh; }
}

.profile-photo-trigger {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: white;
  cursor: pointer;
}
.profile-photo-trigger:focus-visible,
.hms-sidebar-profile:focus-visible {
  outline: 2px solid #6ee1d3;
  outline-offset: 3px;
}
.profile-photo-trigger .profile-photo-avatar,
.profile-photo-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.staff-profile-bar-controls { display: flex; align-items: center; gap: .55rem; }
.staff-profile-bar-controls .profile-drawer-trigger { display: flex; width: auto; min-width: 0; align-items: center; gap: .5rem; padding: .3rem .55rem; }
.staff-profile-bar-controls .rmo-profile-copy { display: grid; min-width: 0; gap: .12rem; }
.staff-profile-bar-controls .rmo-profile-copy strong,
.staff-profile-bar-controls .rmo-profile-copy small { overflow: hidden; max-width: 145px; text-overflow: ellipsis; white-space: nowrap; }
.staff-profile-bar-controls .rmo-profile-copy strong { color: white; font-size: .7rem; }
.staff-profile-bar-controls .rmo-profile-copy small { color: #d0e6e4; font-size: .58rem; }
.role-dashboard-shell .hms-topbar .profile-drawer-trigger .rmo-profile-copy,
.role-dashboard-shell .hms-topbar .profile-drawer-trigger .workspace-profile-chevron { background: transparent; }
.profile-drawer-heading .profile-photo-trigger { flex: 0 0 42px; }
.profile-photo-dialog {
  width: min(92vw, 430px);
  max-width: 430px;
  max-height: min(90vh, 720px);
  max-height: min(90dvh, 720px);
  padding: 0;
  overflow: auto;
  border: 1px solid #27616a;
  border-radius: 16px;
  background: #0d272e;
  color: #eefafa;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.profile-photo-dialog::backdrop { background: rgba(2,13,17,.72); }
.profile-photo-dialog-content { display: grid; gap: 1rem; padding: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
.profile-photo-dialog-header,
.profile-photo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.profile-photo-dialog-footer { flex-wrap: wrap; }
.profile-photo-dialog-header h2 { margin: .25rem 0 0; color: #f0fbfa; font-size: 1.1rem; }
.profile-photo-dialog .product-eyebrow { color: #74d9cd; }
.profile-photo-dialog-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #315b62; border-radius: 50%; background: #173940; color: white; font-size: 1.35rem; cursor: pointer; }
.profile-photo-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.profile-photo-dialog-option,
.profile-photo-dialog-save { min-height: 42px; padding: .65rem .8rem; border: 1px solid #32656d; border-radius: 9px; background: #173940; color: #e8f8f6; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.profile-photo-dialog-option:hover { border-color: #55d8c6; background: #1b4a50; }
.profile-photo-dialog-save { border-color: #4fd3c2; background: #4fd3c2; color: #09242b; }
.profile-photo-dialog-save:disabled { opacity: .45; cursor: not-allowed; }
.profile-photo-dialog-option:focus-visible,
.profile-photo-dialog-save:focus-visible,
.profile-photo-dialog-close:focus-visible { outline: 2px solid #8df4e7; outline-offset: 2px; }
.profile-photo-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.profile-photo-camera-wrap { display: grid; justify-items: center; gap: .65rem; }
.profile-photo-camera-wrap video { display: block; width: min(100%, 320px); max-height: min(52dvh, 360px); aspect-ratio: 4 / 3; border: 2px solid #32656d; border-radius: 12px; background: #061519; object-fit: contain; }
.profile-photo-preview-wrap { position: relative; width: min(100%, 280px, 36dvh); aspect-ratio: 1; }
.profile-photo-crop-canvas { display: block; width: 100%; height: 100%; border: 2px solid #32656d; border-radius: 50%; background: #061519; cursor: grab; touch-action: none; }
.profile-photo-crop-canvas:active { cursor: grabbing; }
.profile-photo-pending-remove { position: absolute; z-index: 1; top: -.45rem; right: -.45rem; }
.profile-photo-cropper { display: grid; justify-items: center; gap: .65rem; }
.profile-photo-cropper p { margin: 0; color: #a8c4c5; font-size: .74rem; text-align: center; }
.profile-photo-zoom { display: flex; width: min(100%, 280px); align-items: center; gap: .75rem; color: #d4e8e6; font-size: .74rem; font-weight: 700; }
.profile-photo-zoom input { min-width: 0; flex: 1; accent-color: #4fd3c2; }
.profile-photo-dialog [hidden] { display: none !important; }
.profile-photo-dialog-actions[hidden],
.profile-photo-camera-wrap[hidden],
.profile-photo-cropper[hidden] { display: none !important; }
.profile-photo-dialog-error { margin: 0; color: #ffaaa0; font-size: .78rem; line-height: 1.45; }
.profile-photo-feedback { position: fixed; z-index: 95; top: 76px; left: 50%; width: min(90vw, 560px); margin: 0; padding: .7rem 1rem; transform: translateX(-50%); border: 1px solid #27616a; border-radius: 9px; background: #0d272e; color: #74d9cd; font-size: .8rem; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.profile-photo-feedback[hidden] { display: none; }
.profile-photo-view-dialog { width: min(92vw, 560px); max-width: none; max-height: min(90dvh, 760px); padding: 0; overflow: auto; border: 1px solid #27616a; border-radius: 16px; background: #0d272e; color: #e8f4f3; box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.profile-photo-view-dialog::backdrop { background: rgba(3,12,15,.76); backdrop-filter: blur(5px); }
.profile-photo-view-content { display: grid; gap: 1rem; padding: 1.25rem; }
.profile-photo-view-content .profile-photo-dialog-header { align-items: center; }
.profile-photo-view-content h2 { margin: 0; color: #e8f4f3; font-size: 1.05rem; }
.profile-photo-view-image { display: block; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; background: #10232a; object-fit: contain; }
.profile-photo-view-content .profile-photo-dialog-footer { justify-content: flex-end; }
.profile-photo-view-content .profile-photo-dialog-error { grid-column: 1 / -1; }
.profile-photo-view-dialog [hidden] { display: none !important; }
.profile-photo-remove-saved { border-color: #8b4e54; color: #ffd9d7; }
.profile-photo-remove-saved:hover { border-color: #ef8e89; background: #4a2b32; }
@media (max-width: 520px) {
  .profile-photo-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1rem); }
  .profile-photo-dialog-content { gap: .75rem; padding: .9rem; padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); }
  .profile-photo-preview-wrap { width: min(100%, 280px, 34dvh); }
  .profile-photo-view-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1rem); }
  .profile-photo-view-content { gap: .75rem; padding: 1rem; }
  .profile-photo-view-image { width: min(100%, 340px); max-height: 52dvh; object-fit: contain; }
  .profile-photo-view-content .profile-photo-dialog-footer { justify-content: center; }
}

.hms-sidebar-profile {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .65rem;
  margin: -.7rem 0 1rem;
  padding: .65rem .55rem;
  overflow: hidden;
  border: 1px solid rgba(116,217,205,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: white;
  text-align: left;
  cursor: pointer;
}
.hms-sidebar-profile-avatar { display: grid; position: relative; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; overflow: hidden; border-radius: 50%; background: #177f78; color: #fff; font-size: .72rem; font-weight: 800; }
.hms-sidebar-profile-avatar img { position: absolute; inset: 0; }
.hms-sidebar-profile-copy { display: grid; min-width: 0; gap: .16rem; }
.hms-sidebar-profile-copy strong,
.hms-sidebar-profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hms-sidebar-profile-copy strong { color: #f3f7f6; font-size: .72rem; }
.hms-sidebar-profile-copy small { color: #9bb0ba; font-size: .62rem; }

@media (max-width: 760px) {
  .hms-dashboard-shell { position: relative; display: block; min-height: 100vh; overflow-x: clip; }
  .hms-dashboard-shell .hms-sidebar {
    position: fixed;
    z-index: 70;
    inset: 0 auto 0 0;
    display: block;
    width: 245px;
    height: 100vh;
    height: 100dvh;
    flex: none;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 18px 0 45px rgba(0,0,0,.35);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .hms-dashboard-shell .hms-sidebar.is-open {
    width: 245px;
    flex-basis: auto;
    padding-inline: .8rem;
    overflow-y: auto;
    transform: translateX(0);
  }
  .hms-dashboard-shell.sidebar-closed .hms-sidebar,
  .hms-dashboard-shell .hms-sidebar.is-closed {
    width: 245px;
    flex-basis: auto;
    padding-inline: .8rem;
    overflow-y: auto;
  }
  .hms-dashboard-shell .hms-dashboard-main { width: 100%; min-height: 100vh; padding: 0 .75rem 2rem; }
  .hms-dashboard-shell .hms-topbar { min-height: 64px; gap: .55rem; padding-left: 56px; }
  .hms-dashboard-shell .hms-menu-toggle {
    position: fixed;
    z-index: 90;
    top: 10px;
    left: 10px;
  }
  .hms-dashboard-shell.sidebar-mobile-open .hms-menu-toggle { left: min(255px, calc(100vw - 58px)); }
  .hms-sidebar-overlay { position: fixed; z-index: 60; inset: 0; display: none; border: 0; background: rgba(0,0,0,.58); }
  .hms-sidebar-overlay.is-visible { display: block; }
  .hms-dashboard-shell .hms-welcome { align-items: flex-start; flex-direction: column; }
  .hms-dashboard-shell .hms-workspace-back { margin-left: auto; }
  .hms-dashboard-shell .hms-notification { display: none; }
  .hms-dashboard-shell .hms-workspace-back { gap: 0; padding: .4rem; font-size: 0; }
  .hms-dashboard-shell .hms-workspace-back span { font-size: .95rem; }
}
@media (max-width: 480px) {
  .staff-profile-bar-controls .rmo-profile-copy { display: none; }
  .staff-profile-bar-controls .profile-drawer-trigger { width: 36px; min-width: 36px; justify-content: center; }
}
