:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 38%, #f5f7fb 100%);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.has-site-background {
  background-color: #eef4ff;
  background-image:
    linear-gradient(180deg, rgba(238, 244, 255, 0.76), rgba(245, 247, 251, 0.86)),
    var(--site-bg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.topbar-inner,
.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  transform: translateY(-1px);
}

.nav .nav-cta {
  border: 1px solid #6d28d9;
  border-bottom-color: #4c1d95;
  border-radius: 10px;
  background: linear-gradient(115deg, #6d5dfc 0%, #7c3aed 72%, #5b21b6 72%);
  color: #fff;
  box-shadow: 0 4px 0 #4c1d95, 0 10px 22px rgba(91, 33, 182, 0.2);
}

.nav .nav-cta:hover {
  color: #fff;
  background: linear-gradient(115deg, #7c6cff 0%, #8b5cf6 72%, #6d28d9 72%);
  box-shadow: 0 5px 0 #4c1d95, 0 14px 26px rgba(91, 33, 182, 0.24);
}

.main {
  padding: 34px 0 56px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.overview-card,
.quick-link,
.doctor-panel,
.landing-shell,
.hero-center-inner {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card,
.doctor-panel {
  border-radius: 24px;
  padding: 24px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.patient-profile-heading,
.patient-card-heading,
.patient-list-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.patient-profile-photo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.profile-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
}

.profile-photo-preview img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.patient-card-heading {
  margin-bottom: 18px;
}

.patient-search-form {
  padding-bottom: 20px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.patient-search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.patient-search-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
}

.patient-search-controls input,
.patient-search-controls button,
.patient-search-controls .btn {
  min-height: 46px;
}

.live-filter-bar {
  align-items: end;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
}

.live-filter-field {
  display: grid;
  gap: 8px;
}

.live-filter-field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.live-filter-field input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.live-filter-field input:focus {
  border-color: #6f82ff;
  box-shadow: 0 0 0 3px rgba(70, 92, 245, 0.14);
  outline: none;
}

.live-filter-input-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.live-filter-clear,
.live-filter-clear:hover,
.live-filter-clear:active {
  align-items: center;
  background: #ef4444;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 3px 0 #b91c1c;
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 600;
  height: 38px;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 0;
  transform: none;
  width: 38px;
}

.live-filter-clear:hover {
  background: #dc2626;
  box-shadow: 0 3px 0 #991b1b;
}

.live-filter-clear:active {
  box-shadow: 0 1px 0 #991b1b;
  transform: translateY(2px);
}

.live-filter-clear:disabled {
  background: #fca5a5;
  box-shadow: 0 2px 0 #f87171;
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.live-filter-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 14px;
  white-space: nowrap;
}

.live-filter-empty {
  margin-top: 14px;
}

[data-live-filter-item][hidden],
[data-live-filter-group][hidden],
[data-live-filter-empty][hidden] {
  display: none !important;
}

.live-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.live-pagination[hidden] {
  display: none;
}

.live-pagination button,
.live-pagination button:hover,
.live-pagination button:active {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 0 #cbd5e1;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
  transform: none;
}

.live-pagination button:hover {
  border-color: #93a4ff;
  color: var(--primary);
  transform: translateY(-1px);
}

.live-pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 0 var(--primary-dark);
  color: #fff;
}

.live-pagination button:disabled {
  background: #f1f5f9;
  box-shadow: none;
  color: #94a3b8;
  cursor: default;
  opacity: 1;
  transform: none;
}

.live-pagination-ellipsis {
  color: var(--muted);
  min-width: 24px;
  text-align: center;
}

@media (max-width: 620px) {
  .live-filter-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .live-filter-count {
    padding-bottom: 0;
  }
}

.patient-list-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: cover;
}

.patient-list-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-card {
  margin-bottom: 18px;
}

.section-head,
.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title,
.section-mini-head h2,
.section-mini-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}

.section-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-center {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-center-screen {
  position: fixed;
  inset: 73px 0 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.home-center-card {
  width: min(520px, 100%);
  min-height: 320px;
  padding: 40px 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.home-center-text {
  max-width: 420px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.home-center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn.patient-booking-button {
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-color: #6d28d9;
  border-bottom-color: #4c1d95;
  background: linear-gradient(115deg, #6d5dfc 0%, #7c3aed 76%, #5b21b6 76%);
  font-size: 16px;
  box-shadow: 0 6px 0 rgba(76, 29, 149, 0.16), 0 15px 30px rgba(109, 40, 217, 0.24);
}

.btn.patient-booking-button::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  line-height: 1;
}

.hero-center-inner {
  width: min(760px, 100%);
  padding: 64px 40px;
  border-radius: 32px;
  text-align: center;
}

.hero-center-inner--compact {
  width: min(520px, 100%);
  min-height: 320px;
  padding: 40px 32px;
  border-radius: 28px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  max-width: 620px;
  margin: 18px auto 12px;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-text--single {
  max-width: 420px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom-width: 3px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.page-tab:hover {
  color: var(--primary-dark);
  background: #fff;
  border-bottom-color: #93c5fd;
  transform: translateY(-2px);
}

.page-tab.active {
  color: #172554;
  background: #eff6ff;
  border-color: #bfdbfe;
  border-bottom-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.overview-card {
  border-radius: 22px;
  padding: 20px;
}

.overview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.overview-value {
  display: block;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.overview-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.action-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.profile-completion-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  background: #fff7d6;
  color: #713f12;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.18);
}

.patient-reschedule-alert {
  align-items: center;
  background: #fff3c4;
  border: 2px solid #f0a500;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.2);
  color: #4a2800;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.patient-reschedule-alert strong {
  display: block;
  font-size: 20px;
  margin: 4px 0 6px;
}

.patient-reschedule-alert p {
  margin: 0;
}

.reschedule-eyebrow {
  color: #9a5400;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.btn.reschedule-alert-link {
  background: #f59e0b;
  border-color: #d97706;
  border-bottom-color: #92400e;
  color: #2b1800;
  flex: 0 0 auto;
}

.btn.warning,
button.warning {
  background: #f59e0b;
  border-color: #d97706;
  border-bottom-color: #92400e;
  color: #2b1800;
  box-shadow: 0 5px 0 rgba(146, 64, 14, 0.16), 0 12px 22px rgba(245, 158, 11, 0.2);
}

.btn.warning:hover,
button.warning:hover {
  background: #d97706;
  color: #fff;
}

.profile-completion-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.profile-completion-alert p {
  margin: 0;
}

.btn.profile-completion-link {
  flex: 0 0 auto;
  border-color: #d97706;
  border-bottom-color: #92400e;
  background: #f59e0b;
  color: #281600;
  box-shadow: 0 5px 0 rgba(146, 64, 14, 0.16), 0 12px 22px rgba(245, 158, 11, 0.22);
}

.btn.profile-completion-link:hover {
  background: #d97706;
  color: #fff;
  box-shadow: 0 7px 0 rgba(146, 64, 14, 0.14), 0 16px 26px rgba(245, 158, 11, 0.25);
}

.btn.profile-completion-link span {
  margin-left: 8px;
  font-size: 20px;
  line-height: 1;
}

.action-board-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-group {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 20px;
}

.action-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.action-group h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.15;
}

.action-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link {
  display: grid;
  gap: 6px;
  border-radius: 22px;
  padding: 20px;
  color: var(--text);
}

.quick-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.quick-link strong {
  font-size: 16px;
}

.quick-link span {
  color: var(--muted);
  font-size: 14px;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doctor-panel {
  border-radius: 26px;
  display: flex;
  flex-direction: column;
}

.doctor-panel-top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
}

.doctor-photo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 28px;
}

.doctor-photo-lg {
  width: 96px;
  height: 96px;
  font-size: 32px;
}

.doctor-name {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.doctor-spec {
  margin: 0 0 6px;
  color: #334155;
  font-weight: 700;
}

.doctor-spec-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.doctor-spec-action-row .doctor-spec {
  margin: 0;
}

.doctor-details-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.doctor-details-link:hover {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1e40af;
}

.doctor-compact-actions {
  margin-top: 22px;
}

.doctor-detail-profile {
  padding: 34px;
}

.doctor-detail-news {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doctor-detail-news > h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.doctor-meta,
.doctor-description p {
  margin: 0;
  color: var(--muted);
}

.doctor-description {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #60a5fa;
  border-radius: 0 8px 8px 0;
  background: rgba(239, 246, 255, 0.78);
}

.doctor-description span {
  display: block;
  margin-bottom: 5px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doctor-dashboard-profile {
  min-height: 620px;
  padding: 34px;
}

.doctor-profile-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.doctor-profile-photo {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #eef2ff;
  object-fit: cover;
}

.doctor-profile-photo-placeholder {
  display: grid;
  place-items: center;
  color: #4338ca;
  font-size: 44px;
  font-weight: 800;
}

.doctor-profile-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doctor-profile-identity h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
}

.doctor-profile-specialization {
  margin: 9px 0 0;
  color: #334155;
  font-size: 19px;
  font-weight: 700;
}

.doctor-profile-phone {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.doctor-profile-identity .chip-row {
  margin-top: 14px;
}

.doctor-profile-actions {
  display: grid;
  gap: 12px;
  min-width: 210px;
}

.doctor-profile-actions .btn {
  width: 100%;
}

.doctor-profile-about {
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 4px solid #60a5fa;
  border-radius: 0 8px 8px 0;
  background: rgba(239, 246, 255, 0.78);
}

.doctor-profile-about > span {
  display: block;
  margin-bottom: 7px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doctor-profile-about p {
  max-width: 850px;
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

.doctor-profile-about .doctor-self-empty {
  color: var(--muted);
}

.doctor-profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doctor-profile-section + .doctor-profile-section {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.doctor-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.doctor-profile-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.doctor-profile-edit-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.doctor-profile-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workplace-list {
  display: grid;
}

.workplace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.workplace-row:last-child {
  border-bottom: 0;
}

.workplace-row h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.workplace-row p {
  margin: 0 0 6px;
}

.workplace-row span {
  color: var(--muted);
  font-size: 13px;
}

.workplace-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.workplace-actions form {
  display: block;
}

.schedule-workplace-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.schedule-workplace-empty p {
  margin: 0;
}

.doctor-profile-news {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doctor-profile-news .doctor-profile-section-head {
  align-items: flex-end;
}

.doctor-profile-news .doctor-profile-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 600;
}

.chip-muted {
  background: #f1f5f9;
  color: #64748b;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.messages {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  z-index: 30;
}

.message {
  max-height: 100px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    max-height 200ms ease,
    padding 200ms ease,
    border-width 200ms ease;
}

.message.is-dismissing {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.message.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

form {
  display: grid;
  gap: 14px;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-grow {
  flex: 1;
}

.field-checkbox {
  display: block;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 28px;
  cursor: pointer;
}

input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--primary);
  box-shadow: none;
  cursor: pointer;
}

input[type="checkbox"]:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.clearable-file-input {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
}

.current-file-row,
.new-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.current-file-row > span,
.new-file-row > span {
  flex: 0 0 auto;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.current-file-row a {
  min-width: 0;
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-file-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #475569;
  cursor: pointer;
}

.new-file-row input[type="file"] {
  min-width: 0;
  min-height: 42px;
  padding: 5px;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}

input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #e8eef7;
  color: #1e293b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: #dbe7f6;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

label {
  font-size: 14px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.45);
}

.form-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.btn,
button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #1d4ed8;
  border-bottom: 3px solid #1e40af;
  border-radius: 10px;
  background: linear-gradient(115deg, #3b82f6 0%, #2563eb 76%, #1d4ed8 76%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(30, 64, 175, 0.18), 0 12px 24px rgba(37, 99, 235, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover,
button:hover {
  color: #fff;
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(30, 64, 175, 0.16), 0 16px 30px rgba(37, 99, 235, 0.24);
}

.btn:active,
button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(30, 64, 175, 0.2), 0 5px 12px rgba(37, 99, 235, 0.16);
}

.btn:focus-visible,
button:focus-visible,
.page-tab:focus-visible,
.nav a:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.34);
  outline-offset: 3px;
}

.btn-large {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.btn.secondary,
button.secondary {
  background: linear-gradient(90deg, #dbeafe 0 5px, #fff 5px);
  color: #1e3a5f;
  border-color: #cbd5e1;
  border-bottom-color: #94a3b8;
  box-shadow: 0 4px 0 rgba(100, 116, 139, 0.14), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.btn.secondary:hover,
button.secondary:hover {
  color: #1d4ed8;
  background: linear-gradient(90deg, #93c5fd 0 5px, #f8fbff 5px);
  box-shadow: 0 6px 0 rgba(100, 116, 139, 0.12), 0 14px 24px rgba(15, 23, 42, 0.09);
}

.btn.green,
button.green {
  gap: 9px;
  border-color: #15803d;
  border-bottom-color: #166534;
  background: linear-gradient(115deg, #22c55e 0%, #16a34a 76%, #15803d 76%);
  box-shadow: 0 5px 0 rgba(22, 101, 52, 0.18), 0 12px 24px rgba(22, 163, 74, 0.2);
}

.btn.green::before,
button.green::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.btn.green:hover,
button.green:hover {
  box-shadow: 0 7px 0 rgba(22, 101, 52, 0.16), 0 16px 30px rgba(22, 163, 74, 0.24);
}

.btn.green:active,
button.green:active {
  box-shadow: 0 1px 0 rgba(22, 101, 52, 0.18), 0 5px 12px rgba(22, 163, 74, 0.16);
}

.btn.danger,
button.danger {
  gap: 9px;
  border-color: #dc2626;
  border-bottom-color: #991b1b;
  background: linear-gradient(115deg, #fb5d5d 0%, #ef4444 76%, #dc2626 76%);
  box-shadow: 0 5px 0 rgba(153, 27, 27, 0.17), 0 12px 24px rgba(220, 38, 38, 0.2);
}

.btn.danger::before,
button.danger::before {
  content: "×";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 16px;
  line-height: 1;
}

.btn.danger:hover,
button.danger:hover {
  box-shadow: 0 7px 0 rgba(153, 27, 27, 0.15), 0 16px 30px rgba(220, 38, 38, 0.24);
}

.btn.danger:active,
button.danger:active {
  box-shadow: 0 1px 0 rgba(153, 27, 27, 0.18), 0 5px 12px rgba(220, 38, 38, 0.16);
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

.claim-patient-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 150px);
  padding: 28px 0;
}

.claim-patient-card {
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
}

.claim-patient-card form {
  display: grid;
  gap: 16px;
  margin: 24px 0 18px;
}

.claim-patient-card form > button {
  width: 100%;
}

.doctor-summary {
  align-self: start;
}

.booking-summary {
  margin: 0 0 18px;
  color: #334155;
}

.price-list,
.simple-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li,
.simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.service-list-toggle {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--primary);
  gap: 8px;
  justify-content: flex-start;
  min-height: 38px;
  padding: 6px 0;
}

.service-extra[hidden] {
  display: none;
}

.service-list-toggle:hover {
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}

.service-toggle-chevron {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.service-list-toggle[aria-expanded="true"] .service-toggle-chevron {
  transform: rotate(180deg);
}

.service-manager {
  padding: 0 28px;
}

.service-manager-list {
  display: grid;
}

.service-manager-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-manager-item:last-child {
  border-bottom: 0;
}

.service-manager-item.editing,
.service-manager-create {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.72);
}

.service-manager-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.service-manager-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-manager-item h2 {
  margin: 0;
  font-size: 20px;
}

.service-manager-price {
  flex: 0 0 auto;
  font-size: 18px;
}

.service-manager-description {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-booking-state {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.service-booking-state.available {
  background: #dcfce7;
  color: #166534;
}

.service-manager-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.service-manager-actions form {
  display: block;
}

.service-order-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.service-order-controls form {
  display: block;
}

.service-order-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 18px;
}

.service-inline-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(147, 197, 253, 0.58);
}

.service-inline-form > .form-error,
.service-inline-form > .actions,
.service-inline-form > .field:has(textarea),
.service-inline-form > .field:has(input[type="file"]),
.service-inline-form > .field-checkbox {
  grid-column: 1 / -1;
}

.service-image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.service-image-manager-item {
  display: grid;
  gap: 8px;
}

.service-image-manager-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.service-image-delete {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

.doctor-service-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.booking-service-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.booking-service-choice .field {
  margin: 0;
}

.booking-service-details {
  white-space: nowrap;
}

.service-detail-card {
  display: grid;
  gap: 30px;
  padding: 32px;
}

.service-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.service-detail-label,
.service-detail-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-detail-price {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.service-detail-price strong {
  font-size: 22px;
}

.service-detail-description {
  max-width: 860px;
}

.service-detail-description-primary {
  flex: 1;
  max-width: 920px;
  padding-left: 22px;
  border-left: 4px solid var(--primary);
}

.service-detail-description.service-detail-description-primary h2 {
  margin-top: 6px;
  font-size: 28px;
}

.service-detail-description-primary p {
  max-width: 840px;
  font-size: 17px;
}

.service-detail-description h2,
.service-detail-gallery h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.service-detail-description p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.service-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.service-detail-cta {
  display: flex;
  padding-top: 2px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-actions {
  min-width: 160px;
}

.appointments-by-day {
  display: grid;
  gap: 18px;
}

.appointment-day-group {
  border-radius: 8px;
}

.appointment-day-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.appointment-day-head h2 {
  font-size: 20px;
  margin: 0;
}

.appointment-day-head span {
  color: var(--muted);
  font-size: 14px;
}

.appointment-summary-list {
  display: grid;
}

.appointment-summary-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 76px minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
  min-height: 78px;
  padding: 12px 0;
}

.appointment-summary-person {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.appointment-summary-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.appointment-person-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.appointment-filter-name,
.appointment-filter-name:hover,
.appointment-filter-name:active {
  background: transparent;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 800;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  transform: none;
  white-space: nowrap;
}

.appointment-filter-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.appointment-filter-name:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.appointment-person-name span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.appointment-kind-label {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.appointment-summary-row.appointment-kind-pending {
  background: #fff9e9;
  border-left: 4px solid #d99b16;
  padding-left: 14px;
}

.appointment-kind-pending .appointment-kind-label {
  background: #ffedb8;
  color: #805b00;
}

.appointment-summary-row.appointment-kind-approved {
  background: #eefaf2;
  border-left: 4px solid #18a957;
  padding-left: 14px;
}

.appointment-summary-row.appointment-kind-reschedule_proposed {
  background: #fff8df;
  border-left: 4px solid #f0a500;
  padding-left: 14px;
}

.appointment-kind-reschedule_proposed .appointment-kind-label {
  background: #ffe49a;
  color: #7a4300;
}

.appointment-kind-approved .appointment-kind-label {
  background: #ccefd8;
  color: #116b39;
}

.appointment-summary-row.appointment-kind-completed {
  background: #f3f6fa;
  border-left: 4px solid #718096;
  padding-left: 14px;
}

.appointment-kind-completed .appointment-kind-label {
  background: #e1e7ef;
  color: #46556a;
}

.appointment-summary-row.appointment-kind-canceled,
.appointment-summary-row.appointment-kind-rejected {
  background: #fff2f2;
  border-left: 4px solid #dc4242;
  padding-left: 14px;
}

.appointment-kind-canceled .appointment-kind-label,
.appointment-kind-rejected .appointment-kind-label {
  background: #ffdada;
  color: #9e2525;
}

.appointment-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.appointment-summary-row time {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
}

.appointment-summary-row > span {
  color: #52627a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.appointment-row-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.compact-form {
  gap: 8px;
}

.compact-form input[type="number"] {
  min-height: 40px;
}

.duration-input-hint {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.schedule-break {
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.canceled {
  background: #fee2e2;
  color: #b91c1c;
}

.status.completed {
  background: #dcfce7;
  color: #166534;
}

.status.reschedule_proposed {
  background: #ffe49a;
  color: #7a4300;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
}

.slot-grid-clean {
  margin-top: 6px;
}

.time-pill,
.slot-busy {
  min-height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.time-pill {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
}

.time-pill:hover {
  color: var(--text);
  background: #fff;
}

.time-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: transparent;
}

.slot-busy {
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
}

.empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: var(--muted);
}

@media (max-width: 960px) {
  .page-head,
  .section-head,
  .section-mini-head,
  .topbar-inner,
  .inline-form,
  .booking-layout,
  .grid-2,
  .grid-3,
  .overview-grid,
  .action-board,
  .action-board-wide,
  .quick-links,
  .doctor-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-inner {
    align-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .doctor-panel-top {
    grid-template-columns: 1fr;
  }

  .doctor-profile-hero {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .doctor-profile-photo {
    width: 150px;
    height: 150px;
  }

  .doctor-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.has-site-background {
    background-attachment: scroll;
  }

  .profile-completion-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .doctor-dashboard-profile {
    min-height: 0;
    padding: 22px;
  }

  .doctor-detail-profile {
    padding: 22px;
  }

  .doctor-profile-hero,
  .doctor-profile-sections {
    grid-template-columns: 1fr;
  }

  .doctor-profile-hero {
    align-items: start;
    gap: 18px;
  }

  .doctor-profile-photo {
    width: 116px;
    height: 116px;
  }

  .doctor-profile-identity h1 {
    font-size: 30px;
  }

  .doctor-profile-actions {
    grid-template-columns: 1fr;
  }

  .doctor-profile-section + .doctor-profile-section {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .doctor-profile-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .doctor-profile-news .doctor-profile-section-head {
    align-items: stretch;
  }

  .doctor-profile-edit-button {
    width: 100%;
  }

  .doctor-profile-section-actions,
  .workplace-actions {
    width: 100%;
  }

  .doctor-profile-section-actions .btn,
  .workplace-actions .btn,
  .workplace-actions form,
  .workplace-actions button {
    width: 100%;
  }

  .workplace-row {
    align-items: stretch;
    flex-direction: column;
  }

  .service-manager {
    padding: 0 18px;
  }

  .service-manager-item.editing,
  .service-manager-create {
    margin: 14px 0;
    padding: 18px;
  }

  .service-manager-item-head,
  .service-manager-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-manager-price {
    font-size: 16px;
  }

  .service-manager-actions .btn,
  .service-manager-actions > form,
  .service-manager-actions > form button {
    width: 100%;
  }

  .service-order-controls {
    width: 100%;
  }

  .service-order-controls form {
    flex: 1;
  }

  .service-order-button {
    width: 100%;
  }

  .service-inline-form {
    grid-template-columns: 1fr;
  }

  .doctor-service-list li,
  .doctor-service-actions,
  .service-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .doctor-service-actions {
    width: 100%;
  }

  .booking-service-choice {
    grid-template-columns: 1fr;
  }

  .booking-service-details {
    width: 100%;
  }

  .service-detail-card {
    gap: 24px;
    padding: 22px 18px;
  }

  .service-detail-price {
    justify-items: start;
  }

  .service-detail-description-primary {
    padding-left: 16px;
  }

  .service-detail-description.service-detail-description-primary h2 {
    font-size: 24px;
  }

  .service-photo-grid {
    grid-template-columns: 1fr;
  }

  .service-inline-form > .form-error,
  .service-inline-form > .actions {
    grid-column: auto;
  }

  .profile-completion-link {
    width: 100%;
  }

  .patient-search-controls {
    grid-template-columns: 1fr;
  }

  .patient-search-controls button,
  .patient-search-controls .btn {
    width: 100%;
  }

  .topbar-inner,
  .container {
    width: min(100% - 20px, 1160px);
  }

  .main {
    padding-top: 22px;
  }

  .hero-center {
    min-height: calc(100vh - 140px);
  }

  .home-center-screen {
    position: fixed;
    inset: 73px 0 0;
    padding: 16px;
  }

  .home-center-card {
    width: min(100%, 420px);
    min-height: 280px;
    padding: 28px 18px;
  }

  .home-center-text {
    font-size: 20px;
  }

  .hero-center-inner {
    padding: 36px 20px;
    border-radius: 24px;
  }

  .hero-center-inner--compact {
    width: min(100%, 420px);
    min-height: 280px;
    padding: 28px 18px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-text--single {
    font-size: 20px;
  }

  .page-title {
    font-size: 30px;
  }

  .card,
  .doctor-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .overview-card,
  .quick-link {
    border-radius: 18px;
  }
}

.appointment-photo-grid video,
.record-videos video,
.patient-record-videos video,
.current-record-videos video,
.service-video-manager video,
.service-video-gallery video {
  display: block;
  width: 100%;
  max-height: 420px;
  border: 1px solid #c9d7d3;
  border-radius: 8px;
  background: #122925;
  object-fit: contain;
}

.record-videos,
.patient-record-videos,
.current-record-videos,
.service-video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-video-manager {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.service-video-manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.admin-audit-section {
  margin-top: 22px;
}

.admin-audit-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-audit-row time,
.admin-audit-row small {
  color: var(--muted);
}

@media (max-width: 680px) {
  .record-videos,
  .patient-record-videos,
  .current-record-videos,
  .service-video-gallery,
  .service-video-manager-item,
  .admin-audit-row {
    grid-template-columns: 1fr;
  }
}

.patient-reschedule-alert {
  gap: 16px;
  padding: 16px 20px;
}

.patient-reschedule-alert strong {
  font-size: 18px;
}

.patient-reschedule-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.reschedule-quick-form {
  margin: 0;
}

body:not(.public-home-page) .btn.reschedule-alert-link {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 13px;
  box-shadow: none;
}

body:not(.public-home-page) button.reschedule-icon-action {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 13px rgba(21, 43, 38, 0.18);
}

body:not(.public-home-page) button.reschedule-icon-action.accept {
  background: #168b5d;
}

body:not(.public-home-page) button.reschedule-icon-action.accept:hover {
  background: #0f6e49;
  transform: translateY(-1px);
}

body:not(.public-home-page) button.reschedule-icon-action.reject {
  background: #b6424c;
}

body:not(.public-home-page) button.reschedule-icon-action.reject:hover {
  background: #91333c;
  transform: translateY(-1px);
}

.reschedule-comparison {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  padding: 18px 20px;
}

.reschedule-time {
  min-width: 154px;
  gap: 4px;
  padding: 10px 12px;
}

.reschedule-time strong {
  white-space: nowrap;
}

.detail-reschedule-actions {
  padding-left: 2px;
}

.patient-appointment-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .reschedule-comparison {
    grid-template-columns: 1fr;
  }

  .detail-reschedule-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .patient-reschedule-alert {
    align-items: stretch;
  }

  .patient-reschedule-actions {
    justify-content: flex-end;
  }

  .reschedule-time {
    min-width: 0;
  }

  .reschedule-time strong {
    white-space: normal;
  }
}

.current-visit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #dcfce7;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.14);
}

.current-visit-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-visit-banner h2 {
  margin: 0 0 6px;
  color: #14532d;
  font-size: 22px;
}

.current-visit-banner p {
  margin: 0;
  color: #166534;
}

.current-visit-button,
.current-visit-button:hover {
  flex: 0 0 auto;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.record-entry-editor {
  margin-top: 20px;
}

.selected-appointment-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
  color: #166534;
}

.record-timeline {
  display: grid;
  gap: 18px;
}

.record-entry {
  padding: 20px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.record-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.record-entry-head h3 {
  margin: 6px 0;
  font-size: 20px;
}

.record-kind {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e8eef7;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.record-entry-text,
.record-recommendations {
  color: #334155;
  line-height: 1.65;
}

.record-entry-text p,
.record-recommendations p {
  margin: 8px 0 0;
}

.record-recommendations {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
}

.record-recommendations > strong {
  display: block;
  color: #1e40af;
}

.record-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.record-images figure {
  margin: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.record-images img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  border-radius: 6px;
  object-fit: cover;
}

.patient-records-section {
  margin-bottom: 20px;
}

.patient-records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.patient-record-item {
  padding: 18px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.patient-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patient-record-item h3 {
  margin: 12px 0 5px;
  font-size: 20px;
}

.patient-record-doctor {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.patient-record-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.patient-record-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.canceled-appointment-item {
  align-items: center;
}

.canceled-appointment-info,
.canceled-appointment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.canceled-appointment-info {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.canceled-appointment-info small {
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
}

.canceled-appointment-actions {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .current-visit-banner,
  .selected-appointment-note,
  .record-entry-head {
    align-items: stretch;
    flex-direction: column;
  }

  .current-visit-button {
    width: 100%;
  }

  .record-images {
    grid-template-columns: 1fr;
  }

  .patient-records-grid {
    grid-template-columns: 1fr;
  }

  .canceled-appointment-item,
  .canceled-appointment-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.public-home {
  --home-bg: none;
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 73px);
  margin: -34px 0 -56px 50%;
  transform: translateX(-50%);
  background-color: #eaf2fb;
  background-image: var(--home-bg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

.public-home-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239, 246, 255, 0.84);
}

.public-home-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.home-particles {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-particle {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  user-select: none;
  will-change: transform;
}

.home-particle.tooth {
  width: 28px;
  height: 28px;
  font-size: 22px;
  opacity: 0.48;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}

.home-particle.medical-cross {
  width: 24px;
  height: 24px;
  color: #2563eb;
  font-size: 25px;
  font-weight: 800;
  opacity: 0.34;
}

.home-particle.custom-particle {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.58;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.16));
}

.home-particle.dental-particle {
  width: 25px;
  height: 25px;
  opacity: 0.52;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.13));
}

.dental-tooth,
.braced-tooth {
  font-size: 20px;
}

.braced-tooth::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 12px;
  height: 3px;
  border: 1px solid #64748b;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #e2e8f0 0 3px, #475569 3px 5px);
}

.dental-braces {
  color: #526579;
  font-size: 23px;
  font-weight: 700;
}

.public-home-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.public-home-intro h1 {
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.1;
}

.public-home-intro p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.public-home-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.public-content-panel {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.content-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.content-tab {
  flex: 0 0 auto;
  border-color: #dbe2ea;
  border-bottom-color: #a8b4c3;
  border-radius: 8px 8px 4px 4px;
  background: #eef2f7;
  color: #334155;
  box-shadow: 0 3px 0 rgba(100, 116, 139, 0.12);
}

.content-tab:hover {
  border-color: #bfdbfe;
  border-bottom-color: #3b82f6;
  background: #f8fbff;
  color: #1d4ed8;
}

.content-tab.active {
  border-color: #1d4ed8;
  border-bottom-color: #1e3a8a;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 0 rgba(30, 58, 138, 0.16), 0 9px 18px rgba(37, 99, 235, 0.16);
}

.content-tab.active:hover {
  background: #1d4ed8;
  color: #fff;
}

.home-tab-panel {
  display: none;
}

.home-tab-panel.active {
  display: block;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.news-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-body {
  padding: 18px;
}

.news-card-body h2 {
  margin: 6px 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.news-card-body p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.news-meta {
  color: var(--muted);
  font-size: 13px;
}

.clinic-gallery,
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.clinic-gallery figure,
.admin-gallery-grid article {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.clinic-gallery img,
.admin-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.clinic-gallery figcaption,
.admin-gallery-grid article > strong {
  display: block;
  padding: 12px 14px;
}

.admin-gallery-grid .actions {
  padding: 0 14px 14px;
}

.content-manager-grid,
.content-editor-section {
  margin-bottom: 20px;
}

.content-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.content-list li:last-child {
  border-bottom: 0;
}

.content-list li > div:first-child {
  display: grid;
  gap: 4px;
}

.content-list span {
  color: var(--muted);
  font-size: 14px;
}

.admin-content-page .container {
  width: min(1280px, calc(100% - 32px));
}

.content-admin {
  --content-ink: #132238;
  --content-soft: #f2f6f8;
  --content-line: #dbe4e8;
  --content-teal: #0f766e;
  color: var(--content-ink);
}

.content-admin-head {
  align-items: center;
  margin-bottom: 20px;
}

.content-admin-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--content-teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--content-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(30, 41, 59, 0.08);
}

.content-admin-summary > div {
  display: grid;
  gap: 3px;
  min-height: 86px;
  padding: 17px 20px;
  border-right: 1px solid var(--content-line);
}

.content-admin-summary > div:last-child {
  border-right: 0;
}

.content-admin-summary span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.content-admin-summary strong {
  font-size: 27px;
  line-height: 1.1;
}

.content-admin-jump {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--content-line);
  border-radius: 8px;
  background: rgba(244, 248, 250, 0.94);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.08);
  backdrop-filter: blur(12px);
}

.content-admin-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.content-admin-jump a:hover {
  background: #fff;
  color: var(--content-teal);
}

.content-admin-section {
  scroll-margin-top: 138px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(30, 41, 59, 0.1);
}

.content-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--content-line);
}

.content-admin-section-head > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
}

.content-admin-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.content-admin-section-head p {
  grid-column: 2;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
}

.content-admin-step {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #e6f5f2;
  color: var(--content-teal);
  font-size: 12px;
  font-weight: 800;
}

.content-admin-total {
  flex: 0 0 auto;
  padding-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.content-admin-branding-grid,
.content-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.content-admin-workspace-hero {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
}

.content-admin-form {
  display: grid;
  gap: 15px;
}

.content-admin-form .form-group {
  margin: 0;
}

.content-admin-form > button,
.content-admin-form > .actions {
  margin-top: 2px;
}

.content-admin-note,
.content-editor-panel {
  padding: 20px;
  border: 1px solid var(--content-line);
  border-radius: 8px;
  background: var(--content-soft);
}

.content-admin-note > span,
.content-editor-panel-head > span {
  color: var(--content-teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-admin-note h3,
.content-editor-panel-head h3 {
  margin: 5px 0 14px;
  font-size: 19px;
}

.content-admin-note p {
  margin: 0 0 11px;
  color: #475569;
  font-size: 14px;
}

.content-editor-panel {
  position: sticky;
  top: 138px;
}

.content-editor-preview {
  width: 100%;
  max-height: 190px;
  margin: 0 0 16px;
  border-radius: 6px;
  object-fit: cover;
}

.hero-admin-list,
.content-admin-rows {
  display: grid;
  gap: 10px;
}

.hero-admin-item {
  display: grid;
  grid-template-columns: 144px minmax(150px, 1fr) minmax(250px, auto);
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--content-line);
  border-left: 4px solid var(--content-teal);
  border-radius: 7px;
  background: #fff;
}

.hero-admin-item.is-hidden {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.hero-admin-item > img {
  width: 144px;
  height: 82px;
  border-radius: 5px;
  object-fit: cover;
}

.hero-admin-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-admin-copy strong,
.hero-admin-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-admin-copy span {
  color: #64748b;
  font-size: 13px;
}

.hero-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.hero-admin-actions form,
.content-admin-row form,
.content-admin-gallery form {
  display: contents;
}

.content-icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: #334155;
  font-size: 18px;
}

.content-icon-button:hover {
  border-color: #5eead4;
  background: #f0fdfa;
  box-shadow: none;
  color: var(--content-teal);
}

.btn.compact,
button.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.content-admin-library .live-filter-bar {
  margin-bottom: 14px;
}

.content-admin-row {
  display: grid;
  grid-template-columns: 58px minmax(160px, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--content-line);
}

.content-admin-row > img,
.content-admin-placeholder {
  width: 58px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
}

.content-admin-placeholder {
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 800;
}

.content-admin-row > div:nth-child(2),
.content-admin-gallery article > div:first-of-type {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.content-admin-row > div:nth-child(2) strong,
.content-admin-gallery strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-admin-row > div:nth-child(2) span,
.content-admin-gallery article > div:first-of-type span {
  color: #64748b;
  font-size: 12px;
}

.content-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.content-status.is-muted {
  background: #e2e8f0;
  color: #475569;
}

.content-admin-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-admin-gallery article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--content-line);
  border-radius: 7px;
  background: #fff;
}

.content-admin-gallery article > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  object-fit: cover;
}

.content-admin-empty {
  padding: 30px;
  border: 1px dashed #b8c8cf;
  border-radius: 7px;
  background: #f8fafc;
  text-align: center;
}

.content-admin-empty strong {
  display: block;
  margin-bottom: 5px;
}

.content-admin-empty p {
  max-width: 520px;
  margin: 0 auto;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .content-admin-branding-grid,
  .content-admin-workspace,
  .content-admin-workspace-hero {
    grid-template-columns: 1fr;
  }

  .content-editor-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .content-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-admin-summary > div:nth-child(2) {
    border-right: 0;
  }

  .content-admin-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--content-line);
  }

  .content-admin-jump {
    top: 72px;
  }

  .content-admin-section {
    padding: 20px 16px;
  }

  .hero-admin-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .hero-admin-item > img {
    width: 100px;
    height: 72px;
  }

  .hero-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .content-admin-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .content-admin-row > img,
  .content-admin-placeholder {
    width: 48px;
    height: 42px;
  }

  .content-admin-row > .actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .content-admin-section-head {
    flex-direction: column;
  }

  .content-admin-section-head > div {
    grid-template-columns: 30px 1fr;
  }

  .content-admin-step {
    width: 30px;
    height: 30px;
  }

  .content-admin-gallery {
    grid-template-columns: 1fr;
  }

  .hero-admin-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hero-admin-item > img {
    width: 76px;
    height: 60px;
  }
}

@media (max-width: 680px) {
  .public-home {
    margin-top: -22px;
    background-attachment: scroll;
  }

  .public-home-inner {
    width: min(100% - 20px, 1160px);
    padding: 36px 0 48px;
  }

  .public-home-intro h1 {
    font-size: 32px;
  }

  .public-content-panel {
    padding: 14px;
  }

  .news-grid,
  .clinic-gallery,
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }

  .content-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .current-file-row,
  .new-file-row {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-summary-row {
    gap: 8px 12px;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .appointment-summary-row > span {
    grid-column: 2;
  }

  .appointment-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Full appointment details for doctors. */
.appointment-detail-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  display: inline-block;
  color: #147a6e;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  text-decoration: none;
}

.back-link:hover {
  color: #0b5e55;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.appointment-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.appointment-detail-main,
.appointment-decision-panel,
.appointment-photo-section {
  border-radius: 8px;
}

.appointment-detail-main-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.appointment-detail-sidebar {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.detail-list > div {
  border-bottom: 1px solid #dfe5ef;
  padding: 14px 12px 14px 0;
}

.detail-list dt {
  color: #66758d;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.detail-list dd {
  color: #121a2e;
  margin: 0;
  overflow-wrap: anywhere;
}

.appointment-reason {
  margin-top: 24px;
}

.appointment-reason > div {
  background: #f7f9fc;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  margin-top: 12px;
  padding: 16px;
}

.appointment-reason p {
  margin: 0;
}

.appointment-decision-panel {
  position: static;
}

.appointment-decision-panel form {
  margin-top: 18px;
}

.appointment-decision-panel button {
  width: 100%;
}

.appointment-reschedule-button {
  margin-top: 14px;
  width: 100%;
}

.appointment-reschedule-panel form,
.patient-reschedule-decision form {
  margin-top: 16px;
}

.appointment-reschedule-panel button,
.patient-reschedule-decision button {
  width: 100%;
}

.reschedule-waiting-panel {
  background: #fff9e8;
  border: 1px solid #f0c45b;
}

.reschedule-comparison {
  align-items: center;
  background: #fff3c4;
  border: 2px solid #f0a500;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.18);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
  padding: 24px;
}

.reschedule-comparison h2 {
  margin: 5px 0 8px;
}

.reschedule-comparison p {
  margin: 0;
}

.reschedule-times {
  align-items: center;
  display: flex;
  gap: 12px;
}

.reschedule-time {
  background: #fff;
  border: 1px solid #e1c36f;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 14px;
}

.reschedule-time span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.reschedule-time.old {
  opacity: 0.72;
}

.reschedule-time.new {
  border-color: #18a957;
  box-shadow: inset 4px 0 0 #18a957;
}

.reschedule-arrow {
  color: #9a5400;
  font-size: 24px;
  font-weight: 900;
}

.patient-appointment-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.appointment-photo-section {
  margin-top: 0;
}

.day-appointments-section {
  border-radius: 8px;
  margin-top: 0;
}

.day-appointments-head {
  align-items: flex-start;
}

.day-appointment-list {
  display: grid;
  gap: 8px;
}

.day-appointment-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  color: #121a2e;
  display: grid;
  gap: 16px;
  grid-template-columns: 70px minmax(180px, 1fr) 80px minmax(120px, auto);
  min-height: 72px;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.appointment-detail-sidebar .day-appointment-item {
  gap: 8px 12px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 12px;
}

.appointment-detail-sidebar .day-appointment-duration,
.appointment-detail-sidebar .day-appointment-item > .status,
.appointment-detail-sidebar .active-visit-label {
  grid-column: 2;
}

.day-appointment-item:hover {
  background: #f1f5ff;
  border-color: #9badff;
}

.day-appointment-item.selected {
  border-color: #6048f4;
  box-shadow: inset 4px 0 0 #6048f4;
}

.day-appointment-item.active-now {
  background: #e9f9ef;
  border-color: #20a957;
  box-shadow: inset 4px 0 0 #20a957;
}

.day-appointment-time {
  font-size: 18px;
}

.day-appointment-person {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.day-appointment-person strong,
.day-appointment-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-appointment-person small,
.day-appointment-duration {
  color: #66758d;
}

.active-visit-label {
  background: #19a954;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  padding: 8px 11px;
  white-space: nowrap;
}

.appointment-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.appointment-photo-grid a {
  background: #eef2f7;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.appointment-photo-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
  width: 100%;
}

.appointment-photo-grid a:hover img {
  transform: scale(1.025);
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard > *,
.admin-dashboard .page-head,
.admin-dashboard .page-tabs,
.admin-dashboard .section-card {
  margin-bottom: 0;
}

.admin-tabs {
  flex-wrap: wrap;
}

.admin-command-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 20px;
}

.admin-command-bar h2 {
  font-size: 20px;
  margin: 3px 0 0;
}

.admin-eyebrow {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 18px;
}

.admin-stat span {
  color: #52637c;
  font-size: 14px;
  font-weight: 700;
}

.admin-stat strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.admin-stat small {
  align-self: end;
  color: #718096;
  font-size: 12px;
}

.admin-stat-doctors {
  border-left-color: #7c3aed;
}

.admin-stat-appointments {
  border-left-color: #0f9f8f;
}

.admin-stat-pending {
  background: #fffbed;
  border-left-color: #e7a400;
}

.admin-dashboard .section-card {
  border-radius: 8px;
}

.admin-section-head {
  align-items: flex-start;
}

.admin-section-head .section-note {
  display: block;
  margin-top: 5px;
}

.admin-users-table {
  min-width: 930px;
}

.admin-user-identity,
.admin-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-identity small,
.admin-list-main span {
  color: #66758d;
  font-size: 13px;
}

.admin-role {
  background: #eef2ff;
  border-radius: 999px;
  color: #4338ca;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
  white-space: nowrap;
}

.admin-role-staff {
  background: #e8f7f4;
  color: #087968;
}

.admin-role-empty {
  background: #f1f5f9;
  color: #64748b;
}

.admin-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.admin-table-actions .btn,
.admin-table-actions button {
  min-height: 38px;
  padding: 0 11px;
  white-space: nowrap;
}

.admin-overview-columns {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.admin-compact-list {
  display: grid;
}

.admin-doctor-row,
.admin-appointment-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  min-height: 72px;
  padding: 12px 0;
}

.admin-compact-list > article:first-child {
  border-top: 0;
}

.admin-doctor-row {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.admin-list-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-list-meta > span:first-child {
  color: #66758d;
  font-size: 13px;
}

.admin-list-meta a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.admin-appointment-row {
  grid-template-columns: 58px minmax(160px, 1fr) auto;
}

.admin-appointment-row time {
  color: #66758d;
  display: grid;
  font-size: 12px;
  gap: 2px;
}

.admin-appointment-row time strong {
  color: #1d4ed8;
  font-size: 16px;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview-columns {
    grid-template-columns: 1fr;
  }

  .appointment-detail-layout {
    grid-template-columns: 1fr;
  }

  .appointment-decision-panel {
    position: static;
  }

  .patient-appointment-layout,
  .reschedule-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-command-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-command-actions {
    display: grid;
  }

  .admin-command-actions .btn {
    width: 100%;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat {
    min-height: 118px;
    padding: 15px;
  }

  .admin-stat strong {
    font-size: 30px;
  }

  .admin-doctor-row,
  .admin-appointment-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .admin-list-meta {
    justify-content: flex-start;
  }

  .admin-appointment-row time {
    display: flex;
    gap: 8px;
  }

  .patient-reschedule-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .reschedule-times {
    align-items: stretch;
    flex-direction: column;
  }

  .reschedule-arrow {
    transform: rotate(90deg);
  }

  .appointment-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-list,
  .appointment-photo-grid {
    grid-template-columns: 1fr;
  }

  .day-appointment-item {
    gap: 8px 12px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .day-appointment-duration,
  .day-appointment-item > .status,
  .active-visit-label {
    grid-column: 2;
  }
}

/* Public editorial home page. */
.public-home-page {
  background: #f4f2ed;
}

.public-home-page .main {
  padding: 0;
}

.public-home-page .container {
  width: 100%;
}

.public-home-page .messages {
  left: 50%;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  z-index: 90;
}

.public-home-page .home-reveal-topbar {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(-110%);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 70;
}

.public-home-page .home-reveal-topbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.public-home {
  background: #f4f2ed;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  transform: none;
  width: 100%;
}

.home-cinematic-hero {
  background: #16201f;
  color: #fff;
  height: calc(100svh - 44px);
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.home-hero-slides,
.home-hero-slide,
.home-hero-slide img,
.home-hero-shade {
  inset: 0;
  position: absolute;
}

.home-hero-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 10000ms linear;
}

.home-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.home-hero-slide img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-hero-shade {
  background: rgba(8, 19, 19, 0.48);
  z-index: 2;
}

.home-hero-particles {
  opacity: 0.34;
  z-index: 3;
}

.home-hero-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 50%;
  padding-top: 24px;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(1340px, calc(100% - 64px));
  z-index: 6;
}

.home-hero-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 12px;
}

.home-hero-brand:hover,
.home-hero-nav-links a:hover,
.home-hero-actions a:hover {
  color: #fff;
}

.home-hero-brand img {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.home-hero-nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}

.home-hero-nav-links a {
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 0;
  transition: border-color 180ms ease, color 180ms ease;
}

.home-hero-nav-links a:hover {
  border-bottom-color: #fff;
}

.home-doctor-visit-banner {
  left: 50%;
  position: absolute;
  top: 88px;
  transform: translateX(-50%);
  width: min(1220px, calc(100% - 48px));
  z-index: 7;
}

.home-doctor-visit-banner .current-visit-banner {
  margin: 0;
}

.current-visit-banner {
  border: 1px solid #31a878;
  border-left: 6px solid #159a63;
  border-radius: 8px;
  background: #dffbea;
  box-shadow: 0 14px 34px rgba(21, 154, 99, 0.16);
}

.current-visit-banner .current-visit-label {
  color: #08734a;
}

.current-visit-banner h2 {
  color: #0d4f39;
}

.current-visit-banner p {
  color: #286350;
}

.current-visit-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #187f73;
  border-radius: 6px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.current-visit-banner .current-visit-button,
.current-visit-banner .current-visit-button:hover {
  background: #187f73;
  color: #fff;
}

.home-hero-copy {
  left: max(32px, calc((100% - 1160px) / 2));
  max-width: 760px;
  position: absolute;
  top: 50%;
  transform: translateY(-44%);
  z-index: 5;
}

.home-section-kicker {
  color: #187f73;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.home-hero-copy .home-section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-copy h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 80px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0;
  max-width: 900px;
}

.home-hero-copy > p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  margin: 24px 0 0;
  max-width: 560px;
}

.home-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
}

.home-hero-actions a {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 14px;
  min-height: 38px;
  padding: 0 0 7px;
}

.home-hero-actions a span {
  font-size: 20px;
}

.home-hero-actions .home-hero-minor-link {
  border-bottom-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.home-slider-controls {
  align-items: center;
  bottom: 34px;
  display: flex;
  gap: 14px;
  position: absolute;
  right: max(32px, calc((100% - 1160px) / 2));
  z-index: 6;
}

.home-slider-controls > button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  width: 42px;
}

.home-slider-controls > button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  box-shadow: none;
  transform: none;
}

.home-slider-dots {
  align-items: center;
  display: flex;
  gap: 8px;
}

.home-slider-dots button {
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  height: 7px;
  min-height: 7px;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease;
  width: 7px;
}

.home-slider-dots button.is-active {
  background: #fff;
  transform: scale(1.45);
}

.home-scroll-cue {
  align-items: center;
  bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  font-size: 13px;
  gap: 12px;
  left: max(32px, calc((100% - 1160px) / 2));
  position: absolute;
  z-index: 6;
}

.home-scroll-cue:hover {
  color: #fff;
}

.home-scroll-cue span:last-child {
  font-size: 18px;
}

.home-section {
  padding: 92px 0;
}

.home-section-inner {
  margin: 0 auto;
  width: min(1160px, calc(100% - 48px));
}

.home-section-head {
  align-items: end;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 38px;
}

.home-section-head h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

.home-section-head > p {
  color: #5e6b69;
  margin: 0;
  max-width: 430px;
}

.home-clinic-news {
  background: #fff;
}

.home-news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-news-card {
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.home-news-card > img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-news-body {
  padding: 22px;
}

.home-news-body time {
  color: #187f73;
  font-size: 12px;
  font-weight: 700;
}

.home-news-body h3,
.home-doctor-news-item h3 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
  margin: 10px 0 13px;
}

.home-news-body p,
.home-doctor-news-item > p {
  color: #52605e;
  line-height: 1.65;
  margin: 0;
}

.home-doctor-news {
  background: #edf3f1;
}

.home-doctor-news-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-doctor-news-item {
  background: #fff;
  border: 1px solid #d8e3df;
  border-radius: 8px;
  overflow: hidden;
  padding: 22px;
}

.home-doctor-news-author {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.home-doctor-news-author > img {
  border-radius: 50%;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.home-doctor-news-author div {
  display: grid;
  gap: 2px;
}

.home-doctor-news-author span {
  color: #6b7775;
  font-size: 12px;
}

.home-doctor-news-image {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-gallery-section {
  background: #e7edf0;
  overflow: hidden;
  padding-bottom: 100px;
}

.home-photo-reel {
  overflow: hidden;
  width: 100%;
}

.home-photo-track {
  animation: home-photo-drift 72s linear infinite;
  display: flex;
  gap: 18px;
  width: max-content;
}

.home-photo-track:hover {
  animation-play-state: paused;
}

.home-photo-track figure {
  flex: 0 0 380px;
  margin: 0;
  position: relative;
}

.home-photo-track img {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-photo-track figcaption {
  color: #445452;
  font-size: 13px;
  margin-top: 10px;
}

@keyframes home-photo-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.home-doctors-section {
  background: #fff;
  padding-bottom: 110px;
}

.home-section-link {
  border-bottom: 1px solid #8ba39e;
  color: #1d4c46;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  padding-bottom: 7px;
}

.home-section-link:hover {
  color: #0c7568;
}

.home-doctors-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-doctor-card {
  background: #f5f6f3;
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  color: #172321;
  display: grid;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-doctor-card:hover {
  border-color: #9db8b2;
  color: #172321;
  transform: translateY(-3px);
}

.home-doctor-card > img,
.home-doctor-photo-placeholder {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-doctor-photo-placeholder {
  align-items: center;
  background: #dfe9e6;
  color: #187f73;
  display: flex;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 68px;
  font-weight: 600;
  justify-content: center;
}

.home-doctor-card-copy {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.home-doctor-card-copy strong {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.home-doctor-card-copy > span {
  color: #187f73;
  font-size: 13px;
  font-weight: 700;
}

.home-doctor-card-copy small {
  color: #61706d;
  line-height: 1.5;
  margin-top: 6px;
}

.home-empty-state {
  border-top: 1px solid #ccd8d4;
  color: #687673;
  grid-column: 1 / -1;
  padding: 24px 0;
}

@media (max-width: 900px) {
  .home-cinematic-hero {
    min-height: 620px;
  }

  .home-hero-nav {
    width: min(100% - 40px, 1160px);
  }

  .home-hero-copy {
    left: 32px;
    right: 32px;
  }

  .home-hero-copy h1 {
    font-size: 62px;
  }

  .home-news-grid,
  .home-doctor-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .public-home-page .messages {
    width: calc(100% - 20px);
  }

  .home-cinematic-hero {
    height: calc(100svh - 28px);
    min-height: 560px;
  }

  .home-cinematic-hero.has-doctor-visit {
    height: 760px;
    min-height: 760px;
  }

  .home-doctor-visit-banner {
    top: 76px;
    width: calc(100% - 24px);
  }

  .home-cinematic-hero.has-doctor-visit .home-hero-copy {
    top: 64%;
  }

  .home-hero-nav {
    align-items: flex-start;
    padding-top: 18px;
    width: calc(100% - 32px);
  }

  .home-hero-brand {
    font-size: 15px;
  }

  .home-hero-brand img {
    height: 34px;
    width: 34px;
  }

  .home-hero-nav-links {
    gap: 12px;
    max-width: none;
  }

  .home-hero-nav-links a {
    font-size: 12px;
  }

  .home-hero-nav-links a:first-child {
    display: none;
  }

  .home-hero-copy {
    left: 20px;
    max-width: none;
    right: 20px;
    top: 47%;
    width: calc(100% - 40px);
  }

  .home-hero-copy h1 {
    font-size: 44px;
    line-height: 1;
  }

  .home-hero-copy > p {
    font-size: 15px;
    margin-top: 18px;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .home-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .home-hero-actions a {
    min-height: 32px;
  }

  .home-scroll-cue {
    bottom: 22px;
    left: 20px;
  }

  .home-slider-controls {
    bottom: 18px;
    right: 20px;
  }

  .home-slider-controls > button {
    height: 36px;
    min-height: 36px;
    width: 36px;
  }

  .home-slider-dots {
    display: none;
  }

  .home-section {
    padding: 68px 0;
  }

  .home-section-inner {
    width: calc(100% - 32px);
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .home-section-head h2 {
    font-size: 34px;
  }

  .home-news-grid,
  .home-doctor-news-list,
  .home-doctors-grid {
    grid-template-columns: 1fr;
  }

  .home-photo-track {
    gap: 12px;
  }

  .home-photo-track figure {
    flex-basis: 270px;
  }

  .home-gallery-section {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide,
  .home-doctor-card {
    transition: none;
  }

  .home-photo-reel {
    overflow-x: auto;
  }

  .home-photo-track {
    animation: none;
  }
}

/* Shared visual language for the working areas of the site. */
body:not(.public-home-page) {
  --primary: #187f73;
  --primary-dark: #0f675e;
  --accent: #b8874f;
  --green: #187f73;
  --surface: rgba(255, 255, 255, 0.97);
  --surface-strong: #ffffff;
  --surface-muted: #f3f6f4;
  --text: #172321;
  --muted: #64716e;
  --line: #dce3df;
  --shadow: 0 16px 42px rgba(31, 50, 46, 0.08);
  background: #edf3f1;
  color: var(--text);
}

body:not(.public-home-page).has-site-background {
  background-color: #edf3f1;
  background-image:
    linear-gradient(180deg, rgba(237, 243, 241, 0.92), rgba(247, 248, 245, 0.96)),
    var(--site-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

body:not(.public-home-page) .topbar {
  border-bottom: 1px solid #dce3df;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
}

body:not(.public-home-page) .topbar-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 72px;
  padding: 12px 0;
}

body:not(.public-home-page) .brand {
  color: #172321;
  font-size: 18px;
}

body:not(.public-home-page) .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
}

body:not(.public-home-page) .brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #b8d0ca;
  border-radius: 50%;
  background: #e3efec;
  box-shadow: none;
  color: #187f73;
}

body:not(.public-home-page) .nav {
  gap: 22px;
}

body:not(.public-home-page) .nav a {
  min-height: 36px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #43514e;
  font-size: 13px;
}

body:not(.public-home-page) .nav a:hover {
  border-bottom-color: #187f73;
  background: transparent;
  color: #0f675e;
  transform: none;
}

body:not(.public-home-page) .nav .nav-cta {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #187f73;
  border-radius: 4px;
  background: #187f73;
  box-shadow: none;
  color: #fff;
}

body:not(.public-home-page) .nav .nav-cta:hover {
  border-color: #0f675e;
  background: #0f675e;
  box-shadow: none;
  color: #fff;
}

body:not(.public-home-page) .main {
  padding: 48px 0 72px;
}

body:not(.public-home-page) .container {
  width: min(1220px, calc(100% - 48px));
}

body:not(.public-home-page) .page-head {
  align-items: flex-end;
  margin-bottom: 30px;
}

body:not(.public-home-page) .page-title {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

body:not(.public-home-page) .page-subtitle {
  max-width: 680px;
  margin-top: 12px;
  color: #64716e;
  font-size: 15px;
}

body:not(.public-home-page) .card,
body:not(.public-home-page) .doctor-panel,
body:not(.public-home-page) .action-group,
body:not(.public-home-page) .overview-card,
body:not(.public-home-page) .quick-link {
  border: 1px solid #dce3df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

body:not(.public-home-page) .card,
body:not(.public-home-page) .doctor-panel {
  padding: 26px;
}

body:not(.public-home-page) .section-card {
  margin-bottom: 20px;
}

body:not(.public-home-page) .section-head,
body:not(.public-home-page) .section-mini-head {
  margin-bottom: 20px;
}

body:not(.public-home-page) .section-title,
body:not(.public-home-page) .section-mini-head h2,
body:not(.public-home-page) .section-mini-head h3,
body:not(.public-home-page) .doctor-profile-section-head h2,
body:not(.public-home-page) .doctor-detail-news > h2,
body:not(.public-home-page) .record-entry-editor h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

body:not(.public-home-page) .section-note {
  color: #6b7775;
}

body:not(.public-home-page) .page-tabs {
  gap: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid #cfdad6;
}

body:not(.public-home-page) .page-tab {
  min-height: 44px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #65726f;
}

body:not(.public-home-page) .page-tab:hover {
  border-bottom-color: #8eb1aa;
  background: transparent;
  color: #174f48;
  transform: none;
}

body:not(.public-home-page) .page-tab.active {
  border: 0;
  border-bottom: 2px solid #187f73;
  background: transparent;
  box-shadow: none;
  color: #172321;
}

body:not(.public-home-page) .btn,
body:not(.public-home-page) button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #187f73;
  border-radius: 5px;
  background: #187f73;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body:not(.public-home-page) .btn:hover,
body:not(.public-home-page) button:hover {
  border-color: #0f675e;
  background: #0f675e;
  box-shadow: none;
  color: #fff;
  filter: none;
  transform: none;
}

body:not(.public-home-page) .btn:active,
body:not(.public-home-page) button:active {
  box-shadow: none;
  transform: none;
}

body:not(.public-home-page) .btn.secondary,
body:not(.public-home-page) button.secondary {
  border: 1px solid #b9c8c4;
  background: #fff;
  box-shadow: none;
  color: #29443f;
}

body:not(.public-home-page) .btn.secondary:hover,
body:not(.public-home-page) button.secondary:hover {
  border-color: #187f73;
  background: #eef5f3;
  box-shadow: none;
  color: #0f675e;
}

body:not(.public-home-page) .btn.green,
body:not(.public-home-page) button.green,
body:not(.public-home-page) .btn.current-visit-button {
  border-color: #187f73;
  background: #187f73;
  box-shadow: none;
}

body:not(.public-home-page) .btn.danger,
body:not(.public-home-page) button.danger {
  border-color: #d7a5a5;
  background: #fff;
  box-shadow: none;
  color: #a32f2f;
}

body:not(.public-home-page) .btn.danger:hover,
body:not(.public-home-page) button.danger:hover {
  border-color: #a32f2f;
  background: #a32f2f;
  box-shadow: none;
  color: #fff;
}

body:not(.public-home-page) .btn.warning,
body:not(.public-home-page) button.warning,
body:not(.public-home-page) .btn.profile-completion-link,
body:not(.public-home-page) .btn.reschedule-alert-link {
  border-color: #c89a5d;
  background: #fff8ec;
  box-shadow: none;
  color: #7a5423;
}

body:not(.public-home-page) .btn.warning:hover,
body:not(.public-home-page) button.warning:hover,
body:not(.public-home-page) .btn.profile-completion-link:hover,
body:not(.public-home-page) .btn.reschedule-alert-link:hover {
  border-color: #a9783f;
  background: #a9783f;
  box-shadow: none;
  color: #fff;
}

body:not(.public-home-page) .btn.danger::before,
body:not(.public-home-page) button.danger::before,
body:not(.public-home-page) .btn.green::before,
body:not(.public-home-page) button.green::before {
  display: none;
}

body:not(.public-home-page) .btn.patient-booking-button {
  min-height: 46px;
  padding: 0 20px;
  border-color: #187f73;
  background: #187f73;
  box-shadow: none;
  font-size: 14px;
}

body:not(.public-home-page) .btn.patient-booking-button::before {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
}

body:not(.public-home-page) input,
body:not(.public-home-page) select,
body:not(.public-home-page) textarea {
  min-height: 46px;
  border: 1px solid #cdd8d4;
  border-radius: 5px;
  background: #fff;
}

body:not(.public-home-page) textarea {
  min-height: 120px;
}

body:not(.public-home-page) input:not([type="checkbox"]):focus,
body:not(.public-home-page) select:focus,
body:not(.public-home-page) textarea:focus {
  border-color: #187f73;
  outline: 3px solid rgba(24, 127, 115, 0.12);
}

body:not(.public-home-page) input[type="checkbox"] {
  accent-color: #187f73;
}

body:not(.public-home-page) input[type="file"]::file-selector-button {
  background: #e8efed;
  color: #29443f;
}

body:not(.public-home-page) .clearable-file-input {
  border-color: #d7e0dd;
  border-radius: 6px;
  background: #f5f7f5;
}

body:not(.public-home-page) .messages {
  top: 84px;
  width: min(1220px, calc(100% - 48px));
}

body:not(.public-home-page) .message {
  border-color: #a8cec5;
  border-radius: 5px;
  background: #edf8f4;
  color: #155c53;
  box-shadow: 0 10px 30px rgba(31, 50, 46, 0.08);
}

body:not(.public-home-page) .message.error {
  border-color: #e3b6b6;
  background: #fff4f4;
  color: #932f2f;
}

body:not(.public-home-page) .live-filter-bar {
  gap: 18px;
}

body:not(.public-home-page) .live-filter-input-row input {
  padding-right: 48px;
}

body:not(.public-home-page) .live-filter-clear {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-color: #d7a5a5;
  border-radius: 50%;
  background: #fff;
  color: #a32f2f;
}

body:not(.public-home-page) .live-filter-clear:hover {
  border-color: #a32f2f;
  background: #a32f2f;
  color: #fff;
}

body:not(.public-home-page) .live-pagination button {
  border-color: #bdcbc7;
  background: #fff;
  color: #29443f;
}

body:not(.public-home-page) .live-pagination button.active {
  border-color: #187f73;
  background: #187f73;
  color: #fff;
}

body:not(.public-home-page) .overview-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 8px;
  background: #dce3df;
  box-shadow: var(--shadow);
}

body:not(.public-home-page) .overview-card {
  min-height: 112px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.public-home-page) .overview-label {
  color: #6b7775;
  font-size: 12px;
  text-transform: uppercase;
}

body:not(.public-home-page) .overview-value {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0;
}

body:not(.public-home-page) .action-board {
  gap: 16px;
}

body:not(.public-home-page) .action-group {
  padding: 24px;
}

body:not(.public-home-page) .action-group-label,
body:not(.public-home-page) .doctor-profile-label,
body:not(.public-home-page) .service-manager-label,
body:not(.public-home-page) .content-admin-kicker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #187f73;
  font-size: 11px;
  text-transform: uppercase;
}

body:not(.public-home-page) .action-group h3 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.public-home-page) .doctor-grid {
  gap: 20px;
}

body:not(.public-home-page) .doctor-panel {
  min-height: 250px;
}

body:not(.public-home-page) .doctor-photo {
  border: 1px solid #cbd9d5;
  border-radius: 6px;
  background: #dfe9e6;
  color: #187f73;
}

body:not(.public-home-page) .doctor-name,
body:not(.public-home-page) .doctor-profile-identity h1,
body:not(.public-home-page) .service-manager-item h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.public-home-page) .doctor-name {
  font-size: 28px;
}

body:not(.public-home-page) .doctor-spec {
  color: #187f73;
  font-size: 13px;
}

body:not(.public-home-page) .doctor-details-link {
  min-height: 28px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid #8ba39e;
  border-radius: 0;
  background: transparent;
  color: #1d4c46;
}

body:not(.public-home-page) .doctor-details-link:hover {
  border-color: #187f73;
  background: transparent;
  color: #0f675e;
}

body:not(.public-home-page) .doctor-dashboard-profile {
  padding: 38px;
}

body:not(.public-home-page) .doctor-profile-identity h1 {
  font-size: 46px;
}

body:not(.public-home-page) .doctor-profile-specialization {
  color: #187f73;
  font-size: 16px;
}

body:not(.public-home-page) .doctor-profile-about,
body:not(.public-home-page) .doctor-description {
  border-left-color: #187f73;
  background: #eef5f3;
}

body:not(.public-home-page) .doctor-profile-about > span,
body:not(.public-home-page) .doctor-description span {
  color: #187f73;
}

body:not(.public-home-page) .doctor-profile-sections,
body:not(.public-home-page) .doctor-profile-news,
body:not(.public-home-page) .doctor-detail-news {
  border-color: #dce3df;
}

body:not(.public-home-page) .chip {
  border: 1px solid #c8dad5;
  background: #edf5f3;
  color: #155e55;
}

body:not(.public-home-page) .chip-muted {
  border-color: #dce3df;
  background: #f5f7f5;
  color: #64716e;
}

body:not(.public-home-page) .simple-list li,
body:not(.public-home-page) .price-list li,
body:not(.public-home-page) .workplace-row,
body:not(.public-home-page) .content-list li {
  border-color: #dce3df;
}

body:not(.public-home-page) .profile-completion-alert,
body:not(.public-home-page) .patient-reschedule-alert {
  border: 1px solid #d8b77f;
  border-left: 4px solid #b8874f;
  border-radius: 6px;
  background: #fff9ef;
  box-shadow: none;
  color: #66491f;
}

body:not(.public-home-page) .current-visit-banner {
  border: 1px solid #31a878;
  border-left: 6px solid #159a63;
  border-radius: 8px;
  background: #dffbea;
  box-shadow: 0 14px 34px rgba(21, 154, 99, 0.16);
}

body:not(.public-home-page) .current-visit-label {
  color: #08734a;
}

body:not(.public-home-page) .current-visit-banner h2 {
  color: #0d4f39;
}

body:not(.public-home-page) .current-visit-banner p {
  color: #286350;
}

.current-visit-banner-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 10px;
}

body:not(.public-home-page) .current-visit-banner-actions .btn {
  height: 100%;
  min-height: 42px;
}

.current-records-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd8d4;
  border-radius: 8px;
  background: #fff;
  color: #12211f;
  box-shadow: 0 24px 70px rgba(16, 39, 35, 0.24);
}

.current-records-dialog::backdrop {
  background: rgba(13, 30, 27, 0.48);
  backdrop-filter: blur(3px);
}

.current-records-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #dce3df;
}

.current-records-dialog-head h2 {
  margin: 0 0 5px;
  font-size: 26px;
}

.current-records-dialog-head p {
  margin: 0;
  color: #687572;
}

body:not(.public-home-page) .current-records-dialog-head .current-visit-label {
  color: #187b69;
}

body:not(.public-home-page) .current-records-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5dfdc;
  border-radius: 50%;
  background: #f5f8f7;
  color: #40514e;
  box-shadow: none;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

body:not(.public-home-page) .current-records-close:hover {
  transform: none;
  background: #e9f0ee;
  color: #233431;
  box-shadow: none;
}

.current-records-list {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 270px);
  padding: 20px 26px;
  overflow-y: auto;
}

.current-record-item {
  padding: 18px;
  border: 1px solid #dce3df;
  border-left: 4px solid #208c78;
  border-radius: 6px;
  background: #fbfcfc;
}

.current-record-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.current-record-item-head h3 {
  margin: 7px 0 0;
  font-size: 19px;
}

.current-record-item-head time {
  flex: 0 0 auto;
  color: #687572;
  font-size: 13px;
}

.current-record-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.current-record-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
}

.current-records-empty {
  display: grid;
  gap: 5px;
  padding: 30px 20px;
  border: 1px dashed #cbd8d4;
  border-radius: 6px;
  color: #687572;
  text-align: center;
}

.current-records-empty strong {
  color: #233431;
}

.current-records-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 26px 20px;
  border-top: 1px solid #dce3df;
  background: #f8faf9;
}

body:not(.public-home-page) .btn.current-record-create {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
}

body:not(.public-home-page) .table-wrap {
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fff;
}

body:not(.public-home-page) table {
  border-collapse: collapse;
}

body:not(.public-home-page) th {
  color: #687572;
  font-size: 11px;
  letter-spacing: 0.04em;
}

body:not(.public-home-page) th,
body:not(.public-home-page) td {
  border-color: #dce3df;
}

body:not(.public-home-page) tbody tr:hover {
  background: #f4f8f6;
}

body:not(.public-home-page) .status,
body:not(.public-home-page) .record-kind,
body:not(.public-home-page) .admin-role,
body:not(.public-home-page) .content-status {
  border-radius: 999px;
  background: #e4f2ed;
  color: #176457;
}

body:not(.public-home-page) .status.canceled,
body:not(.public-home-page) .appointment-kind-canceled .appointment-kind-label,
body:not(.public-home-page) .appointment-kind-rejected .appointment-kind-label {
  background: #fae7e7;
  color: #9d3838;
}

body:not(.public-home-page) .status.reschedule_proposed,
body:not(.public-home-page) .appointment-kind-reschedule_proposed .appointment-kind-label {
  background: #fff0cf;
  color: #875f20;
}

body:not(.public-home-page) .appointment-day-group {
  padding: 0;
  overflow: hidden;
}

body:not(.public-home-page) .appointment-day-head {
  padding: 22px 24px;
  border-bottom: 1px solid #dce3df;
}

body:not(.public-home-page) .appointment-day-head-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

body:not(.public-home-page) .appointment-day-book-button {
  align-items: center;
  background: #315d55;
  border: 1px solid #315d55;
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 7px 13px;
  white-space: nowrap;
}

body:not(.public-home-page) .appointment-day-book-button:hover {
  background: #234a43;
  border-color: #234a43;
  color: #fff;
}

body:not(.public-home-page) .appointment-day-head h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.public-home-page) .appointment-weeks {
  display: grid;
  gap: 42px;
  margin-top: 24px;
}

body:not(.public-home-page) .appointment-week {
  display: grid;
  gap: 16px;
}

body:not(.public-home-page) .appointment-week-head {
  align-items: center;
  border-bottom: 2px solid #8ccfc2;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  padding: 0 4px 14px;
}

body:not(.public-home-page) .appointment-week-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-width: 0;
}

body:not(.public-home-page) .appointment-week-head h2 {
  font-size: 25px;
  margin: 4px 0 0;
}

body:not(.public-home-page) .appointment-week-heading > span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

body:not(.public-home-page) .appointment-week-arrow,
body:not(.public-home-page) .appointment-week-arrow:hover {
  align-items: center;
  background: #315d55;
  border: 1px solid #315d55;
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

body:not(.public-home-page) .appointment-week-arrow:hover {
  background: #234a43;
  border-color: #234a43;
}

body:not(.public-home-page) .appointment-week-kicker {
  color: #087f70;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body:not(.public-home-page) .appointment-week-kicker.is-current {
  background: #c8f2df;
  border: 1px solid #72c9a2;
  border-radius: 999px;
  color: #075f42;
  display: inline-flex;
  padding: 5px 9px;
}

body:not(.public-home-page) .appointment-day-rest-label {
  background: #edf3f1;
  border-radius: 999px;
  color: #54706a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

body:not(.public-home-page) .appointment-day-outside-label {
  background: #fff0cf;
  border: 1px solid #e9bd68;
  border-radius: 999px;
  color: #7a4b08;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

body:not(.public-home-page) .appointment-day-rest {
  align-items: center;
  background: #f7faf9;
  color: #49645e;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 24px;
}

body:not(.public-home-page) .appointment-week-empty {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  padding: 24px;
}

body:not(.public-home-page) .appointment-week-empty span {
  color: var(--muted);
}

body:not(.public-home-page) .appointment-week-empty .btn {
  margin-top: 8px;
}

body:not(.public-home-page) .appointment-day-rest span {
  color: var(--muted);
  font-size: 14px;
}

body:not(.public-home-page) .appointment-day-empty-working {
  border-left: 3px solid #179684;
  background: #eff9f6;
}

body:not(.public-home-page) .appointment-between-slot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 0;
  padding: 5px 18px;
  position: relative;
}

body:not(.public-home-page) .appointment-between-slot::before,
body:not(.public-home-page) .appointment-between-slot::after {
  background: #e6b45f;
  content: "";
  flex: 1;
  height: 1px;
}

body:not(.public-home-page) .appointment-between-slot a {
  align-items: center;
  background: #b76512;
  border: 1px solid #a7560b;
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 5px 11px;
  white-space: nowrap;
}

body:not(.public-home-page) .appointment-between-slot a:hover {
  background: #934607;
  border-color: #843c04;
  color: #fff;
}

body:not(.public-home-page) .appointment-between-slot a span {
  color: #ffe4b8;
}

body:not(.public-home-page) .appointment-day-group:not(.is-expanded) [data-day-extra] {
  display: none;
}

body:not(.public-home-page) [data-live-filter].is-filtering [data-day-extra] {
  display: grid;
}

body:not(.public-home-page) [data-live-filter].is-filtering .appointment-day-toggle {
  display: none;
}

body:not(.public-home-page) .appointment-day-toggle {
  align-items: center;
  background: #315d55;
  border: 1px solid #315d55;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  margin: 16px 24px 20px;
  min-height: 40px;
  padding: 8px 18px;
}

body:not(.public-home-page) .appointment-day-toggle:hover {
  background: #234a43;
  border-color: #234a43;
}

body:not(.public-home-page) .appointment-summary-row {
  border-left-width: 3px;
  background: #fff;
}

body:not(.public-home-page) .appointment-summary-row.appointment-kind-pending {
  border-left-color: #d39010;
  background: #fff1c9;
}

body:not(.public-home-page) .appointment-summary-row.appointment-kind-approved {
  border-left-color: #0b8a68;
  background: #e1f5ea;
}

body:not(.public-home-page) .appointment-summary-row.appointment-kind-reschedule_proposed {
  border-left-color: #d08300;
  background: #ffe9ad;
}

body:not(.public-home-page) .appointment-summary-row.appointment-kind-completed {
  border-left-color: #607b85;
  background: #e8eef2;
}

body:not(.public-home-page) .appointment-summary-row.appointment-kind-canceled,
body:not(.public-home-page) .appointment-summary-row.appointment-kind-rejected {
  border-left-color: #cf3f3f;
  background: #ffe1e1;
}

body:not(.public-home-page) .appointment-kind-pending .appointment-kind-label {
  background: #ffdf83;
  color: #6f4600;
}

body:not(.public-home-page) .appointment-kind-approved .appointment-kind-label {
  background: #bcebd6;
  color: #075b43;
}

body:not(.public-home-page) .appointment-kind-reschedule_proposed .appointment-kind-label {
  background: #ffc94d;
  color: #5b3700;
}

body:not(.public-home-page) .appointment-kind-completed .appointment-kind-label {
  background: #d4e0e6;
  color: #334f58;
}

body:not(.public-home-page) .appointment-kind-canceled .appointment-kind-label,
body:not(.public-home-page) .appointment-kind-rejected .appointment-kind-label {
  background: #ffc4c4;
  color: #8f2020;
}

body:not(.public-home-page) .appointment-summary-row time,
body:not(.public-home-page) .day-appointment-time {
  color: #087d6d;
}

body:not(.public-home-page) .appointment-summary-row > span {
  color: #334b47;
}

body:not(.public-home-page) .day-appointment-item {
  border-color: #dce3df;
  border-radius: 5px;
  background: #f7f9f7;
}

body:not(.public-home-page) .day-appointment-item:hover {
  border-color: #8eb1aa;
  background: #eef5f3;
}

body:not(.public-home-page) .day-appointment-item.selected {
  border-color: #187f73;
  box-shadow: inset 3px 0 0 #187f73;
}

body:not(.public-home-page) .day-appointment-item.active-now {
  border-color: #187f73;
  background: #eaf6f1;
  box-shadow: inset 3px 0 0 #187f73;
}

body:not(.public-home-page) .active-visit-label {
  background: #187f73;
}

body:not(.public-home-page) .slot-grid {
  gap: 10px;
}

body:not(.public-home-page) .time-pill,
body:not(.public-home-page) .slot-busy {
  min-height: 48px;
  border-radius: 4px;
}

body:not(.public-home-page) .time-pill {
  border-color: #cbd8d4;
  background: #fff;
  color: #24433d;
}

body:not(.public-home-page) .time-pill:hover,
body:not(.public-home-page) .time-pill.active {
  border-color: #187f73;
  background: #187f73;
  color: #fff;
}

body:not(.public-home-page) .slot-busy {
  border-color: #dfe5e2;
  background: #f0f2f1;
  color: #9aa4a1;
}

body:not(.public-home-page) .slot-split-option {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid #d48a2e;
  border-left: 4px solid #bd6811;
  border-radius: 4px;
  background: #fff4df;
  color: #6f3a06;
  text-align: center;
}

body:not(.public-home-page) .slot-split-option:hover {
  border-color: #a75408;
  background: #ffe8bf;
  color: #542800;
}

body:not(.public-home-page) .slot-split-option strong {
  font-size: 15px;
}

body:not(.public-home-page) .slot-split-option span {
  font-size: 11px;
  font-weight: 700;
}

body:not(.public-home-page) .split-slot-notice {
  display: grid;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid #e0a04b;
  border-left: 4px solid #bd6811;
  border-radius: 6px;
  background: #fff5e3;
  color: #663607;
}

body:not(.public-home-page) .split-slot-notice span {
  font-size: 14px;
}

body:not(.public-home-page) .empty {
  border-color: #c9d5d1;
  border-radius: 6px;
  background: #f6f8f6;
  color: #6b7775;
}

body:not(.public-home-page) .patient-record-item,
body:not(.public-home-page) .record-entry,
body:not(.public-home-page) .service-manager-item,
body:not(.public-home-page) .service-detail-card {
  border-color: #dce3df;
  border-radius: 7px;
  background: #fff;
}

body:not(.public-home-page) .record-recommendations {
  border-color: #bad7cf;
  background: #edf7f3;
}

body:not(.public-home-page) .booking-layout {
  gap: 20px;
}

body:not(.public-home-page) .service-booking-state.available {
  background: #e4f2ed;
  color: #176457;
}

body:not(.public-home-page) .service-detail-label,
body:not(.public-home-page) .service-detail-price span {
  color: #187f73;
}

body:not(.public-home-page) .standalone-form-card {
  width: min(680px, 100%);
  margin: 28px auto 0;
  padding: 36px;
}

body:not(.public-home-page) .standalone-form-card .page-title {
  margin-bottom: 16px;
  font-size: 42px;
}

body:not(.public-home-page) .standalone-form-card form {
  margin-top: 24px;
}

body:not(.public-home-page) .claim-patient-card {
  padding: 38px;
}

body:not(.public-home-page) .admin-command-bar,
body:not(.public-home-page) .admin-stat,
body:not(.public-home-page) .content-admin-section,
body:not(.public-home-page) .content-admin-summary {
  border-color: #dce3df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

body:not(.public-home-page) .admin-command-bar {
  border-left: 4px solid #187f73;
}

body:not(.public-home-page) .admin-eyebrow,
body:not(.public-home-page) .content-admin-step {
  color: #187f73;
}

body:not(.public-home-page) .admin-command-bar h2,
body:not(.public-home-page) .content-admin-section-head h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.public-home-page) .admin-summary-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 8px;
  background: #dce3df;
  box-shadow: var(--shadow);
}

body:not(.public-home-page) .admin-stat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.public-home-page) .admin-stat::before {
  background: #187f73;
}

body:not(.public-home-page) .admin-stat strong {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

body:not(.public-home-page) .admin-role-staff {
  background: #e9ece4;
  color: #5d5537;
}

body:not(.public-home-page) .content-admin {
  --content-ink: #172321;
  --content-soft: #f2f6f4;
  --content-line: #dce3df;
  --content-teal: #187f73;
}

body:not(.public-home-page) .content-admin-jump {
  border-color: #dce3df;
  background: rgba(245, 248, 246, 0.96);
}

body:not(.public-home-page) .content-editor-panel,
body:not(.public-home-page) .content-admin-note {
  border-color: #dce3df;
  background: #f2f6f4;
}

body:not(.public-home-page) .hero-admin-item {
  border-color: #dce3df;
  border-left-color: #187f73;
}

body:not(.public-home-page) .appointment-filter-name {
  min-height: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #172321;
  font-size: inherit;
  font-weight: 700;
}

body:not(.public-home-page) .appointment-filter-name:hover {
  border-bottom-color: #187f73;
  background: transparent;
  box-shadow: none;
  color: #0f675e;
}

body:not(.public-home-page) .doctor-profile-section-head {
  align-items: flex-start;
  flex-direction: column;
}

body:not(.public-home-page) .doctor-profile-section-actions {
  justify-content: flex-start;
}

@media (max-width: 820px) {
  body:not(.public-home-page) .topbar-inner,
  body:not(.public-home-page) .container {
    width: min(100% - 32px, 1220px);
  }

  body:not(.public-home-page) .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  body:not(.public-home-page) .nav {
    gap: 12px 18px;
    justify-content: flex-start;
  }

  body:not(.public-home-page) .main {
    padding: 34px 0 54px;
  }

  body:not(.public-home-page) .page-title {
    font-size: 42px;
  }

  body:not(.public-home-page) .page-tabs {
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
  }

  body:not(.public-home-page) .page-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body:not(.public-home-page) .doctor-profile-hero {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  body:not(.public-home-page) .doctor-profile-photo {
    width: 120px;
    height: 120px;
  }

  body:not(.public-home-page) .doctor-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .current-visit-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .current-visit-banner-actions form,
  .current-visit-banner-actions .btn {
    width: 100%;
  }

  .current-records-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .current-records-dialog-head {
    padding: 20px 18px 16px;
  }

  .current-records-dialog-head h2 {
    font-size: 22px;
  }

  .current-records-list {
    max-height: calc(100vh - 245px);
    padding: 16px 18px;
  }

  .current-record-item-head {
    flex-direction: column;
    gap: 8px;
  }

  .current-record-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .current-records-dialog-actions {
    padding: 12px 18px 16px;
  }

  body:not(.public-home-page) .topbar-inner,
  body:not(.public-home-page) .container {
    width: min(100% - 24px, 1220px);
  }

  body:not(.public-home-page) .topbar-inner {
    min-height: 0;
    padding: 14px 0;
  }

  body:not(.public-home-page) .main {
    padding-top: 28px;
  }

  body:not(.public-home-page) .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  body:not(.public-home-page) .page-title {
    font-size: 36px;
  }

  body:not(.public-home-page) .card,
  body:not(.public-home-page) .doctor-panel {
    padding: 20px;
  }

  body:not(.public-home-page) .section-title,
  body:not(.public-home-page) .section-mini-head h2,
  body:not(.public-home-page) .section-mini-head h3 {
    font-size: 25px;
  }

  body:not(.public-home-page) .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.public-home-page) .overview-card {
    min-height: 98px;
    padding: 18px;
  }

  body:not(.public-home-page) .doctor-grid,
  body:not(.public-home-page) .action-board,
  body:not(.public-home-page) .doctor-profile-sections {
    grid-template-columns: 1fr;
  }

  body:not(.public-home-page) .doctor-profile-section + .doctor-profile-section {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid #dce3df;
    border-left: 0;
  }

  body:not(.public-home-page) .doctor-dashboard-profile {
    padding: 22px;
  }

  body:not(.public-home-page) .doctor-profile-hero {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
  }

  body:not(.public-home-page) .doctor-profile-photo {
    width: 86px;
    height: 86px;
  }

  body:not(.public-home-page) .doctor-profile-identity h1 {
    font-size: 32px;
  }

  body:not(.public-home-page) .doctor-profile-actions {
    grid-template-columns: 1fr;
  }

  body:not(.public-home-page) .standalone-form-card,
  body:not(.public-home-page) .claim-patient-card {
    margin-top: 0;
    padding: 24px 20px;
  }

  body:not(.public-home-page) .standalone-form-card .page-title {
    font-size: 34px;
  }

  body:not(.public-home-page) .messages {
    top: 118px;
    width: calc(100% - 24px);
  }
}

/* High-contrast actions and compact toast notifications. */
body:not(.public-home-page) .btn.secondary,
body:not(.public-home-page) button.secondary {
  border-color: #314c47;
  background: #314c47;
  color: #fff;
  box-shadow: 0 5px 14px rgba(28, 53, 48, 0.16);
}

body:not(.public-home-page) .btn.secondary:hover,
body:not(.public-home-page) button.secondary:hover {
  border-color: #203b36;
  background: #203b36;
  color: #fff;
  box-shadow: 0 7px 18px rgba(28, 53, 48, 0.22);
}

body:not(.public-home-page) .btn.danger,
body:not(.public-home-page) button.danger {
  border-color: #943d43;
  background: #943d43;
  color: #fff;
  box-shadow: 0 5px 14px rgba(112, 35, 42, 0.16);
}

body:not(.public-home-page) .btn.danger:hover,
body:not(.public-home-page) button.danger:hover {
  border-color: #762e34;
  background: #762e34;
  color: #fff;
  box-shadow: 0 7px 18px rgba(112, 35, 42, 0.22);
}

body:not(.public-home-page) .btn.warning,
body:not(.public-home-page) button.warning,
body:not(.public-home-page) .btn.profile-completion-link,
body:not(.public-home-page) .btn.reschedule-alert-link {
  border-color: #815b2f;
  background: #815b2f;
  color: #fff;
  box-shadow: 0 5px 14px rgba(91, 58, 23, 0.16);
}

body:not(.public-home-page) .btn.warning:hover,
body:not(.public-home-page) button.warning:hover,
body:not(.public-home-page) .btn.profile-completion-link:hover,
body:not(.public-home-page) .btn.reschedule-alert-link:hover {
  border-color: #684722;
  background: #684722;
  color: #fff;
  box-shadow: 0 7px 18px rgba(91, 58, 23, 0.22);
}

.messages,
.public-home-page .messages,
body:not(.public-home-page) .messages {
  top: auto;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(390px, calc(100% - 32px));
  transform: none;
  justify-items: stretch;
  z-index: 100;
  pointer-events: none;
}

.message,
.public-home-page .message,
body:not(.public-home-page) .message {
  width: 100%;
  max-height: 150px;
  padding: 14px 16px;
  border: 1px solid #43625c;
  border-left: 5px solid #5aa994;
  border-radius: 8px;
  background: #20332f;
  color: #f2faf7;
  box-shadow: 0 16px 36px rgba(12, 27, 24, 0.3);
  pointer-events: auto;
}

.message.success,
.public-home-page .message.success,
body:not(.public-home-page) .message.success {
  border-color: #3c7568;
  border-left-color: #63c2a8;
  background: #173b34;
  color: #effcf8;
}

.message.error,
.public-home-page .message.error,
body:not(.public-home-page) .message.error {
  border-color: #865057;
  border-left-color: #df737d;
  background: #45272b;
  color: #fff4f5;
}

.message.warning,
.public-home-page .message.warning,
body:not(.public-home-page) .message.warning {
  border-color: #806538;
  border-left-color: #e2ae4e;
  background: #40341f;
  color: #fff8e8;
}

.message.info,
.public-home-page .message.info,
body:not(.public-home-page) .message.info {
  border-color: #496a7d;
  border-left-color: #69a9c9;
  background: #243740;
  color: #eff9ff;
}

.message.is-dismissing,
.public-home-page .message.is-dismissing,
body:not(.public-home-page) .message.is-dismissing {
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(12px);
}

@media (max-width: 620px) {
  .messages,
  .public-home-page .messages,
  body:not(.public-home-page) .messages {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* Patient cabinet: profile overview and appointment cards. */
.patient-dashboard {
  display: grid;
  gap: 34px;
  padding-bottom: 34px;
}

.patient-dashboard-tabs {
  margin-bottom: -8px;
}

.patient-dashboard-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: -10px 0 0;
  padding: 18px 20px;
}

.patient-alert-doctor img,
.patient-alert-doctor-placeholder {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #c7d8d3;
  border-radius: 6px;
  background: #e2efeb;
  color: #176b61;
  font-size: 14px;
  font-weight: 800;
  object-fit: cover;
}

.patient-alert-copy {
  min-width: 0;
}

.patient-alert-copy strong,
.patient-alert-copy p {
  display: block;
}

.patient-alert-copy p {
  margin: 5px 0 0;
}

.patient-phone-alert {
  border: 1px solid #d7b369;
  border-left: 4px solid #a87424;
  border-radius: 6px;
  background: #fff8e9;
  color: #60471d;
}

.patient-dashboard-profile {
  padding: 34px;
  overflow: hidden;
}

.patient-profile-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.patient-dashboard-photo {
  width: 116px;
  height: 116px;
  border: 1px solid #cbd9d5;
  border-radius: 8px;
  background: #e2efeb;
  object-fit: cover;
}

.patient-dashboard-photo-placeholder {
  display: grid;
  place-items: center;
  color: #176b61;
  font-size: 30px;
  font-weight: 800;
}

.patient-profile-label,
.patient-section-kicker {
  display: block;
  color: #187f73;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.patient-profile-identity h1 {
  margin: 8px 0 12px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.patient-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.patient-profile-facts span {
  padding: 7px 10px;
  border: 1px solid #c7d8d3;
  border-radius: 4px;
  background: #edf5f3;
  color: #244b44;
  font-size: 13px;
  font-weight: 600;
}

.patient-profile-facts .patient-fact-missing {
  border-color: #dec99e;
  background: #fff8e8;
  color: #77531f;
}

.patient-profile-actions {
  display: grid;
  grid-template-columns: minmax(170px, 1fr);
  gap: 10px;
  min-width: 210px;
}

.patient-profile-actions .btn {
  width: 100%;
}

.patient-profile-actions .patient-booking-button {
  min-height: 48px;
}

.patient-password-link {
  padding: 4px 8px;
  color: #526762;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #a8b9b5;
  text-underline-offset: 4px;
}

.patient-password-link:hover {
  color: #126d63;
  text-decoration-color: #126d63;
}

.patient-dashboard-section {
  scroll-margin-top: 100px;
}

.patient-dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.patient-dashboard-section-head h2 {
  margin: 5px 0 4px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.patient-dashboard-section-head p {
  margin: 0;
  color: #657572;
  font-size: 14px;
}

.patient-section-count {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c3d6d0;
  border-radius: 50%;
  background: #e8f2ef;
  color: #176b61;
  font-size: 14px;
  font-weight: 800;
}

.patient-appointment-list {
  display: grid;
  gap: 12px;
}

.patient-appointment-card {
  overflow: hidden;
  border: 1px solid #d5e0dd;
  border-left: 4px solid #c19232;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(35, 69, 62, 0.08);
}

.patient-appointment-card-approved {
  border-left-color: #238a70;
}

.patient-appointment-card-featured {
  position: relative;
  border-color: #18a892;
  border-left-color: #0e806f;
  background: linear-gradient(100deg, #e1fff8 0%, #f2fffc 48%, #ffffff 100%);
  box-shadow:
    0 0 0 3px rgba(31, 190, 164, 0.12),
    0 18px 38px rgba(13, 128, 111, 0.18);
}

.patient-appointment-card-featured .patient-appointment-card-body {
  border-color: #bce9df;
  background: rgba(232, 255, 249, 0.72);
}

.patient-appointment-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.patient-nearest-badge {
  padding: 7px 10px;
  border: 1px solid #0e806f;
  border-radius: 4px;
  background: #0e806f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(14, 128, 111, 0.2);
}

.patient-appointment-card-completed {
  border-left-color: #73827f;
}

.patient-appointment-card-canceled,
.patient-appointment-card-rejected {
  border-left-color: #a74b51;
}

.patient-appointment-card-reschedule_proposed {
  border-left-color: #b67827;
}

.patient-appointment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px 14px;
}

.patient-appointment-doctor {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.patient-appointment-doctor img,
.patient-appointment-doctor-placeholder {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #c8d7d3;
  border-radius: 6px;
  background: #e3efec;
  color: #176b61;
  font-size: 14px;
  font-weight: 800;
  object-fit: cover;
}

.patient-appointment-doctor > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.patient-appointment-doctor small,
.patient-appointment-card-body small {
  color: #788682;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.patient-appointment-doctor strong {
  overflow: hidden;
  color: #153a34;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-appointment-doctor span {
  color: #187f73;
  font-size: 13px;
  font-weight: 600;
}

.patient-appointment-card .status {
  flex: 0 0 auto;
  border: 1px solid #dfc57e;
  background: #fff2c9;
  color: #73530d;
}

.patient-appointment-card .status.approved {
  border-color: #9ed7c4;
  background: #dcf5e9;
  color: #126448;
}

.patient-appointment-card .status.completed {
  border-color: #ccd5d2;
  background: #edf1f0;
  color: #53625f;
}

.patient-appointment-card .status.canceled,
.patient-appointment-card .status.rejected {
  border-color: #e5b1b5;
  background: #fbe3e5;
  color: #84353b;
}

.patient-appointment-card .status.reschedule_proposed {
  border-color: #e1bd7c;
  background: #fff0cf;
  color: #7e5314;
}

.patient-appointment-card-body {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(165px, 0.75fr) minmax(220px, 1fr);
  gap: 22px;
  padding: 15px 20px;
  border-top: 1px solid #e0e7e5;
  border-bottom: 1px solid #e0e7e5;
  background: #f8faf9;
}

.patient-appointment-service,
.patient-appointment-fact {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 4px;
}

.patient-appointment-service strong,
.patient-appointment-fact strong {
  color: #183c36;
  font-size: 15px;
  line-height: 1.35;
}

.patient-appointment-fact span {
  color: #63736f;
  font-size: 13px;
  line-height: 1.35;
}

.patient-appointment-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 58px;
  gap: 16px;
  padding: 10px 20px;
}

.patient-appointment-card-actions > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.patient-appointment-card-actions form {
  margin: 0;
}

.patient-appointment-card-actions .btn,
.patient-appointment-card-actions button {
  min-height: 40px;
}

.patient-restore-note {
  margin-right: auto;
  color: #18724e;
  font-size: 13px;
  font-weight: 700;
}

.patient-dashboard-empty {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-height: 116px;
  padding: 24px;
  border: 1px dashed #bfcfca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #536763;
}

.patient-dashboard-empty strong {
  color: #183c36;
  font-size: 17px;
}

.patient-dashboard-empty p {
  margin: 0;
  color: #657572;
  font-size: 14px;
}

.patient-dashboard-empty .btn {
  margin-top: 5px;
}

.patient-record-filter {
  padding: 16px;
  border: 1px solid #d5e0dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.patient-record-doctor-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.patient-record-doctor-row img,
.patient-record-doctor-row > span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d7d3;
  border-radius: 5px;
  background: #e3efec;
  color: #176b61;
  font-size: 10px;
  font-weight: 800;
  object-fit: cover;
}

.patient-record-doctor-row .patient-record-doctor {
  margin: 0;
}

.patient-dashboard .patient-record-item {
  box-shadow: 0 10px 24px rgba(35, 69, 62, 0.07);
}

.patient-history-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  scroll-margin-top: 100px;
}

.patient-history-section {
  min-width: 0;
}

.patient-appointment-list-compact .patient-appointment-card-body {
  grid-template-columns: 1fr 1fr;
}

.patient-appointment-list-compact .patient-appointment-place {
  grid-column: 1 / -1;
}

.patient-appointment-list-compact .patient-appointment-card-actions {
  align-items: stretch;
  flex-direction: column;
}

.patient-appointment-list-compact .patient-restore-note {
  margin: 0;
}

.patient-appointment-list-compact .patient-appointment-card-actions > div {
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 980px) {
  .patient-profile-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .patient-dashboard-photo {
    width: 96px;
    height: 96px;
  }

  .patient-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .patient-password-link {
    grid-column: 1 / -1;
  }

  .patient-appointment-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patient-appointment-place {
    grid-column: 1 / -1;
  }

  .patient-history-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .patient-dashboard {
    gap: 28px;
  }

  .patient-dashboard-tabs {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 0 0 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .patient-dashboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .patient-dashboard-tabs .page-tab {
    flex: 0 0 auto;
  }

  .patient-dashboard-alert {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 16px;
  }

  .patient-dashboard-alert .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .patient-dashboard-profile {
    padding: 22px 18px;
  }

  .patient-profile-hero {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .patient-dashboard-photo {
    width: 78px;
    height: 78px;
  }

  .patient-profile-identity h1 {
    margin-top: 5px;
    font-size: 27px;
  }

  .patient-profile-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .patient-profile-facts span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .patient-profile-actions {
    grid-template-columns: 1fr;
  }

  .patient-password-link {
    grid-column: auto;
  }

  .patient-dashboard-section-head {
    align-items: flex-start;
  }

  .patient-dashboard-section-head h2 {
    font-size: 24px;
  }

  .patient-appointment-card-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .patient-appointment-doctor {
    width: 100%;
  }

  .patient-appointment-card .status {
    margin-left: 0;
  }

  .patient-appointment-badges {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 66px;
  }

  .patient-appointment-card-body,
  .patient-appointment-list-compact .patient-appointment-card-body {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .patient-appointment-place,
  .patient-appointment-list-compact .patient-appointment-place {
    grid-column: auto;
  }

  .patient-appointment-card-actions,
  .patient-appointment-list-compact .patient-appointment-card-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 15px 15px;
  }

  .patient-appointment-card-actions > div,
  .patient-appointment-list-compact .patient-appointment-card-actions > div {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .patient-appointment-card-actions .btn,
  .patient-appointment-card-actions button {
    width: 100%;
  }

  .patient-records-grid {
    grid-template-columns: 1fr;
  }
}

/* Site-wide semantic color accents. */
:root {
  --clinic-teal: #0c8f80;
  --clinic-teal-dark: #08695f;
  --clinic-blue: #2d6f9f;
  --clinic-amber: #b96f16;
  --clinic-green: #197b56;
  --clinic-red: #a63d46;
  --clinic-violet: #67558e;
  --clinic-ink: #173d38;
}

body:not(.public-home-page) {
  --primary: var(--clinic-teal);
  --primary-dark: var(--clinic-teal-dark);
}

body:not(.public-home-page) .topbar {
  box-shadow:
    inset 0 3px 0 var(--clinic-teal),
    0 8px 24px rgba(20, 60, 54, 0.07);
}

body:not(.public-home-page) .brand-mark {
  border-color: #8dcfc4;
  background: #dff8f2;
  color: var(--clinic-teal-dark);
}

body:not(.public-home-page) .nav .nav-cta,
body:not(.public-home-page) .btn.patient-booking-button {
  border-color: var(--clinic-teal);
  background: var(--clinic-teal);
  box-shadow: 0 6px 16px rgba(12, 143, 128, 0.2);
}

body:not(.public-home-page) .nav .nav-cta:hover,
body:not(.public-home-page) .btn.patient-booking-button:hover {
  border-color: var(--clinic-teal-dark);
  background: var(--clinic-teal-dark);
  box-shadow: 0 8px 20px rgba(8, 105, 95, 0.24);
}

body:not(.public-home-page) .page-head > div:first-child {
  position: relative;
  padding-left: 18px;
}

body:not(.public-home-page) .page-head > div:first-child::before {
  position: absolute;
  top: 4px;
  bottom: 3px;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--clinic-teal);
  content: "";
}

body:not(.public-home-page) .page-title {
  color: #143d38;
}

body:not(.public-home-page) .page-tab {
  transition: color 160ms ease, border-color 160ms ease;
}

body:not(.public-home-page) .page-tab:hover {
  border-bottom-color: #4ab4a6;
  color: var(--clinic-teal-dark);
}

body:not(.public-home-page) .page-tab.active {
  border-bottom-width: 4px;
  border-bottom-color: var(--clinic-teal);
  color: var(--clinic-teal-dark);
  font-weight: 800;
}

body:not(.public-home-page) .section-card {
  border-top: 3px solid #a8d8cf;
}

body:not(.public-home-page) .section-mini-head,
body:not(.public-home-page) .section-head {
  position: relative;
}

body:not(.public-home-page) .section-mini-head h2,
body:not(.public-home-page) .section-title {
  color: var(--clinic-ink);
}

body:not(.public-home-page) .section-mini-head h2::after,
body:not(.public-home-page) .section-title::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: #55b9ad;
  content: "";
}

body:not(.public-home-page) .live-filter-bar {
  border-left: 4px solid var(--clinic-blue);
  background: #f2f8fc;
}

body:not(.public-home-page) .live-filter-field label,
body:not(.public-home-page) .field > label {
  color: #244b46;
  font-weight: 700;
}

body:not(.public-home-page) input:not([type="checkbox"]):focus,
body:not(.public-home-page) select:focus,
body:not(.public-home-page) textarea:focus {
  border-color: #16a491;
  outline-color: rgba(22, 164, 145, 0.18);
  box-shadow: 0 0 0 1px rgba(22, 164, 145, 0.08);
}

body:not(.public-home-page) input[type="checkbox"] {
  accent-color: var(--clinic-teal);
}

body:not(.public-home-page) .table-wrap {
  border-top: 3px solid var(--clinic-blue);
}

body:not(.public-home-page) thead {
  background: #eaf4f7;
}

body:not(.public-home-page) th {
  color: #28566a;
}

body:not(.public-home-page) tbody tr:nth-child(even) {
  background: rgba(241, 247, 246, 0.66);
}

body:not(.public-home-page) tbody tr:hover {
  background: #e8f5f2;
}

body:not(.public-home-page) .live-pagination button.active {
  border-color: var(--clinic-blue);
  background: var(--clinic-blue);
  box-shadow: 0 4px 12px rgba(45, 111, 159, 0.2);
}

body:not(.public-home-page) .btn,
body:not(.public-home-page) button {
  border-color: var(--clinic-teal);
  background: var(--clinic-teal);
  box-shadow: 0 5px 14px rgba(12, 143, 128, 0.17);
}

body:not(.public-home-page) .btn:hover,
body:not(.public-home-page) button:hover {
  border-color: var(--clinic-teal-dark);
  background: var(--clinic-teal-dark);
  box-shadow: 0 7px 18px rgba(8, 105, 95, 0.22);
}

body:not(.public-home-page) .btn.secondary,
body:not(.public-home-page) button.secondary {
  border-color: #31534d;
  background: #31534d;
  color: #fff;
}

body:not(.public-home-page) .btn.secondary:hover,
body:not(.public-home-page) button.secondary:hover {
  border-color: #203d38;
  background: #203d38;
  color: #fff;
}

body:not(.public-home-page) .btn.green,
body:not(.public-home-page) button.green,
body:not(.public-home-page) .btn.current-visit-button {
  border-color: var(--clinic-green);
  background: var(--clinic-green);
  box-shadow: 0 5px 14px rgba(25, 123, 86, 0.2);
}

body:not(.public-home-page) .btn.green:hover,
body:not(.public-home-page) button.green:hover {
  border-color: #105f41;
  background: #105f41;
}

body:not(.public-home-page) .btn.danger,
body:not(.public-home-page) button.danger {
  border-color: var(--clinic-red);
  background: var(--clinic-red);
  color: #fff;
  box-shadow: 0 5px 14px rgba(166, 61, 70, 0.2);
}

body:not(.public-home-page) .btn.danger:hover,
body:not(.public-home-page) button.danger:hover {
  border-color: #7e2d34;
  background: #7e2d34;
}

body:not(.public-home-page) .btn.warning,
body:not(.public-home-page) button.warning,
body:not(.public-home-page) .btn.profile-completion-link,
body:not(.public-home-page) .btn.reschedule-alert-link {
  border-color: #925a18;
  background: #925a18;
  color: #fff;
  box-shadow: 0 5px 14px rgba(146, 90, 24, 0.18);
}

body:not(.public-home-page) .btn.warning:hover,
body:not(.public-home-page) button.warning:hover,
body:not(.public-home-page) .btn.profile-completion-link:hover,
body:not(.public-home-page) .btn.reschedule-alert-link:hover {
  border-color: #714311;
  background: #714311;
}

body:not(.public-home-page) .status.pending {
  border: 1px solid #e5bd68;
  background: #fff0c9;
  color: #70490b;
}

body:not(.public-home-page) .status.approved {
  border: 1px solid #8ed1b8;
  background: #d9f4e8;
  color: #125d42;
}

body:not(.public-home-page) .status.completed {
  border: 1px solid #a9bfcc;
  background: #e5eef3;
  color: #365866;
}

body:not(.public-home-page) .status.canceled,
body:not(.public-home-page) .status.rejected {
  border: 1px solid #e0a4aa;
  background: #f9dfe2;
  color: #83323a;
}

body:not(.public-home-page) .status.reschedule_proposed {
  border: 1px solid #e2b05e;
  background: #ffe9bd;
  color: #74480c;
}

body:not(.public-home-page) .overview-card {
  position: relative;
  border-top: 4px solid var(--clinic-teal);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 2) {
  border-top-color: var(--clinic-blue);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 3) {
  border-top-color: var(--clinic-amber);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 4) {
  border-top-color: var(--clinic-violet);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 2) .overview-value {
  color: var(--clinic-blue);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 3) .overview-value {
  color: var(--clinic-amber);
}

body:not(.public-home-page) .overview-card:nth-child(4n + 4) .overview-value {
  color: var(--clinic-violet);
}

body:not(.public-home-page) .action-group {
  border-top: 4px solid var(--clinic-teal);
}

body:not(.public-home-page) .action-group:nth-child(2n) {
  border-top-color: var(--clinic-blue);
}

body:not(.public-home-page) .doctor-panel {
  border-top: 4px solid #45ad9f;
}

body:not(.public-home-page) .doctor-panel:nth-child(3n + 2) {
  border-top-color: #5794bd;
}

body:not(.public-home-page) .doctor-panel:nth-child(3n + 3) {
  border-top-color: #c88732;
}

body:not(.public-home-page) .doctor-dashboard-profile,
body:not(.public-home-page) .patient-dashboard-profile {
  border-top: 5px solid var(--clinic-teal);
}

body:not(.public-home-page) .doctor-profile-about {
  border-left-color: var(--clinic-blue);
  background: #eef6fb;
}

body:not(.public-home-page) .service-manager-item {
  border-left: 4px solid var(--clinic-teal);
}

body:not(.public-home-page) .service-manager-item:nth-child(3n + 2) {
  border-left-color: var(--clinic-blue);
}

body:not(.public-home-page) .service-manager-item:nth-child(3n + 3) {
  border-left-color: var(--clinic-amber);
}

body:not(.public-home-page) .service-manager-item.editing {
  border-color: #d69a42;
  background: #fffaf0;
}

body:not(.public-home-page) .service-manager-create {
  border-left-color: var(--clinic-violet);
}

body:not(.public-home-page) .workplace-row {
  border-left: 4px solid var(--clinic-blue);
  padding-left: 16px;
}

body:not(.public-home-page) .booking-layout > .section-card:first-child {
  border-top-color: var(--clinic-teal);
}

body:not(.public-home-page) .booking-layout .doctor-summary {
  border-top-color: var(--clinic-blue);
}

body:not(.public-home-page) .booking-layout + .section-card {
  border-top-color: var(--clinic-green);
}

body:not(.public-home-page) .booking-final {
  border-top-color: var(--clinic-violet);
}

body:not(.public-home-page) .time-pill:hover,
body:not(.public-home-page) .time-pill.active {
  border-color: var(--clinic-blue);
  background: var(--clinic-blue);
  box-shadow: 0 5px 14px rgba(45, 111, 159, 0.18);
}

body:not(.public-home-page) .appointment-photo-section,
body:not(.public-home-page) .record-entry-editor {
  border-top-color: var(--clinic-blue);
}

body:not(.public-home-page) .appointment-decision-panel {
  border-top-color: var(--clinic-green);
}

body:not(.public-home-page) .appointment-reschedule-panel,
body:not(.public-home-page) .reschedule-waiting-panel,
body:not(.public-home-page) .patient-reschedule-decision {
  border-top-color: var(--clinic-amber);
}

body:not(.public-home-page) .admin-command-bar {
  border-left-color: var(--clinic-violet);
  background: #f8f5ff;
}

body:not(.public-home-page) .admin-stat-patients {
  border-left-color: var(--clinic-blue);
}

body:not(.public-home-page) .admin-stat-doctors {
  border-left-color: var(--clinic-violet);
}

body:not(.public-home-page) .admin-stat-appointments {
  border-left-color: var(--clinic-teal);
}

body:not(.public-home-page) .admin-stat-pending {
  border-left-color: var(--clinic-amber);
  background: #fff9e9;
}

body:not(.public-home-page) #pending .patient-section-kicker {
  color: var(--clinic-amber);
}

body:not(.public-home-page) #approved .patient-section-kicker {
  color: var(--clinic-green);
}

body:not(.public-home-page) #records .patient-section-kicker {
  color: var(--clinic-blue);
}

body:not(.public-home-page) #history .patient-section-kicker {
  color: var(--clinic-violet);
}

.public-home-page .home-clinic-news .home-section-kicker {
  color: var(--clinic-teal-dark);
}

.public-home-page .home-doctor-news .home-section-kicker {
  color: var(--clinic-blue);
}

.public-home-page .home-gallery-section .home-section-kicker {
  color: var(--clinic-amber);
}

.public-home-page .home-doctors-section .home-section-kicker {
  color: var(--clinic-violet);
}

.public-home-page .home-news-card {
  border-top: 4px solid var(--clinic-teal);
}

.public-home-page .home-doctor-news-item {
  border-top: 4px solid var(--clinic-blue);
}

.public-home-page .home-doctor-card {
  border-bottom: 4px solid var(--clinic-violet);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #24b8a5;
}

@media (max-width: 680px) {
  body:not(.public-home-page) .page-head > div:first-child {
    padding-left: 13px;
  }

  body:not(.public-home-page) .page-head > div:first-child::before {
    width: 4px;
  }

  body:not(.public-home-page) .section-mini-head h2::after,
  body:not(.public-home-page) .section-title::after {
    width: 34px;
  }
}

.patient-reschedule-alert .patient-alert-doctor img,
.patient-reschedule-alert .patient-alert-doctor-placeholder {
  width: 64px;
  height: 64px;
}

.messages.claim-google-messages,
.public-home-page .messages.claim-google-messages {
  top: 24px;
  bottom: auto;
  width: min(460px, calc(100% - 32px));
}

.patient-picker-controls {
  display: none;
}

.patient-picker-enhanced .patient-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.patient-picker-enhanced .patient-picker-source {
  display: none;
}

.patient-picker-search {
  min-width: 0;
}

.patient-contact-field-hidden {
  display: none !important;
}

.patient-picker-new {
  white-space: nowrap;
}

.patient-picker-new.active {
  border-color: #178f7d;
  background: #e7f7f3;
  color: #075f53;
}

.patient-picker-results:not([hidden]) {
  display: grid;
  max-height: 290px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid #a9c8c2;
  background: #fff;
  box-shadow: 0 14px 30px rgba(12, 59, 52, 0.14);
}

.patient-picker-results button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #dce9e6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #102f2b;
  text-align: left;
}

.patient-picker-results button:hover,
.patient-picker-results button.active {
  background: #dff5f0;
  color: #075f53;
  transform: none;
}

.patient-picker-empty,
.patient-picker-hint {
  padding: 12px;
  color: #5e706d;
  font-size: 14px;
}

@media (max-width: 640px) {
  .patient-picker-enhanced .patient-picker-controls {
    grid-template-columns: 1fr;
  }
}

.pending-google-alert {
  border: 1px solid #e5a553;
  border-left: 5px solid #c66a12;
  border-radius: 7px;
  background: #fff2de;
  color: #5b320b;
  box-shadow: 0 14px 30px rgba(157, 82, 14, 0.14);
}

.pending-google-button {
  min-width: 190px;
  border-color: #a94f08;
  background: #b95b0b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(157, 72, 8, 0.22);
}

.pending-google-button:hover {
  border-color: #8e3e04;
  background: #984405;
  color: #fff;
}

.pending-patient-profile {
  border-top: 4px solid #159b89;
}

.pending-patient-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pending-patient-sections .patient-dashboard-section {
  padding: 24px;
  border: 1px solid #cbdcd7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(29, 65, 58, 0.08);
}

.pending-patient-sections #approved {
  grid-column: 1 / -1;
}

.pending-appointment-list .patient-appointment-card {
  box-shadow: none;
}

.pending-patient-sections .patient-dashboard-empty {
  min-height: 118px;
}

@media (max-width: 780px) {
  .pending-patient-sections {
    grid-template-columns: 1fr;
  }

  .pending-patient-sections #approved {
    grid-column: auto;
  }
}

.telegram-connect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #77bfb4;
  border-left: 5px solid #087f70;
  border-radius: 7px;
  background: rgba(238, 251, 248, 0.97);
  box-shadow: 0 12px 28px rgba(9, 76, 67, 0.12);
  color: #0b3934;
}

.telegram-connect-copy {
  display: grid;
  gap: 3px;
}

.telegram-connect-copy strong {
  font-size: 19px;
}

.telegram-connect-copy > span:last-child {
  color: #486965;
  font-size: 14px;
}

.telegram-connect-kicker {
  color: #087f70;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.telegram-connect-button {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 13px 18px;
  border: 1px solid #076b60;
  border-radius: 6px;
  background: #087f70;
  box-shadow: 0 9px 18px rgba(7, 91, 81, 0.2);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.telegram-connect-button:hover {
  background: #065f56;
  color: #fff;
}

.home-telegram-connect-banner {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: 88px auto 0;
}

.home-telegram-connect-banner .telegram-connect-banner {
  margin: 0;
}

@media (max-width: 700px) {
  .telegram-connect-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .telegram-connect-button {
    width: 100%;
    min-width: 0;
  }

  .home-telegram-connect-banner {
    width: calc(100% - 28px);
    margin-top: 76px;
  }
}

.booking-daily-limit {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid #e4b45c;
  border-left: 5px solid #c98213;
  border-radius: 6px;
  background: #fff5df;
  color: #70480d;
}

.booking-daily-limit strong {
  color: #75470a;
  font-size: 17px;
}

.booking-daily-limit span {
  line-height: 1.45;
}

body:not(.public-home-page) .nav a.nav-active {
  padding-right: 13px;
  padding-left: 13px;
  border: 1px solid var(--clinic-teal);
  border-radius: 5px;
  background: #e5f6f2;
  color: var(--clinic-teal-dark);
  box-shadow: 0 0 0 2px rgba(12, 143, 128, 0.1);
}

body:not(.public-home-page) .nav a.nav-active:hover {
  border-color: var(--clinic-teal-dark);
  background: #d9f1ec;
  color: var(--clinic-teal-dark);
}
