/* Patient App Custom Styles */
/* Extracted from Figma design - Dark mode theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

:root {
  /* Patient App Color Palette */
  --patient-bg-primary: #10172A;
  --patient-bg-card: #1F2937;
  --patient-bg-card-hover: #374151;
  --patient-text-primary: #E5E7EB;
  --patient-text-secondary: #9CA3AF;
  --patient-accent-blue: #60A5FA;
  --patient-accent-green: #10B981;
  --patient-accent-red: #EF4444;
  --patient-border: #374151;
  --patient-bottom-offset-sm: calc(5.5rem + env(safe-area-inset-bottom));
  --patient-bottom-offset-md: calc(6rem + env(safe-area-inset-bottom));
  --patient-bottom-offset-lg: calc(6.5rem + env(safe-area-inset-bottom));
  --patient-bottom-offset-xl: calc(7.25rem + env(safe-area-inset-bottom));
  --patient-bottom-offset-roomy: calc(7.5rem + env(safe-area-inset-bottom));
  --patient-bottom-offset-2xl: calc(10rem + env(safe-area-inset-bottom));
  /* Overlay system */
  --patient-overlay-backdrop: rgba(2, 8, 20, 0.78);
  --patient-overlay-surface: linear-gradient(160deg, rgba(13, 25, 46, 0.98), rgba(11, 20, 37, 0.96));
  --patient-overlay-surface-solid: #141f33;
  --patient-overlay-border: rgba(159, 178, 208, 0.18);
  --patient-overlay-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --patient-overlay-handle: rgba(148, 163, 184, 0.35);
  --patient-overlay-z-sheet: 11000;
  --patient-overlay-z-dialog: 12000;
  --patient-overlay-z-toast: 13000;
  /* Typography tokens (shared with Android pw_text_* dimens) */
  --font-sans: 'Inter', sans-serif;
  --font-size-hero: 1.625rem;
  --font-size-page-title: 1.35rem;
  --font-size-section: 1.125rem;
  --font-size-body: 0.875rem;
  --font-size-eyebrow: 0.72rem;
  --font-size-label: 0.6875rem;
  --font-weight-heading: 800;
  --font-weight-body: 400;
  --font-weight-label: 700;
}

html {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Patient Dashboard Background */
.patient-dashboard {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
  min-height: 100vh;
  overflow: visible !important;
}

.patient-dashboard button,
.patient-dashboard input,
.patient-dashboard textarea,
.patient-dashboard select {
  font-family: inherit;
}

/* Profile Header */
.patient-header {
  background-color: var(--patient-bg-primary);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sticky patient app headers (primary + back-button pages) */
.locked-header,
.patient-header-shell,
.patient-page-header-shell {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  background-color: var(--patient-bg-primary, #10172a);
}

/* Page header (back-button pages) - preserve original visual style but move to CSS so behavior is consistent */
.patient-page-header {
  background-color: var(--patient-bg-primary, #10172A);
  padding: 0.75rem 1rem;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1rem;
  width: 100%;
}

.patient-header .profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.patient-header .profile-img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6ef7 0%, #7c5cbf 100%);
  border: 2px solid rgba(96, 165, 250, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.patient-header .profile-text {
  min-width: 0;
  text-align: left;
}

.patient-header .profile-context {
  margin: 2px 0 0;
  color: #b8c7e0;
  font-size: 0.7rem;
  line-height: 1.3;
}

.patient-header .profile-name {
  font-weight: 700;
  color: var(--patient-text-primary);
  font-size: 1rem;
  margin: 0;
}

.patient-header .profile-subtitle {
  color: var(--patient-text-secondary);
  font-size: 0.75rem;
  margin: 0;
}

.patient-header .notification-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.patient-header .notification-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Content Cards */
.patient-card {
  background-color: var(--patient-bg-card);
  padding: 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  min-height: 100px;
}

.patient-card:hover {
  background-color: var(--patient-bg-card-hover);
}

.patient-card:active {
  transform: scale(0.98);
}

.patient-card .card-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--patient-text-primary);
}

.patient-card .card-content {
  flex: 1;
}

.patient-card .card-title {
  font-weight: 700;
  color: var(--patient-text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.patient-card .card-description {
  color: var(--patient-text-secondary);
  font-size: 0.75rem;
  margin: 0;
}

.patient-card .card-subtitle {
  color: var(--patient-accent-blue);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.patient-card .card-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.patient-card .card-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--patient-text-secondary);
  flex-shrink: 0;
}

/* Bottom Navigation */
.patient-bottom-nav {
  background-color: var(--patient-bg-card);
  border-top: 1px solid var(--patient-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.75rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.patient-bottom-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.patient-bottom-nav .nav-btn:active {
  transform: scale(0.95);
}

.patient-bottom-nav .nav-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.patient-bottom-nav .nav-label {
  display: block;
  font-size: 0.625rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.patient-bottom-nav .nav-btn {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  min-width: 3.4rem;
}

.patient-bottom-nav .nav-btn.active {
  background: rgba(37, 99, 235, 0.12);
}
.patient-bottom-nav .nav-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.patient-bottom-nav .nav-btn.active .nav-icon,
.patient-bottom-nav .nav-btn.active .nav-label {
  color: var(--patient-accent-blue);
  font-weight: 600;
}

.patient-bottom-nav .nav-btn:not(.active) .nav-icon,
.patient-bottom-nav .nav-btn:not(.active) .nav-label {
  color: var(--patient-text-secondary);
}

/* Main Content Area */
.patient-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  position: relative;
}

.patient-content .card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 0;
  margin-bottom: 0.1rem;
  /* Ensure scrolling works properly */
  -webkit-overflow-scrolling: touch;
}

/* Ensure last card sits right above navbar */
.patient-content .card-list .patient-card:last-child {
  margin-bottom: 0 !important;
}

/* Responsive Scaling for ALL phones */
@media (max-height: 850px) {
  .patient-content .card-list {
    gap: 0.5rem;
  }

  .patient-card {
    padding: 1.1rem !important;
  }
}

@media (max-height: 750px) {
  .patient-header {
    padding: 1rem 0.75rem;
  }

  .patient-content {
    padding: 0 0.5rem;
  }

  .patient-content .card-list {
    gap: 0.4rem;
  }

  .patient-card {
    padding: 0.9rem !important;
    min-height: auto !important;
  }

  .patient-card h3 {
    font-size: 18px !important;
  }
}

@media (max-height: 700px) {
  .patient-header {
    padding: 0.75rem 0.5rem;
  }

  .patient-header .profile-img {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .patient-content .card-list {
    gap: 0.35rem;
  }

  .patient-card {
    padding: 0.8rem !important;
  }

  .patient-card h3 {
    font-size: 16px !important;
  }

  .patient-card p {
    font-size: 12px !important;
  }
}

@media (max-height: 650px) {
  .patient-header {
    padding: 0.5rem 0.5rem;
  }

  .patient-content .card-list {
    gap: 0.3rem;
  }

  .patient-card {
    padding: 0.7rem !important;
  }

  .patient-card h3 {
    font-size: 15px !important;
  }

  .patient-card .card-icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (max-height: 600px) {
  .patient-header {
    padding: 0.4rem 0.5rem;
  }

  .patient-header .profile-img {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .patient-content .card-list {
    gap: 0.25rem;
  }

  .patient-card {
    padding: 0.6rem !important;
  }

  .patient-card h3 {
    font-size: 14px !important;
  }

  .patient-bottom-nav {
    padding: 0.5rem 0;
  }

  .patient-bottom-nav .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-height: 550px) {
  .patient-content .card-list {
    gap: 0.2rem;
  }

  .patient-card {
    padding: 0.5rem !important;
  }

  .patient-card h3 {
    font-size: 13px !important;
  }

  .patient-card p,
  .patient-card .card-description {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .patient-bottom-nav {
    padding: 0.4rem 0;
  }
}

/* Badge Colors */
.badge-red {
  background-color: var(--patient-accent-red);
}

.badge-blue {
  background-color: var(--patient-accent-blue);
}

.badge-green {
  background-color: var(--patient-accent-green);
}

/* Card Status Colors */
.card-status-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
  border-left: 3px solid var(--patient-accent-red);
}

.card-status-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-left: 3px solid var(--patient-accent-green);
}

.card-status-info {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
  border-left: 3px solid var(--patient-accent-blue);
}

.card-status-active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
  border-left: 3px solid #FBBF24;
}

/* Utility Classes */
html:not(.native-android-chrome) .patient-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Responsive inline element scaling */
@media (max-height: 750px) {
  .patient-card h3 {
    font-size: 18px !important;
  }

  .patient-card p {
    font-size: 12px !important;
  }

  .patient-card button {
    padding: 5px 14px !important;
    font-size: 12px !important;
  }

  .patient-card span[style*="font-size: 10px"] {
    font-size: 9px !important;
  }
}

@media (max-height: 700px) {
  .patient-card h3 {
    font-size: 16px !important;
  }

  .patient-card p {
    font-size: 11px !important;
  }

  .patient-card button {
    padding: 4px 12px !important;
    font-size: 11px !important;
  }

  .patient-card span[style*="font-size: 10px"] {
    font-size: 8px !important;
  }

  .patient-card .bi {
    font-size: 20px !important;
  }
}

@media (max-height: 650px) {
  .patient-card h3 {
    font-size: 15px !important;
  }

  .patient-card p {
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }

  .patient-card button {
    padding: 4px 12px !important;
    font-size: 10px !important;
  }

  .patient-card span[style*="font-size: 10px"] {
    font-size: 8px !important;
    padding: 3px 10px !important;
  }

  .patient-card .bi {
    font-size: 18px !important;
  }

  .patient-card div[style*="width: 48px"] {
    width: 40px !important;
    height: 40px !important;
  }

  .patient-card i[style*="font-size: 24px"] {
    font-size: 20px !important;
  }

  .patient-card div[style*="font-size: 16px"] {
    font-size: 14px !important;
  }
}

@media (max-height: 600px) {
  .patient-card h3 {
    font-size: 14px !important;
  }

  .patient-card p {
    font-size: 9px !important;
    margin-bottom: 6px !important;
  }

  .patient-card button {
    padding: 3px 10px !important;
    font-size: 9px !important;
  }

  .patient-card span[style*="font-size: 10px"] {
    font-size: 7px !important;
    padding: 2px 8px !important;
  }

  .patient-card .bi {
    font-size: 16px !important;
  }

  .patient-card div[style*="width: 48px"] {
    width: 36px !important;
    height: 36px !important;
  }

  .patient-card i[style*="font-size: 24px"] {
    font-size: 18px !important;
  }

  .patient-card div[style*="font-size: 16px"] {
    font-size: 13px !important;
  }

  .patient-card div[style*="font-size: 15px"] {
    font-size: 12px !important;
  }
}

@media (max-height: 568px) {
  .patient-card h3 {
    font-size: 13px !important;
  }

  .patient-card p {
    font-size: 8px !important;
    margin-bottom: 5px !important;
  }

  .patient-card button {
    padding: 2px 8px !important;
    font-size: 8px !important;
  }

  .patient-card span[style*="font-size: 10px"] {
    font-size: 7px !important;
    padding: 2px 6px !important;
  }

  .patient-card .bi {
    font-size: 14px !important;
  }

  .patient-card div[style*="width: 48px"] {
    width: 32px !important;
    height: 32px !important;
  }

  .patient-card i[style*="font-size: 24px"] {
    font-size: 16px !important;
  }

  .patient-card div[style*="font-size: 16px"] {
    font-size: 12px !important;
  }

  .patient-card div[style*="font-size: 15px"] {
    font-size: 11px !important;
  }

  .patient-card div[style*="font-size: 13px"] {
    font-size: 10px !important;
  }

  .patient-card div[style*="font-size: 12px"] {
    font-size: 9px !important;
  }
}

/* SVG Icons (Lucide replacements) */
.icon-bell {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-chevron-right {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-home,
.icon-calendar,
.icon-plane,
.icon-user,
.icon-file-text,
.icon-activity,
.icon-car,
.icon-clipboard {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}



/* Filter Buttons in Notification History */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  background-color: var(--patient-bg-card-hover);
  color: var(--patient-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.filter-btn.active {
  background-color: var(--patient-accent-blue);
  color: white;
}

/* Patient home dashboard */
.patient-home-page .patient-content .card-list.patient-home-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding-top: 0.75rem;
}

html:not(.native-android-chrome) .patient-home-page .patient-container {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.patient-home-page .patient-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.patient-home-page .patient-content .card-list {
  overflow: visible;
  flex: none;
}

.patient-home-page .patient-content .card-list.patient-home-list {
  padding-bottom: var(--patient-bottom-offset-lg);
}

.patient-home-page .patient-services-section {
  padding-top: 0.85rem;
  position: relative;
}

.patient-home-page .patient-services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  border-radius: 12px;
}

.patient-services-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  position: relative;
  z-index: 1;
}

.patient-services-heading i {
  color: #60a5fa;
  font-size: 1.1rem;
}

.patient-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.patient-home-card {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: auto;
  align-items: stretch;
}

.patient-home-card--visit {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.patient-home-card--visit.consent-needed {
  background: linear-gradient(145deg, rgba(76, 58, 6, 0.65) 0%, rgba(42, 31, 5, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.1);
}

.patient-home-card--travel {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.5) 0%, rgba(2, 44, 34, 0.95) 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.1);
}

.patient-home-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.patient-home-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.patient-home-card-icon--blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60a5fa;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.patient-home-card-icon--green {
  background: rgba(16, 185, 129, 0.2);
  /* border: 1px solid rgba(52, 211, 153, 0.35); */
  color: #34d399;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
}

.patient-home-card-main {
  flex: 1;
  min-width: 0;
}

.patient-home-card-label {
  display: block;
  color: #ffffff9e;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.patient-home-card-value {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.patient-home-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.patient-home-card-location i {
  color: #34d399;
  font-size: 0.85rem;
}

.patient-home-card-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
}

.patient-home-consent-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #fcd34d;
  font-weight: 600;
}

.patient-home-travel-stats {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  padding-top: 0.75rem;
}

.patient-home-travel-stats > div {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.patient-home-travel-divider {
  width: 1px;
  background: rgba(52, 211, 153, 0.25);
  margin: 0;
  align-self: stretch;
  border: 0;
}

.patient-home-stat-label {
  display: block;
  color: #9ca3af;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.patient-home-stat-value {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.patient-home-stat-value--green {
  color: #34d399;
}

/* Patient treatment journey home (index2) */
.patient-journey-page .patient-journey-list {
  gap: 1rem;
}

.patient-index-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* Hero banner */
.patient-index-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.patient-index-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.patient-index-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.88) 55%, rgba(30, 58, 138, 0.75) 100%);
}

.patient-index-hero__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.patient-index-hero__logo {
  width: auto;
  height: 28px;
  object-fit: contain;
  filter: brightness(1.1);
}

.patient-index-hero__eyebrow {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.patient-index-hero__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.patient-index-hero__subtitle {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1dae8;
  max-width: 28rem;
  font-weight: 600;
}

.patient-index-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

/* Quick actions */
.patient-index-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.patient-index-quick__item {
  text-decoration: none;
  border-radius: 14px;
  padding: 0.7rem 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.patient-index-quick__item:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(30, 58, 138, 0.25);
}

.patient-index-quick__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.patient-index-quick__icon--travel {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.patient-index-quick__icon--visit {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.patient-index-quick__icon--docs {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.patient-index-quick__icon--case {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.patient-index-quick__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e5e7eb;
  text-align: center;
}

/* Care pathway timeline */
.patient-index-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.patient-index-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.patient-index-timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9ca3af;
  background: rgba(55, 65, 81, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.25);
}

.patient-index-timeline__step.is-complete .patient-index-timeline__dot {
  color: #fff;
  background: #10b981;
  border-color: #34d399;
}

.patient-index-timeline__step.is-current .patient-index-timeline__dot {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #93c5fd;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.patient-index-timeline__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.25;
}

.patient-index-timeline__step.is-current .patient-index-timeline__label {
  color: #bfdbfe;
}

/* Feature image cards */
.patient-index-highlights__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.patient-index-feature {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 168px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.patient-index-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patient-index-feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.92) 100%);
}

.patient-index-feature__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1;
}

.patient-index-feature__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cde3fb;
}

.patient-index-feature__body strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.patient-index-feature__body span:last-child {
  font-size: 0.72rem;
  color: #c5d0e3;
  line-height: 1.35;
}

/* Next step card with thumbnail */
.patient-index-next-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(42, 31, 5, 0.5), rgba(15, 23, 42, 0.9));
}

.patient-index-next-card__thumb {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.patient-index-next-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.patient-index-next-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9fafb;
}

.patient-index-next-card__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d1d5db;
}

.patient-index-next-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.patient-index-next-card__actions .patient-journey-btn {
  padding: 0.55rem 0.5rem;
  font-size: 0.78rem;
}

/* Visual treatment case card */
.patient-journey-case-card--visual {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.patient-journey-case-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.patient-journey-case-card__content {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Trust strip */
.patient-index-trust__list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.5rem;
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.5);
}

.patient-index-trust__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
}

.patient-index-trust__list i {
  font-size: 1.25rem;
  color: #60a5fa;
}

@media (max-width: 380px) {
  .patient-index-highlights__grid {
    grid-template-columns: 1fr;
  }

  .patient-index-next-card {
    grid-template-columns: 1fr;
  }

  .patient-index-next-card__thumb {
    min-height: 100px;
  }

  .patient-index-timeline__label {
    font-size: 0.62rem;
  }
}

/* Patient dashboard — design tokens & layout (v2) */
.patient-home-page.patient-journey-page {
  background-color: #0b1220;
}

.patient-home-v2 {
  --dash-bg-page: #0b1220;
  --dash-bg-card: #141f33;
  --dash-border: rgba(100, 116, 139, 0.2);
  --dash-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  --dash-text-primary: #f8fafc;
  --dash-text-secondary: #94a3b8;
  --dash-text-muted: #64748b;
  --dash-accent-blue: #3b82f6;
  --dash-accent-blue-pressed: #2563eb;
  --dash-accent-green: #22c55e;
  --dash-accent-amber: #f59e0b;
  --dash-space-section: 24px;
  --dash-space-card: 16px;
  --dash-space-heading: 12px;
  --dash-space-text: 8px;
  --dash-space-control: 14px;
  --dash-radius-card: 18px;
  --dash-radius-btn: 12px;
  gap: var(--dash-space-section);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.patient-dash-section {
  margin: 0;
}

/* Header — outside cards */
.patient-home-greeting {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.patient-home-greeting--compact .patient-home-greeting__title {
  font-size: 1.35rem;
}

.patient-home-greeting__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patient-home-greeting__title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dash-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-home-greeting__pulse {
  font-size: 1.125rem;
  color: var(--dash-accent-blue);
  opacity: 0.9;
}

.patient-home-greeting__profile {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-secondary);
  font-size: 1.75rem;
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.patient-home-greeting__profile:hover,
.patient-home-greeting__profile:focus-visible {
  color: var(--dash-accent-blue);
  background: rgba(59, 130, 246, 0.1);
  outline: none;
}

.patient-home-greeting__profile:active {
  transform: scale(0.96);
}

.patient-home-greeting__status {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text-secondary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.patient-home-greeting__trip {
  color: var(--dash-text-secondary);
}

.patient-home-greeting__status-divider {
  color: var(--dash-text-muted);
}

.patient-home-greeting__status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dash-accent-green);
  font-weight: 600;
}

.patient-home-greeting__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  animation: patient-status-pulse 2s ease-in-out infinite;
}

@keyframes patient-status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.patient-home-greeting__status-active {
  color: var(--dash-accent-green);
  font-weight: 600;
}

.patient-home-greeting__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-accent-blue);
  text-decoration: none;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.patient-home-greeting__link:hover,
.patient-home-greeting__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Shared card */
.patient-dash-card {
  display: flex;
  flex-direction: column;
  gap: var(--dash-space-heading);
  padding: var(--dash-space-card);
  border-radius: var(--dash-radius-card);
  background: var(--dash-bg-card);
  border: 1px solid var(--dash-border);
  box-shadow:0 4px 20px 20px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

a.patient-dash-card:hover {
  border-color: rgba(100, 116, 139, 0.35);
  background: #172236;
}

a.patient-dash-card:active {
  transform: scale(0.992);
}

a.patient-dash-card:focus-visible {
  outline: 2px solid var(--dash-accent-blue);
  outline-offset: 2px;
}

[data-theme="dark"] .patient-dash-card__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}


[data-theme="light"] .patient-dash-card__label { 
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #647184;
}




.patient-dash-card__title {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dash-text-primary);
  letter-spacing: -0.01em;
}

/* Next step card — most prominent */
.patient-dash-card--next {
  gap: var(--dash-space-control);
}

.patient-dash-next__split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.patient-dash-next__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patient-dash-next__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.patient-dash-next__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dash-accent-amber);
  background: rgba(245, 158, 11, 0.12);
}

.patient-dash-next__icon--complete {
  color: var(--dash-accent-green);
  background: rgba(34, 197, 94, 0.12);
}

.patient-dash-next__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-dash-next__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Dark theme (default) — original dark-background asset only */
.patient-dash-next__thumb-img--dark {
  display: block;
}

.patient-dash-next__thumb-img--light {
  display: none;
}

.patient-dash-next__thumb--complete .patient-dash-next__thumb-img--dark {
  filter: drop-shadow(0 6px 14px rgba(34, 197, 94, 0.28));
}

html[data-theme="dark"] .patient-dash-next__thumb-img--dark {
  display: block;
}

html[data-theme="dark"] .patient-dash-next__thumb-img--light {
  display: none;
}

.patient-dash-next__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-dash-next__title {
  margin: 0;
  font-size: 1.0625rem;
  display: grid;
  font-weight: 600;
  color: var(--dash-text-primary);
  line-height: 1.3;
}

.patient-dash-next__counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f39c0b;
}

.patient-dash-next__required {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffffd0;
}

.patient-dash-next__meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-accent-amber);
  line-height: 1.3;
}

.patient-dash-next__meta--complete {
  color: var(--dash-accent-green);
}

.patient-dash-next__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--dash-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patient-dash-progress--anchored {
  margin-top: 4px;
}

.patient-dash-card--next .patient-dash-progress {
  height: 6px;
}

.patient-dash-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.9);
  overflow: hidden;
}

.patient-dash-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-accent-amber), #fbbf24);
  transition: width 0.3s ease;
}
/* 
.patient-dash-card--next-complete .patient-dash-progress__bar {
  background: linear-gradient(90deg, var(--dash-accent-green), #4ade80);
} */

/* Progress stepper card */
.patient-dash-stepper {
  position: relative;
  padding: 8px 0 4px;
}

.patient-dash-card--progress .patient-dash-stepper {
  padding-bottom: 8px;
}

.patient-dash-card--progress .patient-dash-stepper__current {
  border-top: none;
  padding-top: 0;
  margin-top: 8px;
}

.patient-dash-card--progress .patient-dash-stepper__current-value {
  font-size: 1.0625rem;
  font-weight: 700;
}

.patient-dash-progress__journey {
  display: flex;
  flex-direction: column;
  gap: var(--dash-space-heading);
  text-decoration: none;
  color: inherit;
}

.patient-dash-progress__journey:focus-visible {
  outline: 2px solid var(--dash-accent-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

.patient-dash-progress__request-link {
  gap: 8px;
  margin-top: 4px;
}

.patient-dash-stepper__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}

.patient-dash-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  position: relative;
}

.patient-dash-stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(71, 85, 105, 0.65);
  border-radius: 1px;
  z-index: 0;
  pointer-events: none;
}

.patient-dash-stepper__step.is-complete:not(:last-child)::after {
  background: #3eb7a2;
}

.patient-dash-stepper__dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dash-text-muted);
  background: #1e293b;
  border: 2px solid rgba(100, 116, 139, 0.35);
}

.patient-dash-stepper__step.is-complete .patient-dash-stepper__dot {
  color: #fff;
  background: #3eb7a2;
  border-color: #3eb7a2;
}

.patient-dash-stepper__step.is-current .patient-dash-stepper__dot {
  color: #fff;
  background: var(--dash-accent-blue);
  border-color: var(--dash-accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.patient-dash-stepper__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  line-height: 1.3;
  max-width: 100%;
  /* Keep step names on one line so long labels (e.g. Prepare & travel) do not
     drop a single word under the marker on narrow phone steppers. */
  white-space: nowrap;
  padding: 0 2px;
}

.patient-dash-stepper__step.is-current .patient-dash-stepper__label {
  font-weight: 700;
  color: var(--dash-text-primary);
}

.patient-dash-stepper__step.is-complete .patient-dash-stepper__label {
  font-weight: 600;
  color: #ffffffd5;
}

.patient-dash-stepper__current {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--dash-space-heading);
  padding-top: var(--dash-space-heading);
  border-top: 1px solid var(--dash-border);
}

.patient-dash-stepper__current-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.patient-dash-stepper__current-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text-primary);
}

/* Event card */
.patient-dash-event__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.patient-dash-event__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--dash-accent-blue);
  background: rgba(59, 130, 246, 0.12);
}

.patient-dash-event__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-dash-event__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patient-dash-event__meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--dash-text-secondary);
  line-height: 1.4;
}

.patient-dash-event__action {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-accent-blue);
  min-height: 44px;
  padding: 8px 0;
}

.patient-dash-event__action i {
  font-size: 0.75rem;
}

/* Upcoming section (appointments + travel) */
.patient-dash-card--upcoming {
  gap: 16px;
}

.patient-dash-upcoming__list {
  display: flex;
  flex-direction: column;
}

.patient-dash-upcoming__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  padding-bottom: 0;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.12s ease;
}

a.patient-dash-upcoming__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

a.patient-dash-upcoming__item:active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.992);
}

a.patient-dash-upcoming__item:focus-visible {
  outline: 2px solid var(--dash-accent-blue);
  outline-offset: 2px;
}

.patient-dash-upcoming__item--pending {
  padding: 15px 0;
}

.patient-dash-upcoming__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.patient-dash-upcoming__icon--appointment {
  color: var(--dash-accent-blue);
  background: rgba(59, 130, 246, 0.12);
}

.patient-dash-upcoming__icon--travel {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.patient-dash-upcoming__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-dash-upcoming__title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-dash-upcoming__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text-primary);
  line-height: 1.35;
}

.patient-dash-upcoming__status {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dash-text-secondary);
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.patient-dash-upcoming__meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--dash-text-secondary);
  line-height: 1.4;
  word-wrap: break-word;
}

.patient-dash-upcoming__countdown {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  line-height: 1.4;
}

.patient-dash-upcoming__action {
  display:flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-accent-blue);
  min-height: 44px;
  padding: 6px 0;
}

.patient-dash-upcoming__action i {
  font-size: 0.75rem;
}

.patient-dash-upcoming__divider {
  height: 1px;
  background: var(--dash-border);
  margin: 0;
}

.patient-dash-upcoming__schedule-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 0;
  padding-top: 4px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-accent-blue);
  text-decoration: none;
}

.patient-dash-upcoming__schedule-link:hover {
  color: #60a5fa;
}

.patient-dash-upcoming__schedule-link:active {
  opacity: 0.85;
}

.patient-dash-upcoming__schedule-link:focus-visible {
  outline: 2px solid var(--dash-accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.patient-dash-upcoming__schedule-link i {
  font-size: 0.75rem;
}

.patient-dash-upcoming__empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
}

.patient-dash-upcoming__empty-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text-primary);
}

.patient-dash-upcoming__empty-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dash-text-secondary);
  line-height: 1.45;
}

/* Unified itinerary timeline */
.patient-dash-card--timeline {
  gap: 12px;
}

.patient-dash-timeline {
  display: flex;
  flex-direction: column;
}

.patient-dash-timeline__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  position: relative;
  padding: 10px 0;
}

.patient-dash-timeline__item:first-child {
  padding-top: 4px;
}

.patient-dash-timeline__item:last-child {
  padding-bottom: 4px;
}

.patient-dash-timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: rgba(71, 85, 105, 0.55);
  border-radius: 1px;
}
 
.patient-dash-timeline__marker {
  position: relative;
  z-index: 1;
}

.patient-dash-timeline__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  background: #0f172a;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.patient-dash-timeline__icon--appointment {
  color: var(--dash-accent-blue);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.patient-dash-timeline__icon--travel {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.2);
}

.patient-dash-timeline__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

a.patient-dash-timeline__body {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.patient-dash-timeline__body:hover .patient-dash-timeline__link,
a.patient-dash-timeline__body:focus-visible .patient-dash-timeline__link {
  color: #93c5fd;
}


.patient-dash-timeline__item:first-child .patient-dash-timeline__body {
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0.04) 100%);
  padding: 12px 14px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.06), 0 6px 24px rgba(59, 130, 246, 0.14);
}

html[data-theme="dark"] .patient-dash-timeline__item:first-child .patient-dash-timeline__countdown {
  color: #99c6ff;
}


html[data-theme="light"] .patient-dash-timeline__item:first-child .patient-dash-timeline__countdown {
color: #5f6164;
font-weight: 600;
}

html[data-theme="light"] .patient-dash-timeline__item:first-child .patient-dash-timeline__when {
  color: #5f6164;
  font-weight: 600;
  }


html[data-theme="dark"] .patient-dash-timeline__item:first-child .patient-dash-timeline__when {
    color: #ffffff9e;
    font-weight: 600;
  }
  
.patient-dash-timeline__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.patient-dash-timeline__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text-primary);
  line-height: 1.35;
}

.patient-dash-timeline__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.patient-dash-timeline__when {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--dash-text-secondary);
  line-height: 1.4;
}

.patient-dash-timeline__when--muted {
  font-size: 0.75rem;
  color: var(--dash-text-muted);
}

.patient-dash-timeline__countdown {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  line-height: 1.4;
}

.patient-dash-timeline__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.patient-dash-timeline__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.patient-dash-timeline__link:hover,
.patient-dash-timeline__link:focus-visible {
  color: #93c5fd;
  outline: none;
}

.patient-dash-timeline__link i {
  font-size: 0.75rem;
}

.patient-dash-timeline__empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
}

.patient-dash-timeline__empty-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text-primary);
}

.patient-dash-timeline__empty-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dash-text-secondary);
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* Support card */
.patient-dash-card--support {
  gap: var(--dash-space-heading);
  background: transparent;
  border: none;
  box-shadow: none;
}

.patient-dash-card--support.patient-dash-home-appointment {
  background: var(--dash-bg-card);
  border: 1px solid var(--dash-border);
  box-shadow: 0 4px 20px 20px rgba(15, 23, 42, 0.06);
}

.patient-dash-support__title {
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text-primary);
}

.patient-dash-support__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--dash-text-secondary);
}

.patient-dash-support__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin-top: 4px;
}

.patient-dash-home-appointment__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-dash-home-appointment__head .patient-dash-support__title {
  flex: 1;
  min-width: 0;
}

.patient-dash-home-appointment__btn {
  gap: 8px;
}

.patient-dash-support__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-text-secondary);
  text-decoration: none;
  border-radius: var(--dash-radius-btn);
  transition: color 0.15s ease, background 0.15s ease;
  background: rgba(100, 116, 139, 0.28);
}

.patient-dash-support__link:hover,
.patient-dash-support__link:focus-visible {
  color: var(--dash-accent-blue);
  outline: none;
}

.patient-dash-support__link:active {
  opacity: 0.85;
}

/* Buttons */
.patient-dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--dash-radius-btn);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.patient-dash-next__split .patient-dash-btn {
  width: auto;
  min-width: 132px;
  max-width: 42%;
  padding: 10px 14px;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: normal;
}

a.patient-dash-btn--support,
span.patient-dash-btn--support {
  background: var(--dash-accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
}

a.patient-dash-btn--support:hover,
a.patient-dash-btn--support:focus-visible {
  background: var(--dash-accent-blue-pressed);
  outline: none;
}

a.patient-dash-btn--support:active,
span.patient-dash-btn--support:active {
  transform: scale(0.98);
  background: var(--dash-accent-blue-pressed);
}

span.patient-dash-btn--amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
  pointer-events: none;
}

a.patient-dash-btn--primary {
  background:#7c5ce6;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 230, 0.28);
}

a.patient-dash-btn--primary:hover,
a.patient-dash-btn--primary:focus-visible {
  background: var(--dash-accent-blue-pressed);
  outline: none;
}

a.patient-dash-btn--primary:active,
span.patient-dash-btn--primary:active {
  transform: scale(0.98);
  background: var(--dash-accent-blue-pressed);
}

span.patient-dash-btn--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
  pointer-events: none;
}

/* Phone widths (~390px): shrink labels so "Prepare & travel" fits one line */
@media (max-width: 430px) {
  .patient-dash-stepper__steps {
    gap: 2px;
  }

  .patient-dash-stepper__label {
    font-size: clamp(0.5rem, 2.2vw, 0.625rem);
    padding: 0;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 360px) {
  .patient-dash-stepper__dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .patient-dash-stepper__step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
  }

  .patient-dash-next__split {
    flex-direction: column;
    align-items: stretch;
  }

  .patient-dash-next__split .patient-dash-btn {
    width: 100%;
    max-width: none;
  }
}

/* Keep stacked layout on phones / iPad portrait */
.patient-home-page .patient-home-v2__main {
  display: flex;
  flex-direction: column;
  gap: inherit;
  min-width: 0;
}

.patient-home-page .patient-home-v2__aside {
  display: flex;
  flex-direction: column;
  gap: var(--dash-space-section);
  min-width: 0;
}

/* Aside support is unused; main-column Need help is shown (centered below grid on landscape) */
.patient-home-page .patient-home-v2__aside-support {
  display: none;
}

.patient-home-page .patient-home-v2__main-support {
  display: block;
}

/* iPad / tablet portrait — constrain Need help support card */
@media (min-width: 768px) and (orientation: portrait) {
  .patient-home-page .patient-home-v2__main-support .patient-dash-card--support,
  .patient-home-page .patient-dash-section > .patient-dash-card.patient-dash-card--support:not(.patient-dash-home-appointment) {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* iPad landscape / large tablets — two-column home dashboard */
@media (min-width: 1024px) and (orientation: landscape) {
  .patient-home-page .patient-content .card-list.patient-home-list.patient-home-v2.patient-home-v2--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
    grid-template-areas:
      "hero hero"
      "top aside"
      "bottom bottom";
    column-gap: 1.25rem;
    row-gap: 1rem;
    align-items: stretch;
  }

  .patient-home-page .patient-home-v2--split > .patient-index-hero {
    grid-area: hero;
    width: 100%;
    min-width: 0;
  }

  .patient-home-page .patient-home-v2--split > .patient-index-hero .patient-index-hero__content {
    width: 100%;
    max-width: none;
  }

  .patient-home-page .patient-home-v2--split > .patient-home-v2__main--top {
    grid-area: top;
  }

  .patient-home-page .patient-home-v2--split > .patient-home-v2__main--bottom {
    grid-area: bottom;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .patient-home-page .patient-home-v2--split > .patient-home-v2__aside {
    grid-area: aside;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  /* Keep Need help out of the two-column grid; center below on landscape */
  .patient-home-page .patient-home-v2--split .patient-home-v2__aside-support {
    display: none;
  }

  .patient-home-page .patient-home-v2--split .patient-home-v2__main-support {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-card--progress {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow: visible;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-progress__journey {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-card__title {
    letter-spacing: 0.08em;
    color: var(--dash-text-secondary);
  }

  /* Tall aside (short left column): grow the stepper and keep clear space between steps */
  .patient-home-page .patient-dash-section--progress .patient-dash-stepper {
    padding: 0.85rem 0 0.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__steps {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
    min-height: 18rem;
    grid-template-columns: none;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__step {
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    text-align: left;
    padding: 0.85rem 0;
    min-height: 3.25rem;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__step:first-child {
    padding-top: 0.35rem;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__step:last-child {
    padding-bottom: 0.35rem;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__step:not(:last-child)::after {
    top: calc(50% + 1.125rem);
    left: 1.0625rem;
    width: 2px;
    height: calc(100% - 2.25rem);
    border-radius: 1px;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__dot {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__label {
    font-size: 0.9375rem;
    font-weight: 600;
    max-width: none;
    padding: 0;
    line-height: 1.35;
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-stepper__current {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dash-border);
  }

  .patient-home-page .patient-dash-section--progress .patient-dash-progress__request-link {
    margin-top: 0.75rem;
    align-self: flex-start;
  }

  .patient-home-page .patient-index-hero {
    min-height: 240px;
  }

  .patient-home-page .patient-index-hero__content {
    padding: 1.35rem 1.35rem 1.4rem;
  }

  .patient-home-page .patient-index-hero__title {
    font-size: 2rem;
  }

  .patient-home-page .patient-index-hero__subtitle {
    max-width: 36rem;
  }
}

/* Legacy v2 aliases — journey hub etc. */
.patient-home-section-label {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.patient-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.patient-home-btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.patient-home-btn--secondary {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e5e7eb;
}

.patient-journey-hub {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.patient-journey-hub__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  min-height: 44px;
}

.patient-journey-hub__item:last-child {
  border-bottom: none;
}

.patient-journey-hub__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.patient-journey-hub__icon--travel {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.patient-journey-hub__icon--visit {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.patient-journey-hub__icon--case {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.patient-journey-hub__icon--history {
  background: rgba(148, 163, 184, 0.12);
  color: #9ca3af;
}

.patient-journey-hub__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.patient-journey-hub__copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-journey-hub__copy span {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patient-journey-hub__chevron {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.patient-journey-faq--page {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.patient-faq-page .patient-journey-faq--page .patient-journey-faq__title {
  margin-bottom: 0.15rem;
}

.patient-faq-page .patient-home-support {
  padding: 22px 16px 16px;
}

.patient-faq-page .patient-home-support__disclaimer {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.patient-faq-page .patient-home-support__message {
  margin: 16px 0 12px;
  color: #1e293b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.patient-faq-page .patient-home-support__message strong {
  font-weight: 600;
}

.patient-faq-page .patient-home-support__actions {
  margin: 0;
}

.patient-journey-greeting__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}

.patient-journey-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.patient-journey-focus__title,
.patient-journey-section__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
}

.patient-journey-focus,
.patient-journey-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.patient-journey-card {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.patient-journey-card--alert {
  background: linear-gradient(145deg, rgba(76, 58, 6, 0.55) 0%, rgba(42, 31, 5, 0.92) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.patient-journey-card--travel {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.5) 0%, rgba(2, 44, 34, 0.95) 100%);
  border-color: rgba(52, 211, 153, 0.35);
}

.patient-journey-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 1.25rem;
}

.patient-journey-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f9fafb;
}

.patient-journey-card__title--inline {
  flex: 1;
  min-width: 0;
}

.patient-journey-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1d5db;
}

.patient-journey-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.patient-journey-pill {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.patient-journey-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.patient-journey-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.8);
  overflow: hidden;
}

.patient-journey-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.patient-journey-travel {
  margin: 0;
  display: grid;
  gap: 0.15rem;
}

.patient-journey-travel dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.patient-journey-travel dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.patient-journey-location {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #d1fae5;
}

.patient-journey-location i {
  color: #34d399;
}

.patient-journey-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.patient-journey-btn--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.patient-journey-btn--secondary {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e5e7eb;
}

.patient-journey-btn--outline {
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

.patient-journey-btn--support {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
}

.patient-journey-case-card {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.patient-journey-case-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.patient-journey-case-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-journey-status {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.patient-journey-status--active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.patient-journey-case-card__flag {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fcd34d;
}

.patient-journey-case-card__progress {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.patient-journey-support {
  margin-top: 0.25rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.patient-journey-support__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-journey-support__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #9ca3af;
}

.patient-journey-faq {
  margin-top: 0.35rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.55);
}

.patient-journey-faq__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-journey-faq__title i {
  color: #60a5fa;
  font-size: 1.1rem;
}

.patient-journey-faq__intro {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #9ca3af;
}

.patient-journey-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.patient-journey-faq__item {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.55);
  overflow: hidden;
}

.patient-journey-faq__item[open] {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.2);
}

.patient-journey-faq__question {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  padding-right: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.4;
  position: relative;
}

.patient-journey-faq__question::-webkit-details-marker {
  display: none;
}

.patient-journey-faq__question::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #93c5fd;
  border-bottom: 2px solid #93c5fd;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.patient-journey-faq__item[open] .patient-journey-faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.patient-journey-faq__answer {
  margin: 0;
  padding: 0 0.85rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #c5d0e3;
}

.patient-service-card {
  border-radius: 14px;
  padding: 0.85rem;
  /* min-height: 118px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 2px solid rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.patient-service-card--esim {
  background: #1a2332;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 0.95rem 0.85rem 0.85rem;
  /* min-height: 124px; */
}

.patient-service-card--esim .patient-service-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.patient-service-card--esim .patient-service-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  line-height: 0;
}

.patient-service-card--esim .patient-service-card__icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.patient-service-card--esim .patient-service-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.patient-service-card--esim .patient-service-explore-btn {
  margin-top: auto;
  background: rgba(8, 12, 22, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #f1f5f9;
  padding: 0.38rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
}

.patient-service-card--nova {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(167, 139, 250, 0.45), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(59, 130, 246, 0.35), transparent 50%),
    linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #0f172a 100%);
  border-color: rgba(167, 139, 250, 0.25);
}

.patient-service-card-icon {
  font-size: 1.35rem;
  color: #93c5fd;
  margin-bottom: 0.35rem;
}

.patient-service-card--nova .patient-service-card-icon {
  color: #c4b5fd;
}

.patient-service-card-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.patient-service-explore-btn {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

/* Appointment detail page (matches appointments list + home visit cards) */
.appointment-detail-page .appointment-detail-content {
  padding: 0 1rem var(--patient-bottom-offset-md) 1rem;
  margin-top: 0.5rem;
  display: block;
  height: auto;
}

.appointment-detail-card {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
  margin-bottom: 1rem;
}

.appointment-detail-card-title {
  font-weight: 700;
  color: #E5E7EB;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.appointment-detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.appointment-detail-card-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.appointment-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8c9db5;
}

.appointment-detail-icon svg {
  width: 24px;
  height: 24px;
}

.appointment-detail-doctor-name {
  font-weight: 700;
  color: #E5E7EB;
  font-size: 15px;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-detail-doctor-dept {
  color: #9CA3AF;
  font-size: 11px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-detail-status-badge {
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.appointment-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appointment-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-detail-meta-row i {
  color: #9CA3AF;
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.appointment-detail-meta-row i.bi-geo-alt,
.appointment-detail-meta-row i.bi-camera-video {
  color: #60A5FA;
}

.appointment-detail-meta-row span {
  color: #E5E7EB;
  font-size: 13px;
}

.appointment-detail-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(55, 65, 81, 0.65);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.appointment-detail-chip i {
  color: #60A5FA;
  font-size: 16px;
  flex-shrink: 0;
}

.appointment-detail-chip span {
  color: #E5E7EB;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-detail-card--video {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.4) 0%, rgba(2, 44, 34, 0.7) 100%);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.appointment-detail-card--video .appointment-detail-card-title,
.appointment-detail-card--video p {
  color: #E5E7EB;
}

.appointment-detail-card--video .appointment-detail-subtitle {
  color: #9CA3AF;
  font-size: 12px;
  margin: 0;
  line-height: 1.2;
}

.appointment-detail-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.appointment-detail-video-btn span {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.appointment-detail-video-btn i {
  color: #34d399;
  font-size: 20px;
}

.appointment-detail-card--consent-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.appointment-detail-card--consent-success {
  border-color: rgba(16, 185, 129, 0.4);
}

.appointment-detail-consent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.appointment-detail-consent-title {
  font-weight: 700;
  color: #E5E7EB;
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-detail-consent-title i {
  font-size: 1.1rem;
}

.appointment-detail-consent-title i.bi-file-earmark-text {
  color: #FBBF24;
}

.appointment-detail-card--consent-success .appointment-detail-consent-title i.bi-file-earmark-text {
  color: #34D399;
}

.appointment-detail-info-box > i {
  color: #60A5FA;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.appointment-detail-consent-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.appointment-detail-consent-badge--warning {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.appointment-detail-consent-badge--success {
  color: #34D399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.appointment-detail-info-box {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 10px;
}

.appointment-detail-info-box p {
  flex: 1;
  color: #CBD5E1;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.appointment-detail-info-close {
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.appointment-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.appointment-detail-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.appointment-detail-btn-link--primary {
  background: #1E3A8A;
  color: #fff;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.appointment-detail-btn-link--success {
  background: #065F46;
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.appointment-detail-upload-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appointment-detail-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.appointment-detail-msg--success {
  margin-top: 8px;
  color: #34D399;
  font-size: 12px;
  font-weight: 600;
}

.appointment-detail-msg--error {
  margin-top: 8px;
  color: #FCA5A5;
  font-size: 12px;
  font-weight: 600;
}

.appointment-detail-location-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.06);
}

.appointment-detail-location-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #E5E7EB;
}

.appointment-detail-clinic-info {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.appointment-detail-clinic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60A5FA;
  font-size: 18px;
}

.appointment-detail-clinic-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #E5E7EB;
  line-height: 1.2;
}

.appointment-detail-clinic-info p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #aeb7c5;
}

.appointment-detail-map-preview {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.appointment-detail-location-actions {
  display: flex;
  gap: 10px;
}

.appointment-detail-location-actions--single .appointment-detail-action-primary {
  width: 100%;
}

.appointment-detail-action-primary,
.appointment-detail-action-secondary {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  touch-action: manipulation;
}

.appointment-detail-action-primary {
  background: #4d9cff;
  color: #fff;
}

.appointment-detail-action-secondary {
  background: #334155;
  color: #7db7ff;
}

.appointment-detail-page .consent-file-input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #E5E7EB;
  font-size: 12px;
}

.appointment-detail-page .consent-file-input::file-selector-button {
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: #1E3A8A;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 7px 10px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.appointment-detail-page .consent-file-input:hover::file-selector-button {
  background: #1D4ED8;
}

.appointment-detail-page .patient-bottom-nav {
  z-index: 2000 !important;
}

.appointment-detail-page #map,
.appointment-detail-page #map .leaflet-container,
.appointment-detail-page #map .leaflet-pane,
.appointment-detail-page #map .leaflet-top,
.appointment-detail-page #map .leaflet-bottom,
.appointment-detail-page #map .leaflet-control {
  z-index: 1 !important;
}

.appointment-detail-page .leaflet-routing-container {
  display: none !important;
}

@media (max-width: 480px) {
  .appointment-detail-page .appointment-detail-content {
    padding: 0 0.75rem var(--patient-bottom-offset-xl) 0.75rem;
  }

  .appointment-detail-page .appointment-detail-map-preview {
    height: 160px !important;
  }
}

/* Appointment request detail page */
.appointment-request-detail-page {
  --appt-req-bg: #0b1220;
  --appt-req-card: #121c2e;
  --appt-req-border: rgba(148, 163, 184, 0.14);
  --appt-req-text: #f8fafc;
  --appt-req-muted: #94a3b8;
  --appt-req-blue: #3b82f6;
  --appt-req-amber: #f59e0b;
  --appt-req-green: #22c55e;
  --appt-req-red: #ef4444;
}

.appointment-request-detail-page .appt-req-detail__content {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.appointment-request-detail-page .appt-req-summary {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--appt-req-card);
  border: 1px solid var(--appt-req-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.appointment-request-detail-page .appt-req-summary__head {
  margin-bottom: 14px;
}

.appointment-request-detail-page .appt-req-summary__identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.appointment-request-detail-page .appt-req-summary__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--appt-req-blue);
  background: rgba(59, 130, 246, 0.12);
}

.appointment-request-detail-page .appt-req-summary__identity-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appointment-request-detail-page .appt-req-summary__doctor {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--appt-req-text);
  word-wrap: break-word;
}

.appointment-request-detail-page .appt-req-status-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.appointment-request-detail-page .appt-req-status-badge--pending {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
}

.appointment-request-detail-page .appt-req-status-badge--confirmed {
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
}

.appointment-request-detail-page .appt-req-status-badge--cancelled {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

.appointment-request-detail-page .appt-req-summary__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appointment-request-detail-page .appt-req-summary__when {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--appt-req-text);
  line-height: 1.45;
}

.appointment-request-detail-page .appt-req-summary__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--appt-req-muted);
  line-height: 1.45;
}

.appointment-request-detail-page .appt-req-summary__location {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--appt-req-muted);
  line-height: 1.45;
}

.appointment-request-detail-page .appt-req-summary__location i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #60a5fa;
}

.appointment-request-detail-page .appt-req-status-section {
  padding: 16px 0 0;
  border-top: 1px solid var(--appt-req-border);
}

.appointment-request-detail-page .appt-req-status-section__title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--appt-req-text);
}

.appointment-request-detail-page .appt-req-status-section--pending .appt-req-status-section__title {
  color: #fbbf24;
}

.appointment-request-detail-page .appt-req-status-section--confirmed .appt-req-status-section__title {
  color: #4ade80;
}

.appointment-request-detail-page .appt-req-status-section--cancelled .appt-req-status-section__title {
  color: #f87171;
}

.appointment-request-detail-page .appt-req-status-section__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--appt-req-muted);
  line-height: 1.55;
}

.appointment-request-detail-page .appt-req-progress {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.appointment-request-detail-page .appt-req-progress__step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.appointment-request-detail-page .appt-req-progress__connector {
  flex: 0 0 18px;
  height: 2px;
  margin-top: 5px;
  background: rgba(148, 163, 184, 0.22);
}

.appointment-request-detail-page .appt-req-progress__connector.is-complete {
  background: rgba(34, 197, 94, 0.55);
}

.appointment-request-detail-page .appt-req-progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08);
}

.appointment-request-detail-page .appt-req-progress__step.is-complete .appt-req-progress__dot {
  background: var(--appt-req-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.appointment-request-detail-page .appt-req-progress__step.is-current .appt-req-progress__dot {
  background: var(--appt-req-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.appointment-request-detail-page .appt-req-status-section--confirmed .appt-req-progress__step.is-current .appt-req-progress__dot {
  background: var(--appt-req-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.appointment-request-detail-page .appt-req-progress__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--appt-req-muted);
  line-height: 1.3;
}

.appointment-request-detail-page .appt-req-progress__step.is-current .appt-req-progress__label,
.appointment-request-detail-page .appt-req-progress__step.is-complete .appt-req-progress__label {
  color: var(--appt-req-text);
}

.appointment-request-detail-page .appt-req-note {
  padding-top: 4px;
  border-top: 1px solid var(--appt-req-border);
}

.appointment-request-detail-page .appt-req-note__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--appt-req-muted);
}

.appointment-request-detail-page .appt-req-note__text {
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--appt-req-text);
  line-height: 1.55;
  word-wrap: break-word;
}

.appointment-request-detail-page .appt-req-reference {
  border-top: 1px solid var(--appt-req-border);
  padding-top: 4px;
}

.appointment-request-detail-page .appt-req-reference__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--appt-req-muted);
  user-select: none;
}

.appointment-request-detail-page .appt-req-reference__summary::-webkit-details-marker {
  display: none;
}

.appointment-request-detail-page .appt-req-reference[open] .appt-req-reference__chevron {
  transform: rotate(90deg);
}

.appointment-request-detail-page .appt-req-reference__chevron {
  font-size: 0.75rem;
  color: var(--appt-req-muted);
  transition: transform 0.15s ease;
}

.appointment-request-detail-page .appt-req-reference__body {
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointment-request-detail-page .appt-req-reference__code {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--appt-req-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #cbd5e1;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.appointment-request-detail-page .appt-req-reference__copy {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #6fa0d7;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.appointment-request-detail-page .appt-req-reference__copy:hover {
  background: rgba(59, 130, 246, 0.18);
}

.appointment-request-detail-page .appt-req-reference__copy:active {
  transform: scale(0.98);
}

.appointment-request-detail-page .appt-req-reference__copy:disabled {
  opacity: 0.6;
  cursor: wait;
}

.appointment-request-detail-page .appt-req-reference__toast {
  margin: 0;
  font-size: 0.8125rem;
  color: #86efac;
}

.appointment-request-detail-page .appt-req-detail__actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--patient-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.92) 24%, rgba(11, 18, 32, 0.98) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.appointment-request-detail-page .appt-req-detail__primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.appointment-request-detail-page .appt-req-detail__primary-btn:hover {
  filter: brightness(1.05);
}

.appointment-request-detail-page .appt-req-detail__primary-btn:active {
  transform: scale(0.99);
}

.appointment-request-detail-page .appt-req-detail__primary-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.appointment-request-detail-page .appt-req-detail__secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--appt-req-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.appointment-request-detail-page .appt-req-detail__secondary-btn:hover {
  color: #cbd5e1;
}

.appointment-request-detail-page .appt-req-detail__secondary-btn:active {
  opacity: 0.8;
}

@media (max-width: 380px) {
  .appointment-request-detail-page .appt-req-progress {
    padding: 12px 8px;
  }

  .appointment-request-detail-page .appt-req-progress__label {
    font-size: 0.625rem;
  }
}

/* Appointments page — tab switcher + list cards */
.patient-appointments-page .patient-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.patient-appointments-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.patient-appointments-tabs {
  display: flex;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 25;
  margin: 0 0 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.85);
  background: var(--patient-bg-primary, #10172A);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.patient-appointments-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 1rem;
}

.patient-appointments-tab {
  flex: 1;
  padding: 12px 10px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b7a90;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  margin-bottom: -1px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.patient-appointments-tab.is-active {
  color: #4d9cff;
  background: rgba(30, 58, 138, 0.45);
  border-bottom-color: #4d9cff;
}

.patient-appointments-panel {
  display: none;
}

.patient-appointments-panel.is-active {
  display: block;
}

.patient-appointments-panel[hidden] {
  display: none !important;
}

.patient-appointments-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #9CA3AF;
}

.patient-appointments-empty i {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.patient-appointments-empty p {
  margin: 0;
  font-size: 14px;
}

.patient-appointment-card {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%);
  margin-bottom: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

.patient-appointment-card--past {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.55) 100%);
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.04);
  opacity: 0.97;
}

.patient-appointment-card__body {
  flex: 1;
  min-width: 0;
}

.patient-appointment-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.patient-appointment-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8c9db5;
}

.patient-appointment-card--past .patient-appointment-card__icon {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.patient-appointment-card__doctor {
  font-weight: 700;
  color: #E5E7EB;
  font-size: 15px;
  margin: 0 0 2px 0;
}

.patient-appointment-card__dept {
  color: #9CA3AF;
  font-size: 11px;
  margin: 0;
}

.patient-appointment-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patient-appointment-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-appointment-card__meta-row i {
  color: #9CA3AF;
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.patient-appointment-card__meta-row i.bi-geo-alt,
.patient-appointment-card__meta-row i.bi-camera-video,
.patient-appointment-card__meta-row i.bi-telephone {
  color: #60A5FA;
}

.patient-appointment-card__meta-row span {
  color: #E5E7EB;
  font-size: 13px;
}

.patient-appointment-card__status {
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Patient appointments list — larger type for readability */
.patient-appointments-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-appointments-page .profile-name {
  font-size: 1.2rem;
}

.patient-appointments-page .profile-subtitle {
  font-size: 0.95rem;
  color: #d1dae8;
}

.patient-appointments-overview {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem 1rem;
}

.patient-appointments-stat-card {
  flex: 1;
  padding: 1rem 0.95rem;
  border-radius: 12px;
  min-height: 5.25rem;
}

.patient-appointments-stat-card--next {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.patient-appointments-stat-card--total {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.4) 0%, rgba(2, 44, 34, 0.7) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.patient-appointments-stat-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c5d0e3;
}

.patient-appointments-stat-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f3f4f6;
  line-height: 1.3;
}

.patient-appointments-stat-value--count {
  font-size: 1.65rem;
}

.patient-appointments-content {

  margin-top: 0.35rem;
}

.patient-appointments-page .patient-appointments-tab {
  font-size: 0.9375rem;
  padding: 14px 10px;
  min-height: 2.75rem;
  color: #c5d0e3;
}

.patient-appointments-page .patient-appointments-tab.is-active {
  color: #7db7ff;
}

.patient-appointments-page .patient-appointment-card {
  padding: 1.1rem 1.2rem;
  min-height: 4.5rem;
}

.patient-appointments-page .patient-appointment-card__icon {
  width: 48px;
  height: 48px;
}

.patient-appointments-page .patient-appointment-card__icon svg {
  width: 26px;
  height: 26px;
}

.patient-appointments-page .patient-appointment-card__doctor {
  font-size: 1.125rem;
  color: #f3f4f6;
}

.patient-appointments-page .patient-appointment-card__dept {
  font-size: 0.875rem;
  color: #c5d0e3;
}

.patient-appointments-page .patient-appointment-card__meta-row span {
  font-size: 0.9375rem;
  color: #e5e7eb;
}

.patient-appointments-page .patient-appointment-card__meta-row i {
  font-size: 1rem;
  width: 18px;
}

.patient-appointments-page .patient-appointment-card__status {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

.patient-appointments-page .patient-appointments-empty {
  color: #c5d0e3;
}

.patient-appointments-page .patient-appointments-empty i {
  font-size: 2.75rem;
}

.patient-appointments-page .patient-appointments-empty p {
  font-size: 1rem;
  color: #d1dae8;
}

.patient-appointments-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.patient-appointments-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

/* Appointment detail — larger type for readability */
.appointment-detail-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.appointment-detail-page .patient-page-header h1 {
  font-size: 1.35rem !important;
  line-height: 1.3;
}

.appointment-detail-page .patient-page-header p {
  font-size: 0.95rem !important;
  color: #d1dae8 !important;
}

.appointment-detail-page .appointment-detail-content {
  padding: 0.5rem 1.1rem var(--patient-bottom-offset-2xl) 1.1rem;
}

.appointment-detail-page .appointment-detail-card {
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
}

.appointment-detail-page .appointment-detail-card-title {
  font-size: 1rem;
  color: #f3f4f6;
  margin-bottom: 0.65rem;
}

.appointment-detail-page .appointment-detail-icon {
  width: 48px;
  height: 48px;
}

.appointment-detail-page .appointment-detail-icon svg {
  width: 26px;
  height: 26px;
}

.appointment-detail-page .appointment-detail-doctor-name {
  font-size: 1.125rem;
  color: #f3f4f6;
}

.appointment-detail-page .appointment-detail-doctor-dept {
  font-size: 0.875rem;
  color: #c5d0e3;
}

.appointment-detail-page .appointment-detail-status-badge {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

.appointment-detail-page .appointment-detail-meta-row span {
  font-size: 0.9375rem;
  color: #e5e7eb;
}

.appointment-detail-page .appointment-detail-meta-row i {
  font-size: 1rem;
  width: 18px;
}

.appointment-detail-page .appointment-detail-chip span {
  font-size: 0.9375rem;
}

.appointment-detail-page .appointment-detail-card--video .appointment-detail-subtitle {
  font-size: 0.9rem;
  color: #c5d0e3;
}

.appointment-detail-page .appointment-detail-video-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.appointment-detail-page .appointment-detail-video-head i {
  color: #34d399;
  font-size: 1.35rem;
}

.appointment-detail-page .appointment-detail-video-btn {
  padding: 16px;
  min-height: 3rem;
}

.appointment-detail-page .appointment-detail-video-btn span {
  font-size: 1.0625rem;
}

.appointment-detail-page .appointment-detail-consent-title {
  font-size: 1rem;
  color: #f3f4f6;
}

.appointment-detail-page .appointment-detail-consent-badge {
  font-size: 0.8125rem;
  padding: 5px 12px;
}

.appointment-detail-page .appointment-detail-info-box p {
  font-size: 0.9375rem;
  color: #d1dae8;
}

.appointment-detail-page .appointment-detail-btn-link {
  font-size: 0.9375rem;
  padding: 10px 14px;
  min-height: 2.75rem;
}

.appointment-detail-page .appointment-detail-upload-btn {
  font-size: 1rem;
  padding: 12px 14px;
  min-height: 2.75rem;
}

.appointment-detail-page .appointment-detail-msg--success,
.appointment-detail-page .appointment-detail-msg--error {
  font-size: 0.9375rem;
}

.appointment-detail-page .appointment-detail-location-title {
  font-size: 1rem;
}

.appointment-detail-page .appointment-detail-clinic-info h4 {
  font-size: 1.0625rem;
  color: #f3f4f6;
}

.appointment-detail-page .appointment-detail-clinic-info p {
  font-size: 0.9375rem;
  color: #d1dae8;
}

.appointment-detail-page .appointment-detail-clinic-icon {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.appointment-detail-page .appointment-detail-action-primary,
.appointment-detail-page .appointment-detail-action-secondary {
  font-size: 0.9375rem;
  padding: 14px;
  min-height: 3rem;
}

.appointment-detail-page .consent-file-input {
  font-size: 0.9375rem;
  padding: 10px;
}

.appointment-detail-page .consent-file-input::file-selector-button {
  font-size: 0.875rem;
  padding: 8px 12px;
}

.appointment-detail-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.appointment-detail-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

@media (max-width: 480px) {
  .appointment-detail-page .appointment-detail-content {
    padding: 0.5rem 0.85rem var(--patient-bottom-offset-2xl) 0.85rem;
  }
}

/* Treatment detail page — larger type for readability */
.patient-treatment-detail-page {
  --td-surface-page: var(--patient-bg-primary, #10172a);
  --td-surface-card: #1a2332;
  --td-surface-row: #222d3f;
  --td-surface-hover: #2a3548;
  --td-divider: rgba(255, 255, 255, 0.06);
  --td-text-primary: #f1f5f9;
  --td-text-secondary: #94a3b8;
  --td-text-muted: #64748b;
  --td-accent: #7c3aed;
  --td-accent-soft: rgba(124, 58, 237, 0.18);
  --td-success: #34d399;
  --td-danger: #f87171;
  --td-radius-card: 16px;
  --td-radius-row: 12px;
  --td-space-1: 8px;
  --td-space-2: 16px;
  --td-space-3: 24px;
  --td-space-4: 32px;
  --td-gradient-alert: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --td-gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --td-section-label: #60a5fa;
  --td-doctor-bg: rgba(59, 130, 246, 0.14);
  --td-doctor-label: #93c5fd;
  --td-doctor-value: #dbeafe;
  --td-priority-bg: rgba(124, 58, 237, 0.14);
  --td-priority-label: #c4b5fd;
  --td-priority-value: #ede9fe;
  --td-flight-dep-bg: rgba(8, 145, 178, 0.14);
  --td-flight-dep-accent: #22d3ee;
  --td-flight-dep-text: #cffafe;
  --td-flight-ret-bg: rgba(124, 58, 237, 0.14);
  --td-flight-ret-accent: #a78bfa;
  --td-flight-ret-text: #ede9fe;
  --td-badge-success-bg: rgba(16, 185, 129, 0.16);
  --td-badge-success-text: #34d399;
  --td-badge-missing-bg: rgba(239, 68, 68, 0.16);
  --td-badge-missing-text: #f87171;
  --td-row-missing-bg: rgba(239, 68, 68, 0.1);
  --td-badge-hospital-pending-bg: rgba(148, 163, 184, 0.18);
  --td-badge-hospital-pending-text: #94a3b8;
  --td-row-hospital-pending-bg: rgba(148, 163, 184, 0.08);
  --td-icon-wrap-hospital-pending-bg: rgba(148, 163, 184, 0.14);
  --td-icon-wrap-bg: rgba(124, 58, 237, 0.16);
  --td-icon-wrap-missing-bg: rgba(239, 68, 68, 0.16);
  --td-progress-track: rgba(124, 58, 237, 0.18);
  --td-progress-fill: #7c3aed;
  --td-shadow-card: none;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-treatment-detail-page .patient-page-header h1 {
  font-size: 1.35rem !important;
  line-height: 1.3;
}

.patient-treatment-detail-page .patient-page-header p {
  font-size: 0.95rem !important;
  color: #d1dae8 !important;
}

.patient-treatment-detail-content {
  padding: 0.85rem 1.1rem var(--patient-bottom-offset-2xl);
  overflow-y: auto;
  background: var(--td-surface-page);
}

.patient-treatment-detail-page .patient-treatment-stats-strip {
  margin-top: 0.35rem;
}

.patient-treatment-detail-page .patient-treatment-attention {
  margin-bottom: var(--td-space-4);
}

.patient-treatment-detail-page .patient-treatment-slider-section {
  margin-top: 0;
  margin-bottom: var(--td-space-4);
}

.patient-treatment-activity-section {
  margin-top: var(--td-space-2);
}

/* Treatment detail — overview stats strip */
.patient-treatment-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--td-surface-card);
  border: none;
  border-radius: var(--td-radius-card);
  padding: var(--td-space-2);
  gap: var(--td-space-1);
  margin-bottom: var(--td-space-4);
}

.patient-treatment-stats-strip > div {
  text-align: center;
  min-width: 0;
}

.patient-treatment-stats-strip strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--td-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.patient-treatment-stats-strip span {
  display: block;
  margin-top: var(--td-space-1);
  font-size: 0.75rem;
  color: var(--td-text-secondary);
  line-height: 1.3;
}

@media (max-width: 360px) {
  .patient-treatment-stats-strip {
    padding: 12px 8px;
    gap: 6px;
  }

  .patient-treatment-stats-strip strong {
    font-size: 1.25rem;
  }

  .patient-treatment-stats-strip span {
    font-size: 0.75rem;
  }
}

/* Needs attention */
.patient-treatment-attention {
  background: var(--td-gradient-alert);
  border: none;
  border-radius: var(--td-radius-card);
  padding: var(--td-space-2);
  box-shadow: var(--td-shadow-card);
}

.patient-treatment-attention-head {
  display: flex;
  align-items: flex-start;
  gap: var(--td-space-1);
  margin-bottom: 6px;
}

.patient-treatment-attention-head i {
  color: #fff;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.patient-treatment-attention-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.35;
}

.patient-treatment-attention-lead {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.45;
}

.patient-treatment-attention-sub {
  margin: 0 0 var(--td-space-2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

/* Shared buttons */
.patient-treatment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--td-space-1);
  padding: 0.75rem 1rem;
  min-height: 3rem;
  border-radius: var(--td-radius-row);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.patient-treatment-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.patient-treatment-btn--primary {
  width: 100%;
  background: var(--td-accent);
  border-color: var(--td-accent);
  color: #fff;
}

.patient-treatment-btn--primary:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

.patient-treatment-btn--attention {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  color: #fff;
}

.patient-treatment-btn--attention:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.patient-treatment-btn--secondary {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.patient-treatment-btn--secondary:hover {
  background: rgba(31, 41, 55, 0.85);
  border-color: #6b7280;
  color: #fff;
}

.patient-treatment-attention .patient-treatment-btn--primary,
.patient-treatment-attention .patient-treatment-btn--secondary,
.patient-treatment-attention .patient-treatment-btn--attention {
  width: 100%;
}

@keyframes treatment-missing-doc-highlight {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px transparent;
  }

  50% {
    box-shadow: inset 0 0 0 2px var(--td-danger, #f36b72);
  }
}

.patient-treatment-missing-docs-cta {
  position: fixed;
  left: 20%;
  right: 20%;
  bottom: calc(var(--patient-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 3rem);
  z-index: 99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--td-radius-row, 12px);
  border: 1px solid #e86570;
  background: #e86570;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
  pointer-events: auto;
}

.patient-treatment-missing-docs-cta[hidden] {
  display: none !important;
}

.patient-treatment-missing-docs-cta:hover {
  background: #f0757f;
  border-color: #f0757f;
}

.patient-treatment-missing-docs-cta:active {
  transform: scale(0.98);
}

.patient-treatment-missing-docs-cta:focus-visible {
  outline: 2px solid #8b6cf0;
  outline-offset: 2px;
}

.patient-treatment-missing-docs-cta__down {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.92;
}

html.native-android-chrome .patient-treatment-missing-docs-cta {
  bottom: calc(var(--native-chrome-bottom, 0px) + 12px);
  z-index: 120;
}

.patient-treatment-slide-doc-row.is-missing.is-scroll-highlight {
  animation: treatment-missing-doc-highlight 1s ease-in-out 3;
  background: var(--td-row-missing-bg, rgba(243, 107, 114, 0.14));
  border-color: var(--td-danger, #f36b72);
}

/* Treatment detail — case slider */
.patient-treatment-slider-section {
  /* background: linear-gradient(135deg, rgba(30, 58, 138, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%); */
  border-radius: 14px;
  /* padding: 16px 14px; */
}

.patient-treatment-slider-head {
  margin-bottom: var(--td-space-2);
}

.patient-treatment-slider-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--td-text-primary);
  line-height: 1.3;
}

.patient-treatment-slider-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--td-accent-soft);
  color: var(--td-accent);
  flex-shrink: 0;
}

.patient-treatment-slider-title-icon i,
.patient-treatment-slider-title-icon svg {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  line-height: 1;
  stroke: currentColor;
}

.patient-treatment-slider-title-icon svg {
  display: block;
}

.patient-treatment-slider-viewer {
  display: grid;
  gap: var(--td-space-2);
}

.patient-treatment-cases-list {
  display: flex;
  flex-direction: column;
  gap: var(--td-space-2);
}

.patient-treatment-case--primary {
  margin-bottom: 0;
}

.patient-treatment-slide-card--nested {
  border-radius: 0;
}

.patient-treatment-slide-card--nested .patient-treatment-slide-card-inner {
  border-radius: 0 0 var(--td-radius-card) var(--td-radius-card);
  box-shadow: none;
}

.patient-treatment-case-accordion {
  background: var(--td-surface-card);
  border-radius: var(--td-radius-card);
  overflow: hidden;
  box-shadow: var(--td-shadow-card);
}

.patient-treatment-case-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 14px var(--td-space-2);
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.patient-treatment-case-accordion-collapsed {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.patient-treatment-case-accordion:not(.is-open) .patient-treatment-case-accordion-hero {
  display: none;
}

.patient-treatment-case-accordion-hero {
  flex: 1;
  min-width: 0;
  padding: var(--td-space-2) 0 var(--td-space-2) var(--td-space-2);
  background: transparent;
}

.patient-treatment-case-accordion.is-open .patient-treatment-case-accordion-trigger {
  align-items: flex-start;
  gap: 8px;
  min-height: auto;
  padding: 0;
  background: var(--td-gradient-hero);
  border-radius: var(--td-radius-card) var(--td-radius-card) 0 0;
}

.patient-treatment-case-accordion.is-open .patient-treatment-case-accordion-collapsed {
  display: none;
}

.patient-treatment-case-accordion.is-open .patient-treatment-case-accordion-hero {
  display: flex;
  border-radius: var(--td-radius-card) var(--td-radius-card) 0 0;
}

.patient-treatment-case-accordion:not(.is-open) .patient-treatment-case-accordion-trigger {
  background: transparent;
}

.patient-treatment-slide-notes {
  padding: 0 var(--td-space-2) 12px;
  background: var(--td-gradient-hero);
}

.patient-treatment-case-accordion-trigger:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
}

.patient-treatment-case-accordion-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.patient-treatment-case-accordion-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--td-text-primary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.patient-treatment-case-accordion-date {
  font-size: 0.8125rem;
  color: var(--td-text-muted);
  line-height: 1.4;
  white-space: nowrap;
}

.patient-treatment-case-accordion-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--td-text-muted);
  transition: transform 0.2s ease, color 0.16s ease;
}

.patient-treatment-case-accordion.is-open .patient-treatment-case-accordion-chevron {
  margin: 0 var(--td-space-2) 0 0;
  align-self: center;
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 0.78);
}

.patient-treatment-case-accordion-panel[hidden] {
  display: none;
}

.patient-treatment-case-accordion.is-open {
  border-radius: var(--td-radius-card);
  overflow: hidden;
}

.patient-treatment-slide-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.patient-treatment-slide-card-inner {
  background: var(--td-surface-card);
  border-radius: var(--td-radius-card);
  overflow: hidden;
  box-shadow: var(--td-shadow-card);
}

.patient-treatment-slide-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--td-space-2);
  padding: var(--td-space-2) var(--td-space-2) 18px;
  background: var(--td-gradient-hero);
}

.patient-treatment-slide-hero-text {
  min-width: 0;
  flex: 1;
}

.patient-treatment-slide-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.patient-treatment-slide-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
}

.patient-treatment-slide-hero-icon i,
.patient-treatment-slide-hero-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  font-size: 1.125rem;
  stroke: currentColor;
}

.patient-treatment-slide-hero-icon svg {
  display: block;
}

.patient-treatment-slide-body {
  padding: var(--td-space-2);
}

.patient-treatment-slide-info-col {
  min-width: 0;
}

/* iPad landscape / large tablets — treatment info left, documents right */
@media (min-width: 1024px) and (orientation: landscape) {
  .patient-treatment-detail-page .patient-treatment-detail-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .patient-treatment-detail-page .patient-treatment-slide-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: var(--td-space-3);
    row-gap: var(--td-space-3);
    align-items: start;
  }

  .patient-treatment-detail-page .patient-treatment-slide-info-col {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .patient-treatment-detail-page .patient-treatment-slide-info-col .patient-treatment-slide-travel-section {
    margin-bottom: 0;
  }

  .patient-treatment-detail-page .patient-treatment-slide-block--documents {
    min-width: 0;
    margin-bottom: 0;
  }
}

.patient-treatment-slide-header {
  margin-bottom: var(--td-space-3);
}

.patient-treatment-slide-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-treatment-slide-status {
  margin: 0;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-treatment-slide-note {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.patient-treatment-slide-progress {
  margin-bottom: 14px;
}

.patient-treatment-slide-progress--documents {
  margin-top: 0;
  margin-bottom: var(--td-space-2);
}

.patient-treatment-slide-progress-label {
  margin: 0 0 var(--td-space-1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--td-text-secondary);
  line-height: 1.45;
}

.patient-treatment-slide-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--td-progress-track);
  overflow: hidden;
}

.patient-treatment-slide-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--td-progress-fill);
  transition: width 0.25s ease;
}

.patient-treatment-slide-block {
  margin-bottom: var(--td-space-3);
}

.patient-treatment-slide-block-label {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--td-text-primary);
  line-height: 1.35;
}

.patient-treatment-slide-docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--td-space-2);
  margin-bottom: var(--td-space-2);
}

.patient-treatment-slide-case-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--td-accent-soft);
  color: var(--td-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.patient-treatment-slide-block-value {
  margin: 0;
  font-size: 1rem;
  color: #f3f4f6;
  line-height: 1.5;
  word-break: break-word;
}

.patient-treatment-slide-block-value--muted {
  color: #c5d0e3;
}

.patient-treatment-slide-block--route {
  margin-bottom: 0;
}

.patient-treatment-slide-block--documents {
  margin-bottom: 0;
}

.patient-treatment-slide-meta-section,
.patient-treatment-slide-travel-section {
  padding: 0;
  margin-bottom: var(--td-space-3);
}

.patient-treatment-slide-meta-heading,
.patient-treatment-slide-travel-heading {
  margin: 0 0 var(--td-space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4aefa;
  line-height: 1.35;
}


html[data-theme="light"] .patient-treatment-slide-meta-heading,
html[data-theme="light"] .patient-treatment-slide-travel-heading {
  color: #703deb;
}

html[data-theme="dark"] .patient-treatment-slide-meta-heading,
html[data-theme="dark"] .patient-treatment-slide-travel-heading {
  color: #c4aefa;

}



.patient-treatment-slide-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--td-space-2);
}

.patient-treatment-slide-meta-item {
  min-width: 0;
  padding: var(--td-space-2);
  border-radius: var(--td-radius-row);
}

.patient-treatment-slide-meta-item--doctor {
  background: var(--td-doctor-bg);
}

.patient-treatment-slide-meta-item--priority {
  background: var(--td-priority-bg);
}

.patient-treatment-slide-meta-item--doctor .patient-treatment-slide-meta-label {
  color: var(--td-doctor-label);
}

.patient-treatment-slide-meta-item--doctor .patient-treatment-slide-meta-value {
  color: var(--td-doctor-value);
}

.patient-treatment-slide-meta-item--priority .patient-treatment-slide-meta-label {
  color: var(--td-priority-label);
}

.patient-treatment-slide-meta-item--priority .patient-treatment-slide-meta-value {
  color: var(--td-priority-value);
}

.patient-treatment-slide-meta-label,
.patient-treatment-slide-travel-leg-title {
  margin: 0 0 var(--td-space-1);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--td-text-secondary);
  line-height: 1.4;
}

.patient-treatment-slide-meta-value,
.patient-treatment-slide-travel-leg-datetime {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--td-text-primary);
  line-height: 1.45;
  word-break: break-word;
}

.patient-treatment-slide-travel-leg-location,
.patient-treatment-slide-travel-leg-route {
  margin: var(--td-space-1) 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.patient-treatment-slide-travel-leg-location {
  color: var(--td-text-secondary);
}

.patient-treatment-slide-travel-leg-route {
  color: var(--td-text-primary);
  font-weight: 600;
}

.patient-treatment-slide-travel-summary {
  margin: var(--td-space-2) 0 0;
  font-size: 0.8125rem;
  color: var(--td-text-muted);
  line-height: 1.45;
}

.patient-treatment-slide-travel-journey {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.patient-treatment-slide-travel-leg {
  min-width: 0;
  padding: var(--td-space-2);
  border-radius: var(--td-radius-row);
}

.patient-treatment-slide-travel-leg--departure {
  background: var(--td-flight-dep-bg);
  border: 1px solid #0893b25e;
}

.patient-treatment-slide-travel-leg--return {
  background: var(--td-flight-ret-bg);
  border: 1px solid #7c3aed5e;
}

.patient-treatment-slide-travel-leg-head {
  display: flex;
  align-items: center;
  gap: var(--td-space-1);
  margin-bottom: var(--td-space-1);
}

.patient-treatment-slide-travel-leg-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-icon {
  background: rgba(34, 211, 238, 0.18);
  color: var(--td-flight-dep-accent);
}

.patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-icon {
  background: rgba(167, 139, 250, 0.18);
  color: var(--td-flight-ret-accent);
}

.patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-title {
  color: #41e6fa;
}

.patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-title {
  color: #c4aefa;
}

.patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-datetime {
  color: var(--td-flight-dep-text);
}

.patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-datetime {
  color: var(--td-flight-ret-text);
}

.patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-route {
  color: var(--td-flight-dep-accent);
}

.patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-route {
  color: var(--td-flight-ret-accent);
}

.patient-treatment-slide-travel-leg-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.patient-treatment-slide-travel-leg-route {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: var(--td-space-1) 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.patient-treatment-slide-travel-leg-route .bi {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.875rem;
}

.patient-treatment-slide-travel-connector {
  display: flex;
  align-items: center;
  gap: var(--td-space-1);
  padding: 10px 0;
}

.patient-treatment-slide-travel-connector-line {
  flex: 1;
  height: 1px;
  background: var(--td-divider);
}

.patient-treatment-slide-travel-connector-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--td-accent-soft);
  color: var(--td-accent);
  flex-shrink: 0;
}

.patient-treatment-slide-travel-connector-icon .bi {
  font-size: 0.875rem;
  line-height: 1;
}

.patient-treatment-slide-travel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--td-space-1);
  align-items: start;
}

.patient-treatment-slide-travel-col--end {
  text-align: left;
}

.patient-treatment-slide-travel-arrow {
  align-self: center;
  padding-top: 18px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--td-accent);
  line-height: 1;
}

.patient-treatment-slide-section-accordion + .patient-treatment-slide-divider,
.patient-treatment-slide-divider + .patient-treatment-slide-section-accordion {
  margin-top: 0;
}

.patient-treatment-slide-section-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.patient-treatment-slide-section-trigger:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

.patient-treatment-slide-section-trigger-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.patient-treatment-slide-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.35;
}

.patient-treatment-slide-section-summary {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.4;
  word-break: break-word;
}

.patient-treatment-slide-section-chevron {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.16s ease;
}

.patient-treatment-slide-section-accordion.is-open .patient-treatment-slide-section-chevron {
  transform: rotate(90deg);
  color: var(--td-text-secondary);
}

.patient-treatment-slide-section-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease;
}

.patient-treatment-slide-section-panel[hidden] {
  display: block;
}

.patient-treatment-slide-details {
  margin: 0;
  padding: 0 0 4px;
}

.patient-treatment-slide-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}

.patient-treatment-slide-detail-row + .patient-treatment-slide-detail-row {
  border-top: 1px solid rgba(55, 65, 81, 0.45);
}

.patient-treatment-slide-detail-row dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.patient-treatment-slide-detail-row dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.45;
  word-break: break-word;
}

.patient-treatment-slide-detail-row--stack dd {
  font-weight: 500;
  color: #d1dae8;
  white-space: pre-wrap;
}

.patient-treatment-slide-travel-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.patient-treatment-slide-travel-step {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0 10px;
  position: relative;
  padding-bottom: 16px;
}

.patient-treatment-slide-travel-step:last-child {
  padding-bottom: 0;
}

.patient-treatment-slide-travel-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: rgba(147, 197, 253, 0.25);
}

.patient-treatment-slide-travel-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.patient-treatment-slide-travel-step-title {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.patient-treatment-slide-travel-datetime {
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
}

.patient-treatment-slide-travel-location {
  margin: 0;
  font-size: 0.8125rem;
  color: #d1dae8;
  line-height: 1.4;
  word-break: break-word;
}

.patient-treatment-slide-docs {
  display: block;
}

.patient-treatment-slide-docs-list {
  display: flex;
  flex-direction: column;
  gap: var(--td-space-1);
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.patient-treatment-slide-doc-row {
  border-radius: var(--td-radius-row);
  background: var(--td-surface-row);
  border: none;
  overflow: hidden;
}

.patient-treatment-slide-doc-row + .patient-treatment-slide-doc-row {
  border-top: none;
}

.patient-treatment-slide-doc-row.is-missing {
  background: var(--td-row-missing-bg);
}

.patient-treatment-slide-doc-row:hover .patient-treatment-slide-doc-trigger,
.patient-treatment-slide-doc-row:focus-within .patient-treatment-slide-doc-trigger,
.patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-trigger,
.patient-treatment-slide-doc-accordion.is-missing.is-open .patient-treatment-slide-doc-trigger {
  background: transparent;
}

.patient-treatment-slide-doc-accordion {
  display: flex;
  flex-direction: column;
}

.patient-treatment-slide-doc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--td-space-1);
  width: 100%;
  padding: 10px var(--td-space-2);
  min-height: 48px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease;
}

.patient-treatment-slide-doc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.patient-treatment-slide-doc-trigger:focus-visible {
  outline: 2px solid var(--td-accent);
  outline-offset: -2px;
}

.patient-treatment-slide-doc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.patient-treatment-slide-doc-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--td-icon-wrap-bg);
  color: var(--td-accent);
}

.patient-treatment-slide-doc-icon-wrap--missing {
  background: var(--td-icon-wrap-missing-bg);
  color: var(--td-badge-missing-text);
}

.patient-treatment-slide-doc-icon-wrap--complete,
.patient-treatment-slide-doc-icon-wrap--neutral {
  background: var(--td-icon-wrap-bg);
  color: var(--td-accent);
}

.patient-treatment-slide-doc-label-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--td-text-primary);
}

.patient-treatment-slide-doc-type-icon {
  font-size: 1rem;
  line-height: 1;
}

.patient-treatment-slide-doc-badge {
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.patient-treatment-slide-doc-badge i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  line-height: 1;
}

.patient-treatment-slide-doc-badge--complete,
.patient-treatment-slide-doc-badge--neutral {
  background: var(--td-badge-success-bg);
  color: var(--td-badge-success-text);
}

.patient-treatment-slide-doc-badge--missing {
  background: var(--td-badge-missing-bg);
  color: var(--td-badge-missing-text);
}

.patient-treatment-slide-doc-badge--pending-hospital {
  background: var(--td-badge-hospital-pending-bg);
  color: var(--td-badge-hospital-pending-text);
}

.patient-treatment-slide-doc-icon-wrap--pending-hospital {
  background: var(--td-icon-wrap-hospital-pending-bg);
  color: var(--td-badge-hospital-pending-text);
}

.patient-treatment-slide-doc-row.is-hospital-pending {
  background: var(--td-row-hospital-pending-bg);
}

.patient-treatment-slide-doc-empty-panel--hospital {
  gap: 6px;
}

.patient-treatment-slide-doc-empty-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--td-text-muted);
}

.patient-treatment-slide-doc-empty-panel--hospital .patient-treatment-slide-doc-empty-hint {
  padding: 0;
}

.patient-treatment-slide-doc-chevron {
  width: 16px;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  color: var(--td-text-muted);
  transition: transform 0.2s ease, color 0.16s ease;
  flex-shrink: 0;
}

.patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-chevron {
  transform: rotate(90deg);
  color: var(--td-text-secondary);
}

.patient-treatment-slide-doc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease;
  border-top: 1px solid transparent;
}

.patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-panel {
  border-top-color: var(--td-divider);
}

.patient-treatment-slide-doc-panel[hidden] {
  display: block;
}

.patient-treatment-slide-doc-files {
  list-style: none;
  margin: 0;
  padding: var(--td-space-1) var(--td-space-2) var(--td-space-2);
  display: flex;
  flex-direction: column;
  gap: var(--td-space-1);
}

.patient-treatment-slide-doc-file-link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--td-radius-row);
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

button.patient-treatment-slide-doc-file-link:focus-visible {
  outline: 2px solid var(--td-accent, #8b6cf0);
  outline-offset: 2px;
}

.patient-treatment-slide-doc-file-link:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

.patient-treatment-slide-doc-empty {
  margin: 0;
  padding: 0 var(--td-space-2) var(--td-space-2);
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--td-text-muted);
}

.patient-treatment-slide-doc-empty-panel {
  display: flex;
  flex-direction: column;
  gap: var(--td-space-1);
  padding: 0 var(--td-space-2) var(--td-space-2);
}

.patient-treatment-slide-doc-empty-panel .patient-treatment-slide-doc-empty {
  padding: 0;
}

.patient-treatment-slide-doc-upload-btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
}

.patient-treatment-slide-missing-box {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-left: 3px solid #f87171;
}

.patient-treatment-slide-missing-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fecaca;
}

.patient-treatment-missing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.patient-treatment-missing-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  min-height: 2.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.patient-treatment-missing-chip:hover {
  background: rgba(127, 29, 29, 0.35);
  border-color: #f87171;
  color: #fff;
}

.patient-treatment-slide-cta {
  margin-top: 4px;
}

.patient-treatment-slider-pager {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: var(--td-space-1);
  padding: var(--td-space-1) 0;
}

.patient-treatment-slider-pager--single {
  grid-template-columns: 1fr;
  padding: var(--td-space-1) 0;
}

.patient-treatment-slider-pager--single .patient-treatment-slider-nav {
  display: none;
}

.patient-treatment-slider-pager-label {
  text-align: center;
  color: var(--td-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.patient-treatment-slider-nav {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--td-radius-row);
  border: none;
  background: var(--td-surface-row);
  color: var(--td-text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s, color 0.16s;
}

.patient-treatment-slider-nav:hover:not(:disabled) {
  background: var(--td-surface-hover);
  color: var(--td-text-primary);
}

.patient-treatment-slider-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.patient-treatment-slider-nav:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.patient-treatment-slider-empty {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--td-text-secondary);
  font-size: 1rem;
  line-height: 1.45;
  background: var(--td-surface-card);
  border: none;
  border-radius: var(--td-radius-card);
  box-shadow: var(--td-shadow-card);
}

.patient-treatment-slider-empty__hero {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--td-space-2);
  align-items: start;
  padding: var(--td-space-2) var(--td-space-2) 18px;
  background: var(--td-gradient-hero);
}

.patient-treatment-slider-empty__hero-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

.patient-treatment-slider-empty__hero-icon i {
  font-size: 1.125rem;
  line-height: 1;
}

.patient-treatment-slider-empty__chip {
  display: none;
}

.patient-treatment-slider-empty__title {
  margin: 0 0 6px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.25;
}

.patient-treatment-slider-empty__text {
  margin: 0;
  max-width: 34rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.patient-treatment-slider-empty__steps {
  display: grid;
  gap: var(--td-space-1);
  margin: 0;
  padding: var(--td-space-2);
}

.patient-treatment-slider-empty__step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--td-radius-row);
  background: var(--td-surface-row);
  border: none;
}

.patient-treatment-slider-empty__step-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 1rem;
}

.patient-treatment-slider-empty__step-icon--docs {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.patient-treatment-slider-empty__step-icon--case {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.patient-treatment-slider-empty__step strong,
.patient-treatment-slider-empty__step > div > span {
  display: block;
}

.patient-treatment-slider-empty__step strong {
  color: var(--td-text-primary);
  font-size: 0.88rem;
  line-height: 1.25;
}

.patient-treatment-slider-empty__step > div > span {
  margin-top: 0.18rem;
  color: var(--td-text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
}

.patient-treatment-slider-empty__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: calc(100% - (var(--td-space-2) * 2));
  min-height: 46px;
  margin: 0 var(--td-space-2) var(--td-space-2);
  padding: 0.7rem 1rem;
  border-radius: var(--td-radius-row);
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.14s ease, transform 0.14s ease;
}

.patient-treatment-slider-empty__cta:hover,
.patient-treatment-slider-empty__cta:focus-visible {
  color: #fff;
  background: #1d4ed8;
  transform: translateY(-1px);
  outline: none;
}

.patient-treatment-slider-empty__cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

.patient-treatment-slider-empty__cta:active {
  transform: translateY(0) scale(0.99);
}

.patient-treatment-intake-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #dbeafe;
  font-size: 0.95rem;
}

.patient-treatment-slide-note--intake {
  color: #93c5fd;
}

.patient-request-blocked-wrap {
  padding-top: 0.15rem;
}

.patient-request-blocked-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.patient-request-blocked-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.9rem 1rem;
}

.patient-request-blocked-card .patient-request-section-title {
  margin-bottom: 0.45rem;
}

.patient-request-blocked-card__lead {
  margin: 0 0 0.85rem;
}

.patient-request-blocked-panel {
  margin: 0 0 0.85rem;
  padding: 0.875rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 178, 208, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.patient-request-blocked-doc-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.patient-request-blocked-doc-group + .patient-request-blocked-doc-group {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(159, 178, 208, 0.1);
}

.patient-request-blocked-doc-group__label,
.patient-request-blocked-panel__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--patient-text-secondary);
}

.patient-request-blocked-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.patient-request-blocked-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.patient-request-blocked-panel__item--required .patient-request-blocked-panel__icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
  color: #bfdbfe;
  background: rgba(118, 184, 255, 0.18);
  border: 1px solid rgba(118, 184, 255, 0.22);
}

.patient-request-blocked-panel__item--required.is-complete .patient-request-blocked-panel__icon {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.22);
}

.patient-request-blocked-panel__item--optional {
  opacity: 0.92;
}

.patient-request-blocked-panel__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #93c5fd;
  background: rgba(118, 184, 255, 0.12);
}

.patient-request-blocked-panel__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.patient-request-blocked-panel__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.patient-request-blocked-panel__text {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--patient-text-primary);
  font-weight: 600;
}

.patient-request-blocked-panel__item--required .patient-request-blocked-panel__text {
  font-size: 0.9rem;
}

.patient-request-blocked-panel__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--patient-text-secondary);
}

.patient-request-blocked-doc-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.patient-request-blocked-doc-badge--required {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.patient-request-blocked-doc-badge--optional {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.patient-request-blocked-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 178, 208, 0.12);
  width: fit-content;
  max-width: 100%;
}

.patient-request-blocked-status--complete {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.22);
}

.patient-request-blocked-status--complete i {
  font-size: 0.95rem;
  line-height: 1;
}

.patient-request-blocked-card__note {
  margin: 0 0 0.85rem;
}

.patient-request-blocked-card__cta {
  width: 100%;
  min-height: 50px;
  border-radius: 13px;
  justify-content: center;
  text-decoration: none;
}

.patient-appointments-cta__locked {
  margin: 0 0 0.75rem;
  color: #9ca3af;
  font-size: 0.95rem;
  text-align: center;
}

.patient-appointments-cta__button--secondary {
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

/* Recent activity */
.patient-treatment-activity-title {
  margin: 0 0 1rem 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-treatment-second-opinion {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #dbeafe;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.patient-treatment-activity-card {
  display: block;
  width: 100%;
  border: 1px solid #374151;
  background: #1a2332;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.patient-treatment-activity-card:hover {
  background: #1e293b;
  border-color: rgba(96, 165, 250, 0.35);
}

.patient-treatment-activity-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.patient-treatment-activity-card-main {
  min-width: 0;
  flex: 1;
}

.patient-treatment-activity-card-title {
  color: #f9fafb;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
  white-space: normal;
  word-break: break-word;
}

.patient-treatment-activity-card-sub {
  color: #d1dae8;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

.patient-treatment-activity-card-date {
  color: #c5d0e3;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.patient-treatment-activity-empty {
  padding: var(--td-space-3) var(--td-space-2);
  border-radius: var(--td-radius-card);
  background: transparent;
  border: none;
  text-align: center;
}

.patient-treatment-activity-empty-icon {
  display: block;
  font-size: 1.75rem;
  margin: 0 auto var(--td-space-2);
  color: var(--td-text-muted);
  opacity: 0.85;
}

.patient-treatment-activity-empty-title {
  margin: 0 0 var(--td-space-1);
  font-size: 1rem;
  font-weight: 600;
  color: var(--td-text-primary);
  line-height: 1.35;
}

.patient-treatment-activity-empty-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--td-text-secondary);
  line-height: 1.5;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.patient-treatment-detail-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.patient-treatment-detail-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

/* Patient travel history — larger type for readability */
.patient-travel-history-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-travel-history-page .profile-name {
  font-size: 1.2rem;
}

.patient-travel-history-page .profile-subtitle,
.patient-travel-history-page .profile-context {
  font-size: 0.95rem;
  color: #d1dae8;
}

.patient-travel-history-page .patient-travel-page-head {
  padding: 0.35rem 1.1rem 0;
}

.patient-travel-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.patient-travel-section-label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c5d0e3;
}

.patient-travel-overview {
  padding: 0.75rem 1rem 0.25rem;
}

.patient-travel-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.patient-travel-stat-card {
  background: #1a2332;
  border: 1px solid #2d3b52;
  border-radius: 12px;
  padding: 1rem 0.95rem;
  min-height: 5.5rem;
}

.patient-travel-stat-label {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d1dae8;
}

.patient-travel-stat-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.35;
}

.patient-travel-stat-value--accent {
  color: #93c5fd;
  font-size: 1.0625rem;
}

.patient-travel-stat-value--count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9fafb;
}

.patient-travel-stat-hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #c5d0e3;
  line-height: 1.45;
}

.patient-travel-content {
  padding: 0.85rem 1.1rem 10rem !important;
  overflow-y: auto;
}

.patient-travel-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.15rem;
  padding: 6px;
  background: #111827;
  border: 1px solid #2d3b52;
  border-radius: 12px;
}

.patient-travel-filter-btn {
  border: none;
  background: transparent;
  color: #c5d0e3;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.7rem 0.4rem;
  min-height: 2.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.patient-travel-filter-btn.is-active {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.patient-travel-filter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.patient-travel-panel {
  margin-bottom: 1.25rem;
}

.patient-travel-panel[hidden] {
  display: none !important;
}

.patient-travel-panel-empty,
.patient-travel-empty {
  padding: 1rem;
  border-radius: 12px;
  background: #1a2332;
  border: 1px dashed #374151;
  text-align: center;
}

.patient-travel-panel-empty-title,
.patient-travel-empty h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.35;
}

.patient-travel-panel-empty-desc,
.patient-travel-empty p {
  margin: 0;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.5;
}

.patient-travel-empty i {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.patient-travel-cancel-alert {
  display: flex;
  gap: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.patient-travel-cancel-alert i {
  color: #fcd34d;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.patient-travel-cancel-alert h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #fde68a;
}

.patient-travel-cancel-alert p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #fef3c7;
  line-height: 1.45;
}

.patient-travel-cancel-reason {
  font-style: italic;
  color: #fde68a !important;
}

.patient-travel-cancel-note {
  margin-bottom: 0 !important;
  font-weight: 600;
  color: #fcd34d !important;
}

.patient-trip-card {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.85rem;
  padding: 1.05rem 1rem;
  min-height: 4.5rem;
  border-radius: 12px;
  background: #1a2332;
  border: 1px solid #2d3b52;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.patient-trip-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: #1e293b;
}

.patient-trip-card--past {
  opacity: 0.92;
}

.patient-trip-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.patient-trip-card-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.patient-trip-card-city {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
  word-break: break-word;
}

.patient-trip-card-country {
  margin: 0;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.4;
}

.patient-trip-card-date {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-trip-card-meta {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #c5d0e3;
  line-height: 1.4;
}

.patient-trip-card-route {
  margin: 0;
  font-size: 0.95rem;
  color: #f3f4f6;
  line-height: 1.45;
  word-break: break-word;
}

.patient-trip-card-route i {
  color: #60a5fa;
  margin-right: 4px;
}

.patient-trip-card-type {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #c5d0e3;
}

.patient-trip-card-cancel-reason {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #fca5a5;
  font-style: italic;
  line-height: 1.4;
}

.patient-trip-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 2px;
}

.patient-trip-badge--completed {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.patient-trip-badge--cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.patient-trip-badge--active {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.patient-trip-badge--upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.patient-trip-badge--neutral {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(107, 114, 128, 0.35);
}

.patient-trip-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.8);
}

.patient-trip-modal[hidden] {
  display: none !important;
}

.patient-trip-modal-sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: #1f2937;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.25rem 1.25rem 1.5rem;
  animation: patientTripSlideUp 0.28s ease-out;
}

@keyframes patientTripSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.patient-trip-modal-handle {
  width: 40px;
  height: 4px;
  background: #374151;
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.patient-trip-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.patient-trip-modal-city {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-trip-modal-country {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #d1dae8;
}

.patient-trip-modal-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #374151;
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-trip-modal-date,
.patient-trip-modal-route {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #f3f4f6;
  line-height: 1.45;
}

.patient-trip-modal-route-box {
  display: flex;
  gap: 1rem;
  background: #111827;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.patient-trip-modal-route-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.patient-trip-modal-route-line span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
}

.patient-trip-modal-route-line span:last-child {
  width: 2px;
  flex: 1;
  min-height: 36px;
  background: #374151;
}

.patient-trip-modal-route-line span:last-child::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  margin-top: auto;
}

.patient-trip-modal-route-label {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: #c5d0e3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.patient-trip-modal-route-value {
  /* margin: 0 0 1rem; */
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.45;
  word-break: break-word;
}

.patient-trip-modal-driver {
  background: #111827;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.patient-trip-modal-driver-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-trip-modal-driver-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #7c5cbf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.patient-trip-modal-cancel {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid #991b1b;
  border-radius: 12px;
  padding: 1rem;
}

.patient-trip-modal-cancel-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fca5a5;
}

.patient-trip-modal-driver,
.patient-trip-modal-cancel {
  font-size: 1rem;
}

.patient-travel-history-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.patient-travel-history-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

/* Patient profile page — larger type for readability */
.patient-profile-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-profile-content {
  padding: 0.85rem 1.1rem var(--patient-bottom-offset-md) !important;
  overflow-y: auto;
  margin-bottom: 0;
}

.patient-profile-page-title {
  margin: 0 0 1.15rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.patient-profile-card {
  background: #1a2332;
  border: 1px solid #2d3b52;
  border-radius: 14px;
  padding: 1.15rem 1.1rem 1rem;
  margin-bottom: 1.15rem;
}

.patient-profile-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.65);
}

.patient-profile-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6ef7 0%, #7c5cbf 100%);
  border: 2px solid rgba(96, 165, 250, 0.3);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(79, 110, 247, 0.25);
}

.patient-profile-identity {
  min-width: 0;
  flex: 1;
}

.patient-profile-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.patient-profile-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-profile-details {
  margin: 0;
  display: grid;
  gap: 0;
}

.patient-profile-detail-row {
  display: grid;
  grid-template-columns: 8.75rem 1fr;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.45);
}

.patient-profile-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.patient-profile-detail-row dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c5d0e3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.patient-profile-detail-row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #f3f4f6;
  line-height: 1.45;
  word-break: break-word;
}

.patient-profile-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.patient-profile-card-head {
  flex-wrap: wrap;
}

.patient-profile-card-head-actions {
  margin-left: auto;
}

.patient-profile-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.patient-profile-edit-toggle:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.42);
}

.patient-profile-edit-toggle:active {
  transform: scale(0.98);
}

.patient-profile-feedback {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.patient-profile-feedback--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.patient-profile-feedback--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.patient-profile-field-stack {
  display: grid;
  gap: 0.65rem;
}

.patient-profile-field-view,
.patient-profile-field-edit {
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease;
}

.patient-profile-field-view {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
}

.patient-profile-field-edit {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
}

.patient-profile-card.is-editing .patient-profile-field-view {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.patient-profile-card.is-editing .patient-profile-field-edit {
  max-height: 14rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.patient-profile-input-label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #c5d0e3;
  letter-spacing: 0.02em;
}

.patient-profile-input-label span {
  text-transform: uppercase;
}

.patient-profile-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.35;
}

.patient-profile-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.patient-profile-form-actions {
  display: none;
  gap: 0.75rem;
  margin-top: 1rem;
  animation: patientProfileFadeIn 0.2s ease;
}

.patient-profile-card.is-editing .patient-profile-form-actions {
  display: flex;
}

.patient-profile-action-btn {
  flex: 1;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.patient-profile-action-btn:active {
  transform: scale(0.985);
}

.patient-profile-action-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #eff6ff;
}

.patient-profile-action-btn--primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.patient-profile-action-btn--secondary {
  background: rgba(15, 23, 42, 0.5);
  border-color: #334155;
  color: #e2e8f0;
}

.patient-profile-action-btn--secondary:hover {
  background: rgba(30, 41, 59, 0.82);
}

.patient-profile-action-btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
}

@keyframes patientProfileFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .patient-profile-card-head-actions {
    width: 100%;
    margin-left: 0;
  }

  .patient-profile-edit-toggle {
    width: 100%;
    justify-content: center;
  }

  .patient-profile-input-grid,
  .patient-profile-form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

.patient-profile-documents-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.35rem;
  padding: 1.1rem 1.05rem;
  /* min-height: 4.5rem; */
  border-radius: 14px;
  background: #1a2332;
  border: 1px solid #2d3b52;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.patient-profile-documents-card--attention {
  border-color: rgba(252, 211, 77, 0.45);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(17, 24, 39, 0.98));
}

.patient-profile-documents-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

.patient-profile-documents-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.patient-profile-documents-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.patient-profile-documents-card--attention .patient-profile-documents-icon {
  background: rgba(252, 211, 77, 0.12);
  color: #fcd34d;
}

.patient-profile-documents-title {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-profile-documents-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-profile-documents-action {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #93c5fd;
  white-space: nowrap;
}

.patient-profile-documents-card--attention .patient-profile-documents-action {
  color: #fcd34d;
}

.patient-profile-section {
  margin-bottom: 1.35rem;
}

.patient-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.patient-profile-section-title {
  margin: 0 0 0.85rem 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-profile-section-title--inline {
  margin-bottom: 0;
}

.patient-profile-section-link {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.patient-profile-section-link:hover {
  color: #bfdbfe;
}

.patient-profile-section-title--account {
  margin-top: 0;
}

.patient-profile-account-block {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(55, 65, 81, 0.85);
}

.patient-profile-settings {
  margin-bottom: 0  .5rem;
}

.patient-profile-summary-list {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #1a2332;
  border: 1px solid #2d3b52;
  overflow: hidden;
}

.patient-profile-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.patient-profile-summary-row:last-child {
  border-bottom: none;
}

.patient-profile-summary-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.patient-profile-summary-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.patient-profile-summary-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.patient-profile-summary-icon-wrap--blue {
  background: transparent;
  color: #b3d5ff;;
}

.patient-profile-summary-icon-wrap--purple {
  background: transparent;
  color: #a78bfa;
}

.patient-profile-summary-icon-wrap--gold {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

.patient-profile-summary-icon-wrap--pink {
  background: transparent;
  color: #458fff;
}

.patient-profile-summary-row-main {
  flex: 1;
  min-width: 0;
}

.patient-profile-summary-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d1dae8;
  line-height: 1.3;
}

.patient-profile-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  white-space: nowrap;
}

.patient-profile-summary-stat {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #7f8ca1;
  line-height: 1.4;
}

.patient-profile-summary-stat--alert {
  color: #fbbf24;
  font-weight: 600;
}

.patient-profile-summary-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.patient-profile-history-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 1.05rem 1rem;
  min-height: 4.75rem;
  border-radius: 12px;
  background: #1a2332;
  border: 1px solid #2d3b52;
  text-align: left;
  font-family: inherit;
}

.patient-profile-history-card--link {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.patient-profile-history-card--link:hover {
  background: #1e293b;
  border-color: rgba(96, 165, 250, 0.3);
}

.patient-profile-history-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--history-accent, #60a5fa) 14%, transparent);
  color: var(--history-accent, #60a5fa);
  font-size: 1.2rem;
}

.patient-profile-history-body {
  flex: 1;
  min-width: 0;
}

.patient-profile-history-category {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c5d0e3;
}

.patient-profile-history-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.35;
}

.patient-profile-history-subtitle {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-profile-history-details {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #c5d0e3;
  line-height: 1.45;
}

.patient-profile-history-date {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c5d0e3;
}

.patient-profile-history-chevron {
  flex-shrink: 0;
  color: #6b7280;
  margin-top: 0.15rem;
}

.patient-profile-show-more {
  width: 100%;
  padding: 0.95rem 1rem;
  min-height: 3rem;
  border: 1px solid #374151;
  border-radius: 10px;
  background: transparent;
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.patient-profile-show-more:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.patient-profile-empty {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  background: #1a2332;
  border: 1px dashed #374151;
}

.patient-profile-empty i {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.patient-profile-empty p {
  margin: 0;
  font-size: 1rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-profile-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #1a2332;
  border: 1px solid #2d3b52;
}

.patient-profile-settings-group--account {
  margin-top: 0;
}

.patient-profile-settings-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0.85rem;
  min-height: 3.25rem;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}

.patient-profile-settings-btn:hover {
  background: rgba(30, 41, 59, 0.85);
}

.patient-profile-settings-btn i {
  color: #9ca3af;
  font-size: 1rem;
}

.patient-profile-settings-btn--with-badge .patient-profile-settings-btn__label {
  flex: 1 1 auto;
  min-width: 0;
}

.patient-profile-settings-btn__end {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.patient-profile-settings-btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.patient-profile-settings-btn__badge[hidden] {
  display: none;
}

/* Profile page: slightly larger bottom nav labels for readability */
.patient-profile-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.patient-profile-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.patient-profile-settings-btn--danger {
  justify-content: center;
  background: #d75252;
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.25);


}

.patient-profile-settings-btn--danger:hover {
  background: rgba(127, 29, 29, 0.35);
}

.patient-profile-settings-btn--danger-outline {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.patient-profile-settings-btn--danger-outline:hover {
  background: rgba(239, 68, 68, 0.16);
}

/* Privacy & account deletion pages */
.patient-privacy-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-privacy-content {
  padding: 0.85rem 1.1rem var(--patient-bottom-offset-md) !important;
  overflow-y: auto;
}

.patient-privacy-hero {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(79, 110, 247, 0.08) 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.patient-privacy-hero--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.08) 100%);
  border-color: rgba(52, 211, 153, 0.28);
}

.patient-privacy-hero__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  font-size: 1.25rem;
}

.patient-privacy-hero__icon--success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.patient-privacy-hero__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-privacy-hero__text {
  margin: 0;
  font-size: 0.95rem;
  color: #c5d0e0;
  line-height: 1.5;
}

.patient-privacy-hero__text strong {
  color: #e5e7eb;
  font-weight: 700;
}

.patient-privacy-card {
  margin-bottom: 0.85rem;
}

.patient-privacy-card--muted {
  background: rgba(15, 23, 42, 0.45);
}

.patient-privacy-card__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-privacy-card__text {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: #b6c2d6;
  line-height: 1.5;
}

.patient-privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.patient-privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-privacy-list li i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #93c5fd;
  font-size: 1rem;
}

.patient-privacy-list--compact li i {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: -0.05rem;
  color: #64748b;
}

.patient-privacy-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.18);
}

.patient-privacy-callout i {
  flex-shrink: 0;
  color: #fca5a5;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.patient-privacy-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #fecaca;
  line-height: 1.5;
}

.patient-privacy-actions {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

.patient-privacy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.95rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #2d3b52;
  background: rgba(15, 23, 42, 0.55);
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.patient-privacy-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
}

.patient-privacy-btn i {
  color: #9ca3af;
  font-size: 1rem;
}

.patient-privacy-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: rgba(96, 165, 250, 0.35);
  color: #eff6ff;
}

.patient-privacy-btn--primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.patient-privacy-btn--primary i {
  color: rgba(239, 246, 255, 0.85);
}

.patient-privacy-btn--danger {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.patient-privacy-btn--danger:hover {
  background: rgba(127, 29, 29, 0.42);
  color: #fff;
}

.patient-privacy-btn--danger i {
  color: #fca5a5;
}

.patient-privacy-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  text-align: center;
}

.patient-privacy-footnote a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.patient-privacy-footnote a:hover {
  color: #bfdbfe;
}

.patient-privacy-form .patient-profile-feedback {
  margin-bottom: 0.85rem;
}

.patient-privacy-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #c5d0e0;
  line-height: 1.45;
}

.patient-privacy-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.patient-privacy-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.patient-privacy-submit--danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}

.patient-privacy-submit--danger:hover {
  filter: brightness(1.05);
}

/* Treatment case detail page */
.patient-treatment-case-page {
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.patient-treatment-case-page .patient-page-header__eyebrow {
  display: none;
}

.patient-treatment-case-page .patient-page-header h1 {
  font-size: 1.35rem !important;
  line-height: 1.3;
}

.patient-treatment-case-page .patient-page-header p {
  font-size: 0.95rem !important;
  color: #d1dae8 !important;
}

.patient-treatment-case-content {
  padding: 0.85rem 1.1rem var(--patient-bottom-offset-roomy) 1.1rem;
  overflow-y: auto;
}

.patient-treatment-case-intro {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: #c5d0e3;
  line-height: 1.5;
}

.patient-treatment-case-action {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  margin-top: 10px;
}

.patient-treatment-case-action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.patient-treatment-case-action-head i {
  color: #fbbf24;
  font-size: 1.125rem;
}

.patient-treatment-case-action-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
}

.patient-treatment-case-action-lead {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: #f3f4f6;
  line-height: 1.45;
}

.patient-treatment-case-action-btn {
  border-radius: 12px;
  min-height: 44px;
}

.patient-treatment-case-summary {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.patient-treatment-case-progress-stat {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-treatment-case-progress-stat strong {
  color: #f8fafc;
  font-weight: 800;
}

.patient-treatment-case-progress-meta {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.patient-treatment-case-progress-visual {
  margin-bottom: 16px;
}

.patient-treatment-case-progress-percent {
  margin: 0 0 2px;
  font-size: 2rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.patient-treatment-case-progress-percent-label {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.patient-treatment-case-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
  overflow: hidden;
}

.patient-treatment-case-progress-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.25s ease;
}

.patient-treatment-case-upload-inline {
  margin-top: 4px;
  border-radius: 12px;
  min-height: 44px;
}

.patient-treatment-case-readonly-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: #fcd34d;
  line-height: 1.45;
}

.patient-treatment-case-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.patient-treatment-case-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.patient-treatment-case-details {
  margin: 0;
}

.patient-treatment-case-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: none;
}

.patient-treatment-case-detail-row + .patient-treatment-case-detail-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.patient-treatment-case-detail-row dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.patient-treatment-case-detail-row dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.45;
  word-break: break-word;
}

.patient-treatment-case-detail-row--stack dd {
  font-weight: 500;
  color: #d1dae8;
}

.patient-treatment-case-travel-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.patient-treatment-case-travel-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0 12px;
  position: relative;
  padding-bottom: 20px;
}

.patient-treatment-case-travel-step:last-child {
  padding-bottom: 0;
}

.patient-treatment-case-travel-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: rgba(147, 197, 253, 0.25);
}

.patient-treatment-case-travel-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  position: relative;
  z-index: 1;
}

.patient-treatment-case-travel-step-title {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #93c5fd;
}

.patient-treatment-case-travel-datetime {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

.patient-treatment-case-travel-location {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c5d0e3;
  line-height: 1.45;
}

.patient-treatment-case-help-text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: #c5d0e3;
  line-height: 1.45;
}

.patient-treatment-case-help-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.patient-treatment-case-documents-empty {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: #c5d0e3;
  line-height: 1.45;
}

.patient-treatment-case-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-treatment-case-doc-row {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  scroll-margin-top: 5rem;
}

.patient-treatment-case-doc-row-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.patient-treatment-case-doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  border: 1px solid transparent;
}

.patient-treatment-case-doc-icon--needs-upload {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.patient-treatment-case-doc-icon--uploaded {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

.patient-treatment-case-doc-icon--optional {
  background: rgba(100, 116, 139, 0.2);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.patient-treatment-case-doc-copy {
  flex: 1;
  min-width: 0;
}

.patient-treatment-case-doc-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.3;
  margin-bottom: 4px;
}

.patient-treatment-case-doc-sub {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.4;
}

.patient-treatment-case-doc-status-text {
  margin: 0;
  font-size: 0.875rem;
  color: #d1dae8;
  line-height: 1.4;
}

.patient-treatment-case-doc-upload-btn {
  width: 100%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.patient-treatment-case-doc-upload-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #dbeafe;
}

.patient-treatment-case-doc-upload-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.patient-treatment-case-doc-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patient-treatment-case-doc-file-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.patient-treatment-case-exams-empty {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.45;
}

.patient-treatment-case-exam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patient-treatment-case-exam-btn {
  width: 100%;
  border: 1px solid #374151;
  background: #1f2937;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  gap: 4px;
}

.patient-treatment-case-exam-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f3f4f6;
}

.patient-treatment-case-exam-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.patient-treatment-case-exam-doctor {
  font-size: 0.75rem;
  color: #9ca3af;
}

.patient-treatment-case-sticky-upload {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.25rem + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 10px 1.1rem;
  background: linear-gradient(180deg, rgba(16, 23, 42, 0) 0%, rgba(16, 23, 42, 0.92) 35%, #10172a 100%);
  pointer-events: none;
}

.patient-treatment-case-sticky-upload .patient-treatment-btn {
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.patient-treatment-case-page .patient-bottom-nav .nav-label {
  font-size: 0.7rem;
}

.patient-treatment-case-page .patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}


/* Patient redesign: header, drawer, navbar, and appointment request flow (dark default) */
html[data-theme="dark"],
:root {
  --patient-bg-primary: #08111f;
  --patient-bg-secondary: #0f1b31;
  --patient-bg-card: rgba(14, 26, 48, 0.88);
  --patient-bg-card-hover: rgba(24, 42, 75, 0.92);
  --patient-text-primary: #f5f7fb;
  --patient-text-secondary: #9fb2d0;
  --patient-accent-blue: #76b8ff;
  --patient-accent-gold: #f2b15a;
  --patient-accent-green: #38c793;
  --patient-accent-red: #ff6d7b;
  --patient-border: rgba(133, 164, 213, 0.16);
  --patient-shadow-xl: 0 28px 60px rgba(2, 8, 23, 0.42);
  --patient-surface: #111827;
  --patient-surface-muted: #1a2332;
  --patient-surface-border: #2d3b52;
  --patient-label: #94a3b8;
  --patient-heading: #f8fafc;
  --patient-body-muted: #c5d0e3;
}

body.patient-sidebar-open {
  overflow: hidden !important;
}

/* Drawer uses position:fixed; ancestor .patient-container is overflow:hidden — ensure the open state is never clipped. */
body.patient-sidebar-open .patient-container {
  overflow: visible;
}

.patient-dashboard {
  background-color: #10172A;
  background-image: none;
}

html:not(.native-android-chrome) .patient-container {
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

.patient-has-bottom-nav .patient-container.patient-container,
.patient-container--with-nav {
  padding-bottom: 0;
}

.patient-no-bottom-nav .patient-container,
.patient-container--no-nav {
  padding-bottom: 0;
}

html:not(.native-android-chrome) .patient-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* padding: 0 0.9rem calc(5.5rem + env(safe-area-inset-bottom, 0px)) 0.9rem; */
  /* margin-bottom: var(--patient-bottom-offset-md); */
}

.patient-no-bottom-nav .patient-content,
.patient-container--no-nav .patient-content {
  padding-bottom: 0.9rem;
}

.patient-content .card-list {
  padding-bottom: 0.5rem;
}

.patient-header-shell,
.patient-page-header-shell {
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.patient-header-shell {
  padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  padding-right: 0.9rem;
  padding-left: 0.9rem;
  padding-bottom: 0.7rem;
}

.patient-page-header-shell {
  padding-top: env(safe-area-inset-top, 0px);
}

.patient-page-header-shell .patient-app-header {
  padding: 0.9rem 0.9rem 0;
}

/* .patient-page-header-shell .patient-page-header {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  margin-bottom: 0.75rem;
} */

.patient-app-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0.85rem;
}

.patient-app-header__action {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(159, 178, 208, 0.18);
  border-radius: 18px;
  background: rgba(14, 26, 48, 0.72);
  color: var(--patient-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.patient-app-header__icon {
  width: 1.35rem;
  height: 1.35rem;
}

.patient-app-header__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--patient-accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-app-brand {
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.patient-app-brand__mark {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-app-brand__ring,
.patient-app-brand__core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.patient-app-brand__ring {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.18), rgba(242, 177, 90, 0.24));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.patient-app-brand__core {
  inset: 0.28rem;
  background: linear-gradient(135deg, #0d2343 0%, #1f4f88 48%, #f2b15a 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-app-brand__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--patient-text-primary);
  white-space: nowrap;
}

.patient-header-card,
.patient-page-header {
  margin-top: 0.8rem;
  border: 1px solid rgba(159, 178, 208, 0.14);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(12, 24, 43, 0.96), rgba(17, 35, 65, 0.92));
  box-shadow: var(--patient-shadow-xl);
}

.patient-header-card {
  padding: 1.15rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.patient-header-card__copy,
.patient-page-header__copy {
  min-width: 0;
}

.patient-header-card__eyebrow,
.patient-page-header__eyebrow,
.patient-sidebar__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--patient-accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.patient-header-card__title,
.patient-page-header__title,
.patient-sidebar__title {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
}

.patient-header-card__subtitle,
.patient-page-header__subtitle,
.patient-sidebar__subtitle {
  margin: 0.3rem 0 0;
  color: var(--patient-text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.patient-header-card__divider {
  margin: 0 0.4rem;
  opacity: 0.55;
}

.patient-header-card__profile-btn {
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.22), rgba(118, 184, 255, 0.12));
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.patient-page-header {
  padding: 1rem 1.05rem;
  display: flex !important;
  align-items: center !important;
  gap: 0.9rem;
}

.patient-page-header__back {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid rgba(159, 178, 208, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.patient-page-header__back svg {
  width: 1.2rem;
  height: 1.2rem;
}

.patient-page-header.patient-page-header--simple {
  display: grid !important;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  column-gap: 0.65rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(159, 178, 208, 0.14) !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.patient-page-header.patient-page-header--simple > .patient-page-header__copy {
  grid-column: 2;
  text-align: center;
  flex: unset;
  min-width: 0;
}

.patient-page-header.patient-page-header--simple > .patient-page-header__copy--brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-page-header.patient-page-header--simple > .patient-page-header__copy--brand .patient-app-brand {
  margin: 0 auto;
}

.patient-page-header.patient-page-header--simple > .patient-page-header__actions {
  grid-column: 3;
  margin-left: 0;
  justify-self: end;
}

.patient-page-header__menu {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(159, 178, 208, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
}

.patient-page-header__menu-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.patient-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2100;
}

.patient-sidebar-backdrop.is-open,
body.patient-sidebar-open .patient-sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

.patient-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 23rem);
  padding: 0.9rem;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 2110;
  pointer-events: none;
}

.patient-sidebar.is-open,
body.patient-sidebar-open .patient-sidebar {
  transform: translateX(0);
  pointer-events: auto;
}

.patient-sidebar__panel {
  height: 100%;
  border-radius: 30px;
  border: 1px solid rgba(159, 178, 208, 0.16);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.98) 0%, rgba(14, 29, 53, 0.98) 100%);
  box-shadow: var(--patient-shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.patient-sidebar__top {
  padding: 1.4rem 1.3rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(159, 178, 208, 0.12);
}

.patient-sidebar__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(159, 178, 208, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.patient-sidebar__close svg,
.patient-sidebar__chevron,
.patient-sidebar__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.patient-sidebar__nav {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
}

.patient-sidebar__item {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 178, 208, 0.08);
}

.patient-sidebar__item--danger {
  background: rgba(255, 109, 123, 0.08);
  border-color: rgba(255, 109, 123, 0.18);
}

.patient-sidebar__icon {
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.22), rgba(242, 177, 90, 0.16));
  color: var(--patient-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-sidebar__item--danger .patient-sidebar__icon {
  background: rgba(255, 109, 123, 0.12);
  color: #ffd8dd;
}

.patient-sidebar__item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
}

.patient-sidebar__item-title {
  color: var(--patient-text-primary);
  font-size: 0.96rem;
  font-weight: 700;
}

.patient-sidebar__item-subtitle {
  color: var(--patient-text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
}

.patient-sidebar__chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.patient-bottom-nav {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  border: 1px solid rgba(159, 178, 208, 0.14);
  border-radius: 30px;
  background: rgba(10, 20, 37, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px rgba(2, 8, 23, 0.32);
  padding: 0.7rem 0.55rem;
}

.patient-bottom-nav .nav-btn {
  min-width: 0;
  flex: 1;
  gap: 0.32rem;
  padding: 0.65rem 0.25rem;
  border-radius: 20px;
}

.patient-bottom-nav .nav-btn.active {
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.2), rgba(118, 184, 255, 0.1));
}

.patient-bottom-nav .nav-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.patient-bottom-nav .nav-label {
  font-size: 0.7rem;
  font-weight: 700;
}

.patient-appointments-overview {
  padding: 0 0.9rem;
  margin-top: 0.5rem;
}

.patient-appointments-cta {
  margin: 0.95rem 0.9rem 0;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  /* border: 1px solid rgba(159, 178, 208, 0.12); */
  /* background: linear-gradient(135deg, rgba(15, 31, 58, 0.95), rgba(14, 26, 48, 0.82)); */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--patient-bottom-offset-lg);
}

.patient-appointments-cta__copy h3,
.patient-request-hero__copy h1 {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 1.5rem;
}

.patient-appointments-cta__copy p,
.patient-request-hero__copy p {
  margin: 0.35rem 0 0;
  color: var(--patient-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.patient-appointments-cta__button,
.patient-request-primary-btn,
.patient-request-secondary-btn {
  text-decoration: none;
  border: none;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.patient-appointments-cta__button,
.patient-request-primary-btn {
  background: linear-gradient(135deg, #76b8ff4a 0%, #3d7fe04a 100%);
  color: #fff;
}

.patient-request-secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--patient-text-primary);
  border: 1px solid rgba(159, 178, 208, 0.12);
}

/* .patient-request-page .patient-content {
  gap: 0.9rem;
} */


.patient-request-card,
.patient-request-confirmation {
  border-radius: 26px;
  border: 1px solid rgba(159, 178, 208, 0.14);
  background: linear-gradient(135deg, rgba(13, 25, 46, 0.94), rgba(11, 20, 37, 0.9));
  box-shadow: var(--patient-shadow-xl);
}

.patient-request-hero {
  padding: 0.5rem 1rem 0.35rem;
}

.patient-request-card {
  padding: 1rem;
}

.patient-request-section-title {
  margin: 0 0 0.8rem;
  color: var(--patient-text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.patient-request-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.patient-request-grid--hospitals {
  gap: 0.85rem;
}

.patient-request-hospital-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 172px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  color: #f8fafc;
  cursor: pointer;
  background: #0f172a;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.patient-request-hospital-card:active {
  transform: scale(0.99);
}

.patient-request-hospital-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

.patient-request-hospital-card:hover .patient-request-hospital-card__media,
.patient-request-hospital-card:focus-visible .patient-request-hospital-card__media {
  transform: scale(1.06);
}

.patient-request-hospital-card__glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to top, #000 42%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent);
  pointer-events: none;
  z-index: 1;
}

.patient-request-hospital-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 16, 25, 0.08) 0%,
    rgba(5, 16, 25, 0.22) 38%,
    rgba(5, 16, 25, 0.72) 72%,
    rgba(5, 16, 25, 0.94) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.patient-request-hospital-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 172px;
  padding: 1rem 1.05rem 0.95rem;
  gap: 0.2rem;
}

.patient-request-card-selected-pill {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(30, 64, 110, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.patient-request-card-selected-pill i {
  font-size: 0.72rem;
}

.patient-request-hospital-card__title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.patient-request-hospital-card__desc,
.patient-request-hospital-card__meta {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 700;
}

.patient-request-hospital-card__meta {
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.72rem;
}

.patient-request-hospital-card.is-selected {
  border-color: rgba(118, 184, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.22), 0 14px 36px rgba(0, 0, 0, 0.35);
}

.patient-request-hospital-card.is-selected .patient-request-hospital-card__scrim {
  background: linear-gradient(
    180deg,
    rgba(15, 40, 70, 0.12) 0%,
    rgba(15, 40, 70, 0.28) 38%,
    rgba(8, 28, 52, 0.78) 72%,
    rgba(6, 22, 42, 0.96) 100%
  );
}

@media (min-width: 750px) {
  .patient-request-grid--hospitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .patient-request-hospital-card {
    min-height: 168px;
    border-radius: 20px;
  }

  .patient-request-hospital-card__content {
    min-height: 168px;
    padding: 0.9rem 0.95rem 0.85rem;
  }

  .patient-request-hospital-card__title {
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .patient-request-hospital-card__desc,
  .patient-request-hospital-card__meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .patient-request-card-selected-pill {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.26rem 0.5rem;
    font-size: 0.62rem;
  }
}

.patient-request-hospital-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
}

.patient-request-hospital-pagination--bottom {
  margin: 0.75rem 0 0;
  padding-bottom: 0.25rem;
}

.patient-request-hospital-pagination__label,
.patient-request-hospital-pagination__meta {
  color: var(--patient-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}

.patient-request-hospital-pagination__meta {
  margin-left: 0.25rem;
  opacity: 0.9;
}

.patient-request-hospital-pagination__btn {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(159, 178, 208, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-hospital-pagination__btn:hover:not(.is-active) {
  border-color: rgba(118, 184, 255, 0.35);
  background: rgba(118, 184, 255, 0.08);
}

.patient-request-hospital-pagination__btn.is-active {
  border-color: rgba(118, 184, 255, 0.55);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.28), rgba(118, 184, 255, 0.12));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.15);
}

/* Shared list pagination (hospitals, departments, doctors) */
.patient-request-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
}

.patient-request-list-pagination--bottom {
  margin: 0.65rem 0 0.15rem;
}

.patient-request-list-pagination__label,
.patient-request-list-pagination__meta {
  color: var(--patient-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}

.patient-request-list-pagination__meta {
  margin-left: 0.25rem;
  opacity: 0.9;
}

.patient-request-list-pagination__btn {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(159, 178, 208, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-list-pagination__btn:hover:not(.is-active) {
  border-color: rgba(118, 184, 255, 0.35);
  background: rgba(118, 184, 255, 0.08);
}

.patient-request-list-pagination__btn.is-active {
  border-color: rgba(118, 184, 255, 0.55);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.28), rgba(118, 184, 255, 0.12));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.15);
}

/* Department chips — horizontal strip */
.patient-request-dept-strip {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
  margin: 0 -0.15rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.patient-request-dept-card {
  flex: 0 0 8.4rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 5.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(159, 178, 208, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-dept-card.is-selected {
  border-color: rgba(118, 184, 255, 0.5);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.2), rgba(118, 184, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.12);
}

.patient-request-dept-card__badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.patient-request-dept-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--patient-text-primary);
  line-height: 1.25;
}

.patient-request-dept-card__meta {
  font-size: 0.66rem;
  color: var(--patient-text-secondary);
  line-height: 1.3;
}

/* Doctor cards — ~200px tiles, 2-up on phones, 3–4 on wider screens */
.patient-request-grid--doctors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.patient-request-doctor-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: #f8fafc;
  cursor: pointer;
  background: #0f172a;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-doctor-card__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.75rem;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.35), rgba(59, 130, 246, 0.28));
}

.patient-request-doctor-card__media.has-photo {
  padding-top: 0;
  background: #0f172a;
}

.patient-request-doctor-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.patient-request-doctor-card__media.has-photo .patient-request-doctor-card__initials {
  display: none;
}

.patient-request-doctor-card__initials {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}

.patient-request-doctor-card__glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to top, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  pointer-events: none;
  z-index: 1;
}

.patient-request-doctor-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 16, 25, 0.05) 0%,
    rgba(5, 16, 25, 0.35) 45%,
    rgba(5, 16, 25, 0.88) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.patient-request-doctor-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 0.7rem 0.7rem 0.65rem;
  gap: 0.2rem;
}

.patient-request-doctor-card__badge {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.patient-request-doctor-card__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patient-request-doctor-card__meta {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.3;
  color: rgba(226, 232, 240, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patient-request-doctor-card.is-selected {
  border-color: rgba(118, 184, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.2), 0 10px 28px rgba(0, 0, 0, 0.3);
}

@media (min-width: 750px) {
  .patient-request-grid--doctors {
    /* Fill the row — ~200px+ cards, 3 across */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .patient-request-doctor-card {
    width: 100%;
    min-height: 250px;
  }
}

@media (min-width: 1100px) {
  .patient-request-grid--doctors {
    /* Fill the row — ~200px+ cards, 4 across */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 360px) {
  .patient-request-grid--doctors {
    grid-template-columns: 1fr;
  }

  .patient-request-doctor-card {
    aspect-ratio: auto;
    min-height: 168px;
  }

  .patient-request-dept-card {
    flex-basis: 7.75rem;
  }
}

.patient-request-choice {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(159, 178, 208, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  color: inherit;
  cursor: pointer;
}

.patient-request-choice.is-selected {
  border-color: rgba(118, 184, 255, 0.45);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.18), rgba(118, 184, 255, 0.08));
}

.patient-request-choice__title {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.patient-request-choice__meta,
.patient-request-choice__desc,
.patient-request-label,
.patient-request-help,
.patient-request-empty,
.patient-request-error,
.patient-request-success-note {
  color: var(--patient-text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.patient-request-choice__meta,
.patient-request-choice__desc {
  margin: 0.28rem 0 0;
}

.patient-request-form {
  display: grid;
  gap: 0.95rem;
}

.patient-request-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 10px;
}

.patient-request-label {
  font-weight: 700;
  color: #d6e2f5;
}

.patient-request-field input,
.patient-request-field textarea,
.patient-request-field select {
  width: 100%;
  border: 1px solid rgba(159, 178, 208, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  padding: 0.9rem 1rem;
}

.patient-request-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.patient-request-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.patient-request-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.patient-request-error,
.patient-request-success-note {
  margin: 0;
}

.patient-request-error {
  color: #ffd2d8;
}

.patient-request-confirmation {
  padding: 1rem 1.1rem;
}

.patient-request-confirmation__title {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.patient-request-confirmation__meta {
  margin: 0.35rem 0 0;
  color: var(--patient-text-secondary);
  font-size: 0.82rem;
}

.patient-request-confirmation__meta strong {
  color: #fff;
}

/* Appointment request success modal (post-submit on appointments list) */
.patient-success-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.patient-success-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.patient-success-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

body.patient-success-modal-open {
  overflow: hidden;
}

.patient-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.78);
  backdrop-filter: blur(6px);
}

.patient-success-modal__panel {
  position: relative;
  width: min(100%, 22rem);
  border-radius: 26px;
  border: 1px solid rgba(159, 178, 208, 0.18);
  background: linear-gradient(160deg, rgba(13, 25, 46, 0.98), rgba(11, 20, 37, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1.25rem 1.15rem;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.patient-success-modal.is-visible .patient-success-modal__panel {
  transform: translateY(0) scale(1);
}

.patient-success-modal__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 1.65rem;
}

.patient-success-modal__title {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.patient-success-modal__message {
  margin: 0.55rem 0 0;
  color: var(--patient-text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.patient-success-modal__details {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 178, 208, 0.1);
  text-align: left;
}

.patient-success-modal__details > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
}

.patient-success-modal__details > div + div {
  border-top: 1px solid rgba(159, 178, 208, 0.08);
}

.patient-success-modal__details dt {
  margin: 0;
  color: var(--patient-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.patient-success-modal__details dd {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.patient-success-modal__btn {
  margin-top: 1rem;
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #76b8ff 0%, #3d7fe0 100%);
  color: #fff;
}

html[data-theme="light"] .patient-success-modal__panel {
  background: linear-gradient(160deg, #ffffff, #f4f8ff);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .patient-success-modal__details {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
}

/* Request appointment wizard */
.patient-request-wizard-wrap {
  padding-bottom: 0.5rem;
}

.patient-request-scroll-spacer {
  height: calc(9.5rem + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  pointer-events: none;
}

.patient-request-wizard {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.patient-request-step {
  display: none;
}

.patient-request-step.is-active {
  display: block;
}

.patient-request-step__eyebrow {
  margin: 0 0 0.35rem;
  color: #76b8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.patient-request-stepper {
  margin: 0;
  padding: 0;
}

.patient-request-stepper__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 1rem;
  list-style: none;
  border-radius: 20px;
  border: 1px solid rgba(159, 178, 208, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.patient-request-stepper__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--patient-text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

.patient-request-stepper__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 178, 208, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
}

.patient-request-stepper__item.is-active {
  color: #d6e2f5;
}

.patient-request-stepper__item.is-active .patient-request-stepper__dot {
  border-color: rgba(118, 184, 255, 0.55);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.35), rgba(118, 184, 255, 0.12));
  color: #fff;
}

.patient-request-stepper__item.is-complete {
  color: #9fd0ff;
}

.patient-request-stepper__item.is-complete .patient-request-stepper__dot {
  border-color: rgba(118, 184, 255, 0.35);
  background: rgba(118, 184, 255, 0.15);
  color: #cfe6ff;
}

.patient-request-search-field input {
  width: 100%;
}

.patient-request-selected-chip {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(118, 184, 255, 0.1);
  border: 1px solid rgba(118, 184, 255, 0.22);
  color: #d6e2f5;
  font-size: 0.8rem;
  font-weight: 600;
}

.patient-request-path-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.patient-request-path-toggle__btn {
  border: 1px solid rgba(159, 178, 208, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-secondary);
  padding: 0.75rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.patient-request-path-toggle__btn.is-active {
  border-color: rgba(118, 184, 255, 0.35);
  background: rgba(118, 184, 255, 0.1);
  color: #d6e2f5;
  box-shadow: inset 0 0 0 1px rgba(118, 184, 255, 0.12);
}

.patient-request-subsection-title {
  margin: 0.85rem 0 0.55rem;
  color: var(--patient-text-primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.patient-request-choice__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.patient-request-choice__head .patient-request-choice__title {
  flex: 1;
  min-width: 0;
}

.patient-request-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #9fd0ff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.patient-request-selected-badge i {
  font-size: 1rem;
}

.patient-request-card-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(118, 184, 255, 0.14);
  color: #9fd0ff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.patient-request-card--department .patient-request-card-badge {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.patient-request-card--doctor .patient-request-card-badge {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.patient-request-choice.is-selected {
  border-color: rgba(118, 184, 255, 0.55);
  background: linear-gradient(135deg, rgba(118, 184, 255, 0.22), rgba(118, 184, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(118, 184, 255, 0.15);
}

.patient-request-choice__meta--highlight {
  color: #9fd0ff;
  font-weight: 600;
}

.patient-request-review {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(159, 178, 208, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.patient-request-review--compact {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.patient-request-review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.patient-request-review__hospital {
  margin: 0;
  color: var(--patient-text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.patient-request-review__change {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  color: #76b8ff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-review__change:hover,
.patient-request-review__change:focus-visible {
  color: #9fd0ff;
  text-decoration: underline;
}

.patient-request-review__doctor {
  margin: 0.35rem 0 0;
  color: var(--patient-text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.patient-request-step--schedule .patient-request-step__eyebrow {
  margin-bottom: 0.25rem;
}

.patient-request-step--schedule .patient-request-section-title {
  margin-bottom: 0.4rem;
}

.patient-request-step--schedule .patient-request-help {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.patient-request-step--schedule.patient-request-card {
  padding: 0.85rem 1rem 1rem;
}

.patient-request-type-toggle.patient-request-path-toggle {
  margin-bottom: 1rem;
}

.patient-request-type-toggle .patient-request-path-toggle__btn {
  min-height: 46px;
  padding: 0.65rem 0.5rem;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 600;
}

.patient-request-type-toggle .patient-request-path-toggle__btn.is-active {
  border-color: rgba(118, 184, 255, 0.55);
  background: rgba(118, 184, 255, 0.18);
  color: #e8f2ff;
  box-shadow: inset 0 0 0 1px rgba(118, 184, 255, 0.2);
}

.patient-request-subsection-title--compact {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.patient-request-datetime {
  margin-bottom: 1rem;
}

.patient-request-datetime__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.patient-request-field--compact {
  gap: 0.35rem;
  margin-bottom: 0;
}

.patient-request-field--compact .patient-request-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--patient-text-secondary);
}

.patient-request-datetime__picker {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(159, 178, 208, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.patient-request-datetime__value {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  color: var(--patient-text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

.patient-request-datetime__value.is-placeholder {
  color: var(--patient-text-secondary);
  font-weight: 500;
}

.patient-request-datetime__picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.patient-request-field .patient-request-datetime__input {
  width: 100%;
  min-height: 2.875rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(159, 178, 208, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--patient-text-primary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  color-scheme: dark;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.patient-request-field .patient-request-datetime__input:focus {
  outline: none;
  border-color: rgba(118, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(118, 184, 255, 0.14);
}

.patient-request-field .patient-request-datetime__input:focus-visible {
  outline: 2px solid rgba(118, 184, 255, 0.72);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .patient-request-field .patient-request-datetime__input {
    font-size: 1rem;
    min-height: 3rem;
  }
}

.patient-request-step--schedule .patient-request-datetime {
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}

.patient-request-summary-strip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(118, 184, 255, 0.08);
  border: 1px solid rgba(118, 184, 255, 0.16);
  color: #d6e2f5;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.patient-request-form--notes {
  gap: 0.75rem;
}

.patient-request-form--notes .patient-request-field textarea {
  min-height: 5.5rem;
  border-radius: 13px;
  padding: 0.75rem 0.85rem;
}

.patient-request-review__list {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.patient-request-review__list dt {
  margin: 0;
  color: var(--patient-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.patient-request-review__list dd {
  margin: 0.15rem 0 0;
  color: var(--patient-text-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.patient-request-label-optional {
  color: var(--patient-text-secondary);
  font-weight: 500;
}

.patient-request-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(159, 178, 208, 0.14);
  background: linear-gradient(180deg, rgba(11, 20, 37, 0.92), rgba(11, 20, 37, 0.98));
  backdrop-filter: blur(12px);
}

.patient-request-sticky-footer .patient-request-success-note {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.patient-request-sticky-footer--submit-step .patient-request-success-note {
  color: #d6e2f5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.patient-request-sticky-footer .patient-request-help {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.patient-request-sticky-footer__actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.patient-request-sticky-footer__actions .patient-request-secondary-btn {
  flex: 0 0 34%;
  min-width: 0;
  max-width: 42%;
  padding: 0.85rem 0.75rem;
  font-size: 0.84rem;
}

.patient-request-sticky-footer__actions .patient-request-continue-btn,
.patient-request-sticky-footer__actions .patient-request-submit-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 0.85rem;
  font-size: 0.84rem;
}

.patient-request-sticky-footer__actions .patient-request-continue-btn {
  background: transparent;
  border: 2px solid rgba(118, 184, 255, 0.72);
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(118, 184, 255, 0.08);
}

.patient-request-sticky-footer__actions .patient-request-continue-btn:hover:not(:disabled) {
  background: rgba(118, 184, 255, 0.12);
  border-color: rgba(118, 184, 255, 0.9);
  color: #fff;
}

.patient-request-sticky-footer__actions .patient-request-continue-btn:disabled {
  opacity: 1;
  background: transparent;
  border-color: rgba(118, 184, 255, 0.38);
  color: rgba(147, 197, 253, 0.5);
  cursor: not-allowed;
}

.patient-request-sticky-footer__actions .patient-request-continue-btn[hidden],
.patient-request-sticky-footer__actions .patient-request-submit-btn[hidden] {
  display: none !important;
}

/* Wizard: Continue = next step (outlined), not the final action */
.patient-request-continue-btn {
  text-decoration: none;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px solid rgba(118, 184, 255, 0.55);
  background: rgba(118, 184, 255, 0.08);
  color: #cfe6ff;
  box-shadow: none;
}

.patient-request-continue-btn:hover:not(:disabled) {
  background: rgba(118, 184, 255, 0.16);
  border-color: rgba(118, 184, 255, 0.75);
  color: #fff;
}

/* Wizard: Send = final submit (solid, prominent) */
.patient-request-submit-btn {
  text-decoration: none;
  border: none;
  border-radius: 18px;
  padding: 0.95rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #76b8ff 0%, #3d7fe0 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 127, 224, 0.35);
}

.patient-request-submit-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.patient-request-continue-btn:disabled,
.patient-request-submit-btn:disabled,
.patient-request-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.patient-request-sticky-footer--submit-step .patient-request-sticky-footer__actions .patient-request-secondary-btn {
  flex: 0 0 32%;
  max-width: 38%;
}

.patient-request-sticky-footer--submit-step .patient-request-sticky-footer__actions .patient-request-submit-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.patient-request-error-banner {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(13, 25, 46, 0.94));
}

.patient-request-confirmation__list {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.patient-request-page--success .patient-request-hero,
.patient-request-page--success .patient-request-stepper {
  display: none;
}

.patient-request-success-panel__icon {
  font-size: 2.5rem;
  color: #6ee7b7;
  margin-bottom: 0.5rem;
}

.patient-request-page--success .patient-request-wizard-wrap {
  padding-bottom: 1rem;
}

/* Documents page */
.documents-content-inner {
  padding: 0 1rem 6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.documents-demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(118, 184, 255, 0.28);
  background: rgba(118, 184, 255, 0.1);
  color: #cfe6ff;
  font-size: 0.78rem;
  line-height: 1.45;
}

.documents-demo-banner i {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.documents-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  margin-top: 0.5rem;
}

.documents-overview__stat {
  padding: 0.85rem 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(159, 178, 208, 0.14);
  background: linear-gradient(135deg, rgba(13, 25, 46, 0.94), rgba(11, 20, 37, 0.88));
  text-align: center;
}

.documents-overview__value {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.documents-overview__label {
  display: block;
  margin-top: 0.2rem;
  color: var(--patient-text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.documents-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 0.85rem;
}

.documents-section-title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.documents-section-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.documents-category-card {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.1rem 0.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1c2e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.documents-category-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.85rem;
}

.documents-category-card__header:not(.documents-category-card__header--solo) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.documents-category-card__header--solo {
  margin-bottom: 0;
  padding-bottom: 0.85rem;
  border-bottom: none;
}

.documents-category-card__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.documents-category-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.documents-category-card__icon--personal {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.documents-category-card__title {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.documents-category-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.documents-category-card__meta--ok {
  color: #94a3b8;
}

.documents-category-card__meta--empty {
  color: #64748b;
}

.documents-upload-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 12px;
  background: #6366f1;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.documents-upload-btn:hover {
  background: #4f46e5;
}

.documents-upload-btn:active {
  transform: scale(0.98);
}

.documents-upload-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.documents-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.documents-file-list--nested {
  padding-left: 0.25rem;
}

.documents-file-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.documents-file-item:last-child {
  border-bottom: none;
}

.documents-file-item__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.documents-file-item__row--viewable {
  cursor: pointer;
  border-radius: 10px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  transition: background 0.15s ease;
}

.documents-file-item__row--viewable:hover {
  background: rgba(255, 255, 255, 0.04);
}

.documents-file-item__row--viewable:active {
  background: rgba(255, 255, 255, 0.07);
}

.documents-file-item__link {
  flex: 1;
  min-width: 0;
  width: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.55);
  border-radius: 12px;
  background: rgba(55, 65, 81, 0.45);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.documents-file-item__link:hover {
  border-color: rgba(118, 184, 255, 0.35);
  background: rgba(118, 184, 255, 0.08);
}

.documents-file-item--demo .documents-file-item__row {
  opacity: 0.85;
}

.documents-file-item__link--static {
  cursor: default;
  pointer-events: none;
}

.documents-file-item--compact .documents-file-item__link {
  padding: 0.55rem 0.65rem;
}

.documents-file-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
}

.documents-file-item__icon--pdf {
  background: rgba(244, 63, 94, 0.22);
  color: #fb7185;
}

.documents-file-item__icon--image {
  background: rgba(20, 184, 166, 0.22);
  color: #2dd4bf;
}

.documents-file-item__icon--thumb {
  padding: 0;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.55);
}

.documents-file-item__icon--thumb.documents-file-item__icon--image {
  background: rgba(2, 6, 23, 0.55);
}

.documents-file-item__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documents-file-item__icon--file {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.documents-file-item__body {
  flex: 1;
  min-width: 0;
}

.documents-file-item__name {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.documents-file-item__sub {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.documents-file-item__badge {
  flex-shrink: 0;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(118, 184, 255, 0.16);
  color: #9fd0ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.documents-file-item__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.documents-file-item__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.documents-file-item__action-btn:hover,
.documents-file-item__action-btn:focus-visible {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.documents-file-item__action {
  flex-shrink: 0;
  color: #64748b;
  font-size: 1rem;
}

.documents-file-item__delete:hover,
.documents-file-item__delete:focus-visible {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.documents-file-item__delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.documents-file-item--removing {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.documents-empty-inline {
  margin: 0.25rem 0 0 2.25rem;
  color: #6b7280;
  font-size: 0.72rem;
  font-style: italic;
}

/* Documents page — layout + treatment accordions */
body.documents-page.patient-dashboard,
html:not(.native-android-chrome) body.documents-page {
  background-color: var(--patient-bg-primary, #10172A);
  background-image: none;
}

html:not(.native-android-chrome) .documents-page .patient-container {
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background-color: var(--patient-bg-primary, #10172A);
}

.documents-page .documents-content {
  height: auto !important;
  min-height: calc(100vh - 140px);
  overflow: visible !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8rem !important;
}

.documents-page .treatment-accordion-item {
  background: rgba(14, 26, 48, 0.92);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.875rem;
  border: 1px solid rgba(133, 164, 213, 0.16);
  box-shadow: 0 4px 16px rgba(2, 8, 23, 0.2);
}

.documents-page .treatment-accordion-item.is-open {
  overflow: visible;
}

.documents-page .treatment-accordion-trigger {
  width: 100%;
  border: none;
  background: rgba(17, 28, 48, 0.65);
  color: inherit;
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  font-family: inherit;
}

.documents-page .treatment-accordion-item.is-open .treatment-accordion-trigger {
  border-bottom-color: rgba(133, 164, 213, 0.14);
  background: rgba(20, 34, 58, 0.85);
}


html[data-theme="light"] 
.documents-page .treatment-accordion-item.is-open .treatment-accordion-trigger {
  background-color: #fff;
}

.treatment-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.treatment-accordion-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.treatment-accordion-subrow {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  gap: 0.5rem;
}

.treatment-accordion-subrow__case {
  color: #9ca3af;
  font-size: 12px;
}

.treatment-accordion-subrow__status {
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.treatment-accordion-chevron {
  color: #9ca3af;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.treatment-accordion-item.is-open .treatment-accordion-chevron {
  transform: rotate(180deg);
}

.documents-page .treatment-accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  padding: 0 0.85rem;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.documents-page .treatment-accordion-item.is-open .treatment-accordion-panel {
  max-height: none !important;
  opacity: 1;
  transform: translateY(0);
  padding: 0.85rem;
  overflow: visible !important;
}

.documents-page .treatment-doc-row {
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid rgba(55, 65, 81, 0.45);
}

.documents-page .treatment-doc-row:last-child {
  margin-bottom: 0 !important;
}

.documents-page .treatment-doc-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.treatment-doc-row__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.treatment-doc-row__label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.documents-page .treatment-doc-row__upload-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.45);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.documents-page .treatment-doc-row__upload-btn:hover,
.documents-page .treatment-doc-row__upload-btn:focus {
  background: rgba(37, 99, 235, 0.38);
  color: #dbeafe;
  border-color: rgba(118, 184, 255, 0.65);
  outline: none;
}

.documents-page .treatment-doc-row__upload-btn:active {
  transform: scale(0.96);
}

.documents-page .treatment-doc-row__upload-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.documents-page .documents-empty-inline {
  margin: 0.5rem 0 0;
  padding-left: 2.25rem;
}

.treatment-doc-link {
  color: #60a5fa;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-theme="light"] .documents-page .treatment-doc-link {
  color: #2563eb;
}

.documents-empty-state {
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  background-color: #1f2937;
  margin-bottom: 2rem;
}

.documents-empty-state p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

.documents-exam-title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 16px;
  margin: 0 0 12px 4px;
}

.documents-exam-card {
  padding: 1rem;
  border-radius: 12px;
  background-color: #1f2937;
  margin-bottom: 0.75rem;
}

.documents-exam-card__btn {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.documents-exam-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.documents-exam-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.documents-exam-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.documents-exam-card__icon i {
  color: #9333ea;
  font-size: 20px;
}

.documents-exam-card__title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 14px;
  margin: 0;
}

.documents-exam-card__date {
  color: #9ca3af;
  font-size: 12px;
}

.documents-exam-card__chevron {
  color: #6b7280;
}

.documents-exam-more {
  text-align: center;
  margin-top: 1rem;
}

.documents-exam-more__btn {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #374151;
  color: #e5e7eb;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* Medical history page */
.medical-history-page .medical-history-content {
  padding: 0 1rem 5.5rem 1rem;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.medical-history-search-wrap {
  position: relative;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.medical-history-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}

.medical-history-search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border-radius: 12px;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb;
  font-size: 14px;
  font-family: inherit;
}

.medical-history-search-input::placeholder {
  color: #9ca3af;
}

.medical-history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.medical-history-event {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 1rem;
  border-radius: 12px;
  background-color: #1f2937;
  margin-bottom: 12px;
  transition: background-color 0.2s;
  font-family: inherit;
}

.medical-history-event:hover {
  background-color: #374151;
}

.medical-history-event__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.medical-history-event__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medical-history-event__icon i {
  font-size: 20px;
}

.medical-history-event__body {
  flex: 1;
  min-width: 0;
}

.medical-history-event__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  gap: 8px;
}

.medical-history-event__title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 16px;
  margin: 0;
}

.medical-history-event__date {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

.medical-history-event__subtitle {
  color: #e5e7eb;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.medical-history-event__details {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.medical-history-empty,
.medical-history-no-results {
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background-color: #1f2937;
}

.medical-history-empty i,
.medical-history-no-results i {
  color: #9ca3af;
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.medical-history-empty p,
.medical-history-no-results p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* Patient medications page */
.patient-medications-page .patient-med-content {
  padding: 0 1rem 1rem 1rem;
}

.patient-med-panel {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
}

.patient-med-panel--upload {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.patient-med-panel--summary {
  margin-bottom: 1.5rem;
}

.patient-med-panel__title {
  color: #60a5fa;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-med-panel__title--summary {
  color: #e2e8f0;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.patient-med-panel__lead {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 16px 0;
}

.patient-med-panel__lead--summary {
  font-size: 14px;
  margin: 0;
}

.patient-med-field-label {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.patient-med-select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 14px;
}

.patient-med-preview-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  background: #0f172a;
}

.patient-med-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.patient-med-btn--photo {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.patient-med-btn--remove {
  margin-top: 12px;
  padding: 10px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 13px;
}

.patient-med-btn--submit {
  margin-top: 16px;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.patient-med-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.patient-med-stat-badge {
  background: rgba(96, 165, 250, 0.15);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  border: 1px solid rgba(96, 165, 250, 0.3);
  text-align: right;
}

.patient-med-stat-badge__value {
  color: #60a5fa;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.patient-med-stat-badge__label {
  color: #94a3b8;
  font-size: 11px;
  margin-top: 2px;
}

.patient-med-alert {
  margin-top: 12px;
  background: rgba(251, 191, 36, 0.15);
  border-left: 3px solid #fbbf24;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 600;
}

.patient-med-section {
  margin: 0 1rem 1.5rem 1rem;
}

.patient-med-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-med-section-title--prescription {
  color: #fbbf24;
}

.patient-med-section-title--pending {
  color: #f59e0b;
}

.patient-med-section-title--completed {
  color: #34d399;
}

.patient-med-card-link {
  text-decoration: none;
  display: block;
}

.patient-med-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.patient-med-card-link:hover .patient-med-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.patient-med-card--prescription {
  border: 1px solid #fbbf24;
}

.patient-med-card--pending {
  border: 1px solid #f59e0b;
}

.patient-med-card--completed {
  border: 1px solid #34d399;
}

.patient-med-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.patient-med-card__thumb img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.patient-med-card__thumb--prescription img {
  border: 2px solid #fbbf24;
}

.patient-med-card__thumb--pending img {
  border: 2px solid #f59e0b;
}

.patient-med-card__thumb--completed img {
  border: 2px solid #34d399;
}

.patient-med-card__placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.patient-med-card__placeholder--prescription {
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid #fbbf24;
}

.patient-med-card__placeholder--prescription i {
  font-size: 28px;
  color: #fbbf24;
}

.patient-med-card__placeholder--pending {
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid #f59e0b;
}

.patient-med-card__placeholder--pending i {
  font-size: 28px;
  color: #f59e0b;
}

.patient-med-card__placeholder--completed {
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid #34d399;
}

.patient-med-card__placeholder--completed i {
  font-size: 28px;
  color: #34d399;
}

.patient-med-card__body {
  flex: 1;
  min-width: 0;
}

.patient-med-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.patient-med-card__name {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.patient-med-card__sub {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 0 4px 0;
}

.patient-med-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.patient-med-status-badge--prescription {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.patient-med-status-badge--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.patient-med-status-badge--completed {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.6);
}

.patient-med-items-box {
  background: rgba(30, 41, 59, 0.8);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #334155;
}

.patient-med-items-box__label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.patient-med-item {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
}

.patient-med-item__usage {
  color: #94a3b8;
  font-size: 11px;
  margin-top: 2px;
}

.patient-med-item__divider {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin: 4px 0;
}

.patient-med-item--substitute {
  padding-left: 8px;
  border-left: 2px solid #fbbf24;
}

.patient-med-substitute-label {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.patient-med-price-tag {
  display: inline-block;
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.patient-med-price-tag--pending {
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.patient-med-price-tag--completed {
  border: 1px solid rgba(52, 211, 153, 0.6);
}

.patient-med-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.patient-med-card__footer--completed {
  font-size: 11px;
}

.patient-med-waiting {
  color: #fbbf24;
  font-size: 11px;
}

.patient-med-total-price {
  display: inline-block;
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.patient-med-total-price--pending {
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.patient-med-total-price--completed {
  border: 1px solid rgba(52, 211, 153, 0.6);
}

.patient-med-pickup-cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

.patient-med-pickup-cta i:first-child {
  color: #f59e0b;
  font-size: 16px;
}

.patient-med-pickup-cta i:last-child {
  color: #f59e0b;
  font-size: 14px;
}

.patient-med-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.patient-med-empty__icon {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.patient-med-empty__title {
  color: #6b7280;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.patient-med-empty__text {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 640px) {
  .patient-header-card,
  .patient-appointments-cta,
  .patient-request-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .patient-request-row {
    grid-template-columns: 1fr;
  }

  .patient-request-path-toggle {
    grid-template-rows: 1fr;
  }

  .patient-request-type-toggle.patient-request-path-toggle {
    grid-template-columns: 1fr 1fr;
  }

  .patient-request-datetime__row {
    grid-template-columns: 1fr 1fr;
  }

  .patient-request-sticky-footer__actions {
    flex-direction: row;
  }

  .patient-request-sticky-footer--submit-step .patient-request-sticky-footer__actions .patient-request-secondary-btn {
    flex: 0 0 32%;
    max-width: 38%;
  }

  .patient-request-sticky-footer--submit-step .patient-request-sticky-footer__actions .patient-request-submit-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.76rem;
    padding: 0.7rem 0.6rem;
  }

  .patient-request-scroll-spacer {
    height: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  }

  .patient-request-hospital-pagination--bottom {
    margin-bottom: 0.35rem;
  }

  .patient-app-brand__label {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   Light theme — patient portal (dark remains default via data-theme="dark")
   ========================================================================== */
html[data-theme="light"] {
  --patient-bg-primary: #f4f7fb;
  --patient-bg-secondary: #eef2f7;
  --patient-bg-card: #ffffff;
  --patient-bg-card-hover: #f1f5f9;
  --patient-text-primary: #0f172a;
  --patient-text-secondary: #64748b;
  --patient-accent-blue: #2563eb;
  --patient-accent-gold: #d97706;
  --patient-accent-green: #059669;
  --patient-accent-red: #dc2626;
  --patient-border: #e2e8f0;
  --patient-shadow-xl: 0 18px 40px rgba(15, 23, 42, 0.08);
  --patient-surface: #ffffff;
  --patient-surface-muted: #f8fafc;
  --patient-surface-border: #e2e8f0;
  --patient-label: #64748b;
  --patient-heading: #0f172a;
  --patient-body-muted: #475569;
  --patient-overlay-backdrop: rgba(15, 23, 42, 0.55);
  --patient-overlay-surface: linear-gradient(160deg, #ffffff, #f4f8ff);
  --patient-overlay-surface-solid: #ffffff;
  --patient-overlay-border: rgba(15, 23, 42, 0.08);
  --patient-overlay-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --patient-overlay-handle: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .patient-dashboard {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-page-header,
html[data-theme="light"] .patient-header {
  background-color: var(--patient-bg-primary);
}

html[data-theme="light"] .patient-header .profile-context {
  color: var(--patient-body-muted);
}

html[data-theme="light"] .patient-bottom-nav {
  background-color: var(--patient-bg-card);
  border-top-color: var(--patient-border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-bottom-nav .nav-btn.active {
  background: rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .patient-card,
html[data-theme="light"] .patient-profile-card,
html[data-theme="light"] .patient-profile-summary-list,
html[data-theme="light"] .patient-profile-history-card,
html[data-theme="light"] .patient-profile-settings-group,
html[data-theme="light"] .patient-treatment-case-summary,
html[data-theme="light"] .patient-treatment-case-card,
html[data-theme="light"] .patient-travel-stat-card,
html[data-theme="light"] .patient-appointments-stat-card,
html[data-theme="light"] .patient-treatment-stats-strip,
html[data-theme="light"] .appointment-detail-card,
html[data-theme="light"] .patient-appointment-card,
html[data-theme="light"] .patient-travel-trip-card {
  background: var(--patient-surface);
  border-color: var(--patient-surface-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-profile-summary-row:hover,
html[data-theme="light"] .patient-appointment-card:hover {
  background: var(--patient-bg-card-hover);
}

html[data-theme="light"] .patient-profile-name,
html[data-theme="light"] .patient-profile-page-title,
html[data-theme="light"] .patient-treatment-case-summary-title,
html[data-theme="light"] .patient-travel-page-title,
html[data-theme="light"] .patient-profile-summary-stat,
html[data-theme="light"] .patient-profile-history-title,
html[data-theme="light"] .patient-treatment-slide-title,
html[data-theme="light"] .appointment-detail-doctor-name,
html[data-theme="light"] .patient-appointment-card__doctor {
  color: var(--patient-heading);
}

html[data-theme="light"] .patient-profile-meta,
html[data-theme="light"] .patient-profile-summary-label,
html[data-theme="light"] .patient-profile-detail-row dt,
html[data-theme="light"] .patient-treatment-case-progress-label,
html[data-theme="light"] .patient-travel-section-label,
html[data-theme="light"] .patient-appointments-stat-label {
  color: var(--patient-label);
}

html[data-theme="light"] .patient-profile-detail-row dd,
html[data-theme="light"] .patient-profile-summary-stat,
html[data-theme="light"] .patient-treatment-case-progress-stat,
html[data-theme="light"] .patient-appointment-card__meta-row span {
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-profile-settings-btn {
  background: var(--patient-surface-muted);
  color: var(--patient-heading);
  border: 1px solid var(--patient-surface-border);
}

html[data-theme="light"] .patient-profile-settings-btn:hover {
  background: #eef2f7;
}

html[data-theme="light"] .patient-profile-settings-btn i {
  color: var(--patient-text-secondary);
}

html[data-theme="light"] .patient-profile-account-block {
  border-top-color: var(--patient-border);
}

html[data-theme="light"] .patient-profile-settings-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-profile-settings-btn--danger:hover {
  background: #fee2e2;
}

html[data-theme="light"] .patient-treatment-attention {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f97316;
}

html[data-theme="light"] .patient-treatment-attention-head h2 {
  color: #9a3412;
}

html[data-theme="light"] .patient-treatment-attention-head i {
  color: #ea580c;
}

html[data-theme="light"] .patient-treatment-attention-lead {
  color: #7c2d12;
}

html[data-theme="light"] .patient-treatment-attention-sub {
  color: #9a3412;
}

html[data-theme="light"] .patient-treatment-slide-progress-track,
html[data-theme="light"] .patient-treatment-case-progress-track {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-slider-section {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.5) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid var(--patient-surface-border);
}

html[data-theme="light"] .patient-treatment-slide-card {
  border-color: var(--patient-surface-border);
}

html[data-theme="light"] .patient-profile-history-card {
  background: var(--patient-surface);
}

html[data-theme="light"] .patient-profile-history-category,
html[data-theme="light"] .patient-profile-history-date {
  color: var(--patient-text-secondary);
}

html[data-theme="light"] .patient-travel-filter,
html[data-theme="light"] .patient-appointments-tabs {
  background: var(--patient-surface-muted);
  border-color: var(--patient-surface-border);
}

html[data-theme="light"] .patient-travel-filter-btn,
html[data-theme="light"] .patient-appointments-tab {
  color: var(--patient-text-secondary);
}

html[data-theme="light"] .patient-travel-filter-btn.is-active,
html[data-theme="light"] .patient-appointments-tab.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-app-header__action {
  background: var(--patient-surface);
  border-color: var(--patient-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: var(--patient-heading);
}

html[data-theme="light"] .patient-sidebar-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .patient-sidebar__panel {
  background: var(--patient-surface);
  border-color: var(--patient-surface-border);
  box-shadow: var(--patient-shadow-xl);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-sidebar__top {
  border-bottom-color: var(--patient-border);
}

html[data-theme="light"] .patient-sidebar__close {
  background: var(--patient-surface-muted);
  border-color: var(--patient-surface-border);
  color: var(--patient-heading);
}

html[data-theme="light"] .patient-sidebar__item {
  background: var(--patient-surface-muted);
  border-color: var(--patient-surface-border);
}

html[data-theme="light"] .patient-sidebar__item:hover {
  background: var(--patient-bg-card-hover);
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-sidebar__icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(217, 119, 6, 0.1));
  color: var(--patient-accent-blue);
}

html[data-theme="light"] .patient-sidebar__item--danger {
  background: #fef2f2;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-sidebar__item--danger .patient-sidebar__icon {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

html[data-theme="light"] .patient-sidebar__item-title {
  color: var(--patient-heading);
}

html[data-theme="light"] .patient-sidebar__item-subtitle {
  color: var(--patient-text-secondary);
}

html[data-theme="light"] .patient-sidebar__chevron {
  color: var(--patient-text-secondary);
}

/* Profile — theme toggle control */
.patient-profile-theme-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0.85rem;
  min-height: 3.25rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

html[data-theme="light"] .patient-profile-theme-setting {
  background: var(--patient-surface-muted);
  border: 1px solid var(--patient-surface-border);
}

.patient-profile-theme-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.patient-profile-theme-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
}

html[data-theme="light"] .patient-profile-theme-label {
  color: var(--patient-heading);
}

.patient-profile-theme-hint {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.35;
}

html[data-theme="light"] .patient-profile-theme-hint {
  color: var(--patient-text-secondary);
}

.patient-profile-theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  gap: 2px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

html[data-theme="light"] .patient-profile-theme-toggle {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.patient-profile-theme-option {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  min-height: 2rem;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.patient-profile-theme-option.is-active {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

html[data-theme="light"] .patient-profile-theme-option {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-theme-option.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Light theme — Patient home / journey (patient.php)
   Soft clinical palette aligned with hero & feature photography
   ========================================================================== */
html[data-theme="light"] .patient-home-page.patient-journey-page,
html[data-theme="light"] .patient-journey-page.patient-home-page {
  background-color: #eef2f7;
  color: #1e293b;
}

html[data-theme="light"] .patient-home-page .patient-header .profile-name {
  color: #0f172a;
}

html[data-theme="light"] .patient-home-page .patient-header .profile-subtitle,
html[data-theme="light"] .patient-home-page .patient-header .profile-context {
  color: #64748b;
}

html[data-theme="light"] .patient-home-page .patient-index-section-title {
  color: #0f172a;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

html[data-theme="light"] .patient-home-page.patient-journey-page {
  background-color: #eef2f7;
  color: #1e293b;
}

html[data-theme="light"] .patient-home-v2 {
  --dash-bg-page: #eef2f7;
  --dash-bg-card: #ffffff;
  --dash-border: #e2e8f0;
  --dash-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --dash-text-primary: #0f172a;
  --dash-text-secondary: #64748b;
  --dash-text-muted: #94a3b8;
}

html[data-theme="light"] a.patient-dash-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-dash-stepper__dot {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

html[data-theme="light"] .patient-dash-stepper__step:not(:last-child)::after {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-dash-stepper__step.is-complete:not(:last-child)::after {
  background: #3eb7a2;
}

html[data-theme="light"] .patient-dash-stepper__step.is-complete .patient-dash-stepper__label {
  color: #647184;
}

html[data-theme="light"] .patient-dash-progress {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-dash-next__icon {
  background: rgba(245, 158, 11, 0.1);
}

/* Light theme only — swap to light-background upload illustration */
html[data-theme="light"] .patient-dash-next__thumb-img--dark {
  display: none;
}

html[data-theme="light"] .patient-dash-next__thumb-img--light {
  display: block;
}

html[data-theme="light"] .patient-dash-next__thumb {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="light"] .patient-dash-next__thumb--complete .patient-dash-next__thumb-img--light {
  filter: none;
}

html[data-theme="light"] .patient-dash-event__icon {
  background: rgba(59, 130, 246, 0.1);
}

html[data-theme="light"] .patient-dash-upcoming__icon--appointment {
  background: rgba(59, 130, 246, 0.1);
}

html[data-theme="light"] .patient-dash-upcoming__icon--travel {
  background: rgba(56, 189, 248, 0.1);
}

html[data-theme="light"] a.patient-dash-upcoming__item:hover {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] a.patient-dash-upcoming__item:active {
  background: rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .patient-home-greeting__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-home-greeting__status {
  color: #64748b;
}

html[data-theme="light"] .patient-home-greeting__status-active,
html[data-theme="light"] .patient-home-greeting__status-live {
  color: #059669;
}

html[data-theme="light"] .patient-home-greeting__link {
  color: #2d62b8;
}

html[data-theme="light"] .patient-home-section-label {
  color: #64748b;
}

html[data-theme="light"] .patient-dash-next__title,
html[data-theme="light"] .patient-dash-event__title,
html[data-theme="light"] .patient-dash-upcoming__title,
html[data-theme="light"] .patient-dash-timeline__title,
html[data-theme="light"] .patient-dash-timeline__empty-title,
html[data-theme="light"] .patient-dash-upcoming__empty-title,
html[data-theme="light"] .patient-dash-support__title,
html[data-theme="light"] .patient-dash-card__title,
html[data-theme="light"] .patient-dash-stepper__current-value {
  color: #647184;
}

html[data-theme="light"] .patient-dash-next__text,
html[data-theme="light"] .patient-dash-next__required,
html[data-theme="light"] .patient-dash-next__counter,
html[data-theme="light"] .patient-dash-event__meta,
html[data-theme="light"] .patient-dash-upcoming__meta,
html[data-theme="light"] .patient-dash-timeline__when,
html[data-theme="light"] .patient-dash-timeline__countdown,
html[data-theme="light"] .patient-dash-timeline__empty-desc,
html[data-theme="light"] .patient-dash-upcoming__countdown,
html[data-theme="light"] .patient-dash-upcoming__empty-desc,
html[data-theme="light"] .patient-dash-support__text,
html[data-theme="light"] .patient-dash-stepper__current-label {
  color: #64748b;
}

html[data-theme="light"] .patient-dash-timeline__link {
  color: #2563eb;
}

html[data-theme="light"] .patient-dash-timeline__item:first-child .patient-dash-timeline__body {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.05), 0 4px 16px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .patient-dash-timeline__item:not(:last-child)::after {
  background: #e2e8f0;
}

html[data-theme="light"] span.patient-dash-btn--amber {
  color: #ffffff;
}

html[data-theme="light"] .patient-dash-stepper__step.is-current .patient-dash-stepper__label {
  color: #0f172a;
}

html[data-theme="light"] .patient-dash-support__link {
  color: #64748b;
  background: #e2e8f0;
}

html[data-theme="light"] .patient-dash-support__link:hover,
html[data-theme="light"] .patient-dash-support__link:focus-visible {
  color: #2563eb;
  background: #d8dee8;
}

html[data-theme="light"] .patient-journey-hub__item {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .patient-journey-hub__copy strong {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-hub__copy span {
  color: #64748b;
}

/* Hero — airy overlay so the clinical photo reads clearly */
html[data-theme="light"] .patient-index-hero {
  border-color: #cbd5e1;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .patient-index-hero__overlay {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(224, 242, 254, 0.72) 42%,
    rgba(186, 230, 253, 0.88) 100%
  );
}

html[data-theme="light"] .patient-index-hero__eyebrow {
  color: #0369a1;
}

html[data-theme="light"] .patient-index-hero__title {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .patient-index-hero__subtitle {
  color: #334155;
  font-weight: 500;
}

html[data-theme="light"] .patient-index-hero__chip {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* Quick links — white tiles, photo-matched icon colors */
html[data-theme="light"] .patient-index-quick__item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-index-quick__item:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .patient-index-quick__label {
  color: #334155;
  font-size: 0.75rem;
}

html[data-theme="light"] .patient-index-quick__icon--travel {
  background: #ecfdf5;
  color: #059669;
}

html[data-theme="light"] .patient-index-quick__icon--visit {
  background: #eff6ff;
  color: #2563eb;
}

html[data-theme="light"] .patient-index-quick__icon--docs {
  background: #fffbeb;
  color: #d97706;
}

html[data-theme="light"] .patient-index-quick__icon--case {
  background: #f5f3ff;
  color: #7c3aed;
}

/* Care pathway timeline */
html[data-theme="light"] .patient-index-timeline__dot {
  color: #64748b;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-index-timeline__step.is-complete .patient-index-timeline__dot {
  color: #ffffff;
  background: #059669;
  border-color: #10b981;
}

html[data-theme="light"] .patient-index-timeline__step.is-current .patient-index-timeline__dot {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .patient-index-timeline__label {
  color: #64748b;
  font-size: 0.7rem;
}

html[data-theme="light"] .patient-index-timeline__step.is-current .patient-index-timeline__label {
  color: #1d4ed8;
  font-weight: 700;
}

/* Highlight feature cards — photos stay vivid; light scrim + dark text at bottom */
html[data-theme="light"] .patient-index-feature {
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .patient-index-feature__shade {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(241, 245, 249, 0.75) 62%,
    rgba(248, 250, 252, 0.97) 100%
  );
}

html[data-theme="light"] .patient-index-feature__tag {
  color: #0369a1;
}

html[data-theme="light"] .patient-index-feature--travel .patient-index-feature__tag {
  color: #047857;
}

html[data-theme="light"] .patient-index-feature--care .patient-index-feature__tag {
  color: #1d4ed8;
}

html[data-theme="light"] .patient-index-feature__body strong {
  color: #0f172a;
  font-size: 0.875rem;
}

html[data-theme="light"] .patient-index-feature__body span:last-child {
  color: #475569;
  font-size: 0.75rem;
}

/* Next step card */
html[data-theme="light"] .patient-index-next-card {
  background: #ffffff;
  border-color: #fcd34d;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-index-next-card__thumb {
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-index-next-card__title {
  color: #0f172a;
  font-size: 1rem;
}

html[data-theme="light"] .patient-index-next-card__text {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
}

html[data-theme="light"] .patient-journey-pill {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

html[data-theme="light"] .patient-journey-progress {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-journey-progress__bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

html[data-theme="light"] .patient-journey-btn--primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

html[data-theme="light"] .patient-journey-btn--secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .patient-journey-btn--outline {
  border-color: #60a5fa;
  color: #1d4ed8;
  background: #eff6ff;
}

html[data-theme="light"] .patient-journey-btn--support {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Treatment case card with hospital image */
html[data-theme="light"] .patient-journey-case-card,
html[data-theme="light"] .patient-journey-case-card--visual {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-journey-case-card__content {
  background: #ffffff;
}

html[data-theme="light"] .patient-journey-case-card__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-status--active {
  color: #047857;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .patient-journey-case-card__flag {
  color: #b45309;
}

html[data-theme="light"] .patient-journey-case-card__progress {
  color: #64748b;
  font-size: 0.875rem;
}

/* Trust strip */
html[data-theme="light"] .patient-index-trust__list {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .patient-index-trust__list li {
  color: #475569;
  font-size: 0.75rem;
}

html[data-theme="light"] .patient-index-trust__list i {
  color: #2563eb;
}

/* FAQ */
html[data-theme="light"] .patient-journey-faq {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .patient-journey-faq__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-faq__title i {
  color: #2563eb;
}

html[data-theme="light"] .patient-journey-faq__intro {
  color: #64748b;
  font-size: 0.9rem;
}

html[data-theme="light"] .patient-journey-faq__item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-journey-faq__item[open] {
  background: #eff6ff;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-journey-faq__question {
  color: #1e293b;
  font-size: 0.9375rem;
}

html[data-theme="light"] .patient-journey-faq__question::after {
  border-color: #2563eb;
}

html[data-theme="light"] .patient-journey-faq__answer {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Support block */
html[data-theme="light"] .patient-journey-support {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #93c5fd;
  border-style: solid;
}

html[data-theme="light"] .patient-journey-support__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-support__text {
  color: #475569;
  font-size: 0.9rem;
}

/* Shared journey cards (if used elsewhere on home) */
html[data-theme="light"] .patient-journey-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-journey-card__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-card__text,
html[data-theme="light"] .patient-journey-meta {
  color: #64748b;
}

html[data-theme="light"] .patient-journey-greeting__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-journey-eyebrow {
  color: #0369a1;
}

/* Header shell on home */
html[data-theme="light"] .patient-home-page .patient-header-shell {
  background: rgba(238, 242, 247, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-home-page .patient-app-header__action {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-home-page .patient-app-brand__label {
  color: #0f172a;
}

/* ==========================================================================
   Light theme — Appointments list (appointments.php)
   ========================================================================== */
html[data-theme="light"] .patient-appointments-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-appointments-page .profile-name {
  color: var(--patient-heading);
}

html[data-theme="light"] .patient-appointments-page .profile-subtitle {
  color: var(--patient-body-muted);
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-stat-card--next {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-stat-card--total {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #6ee7b7;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-stat-label {
  color: #64748b;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-stat-value {
  color: #0f172a;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-tabs {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 0 #e2e8f0;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-tab {
  color: #64748b;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-tab.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-bottom-color: #2563eb;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card--past {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  opacity: 1;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card--past .patient-appointment-card__icon {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__doctor {
  color: #0f172a;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__dept {
  color: #64748b;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__meta-row i {
  color: #94a3b8;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__meta-row i.bi-geo-alt,
html[data-theme="light"] .patient-appointments-page .patient-appointment-card__meta-row i.bi-camera-video,
html[data-theme="light"] .patient-appointments-page .patient-appointment-card__meta-row i.bi-telephone {
  color: #2563eb;
}

html[data-theme="light"] .patient-appointments-page .patient-appointment-card__meta-row span {
  color: #334155;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-empty {
  color: #64748b;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-empty i {
  color: #94a3b8;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-empty p {
  color: #475569;
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-cta {
  background: transparent;
  /* border-color: #e2e8f0; */
  /* box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06); */
}

html[data-theme="light"] .patient-appointments-page .patient-appointments-cta__button {
  background: #6d5ce8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

html[data-theme="light"] .patient-appointments-page .patient-request-confirmation {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .patient-appointments-page .patient-request-confirmation__title {
  color: #047857;
}

html[data-theme="light"] .patient-appointments-page .patient-request-confirmation__meta {
  color: #166534;
}

/* ==========================================================================
   Light theme — Appointment detail (appointment_detail.php)
   ========================================================================== */
html[data-theme="light"] .appointment-detail-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .appointment-detail-page .patient-page-header h1 {
  color: var(--patient-heading) !important;
}

html[data-theme="light"] .appointment-detail-page .patient-page-header p {
  color: var(--patient-body-muted) !important;
}

html[data-theme="light"] .appointment-detail-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .appointment-detail-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card-title {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-doctor-name {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-doctor-dept {
  color: #64748b;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-meta-row i {
  color: #94a3b8;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-meta-row i.bi-geo-alt,
html[data-theme="light"] .appointment-detail-page .appointment-detail-meta-row i.bi-camera-video,
html[data-theme="light"] .appointment-detail-page .appointment-detail-meta-row i.bi-telephone {
  color: #2563eb;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-meta-row span {
  color: #334155;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-chip span {
  color: #334155;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--video {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #6ee7b7;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--video .appointment-detail-card-title,
html[data-theme="light"] .appointment-detail-page .appointment-detail-card--video p {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--video .appointment-detail-subtitle {
  color: #475569;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-video-head i {
  color: #059669;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-video-btn {
  background: #059669;
  border-color: #047857;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-video-btn span,
html[data-theme="light"] .appointment-detail-page .appointment-detail-video-btn i {
  color: #ffffff;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--consent-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--consent-success {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-consent-title {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-consent-title i.bi-file-earmark-text {
  color: #d97706;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-card--consent-success .appointment-detail-consent-title i.bi-file-earmark-text {
  color: #059669;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-consent-badge--warning {
  color: #b45309;
  background: #fef3c7;
  border-color: #fcd34d;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-consent-badge--success {
  color: #047857;
  background: #d1fae5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-info-box {
  background: #eff6ff;
  border-color: #93c5fd;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-info-box > i {
  color: #2563eb;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-info-box p {
  color: #334155;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-info-close {
  color: #64748b;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-btn-link--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-btn-link--success {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
}

html[data-theme="light"] .appointment-detail-page .consent-file-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .appointment-detail-page .consent-file-input::file-selector-button {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

html[data-theme="light"] .appointment-detail-page .consent-file-input:hover::file-selector-button {
  background: #1d4ed8;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-msg--success {
  color: #047857;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-msg--error {
  color: #b91c1c;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-location-card {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-location-title {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-clinic-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-clinic-info h4 {
  color: #0f172a;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-clinic-info p {
  color: #475569;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-map-preview {
  border-color: #e2e8f0;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-action-primary {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="light"] .appointment-detail-page .appointment-detail-action-secondary {
  background: #f1f5f9;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

html[data-theme="light"] .appointment-request-detail-page {
  --appt-req-bg: #f8fafc;
  --appt-req-card: #ffffff;
  --appt-req-border: #e2e8f0;
  --appt-req-text: #0f172a;
  --appt-req-muted: #64748b;
}

html[data-theme="light"] .appointment-request-detail-page .appt-req-summary {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .appointment-request-detail-page .appt-req-reference__code {
  background: #f8fafc;
  color: #334155;
}

html[data-theme="light"] .appointment-request-detail-page .appt-req-detail__actions {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.92) 24%, rgba(248, 250, 252, 0.98) 100%);
  border-top-color: #e2e8f0;
}

/* ==========================================================================
   Light theme — Documents (documents.php)
   ========================================================================== */
html[data-theme="light"] .documents-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);

  color: #738192;
}

html[data-theme="light"] .documents-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .documents-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-overview__stat {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .documents-page .documents-overview__value {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-overview__label {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-section-title {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-section-badge {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-category-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .documents-page .documents-category-card__header:not(.documents-category-card__header--solo) {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .documents-category-card__title {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-category-card__meta--ok {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-category-card__meta--empty {
  color: #94a3b8;
}

html[data-theme="light"] .documents-page .documents-category-card__icon--personal {
  background: #eef2ff;
  color: #6366f1;
}

html[data-theme="light"] .documents-page .documents-upload-btn {
  background: #6366f1;
  color: #ffffff;
}

html[data-theme="light"] .documents-page .documents-upload-btn:hover {
  background: #4f46e5;
}

html[data-theme="light"] .documents-page .documents-file-item {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .documents-file-item__link {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .documents-file-item__link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

html[data-theme="light"] .documents-page .documents-file-item--demo .documents-file-item__link {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-style: dashed;
}

html[data-theme="light"] .documents-page .documents-file-item__icon--pdf {
  background: #fff1f2;
  color: #e11d48;
}

html[data-theme="light"] .documents-page .documents-file-item__icon--image {
  background: #ecfdf5;
  color: #0d9488;
}

html[data-theme="light"] .documents-page .documents-file-item__icon--thumb,
html[data-theme="light"] .documents-page .documents-file-item__icon--thumb.documents-file-item__icon--image {
  background: #e2e8f0;
}

html[data-theme="light"] .documents-page .documents-file-item__icon--file {
  background: #eef2ff;
  color: #6366f1;
}

html[data-theme="light"] .documents-page .documents-file-item__name {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-file-item__sub {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-file-item__row--viewable:hover {
  background: #f8fafc;
}

html[data-theme="light"] .documents-page .documents-file-item__row--viewable:active {
  background: #f1f5f9;
}

html[data-theme="light"] .documents-page .documents-file-item__action-btn {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-file-item__action-btn:hover,
html[data-theme="light"] .documents-page .documents-file-item__action-btn:focus-visible {
  color: #334155;
  background: #f1f5f9;
}

html[data-theme="light"] .documents-page .documents-file-item__action {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-file-item__delete:hover,
html[data-theme="light"] .documents-page .documents-file-item__delete:focus-visible {
  color: #dc2626;
  background: #fef2f2;
}

html[data-theme="light"] .documents-page .documents-empty-inline {
  color: #94a3b8;
}

html[data-theme="light"] .documents-page .documents-demo-banner {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

html[data-theme="light"] .documents-page .treatment-accordion-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .treatment-accordion-trigger {
  background: #f8fafc;
}

html[data-theme="light"] .documents-page .treatment-accordion-item.is-open .treatment-accordion-trigger {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .treatment-accordion-title {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .treatment-accordion-subrow__case {
  color: #64748b;
}

html[data-theme="light"] .documents-page .treatment-accordion-subrow__status {
  color: #047857;
}

html[data-theme="light"] .documents-page .treatment-accordion-chevron {
  color: #64748b;
}

html[data-theme="light"] .documents-page .treatment-doc-row {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .treatment-doc-row__label {
  color: #334155;
}

html[data-theme="light"] .documents-page .treatment-doc-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .documents-page .treatment-doc-row__upload-btn {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

html[data-theme="light"] .documents-page .treatment-doc-row__upload-btn:hover,
html[data-theme="light"] .documents-page .treatment-doc-row__upload-btn:focus {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #60a5fa;
}

html[data-theme="light"] .documents-page .documents-empty-state {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .documents-page .documents-empty-state p {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-exam-title {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-exam-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .documents-page .documents-exam-card__icon {
  background: #f5f3ff;
}

html[data-theme="light"] .documents-page .documents-exam-card__title {
  color: #0f172a;
}

html[data-theme="light"] .documents-page .documents-exam-card__date {
  color: #64748b;
}

html[data-theme="light"] .documents-page .documents-exam-more__btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Light theme — Medical history (medical_history.php)
   ========================================================================== */
html[data-theme="light"] .medical-history-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .medical-history-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .medical-history-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .medical-history-page .medical-history-search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .medical-history-page .medical-history-search-input::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .medical-history-page .medical-history-search-icon {
  color: #94a3b8;
}

html[data-theme="light"] .medical-history-page .filter-btn {
  background: #f1f5f9;
  color: #475569;
}

html[data-theme="light"] .medical-history-page .filter-btn.active {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="light"] .medical-history-page .medical-history-event {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .medical-history-page .medical-history-event:hover {
  background: #f8fafc;
  border-color: #bfdbfe;
}

html[data-theme="light"] .medical-history-page .medical-history-event__title {
  color: #0f172a;
}

html[data-theme="light"] .medical-history-page .medical-history-event__subtitle {
  color: #334155;
}

html[data-theme="light"] .medical-history-page .medical-history-event__details,
html[data-theme="light"] .medical-history-page .medical-history-event__date {
  color: #64748b;
}

html[data-theme="light"] .medical-history-page .medical-history-empty,
html[data-theme="light"] .medical-history-page .medical-history-no-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .medical-history-page .medical-history-empty p,
html[data-theme="light"] .medical-history-page .medical-history-no-results p,
html[data-theme="light"] .medical-history-page .medical-history-empty i,
html[data-theme="light"] .medical-history-page .medical-history-no-results i {
  color: #64748b;
}

/* ==========================================================================
   Light theme — Medications (patient_medication.php)
   ========================================================================== */
html[data-theme="light"] .patient-medications-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-medications-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-medications-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-medications-page .patient-med-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-medications-page .patient-med-panel__title {
  color: #2563eb;
}

html[data-theme="light"] .patient-medications-page .patient-med-panel__title--summary {
  color: #0f172a;
}

html[data-theme="light"] .patient-medications-page .patient-med-panel__title--summary i {
  color: #2563eb;
}

html[data-theme="light"] .patient-medications-page .patient-med-panel__lead,
html[data-theme="light"] .patient-medications-page .patient-med-panel__lead--summary {
  color: #64748b;
}

html[data-theme="light"] .patient-medications-page .patient-med-field-label {
  color: #334155;
}

html[data-theme="light"] .patient-medications-page .patient-med-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .patient-medications-page .patient-med-preview-img {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-medications-page .patient-med-stat-badge {
  background: #eff6ff;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-medications-page .patient-med-stat-badge__value {
  color: #1d4ed8;
}

html[data-theme="light"] .patient-medications-page .patient-med-stat-badge__label {
  color: #64748b;
}

html[data-theme="light"] .patient-medications-page .patient-med-alert {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #b45309;
}

html[data-theme="light"] .patient-medications-page .patient-med-section-title--prescription {
  color: #b45309;
}

html[data-theme="light"] .patient-medications-page .patient-med-section-title--pending {
  color: #c2410c;
}

html[data-theme="light"] .patient-medications-page .patient-med-section-title--completed {
  color: #047857;
}

html[data-theme="light"] .patient-medications-page .patient-med-card {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-medications-page .patient-med-card--prescription {
  border-color: #fcd34d;
}

html[data-theme="light"] .patient-medications-page .patient-med-card--pending {
  border-color: #fdba74;
}

html[data-theme="light"] .patient-medications-page .patient-med-card--completed {
  border-color: #6ee7b7;
}

html[data-theme="light"] .patient-medications-page .patient-med-card__name {
  color: #0f172a;
}

html[data-theme="light"] .patient-medications-page .patient-med-card__sub,
html[data-theme="light"] .patient-medications-page .patient-med-card__footer {
  color: #64748b;
}

html[data-theme="light"] .patient-medications-page .patient-med-items-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-medications-page .patient-med-items-box__label {
  color: #64748b;
}

html[data-theme="light"] .patient-medications-page .patient-med-item {
  color: #334155;
}

html[data-theme="light"] .patient-medications-page .patient-med-item__usage {
  color: #64748b;
}

html[data-theme="light"] .patient-medications-page .patient-med-status-badge--prescription {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

html[data-theme="light"] .patient-medications-page .patient-med-status-badge--pending {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

html[data-theme="light"] .patient-medications-page .patient-med-status-badge--completed {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

html[data-theme="light"] .patient-medications-page .patient-med-price-tag,
html[data-theme="light"] .patient-medications-page .patient-med-total-price {
  background: #f1f5f9;
  color: #0f172a;
}

html[data-theme="light"] .patient-medications-page .patient-med-pickup-cta {
  color: #334155;
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-medications-page .patient-med-empty__title {
  color: #475569;
}

html[data-theme="light"] .patient-medications-page .patient-med-empty__text {
  color: #64748b;
}

/* Medication cards — override remaining inline styles in AJAX-rendered HTML */
html[data-theme="light"] .patient-medications-page [style*="linear-gradient(135deg, #1e293b"],
html[data-theme="light"] .patient-medications-page [style*="linear-gradient(135deg,#1e293b"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .patient-medications-page [style*="border: 1px solid #fbbf24"] {
  border-color: #fcd34d !important;
}

html[data-theme="light"] .patient-medications-page [style*="border: 1px solid #f59e0b"] {
  border-color: #fdba74 !important;
}

html[data-theme="light"] .patient-medications-page [style*="border: 1px solid #34d399"] {
  border-color: #6ee7b7 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #e2e8f0"],
html[data-theme="light"] .patient-medications-page [style*="color:#e2e8f0"] {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #cbd5e1"],
html[data-theme="light"] .patient-medications-page [style*="color:#cbd5e1"] {
  color: #334155 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #94a3b8"],
html[data-theme="light"] .patient-medications-page [style*="color:#94a3b8"] {
  color: #64748b !important;
}

html[data-theme="light"] .patient-medications-page [style*="background: rgba(30, 41, 59"],
html[data-theme="light"] .patient-medications-page [style*="background:rgba(30, 41, 59"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .patient-medications-page [style*="background: rgba(251, 191, 36"],
html[data-theme="light"] .patient-medications-page [style*="background:rgba(251, 191, 36"] {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fcd34d !important;
}

html[data-theme="light"] .patient-medications-page [style*="background: rgba(245, 158, 11"],
html[data-theme="light"] .patient-medications-page [style*="background:rgba(245, 158, 11"] {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}

html[data-theme="light"] .patient-medications-page [style*="background: rgba(52, 211, 153"],
html[data-theme="light"] .patient-medications-page [style*="background:rgba(52, 211, 153"] {
  background: #d1fae5 !important;
  color: #047857 !important;
  border-color: #6ee7b7 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #fbbf24"],
html[data-theme="light"] .patient-medications-page [style*="color:#fbbf24"] {
  color: #b45309 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #f59e0b"],
html[data-theme="light"] .patient-medications-page [style*="color:#f59e0b"] {
  color: #c2410c !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #34d399"],
html[data-theme="light"] .patient-medications-page [style*="color:#34d399"] {
  color: #047857 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #6b7280"] {
  color: #475569 !important;
}

html[data-theme="light"] .patient-medications-page [style*="color: #9ca3af"] {
  color: #64748b !important;
}

/* ==========================================================================
   Notifications pages (notifications.php, notification_history.php)
   ========================================================================== */
.patient-notifications-page .patient-notifications-content,
.patient-notification-history-page .patient-notification-history-content {
  padding: 0 1rem 6rem 1rem;
  overflow-y: auto;
}

.patient-notification-history-page .patient-notification-history-content {
  padding-bottom: 5.5rem;
  margin-top: 0.5rem;
}

.patient-notification-mark-all-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #1e3a8a;
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #dbeafe;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}

.patient-notification-section-title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 16px;
  margin: 0 0 12px 4px;
}

.patient-notification-section-title--earlier {
  margin-top: 1.5rem;
}

.patient-notification-count {
  color: #9ca3af;
  font-size: 12px;
  margin: 0 0 12px 4px;
}

.patient-notification-card {
  padding: 1rem;
  border-radius: 12px;
  background-color: #1f2937;
  margin-bottom: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  display: block;
  appearance: none;
  -webkit-appearance: none;
}

button.patient-notification-card {
  color: inherit;
}

.patient-notification-card--unread {
  border-left: 4px solid #60a5fa;
}

.patient-notification-card--read {
  opacity: 0.85;
}

.patient-notification-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.patient-notification-card__title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 14px;
  margin: 0;
}

.patient-notification-card__badge {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 600;
  flex-shrink: 0;
}

.patient-notification-card__body {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.patient-notification-card__time {
  color: #6b7280;
  font-size: 11px;
  margin: 0;
}

.patient-notification-empty,
.patient-notification-no-results {
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background-color: #1f2937;
  color: #9ca3af;
}

.patient-notification-empty p,
.patient-notification-no-results p {
  margin: 0;
  font-size: 14px;
}

.patient-notification-more-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background-color: #374151;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  font-family: inherit;
}

.patient-notification-more-btn span {
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
}

/* Proforma detail */
.patient-proforma-detail-page .patient-proforma-content {
  padding: 0 1rem 5.5rem 1rem;
  overflow-y: auto;
}

.patient-proforma-empty {
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background-color: #1f2937;
  margin-top: 2rem;
}

.patient-proforma-empty i {
  color: #9ca3af;
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.patient-proforma-empty p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

.patient-proforma-hero {
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 1rem;
}

.patient-proforma-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1rem;
}

.patient-proforma-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fbbf24;
  font-size: 24px;
}

.patient-proforma-hero__title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 18px;
  margin: 0 0 6px 0;
}

.patient-proforma-hero__date {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

.patient-proforma-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1rem;
}

.patient-proforma-stat {
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(251, 191, 36, 0.1);
}

.patient-proforma-stat__label {
  font-weight: 600;
  color: #fbbf24;
  font-size: 12px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.patient-proforma-stat__value {
  color: #e5e7eb;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.patient-proforma-stat__value--sm {
  font-size: 16px;
  font-weight: 600;
}

.patient-proforma-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}

.patient-proforma-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: rgba(251, 191, 36, 0.1);
  color: #e5e7eb;
  font-size: 13px;
}

.patient-proforma-chip i {
  color: #fbbf24;
  font-size: 16px;
}

.patient-proforma-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background-color: #fbbf24;
  color: #78350f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.patient-proforma-status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.patient-proforma-status-banner--pending {
  background-color: #f59e0b;
  color: #fef3c7;
}

.patient-proforma-status-banner--unavailable {
  background-color: #6b7280;
  color: #e5e7eb;
}

.patient-proforma-section-title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 16px;
  margin: 1.5rem 0 12px 4px;
}

.patient-proforma-treatment-card {
  padding: 1rem;
  border-radius: 12px;
  background-color: #1f2937;
  margin-bottom: 0.75rem;
}

.patient-proforma-treatment-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.patient-proforma-treatment-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 16px;
}

.patient-proforma-treatment-card__title {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.patient-proforma-treatment-card__desc {
  color: #9ca3af;
  font-size: 12px;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.patient-proforma-treatment-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}

.patient-proforma-treatment-card__meta .bi-calendar {
  color: #60a5fa;
}

.patient-proforma-treatment-card__meta .bi-person {
  color: #9ca3af;
}

.patient-proforma-treatment-card__price {
  color: #10b981;
  font-weight: 600;
}

/* Travel live map page (travel.php) */
html[data-theme="light"] body.patient-travel-page {
  background-color: #e2e8f0 !important;
}

html[data-theme="light"] .patient-travel-page .patient-page-header-shell {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-travel-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-travel-page .patient-page-header__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-page .patient-page-header__subtitle {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-page .patient-page-header__back,
html[data-theme="light"] .patient-travel-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-page .driver-card {
  background-color: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1) !important;
  color: #0f172a;
}

@media (min-width: 768px) and (orientation: portrait) {
  html[data-theme="light"] .patient-travel-page .driver-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12) !important;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  html[data-theme="light"] .patient-travel-page .driver-card {
    border-top: none;
    border-left: 1px solid #e2e8f0;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.1) !important;
  }
}

html[data-theme="light"] .patient-travel-page .driver-card h2,
html[data-theme="light"] .patient-travel-page .driver-card h3,
html[data-theme="light"] .patient-travel-page .driver-card h4,
html[data-theme="light"] .patient-travel-page .driver-card p,
html[data-theme="light"] .patient-travel-page .driver-card span,
html[data-theme="light"] .patient-travel-page .driver-card div {
  color: inherit;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="color: #E5E7EB"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="color: #e5e7eb"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="color:#E5E7EB"] {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="color: #9CA3AF"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="color: #9ca3af"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="color: #94a3b8"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="color:#9CA3AF"] {
  color: #64748b !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #111827"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#111827"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #374151"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#374151"] {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #064e3b"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#064e3b"] {
  background: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #047857 !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #78350F"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#78350F"] {
  background: #fffbeb !important;
  border: 1px solid #fcd34d !important;
  color: #b45309 !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #D1FAE5"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #FDE68A"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#D1FAE5"],
html[data-theme="light"] .patient-travel-page .driver-card [style*="background:#FDE68A"] {
  background: #047857 !important;
}

html[data-theme="light"] .patient-travel-page .driver-card [style*="background: #4B5563"] {
  background: #94a3b8 !important;
}

html[data-theme="light"] .patient-travel-page #manualCheckinHint {
  color: #64748b !important;
}

html[data-theme="light"] .patient-travel-page #mapLoading,
html[data-theme="light"] .patient-travel-page #mapLoading p {
  color: #475569 !important;
}

html[data-theme="light"] .patient-travel-page #mapLoading [style*="border-top: 4px solid #3B82F6"] {
  border-color: #e2e8f0 !important;
  border-top-color: #2563eb !important;
}

/* No active trip empty state */
html[data-theme="light"] .patient-travel-page .patient-container > div[style*="color: #9CA3AF"] {
  color: #64748b !important;
}

html[data-theme="light"] .patient-travel-page .patient-container > div[style*="color: #9CA3AF"] i {
  color: #94a3b8 !important;
}

html[data-theme="light"] .patient-travel-page .patient-container button[style*="background-color: #374151"] {
  background-color: #f1f5f9 !important;
  color: #1d4ed8 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Review modals on travel page */
html[data-theme="light"] .patient-travel-page #reviewModal > div,
html[data-theme="light"] .patient-travel-page #reviewModalStandalone > div {
  background: #ffffff !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .patient-travel-page #reviewModal h3,
html[data-theme="light"] .patient-travel-page #reviewModalStandalone h3,
html[data-theme="light"] .patient-travel-page #reviewModal [style*="color: white"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone [style*="color: white"],
html[data-theme="light"] .patient-travel-page #reviewModal [style*="color:white"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone [style*="color:white"] {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-travel-page #reviewModal p,
html[data-theme="light"] .patient-travel-page #reviewModalStandalone p,
html[data-theme="light"] .patient-travel-page #reviewModal [style*="color: #9CA3AF"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone [style*="color: #9CA3AF"],
html[data-theme="light"] .patient-travel-page #reviewModal [style*="color:#9CA3AF"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone [style*="color:#9CA3AF"] {
  color: #64748b !important;
}

html[data-theme="light"] .patient-travel-page #reviewModal strong,
html[data-theme="light"] .patient-travel-page #reviewModalStandalone strong,
html[data-theme="light"] .patient-travel-page #reviewModal [style*="color:#E5E7EB"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone [style*="color:#E5E7EB"] {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-travel-page #reviewComment,
html[data-theme="light"] .patient-travel-page #saReviewComment {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .patient-travel-page #reviewModal button[style*="background:#374151"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone button[style*="background:#374151"],
html[data-theme="light"] .patient-travel-page #reviewModal button[style*="background: #374151"],
html[data-theme="light"] .patient-travel-page #reviewModalStandalone button[style*="background: #374151"] {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

/* ==========================================================================
   Light theme — remaining patient pages (batch)
   ========================================================================== */

/* Shared page header on sub-pages */
html[data-theme="light"] .patient-profile-page .patient-page-header,
html[data-theme="light"] .patient-travel-page .patient-page-header,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header,
html[data-theme="light"] .patient-travel-history-page .patient-page-header,
html[data-theme="light"] .patient-request-page .patient-page-header,
html[data-theme="light"] .patient-notifications-page .patient-page-header,
html[data-theme="light"] .patient-notification-history-page .patient-page-header,
html[data-theme="light"] .patient-notification-prefs-page .patient-page-header,
html[data-theme="light"] .patient-proforma-detail-page .patient-page-header,
html[data-theme="light"] .patient-faq-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-privacy-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-profile-page .patient-page-header__back,
html[data-theme="light"] .patient-travel-page .patient-page-header__back,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header__back,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header__back,
html[data-theme="light"] .patient-travel-history-page .patient-page-header__back,
html[data-theme="light"] .patient-request-page .patient-page-header__back,
html[data-theme="light"] .patient-notifications-page .patient-page-header__back,
html[data-theme="light"] .patient-notification-history-page .patient-page-header__back,
html[data-theme="light"] .patient-notification-prefs-page .patient-page-header__back,
html[data-theme="light"] .patient-proforma-detail-page .patient-page-header__back,
html[data-theme="light"] .patient-faq-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-faq-page .patient-home-support__disclaimer {
  color: #475569;
}

html[data-theme="light"] .patient-faq-page .patient-home-support__message {
  color: #1e293b;
}

html[data-theme="dark"] .patient-faq-page .patient-home-support__disclaimer {
  color: #64748b;
}

html[data-theme="dark"] .patient-faq-page .patient-home-support__message {
  color: #e2e8f0;
}

html[data-theme="dark"] .patient-faq-page .patient-home-support__message strong {
  color: #f1f5f9;
}

html[data-theme="light"] .patient-privacy-page .patient-page-header__back {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-page-header p,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header p {
  color: var(--patient-body-muted) !important;
}

/* Profile — full light theme (profile.php) */
html[data-theme="light"] .patient-profile-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-profile-page .patient-header-shell {
  background: rgba(244, 247, 251, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-header .profile-name {
  color: #0f172a;
}

html[data-theme="light"] .patient-profile-page .patient-header .profile-subtitle,
html[data-theme="light"] .patient-profile-page .patient-header .profile-context {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-app-header__action {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-profile-page .patient-profile-card,
html[data-theme="light"] .patient-profile-page .patient-profile-summary-list,
html[data-theme="light"] .patient-profile-page .patient-profile-history-card,
html[data-theme="light"] .patient-profile-page .patient-profile-settings-group,
html[data-theme="light"] .patient-profile-page .patient-profile-empty {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-profile-page .patient-profile-card-head {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-name,
html[data-theme="light"] .patient-profile-page .patient-profile-page-title,
html[data-theme="light"] .patient-profile-page .patient-profile-section-title,
html[data-theme="light"] .patient-profile-page .patient-profile-documents-title,
html[data-theme="light"] .patient-profile-page .patient-profile-history-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-profile-page .patient-profile-meta,
html[data-theme="light"] .patient-profile-page .patient-profile-summary-label,
html[data-theme="light"] .patient-profile-page .patient-profile-documents-sub,
html[data-theme="light"] .patient-profile-page .patient-profile-history-subtitle,
html[data-theme="light"] .patient-profile-page .patient-profile-field-view {
  color: #334155;
}

html[data-theme="light"] .patient-profile-page .patient-profile-detail-row {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-detail-row dt,
html[data-theme="light"] .patient-profile-page .patient-profile-history-category,
html[data-theme="light"] .patient-profile-page .patient-profile-history-date,
html[data-theme="light"] .patient-profile-page .patient-profile-input-label {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-detail-row dd,
html[data-theme="light"] .patient-profile-page .patient-profile-history-details,
html[data-theme="light"] .patient-profile-page .patient-profile-empty p {
  color: #1e293b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-stat {
  color: #718096;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-stat--alert {
  color: #db2777;
}

html[data-theme="light"] .patient-profile-page .patient-profile-status-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-profile-page .patient-profile-edit-toggle {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-profile-page .patient-profile-edit-toggle:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

html[data-theme="light"] .patient-profile-page .patient-profile-feedback--success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

html[data-theme="light"] .patient-profile-page .patient-profile-feedback--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

html[data-theme="light"] .patient-privacy-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-privacy-page .patient-profile-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-privacy-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(79, 110, 247, 0.04) 100%);
  border-color: #bfdbfe;
}

html[data-theme="light"] .patient-privacy-hero--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-color: #a7f3d0;
}

html[data-theme="light"] .patient-privacy-hero__icon {
  background: #dbeafe;
  color: #2563eb;
}

html[data-theme="light"] .patient-privacy-hero__icon--success {
  background: #d1fae5;
  color: #059669;
}

html[data-theme="light"] .patient-privacy-hero__title,
html[data-theme="light"] .patient-privacy-card__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-hero__text,
html[data-theme="light"] .patient-privacy-card__text,
html[data-theme="light"] .patient-privacy-list li,
html[data-theme="light"] .patient-privacy-checkbox {
  color: #475569;
}

html[data-theme="light"] .patient-privacy-hero__text strong {
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-card--muted {
  background: #f8fafc;
}

html[data-theme="light"] .patient-privacy-list li i {
  color: #2563eb;
}

html[data-theme="light"] .patient-privacy-callout {
  background: #fef2f2;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-privacy-callout i,
html[data-theme="light"] .patient-privacy-callout p {
  color: #b91c1c;
}

html[data-theme="light"] .patient-privacy-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-btn:hover {
  background: #f8fafc;
}

html[data-theme="light"] .patient-privacy-footnote {
  color: #64748b;
}

html[data-theme="light"] .patient-privacy-page .patient-profile-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .patient-profile-page .patient-profile-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .patient-profile-page .patient-profile-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

html[data-theme="light"] .patient-profile-page .patient-profile-input:disabled {
  background: #f8fafc;
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-action-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

html[data-theme="light"] .patient-profile-page .patient-profile-action-btn--secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-card--attention {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fcd34d;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-icon {
  background: #eff6ff;
  color: #2563eb;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-card--attention .patient-profile-documents-icon {
  background: #fef3c7;
  color: #b45309;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-action {
  color: #2563eb;
}

html[data-theme="light"] .patient-profile-page .patient-profile-documents-card--attention .patient-profile-documents-action {
  color: #b45309;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-row {
  border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-row:hover {
  background: #f8fafc;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-icon-wrap--blue {
  background: transparent;
  color: #2563eb;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-icon-wrap--purple {
  background: transparent;
  color: #7c3aed;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-icon-wrap--gold {
  background: #db277724;
  color: #db2777;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-icon-wrap--pink {
  background: transparent;
  color: #276edb;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-badge {
  background: #db277724;
  color: #db2777;
}

html[data-theme="light"] .patient-profile-page .patient-profile-summary-chevron {
  color: #cbd5e1;
}

html[data-theme="light"] .patient-profile-page .patient-profile-history-card--link:hover {
  background: #f8fafc;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-profile-page .patient-profile-history-icon {
  background: color-mix(in srgb, var(--history-accent, #2563eb) 12%, #ffffff);
  color: var(--history-accent, #2563eb);
}

html[data-theme="light"] .patient-profile-page .patient-profile-history-chevron {
  color: #94a3b8;
}

html[data-theme="light"] .patient-profile-page .patient-profile-section-link {
  color: #2563eb;
}

html[data-theme="light"] .patient-profile-page .patient-profile-section-link:hover {
  color: #1d4ed8;
}

html[data-theme="light"] .patient-profile-page .patient-profile-show-more {
  background: #f1f5f9;
  color: #1d4ed8;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-profile-page .patient-profile-show-more:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-profile-page .patient-profile-empty {
  background: #f8fafc;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-profile-page .patient-profile-empty i {
  color: #94a3b8;
}

html[data-theme="light"] .patient-profile-page .patient-profile-settings-btn {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid transparent;
}

html[data-theme="light"] .patient-profile-page .patient-profile-settings-btn:hover {
  background: #f1f5f9;
}

html[data-theme="light"] .patient-profile-page .patient-profile-settings-btn i {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-account-block {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-settings-btn--danger {
  background: #e44545;
  color: #ffffff;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-profile-page .patient-profile-settings-btn--danger:hover {
  background: #fee2e2;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-setting {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-label {
  color: #0f172a;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-hint {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-toggle {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-option {
  color: #64748b;
}

html[data-theme="light"] .patient-profile-page .patient-profile-theme-option.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Travel history (travel_history.php) */
html[data-theme="light"] .patient-travel-history-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-travel-history-page .patient-page-header__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-page-header__subtitle {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-page-header__back,
html[data-theme="light"] .patient-travel-history-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .profile-name {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .profile-subtitle,
html[data-theme="light"] .patient-travel-history-page .profile-context {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-section-label {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-label {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-value {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-value--accent {
  color: #2563eb;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-value--count {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-stat-hint {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-filter {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-filter-btn {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-filter-btn.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card:hover {
  background: #f8fafc;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card--past {
  opacity: 1;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card-city {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card-country,
html[data-theme="light"] .patient-travel-history-page .patient-trip-card-date,
html[data-theme="light"] .patient-travel-history-page .patient-trip-card-meta,
html[data-theme="light"] .patient-travel-history-page .patient-trip-card-type {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card-route {
  color: #334155;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card-route i {
  color: #2563eb;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-card-cancel-reason {
  color: #b91c1c;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-badge--completed {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-badge--cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-badge--active {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #c4b5fd;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-badge--upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-badge--neutral {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-alert {
  background: #fffbeb;
  border-color: #fcd34d;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-alert i {
  color: #d97706;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-alert h3 {
  color: #b45309;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-alert p,
html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-alert strong {
  color: #92400e;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-reason {
  color: #b45309 !important;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-cancel-note {
  color: #d97706 !important;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-panel-empty,
html[data-theme="light"] .patient-travel-history-page .patient-travel-empty {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-panel-empty-title,
html[data-theme="light"] .patient-travel-history-page .patient-travel-empty h3 {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-panel-empty-desc,
html[data-theme="light"] .patient-travel-history-page .patient-travel-empty p {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-travel-empty i {
  color: #94a3b8;
}

/* Trip detail modal */
html[data-theme="light"] .patient-travel-history-page .patient-trip-modal {
  background: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-sheet {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-handle {
  background: #cbd5e1;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-city {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-country,
html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-date,
html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-route {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-close {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-route-box,
html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-driver {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-route-label {
  color: #64748b;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-route-value {
  color: #0f172a;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-route-line span:last-child {
  background: #cbd5e1;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-cancel {
  background: #fef2f2;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-cancel-title {
  color: #b91c1c;
}

html[data-theme="light"] .patient-travel-history-page .patient-trip-modal-cancel p {
  color: #7f1d1d;
}

/* Treatment detail (treatment_detail.php) — dark theme refinement */
html[data-theme="dark"] .patient-treatment-detail-page {
  --td-surface-page: #0f1724;
  --td-surface-card: #172131;
  --td-surface-raised: #1d293a;
  --td-surface-row: #223047;
  --td-surface-hover: #28374f;
  --td-divider: rgba(255, 255, 255, 0.07);
  --td-text-primary: #f5f7fb;
  --td-text-secondary: #b6c0d0;
  --td-text-muted: #7f8ca1;
  --td-accent: #7c5ce6;
  --td-accent-hover: #8b6cf0;
  --td-accent-soft: rgba(124, 92, 230, 0.16);
  --td-accent-border: rgba(139, 108, 240, 0.38);
  --td-gradient-hero: linear-gradient(135deg, #6850d8, #7c3fe4);
  --td-gradient-alert: #35212b;
  --td-section-label: #8b6cf0;
  --td-doctor-bg: #1d293a;
  --td-doctor-label: #b6c0d0;
  --td-doctor-value: #f5f7fb;
  --td-priority-bg: #1d293a;
  --td-priority-label: #b6c0d0;
  --td-priority-value: #f5f7fb;
  --td-flight-dep-bg: rgba(39, 182, 199, 0.11);
  --td-flight-dep-accent: #27b6c7;
  --td-flight-dep-border: rgba(39, 182, 199, 0.36);
  --td-flight-dep-text: #f5f7fb;
  --td-flight-ret-bg: rgba(155, 122, 234, 0.11);
  --td-flight-ret-accent: #9b7aea;
  --td-flight-ret-border: rgba(155, 122, 234, 0.34);
  --td-flight-ret-text: #f5f7fb;
  --td-success: #39c995;
  --td-badge-success-bg: rgba(57, 201, 149, 0.14);
  --td-badge-success-text: #39c995;
  --td-danger: #f36b72;
  --td-badge-missing-bg: rgba(243, 107, 114, 0.14);
  --td-badge-missing-text: #f36b72;
  --td-row-missing-bg: rgba(243, 107, 114, 0.09);
  --td-row-missing-border: rgba(243, 107, 114, 0.18);
  --td-warning: #f2a65a;
  --td-warning-soft: rgba(242, 166, 90, 0.14);
  --td-icon-wrap-bg: rgba(124, 92, 230, 0.16);
  --td-icon-wrap-missing-bg: rgba(243, 107, 114, 0.14);
  --td-progress-track: rgba(124, 92, 230, 0.16);
  --td-progress-fill: #7c5ce6;
  --td-shadow-card: none;
  --td-alert-bg: #35212b;
  --td-alert-border: #7a3f50;
  --td-alert-icon: #ff7a82;
  --td-alert-title: #fff4f5;
  --td-alert-text: #d8bcc3;
  --td-alert-button: #e86570;
  --td-alert-button-hover: #f0757f;
  --td-alert-button-text: #ffffff;
  background-color: var(--td-surface-page);
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-page-header p {
  color: var(--td-text-secondary) !important;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-attention {
  background: var(--td-alert-bg);
  border: 1px solid var(--td-alert-border);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-attention-head i {
  color: var(--td-alert-icon);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-attention-head h2 {
  color: var(--td-alert-title);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-attention-sub {
  color: var(--td-alert-text);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-btn--attention {
  background: var(--td-alert-button);
  border: 1px solid var(--td-alert-button);
  color: var(--td-alert-button-text);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-btn--attention:hover {
  background: var(--td-alert-button-hover);
  border-color: var(--td-alert-button-hover);
  color: var(--td-alert-button-text);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-btn:focus-visible,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-trigger:focus-visible {
  outline-color: var(--td-accent-hover);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slider-title {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slider-title-icon {
  background: var(--td-accent-soft);
  color: var(--td-accent);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-card-inner {
  background: var(--td-surface-card);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-meta-item--doctor,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-meta-item--priority {
  background: var(--td-surface-raised);
  border: 1px solid var(--td-divider);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--departure {
  background: var(--td-flight-dep-bg);
  border: 1px solid var(--td-flight-dep-border);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--return {
  background: var(--td-flight-ret-bg);
  border: 1px solid var(--td-flight-ret-border);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-icon {
  background: var(--td-flight-dep-bg);
  color: #41e6fa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-icon {
  background: var(--td-flight-ret-bg);
  color: #c4aefa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-datetime,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-datetime {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-connector-line {
  background: var(--td-divider);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-connector-icon {
  background: var(--td-accent-soft);
  color: #c4aefa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-case-badge {
  background: var(--td-accent-soft);
  color: #c4aefa;
  border: 1px solid var(--td-accent-border);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row {
  background: var(--td-surface-row);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-missing {
  background: var(--td-row-missing-bg);
  border-color: var(--td-row-missing-border);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-hospital-pending {
  background: var(--td-row-hospital-pending-bg);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row:not(.is-missing):not(.is-hospital-pending):hover,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row:not(.is-missing):not(.is-hospital-pending):focus-within {
  background: var(--td-surface-hover);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-icon-wrap--complete,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-icon-wrap--neutral {
  background: var(--td-icon-wrap-bg);
  color: #c4aefa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-icon-wrap--missing {
  background: var(--td-icon-wrap-missing-bg);
  color: var(--td-danger);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-icon-wrap--pending-hospital {
  background: var(--td-icon-wrap-hospital-pending-bg);
  color: #a8b4c7;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-badge--pending-hospital {
  background: var(--td-badge-hospital-pending-bg);
  color: #a8b4c7;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-empty-hint {
  color: var(--td-text-muted);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-chevron {
  color: var(--td-text-muted);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-chevron {
  color: var(--td-text-secondary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slider-nav {
  background: var(--td-surface-row);
  border: 1px solid var(--td-divider);
  color: var(--td-text-secondary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slider-nav:hover:not(:disabled) {
  background: var(--td-surface-hover);
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slider-pager-label {
  color: var(--td-text-muted);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-attention-lead {
  color: var(--td-alert-title);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-status,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-block-value--muted {
  color: var(--td-text-secondary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-block-value {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-section-title {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-section-summary,
html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-section-chevron {
  color: var(--td-text-muted);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-section-trigger:focus-visible {
  outline-color: var(--td-accent-hover);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-detail-row dt {
  color: var(--td-text-muted);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-detail-row dd {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-detail-row--stack dd {
  color: var(--td-text-secondary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-detail-row + .patient-treatment-slide-detail-row {
  border-top-color: var(--td-divider);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--departure .patient-treatment-slide-travel-leg-route {
  color: #41e6fa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg--return .patient-treatment-slide-travel-leg-route {
  color: #c4aefa;
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-file-link {
  background: var(--td-surface-raised);
  color: var(--td-accent-hover);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-file-link:hover {
  background: var(--td-surface-hover);
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-missing-box {
  background: var(--td-row-missing-bg);
  border-color: var(--td-row-missing-border);
  border-left-color: var(--td-danger);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-missing-title {
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-missing-chip {
  background: var(--td-surface-raised);
  border-color: var(--td-row-missing-border);
  color: var(--td-danger);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-missing-chip:hover {
  background: var(--td-danger-soft);
  border-color: var(--td-danger);
  color: var(--td-text-primary);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta {
  background:#eb5461;
  border-color: #eb5461;
  color: var(--td-alert-button-text);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta:hover {
  background: #f0757f;
  border-color: #f0757f;
  color: var(--td-alert-button-text);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta:focus-visible {
  outline-color: var(--td-accent-hover);
}

html[data-theme="dark"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-missing.is-scroll-highlight {
  background: var(--td-danger-soft);
  border-color: var(--td-danger);
}

/* Treatment detail (treatment_detail.php) — light theme */
html[data-theme="light"] .patient-treatment-detail-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-header-shell,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header-shell {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-header .profile-name,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header__title,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header h1 {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-header .profile-subtitle,
html[data-theme="light"] .patient-treatment-detail-page .patient-header .profile-context,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header__subtitle,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header p {
  color: #64748b !important;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-page-header__back,
html[data-theme="light"] .patient-treatment-detail-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page {
  --td-surface-page: #f4f3ff;
  --td-surface-card: #ffffff;
  --td-surface-row: #f8fafc;
  --td-surface-hover: #f1f5f9;
  --td-divider: #e8eafc;
  --td-text-primary: #2d2d50;
  --td-text-secondary: #64748b;
  --td-text-muted: #94a3b8;
  --td-accent: #7c3aed;
  --td-accent-soft: #ede9fe;
  --td-section-label: #6366f1;
  --td-doctor-bg: #eff6ff;
  --td-doctor-label: #60a5fa;
  --td-doctor-value: #1e3a8a;
  --td-priority-bg: #f5f3ff;
  --td-priority-label: #a78bfa;
  --td-priority-value: #5b21b6;
  --td-flight-dep-bg: #ecfeff;
  --td-flight-dep-accent: #0891b2;
  --td-flight-dep-text: #0f172a;
  --td-flight-ret-bg: #f5f3ff;
  --td-flight-ret-accent: #7c3aed;
  --td-flight-ret-text: #2e1065;
  --td-badge-success-bg: #e8f5e9;
  --td-badge-success-text: #2e7d32;
  --td-badge-missing-bg: #ffebee;
  --td-badge-missing-text: #c62828;
  --td-row-missing-bg: #fff5f5;
  --td-icon-wrap-bg: #f0eeff;
  --td-icon-wrap-missing-bg: #ffebee;
  --td-progress-track: #ede9fe;
  --td-progress-fill: #7c3aed;
  --td-shadow-card: 0 8px 28px rgba(79, 70, 229, 0.08);
  background-color: var(--td-surface-page);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-stats-strip {
  background: var(--td-surface-card);
  border: none;
  box-shadow: none;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-stats-strip strong {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-stats-strip span {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-attention {
  background: var(--td-gradient-alert);
  border: none;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-attention-head i,
html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-attention-head h2,
html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-attention-sub {
  color: #fff;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-btn--secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-btn--secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-second-opinion {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-section {
  background: transparent;
  border: none;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-title {
  color: var(--td-text-primary);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-title-icon {
  background: var(--td-accent-soft);
  color: var(--td-accent);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-card-inner {
  background: var(--td-surface-card);
  box-shadow: 0 8px 28px 10px rgba(79, 70, 229, 0.08);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-title {
  color: #fff;
}


html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-progress-label {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-progress-track {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-block-value {
  color: #334155;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-block-value--muted {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-divider {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-meta-label,
html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg-title {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-meta-value,
html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg-datetime {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg-location {
  color: #475569;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-leg-route {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-summary {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-arrow {
  color: #2563eb;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-section-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-section-summary {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-section-chevron {
  color: #94a3b8;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-section-accordion.is-open .patient-treatment-slide-section-chevron {
  color: #475569;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-detail-row + .patient-treatment-slide-detail-row {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-detail-row dt {
  color: #2563eb;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-detail-row dd {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-detail-row--stack dd {
  color: #334155;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-step:not(:last-child)::before {
  background: rgba(37, 99, 235, 0.18);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-step-title {
  color: #2563eb;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-datetime {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-travel-location {
  color: #475569;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-row {
  background: #f4f3ff;
  border: 1px solid #cfd8f6;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-missing {
  background: var(--td-row-missing-bg);
  border-color: #fecaca;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-missing.is-scroll-highlight {
  background: #fee2e2;
  border-color: #ef4444;
  animation: treatment-missing-doc-highlight 1s ease-in-out 3;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-missing-docs-cta:focus-visible {
  outline-color: #7c3aed;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-label-text {
  color: var(--td-text-primary);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-accordion.is-missing.is-open .patient-treatment-slide-doc-trigger {
  background: transparent;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-chevron {
  color: #94a3b8;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-chevron {
  color: #475569;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-accordion.is-open .patient-treatment-slide-doc-panel {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-file-link {
  background: #ffffff;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-file-link:hover {
  background: #eff6ff;
  color: #1e40af;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-empty {
  color: #94a3b8;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-row.is-hospital-pending {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-badge--pending-hospital {
  background: #f1f5f9;
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-icon-wrap--pending-hospital {
  background: #f1f5f9;
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-doc-empty-hint {
  color: #94a3b8;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-missing-box {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f97316;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slide-missing-title {
  color: #9a3412;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-missing-chip {
  background: #ffffff;
  border-color: #fdba74;
  color: #c2410c;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-missing-chip:hover {
  background: #fff7ed;
  border-color: #f97316;
  color: #9a3412;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-pager-label {
  color: #334155;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-nav {
  background: var(--td-surface-row);
  border: none;
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-nav:hover:not(:disabled) {
  background: var(--td-surface-hover);
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-empty {
  background: var(--td-surface-card);
  box-shadow: 0 8px 28px 10px rgba(79, 70, 229, 0.08);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-slider-empty__chip {
  display: none;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-card:hover {
  background: #f8fafc;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-card-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-card-sub,
html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-card-date {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-empty {
  background: transparent;
  border: none;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-empty-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-detail-page .patient-treatment-activity-empty-desc {
  color: #64748b;
}

/* Treatment case (treatment_case.php) */
html[data-theme="light"] .patient-treatment-case-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-treatment-case-page .patient-page-header-shell {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-treatment-case-page .patient-page-header__title,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header h1 {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-treatment-case-page .patient-page-header__subtitle,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header p {
  color: #64748b !important;
}

html[data-theme="light"] .patient-treatment-case-page .patient-page-header__back,
html[data-theme="light"] .patient-treatment-case-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-intro {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-action {
  background: #fff7ed;
  border-color: #fed7aa;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-action-head i {
  color: #d97706;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-action-head h2 {
  color: #9a3412;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-action-lead {
  color: #7c2d12;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-summary,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-summary-title,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-section-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-stat {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-stat strong {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-meta,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-percent-label {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-percent {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-progress-track {
  background: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-readonly-note {
  color: #b45309;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-detail-row + .patient-treatment-case-detail-row {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-detail-row dt {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-detail-row dd {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-detail-row--stack dd {
  color: #334155;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-travel-step:not(:last-child)::before {
  background: #cbd5e1;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-travel-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-travel-step-title {
  color: #2563eb;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-travel-datetime {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-travel-location,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-help-text,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-documents-empty,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exams-empty {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-btn--secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-btn--secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-icon--needs-upload {
  background: #fff7ed;
  border-color: #fdba74;
  color: #d97706;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-icon--uploaded {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-icon--optional {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-name {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-sub,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-status-text {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-upload-btn {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-upload-btn:hover,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-upload-btn:focus {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-file-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #2563eb;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-doc-file-link:hover {
  background: #eff6ff;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exam-btn {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exam-btn:hover {
  background: #f8fafc;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exam-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exam-date,
html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-exam-doctor {
  color: #64748b;
}

html[data-theme="light"] .patient-treatment-case-page .patient-treatment-case-sticky-upload {
  background: linear-gradient(180deg, transparent, #f4f7fb 24%, #f4f7fb);
}

/* Request appointment (request_appointment.php) */
html[data-theme="light"] .patient-request-page {
  background-color: var(--patient-bg-primary);
  color: var(--patient-text-primary);
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-doc-group + .patient-request-blocked-doc-group {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-doc-group__label,
html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__title {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__icon {
  color: #2563eb;
  background: #eff6ff;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__item--required .patient-request-blocked-panel__icon {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__item--required.is-complete .patient-request-blocked-panel__icon {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__text {
  color: #334155;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-panel__hint {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-doc-badge--required {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-doc-badge--optional {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-status {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page--blocked .patient-request-blocked-status--complete {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

html[data-theme="light"] .patient-request-page .patient-page-header-shell {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-page-header {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-request-page .patient-page-header__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-page-header__subtitle {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-page-header__back,
html[data-theme="light"] .patient-request-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-hero__copy h1 {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-hero__copy p {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-card,
html[data-theme="light"] .patient-request-page .patient-request-confirmation {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .patient-request-page .patient-request-section-title,
html[data-theme="light"] .patient-request-page .patient-request-confirmation__title,
html[data-theme="light"] .patient-request-page .patient-request-subsection-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-step__eyebrow {
  color: #2563eb;
}

html[data-theme="light"] .patient-request-page .patient-request-help,
html[data-theme="light"] .patient-request-page .patient-request-empty,
html[data-theme="light"] .patient-request-page .patient-request-choice__meta,
html[data-theme="light"] .patient-request-page .patient-request-choice__desc,
html[data-theme="light"] .patient-request-page .patient-request-label,
html[data-theme="light"] .patient-request-page .patient-request-label-optional {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-choice {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-choice.is-selected {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .patient-request-page .patient-request-choice__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-choice__meta--highlight {
  color: #2563eb;
}

html[data-theme="light"] .patient-request-page .patient-request-selected-badge {
  color: #2563eb;
}

html[data-theme="light"] .patient-request-page .patient-request-card-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-request-page .patient-request-card--department .patient-request-card-badge {
  background: #f5f3ff;
  color: #6d28d9;
}

html[data-theme="light"] .patient-request-page .patient-request-card--doctor .patient-request-card-badge {
  background: #ecfdf5;
  color: #047857;
}

html[data-theme="light"] .patient-request-page .patient-request-field input,
html[data-theme="light"] .patient-request-page .patient-request-field textarea,
html[data-theme="light"] .patient-request-page .patient-request-field select,
html[data-theme="light"] .patient-request-page .patient-request-search-field input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-field input:focus,
html[data-theme="light"] .patient-request-page .patient-request-field textarea:focus,
html[data-theme="light"] .patient-request-page .patient-request-field select:focus,
html[data-theme="light"] .patient-request-page .patient-request-search-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .patient-request-page .patient-request-error-banner {
  background: #fef2f2;
  border-color: #fecaca;
}

html[data-theme="light"] .patient-request-page .patient-request-error {
  color: #b91c1c;
}

html[data-theme="light"] .patient-request-page .patient-request-success-note {
  color: #047857;
}

html[data-theme="light"] .patient-request-page .patient-request-confirmation__meta {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-confirmation__meta strong,
html[data-theme="light"] .patient-request-page .patient-request-confirmation__list dd,
html[data-theme="light"] .patient-request-page .patient-request-confirmation__list dd strong {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-confirmation__list dt,
html[data-theme="light"] .patient-request-page .patient-request-review__list dt {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-review {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-review--compact {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-review__hospital {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-review__doctor {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-review__change {
  color: #2563eb;
}

html[data-theme="light"] .patient-request-page .patient-request-review__change:hover,
html[data-theme="light"] .patient-request-page .patient-request-review__change:focus-visible {
  color: #1d4ed8;
}

html[data-theme="light"] .patient-request-page .patient-request-datetime__picker {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-field .patient-request-datetime__input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  color-scheme: light;
}

html[data-theme="light"] .patient-request-page .patient-request-field .patient-request-datetime__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .patient-request-page .patient-request-datetime__value {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-datetime__value.is-placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .patient-request-page .patient-request-summary-strip {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

html[data-theme="light"] .patient-request-page .patient-request-sticky-footer--submit-step .patient-request-success-note {
  color: #1e40af;
}

html[data-theme="light"] .patient-request-page .patient-request-type-toggle .patient-request-path-toggle__btn.is-active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

html[data-theme="light"] .patient-request-page .patient-request-review__list dd {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-primary-btn,
html[data-theme="light"] .patient-request-page .patient-request-submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

html[data-theme="light"] .patient-request-page .patient-request-secondary-btn {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

html[data-theme="light"] .patient-request-page .patient-request-secondary-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-path-toggle__btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-path-toggle__btn.is-active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .patient-request-page .patient-request-selected-chip {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

/* Department chips */
html[data-theme="light"] .patient-request-page .patient-request-dept-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-dept-card.is-selected {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .patient-request-page .patient-request-dept-card__badge {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

html[data-theme="light"] .patient-request-page .patient-request-dept-card__name {
  color: #0f172a;
}

html[data-theme="light"] .patient-request-page .patient-request-dept-card__meta {
  color: #64748b;
}

/* Hospital & doctor image cards — keep light text on photo scrims for contrast */
html[data-theme="light"] .patient-request-page .patient-request-hospital-card.is-selected,
html[data-theme="light"] .patient-request-page .patient-request-doctor-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .patient-request-page .patient-request-card-selected-pill {
  background: rgba(255, 255, 255, 0.95);
  border-color: #2563eb;
  color: #1d4ed8;
}

/* Pagination */
html[data-theme="light"] .patient-request-page .patient-request-hospital-pagination__label,
html[data-theme="light"] .patient-request-page .patient-request-hospital-pagination__meta,
html[data-theme="light"] .patient-request-page .patient-request-list-pagination__label,
html[data-theme="light"] .patient-request-page .patient-request-list-pagination__meta {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-hospital-pagination__btn,
html[data-theme="light"] .patient-request-page .patient-request-list-pagination__btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

html[data-theme="light"] .patient-request-page .patient-request-hospital-pagination__btn:hover:not(.is-active),
html[data-theme="light"] .patient-request-page .patient-request-list-pagination__btn:hover:not(.is-active) {
  background: #f8fafc;
  border-color: #93c5fd;
  color: #1d4ed8;
}

html[data-theme="light"] .patient-request-page .patient-request-hospital-pagination__btn.is-active,
html[data-theme="light"] .patient-request-page .patient-request-list-pagination__btn.is-active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Stepper (if enabled) */
html[data-theme="light"] .patient-request-page .patient-request-stepper__list {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__item {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__dot {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__item.is-active {
  color: #1d4ed8;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__item.is-active .patient-request-stepper__dot {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__item.is-complete {
  color: #2563eb;
}

html[data-theme="light"] .patient-request-page .patient-request-stepper__item.is-complete .patient-request-stepper__dot {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* Sticky wizard footer */
html[data-theme="light"] .patient-request-page .patient-request-sticky-footer {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.88), #f4f7fb 100%);
  border-top-color: #e2e8f0;
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .patient-request-page .patient-request-sticky-footer .patient-request-success-note {
  color: #334155;
}

html[data-theme="light"] .patient-request-page .patient-request-sticky-footer .patient-request-help {
  color: #64748b;
}

html[data-theme="light"] .patient-request-page .patient-request-continue-btn,
html[data-theme="light"] .patient-request-page .patient-request-sticky-footer__actions .patient-request-continue-btn {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: none;
}

html[data-theme="light"] .patient-request-page .patient-request-continue-btn:hover:not(:disabled),
html[data-theme="light"] .patient-request-page .patient-request-sticky-footer__actions .patient-request-continue-btn:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #1d4ed8;
  color: #1e3a8a;
}

html[data-theme="light"] .patient-request-page .patient-request-continue-btn:disabled,
html[data-theme="light"] .patient-request-page .patient-request-sticky-footer__actions .patient-request-continue-btn:disabled {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
}

/* Notifications */
html[data-theme="light"] .patient-notifications-page,
html[data-theme="light"] .patient-notification-history-page,
html[data-theme="light"] .patient-notification-prefs-page {
  background-color: var(--patient-bg-primary);
}

html[data-theme="light"] .patient-notification-mark-all-btn {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

html[data-theme="light"] .patient-notification-section-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-notification-count {
  color: #64748b;
}

html[data-theme="light"] .patient-notification-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .patient-notification-card--unread {
  border-left-color: #2563eb;
}

html[data-theme="light"] .patient-notification-card__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-notification-card__body {
  color: #475569;
}

html[data-theme="light"] .patient-notification-card__time {
  color: #94a3b8;
}

html[data-theme="light"] .patient-notification-card__badge {
  color: #2563eb;
}

html[data-theme="light"] .patient-notification-empty,
html[data-theme="light"] .patient-notification-no-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .patient-notification-more-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-notification-more-btn span {
  color: #2563eb;
}

html[data-theme="light"] .patient-notification-history-page .patient-page-header__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-notification-history-page .patient-page-header__subtitle {
  color: #64748b;
}

html[data-theme="light"] .patient-notification-history-page .patient-page-header__back,
html[data-theme="light"] .patient-notification-history-page .patient-page-header__menu {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-notification-history-page .medical-history-search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .patient-notification-history-page .medical-history-search-input::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .patient-notification-history-page .medical-history-search-icon {
  color: #94a3b8;
}

html[data-theme="light"] .patient-notification-history-page .filter-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

html[data-theme="light"] .patient-notification-history-page .filter-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme="light"] .patient-notification-history-page .filter-btn.active {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

html[data-theme="light"] .patient-notification-history-page .filter-btn.active span {
  color: #ffffff;
}

html[data-theme="light"] .patient-notification-history-page .patient-notification-card--read {
  opacity: 1;
}

html[data-theme="light"] .patient-notification-history-page #noResults {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
}

html[data-theme="light"] .patient-notification-history-page #noResults p,
html[data-theme="light"] .patient-notification-history-page #noResults i {
  color: #64748b !important;
}

html[data-theme="light"] .patient-notification-history-page [style*="color: #60A5FA"],
html[data-theme="light"] .patient-notification-history-page [style*="color: #60a5fa"] {
  color: #2563eb !important;
}

html[data-theme="light"] .patient-notification-history-page [style*="color: #6B7280"],
html[data-theme="light"] .patient-notification-history-page [style*="color: #6b7280"] {
  color: #94a3b8 !important;
}

/* Proforma detail */
html[data-theme="light"] .patient-proforma-detail-page {
  background-color: var(--patient-bg-primary);
}

html[data-theme="light"] .patient-proforma-empty {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .patient-proforma-hero {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fcd34d;
}

html[data-theme="light"] .patient-proforma-hero__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-proforma-hero__date {
  color: #64748b;
}

html[data-theme="light"] .patient-proforma-stat {
  background: #fef3c7;
}

html[data-theme="light"] .patient-proforma-stat__label {
  color: #b45309;
}

html[data-theme="light"] .patient-proforma-stat__value {
  color: #0f172a;
}

html[data-theme="light"] .patient-proforma-chip {
  background: #fef3c7;
  color: #334155;
}

html[data-theme="light"] .patient-proforma-section-title {
  color: #0f172a;
}

html[data-theme="light"] .patient-proforma-treatment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .patient-proforma-treatment-card__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-proforma-treatment-card__desc {
  color: #64748b;
}

/* Inline overrides — notifications & proforma (legacy markup) */
html[data-theme="light"] .patient-notifications-page [style*="background-color: #1F2937"],
html[data-theme="light"] .patient-notifications-page [style*="background-color: #1f2937"],
html[data-theme="light"] .patient-notification-history-page [style*="background-color: #1F2937"],
html[data-theme="light"] .patient-notification-history-page [style*="background-color: #1f2937"],
html[data-theme="light"] .patient-proforma-detail-page [style*="background-color: #1F2937"],
html[data-theme="light"] .patient-proforma-detail-page [style*="background-color: #1f2937"] {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .patient-notifications-page [style*="color: #E5E7EB"],
html[data-theme="light"] .patient-notification-history-page [style*="color: #E5E7EB"],
html[data-theme="light"] .patient-proforma-detail-page [style*="color: #E5E7EB"] {
  color: #0f172a !important;
}

html[data-theme="light"] .patient-notifications-page [style*="color: #9CA3AF"],
html[data-theme="light"] .patient-notification-history-page [style*="color: #9CA3AF"],
html[data-theme="light"] .patient-proforma-detail-page [style*="color: #9CA3AF"] {
  color: #64748b !important;
}

html[data-theme="light"] .patient-notifications-page [style*="background: #1E3A8A"],
html[data-theme="light"] .patient-notifications-page [style*="background-color: #374151"] {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .patient-notifications-page [style*="border-left: 4px solid #60A5FA"] {
  border-left-color: #2563eb !important;
}

html[data-theme="light"] .patient-proforma-detail-page [style*="linear-gradient(135deg, rgba(251, 191, 36"] {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  border-color: #fcd34d !important;
}

html[data-theme="light"] .patient-proforma-detail-page [style*="background-color: rgba(251, 191, 36"] {
  background-color: #fef3c7 !important;
}

html[data-theme="light"] .patient-proforma-detail-page [style*="color: #FBBF24"],
html[data-theme="light"] .patient-proforma-detail-page [style*="color: #fbbf24"] {
  color: #b45309 !important;
}

html[data-theme="light"] .patient-proforma-detail-page a[style*="background-color: #FBBF24"] {
  background-color: #f59e0b !important;
  color: #78350f !important;
}

html[data-theme="light"] .patient-treatment-slide-progress-label {
  color: #69768f;
}
