html {
  font-size: 14px;
}

:root {
  --health-ink: #123b3b;
  --health-muted: #607575;
  --health-green: #176b60;
  --health-mint: #d7eee4;
  --health-cream: #f5f7f1;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.health-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 580px;
  margin: 1.5rem 0 3rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid #e6ece5;
  border-radius: 2rem;
  background: linear-gradient(120deg, #f8faf6 0%, #eff6f0 54%, #e5f1e9 100%);
  color: var(--health-ink);
}

.health-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.health-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  color: var(--health-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health-hero__eyebrow-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e4a95c;
  box-shadow: 0 0 0 5px #e4a95c25;
}

.health-hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.health-hero h1 span {
  color: var(--health-green);
  font-style: italic;
}

.health-hero__description {
  max-width: 470px;
  margin: 1.5rem 0 0;
  color: var(--health-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.health-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.health-hero__button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--health-green);
  border-radius: 0.55rem;
  background: var(--health-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.health-hero__button:hover {
  transform: translateY(-2px);
  background: #10584f;
  color: #fff;
}

.health-hero__button:focus-visible,
.health-hero__text-link:focus-visible {
  outline: 3px solid #e4a95c;
  outline-offset: 4px;
}

.health-hero__button span {
  font-size: 1.2rem;
}

.health-hero__text-link {
  color: var(--health-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration-color: #9db4a9;
  text-underline-offset: 4px;
}

.health-hero__text-link:hover {
  color: var(--health-green);
}

.health-hero__note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.2rem;
  color: var(--health-muted);
  font-size: 0.84rem;
}

.health-hero__note span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid #b8cfc0;
  border-radius: 50%;
  color: var(--health-green);
  font-weight: 700;
}

.health-hero__visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.health-hero__orb {
  position: absolute;
  border-radius: 50%;
}

.health-hero__orb--large {
  width: min(94%, 410px);
  aspect-ratio: 1;
  background: linear-gradient(145deg, #dceee2, #c8e3d5);
}

.health-hero__orb--small {
  top: 3%;
  right: 3%;
  width: 70px;
  aspect-ratio: 1;
  background: #f0d9b6;
  opacity: 0.8;
}

.health-hero__medical-mark {
  position: absolute;
  top: 7%;
  left: 3%;
  display: grid;
  width: 92px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ffffffb8;
  border-radius: 28px;
  background: #ffffffa6;
  box-shadow: 0 16px 40px #234d3915;
  transform: rotate(-9deg);
}

.health-hero__medical-mark svg {
  width: 50px;
  fill: none;
  stroke: var(--health-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.health-hero__schedule-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 1.5rem;
  border: 1px solid #ffffffd9;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 26px 70px #173f3521;
  transform: rotate(2deg);
}

.health-hero__schedule-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #edf1ed;
}

.health-hero__card-label {
  color: #7f9990;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.health-hero__schedule-top h2 {
  margin: 0.35rem 0 0;
  color: var(--health-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.health-hero__calendar-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.7rem;
  background: #eef6ef;
  color: var(--health-green);
}

.health-hero__calendar-icon svg {
  width: 1.3rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.health-hero__schedule-line {
  display: grid;
  grid-template-columns: 3.4rem 0.65rem 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f3f0;
}

.health-hero__schedule-time {
  color: #71847c;
  font-size: 0.78rem;
  font-weight: 600;
}

.health-hero__schedule-dot,
.health-hero__status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #e4a95c;
}

.health-hero__schedule-dot--mint {
  background: #70ad91;
}

.health-hero__schedule-detail {
  display: grid;
  gap: 0.22rem;
}

.health-hero__schedule-detail strong {
  color: var(--health-ink);
  font-size: 0.87rem;
}

.health-hero__schedule-detail small {
  color: #84958e;
  font-size: 0.73rem;
}

.health-hero__schedule-footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1rem;
  color: var(--health-muted);
  font-size: 0.75rem;
}

.health-hero__status-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: #70ad91;
}

.health-hero__floating-note {
  position: absolute;
  right: -2%;
  bottom: 10%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e8eee8;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 14px 36px #173f3518;
}

.health-hero__floating-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ed;
  color: var(--health-green);
  font-weight: 700;
}

.health-hero__floating-note > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.health-hero__floating-note strong {
  color: var(--health-ink);
  font-size: 0.78rem;
}

.health-hero__floating-note small {
  color: #84958e;
  font-size: 0.67rem;
}

.health-hero__visual-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #789087;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (max-width: 991.98px) {
  .health-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    padding: 2.5rem;
  }

  .health-hero__visual {
    min-height: 380px;
  }

  .health-hero__floating-note {
    right: -1rem;
  }
}

@media (max-width: 767.98px) {
  .health-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 2rem 1.4rem 1.25rem;
    border-radius: 1.4rem;
  }

  .health-hero h1 {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .health-hero__description {
    font-size: 0.98rem;
  }

  .health-hero__note {
    margin-top: 1.5rem;
  }

  .health-hero__visual {
    min-height: 360px;
    margin: 0 -0.5rem;
  }

  .health-hero__schedule-card {
    width: min(94%, 390px);
    padding: 1.2rem;
  }

  .health-hero__medical-mark {
    top: 2%;
    left: 0;
    width: 72px;
    border-radius: 22px;
  }

  .health-hero__medical-mark svg {
    width: 40px;
  }

  .health-hero__floating-note {
    right: 0;
    bottom: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .health-hero__button {
    transition: none;
  }
}

/* Shared WebAgenda visual system */
:root {
  --health-ink: #123b3b;
  --health-muted: #607575;
  --health-green: #176b60;
  --health-green-dark: #10584f;
  --health-mint: #d7eee4;
  --health-cream: #f5f7f1;
  --health-line: #e4ebe5;
  --health-surface: #ffffff;
  --health-shadow: 0 16px 48px #173f350b;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: #f7f9f6;
  color: var(--health-ink);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #e8eee8;
  background: #ffffffed;
  backdrop-filter: blur(16px);
}

.site-navbar {
  min-height: 82px;
  padding: 0.75rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--health-ink);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 1;
}

.site-brand:hover {
  color: var(--health-green);
}

.site-brand > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.site-brand > span:last-child > span,
.site-footer__brand span {
  color: var(--health-green);
}

.site-brand small {
  color: #80928b;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-brand__mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 0.8rem;
  background: #eaf4ed;
}

.site-brand__mark svg {
  width: 1.65rem;
  fill: none;
  stroke: var(--health-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-nav-links {
  gap: 0.35rem;
}

.site-nav-links .nav-link {
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  color: #4f6964;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus-visible {
  background: #edf5ef;
  color: var(--health-green);
}

.site-nav-login,
.site-logout-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid #d5e4d9;
  border-radius: 0.55rem;
  background: #f4f8f3;
  color: var(--health-green);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav-login:hover,
.site-logout-button:hover {
  border-color: var(--health-green);
  background: var(--health-green);
  color: #fff;
}

.site-nav-toggle {
  border-color: var(--health-line);
}

.site-main {
  width: 100%;
  flex: 1 0 auto;
  padding-top: 2.25rem;
  padding-bottom: 4.5rem;
}

.site-footer {
  border-top: 1px solid var(--health-line);
  background: #fff;
}

.site-footer__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #81928b;
  font-size: 0.78rem;
}

.site-footer__brand {
  color: var(--health-ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.page-section {
  padding: 0.5rem 0 2rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.page-heading h1,
.auth-panel h1,
.message-panel h1 {
  margin: 0.35rem 0 0;
  color: var(--health-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-heading p {
  margin: 0.65rem 0 0;
  color: var(--health-muted);
  font-size: 0.95rem;
}

.page-kicker {
  display: inline-block;
  color: var(--health-green);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.btn {
  border-radius: 0.55rem;
  font-weight: 600;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn-primary {
  border-color: var(--health-green);
  background-color: var(--health-green);
  box-shadow: 0 5px 14px #176b601a;
}

.btn-primary:hover,
.btn-primary:active {
  border-color: var(--health-green-dark);
  background-color: var(--health-green-dark);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: #b6d0bf;
  color: var(--health-green);
}

.btn-outline-primary:hover {
  border-color: var(--health-green);
  background: var(--health-green);
  color: #fff;
}

.btn-outline-danger {
  border-color: #ecd2ce;
  color: #a64c43;
}

.btn-outline-danger:hover {
  border-color: #a64c43;
  background: #a64c43;
}

.btn-light {
  border: 1px solid var(--health-line);
  background: #f6f8f5;
  color: #526a63;
}

.btn-light:hover {
  border-color: #c7d7cc;
  background: #edf3ee;
  color: var(--health-ink);
}

.form-label,
.filter-panel > label {
  margin-bottom: 0.45rem;
  color: #385852;
  font-size: 0.82rem;
  font-weight: 650;
}

.form-control,
.form-select {
  min-height: 2.85rem;
  border-color: #dce6df;
  border-radius: 0.55rem;
  background-color: #fff;
  color: var(--health-ink);
  font-size: 0.92rem;
}

textarea.form-control {
  min-height: auto;
}

.form-control::placeholder {
  color: #9aa9a2;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #83b9a2;
  box-shadow: 0 0 0 0.22rem #176b601a;
}

.form-check-input:checked {
  border-color: var(--health-green);
  background-color: var(--health-green);
}

.form-text {
  color: #7d8f87;
  font-size: 0.76rem;
}

.form-panel {
  max-width: 900px;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--health-line);
  border-radius: 1rem;
  background: var(--health-surface);
  box-shadow: var(--health-shadow);
}

.form-panel--narrow {
  max-width: 620px;
}

.form-panel .text-danger,
.auth-panel .text-danger {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.form-actions > .btn,
.auth-panel__actions > .btn {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
}

.filter-panel {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--health-line);
  border-radius: 0.85rem;
  background: #fff;
}

.filter-panel__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.filter-panel__controls > .form-control:first-child {
  max-width: 420px;
}

.filter-control--month {
  max-width: 100px;
}

.filter-control--year {
  max-width: 130px;
}

.filter-control--status {
  max-width: 240px;
}

.table-panel {
  overflow: hidden;
  border: 1px solid var(--health-line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--health-shadow);
}

.table-panel .table-responsive {
  margin: 0;
}

.data-table {
  margin: 0;
  color: #536a64;
  vertical-align: middle;
}

.data-table thead th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--health-line);
  background: #f5f8f4;
  color: #71847c;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.95rem 1rem;
  border-color: #edf1ed;
  font-size: 0.86rem;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f8fbf8;
}

.data-table__primary {
  color: var(--health-ink) !important;
  font-weight: 650;
}

.data-table__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.data-table__actions form {
  display: inline-flex;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--health-line);
  border-radius: 0.85rem;
  background: #fff;
}

.calendar-toolbar__date {
  display: grid;
  gap: 0.3rem;
}

.calendar-toolbar__date strong {
  color: var(--health-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: capitalize;
}

.calendar-view-toggle .btn {
  min-width: 5.2rem;
  font-size: 0.82rem;
}

.appointment-list {
  display: grid;
  gap: 0.7rem;
}

.appointment-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--health-line);
  border-radius: 0.85rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.appointment-card:hover {
  transform: translateY(-1px);
  border-color: #b6d0bf;
  box-shadow: var(--health-shadow);
  color: inherit;
}

.appointment-card__time {
  display: grid;
  gap: 0.15rem;
  color: #7b8d85;
  font-size: 0.74rem;
}

.appointment-card__time strong {
  color: var(--health-green);
  font-size: 1rem;
}

.appointment-card__content {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.appointment-card__content strong {
  overflow: hidden;
  color: var(--health-ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-card__content small {
  overflow: hidden;
  color: #7b8d85;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-card__arrow {
  color: #87a095;
  font-size: 1.15rem;
}

.status-badge {
  padding: 0.42rem 0.65rem;
  border: 1px solid #d6e8dc;
  border-radius: 999px;
  background: #eef7f0;
  color: #34745f;
  font-size: 0.7rem;
  font-weight: 650;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed #cbd9ce;
  border-radius: 1rem;
  background: #fbfcfa;
  text-align: center;
}

.empty-state__mark,
.patient-context__icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: #e9f4ec;
  color: var(--health-green);
  font-size: 1.35rem;
}

.empty-state h2 {
  margin: 1rem 0 0;
  color: var(--health-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.empty-state p {
  margin: 0.45rem 0 1.2rem;
  color: var(--health-muted);
  font-size: 0.88rem;
}

.patient-context {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 900px;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #dce9de;
  border-radius: 0.85rem;
  background: #f0f7f1;
}

.patient-context > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.patient-context small {
  color: #789087;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.patient-context strong {
  color: var(--health-ink);
  font-size: 0.9rem;
}

.patient-context__date {
  margin-left: auto;
  color: #61796f;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  max-width: 980px;
  min-height: 530px;
  margin: 1rem auto 2.5rem;
  overflow: hidden;
  border: 1px solid var(--health-line);
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: 0 20px 60px #173f3510;
}

.auth-page--compact {
  min-height: 440px;
}

.auth-panel {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.auth-panel h1 {
  max-width: 430px;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.auth-panel__intro {
  max-width: 410px;
  margin: 0.85rem 0 1.8rem;
  color: var(--health-muted);
  line-height: 1.7;
}

.auth-panel form {
  max-width: 430px;
}

.auth-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.auth-panel__actions > a {
  color: var(--health-green);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration-color: #b6d0bf;
  text-underline-offset: 3px;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2.5rem;
  background: radial-gradient(circle at 80% 18%, #d7eee4 0, transparent 38%), linear-gradient(145deg, #eff6ef, #e1eee5);
}

.auth-aside__plus {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: auto;
  place-items: center;
  border: 1px solid #ffffffc9;
  border-radius: 1rem;
  background: #ffffff9e;
  color: var(--health-green);
  font-size: 2rem;
  font-weight: 300;
}

.auth-aside p {
  max-width: 300px;
  margin: 0 0 1rem;
  color: var(--health-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.auth-aside > span:last-child {
  color: #789087;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.message-panel {
  max-width: 760px;
  margin: 1rem auto 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--health-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--health-shadow);
}

.message-panel > p {
  max-width: 540px;
  margin: 1rem 0 1.5rem;
  color: var(--health-muted);
  line-height: 1.7;
}

.message-panel__reference {
  overflow-wrap: anywhere;
}

.alert {
  border-radius: 0.7rem;
  font-size: 0.88rem;
}

.alert-success {
  border-color: #d5e9db;
  background: #eff8f1;
  color: #326b50;
}

.alert-danger {
  border-color: #eed8d4;
  background: #fbf0ee;
  color: #914b43;
}

.alert-info {
  border-color: #d8e8e7;
  background: #eff7f6;
  color: #3a6e69;
}

.health-hero {
  margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
  .site-nav-links {
    align-items: stretch !important;
    padding-top: 0.75rem;
  }

  .site-nav-account {
    padding: 0.45rem 0.8rem;
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  }
}

@media (max-width: 767.98px) {
  .site-navbar {
    min-height: 70px;
  }

  .site-main {
    padding-top: 1.4rem;
    padding-bottom: 3rem;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .page-heading > .btn {
    align-self: stretch;
  }

  .filter-panel__controls,
  .filter-panel__controls--wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel__controls > .form-control:first-child,
  .filter-control--month,
  .filter-control--year,
  .filter-control--status {
    max-width: none;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-view-toggle .btn {
    min-width: 0;
    flex: 1;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
  }

  .appointment-card {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .appointment-card .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .appointment-card__arrow {
    display: none;
  }

  .data-table__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .patient-context {
    align-items: flex-start;
  }

  .patient-context__date {
    align-self: center;
    font-size: 0.72rem;
    text-align: right;
  }

  .auth-page {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 0.5rem auto 2rem;
  }

  .auth-panel {
    padding: 2rem 1.4rem;
  }

  .auth-aside {
    min-height: 210px;
    padding: 1.5rem;
  }

  .auth-aside__plus {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1rem;
  }

  .auth-aside p {
    font-size: 1.55rem;
  }

  .site-footer__inner {
    min-height: 88px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .appointment-card {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .appointment-card .status-badge {
    grid-column: 2;
  }

  .form-actions > .btn {
    flex: 1;
  }
}
