/* Final visual polish layer for login, on-call landing, messages, and call change. */

/* Login: centered, compact, and above the fold. */
.login-screen {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(14px, 2.5vh, 28px) !important;
  overflow: hidden !important;
  background:
    linear-gradient(rgba(9, 26, 58, 0.84), rgba(9, 26, 58, 0.88)),
    url("./assets/cei-building.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #0c213f 0%, #163b67 48%, #0d274d 100%) !important;
}

.login-screen .login-card {
  width: min(980px, calc(100vw - 96px)) !important;
  height: min(640px, calc(100svh - 48px)) !important;
  max-height: min(640px, calc(100svh - 48px)) !important;
  grid-template-columns: minmax(330px, 1fr) minmax(420px, 1fr) !important;
  gap: clamp(22px, 3.2vw, 42px) !important;
  align-items: center !important;
  justify-items: stretch !important;
  padding: clamp(22px, 3vw, 34px) !important;
  overflow: hidden !important;
  border-radius: 34px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.965) 0 50%, rgba(244, 249, 255, 0.94) 50% 100%),
    radial-gradient(circle at 95% 12%, rgba(140, 233, 255, 0.14), transparent 18rem) !important;
}

.login-screen .login-graphic {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  opacity: 0.16 !important;
  background:
    linear-gradient(rgba(12, 33, 63, 0.28), rgba(12, 33, 63, 0.52)),
    url("./assets/cei-building.jpg") center center / cover no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

.login-screen .login-brand-panel,
.login-screen .login-form-panel {
  min-width: 0 !important;
  align-self: center !important;
}

.login-screen .login-brand-panel {
  grid-column: 1 !important;
  display: grid !important;
  justify-items: start !important;
  justify-self: center !important;
  align-content: center !important;
  gap: 12px !important;
  max-width: 360px !important;
  transform: none !important;
}

.login-screen .login-form-panel {
  grid-column: 2 !important;
  display: grid !important;
  align-content: center !important;
  justify-self: center !important;
  width: min(100%, 500px) !important;
  max-height: 100% !important;
  overflow: auto !important;
}

.login-screen .login-logo {
  width: min(190px, 100%) !important;
  margin: 0 0 6px !important;
}

.login-screen .login-card h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.6rem) !important;
}

.login-screen .login-copy {
  font-size: 0.96rem !important;
  line-height: 1.42 !important;
}

.login-screen .auth-tabs {
  align-self: end !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
}

.login-screen .auth-panel.is-active {
  align-self: start !important;
}

.login-screen .login-card input,
.login-screen .login-card select {
  min-height: 44px !important;
}

.login-screen .login-card button[type="submit"],
.login-screen #registerButton,
.login-screen #forgotPasswordButton,
.login-screen #updatePasswordButton {
  min-height: 48px !important;
}

@media (max-height: 760px) and (min-width: 781px) {
  .login-screen .login-card {
    width: min(980px, calc(100vw - 44px)) !important;
    height: calc(100svh - 28px) !important;
    max-height: calc(100svh - 28px) !important;
    padding: 22px 30px !important;
    gap: 28px !important;
  }

  .login-screen .login-logo {
    width: 190px !important;
    padding: 9px 11px !important;
  }

  .login-screen .login-card h1 {
    font-size: clamp(1.75rem, 3vw, 2.45rem) !important;
  }

  .login-screen .login-copy {
    font-size: 0.86rem !important;
    line-height: 1.32 !important;
  }

  .login-screen .auth-tab {
    min-height: 34px !important;
  }

  .login-screen .login-card input,
  .login-screen .login-card select {
    min-height: 38px !important;
  }

  .login-screen .login-card button[type="submit"],
  .login-screen #registerButton,
  .login-screen #forgotPasswordButton,
  .login-screen #updatePasswordButton {
    min-height: 42px !important;
  }
}

@media (max-width: 780px) {
  .login-screen {
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
    padding: 12px !important;
  }

  .login-screen .login-card {
    width: min(100%, 360px) !important;
    height: auto !important;
    max-height: calc(100svh - 24px) !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 18px !important;
    overflow: auto !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 248, 255, 0.98)) !important;
  }

  .login-screen .login-brand-panel,
  .login-screen .login-form-panel {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-content: start !important;
    overflow: visible !important;
  }

  .login-screen .login-brand-panel {
    justify-items: center !important;
    gap: 8px !important;
    transform: none !important;
  }

  .login-screen .login-card > *,
  .login-screen .login-card > .login-logo,
  .login-screen .login-card > .eyebrow,
  .login-screen .login-card > h1,
  .login-screen .login-card > .login-copy,
  .login-screen .login-card > .auth-tabs,
  .login-screen .login-card > .auth-panel,
  .login-screen .login-card > .auth-message,
  .login-screen .login-card > small {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
  }

  .login-screen .login-logo {
    width: 132px !important;
    justify-self: center !important;
    margin: 0 auto 2px !important;
  }

  .login-screen .login-card > .eyebrow {
    margin-top: 2px !important;
    text-align: center !important;
    font-size: 0.68rem !important;
  }

  .login-screen .login-card h1 {
    max-width: 100% !important;
    text-align: center !important;
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
    line-height: 0.98 !important;
  }

  .login-screen .login-copy {
    max-width: 28ch !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }

  .login-screen .auth-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 4px 0 8px !important;
    padding: 5px !important;
  }

  .login-screen .auth-tab {
    min-height: 34px !important;
    padding: 0 5px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  .login-screen .login-card label {
    font-size: 0.68rem !important;
  }

  .login-screen .login-card input,
  .login-screen .login-card select {
    min-height: 39px !important;
    padding: 0 12px !important;
    font-size: 0.95rem !important;
  }

  .login-screen .login-card button[type="submit"],
  .login-screen #registerButton,
  .login-screen #forgotPasswordButton,
  .login-screen #updatePasswordButton {
    min-height: 42px !important;
    font-size: 0.98rem !important;
  }
}

/* Softer typography for Call Change and Messages. */
.change-date-section,
.messages-section,
.change-date-section input,
.change-date-section select,
.change-date-section button,
.messages-section input,
.messages-section button {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
}

.change-date-section h2,
.change-date-section h3,
.messages-section h2,
.messages-section h3,
.conversation-heading span,
.message-bubble strong {
  font-family: "Optima", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.week-edit-grid span,
.manual-scope legend,
.manual-scope label,
.manual-days-panel label,
.week-edit-summary span,
.week-edit-summary small,
.week-doctor-card span,
.week-doctor-card small,
.message-banner,
.messages-section .message-bubble small,
.messages-section .message-delete,
.conversation-heading strong {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
}

.message-bubble p,
.empty-board {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

/* Final Call Change and Messages refinement: remove the heavy bold look. */
.change-date-section {
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95)) !important;
  border: 1px solid rgba(177, 193, 216, 0.5) !important;
  box-shadow: 0 22px 58px rgba(3, 18, 45, 0.12) !important;
}

.change-date-section .section-header,
.messages-section .section-header {
  align-items: end !important;
}

.change-date-section .section-header h2,
.messages-section .section-header h2 {
  font-family: "Optima", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.change-date-section .eyebrow,
.messages-section .eyebrow {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
}

.change-date-section .lookup-panel {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr) !important;
  gap: 18px !important;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 0 0, rgba(140, 233, 255, 0.16), transparent 19rem),
    rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(185, 202, 224, 0.72) !important;
}

.change-date-section .lookup-panel > label,
.change-date-section .handoff-rule,
.change-date-section .date-row,
.change-date-section .week-controls,
.change-date-section .lookup-result {
  grid-column: 1 !important;
}

.change-date-section .lookup-panel > label {
  margin: 0 !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #071b49 !important;
}

.change-date-section .handoff-rule {
  margin: -8px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  color: #52647d !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-size: 0.94rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  background: rgba(238, 247, 255, 0.82) !important;
  border: 1px solid rgba(166, 213, 236, 0.55) !important;
}

.change-date-section .date-row,
.change-date-section .week-controls {
  gap: 10px !important;
}

.change-date-section input,
.change-date-section select,
.messages-section input {
  color: #09224f !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(184, 199, 220, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.change-date-section button,
.messages-section button,
.message-delete {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.change-date-section .correction-panel {
  grid-column: 2 !important;
  grid-row: 1 / span 5 !important;
  margin: 0 !important;
  padding: clamp(16px, 2vw, 24px) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)) !important;
  border: 1px solid rgba(184, 199, 220, 0.78) !important;
  box-shadow: 0 18px 42px rgba(16, 43, 88, 0.12) !important;
}

.change-date-section .correction-panel h3 {
  margin: 3px 0 0 !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: clamp(1.45rem, 2vw, 2.1rem) !important;
  font-weight: 400 !important;
  color: #071b49 !important;
}

.simple-helper {
  color: #60718a !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.week-edit-grid {
  gap: 12px !important;
}

.week-edit-grid label,
.manual-scope,
.manual-days-panel {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.week-edit-grid span,
.manual-scope legend,
.manual-scope label,
.manual-days-panel label,
.correction-panel > label[for="correctionNote"] {
  color: #697a93 !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-size: 0.76rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.week-edit-summary .week-edit-card,
.lookup-result > div,
.messages-section .compose-bar,
.messages-section .conversation-window {
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(184, 199, 220, 0.68) !important;
}

.week-edit-summary strong,
.lookup-result strong,
.message-bubble strong,
.conversation-heading span {
  font-family: "Optima", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.messages-section {
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)) !important;
}

.messages-section .message-banner {
  padding: 11px 14px !important;
  border-radius: 16px !important;
  color: #65440b !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.messages-section .message-bubble {
  border-radius: 22px !important;
}

.messages-section .message-bubble p {
  color: #21334f !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

@media (max-width: 920px) {
  .change-date-section .lookup-panel {
    grid-template-columns: 1fr !important;
  }

  .change-date-section .lookup-panel > label,
  .change-date-section .handoff-rule,
  .change-date-section .date-row,
  .change-date-section .week-controls,
  .change-date-section .lookup-result,
  .change-date-section .correction-panel {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Authenticated app theme only: softer, lighter, more professional blue. */
body.is-authenticated {
  background:
    radial-gradient(circle at 14% 8%, rgba(183, 217, 236, 0.62), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(214, 232, 244, 0.82), transparent 28rem),
    linear-gradient(135deg, #dbeaf4 0%, #edf5fa 48%, #f8fbfd 100%) !important;
}

body.is-authenticated .app-shell {
  background:
    linear-gradient(180deg, rgba(244, 249, 252, 0.78), rgba(235, 245, 251, 0.86)) !important;
}

body.is-authenticated .app-shell main {
  background:
    linear-gradient(180deg, rgba(248, 252, 254, 0.86), rgba(235, 245, 251, 0.74)) !important;
}

body.is-authenticated .topbar,
body.is-authenticated.is-mobile-header-compact .topbar {
  background:
    linear-gradient(135deg, rgba(30, 56, 88, 0.9), rgba(53, 87, 122, 0.84)) !important;
  border-color: rgba(207, 226, 238, 0.46) !important;
  box-shadow: 0 18px 46px rgba(38, 72, 104, 0.18) !important;
}

body.is-authenticated .topbar-actions a,
body.is-authenticated .topbar-actions button {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(232, 242, 248, 0.24) !important;
}

body.is-authenticated .topbar-actions a.is-active,
body.is-authenticated .nav-list a.is-active {
  background: rgba(225, 243, 251, 0.22) !important;
  border-color: rgba(206, 231, 244, 0.62) !important;
}

body.is-authenticated .hero {
  background:
    linear-gradient(120deg, rgba(29, 55, 88, 0.9), rgba(57, 93, 132, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(213, 238, 248, 0.18), transparent 22rem),
    radial-gradient(circle at 88% 78%, rgba(188, 221, 239, 0.18), transparent 24rem) !important;
  border-color: rgba(213, 232, 242, 0.32) !important;
  box-shadow: 0 30px 80px rgba(39, 68, 98, 0.2) !important;
}

body.is-authenticated .change-date-section,
body.is-authenticated .schedule-section,
body.is-authenticated .uhc-section,
body.is-authenticated .messages-section,
body.is-authenticated .contacts-section,
body.is-authenticated .new-schedule-section,
body.is-authenticated .compliance-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.92)) !important;
  border-color: rgba(191, 210, 224, 0.56) !important;
  box-shadow: 0 24px 64px rgba(52, 83, 112, 0.13) !important;
}

body.is-authenticated .change-date-section .lookup-panel,
body.is-authenticated .change-date-section .correction-panel,
body.is-authenticated .messages-section .compose-bar,
body.is-authenticated .messages-section .conversation-window,
body.is-authenticated .schedule-section .table-wrap,
body.is-authenticated .uhc-table-wrap,
body.is-authenticated .uhc-today-card,
body.is-authenticated .uhc-legend-card,
body.is-authenticated .directory-profile,
body.is-authenticated .drop-zone {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(194, 213, 226, 0.62) !important;
}

body.is-authenticated .directory-edit-button {
  align-self: center !important;
  margin: 2px 0 4px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  color: #254869 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  background: rgba(230, 245, 252, 0.82) !important;
  border: 1px solid rgba(129, 181, 207, 0.42) !important;
  box-shadow: 0 10px 24px rgba(49, 85, 113, 0.08) !important;
  cursor: pointer !important;
}

body.is-authenticated .directory-details {
  grid-template-rows: auto auto auto 1fr !important;
}

body.is-authenticated .directory-links {
  margin-top: 4px !important;
}

body.is-authenticated .directory-edit-button:hover,
body.is-authenticated .directory-edit-button:focus-visible {
  transform: translateY(-1px) !important;
  background: rgba(212, 239, 249, 0.95) !important;
}

body.is-authenticated .directory-edit-form {
  display: grid !important;
  width: min(100%, 310px) !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

body.is-authenticated .directory-profile:has(.directory-edit-form) {
  grid-template-rows: 272px minmax(284px, auto) !important;
  min-height: 556px !important;
}

body.is-authenticated .directory-edit-form label {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  color: #6a7d95 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .directory-edit-form input {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 13px !important;
  color: #172d4b !important;
  font: 400 0.9rem/1.2 "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(132, 165, 190, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

body.is-authenticated .directory-edit-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

body.is-authenticated .directory-edit-actions button {
  min-height: 38px !important;
  border-radius: 14px !important;
  font: 500 0.88rem/1 "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  cursor: pointer !important;
}

body.is-authenticated .directory-edit-actions button[type="submit"] {
  color: white !important;
  background: linear-gradient(135deg, #1d62bb, #4aaeca) !important;
  border: 0 !important;
}

body.is-authenticated .directory-edit-actions button[type="button"] {
  color: #294967 !important;
  background: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(132, 165, 190, 0.32) !important;
}

body.is-authenticated #directoryStatus[data-tone="success"] {
  color: #22654f !important;
}

body.is-authenticated #directoryStatus[data-tone="error"] {
  color: #8a3a23 !important;
}

body.is-authenticated .schedule-section thead th {
  background: rgba(239, 247, 251, 0.92) !important;
}

body.is-authenticated .schedule-section td {
  background: rgba(255, 255, 255, 0.72) !important;
}

body.is-authenticated .schedule-section tbody tr:hover td,
body.is-authenticated .schedule-section tr.is-current td {
  background: rgba(229, 243, 250, 0.82) !important;
}

/* Re-imagined on-call landing: centered, compact, and above the fold. */
body.is-authenticated .hero {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr) !important;
  grid-template-areas: "portrait copy" !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(28px, 5vw, 70px) !important;
  width: min(100%, 1280px) !important;
  min-height: min(720px, calc(100svh - 138px)) !important;
  max-height: calc(100svh - 118px) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 52px) !important;
  overflow: hidden !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(226, 244, 251, 0.2), transparent 20rem),
    radial-gradient(circle at 82% 84%, rgba(190, 219, 236, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(32, 59, 92, 0.94), rgba(68, 102, 138, 0.82)) !important;
  border: 1px solid rgba(218, 234, 243, 0.34) !important;
  box-shadow: 0 32px 80px rgba(48, 78, 108, 0.2) !important;
}

body.is-authenticated .hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(230, 244, 251, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 244, 251, 0.055) 1px, transparent 1px) !important;
  background-size: 58px 58px !important;
  opacity: 0.62 !important;
  mask-image: linear-gradient(90deg, black, transparent 88%) !important;
}

body.is-authenticated .hero > * {
  position: relative !important;
  z-index: 1 !important;
}

body.is-authenticated .hero-portrait-stack {
  grid-area: portrait !important;
  display: grid !important;
  justify-self: end !important;
  align-self: center !important;
  width: min(100%, 380px) !important;
  min-width: 0 !important;
  gap: 12px !important;
}

body.is-authenticated .hero-portrait-stack .hero-doctor-portrait {
  width: 100% !important;
  height: clamp(300px, 47svh, 440px) !important;
  min-height: 0 !important;
  max-height: 440px !important;
  padding: 12px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 250, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 24px 58px rgba(24, 45, 68, 0.22) !important;
}

body.is-authenticated .hero-doctor-portrait img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 22px !important;
  background: #ffffff !important;
}

body.is-authenticated .call-progress-card {
  padding: 13px 15px !important;
  border-radius: 20px !important;
  background: rgba(25, 49, 80, 0.72) !important;
  border: 1px solid rgba(218, 234, 243, 0.26) !important;
  box-shadow: 0 16px 34px rgba(24, 45, 68, 0.2) !important;
}

body.is-authenticated .hero-copy {
  grid-area: copy !important;
  display: grid !important;
  align-content: center !important;
  justify-self: start !important;
  max-width: 680px !important;
  padding: 0 !important;
  text-align: left !important;
}

body.is-authenticated .hero .eyebrow {
  margin: 0 0 8px !important;
  color: #c9edf7 !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
}

body.is-authenticated .hero h2 {
  max-width: 700px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: clamp(3.2rem, 5.4vw, 6.1rem) !important;
  font-weight: 400 !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
}

body.is-authenticated #heroCallMeta {
  max-width: 620px !important;
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: clamp(1rem, 1.2vw, 1.16rem) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.is-authenticated .hospital-strip {
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 18px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(218, 234, 243, 0.26) !important;
  box-shadow: none !important;
}

body.is-authenticated .hospital-strip span {
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: 0 !important;
}

body.is-authenticated .adjacent-call-weeks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: min(100%, 610px) !important;
  margin-top: 18px !important;
  gap: 12px !important;
}

body.is-authenticated .adjacent-week-card {
  min-height: 86px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 1px solid rgba(218, 234, 243, 0.24) !important;
  box-shadow: none !important;
}

body.is-authenticated .hero-contact-row {
  margin-top: 18px !important;
  gap: 12px !important;
  align-items: center !important;
}

body.is-authenticated .hero-contact-row a,
body.is-authenticated .hero-contact-row button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  line-height: 1 !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  box-shadow: 0 16px 34px rgba(24, 45, 68, 0.16) !important;
}

body.is-authenticated .hero-contact-row .call-button {
  background: linear-gradient(135deg, #4eb7aa, #4b8fc8) !important;
}

@media (max-height: 760px) and (min-width: 921px) {
  body.is-authenticated .hero {
    min-height: calc(100svh - 118px) !important;
    padding: 22px 42px !important;
  }

  body.is-authenticated .hero-portrait-stack .hero-doctor-portrait {
    height: clamp(260px, 42svh, 360px) !important;
  }

  body.is-authenticated .hero h2 {
    font-size: clamp(2.8rem, 4.6vw, 5rem) !important;
  }

  body.is-authenticated .adjacent-week-card {
    min-height: 76px !important;
  }
}

@media (max-width: 920px) {
  body.is-authenticated .hero {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "portrait"
      "copy" !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 18px !important;
    gap: 16px !important;
  }

  body.is-authenticated .hero-portrait-stack,
  body.is-authenticated .hero-copy {
    justify-self: center !important;
    text-align: center !important;
  }

  body.is-authenticated .hero-portrait-stack {
    width: min(100%, 340px) !important;
  }

  body.is-authenticated .hero-portrait-stack .hero-doctor-portrait {
    height: min(36svh, 300px) !important;
  }

  body.is-authenticated .hospital-strip,
  body.is-authenticated .adjacent-call-weeks,
  body.is-authenticated .hero-contact-row {
    justify-self: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated .adjacent-call-weeks {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .hero h2 {
    font-size: clamp(2.15rem, 10vw, 3.3rem) !important;
  }
}

/* 2026-05-19: light professional authenticated app theme. Login screen is intentionally untouched. */
body.is-authenticated {
  background:
    radial-gradient(circle at 12% 18%, rgba(177, 220, 240, 0.34), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(199, 229, 243, 0.42), transparent 26%),
    linear-gradient(135deg, #f4fbff 0%, #e9f5fb 48%, #f8fcff 100%) !important;
}

body.is-authenticated .app-shell,
body.is-authenticated .app-shell main {
  background: transparent !important;
}

body.is-authenticated .topbar,
body.is-authenticated.is-mobile-header-compact .topbar {
  background: rgba(244, 250, 254, 0.94) !important;
  color: #102a43 !important;
  border-color: rgba(161, 195, 216, 0.58) !important;
  box-shadow: 0 18px 48px rgba(49, 85, 113, 0.14) !important;
}

body.is-authenticated .topbar strong,
body.is-authenticated .topbar .eyebrow,
body.is-authenticated .topbar-actions a,
body.is-authenticated .topbar-actions button {
  color: #102a43 !important;
}

body.is-authenticated .topbar-actions {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 20 !important;
}

body.is-authenticated .topbar-actions a,
body.is-authenticated .topbar-actions button {
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(108, 151, 181, 0.26) !important;
  box-shadow: 0 10px 22px rgba(49, 85, 113, 0.08) !important;
}

body.is-authenticated .topbar-actions a.is-active,
body.is-authenticated .nav-list a.is-active {
  color: #082044 !important;
  background: rgba(209, 237, 248, 0.95) !important;
  border-color: rgba(73, 146, 190, 0.42) !important;
}

body.is-authenticated .compliance-badge.warning-badge {
  background: rgba(255, 248, 229, 0.88) !important;
  border-color: rgba(214, 165, 72, 0.5) !important;
  color: #6f5017 !important;
  box-shadow: 0 12px 28px rgba(126, 94, 36, 0.12) !important;
}

body.is-authenticated .hero {
  background:
    linear-gradient(rgba(91, 142, 176, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 142, 176, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(249, 253, 255, 0.98), rgba(227, 241, 249, 0.94)) !important;
  background-size: 58px 58px, 58px 58px, auto !important;
  border-color: rgba(161, 195, 216, 0.48) !important;
  box-shadow: 0 26px 70px rgba(49, 85, 113, 0.15) !important;
  color: #102a43 !important;
}

body.is-authenticated .hero::before {
  opacity: 0.14 !important;
  background: linear-gradient(90deg, rgba(205, 231, 243, 0.38), transparent 75%) !important;
}

body.is-authenticated .hero .eyebrow {
  color: #3f8fac !important;
}

body.is-authenticated .hero h2 {
  color: #0b2345 !important;
}

body.is-authenticated #heroCallMeta {
  color: rgba(16, 42, 67, 0.72) !important;
}

body.is-authenticated .hospital-strip {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(91, 142, 176, 0.22) !important;
  box-shadow: 0 10px 28px rgba(49, 85, 113, 0.08) !important;
}

body.is-authenticated .hospital-strip span {
  color: #17395b !important;
}

body.is-authenticated .call-progress-card,
body.is-authenticated .adjacent-week-card {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(91, 142, 176, 0.2) !important;
  color: #102a43 !important;
  box-shadow: 0 16px 36px rgba(49, 85, 113, 0.1) !important;
}

body.is-authenticated .call-progress-card *,
body.is-authenticated .adjacent-week-card * {
  color: inherit !important;
}

body.is-authenticated .change-date-section,
body.is-authenticated .schedule-section,
body.is-authenticated .uhc-section,
body.is-authenticated .messages-section,
body.is-authenticated .contacts-section,
body.is-authenticated .new-schedule-section,
body.is-authenticated .compliance-section {
  background: rgba(248, 252, 255, 0.9) !important;
  border-color: rgba(161, 195, 216, 0.42) !important;
  box-shadow: 0 24px 62px rgba(49, 85, 113, 0.13) !important;
}

body.is-authenticated .change-date-section .lookup-panel,
body.is-authenticated .change-date-section .correction-panel,
body.is-authenticated .messages-section .compose-bar,
body.is-authenticated .messages-section .conversation-window,
body.is-authenticated .schedule-section .table-wrap,
body.is-authenticated .uhc-table-wrap,
body.is-authenticated .uhc-today-card,
body.is-authenticated .uhc-legend-card,
body.is-authenticated .directory-profile,
body.is-authenticated .drop-zone {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(161, 195, 216, 0.38) !important;
  box-shadow: 0 18px 42px rgba(49, 85, 113, 0.1) !important;
}

/* Keep the login form centered on narrower desktop/tablet windows. */
@media (max-width: 1100px) {
  .login-screen {
    justify-content: center !important;
    align-items: center !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  .login-screen .login-card {
    width: min(560px, calc(100vw - 28px)) !important;
    height: auto !important;
    max-height: calc(100svh - 28px) !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 14px !important;
    padding: clamp(18px, 3vw, 26px) !important;
    overflow: auto !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 249, 255, 0.965)) !important;
  }

  .login-screen .login-brand-panel,
  .login-screen .login-form-panel {
    grid-column: 1 !important;
    justify-self: center !important;
    width: min(100%, 500px) !important;
  }

  .login-screen .login-brand-panel {
    justify-items: center !important;
    text-align: center !important;
    max-width: 430px !important;
  }

  .login-screen .login-logo {
    width: min(180px, 58vw) !important;
    margin-inline: auto !important;
  }

  .login-screen .login-card h1,
  .login-screen .login-copy {
    text-align: center !important;
  }

  .login-screen .login-card h1 {
    max-width: 100% !important;
  }

  .login-screen .login-copy {
    max-width: 34ch !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 1100px) and (max-height: 760px) {
  .login-screen .login-brand-panel {
    display: none !important;
  }
}

/* Simplified Call Change editor. */
body.is-authenticated .change-date-section {
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(180, 220, 239, 0.24), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 253, 0.9)) !important;
}

body.is-authenticated .change-date-section .section-header {
  margin-bottom: 18px !important;
  align-items: start !important;
}

body.is-authenticated .change-date-section .section-header h2 {
  color: #0d284b !important;
  font-size: clamp(2.1rem, 4vw, 3.6rem) !important;
  line-height: 1 !important;
}

body.is-authenticated .change-date-section .lookup-panel {
  display: grid !important;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
  gap: clamp(18px, 3vw, 34px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated .change-date-section .lookup-panel > label,
body.is-authenticated .change-date-section .handoff-rule,
body.is-authenticated .change-date-section .date-row,
body.is-authenticated .change-date-section .week-controls,
body.is-authenticated .change-date-section .lookup-result {
  grid-column: 1 !important;
}

body.is-authenticated .change-date-section .lookup-panel > label,
body.is-authenticated .change-date-section .correction-panel h3 {
  color: #0d284b !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: clamp(1.45rem, 2.1vw, 2.05rem) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

body.is-authenticated .change-date-section .handoff-rule {
  margin: 0 !important;
  padding: 14px 16px !important;
  color: #54677e !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(156, 191, 214, 0.34) !important;
  box-shadow: 0 14px 34px rgba(61, 94, 121, 0.08) !important;
}

body.is-authenticated .change-date-section .date-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: stretch !important;
  margin-top: 2px !important;
}

body.is-authenticated .change-date-section .week-controls {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

body.is-authenticated .change-date-section .date-row input,
body.is-authenticated .change-date-section .date-row button,
body.is-authenticated .change-date-section .week-controls button {
  min-height: 48px !important;
  border-radius: 18px !important;
}

body.is-authenticated .change-date-section .lookup-panel > label,
body.is-authenticated .change-date-section .handoff-rule,
body.is-authenticated .change-date-section .date-row,
body.is-authenticated .change-date-section .week-controls,
body.is-authenticated .change-date-section .lookup-result {
  width: min(100%, 360px) !important;
  justify-self: center !important;
}

body.is-authenticated .change-date-section .lookup-panel > label {
  text-align: center !important;
}

body.is-authenticated .change-date-section .handoff-rule {
  min-height: 0 !important;
  text-align: center !important;
}

body.is-authenticated .change-date-section .date-row,
body.is-authenticated .change-date-section .week-controls {
  gap: 10px !important;
}

body.is-authenticated .change-date-section .date-row input,
body.is-authenticated .change-date-section .date-row button,
body.is-authenticated .change-date-section .week-controls button {
  min-height: 52px !important;
  padding: 0 16px !important;
  font-size: 0.96rem !important;
}

body.is-authenticated .change-date-section .lookup-result {
  margin-top: 2px !important;
}

body.is-authenticated .change-date-section .lookup-result > div {
  padding: 14px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: none !important;
}

body.is-authenticated .change-date-section .correction-panel {
  grid-column: 2 !important;
  grid-row: 1 / span 5 !important;
  display: grid !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: clamp(20px, 2.6vw, 30px) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.86)) !important;
  border: 1px solid rgba(156, 191, 214, 0.36) !important;
  box-shadow: 0 24px 58px rgba(61, 94, 121, 0.12) !important;
}

body.is-authenticated .change-date-section .correction-panel .eyebrow {
  margin-bottom: 3px !important;
}

body.is-authenticated .change-date-section .simple-helper {
  max-width: 58ch !important;
  margin: -6px 0 0 !important;
  color: #5f7085 !important;
}

body.is-authenticated .manual-week-field {
  display: none !important;
}

body.is-authenticated .week-edit-summary .week-edit-card {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 0 0, rgba(145, 205, 231, 0.18), transparent 14rem),
    rgba(255, 255, 255, 0.76) !important;
}

body.is-authenticated .week-edit-summary span {
  color: #0d284b !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: 1.26rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.is-authenticated .week-edit-summary small {
  color: #63758b !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.is-authenticated .week-edit-doctors {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.is-authenticated .week-doctor-card {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  min-height: 86px !important;
  padding: 12px !important;
  border-radius: 20px !important;
}

body.is-authenticated .week-doctor-photo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
}

body.is-authenticated .week-doctor-card strong {
  display: block !important;
  overflow: hidden !important;
  color: #0d284b !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-authenticated .week-doctor-card span,
body.is-authenticated .week-doctor-card small {
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
}

body.is-authenticated .week-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.is-authenticated .week-edit-grid label,
body.is-authenticated .manual-scope,
body.is-authenticated .manual-days-panel {
  padding: 13px !important;
  border: 1px solid rgba(156, 191, 214, 0.26) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

body.is-authenticated .week-edit-grid select,
body.is-authenticated .correction-panel > input {
  min-height: 48px !important;
  border-radius: 16px !important;
}

body.is-authenticated .manual-scope {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.is-authenticated .manual-scope legend {
  grid-column: 1 / -1 !important;
}

body.is-authenticated .manual-scope label,
body.is-authenticated .manual-days-panel label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  min-height: 40px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  background: rgba(241, 248, 252, 0.9) !important;
  color: #253b56 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.is-authenticated .manual-days-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.is-authenticated .manual-days-panel:empty {
  display: none !important;
}

body.is-authenticated .correction-panel > button[type="submit"] {
  justify-self: end !important;
  min-width: 220px !important;
  min-height: 52px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #2a6fb5, #41a7bf) !important;
  box-shadow: 0 18px 36px rgba(42, 111, 181, 0.2) !important;
}

body.is-authenticated .week-edit-summary em {
  color: #2d694f !important;
  font-family: var(--professional-text, "Avenir Next", Avenir, "Segoe UI", sans-serif) !important;
  font-weight: 500 !important;
}

@media (max-width: 920px) {
  body.is-authenticated .change-date-section .lookup-panel {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .change-date-section .lookup-panel > label,
  body.is-authenticated .change-date-section .handoff-rule,
  body.is-authenticated .change-date-section .date-row,
  body.is-authenticated .change-date-section .week-controls,
  body.is-authenticated .change-date-section .lookup-result,
  body.is-authenticated .change-date-section .correction-panel {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.is-authenticated .week-edit-doctors,
  body.is-authenticated .week-edit-grid,
  body.is-authenticated .manual-scope,
  body.is-authenticated .manual-days-panel {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .correction-panel > button[type="submit"] {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

@media (min-width: 921px) {
  body.is-authenticated .change-date-section .lookup-panel {
    align-items: start !important;
  }
}

@media (max-width: 560px) {
  body.is-authenticated .change-date-section {
    padding: 18px !important;
  }

  body.is-authenticated .change-date-section .lookup-panel > label,
  body.is-authenticated .change-date-section .handoff-rule,
  body.is-authenticated .change-date-section .date-row,
  body.is-authenticated .change-date-section .week-controls,
  body.is-authenticated .change-date-section .lookup-result {
    width: 100% !important;
  }

  body.is-authenticated .change-date-section .date-row {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .change-date-section .week-controls {
    grid-template-columns: 1fr !important;
  }
}

/* Master Schedule inline editor replaces the old separate Call Change page. */
body.is-authenticated .schedule-inline-editor {
  margin-top: 22px !important;
  padding: clamp(18px, 2.4vw, 28px) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 10% 0, rgba(145, 205, 231, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 254, 0.9)) !important;
  border: 1px solid rgba(156, 191, 214, 0.36) !important;
  box-shadow: 0 22px 52px rgba(61, 94, 121, 0.12) !important;
}

body.is-authenticated .schedule-inline-editor[hidden] {
  display: none !important;
}

body.is-authenticated .schedule-inline-editor .correction-panel {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated .schedule-inline-editor .correction-panel > div:first-child,
body.is-authenticated .schedule-inline-editor .simple-helper,
body.is-authenticated .schedule-inline-editor .week-edit-summary {
  grid-column: 1 !important;
}

body.is-authenticated .schedule-inline-editor .week-edit-grid,
body.is-authenticated .schedule-inline-editor .manual-scope,
body.is-authenticated .schedule-inline-editor .manual-days-panel,
body.is-authenticated .schedule-inline-editor .correction-panel > label[for="correctionNote"],
body.is-authenticated .schedule-inline-editor #correctionNote,
body.is-authenticated .schedule-inline-editor .correction-panel > button[type="submit"] {
  grid-column: 2 !important;
}

body.is-authenticated .schedule-inline-editor .correction-panel h3 {
  margin: 0 !important;
  color: #0d284b !important;
  font-family: "Optima", Georgia, serif !important;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
}

body.is-authenticated .schedule-inline-editor .week-edit-summary .week-edit-card {
  padding: 16px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(156, 191, 214, 0.26) !important;
}

body.is-authenticated .schedule-inline-editor .week-edit-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.is-authenticated .schedule-inline-editor .manual-week-field {
  display: none !important;
}

body.is-authenticated .schedule-inline-editor .week-edit-grid label,
body.is-authenticated .schedule-inline-editor .manual-scope,
body.is-authenticated .schedule-inline-editor .manual-days-panel {
  padding: 13px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(156, 191, 214, 0.26) !important;
}

body.is-authenticated .schedule-inline-editor .manual-scope {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.is-authenticated .schedule-inline-editor .manual-scope legend {
  grid-column: 1 / -1 !important;
}

body.is-authenticated .schedule-inline-editor .manual-days-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.is-authenticated .schedule-inline-editor .manual-scope label,
body.is-authenticated .schedule-inline-editor .manual-days-panel label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  background: rgba(241, 248, 252, 0.9) !important;
  color: #253b56 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.is-authenticated .schedule-inline-editor select,
body.is-authenticated .schedule-inline-editor input[type="text"] {
  min-height: 48px !important;
  border-radius: 16px !important;
}

body.is-authenticated .schedule-inline-editor .correction-panel > button[type="submit"] {
  justify-self: end !important;
  min-width: 220px !important;
  min-height: 52px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #2a6fb5, #41a7bf) !important;
  box-shadow: 0 18px 36px rgba(42, 111, 181, 0.2) !important;
}

@media (max-width: 920px) {
  body.is-authenticated .schedule-inline-editor .correction-panel {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .schedule-inline-editor .correction-panel > div:first-child,
  body.is-authenticated .schedule-inline-editor .simple-helper,
  body.is-authenticated .schedule-inline-editor .week-edit-summary,
  body.is-authenticated .schedule-inline-editor .week-edit-grid,
  body.is-authenticated .schedule-inline-editor .manual-scope,
  body.is-authenticated .schedule-inline-editor .manual-days-panel,
  body.is-authenticated .schedule-inline-editor .correction-panel > label[for="correctionNote"],
  body.is-authenticated .schedule-inline-editor #correctionNote,
  body.is-authenticated .schedule-inline-editor .correction-panel > button[type="submit"] {
    grid-column: 1 !important;
  }

  body.is-authenticated .schedule-inline-editor .week-edit-grid,
  body.is-authenticated .schedule-inline-editor .manual-scope,
  body.is-authenticated .schedule-inline-editor .manual-days-panel {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .schedule-inline-editor .correction-panel > button[type="submit"] {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Final view routing guard: only the selected top-nav section should be visible. */
body.is-authenticated .app-shell main > section:not(.is-active-view),
body.is-authenticated .app-shell main > .workspace-grid:not(.is-active-view) {
  display: none !important;
}

/* Directory edit refinement: keep contact cards calm, even, and non-overlapping. */
body.is-authenticated .directory-profile {
  grid-template-rows: 288px minmax(300px, auto) !important;
  min-height: 588px !important;
  overflow: hidden !important;
}

body.is-authenticated .directory-photo {
  min-height: 0 !important;
}

body.is-authenticated .directory-details {
  display: grid !important;
  grid-template-rows: 30px 28px minmax(110px, auto) 38px !important;
  align-content: start !important;
  justify-items: center !important;
  gap: 8px !important;
  padding: 24px 20px 22px !important;
}

body.is-authenticated .directory-details h3,
body.is-authenticated .directory-details p {
  align-self: center !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}

body.is-authenticated .directory-links {
  align-self: start !important;
  display: grid !important;
  gap: 9px !important;
  margin: 10px 0 4px !important;
}

body.is-authenticated .directory-edit-button {
  align-self: end !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 7px 16px !important;
}

body.is-authenticated .directory-profile:has(.directory-edit-form) {
  grid-template-rows: 250px minmax(338px, auto) !important;
  min-height: 588px !important;
}

body.is-authenticated .directory-profile:has(.directory-edit-form) .directory-details {
  grid-template-rows: 28px 24px 1fr !important;
}

body.is-authenticated .directory-edit-form {
  align-self: start !important;
}

body.is-authenticated .import-help {
  margin-top: 10px !important;
  color: #566b85 !important;
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
}

body.is-authenticated .import-text-fallback {
  display: grid !important;
  gap: 10px !important;
  margin: 16px 0 6px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: rgba(247, 251, 255, 0.82) !important;
  border: 1px solid rgba(190, 210, 224, 0.62) !important;
}

body.is-authenticated .import-text-fallback label {
  color: #425a76 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .import-text-fallback textarea {
  width: 100% !important;
  min-height: 124px !important;
  resize: vertical !important;
  border-radius: 16px !important;
  border: 1px solid rgba(177, 199, 216, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #19304f !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  padding: 12px 14px !important;
}

body.is-authenticated .import-text-fallback button {
  justify-self: start !important;
  min-height: 40px !important;
  padding: 9px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #2a6fb5, #41a7bf) !important;
  color: #fff !important;
  border: 0 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 14px 28px rgba(42, 111, 181, 0.18) !important;
}

/* Directory contact cards: preserve identical card rhythm after adding inline editing. */
body.is-authenticated .directory-profile {
  grid-template-rows: 288px 332px !important;
  min-height: 620px !important;
}

body.is-authenticated .directory-details {
  grid-template-rows: 36px 30px minmax(142px, auto) 36px !important;
  gap: 10px !important;
  padding: 24px 22px 22px !important;
}

body.is-authenticated .directory-details h3 {
  align-self: end !important;
  font-size: clamp(1rem, 1.02vw, 1.16rem) !important;
}

body.is-authenticated .directory-details p {
  align-self: start !important;
  font-size: 0.9rem !important;
}

body.is-authenticated .directory-links {
  align-self: start !important;
  gap: 10px !important;
  margin: 8px 0 0 !important;
}

body.is-authenticated .directory-details a,
body.is-authenticated .directory-details .directory-links span {
  min-height: 48px !important;
}

body.is-authenticated .directory-edit-button {
  align-self: center !important;
  min-height: 34px !important;
  margin: 0 !important;
}

body.is-authenticated .directory-profile:has(.directory-edit-form) {
  grid-template-rows: 246px 374px !important;
  min-height: 620px !important;
}

body.is-authenticated .directory-profile:has(.directory-edit-form) .directory-details {
  grid-template-rows: 32px 26px 1fr !important;
  gap: 8px !important;
}

body.is-authenticated .schedule-quarter-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 22px 0 4px !important;
}

body.is-authenticated .quarter-arrow-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-width: 190px !important;
  min-height: 50px !important;
  padding: 12px 22px !important;
  border: 1px solid rgba(105, 157, 190, 0.36) !important;
  border-radius: 999px !important;
  color: #12345b !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 246, 252, 0.9)) !important;
  box-shadow: 0 16px 38px rgba(42, 92, 135, 0.12) !important;
  cursor: pointer !important;
}

body.is-authenticated .quarter-arrow-button span {
  color: #4f6681 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .quarter-arrow-button strong {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2b6fb8, #42a6bd) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

body.is-authenticated .quarter-arrow-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 20px 44px rgba(42, 92, 135, 0.16) !important;
}

body.is-authenticated .quarter-arrow-button--previous {
  background:
    linear-gradient(135deg, rgba(248, 252, 255, 0.96), rgba(240, 247, 252, 0.92)) !important;
}

body.is-authenticated .import-confirmation {
  display: grid !important;
  gap: 8px !important;
  margin: 16px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  color: #153151 !important;
  background: linear-gradient(135deg, rgba(226, 246, 252, 0.92), rgba(255, 255, 255, 0.96)) !important;
  border: 1px solid rgba(115, 180, 199, 0.42) !important;
  box-shadow: 0 16px 36px rgba(56, 101, 132, 0.1) !important;
}

body.is-authenticated .import-confirmation strong {
  font-family: "Optima", "Avenir Next", Avenir, "Segoe UI", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
}

body.is-authenticated .import-confirmation span,
body.is-authenticated .import-confirmation small {
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.is-authenticated .import-confirmation small {
  color: #657891 !important;
}

body.is-authenticated .import-confirmation.is-saved {
  background: linear-gradient(135deg, rgba(223, 249, 240, 0.94), rgba(255, 255, 255, 0.96)) !important;
  border-color: rgba(75, 170, 128, 0.4) !important;
}

body.is-authenticated .import-confirmation.is-warning {
  background: linear-gradient(135deg, rgba(255, 247, 225, 0.96), rgba(255, 255, 255, 0.96)) !important;
  border-color: rgba(216, 163, 72, 0.42) !important;
}

/* Final directory photo normalization: one frame, one visible image size, no layout changes. */
body.is-authenticated .directory-profile {
  grid-template-rows: 288px 332px !important;
}

body.is-authenticated .directory-photo,
body.is-authenticated .directory-profile[data-doctor] .directory-photo,
body.is-authenticated .directory-profile:has(.directory-edit-form) .directory-photo {
  display: grid !important;
  place-items: center !important;
  height: 288px !important;
  min-height: 288px !important;
  max-height: 288px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated .directory-photo img,
body.is-authenticated .directory-profile[data-doctor] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="prescott"] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="schmidt"] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="mehta"] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="ghajar"] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="remington"] .directory-photo img,
body.is-authenticated .directory-profile[data-doctor="fogg"] .directory-photo img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center 18% !important;
}

@media (max-width: 1800px) {
  body.is-authenticated .directory-profile {
    grid-template-rows: 230px 300px !important;
    min-height: 530px !important;
  }

  body.is-authenticated .directory-photo,
  body.is-authenticated .directory-profile[data-doctor] .directory-photo {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    padding: 14px !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated .directory-profile {
    grid-template-rows: 210px 300px !important;
    min-height: 510px !important;
  }

  body.is-authenticated .directory-photo,
  body.is-authenticated .directory-profile[data-doctor] .directory-photo {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    padding: 12px !important;
  }
}

body.is-authenticated .uhc-section {
  width: min(100%, 1500px) !important;
  margin: 0 auto 28px !important;
  padding: clamp(22px, 3vw, 40px) !important;
  border: 1px solid rgba(170, 202, 222, 0.62) !important;
  border-radius: 30px !important;
}

body.is-authenticated .uhc-section .section-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: end !important;
  margin-bottom: 22px !important;
}

body.is-authenticated .uhc-section h2 {
  margin: 0 !important;
  color: #0b234b !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2.1rem, 4vw, 4.6rem) !important;
  font-weight: 500 !important;
  line-height: 0.95 !important;
}

body.is-authenticated .uhc-controls,
body.is-authenticated .uhc-month-controls {
  display: inline-flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.is-authenticated .uhc-controls input,
body.is-authenticated .uhc-controls button,
body.is-authenticated .uhc-month-controls button {
  min-height: 46px !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(141, 178, 204, 0.48) !important;
  border-radius: 16px !important;
  color: #173456 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

body.is-authenticated .uhc-controls button,
body.is-authenticated .uhc-month-controls button {
  color: white !important;
  background: linear-gradient(135deg, #2868b8, #39a9c8) !important;
  box-shadow: 0 16px 32px rgba(56, 116, 164, 0.16) !important;
}

body.is-authenticated .uhc-month-controls button:disabled {
  cursor: not-allowed !important;
  opacity: 0.42 !important;
}

body.is-authenticated .uhc-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

body.is-authenticated .uhc-today-card,
body.is-authenticated .uhc-legend-card,
body.is-authenticated .uhc-table-wrap {
  border: 1px solid rgba(174, 204, 223, 0.66) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 20px 52px rgba(53, 91, 124, 0.12) !important;
}

body.is-authenticated .uhc-today-card,
body.is-authenticated .uhc-legend-card {
  padding: 22px !important;
}

body.is-authenticated .uhc-today-card h3 {
  margin: 4px 0 18px !important;
  color: #102b52 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 2.8vw, 3rem) !important;
  font-weight: 500 !important;
}

body.is-authenticated .uhc-halfday-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.is-authenticated .uhc-halfday-grid > div {
  min-height: 116px !important;
  padding: 16px !important;
  border: 1px solid rgba(185, 211, 226, 0.7) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(237, 247, 252, 0.82)) !important;
}

body.is-authenticated .uhc-halfday-grid > div > span,
body.is-authenticated .uhc-table th,
body.is-authenticated .uhc-legend-card .eyebrow {
  color: #6f819b !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .uhc-assignment {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #102b52 !important;
}

body.is-authenticated .uhc-assignment::before {
  content: none !important;
}

body.is-authenticated .uhc-assignment-photo {
  display: grid !important;
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--doctor-color) 24%, white) !important;
  box-shadow: 0 12px 26px rgba(43, 78, 111, 0.14) !important;
}

body.is-authenticated .uhc-assignment-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
}

body.is-authenticated .uhc-assignment-photo.is-missing-photo::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: var(--doctor-color) !important;
}

body.is-authenticated .uhc-assignment strong {
  display: block !important;
  color: #102b52 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

body.is-authenticated .uhc-assignment small,
body.is-authenticated .uhc-empty {
  display: block !important;
  color: #657894 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 400 !important;
}

body.is-authenticated .uhc-legend {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

body.is-authenticated .uhc-legend-item {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(240, 248, 252, 0.76) !important;
}

body.is-authenticated .uhc-legend-item span {
  display: inline-flex !important;
  justify-content: center !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
  color: #081f45 !important;
  background: var(--doctor-color) !important;
  font-weight: 700 !important;
}

body.is-authenticated .uhc-legend-item strong {
  color: #25405f !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

body.is-authenticated .uhc-month-controls {
  width: 100% !important;
  margin: 12px 0 16px !important;
}

body.is-authenticated .uhc-month-controls strong {
  min-width: 180px !important;
  color: #0b234b !important;
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

body.is-authenticated .uhc-table-wrap {
  overflow: auto !important;
}

body.is-authenticated .uhc-table {
  width: 100% !important;
  min-width: 720px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.is-authenticated .uhc-table th,
body.is-authenticated .uhc-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(185, 211, 226, 0.58) !important;
  text-align: left !important;
  vertical-align: middle !important;
}

body.is-authenticated .uhc-table tr.is-current td {
  background: rgba(224, 244, 252, 0.58) !important;
}

body.is-authenticated .uhc-date-button {
  display: grid !important;
  gap: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #102b52 !important;
  background: transparent !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.is-authenticated .uhc-date-button strong {
  color: #102b52 !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
}

body.is-authenticated .uhc-date-button span,
body.is-authenticated .uhc-closed {
  color: #73839a !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.84rem !important;
}

body.is-authenticated .uhc-closed {
  color: #b43b4e !important;
  font-weight: 600 !important;
}

@media (max-width: 820px) {
  body.is-authenticated .uhc-section .section-header,
  body.is-authenticated .uhc-grid,
  body.is-authenticated .uhc-halfday-grid {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .uhc-controls,
  body.is-authenticated .uhc-controls input,
  body.is-authenticated .uhc-controls button,
  body.is-authenticated .uhc-month-controls button {
    width: 100% !important;
  }

  body.is-authenticated .uhc-month-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* UHC import and responsive schedule polish */
body.is-authenticated .uhc-quarter-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 16px 0 18px !important;
}

body.is-authenticated .uhc-quarter-button {
  min-height: 42px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(144, 183, 207, 0.5) !important;
  border-radius: 999px !important;
  color: #193b61 !important;
  background: rgba(255, 255, 255, 0.76) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
}

body.is-authenticated .uhc-quarter-button.is-active {
  color: white !important;
  background: linear-gradient(135deg, #2766b8, #3aa9c5) !important;
  box-shadow: 0 14px 28px rgba(48, 112, 164, 0.16) !important;
}

body.is-authenticated .uhc-import-panel {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin: 20px 0 10px !important;
}

body.is-authenticated .uhc-drop-zone {
  min-height: 220px !important;
  border-color: rgba(116, 179, 211, 0.54) !important;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(232, 246, 252, 0.76)) !important;
}

body.is-authenticated .uhc-drop-zone .drop-icon {
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px !important;
  color: #123660 !important;
  background: linear-gradient(135deg, #a7efff, #d7f9ff) !important;
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 14px 30px rgba(47, 116, 159, 0.14) !important;
}

body.is-authenticated .uhc-import-review {
  display: grid !important;
  gap: 12px !important;
  padding: 18px !important;
  border: 1px solid rgba(174, 204, 223, 0.66) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 20px 52px rgba(53, 91, 124, 0.1) !important;
}

body.is-authenticated .uhc-import-review .import-status {
  padding: 12px 14px !important;
  border-radius: 16px !important;
  color: #14355d !important;
  background: rgba(220, 244, 252, 0.74) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
}

body.is-authenticated .uhc-import-review .import-preview {
  min-height: 120px !important;
  overflow: auto !important;
}

body.is-authenticated .uhc-import-review .import-preview table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
}

body.is-authenticated .uhc-import-review .import-preview th,
body.is-authenticated .uhc-import-review .import-preview td {
  padding: 10px 8px !important;
  border-bottom: 1px solid rgba(190, 214, 228, 0.72) !important;
  color: #1e3a5d !important;
  text-align: left !important;
}

body.is-authenticated .uhc-import-review .import-preview th {
  color: #6f819b !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .uhc-import-review .import-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

body.is-authenticated .uhc-import-review .import-actions button {
  min-height: 42px !important;
  padding: 9px 16px !important;
  border: 1px solid rgba(141, 178, 204, 0.5) !important;
  border-radius: 14px !important;
  color: #173456 !important;
  background: rgba(255, 255, 255, 0.84) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

body.is-authenticated .uhc-import-review .import-actions button:first-child:not(:disabled) {
  color: white !important;
  background: linear-gradient(135deg, #2766b8, #3aa9c5) !important;
}

@media (max-width: 820px) {
  body.is-authenticated .uhc-section {
    padding: 16px !important;
    border-radius: 22px !important;
  }

  body.is-authenticated .uhc-section .section-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.is-authenticated .uhc-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }

  body.is-authenticated .uhc-controls input,
  body.is-authenticated .uhc-controls button:first-of-type {
    grid-column: 1 / -1 !important;
  }

  body.is-authenticated .uhc-today-card,
  body.is-authenticated .uhc-legend-card {
    padding: 16px !important;
  }

  body.is-authenticated .uhc-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.is-authenticated .uhc-table {
    min-width: 0 !important;
    border-spacing: 0 12px !important;
  }

  body.is-authenticated .uhc-table thead {
    display: none !important;
  }

  body.is-authenticated .uhc-table,
  body.is-authenticated .uhc-table tbody,
  body.is-authenticated .uhc-table tr,
  body.is-authenticated .uhc-table td {
    display: block !important;
    width: 100% !important;
  }

  body.is-authenticated .uhc-table tr {
    margin-bottom: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(174, 204, 223, 0.72) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 14px 32px rgba(53, 91, 124, 0.1) !important;
  }

  body.is-authenticated .uhc-table td {
    padding: 12px 14px !important;
    border-bottom: 0 !important;
  }

  body.is-authenticated .uhc-table td:nth-child(2)::before,
  body.is-authenticated .uhc-table td:nth-child(3)::before {
    display: block !important;
    margin-bottom: 6px !important;
    color: #6f819b !important;
    font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  body.is-authenticated .uhc-table td:nth-child(2)::before {
    content: "Morning" !important;
  }

  body.is-authenticated .uhc-table td:nth-child(3)::before {
    content: "Afternoon" !important;
  }

  body.is-authenticated .uhc-import-panel {
    grid-template-columns: 1fr !important;
  }
}

/* UHC clinic contact and selected-day editing */
body.is-authenticated .uhc-clinic-contact {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  align-items: center !important;
  margin: 12px 0 0 !important;
  color: #49627f !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
}

body.is-authenticated .uhc-clinic-contact span,
body.is-authenticated .uhc-clinic-contact a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(159, 194, 214, 0.52) !important;
  border-radius: 999px !important;
  color: #254866 !important;
  background: rgba(255, 255, 255, 0.68) !important;
  text-decoration: none !important;
}

body.is-authenticated .uhc-row-edit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  margin-top: 8px !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(125, 181, 211, 0.48) !important;
  border-radius: 999px !important;
  color: #1f5274 !important;
  background: rgba(228, 247, 253, 0.82) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

body.is-authenticated .uhc-edit-form {
  display: grid !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding: 16px !important;
  border: 1px solid rgba(174, 204, 223, 0.72) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 253, 0.82)) !important;
}

body.is-authenticated .uhc-edit-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.is-authenticated .uhc-edit-form label {
  display: grid !important;
  gap: 7px !important;
  color: #61758f !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}

body.is-authenticated .uhc-edit-form select {
  min-height: 48px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(159, 190, 211, 0.62) !important;
  border-radius: 16px !important;
  color: #102b52 !important;
  background: white !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.is-authenticated .uhc-closed-toggle {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 2px !important;
  letter-spacing: 0.08em !important;
}

body.is-authenticated .uhc-closed-toggle input {
  width: 18px !important;
  height: 18px !important;
  accent-color: #2766b8 !important;
}

body.is-authenticated .uhc-save-button {
  justify-self: start !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: white !important;
  background: linear-gradient(135deg, #2766b8, #3aa9c5) !important;
  box-shadow: 0 14px 30px rgba(48, 112, 164, 0.18) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

@media (max-width: 820px) {
  body.is-authenticated .uhc-clinic-contact,
  body.is-authenticated .uhc-clinic-contact span,
  body.is-authenticated .uhc-clinic-contact a {
    width: 100% !important;
  }

  body.is-authenticated .uhc-edit-fields {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated .uhc-save-button {
    width: 100% !important;
  }
}

/* UHC selected-day edit control and directory edit-pill placement. */
body.is-authenticated .uhc-edit-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin-top: 16px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(125, 181, 211, 0.48) !important;
  border-radius: 999px !important;
  color: #1f5274 !important;
  background: rgba(228, 247, 253, 0.9) !important;
  box-shadow: 0 12px 24px rgba(59, 113, 150, 0.1) !important;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
}

body.is-authenticated .directory-details .directory-edit-button {
  align-self: center !important;
  margin-top: -2px !important;
}

/* UHC control ordering and final directory/contact alignment. */
body.is-authenticated .uhc-section .section-header {
  align-items: center !important;
}

body.is-authenticated .uhc-section h2 {
  white-space: nowrap !important;
  font-size: clamp(2rem, 3.4vw, 4.2rem) !important;
}

body.is-authenticated .uhc-controls {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: min(100%, 420px) !important;
  gap: 10px !important;
  justify-self: center !important;
}

body.is-authenticated .uhc-controls #uhcTodayButton {
  grid-column: 1 / -1 !important;
  order: 1 !important;
}

body.is-authenticated .uhc-controls #uhcDateLookup {
  grid-column: 1 / -1 !important;
  order: 2 !important;
  text-align: center !important;
}

body.is-authenticated .uhc-controls #uhcPrevDayButton {
  order: 3 !important;
}

body.is-authenticated .uhc-controls #uhcNextDayButton {
  order: 4 !important;
}

body.is-authenticated .uhc-clinic-contact {
  justify-content: center !important;
  width: min(100%, 760px) !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
}

body.is-authenticated .uhc-clinic-contact span,
body.is-authenticated .uhc-clinic-contact a {
  justify-content: center !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
  color: #12385d !important;
  background: rgba(231, 247, 253, 0.94) !important;
  box-shadow: 0 12px 24px rgba(63, 111, 145, 0.1) !important;
  font-size: 1.02rem !important;
}

body.is-authenticated .directory-details .directory-edit-button {
  transform: translateY(-14px) !important;
}

body.is-authenticated .directory-details .directory-edit-button:hover,
body.is-authenticated .directory-details .directory-edit-button:focus-visible {
  transform: translateY(-16px) !important;
}

@media (max-width: 820px) {
  body.is-authenticated .uhc-section h2 {
    font-size: clamp(1.42rem, 7vw, 2.35rem) !important;
  }

  body.is-authenticated .uhc-controls {
    width: 100% !important;
  }
}

/* Final phone UHC fit: compact controls with previous/next side by side. */
@media (max-width: 640px) {
  body.is-authenticated .uhc-section {
    width: calc(100% - 20px) !important;
    margin-inline: auto !important;
    padding: 20px 18px 24px !important;
    border-radius: 24px !important;
  }

  body.is-authenticated .uhc-section .section-header {
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  body.is-authenticated .uhc-section h2 {
    font-size: clamp(1.25rem, 6vw, 1.95rem) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
  }

  body.is-authenticated .uhc-clinic-contact {
    gap: 8px !important;
    margin-top: 14px !important;
  }

  body.is-authenticated .uhc-clinic-contact span,
  body.is-authenticated .uhc-clinic-contact a {
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 0.95rem !important;
  }

  body.is-authenticated .uhc-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100% !important;
  }

  body.is-authenticated .uhc-controls #uhcTodayButton,
  body.is-authenticated .uhc-controls #uhcDateLookup {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body.is-authenticated .uhc-controls #uhcDateLookup {
    padding-inline: 42px !important;
    text-align: center !important;
    text-align-last: center !important;
  }

  body.is-authenticated .uhc-controls #uhcDateLookup::-webkit-date-and-time-value {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  body.is-authenticated .uhc-controls #uhcPrevDayButton,
  body.is-authenticated .uhc-controls #uhcNextDayButton {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    white-space: nowrap !important;
  }

  body.is-authenticated .uhc-controls input,
  body.is-authenticated .uhc-controls button {
    box-sizing: border-box !important;
    min-height: 46px !important;
    font-size: 0.98rem !important;
  }

  body.is-authenticated .uhc-today-card {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  body.is-authenticated .uhc-today-card h3 {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
    line-height: 1.06 !important;
  }
}

@media (max-width: 380px) {
  body.is-authenticated .uhc-section h2 {
    font-size: 1.18rem !important;
  }
}
