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

:root {
  --bg: #f8fafc;
  --phone-bg: #e9edf2;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --sub: #6b7280;
  --muted: #9ca3af;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --success: #dcfce7;
  --success-text: #166534;
  --warning: #fef3c7;
  --warning-text: #92400e;
  --danger: #fee2e2;
  --danger-text: #991b1b;
  --neutral: #f3f4f6;
  --info: #eff6ff;
  --info-text: #1d4ed8;
  font-family:
    "Inter", "Aptos", "Calibri", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.patient-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.device-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.screen-caption {
  display: flex;
  width: min(330px, calc(100vw - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sub);
  font-size: 11px;
}

.screen-caption strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.screen-caption span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phone-frame {
  width: 336px;
  max-width: calc(100vw - 32px);
  border: 8px solid #111827;
  border-radius: 36px;
  background: #111827;
  padding: 8px;
}

.phone-notch {
  width: 112px;
  height: 18px;
  margin: -2px auto 8px;
  border-radius: 0 0 18px 18px;
  background: #111827;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  max-height: min(760px, calc(100vh - 130px));
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--phone-bg);
  padding: 16px;
}

.screen-content {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 76px;
  scrollbar-width: none;
}

.screen-content::-webkit-scrollbar {
  display: none;
}

.top-header {
  margin-bottom: 16px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sub);
  font-size: 10px;
}

.clinic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.clinic-brand {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 12px;
}

.clinic-logo {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.clinic-brand strong {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.clinic-actions {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.header-help-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 3px 0;
  font-size: 10px;
  font-weight: 600;
}

.header-help-link:hover,
.header-help-link:focus-visible,
.header-help-link.is-active {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.role-switcher {
  position: relative;
  z-index: 30;
}

.role-profile-trigger {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}

.role-profile-trigger::-webkit-details-marker {
  display: none;
}

.role-profile-trigger::after {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 4px solid currentColor;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
  content: "";
}

.role-switcher[open] .role-profile-trigger {
  background: #2563eb;
  color: #ffffff;
}

.role-switcher-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 190px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
}

.role-switcher-menu a {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid #e5e7eb;
  color: var(--text);
  padding: 10px 12px;
  text-decoration: none;
}

.role-switcher-menu a:last-child {
  border-bottom: 0;
}

.role-switcher-menu a:hover,
.role-switcher-menu a:focus-visible,
.role-switcher-menu a.is-active {
  background: var(--accent-soft);
}

.role-switcher-menu span {
  font-size: 11px;
  font-weight: 700;
}

.role-switcher-menu small {
  color: var(--sub);
  font-size: 9px;
}

.top-header h1 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}

.top-header p {
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.appointment-detail-top-header {
  margin-bottom: 12px;
}

.appointment-detail-clinic-row {
  margin-top: 8px;
}

.appointment-detail-clinic-row .clinic-brand {
  min-width: 0;
}

.appointment-detail-clinic-row .clinic-brand strong {
  color: #2563eb;
  font-size: 12px;
  white-space: nowrap;
}

.appointment-detail-title-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.appointment-detail-title-row h1 {
  margin: 0;
  font-size: 17px;
}

.badge {
  display: inline-flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 24px;
}

.badge.neutral {
  background: var(--neutral);
  color: var(--sub);
}

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

.badge.success {
  background: var(--success);
  color: var(--success-text);
}

.badge.confirmed {
  background: #5271a3;
  color: #ffffff;
}

.badge.paid {
  background: #356859;
  color: #ffffff;
}

.badge.completed {
  background: #4b5563;
  color: #ffffff;
}

.badge.warning {
  background: var(--warning);
  color: var(--warning-text);
}

.badge.on-site {
  background: #dbeafe;
  color: #1e40af;
}

.badge.danger {
  background: var(--danger);
  color: var(--danger-text);
}

.badge.info {
  background: var(--info);
  color: var(--info-text);
}

.stack {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: var(--surface);
  padding: 13px;
}

.card.soft {
  background: var(--surface);
}

.content-section {
  display: grid;
  gap: 10px;
}

.content-section > .section-title {
  margin-bottom: 0;
}

button.card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.dashboard-next-card {
  display: grid;
  position: relative;
  overflow: hidden;
  gap: 6px;
  border-width: 1px;
  border-color: #4338ca;
  border-radius: 16px;
  background: #4f46e5;
  color: #ffffff;
  padding: 15px;
}

.dashboard-stack {
  gap: 9px;
}

.screen-dashboard .top-header {
  margin-bottom: 10px;
}

.phone-screen.screen-dashboard {
  background: #e3e7ec;
}

.screen-dashboard .clinic-row {
  margin-top: 6px;
}

.screen-dashboard .top-header h1 {
  margin-top: 9px;
  font-size: 20px;
}

.screen-dashboard .top-header p {
  margin-top: 4px;
  color: #4b5563;
  font-size: 10px;
}

.screen-dashboard .screen-content {
  overflow-y: hidden;
  padding-bottom: 66px;
}

.screen-dashboard .dashboard-stack {
  gap: 15px;
}

.screen-dashboard .dashboard-next-card.appointment-detail-hero-compact {
  gap: 4px;
  padding: 11px;
}

.screen-dashboard .appointment-detail-hero-topline {
  min-height: 10px;
}

.screen-dashboard .appointment-detail-hero-specialist {
  grid-template-columns: 24px minmax(0, 1fr);
  margin-top: 1px;
  padding-top: 6px;
}

.screen-dashboard .appointment-detail-avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.dashboard-card-eyebrow {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-card-eyebrow.is-on-accent {
  position: relative;
  z-index: 1;
  color: #c7d2fe;
}

.dashboard-next-topline {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.dashboard-next-topline .appointment-detail-hero-status {
  display: inline-flex;
}

.dashboard-next-topline .appointment-detail-hero-status .badge {
  height: 19px;
  padding: 0 7px;
  font-size: 7.5px;
  line-height: 19px;
}

button.dashboard-next-card {
  color: #ffffff;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

button.dashboard-next-card:hover {
  border-width: 2px;
  border-color: #3730a3;
  background: #4338ca;
}

button.dashboard-next-card.appointment-detail-hero h2 {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-section-label {
  margin: 2px 0 -6px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-next-date {
  color: #e0e7ff;
  font-size: 10px;
  font-weight: 600;
}

.dashboard-next-title {
  max-width: 245px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
}

.screen-dashboard .dashboard-next-empty .dashboard-next-title {
  max-width: 240px;
  font-size: 17px;
  line-height: 1.28;
}

.dashboard-next-description {
  max-width: 220px;
  color: #e0e7ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.dashboard-next-specialist {
  color: #e0e7ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.dashboard-next-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.dashboard-next-footer small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #eef2ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.dashboard-next-footer small span {
  color: #c7d2fe;
  font-size: 8px;
}

.dashboard-next-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
}

.dashboard-next-empty {
  position: relative;
  min-height: 180px;
  display: grid;
  align-content: center;
  padding: 16px;
  overflow: hidden;
}

.dashboard-next-empty-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  justify-items: start;
  gap: 17px;
}

.dashboard-next-cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 12px;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-next-cta:hover,
.dashboard-next-cta:focus-visible {
  background: #eef2ff;
}

.dashboard-next-cta span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
}

.dashboard-next-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-next-visual {
  position: absolute;
  right: 16px;
  bottom: 29px;
  display: inline-grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #a5b4fc;
  opacity: 0.78;
}

.dashboard-next-visual svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-quick-section {
  display: grid;
  gap: 8px;
}

.dashboard-block-title {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.screen-dashboard .dashboard-grid {
  gap: 13px;
}

.screen-dashboard .dashboard-grid-primary {
  gap: 14px;
}

.dashboard-tile {
  display: grid;
  align-content: start;
  min-height: 120px;
  gap: 6px;
  border-width: 1px;
  border-color: #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.screen-dashboard .dashboard-tile {
  min-height: 76px;
  gap: 4px;
  padding: 10px;
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile {
  min-height: 104px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 11px;
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile-head {
  display: grid;
  width: 100%;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile-icon {
  grid-row: 1;
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile-head strong {
  grid-row: 2;
  width: 100%;
  text-align: center;
}

.screen-dashboard .dashboard-tile-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.screen-dashboard .dashboard-tile-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2;
}

.screen-dashboard .dashboard-grid-primary .tone-booking .dashboard-tile-icon,
.screen-dashboard .dashboard-grid-primary .tone-visits .dashboard-tile-icon {
  background: transparent;
  color: #4f46e5;
}

.screen-dashboard .dashboard-tile strong {
  font-size: 15px;
  line-height: 1.25;
  transform: translateY(7px);
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile strong {
  font-size: 14px;
  transform: none;
}

.screen-dashboard .dashboard-tile small {
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
  transform: translateY(7px);
}

.screen-dashboard .dashboard-grid-primary .dashboard-tile small {
  min-height: 26px;
  max-width: 105px;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
  transform: none;
}

.dashboard-tile-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dashboard-tile-head strong {
  min-width: 0;
  text-align: left;
}

.dashboard-tile:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dashboard-tile-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.dashboard-tile-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-booking .dashboard-tile-icon {
  background: #dbeafe;
  color: #2563eb;
}

.tone-visits .dashboard-tile-icon {
  background: #ede9fe;
  color: #6d28d9;
}

.tone-payments .dashboard-tile-icon {
  background: #dcfce7;
  color: #15803d;
}

.tone-profile .dashboard-tile-icon {
  background: #f3f4f6;
  color: #4b5563;
}

.dashboard-tile strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-tile small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sub);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-tile.tone-booking small {
  display: block;
  font-size: 10px;
  white-space: normal;
}

.dashboard-activity-card {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.dashboard-recent-section {
  display: grid;
  gap: 7px;
  padding: 0;
}

.dashboard-recent-heading {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.screen-dashboard .dashboard-activity-card {
  gap: 7px;
  min-height: 66px;
  padding: 11px 12px;
}

.screen-dashboard .dashboard-activity-copy > small {
  font-size: 10px;
  line-height: 1.3;
}

.screen-dashboard .dashboard-activity-flags {
  margin-top: 0;
}

.dashboard-activity-card.is-archive {
  background: #ffffff;
}

button.dashboard-activity-card {
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

button.dashboard-activity-card:hover {
  background: var(--accent-soft);
}

button.dashboard-activity-card.is-archive:hover {
  background: var(--accent-soft);
}

.dashboard-health-note {
  display: grid;
  width: 100%;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: #dbeafe;
  padding: 9px 11px;
  color: inherit;
  text-align: left;
}

.dashboard-health-note:hover,
.dashboard-health-note:focus-visible {
  background: #cfe2ff;
}

.dashboard-health-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #4f46e5;
}

.dashboard-health-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-health-note > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-health-note strong {
  color: var(--text);
  font-size: 9.5px;
  line-height: 1.25;
}

.dashboard-health-note small {
  color: #64748b;
  font-size: 8.5px;
  line-height: 1.3;
}

.patient-support-screen {
  gap: 14px;
}

.patient-support-list {
  display: grid;
  gap: 10px;
}

.patient-support-row {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.patient-support-row:hover,
.patient-support-row:focus-visible {
  background: var(--accent-soft);
}

.patient-support-row-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
}

.patient-support-row-icon.is-contact {
  background: #eff6ff;
  color: #2563eb;
}

.patient-support-row-icon.is-preparation {
  background: #f0fdf4;
  color: #15803d;
}

.patient-support-row-icon.is-guide {
  background: #f5f3ff;
  color: #7c3aed;
}

.patient-support-row-icon svg,
.patient-support-contact-icon svg,
.patient-support-row-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patient-support-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.patient-support-row-copy strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.patient-support-row-copy small {
  color: var(--sub);
  font-size: 9.5px;
  line-height: 1.3;
}

.patient-support-row-arrow {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #4f46e5;
}

.patient-support-row-arrow svg {
  width: 16px;
  height: 16px;
}

.patient-support-contact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: #dbeafe;
  padding: 11px 12px;
}

.patient-support-contact-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #4f46e5;
}

.patient-support-contact > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.patient-support-contact strong {
  color: var(--text);
  font-size: 10px;
  line-height: 1.25;
}

.patient-support-contact small {
  color: #64748b;
  font-size: 8.5px;
  line-height: 1.3;
}

.patient-support-contact a {
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 9px;
  color: #4f46e5;
  font-size: 8.5px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-activity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-activity-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.dashboard-activity-topline .dashboard-card-eyebrow {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-activity-copy > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-activity-copy > small {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-activity-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--sub);
  font-size: 9.5px;
  line-height: 1.35;
}

.dashboard-activity-meta > span,
.visit-detail-line > span {
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  color: #64748b;
}

.dashboard-activity-meta svg,
.visit-detail-line svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-activity-flags {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-left: auto;
}

.dashboard-activity-topline .activity-flag {
  min-height: 15px;
  padding: 0 5px;
  font-size: 7.5px;
  line-height: 15px;
}

.activity-flag {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 1px 7px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
}

.activity-flag.is-paid {
  background: #356859;
}

.activity-flag.is-completed {
  background: #4b5563;
}

.dashboard-activity-arrow {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #64748b;
}

.dashboard-activity-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.section-title.compact {
  margin-bottom: 8px;
}

.section-title strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.section-title > span {
  color: var(--sub);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.summary-visit-heading strong {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.list {
  display: grid;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.list-row > span {
  min-width: 0;
}

button.list-row {
  width: 100%;
}

button.list-row:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: #eef2ff;
}

button.list-row:focus-visible {
  border-width: 2px;
  border-color: var(--accent);
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

.list-row.is-active {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.list-row strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.list-row small {
  display: block;
  margin-top: 3px;
  color: var(--sub);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.list-row .badge,
.list-row em {
  flex: 0 0 auto;
}

.payment-history-row {
  position: relative;
  display: block;
  gap: 3px;
  padding-right: 112px;
}

.payment-history-top {
  display: block;
  min-width: 0;
}

.payment-history-top .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-left: 0;
}

.payment-history-row small {
  white-space: nowrap;
}

.list-row em {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.row-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #6b7280;
  font-size: 15px;
}

.row-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-hub {
  gap: 20px;
}

.booking-choice-section {
  gap: 7px;
}

.booking-section-label {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-choice-list {
  display: grid;
  gap: 10px;
}

.booking-choice {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
}

.booking-choice:hover,
.booking-choice.is-active {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.booking-choice-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #ccfbf1;
  color: #0f766e;
}

.booking-choice:nth-child(2) .booking-choice-icon {
  background: #eff6ff;
  color: #2563eb;
}

.booking-choice:nth-child(3) .booking-choice-icon {
  background: #ecfdf5;
  color: #059669;
}

.booking-choice-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-choice-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-choice-copy small {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-choice.is-active .booking-choice-copy small {
  color: var(--accent);
}

.booking-choice-copy strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.booking-choice-copy em {
  color: var(--sub);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.3;
}

.booking-recent-service {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  padding: 10px 12px;
  text-align: left;
}

.booking-recent-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.booking-recent-heading {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.booking-recent-service:hover {
  background: #eef2ff;
}

.booking-recent-detail {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--sub);
  font-size: 9.5px;
  line-height: 1.3;
}

.booking-recent-detail > span {
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  color: #64748b;
}

.booking-recent-detail svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-recent-empty {
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 12px;
  color: var(--sub);
  font-size: 10px;
  line-height: 1.4;
}

.booking-row-arrow {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #94a3b8;
}

.booking-row-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-price-flag {
  display: inline-flex;
  height: 17px;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  padding: 1px 7px 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
}

.payment-option {
  align-items: center;
  gap: 8px;
  border-color: #94a3b8;
  background: var(--surface);
}

button.payment-option:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: #eef2ff;
}

button.payment-option.is-active:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dashboard-tile.is-active,
.payment-option.is-active {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payment-option-copy {
  display: grid;
  gap: 3px;
}

.payment-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.recommendation-badge {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid #edf0f4;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  padding: 0 6px;
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.payment-main-line {
  white-space: nowrap;
}

.payment-detail {
  margin-top: 0 !important;
}

.chip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  padding: 0 13px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chip.is-active {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.slot-filter-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  justify-content: start;
  overflow: visible;
  padding-bottom: 0;
}

.slot-filter-row .chip {
  width: auto;
  min-width: 0;
  border: 0;
  background: #ffffff;
  padding: 0 11px;
  font-size: 9px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.slot-filter-row .chip:not(.is-active):hover,
.slot-filter-row .chip:not(.is-active):focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.slot-filter-row .chip.is-active {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.slot-service-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.slot-service-meta > span:first-child {
  color: var(--sub);
  font-size: 11px;
}

.service-choice-screen {
  gap: 10px;
}

.service-choice-list {
  display: grid;
  gap: 8px;
}

.service-choice-card {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  padding: 12px;
  text-align: left;
}

.service-choice-card:hover {
  background: #f8fafc;
}

.service-choice-card.is-active {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 10px;
}

.service-choice-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.service-choice-copy strong {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.35;
}

.service-choice-copy small {
  color: var(--sub);
  font-size: 10px;
  line-height: 1.35;
}

.specialist-choice-list {
  display: grid;
  gap: 8px;
}

.specialist-choice-card {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  padding: 12px;
  text-align: left;
}

.specialist-choice-card:hover {
  background: #f8fafc;
}

.specialist-choice-avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.specialist-choice-avatar img,
.appointment-detail-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.specialist-choice-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.specialist-choice-copy strong {
  color: var(--text);
  font-size: 12.5px;
}

.specialist-choice-copy small {
  color: var(--sub);
  font-size: 10px;
}

.payment-method-panel {
  display: grid;
  gap: 8px;
  background: transparent;
  padding: 0;
}

.payment-method-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.payment-methods {
  display: grid;
  gap: 7px;
}

.payment-method-option {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 11px;
  text-align: left;
}

.payment-method-option:hover,
.payment-method-option:focus-visible {
  background: var(--accent-soft);
}

.payment-method-radio {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
}

.payment-method-option.is-active .payment-method-radio {
  border: 4px solid var(--accent);
}

.payment-method-copy {
  display: grid;
  gap: 2px;
}

.payment-method-copy strong {
  color: #111827;
  font-size: 11px;
  font-weight: 700;
}

.payment-method-copy small {
  color: var(--sub);
  font-size: 8.5px;
  line-height: 1.3;
}

.input {
  display: grid;
  gap: 6px;
}

.input label,
.input > span {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.input input,
.input select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font-size: 12px;
}

.input input:focus,
.input select:focus {
  border: 2px solid var(--accent);
  outline: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
}

.summary-consent {
  align-items: flex-start;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.summary-consent > span {
  display: grid;
  gap: 2px;
}

.summary-consent strong {
  color: var(--text);
  font-size: 11px;
}

.summary-consent small {
  color: var(--sub);
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.4;
}

.summary-consent-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.summary-consent-row:hover,
.summary-consent-row:focus-within {
  background: #ececfe;
}

.summary-consent-row.is-accepted {
  background: #ecfdf3;
}

.summary-consent-details {
  display: grid;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.summary-consent-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.summary-consent-copy strong {
  font-size: 12px;
}

.summary-consent-copy small {
  color: var(--sub);
  font-size: 9px;
  line-height: 1.3;
}

.summary-consent-status {
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-consent-row.is-accepted .summary-consent-status {
  color: #166534;
}

.consent-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  background: rgb(17 24 39 / 42%);
  padding: 12px;
}

.consent-sheet {
  display: flex;
  width: 100%;
  max-height: calc(100% - 24px);
  flex-direction: column;
  gap: 14px;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.consent-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.consent-sheet-header span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.consent-sheet-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.consent-sheet-close {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.consent-sheet-content {
  min-height: 0;
  overflow-y: auto;
  color: #374151;
  font-size: 12px;
  line-height: 1.55;
}

.consent-sheet-content strong {
  color: var(--text);
  font-size: 13px;
}

.consent-sheet-content p {
  margin: 10px 0 0;
}

.consent-sheet-accept {
  flex: 0 0 auto;
}

.primary-button,
.secondary-button,
.danger-button {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: #4338ca;
}

.primary-button:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #cbd5e1;
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.confirmation-secondary-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.confirmation-secondary-button:hover {
  border: 0;
  background: transparent;
  color: #4338ca;
}

.danger-button {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: var(--danger-text);
}

.slot-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
}

.slot-calendar {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.slot-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-calendar-header strong {
  color: var(--text);
  font-size: 12.5px;
}

.slot-calendar-controls {
  display: flex;
  gap: 4px;
}

.slot-calendar-controls button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.slot-calendar-weekdays,
.slot-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.slot-calendar-weekdays span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.slot-calendar-day,
.slot-calendar-empty {
  aspect-ratio: 1;
  min-width: 0;
}

.slot-calendar-day {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
}

.slot-calendar-day.is-available {
  background: #f0fdf4;
  color: var(--text);
}

.slot-calendar-day.is-today {
  color: var(--accent);
}

.slot-calendar-day.is-selected {
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
}

.slot-calendar-day i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15803d;
}

.slot-calendar-day.is-selected i {
  background: #16a34a;
}

.slot-calendar-day:disabled {
  cursor: default;
}

.slots-empty-state .section-title {
  margin-bottom: 0;
}

.slot-row .primary-button,
.slot-row .mini-button {
  width: 76px;
  min-width: 76px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 11px;
}

.slot-time {
  display: grid;
  min-height: 74px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 4px;
}

.slot-time strong {
  font-size: 13px;
}

.slot-time span {
  font-size: 10px;
  font-weight: 650;
}

.slot-main strong,
.visit-row strong:not(.visit-service) {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.slot-room,
.visit-meta {
  color: var(--sub);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.slot-room {
  display: block;
  margin-top: 3px;
}

.visit-detail-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--sub);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.visits-list-card .visit-detail-line > span {
  align-self: center;
}

.visits-list-card .visit-detail-line svg {
  display: block;
}

.visit-service {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.visits-list-card .visit-service {
  margin-bottom: 5px;
}

.visits-list-card .visit-date {
  color: var(--sub);
  font-size: 10px;
  font-weight: 400;
}

.visit-date {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.price-badge {
  display: inline-flex;
  height: 17px;
  min-height: 17px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111827;
  color: #ffffff !important;
  padding: 1px 7px 0;
  font-size: 9.5px !important;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.mini-button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

.mini-button.is-primary {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.mini-button.is-primary:hover,
.mini-button.is-primary:focus-visible {
  background: #4338ca;
}

.price-row,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--sub);
  font-size: 11px;
}

.price-row strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.summary-list {
  display: grid;
  gap: 9px;
}

.summary-row {
  border-top: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 0 8px;
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-row strong {
  max-width: 160px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.patient-data-card {
  display: grid;
  gap: 0;
  padding: 12px;
}

.patient-data-card .summary-row {
  padding: 9px 0;
}

.patient-data-card .summary-row:first-child {
  padding-top: 0;
}

.patient-data-card .summary-row:last-child {
  padding-bottom: 0;
}

.patient-data-card .summary-row strong {
  max-width: 165px;
}

.patient-data-list {
  overflow: hidden;
  padding: 0;
}

.patient-data-screen {
  gap: 14px;
}

.patient-data-shell {
  display: grid;
  gap: 7px;
  border-radius: 14px;
  background: #d7dee8;
  padding: 11px 12px 12px;
}

.patient-data-surface {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}

.patient-data-section-label {
  display: block;
  padding: 0;
  color: #374151;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.screen-patientData .patient-data-screen,
.screen-security .patient-data-screen {
  gap: 18px;
}

.screen-patientData .patient-data-shell,
.screen-security .patient-data-shell {
  gap: 8px;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.screen-patientData .patient-data-section-label,
.screen-security .patient-data-section-label {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.screen-patientData .patient-data-surface,
.screen-security .patient-data-surface {
  border-radius: 12px;
}

.screen-patientData .patient-data-row,
.screen-security .patient-data-row {
  min-height: 64px;
  padding: 10px 13px;
}

.screen-patientData .patient-data-form {
  padding: 13px;
}

.screen-patientData .patient-data-form .input input {
  border: 0;
  outline: 0;
  background: #f8fafc;
}

.screen-patientData .patient-data-form .input input:focus {
  border: 0;
  outline: 0;
  background: var(--accent-soft);
}

.screen-patientData .patient-contact-input {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.screen-security .patient-data-form {
  padding: 13px;
}

.screen-security .patient-data-form .input input {
  border: 0;
  outline: 0;
  background: #f8fafc;
}

.screen-security .patient-data-form .input input:focus {
  border: 0;
  outline: 0;
  background: var(--accent-soft);
}

.screen-security .patient-pin-input,
.screen-security .patient-password-input {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.patient-pin-fields {
  display: grid;
  grid-template-columns: repeat(4, 46px);
  gap: 10px;
}

.patient-pin-fields input {
  width: 46px;
  min-height: 48px;
  padding: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.screen-security .patient-pin-input .patient-pin-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.screen-security .patient-pin-input .patient-pin-fields input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.profile-consent-row {
  display: grid;
  width: 100%;
  min-height: 57px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 11px;
}

.profile-consent-row:last-child {
  border-bottom: 0;
}

.profile-consent-row:hover,
.profile-consent-row:focus-within {
  background: var(--accent-soft);
}

.profile-consent-details {
  display: grid;
  min-width: 0;
  min-height: 57px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 9px 0;
  text-align: left;
}

.profile-consent-switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 2px;
  transition: background-color 160ms ease;
}

.profile-consent-switch > span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(0);
  transition: transform 160ms ease;
}

.profile-consent-switch:hover {
  background: #b8c1ce;
}

.profile-consent-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.profile-consent-row.is-accepted .profile-consent-switch {
  background: var(--accent);
}

.profile-consent-row.is-accepted .profile-consent-switch:hover {
  background: #4338ca;
}

.profile-consent-row.is-accepted .profile-consent-switch > span {
  transform: translateX(16px);
}

.patient-notifications-screen {
  gap: 16px;
}

.patient-notification-group,
.patient-notification-list {
  display: grid;
  gap: 8px;
}

.patient-notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.patient-notification-heading h2,
.patient-notification-settings h2 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
}

.patient-notification-heading button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 5px 0;
  font-size: 9px;
  font-weight: 700;
}

.patient-notification-row {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 11px;
  text-align: left;
}

.patient-notification-row:hover,
.patient-notification-row:focus-visible {
  background: var(--accent-soft);
}

.patient-notification-row.is-unread {
  background: #eef2ff;
}

.patient-notification-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  color: var(--accent);
}

.patient-notification-icon svg {
  width: 19px;
  height: 19px;
}

.patient-notification-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.patient-notification-copy strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
}

.patient-notification-copy small,
.patient-notification-copy time {
  color: var(--sub);
  font-size: 8.5px;
  line-height: 1.35;
}

.patient-notification-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.patient-change-proposal {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  border-radius: 13px;
  padding: 11px;
  background: var(--surface);
}

.patient-change-proposal.is-unread {
  background: #eef2ff;
}

.patient-change-proposal-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.patient-change-proposal-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.patient-change-proposal-actions button.is-primary {
  background: var(--accent);
  color: #ffffff;
}

.patient-notification-settings {
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface);
}

.patient-notification-settings h2 {
  padding: 12px 12px 7px;
}

.patient-notification-setting {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 9px 12px;
}

.patient-notification-setting > span {
  display: grid;
  gap: 3px;
}

.patient-notification-setting strong {
  color: var(--text);
  font-size: 10px;
}

.patient-notification-setting small {
  color: var(--sub);
  font-size: 8.5px;
}

.patient-notification-setting > button {
  position: relative;
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 0;
}

.patient-notification-setting > button i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
}

.patient-notification-setting.is-active > button {
  background: var(--accent);
}

.patient-notification-setting.is-active > button i {
  transform: translateX(16px);
}

.patient-notification-setting.is-locked {
  opacity: 0.72;
}

.consents-screen {
  gap: 18px;
}

.consents-screen .patient-data-shell {
  gap: 8px;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.consents-screen .patient-data-section-label {
  padding-left: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.consents-screen .patient-data-surface {
  border-radius: 12px;
}

.consents-screen .profile-consent-row,
.consents-screen .profile-consent-details {
  min-height: 64px;
}

.consents-screen .profile-consent-row {
  padding: 0 13px;
}

.consents-screen .summary-consent-copy {
  gap: 3px;
}

.consents-screen .summary-consent-copy strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.consents-screen .summary-consent-copy small {
  color: var(--sub);
  font-size: 9px;
  line-height: 1.35;
}

.appointment-detail-row-icon.is-profile,
.appointment-detail-row-icon.is-phone,
.appointment-detail-row-icon.is-mail {
  background: #eef2ff;
  color: var(--accent);
}

.appointment-detail-row-icon.is-password {
  background: #fff4dd;
  color: #b7791f;
}

.appointment-detail-row-icon.is-pin {
  background: #e8f5ee;
  color: #155b3d;
}

.appointment-detail-row-icon.is-sms {
  background: #eef2ff;
  color: var(--accent);
}

.appointment-detail-row-icon.is-device {
  background: #f3f4f6;
  color: #6b7280;
}

.appointment-detail-row-icon.is-notifications {
  background: #eef2ff;
  color: var(--accent);
}

.appointment-detail-row-icon.is-facility {
  background: #f3f4f6;
  color: #6b7280;
}

.patient-data-form {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.patient-data-cancel {
  border: 0;
  background: #f3f4f6;
}

.patient-data-cancel:hover {
  border: 0;
  background: var(--accent-soft);
}

.booking-summary .summary-list {
  gap: 8px;
}

.booking-summary .summary-row {
  align-items: flex-start;
  min-height: 24px;
  padding-bottom: 8px;
  font-size: 12px;
}

.booking-summary .summary-row span {
  flex: 0 0 74px;
  color: var(--sub);
}

.booking-summary .summary-row strong {
  max-width: none;
  font-size: 12px;
  line-height: 1.35;
}

.booking-summary-shell {
  display: grid;
  gap: 8px;
  padding: 0;
}

.booking-summary-shell .summary-visit-heading {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.booking-summary-card {
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 12px;
}

.booking-summary-card .visit-summary-list {
  border-radius: 0;
  background: transparent;
}

.booking-summary-card .visit-summary-row {
  padding: 8px 0;
}

.booking-summary-card .visit-summary-row.is-no-icon {
  display: block;
  padding: 14px 0 12px;
}

.patient-problem-card {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.patient-problem-card span {
  display: grid;
  gap: 2px;
}

.patient-problem-card strong {
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.patient-problem-card .required-mark {
  color: #dc2626;
  font-style: normal;
}

.patient-problem-card small {
  color: #6b7280 !important;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.35;
}

.patient-problem-card textarea {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  outline: 0;
  padding: 9px 10px;
  resize: none;
}

.patient-problem-card textarea:focus {
  background: #f8fafc;
  outline: 2px solid #cbd5e1;
}

.visit-summary-list {
  display: grid;
  overflow: hidden;
  border-radius: 9px;
  background: #f5f6f8;
}

.visit-summary-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 10px;
}

.visit-summary-row:last-child {
  border-bottom: 0;
}

.visit-summary-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #ffffff;
  color: #64748b;
}

.visit-summary-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-summary-copy {
  display: grid;
  min-width: 0;
  gap: 0;
}

.visit-summary-copy small {
  display: none;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.2;
}

.visit-summary-copy strong {
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.visit-summary-row.is-primary .visit-summary-copy strong {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.summary-payment {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 0;
}

.summary-consent-card {
  min-height: 52px;
  margin-top: 2px;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
}

.summary-consent-card.is-accepted {
  background: #ffffff;
}

.summary-consent-card:hover,
.summary-consent-card:focus-within,
.summary-consent-card.is-accepted:hover {
  background: var(--accent-soft);
}

.summary-consent-row.is-accepted .profile-consent-switch {
  background: var(--accent);
}

.summary-consent-row.is-accepted .profile-consent-switch:hover {
  background: #4338ca;
}

.summary-consent-row.is-accepted .profile-consent-switch > span {
  transform: translateX(16px);
}

.summary-consent-switch {
  width: 34px;
  height: 20px;
  flex-basis: 34px;
}

.summary-consent-switch > span {
  width: 16px;
  height: 16px;
}

.summary-consent-row.is-accepted .summary-consent-switch > span {
  transform: translateX(14px);
}

.summary-consent-card .summary-consent-copy strong {
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.summary-consent-card .summary-consent-copy small {
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 600;
}

.summary-payment-card {
  margin-top: 2px;
  border-radius: 12px;
  background: #ffffff;
  padding: 13px 14px;
}

.summary-payment-card .summary-payment-main {
  align-items: center;
}

.summary-payment-card .summary-payment-main strong {
  position: relative;
  top: 1px;
}

.summary-payment-card .summary-payment-main span {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.summary-payment-card small {
  color: #4b5563;
  font-size: 9.5px;
  font-weight: 500;
}

.summary-payment-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-payment span {
  display: block;
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
}

.summary-payment strong {
  display: block;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.summary-payment small {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.screen-summary .screen-content,
.screen-payment .screen-content {
  padding-bottom: 18px;
}

.payment-screen {
  gap: 13px;
}

.screen-payment .primary-button:disabled {
  background: #d1d5db;
  color: #6b7280;
  opacity: 1;
}

.payment-visit-card {
  display: grid;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 13px;
}

.payment-visit-title {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.payment-visit-data {
  display: grid;
  margin-top: 8px;
}

.payment-visit-data span {
  border-top: 1px solid #e5e7eb;
  color: #374151;
  padding: 8px 0;
  font-size: 9.5px;
  line-height: 1.35;
}

.payment-visit-amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

.payment-visit-amount span {
  color: var(--sub);
  font-size: 9px;
  font-weight: 600;
}

.payment-visit-amount strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.payment-visit-hint {
  margin-top: 5px;
  color: #4b5563;
  font-size: 8.5px;
  text-align: right;
}

.payment-back-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 2px 12px;
  font-size: 10px;
  font-weight: 600;
}

.payment-back-link:hover,
.payment-back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.payment-box {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
}

.payment-box-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.payment-box span,
.payment-box small {
  color: var(--sub);
  font-size: 12px;
}

.payment-box strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.payment-box small {
  font-size: 11px;
}

.visit-row {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 9px;
  align-items: start;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  padding: 11px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.visit-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  overflow: visible;
  padding: 0;
  background: transparent;
}

.visit-filters .chip {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: #ffffff;
  padding-inline: 5px;
  font-size: 9px;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.visit-filters .chip:not(.is-active):hover,
.visit-filters .chip:not(.is-active):focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.visit-filters .chip.is-active {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.visits-screen {
  gap: 12px;
}

.visits-list-shell {
  background: transparent;
  padding: 0;
}

.visits-list-card {
  display: grid;
  gap: 10px;
  overflow: visible;
  background: transparent;
}

.visits-list-card .visit-row {
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.visits-list-card .visit-row:last-child {
  border: 0;
}

.visit-row.is-completed {
  background: #f7f8fa;
}

.visit-row.is-completed .visit-service,
.visit-row.is-completed .visit-date {
  color: #374151;
}

.visit-row.is-cancelled {
  background: #f7f8fa;
}

.visit-row.is-cancelled .visit-service,
.visit-row.is-cancelled .visit-date,
.visit-row.is-cancelled .visit-meta {
  color: #6b7280;
}

.visits-list-card .visit-row.is-completed,
.visits-list-card .visit-row.is-cancelled {
  background: #ffffff;
}

.visits-list-card .visit-row .visit-service,
.visits-list-card .visit-row.is-completed .visit-service,
.visits-list-card .visit-row.is-cancelled .visit-service {
  color: #111827;
  font-size: 12px;
}

.visits-empty-state {
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.visits-empty-state .section-title {
  margin-bottom: 0;
}

.visit-row.is-clickable {
  cursor: pointer;
}

.visit-row.is-clickable:hover {
  background: #eef2ff;
}

.visit-row.is-clickable:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: -2px;
}

.visit-row-content {
  min-width: 0;
}

.visit-row-topline {
  display: block;
  min-width: 0;
}

.visit-row-topline .visit-service {
  min-width: 0;
  padding-right: 78px;
  color: #111827;
  font-size: 12px;
  white-space: normal;
}

.visit-row-topline .badge,
.visit-row-topline .visit-list-status,
.visit-row-topline .appointment-detail-row-status {
  position: absolute;
  top: 11px;
  right: 11px;
}

.visit-list-status {
  display: inline-flex;
  min-height: 17px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 7px 2px;
  font-size: 8px;
  font-weight: 700;
  line-height: 13px;
  white-space: nowrap;
}

.visit-list-status.is-confirmed {
  background: #dcfce7;
  color: #166534;
}

.visit-list-status.is-due {
  background: #ffedd5;
  color: #c2410c;
}

.visit-row-arrow {
  display: inline-grid;
  width: 20px;
  height: 20px;
  align-self: center;
  place-items: center;
  color: #64748b;
}

.visit-row-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.dashboard-next-card:active,
.dashboard-tile:active,
button.dashboard-activity-card:active,
button.list-row:active,
button.payment-option:active,
.visit-row.is-clickable:active {
  border-width: 2px;
  border-color: var(--accent);
}

.visit-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.appointment-detail-screen {
  gap: 12px;
}

.appointment-overview {
  display: grid;
  gap: 12px;
}

.appointment-overview-service,
.appointment-overview-details > span {
  display: grid;
  gap: 3px;
}

.appointment-overview-service small,
.appointment-overview-details small {
  color: var(--sub);
  font-size: 9px;
  line-height: 1.35;
}

.appointment-overview-service strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.appointment-overview-when {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.appointment-overview-details {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 11px;
}

.appointment-overview-details strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.appointment-overview-details > .appointment-overview-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.appointment-overview-line small {
  flex: 0 0 auto;
}

.appointment-overview-details em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.facility-link {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: #c7d2fe;
  text-underline-offset: 3px;
}

.facility-link:hover {
  color: #3730a3;
  text-decoration-color: #3730a3;
}

.appointment-detail-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-top: 7px;
}

.appointment-detail-statuses .badge {
  height: 20px;
  padding: 0 8px;
  font-size: 8px;
  line-height: 20px;
}

.appointment-detail-section {
  display: grid;
  gap: 10px;
}

.appointment-detail-items {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.appointment-detail-item {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: inherit;
  font: inherit;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.appointment-detail-item:last-child {
  border-bottom: 0;
}

button.appointment-detail-item:hover,
a.appointment-detail-item:hover {
  background: var(--accent-soft);
}

.appointment-detail-item > span {
  display: grid;
  gap: 2px;
}

.appointment-detail-item strong {
  font-size: 11px;
  line-height: 1.3;
}

.appointment-detail-item small {
  font-size: 9.5px;
  line-height: 1.35;
}

.appointment-detail-item em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.appointment-payment-meta {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px !important;
}

.appointment-payment-meta .badge {
  height: 20px;
  padding: 0 8px;
  background: #568878;
  color: #ffffff;
  font-size: 8px;
  line-height: 20px;
}

.appointment-consent-status {
  display: inline-flex;
  min-height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #667085;
  color: #ffffff;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 700;
  line-height: 20px;
}

.appointment-detail-actions {
  display: grid;
  gap: 8px;
}

.appointment-detail-actions > .dashboard-section-label {
  margin-bottom: 0;
}

.appointment-cancel-link {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
}

.appointment-detail-screen {
  gap: 12px;
}

.appointment-detail-screen-compact {
  gap: 9px;
}

.appointment-detail-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 6px;
  border-radius: 16px;
  background: #4f46e5;
  color: #ffffff;
  padding: 13px;
}

.appointment-detail-hero-compact {
  gap: 6px;
  border: 0;
  padding: 15px;
}

button.confirmation-appointment-card {
  width: 100%;
  border: 0;
  color: #ffffff;
  font: inherit;
  text-align: left;
}

button.confirmation-appointment-card:hover,
button.confirmation-appointment-card:focus-visible {
  background: #4338ca;
}

.confirmation-screen {
  gap: 12px;
}

.confirmation-visit-card {
  display: grid;
  gap: 9px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  padding: 15px;
}

.confirmation-visit-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.confirmation-visit-meta {
  display: grid;
}

.confirmation-visit-meta span {
  border-top: 1px solid rgb(255 255 255 / 20%);
  color: #eef2ff;
  padding: 7px 0;
  font-size: 9.5px;
  line-height: 1.35;
}

.confirmation-visit-meta span:first-child {
  border-top: 0;
  padding-top: 0;
}

.confirmation-visit-meta span:last-child {
  padding-bottom: 0;
}

.confirmation-payment-card {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
}

.confirmation-payment-card strong {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.confirmation-payment-card span {
  color: #4b5563;
  font-size: 10px;
  line-height: 1.35;
}

.confirmation-dashboard-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 3px 12px;
  font-size: 10px;
  font-weight: 600;
}

.confirmation-dashboard-link:hover,
.confirmation-dashboard-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.appointment-detail-hero-decoration {
  position: absolute;
  top: -42px;
  right: -38px;
  width: 105px;
  height: 105px;
  border: 16px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.appointment-detail-hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.appointment-detail-hero-status {
  display: inline-flex;
}

.appointment-detail-countdown {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 2px 7px 3px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.appointment-detail-hero-status .badge {
  height: 21px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0 8px;
  font-size: 8px;
  line-height: 21px;
}

.appointment-detail-hero-status .badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.appointment-detail-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 220px;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.appointment-detail-hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  color: #dbeafe;
  font-size: 9.5px;
  font-weight: 600;
}

.appointment-detail-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appointment-detail-hero-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #bfdbfe;
}

.appointment-detail-hero-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.appointment-detail-hero-specialist {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 8px;
}

.appointment-detail-avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 700;
}

.appointment-detail-hero-specialist > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.appointment-detail-hero-specialist strong {
  font-size: 10.5px;
  line-height: 1.25;
}

.appointment-detail-hero-specialist small {
  color: #c7d2fe;
  font-size: 9px;
}

.appointment-detail-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.appointment-detail-status-tile {
  display: grid;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 4px;
  text-align: center;
}

button.appointment-detail-status-tile:hover {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.appointment-detail-status-tile > span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}

.appointment-detail-status-tile.is-paid > span {
  color: #059669;
}

.appointment-detail-status-tile.is-time > span {
  color: var(--accent);
}

.appointment-detail-status-tile.is-consent > span {
  border-radius: 3px;
  color: #15803d;
}

.appointment-detail-status-tile small {
  color: var(--sub);
  font-size: 9px;
}

.appointment-detail-status-tile strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.25;
}

.appointment-detail-section {
  display: grid;
  gap: 8px;
}

.appointment-detail-info-section {
  gap: 6px;
}

.appointment-detail-list {
  overflow: hidden;
  padding: 0;
}

.appointment-detail-row {
  display: grid;
  width: 100%;
  min-height: 57px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
}

.appointment-detail-row:last-child {
  border-bottom: 0;
}

button.appointment-detail-row:hover,
a.appointment-detail-row:hover {
  background: var(--accent-soft);
}

.referral-qr-screen {
  gap: 12px;
}

.referral-qr-card,
.referral-qr-details {
  display: grid;
  border-radius: 14px;
  background: #ffffff;
}

.referral-qr-card {
  justify-items: center;
  gap: 12px;
  padding: 18px 14px;
  text-align: center;
}

.referral-qr-code-wrap {
  display: grid;
  width: 204px;
  height: 204px;
  place-items: center;
  border-radius: 18px;
  background: #f8fafc;
}

.referral-qr-image {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #ffffff;
}

.referral-qr-copy {
  display: grid;
  gap: 5px;
}

.referral-qr-copy strong {
  color: var(--text);
  font-size: 13px;
}

.referral-qr-copy span {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.4;
}

.referral-qr-details {
  overflow: hidden;
}

.referral-qr-details span {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--border);
  padding: 11px 12px;
}

.referral-qr-details span:first-child {
  border-top: 0;
}

.referral-qr-details small {
  color: var(--sub);
  font-size: 10px;
}

.referral-qr-details strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 11px;
}

.visits-list-card .visit-row {
  border: 0;
}

.visits-list-card .visit-row:last-child {
  border: 0;
}

.visits-list-card .visit-row.is-clickable:hover,
.visits-list-card .visit-row.is-clickable:focus-visible {
  background: var(--accent-soft);
}

.appointment-detail-row-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
}

.appointment-detail-row-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.appointment-detail-row-icon.is-preparation {
  background: #fff4dd;
  color: #b7791f;
}

.appointment-detail-row-icon.is-payment {
  background: #e8f5ee;
  color: #155b3d;
}

.appointment-detail-row-icon.is-consent {
  background: #eef2ff;
  color: var(--accent);
}

.appointment-detail-row-icon.is-document {
  background: #eff6ff;
  color: #2563eb;
}

.appointment-detail-row-icon.is-location {
  background: #eef7ff;
  color: #0369a1;
}

.appointment-detail-row-icon.is-parking {
  background: #f1f5f9;
  color: #64748b;
}

.appointment-detail-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.appointment-detail-row-copy strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
}

.appointment-detail-row-copy strong a {
  color: inherit;
  text-decoration: none;
}

.appointment-detail-row-copy strong a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.appointment-detail-row-copy small a {
  color: inherit;
  text-decoration: none;
}

.appointment-detail-row-copy small a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.appointment-location-link {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: #c7d2fe !important;
  text-underline-offset: 2px;
}

.appointment-detail-row-copy small {
  color: var(--sub);
  font-size: 9.5px;
  line-height: 1.35;
}

.appointment-detail-row-action {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.appointment-detail-row-status {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.appointment-detail-row-status.is-paid {
  background: #dcfce7;
  color: #166534;
}

.appointment-detail-row-status.is-consent {
  background: #ede9fe;
  color: #6d28d9;
}

.appointment-detail-row-status.is-refund {
  background: #fef3c7;
  color: #92400e;
}

.appointment-detail-row-status.is-on-site {
  background: #f3f4f6;
  color: #4b5563;
}

.appointment-detail-row-status.is-due {
  background: #ffedd5;
  color: #c2410c;
}

.appointment-detail-actions {
  display: grid;
  gap: 7px;
}

.appointment-detail-primary-action,
.appointment-detail-secondary-action,
.appointment-detail-danger-action {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.appointment-detail-primary-action {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.appointment-detail-primary-action:hover {
  background: #4338ca;
}

.appointment-detail-secondary-action {
  border: 0;
  background: #f3f4f6;
  color: var(--text);
}

.appointment-detail-secondary-action:hover {
  background: var(--accent-soft);
}

.appointment-detail-danger-action {
  border: 0;
  background: #fff1f2;
  color: #b91c1c;
}

.appointment-detail-danger-action:hover {
  background: #ffe4e6;
}

.appointment-detail-primary-action svg,
.appointment-detail-secondary-action svg,
.appointment-detail-danger-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reschedule-comparison {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.reschedule-time {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.reschedule-time + .reschedule-time {
  border-top: 1px solid var(--border);
}

.reschedule-time span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.reschedule-time strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.reschedule-time small {
  color: var(--sub);
  font-size: 10px;
  line-height: 1.35;
}

.reschedule-time.is-new {
  background: var(--accent-soft);
}

.reschedule-time.is-new span,
.reschedule-time.is-new strong {
  color: var(--accent);
}

.reschedule-secondary-action {
  border: 0;
  background: #f3f4f6;
}

.reschedule-secondary-action:hover {
  border: 0;
  background: var(--accent-soft);
}

.cancellation-confirmation-screen {
  gap: 10px;
}

.cancellation-question {
  display: grid;
  gap: 5px;
  background: #fff1f2;
  color: #881337;
}

.cancellation-question strong {
  font-size: 14px;
  line-height: 1.35;
}

.cancellation-question span {
  color: #9f1239;
  font-size: 10px;
}

.cancellation-policy-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
}

.cancellation-policy-result.is-refund {
  background: #e8f5ee;
  color: #155b3d;
}

.cancellation-policy-result.is-loss {
  background: #fff0f0;
  color: #9b2525;
}

.cancellation-policy-result strong {
  font-size: 13px;
}

.cancellation-policy-result span {
  font-size: 11px;
  line-height: 1.45;
}

.cancellation-visit-card {
  display: grid;
  overflow: hidden;
  padding: 0;
}

.cancellation-refund-info {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #f3f4f6;
  padding: 12px;
}

.cancellation-refund-info strong {
  color: var(--text);
  font-size: 11px;
}

.cancellation-refund-info span {
  color: var(--sub);
  font-size: 10px;
  line-height: 1.4;
}

.cancellation-refund-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.cancellation-refund-row b {
  color: var(--text);
  font-size: 10px;
  text-align: right;
}

.cancellation-confirm-action {
  min-height: 44px;
}

.cancellation-return-action {
  border: 0;
  background: #f3f4f6;
}

.cancellation-return-action:hover {
  border: 0;
  background: var(--accent-soft);
}

.secondary-button.is-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #cbd5e1;
  border-radius: 0;
  background: #f8fafc;
  padding: 3px 10px 7px;
}

.bottom-nav button {
  position: relative;
  display: grid;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ca3af;
  padding: 6px 2px 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
}

.bottom-nav button::before {
  position: absolute;
  top: -4px;
  right: 18%;
  left: 18%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  background: transparent;
  color: #4f46e5;
}

.bottom-nav button.is-active {
  background: transparent;
  color: #4f46e5;
  font-weight: 700;
}

.bottom-nav button.is-active::before {
  background: #4f46e5;
}

.bottom-nav button.is-active .bottom-nav-icon {
  color: #4f46e5;
}

.bottom-nav-icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  justify-self: center;
}

.bottom-nav-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-slot {
  flex: 0 0 auto;
}

.toast {
  display: none;
  width: 100%;
  margin: -4px 0 12px;
  border: 2px solid #374151;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.toast[data-tone="important"] {
  border-color: #5145f5;
  background: #eeeefe;
  color: #25216b;
}

.toast[data-tone="confirmation"] {
  border: 0;
  background: #f59e0b;
  color: #111827;
  box-shadow: none;
}

.toast.is-visible {
  display: block;
}

.hold-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: #e0e7ff;
  color: #312e81;
  padding: 10px 11px;
}

.hold-notice-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
}

.hold-notice-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hold-notice-copy {
  display: grid;
  min-width: 0;
  gap: 0;
}

.hold-notice strong {
  font-size: 10px;
  line-height: 1.3;
}

.hold-notice small {
  color: #4f46e5;
  font-size: 8.5px;
  line-height: 1.35;
}

.hold-notice b {
  border-radius: 999px;
  background: var(--accent);
  padding: 5px 7px;
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .patient-page {
    padding: 0;
  }

  .screen-caption {
    display: none;
  }

  .phone-frame {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .phone-notch {
    display: none;
  }

  .phone-screen {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Borderless box experiment. Active selections keep a clear 2px state outline. */
.card,
.dashboard-next-card,
.dashboard-tile,
.dashboard-activity-card,
.list-row,
.booking-choice,
.slot-row,
.visit-row,
.appointment-detail-hero-compact,
.appointment-detail-status-tile {
  border: 0;
}

button.dashboard-next-card:hover,
.dashboard-tile:hover,
button.dashboard-activity-card:hover,
button.list-row:hover,
.booking-choice:hover,
button.payment-option:hover,
.visit-row.is-clickable:hover,
button.appointment-detail-status-tile:hover,
button.dashboard-next-card:active,
.dashboard-tile:active,
button.dashboard-activity-card:active,
button.list-row:active,
button.payment-option:active,
.visit-row.is-clickable:active {
  border: 0;
}

.booking-choice.is-active,
.list-row.is-active,
.dashboard-tile.is-active,
.payment-option.is-active,
button.payment-option.is-active:hover {
  border: 2px solid var(--accent);
}

/* Compact status flags used consistently across patient screens. */
.badge,
.dashboard-next-topline .appointment-detail-hero-status .badge,
.appointment-detail-statuses .badge,
.appointment-payment-meta .badge,
.appointment-detail-hero-status .badge,
.appointment-detail-row-status,
.appointment-consent-status {
  height: auto;
  min-height: 17px;
  padding: 0 7px 2px;
  line-height: 13px;
}

/* Unified interaction states across the patient surface. */
.dashboard-tile:hover,
button.dashboard-activity-card:hover,
button.dashboard-activity-card.is-archive:hover,
button.list-row:hover,
.booking-choice:hover,
.booking-recent-service:hover,
.service-choice-card:hover,
.specialist-choice-card:hover,
button.payment-option:hover,
.profile-consent-row:hover,
.summary-consent-row:hover,
.visit-row.is-clickable:hover,
button.appointment-detail-item:hover,
a.appointment-detail-item:hover,
button.appointment-detail-status-tile:hover,
button.appointment-detail-row:hover,
a.appointment-detail-row:hover {
  background: var(--accent-soft);
}
