/* ==========================================================================
   Guidism — Quanzhou First Hospital patient guidance web app
   Plain CSS, mobile-first, no build step.
   ========================================================================== */

:root {
  --blue: #2f6bff;
  --blue-600: #245eef;
  --blue-700: #184bd0;
  --blue-soft: #eaf1ff;
  --blue-soft-2: #dbe8ff;
  --navy: #0b1b3a;
  --text: #182642;
  --text-2: #344563;
  --muted: #6b7a93;
  --muted-2: #8b98ae;
  --line: #e6ebf4;
  --line-strong: #d6deec;
  --bg: #f4f7fc;
  --card: #ffffff;
  --green: #1f9d68;
  --green-soft: #e8f8f0;
  --purple: #7b5ce5;
  --orange: #e98a2b;
  --red: #dc3d43;
  --red-soft: #ffedee;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(20, 49, 114, 0.06);
  --shadow-md: 0 10px 28px rgba(20, 49, 114, 0.09);
  --shadow-lg: 0 22px 48px rgba(20, 49, 114, 0.14);
  --shadow-blue: 0 14px 26px rgba(47, 107, 255, 0.28);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text", "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(47, 107, 255, 0.14), transparent 60%),
    radial-gradient(800px 700px at 92% 92%, rgba(80, 180, 255, 0.12), transparent 55%),
    #e9eff9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.35);
  outline-offset: 2px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.icon--filled {
  stroke-width: 1.4;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(12, 33, 80, 0.16);
}

@supports not (height: 100dvh) {
  #app {
    height: 100vh;
  }
}

body.embed-mode {
  background: var(--bg);
  overflow: hidden;
}

body.embed-mode #app {
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 嵌入网站手机时，不再显示模拟状态栏、时间、信号和刘海。 */
body.embed-mode .statusbar {
  display: none;
}

body.embed-mode .page-head {
  padding-top: 22px;
}

body.embed-mode .appbar-wrap {
  padding-top: 16px;
}

body.embed-mode .auth-page {
  padding-top: 18px;
}

body.embed-mode .success-page {
  padding-top: 34px;
}

@media (min-width: 520px) {
  #app {
    height: calc(100dvh - 32px);
    min-height: 640px;
    margin: 16px auto;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
  }
}

.statusbar {
  flex: none;
  height: 36px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  user-select: none;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.statusbar__icons svg {
  height: 13px;
  width: auto;
}

#screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#screen::-webkit-scrollbar {
  display: none;
}

#screen.layout-chat {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.sheet-open #screen {
  overflow: hidden;
}

.screen-inner {
  padding-bottom: 22px;
  animation: screen-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Typography + common atoms
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 20px 0;
}

.page-head__copy {
  min-width: 0;
}

.page-head h1 {
  font-size: clamp(29px, 7.4vw, 35px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
}

.page-head__sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn .icon {
  width: 23px;
  height: 23px;
}

.bell-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-sizing: content-box;
}

.appbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98) 66%, rgba(244, 247, 252, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.appbar {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  gap: 4px;
  padding: 8px 16px 2px;
}

.appbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-side--right {
  justify-content: flex-end;
}

.circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ced7e7;
  box-shadow: 0 2px 6px rgba(20, 49, 114, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}

.circle-btn:active {
  transform: scale(0.92);
}

.circle-btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.appbar-title {
  text-align: center;
  font-size: clamp(16px, 4.3vw, 20.5px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
  overflow-wrap: break-word;
}

.appbar-title--compact {
  font-size: clamp(13.5px, 3.5vw, 16.5px);
  letter-spacing: -0.025em;
}

.appbar-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  padding: 2px 36px 13px;
}

.content-pad {
  padding-left: 20px;
  padding-right: 20px;
}

.stack-sm > * + * {
  margin-top: 10px;
}
.stack > * + * {
  margin-top: 16px;
}
.stack-lg > * + * {
  margin-top: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 20px 12px;
}

.section-title h2 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--navy);
}

.section-title--flush {
  margin-left: 0;
  margin-right: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 0;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(230, 235, 244, 0.8);
}

.card-pad {
  padding: 20px;
}

.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
  line-height: 1.45;
}
.small {
  font-size: 13px;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  white-space: nowrap;
}

.pill--green {
  color: var(--green);
  background: var(--green-soft);
}
.pill--purple {
  color: var(--purple);
  background: #f0ecff;
}
.pill--orange {
  color: var(--orange);
  background: #fff4e7;
}
.pill--red {
  color: var(--red);
  background: var(--red-soft);
}
.pill--gray {
  color: var(--muted);
  background: #f1f4f9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-blue);
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.975);
  filter: brightness(0.96);
}

.btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.btn--block {
  width: 100%;
}

.btn--secondary {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  min-height: 44px;
  padding: 10px 12px;
}

.btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.btn--danger {
  background: var(--red-soft);
  color: var(--red);
  box-shadow: none;
}

.btn--sm {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 13.5px;
  border-radius: 13px;
}

.btn--lg {
  min-height: 58px;
  border-radius: 18px;
  font-size: 16.5px;
}

.btn[disabled] {
  opacity: 0.45;
  box-shadow: none;
  pointer-events: none;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row > .btn {
  flex: 1;
}

.avatar {
  width: var(--avatar-size, 56px);
  height: var(--avatar-size, 56px);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef3fc;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--initials {
  background:
    radial-gradient(120% 120% at 25% 15%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(140deg, hsl(var(--avatar-hue), 82%, 84%), hsl(calc(var(--avatar-hue) + 32), 74%, 70%));
  color: #fff;
  font-weight: 800;
  font-size: calc(var(--avatar-size, 56px) * 0.3);
  letter-spacing: -0.03em;
  text-shadow: 0 1px 2px rgba(20, 50, 110, 0.18);
}

.profile-banner .avatar--initials,
.profile-hero .avatar--initials {
  background:
    radial-gradient(120% 120% at 25% 15%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(140deg, #8db6ff, #4f7cf6);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 16px 0;
}

.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c2ccdc;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}

/* --------------------------------------------------------------------------
   Tab bar
   -------------------------------------------------------------------------- */

.tabbar {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 4px;
  padding: 9px 22px calc(8px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(225, 232, 244, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 40;
}

body.auth-mode .tabbar {
  display: none;
}

.tab {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  color: #929db0;
}

.tab__icon {
  width: 54px;
  height: 33px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab__icon .icon {
  width: 22px;
  height: 22px;
}

.tab__label {
  font-size: 11.5px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.tab.is-active {
  color: var(--blue);
}

.tab.is-active .tab__icon {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(47, 107, 255, 0.30);
}

.tab.is-active .tab__label {
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Guide
   -------------------------------------------------------------------------- */

.guide-hero {
  margin: 18px 20px 0;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(135deg, #4d82ff 0%, #2f6bff 52%, #1d55e9 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(31, 87, 232, 0.24);
  position: relative;
  overflow: hidden;
}

.guide-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.08);
  right: -80px;
  bottom: -110px;
}

.guide-hero__eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.guide-hero h2 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.guide-hero p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 290px;
}

.guide-hero__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.guide-hero__actions .btn {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 12.5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.guide-hero__actions .btn--solid {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.guide-cards {
  padding: 4px 16px 0;
}

.guide-card {
  position: relative;
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: 27px;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, #5286ff 0%, #2f6bff 52%, #1c53e2 100%);
  box-shadow: 0 18px 34px rgba(31, 87, 232, 0.22);
  transition: transform 0.16s ease;
}

.guide-card:active {
  transform: scale(0.988);
}

.guide-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.06);
  right: -120px;
  top: -100px;
  pointer-events: none;
}

.guide-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.guide-badge .icon {
  width: 13px;
  height: 13px;
}

.guide-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 14px rgba(9, 32, 90, 0.16);
}

.guide-arrow .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.3;
}

.guide-card__main {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 7px;
}

.guide-illustration {
  width: 94px;
  height: 94px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.guide-illustration::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 17px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.guide-illustration .icon {
  width: 51px;
  height: 51px;
  stroke-width: 1.45;
  filter: drop-shadow(0 6px 10px rgba(9, 32, 90, 0.15));
}

.guide-illustration--robot .icon {
  width: 57px;
  height: 57px;
}

.guide-card h3 {
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.guide-card__main p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.82);
}

.guide-card__foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-card__foot button {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 0;
}

.guide-card__foot button:active {
  opacity: 0.7;
}

.guide-status {
  margin: 16px 20px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.guide-status__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.guide-status__icon .icon {
  width: 20px;
  height: 20px;
}

.guide-status strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.guide-status span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-page {
  min-height: 100%;
  padding: 6px 24px 32px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 320px at 15% 4%, rgba(47, 107, 255, 0.10), transparent 65%),
    radial-gradient(420px 380px at 100% 96%, rgba(84, 181, 255, 0.11), transparent 62%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::before {
  width: 240px;
  height: 240px;
  border: 36px solid rgba(47, 107, 255, 0.05);
  right: -130px;
  top: 150px;
}

.auth-page::after {
  width: 180px;
  height: 180px;
  background: rgba(47, 107, 255, 0.05);
  left: -100px;
  bottom: 40px;
}

.auth-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.auth-brand img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(10, 45, 130, 0.08));
}

.auth-brand h1 {
  margin-top: 8px;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
}

.auth-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 300px;
}

.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.auth-secure .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.auth-card {
  margin-top: 22px;
  background: #fff;
  border-radius: 28px;
  padding: 22px 20px 20px;
  box-shadow: 0 22px 50px rgba(20, 49, 114, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.field {
  display: block;
}

.field + .field {
  margin-top: 16px;
}

.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.field__label a,
.field__label button {
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 13px;
  border-radius: 15px;
  background: #f7f9fd;
  border: 1.5px solid var(--line);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.input-wrap:focus-within {
  border-color: rgba(47, 107, 255, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.09);
}

.input-wrap.is-error {
  border-color: rgba(220, 61, 67, 0.65);
  background: #fff8f8;
}

.input-wrap > .icon {
  width: 19px;
  height: 19px;
  color: var(--blue);
  flex: none;
}

.input-wrap input,
.input-wrap textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--navy);
  padding: 13px 0;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #9aa6b9;
  font-weight: 400;
}

.input-action {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--blue);
  border-radius: 50%;
}

.input-action .icon {
  width: 20px;
  height: 20px;
}

.field-error {
  margin-top: 6px;
  color: var(--red);
  font-size: 11.5px;
  line-height: 1.35;
  display: none;
}

.field-error.is-visible {
  display: block;
}

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

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.check__box .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
  stroke-width: 3;
}

.check input:checked + .check__box {
  background: var(--blue);
  border-color: var(--blue);
}

.check input:checked + .check__box .icon {
  opacity: 1;
}

.auth-submit {
  margin-top: 20px;
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-foot button {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-hint {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f6ff;
  border: 1px solid #e2eaff;
  color: #50617f;
  font-size: 11.5px;
  line-height: 1.45;
}

.demo-hint .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  margin-top: 1px;
}

.demo-hint strong {
  color: var(--navy);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 0;
  margin-top: 2px;
}

.auth-back .icon {
  width: 17px;
  height: 17px;
}

.auth-title {
  margin-top: 10px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
}

.auth-sub {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Appointment landing + search
   -------------------------------------------------------------------------- */

.find-card {
  margin: 18px 20px 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: calc(100% - 40px);
}

.find-card__art {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.find-card__art .icon {
  width: 49px;
  height: 49px;
  stroke-width: 1.4;
}

.find-card h2 {
  font-size: 18.5px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--navy);
}

.find-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.find-card .chev {
  margin-left: auto;
  color: #c3ccdd;
  flex: none;
}

.quick-depts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px;
}

.quick-dept {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.quick-dept:active {
  transform: scale(0.96);
}

.quick-dept__icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.quick-dept__icon .icon {
  width: 24px;
  height: 24px;
}

.quick-dept span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
}

.search-card {
  margin: 16px 20px 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  position: relative;
}

.search-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #f8fafe;
  padding: 0 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.search-field:focus-within {
  border-color: rgba(47, 107, 255, 0.6);
  background: #fff;
}

.search-field > .icon {
  width: 19px;
  height: 19px;
  color: var(--muted-2);
  flex: none;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13.5px;
  padding: 12px 0;
  color: var(--navy);
}

.search-field input::placeholder {
  color: #9aa6b9;
}

.search-results {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  display: none;
}

.search-results.is-visible {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 4px;
  text-align: left;
  border-radius: 10px;
}

.search-result:active {
  background: #f4f7fd;
}

.search-result__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.search-result__icon .icon {
  width: 18px;
  height: 18px;
}

.search-result strong {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
}

.search-result span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.search-empty {
  padding: 14px 4px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.ai-card {
  margin: 16px 20px 0;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.ai-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4d86ff, #2259e9);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 20px rgba(47, 107, 255, 0.28);
  flex: none;
}

.ai-orb .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.ai-card h3 {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.ai-card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.ai-bubble {
  margin-top: 13px;
  background: #f2f6ff;
  border-radius: 15px 15px 15px 4px;
  padding: 12px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.symptom-card {
  margin: 16px 20px 0;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.symptom-card h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.symptom-row {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.symptom-row .input-wrap {
  min-height: 50px;
  flex: 1;
}

.symptom-row .send-btn {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.24);
}

.symptom-row .send-btn .icon {
  width: 22px;
  height: 22px;
}

.symptom-note {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Departments
   -------------------------------------------------------------------------- */

.dept-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 14px;
}

.dept-search-row .search-field {
  flex: 1;
  background: #fff;
  min-height: 50px;
  border-radius: 15px;
}

.filter-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex: none;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.filter-btn .icon {
  width: 21px;
  height: 21px;
}

.dept-layout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 0 16px 10px;
}

.dept-rail {
  width: 90px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: sticky;
  top: 8px;
  max-height: calc(100dvh - 250px);
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.dept-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid transparent;
  padding: 11px 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.rail-item:active {
  transform: scale(0.96);
}

.rail-item .icon {
  width: 26px;
  height: 26px;
  color: var(--blue);
  stroke-width: 1.6;
}

.rail-item.is-active {
  background: var(--blue-soft);
  border-color: #cfe0ff;
  color: var(--blue);
}

.rail-item.is-active .icon {
  color: var(--blue);
}

.dept-main {
  flex: 1;
  min-width: 0;
}

.dept-category {
  margin-bottom: 14px;
}

.dept-category__head {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 0 10px;
}

.dept-category__bar {
  width: 4px;
  border-radius: 99px;
  background: var(--blue);
  flex: none;
  align-self: stretch;
  min-height: 36px;
}

.dept-category__head h2 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}

.dept-category__head p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}

.dept-card {
  width: 100%;
  text-align: left;
  border-radius: 19px;
  padding: 14px 13px;
  min-height: 82px;
  margin-bottom: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.15), transparent 50%),
    linear-gradient(130deg, #4c83ff 0%, #2f6bff 55%, #1f57e6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 12px 24px rgba(31, 87, 232, 0.19);
  transition: transform 0.16s ease;
}

.dept-card:active {
  transform: scale(0.985);
}

.dept-card__icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dept-card__icon .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.5;
}

.dept-card h3 {
  font-size: 15.5px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dept-card p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10.5px;
  line-height: 1.35;
}

.dept-card__meta {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
}

.dept-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dept-card__meta .icon {
  width: 11px;
  height: 11px;
}

.dept-empty {
  margin: 0 20px 20px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Dates + doctors + booking
   -------------------------------------------------------------------------- */

.date-panel {
  margin: 0 20px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
}

.date-panel h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.date-strip {
  margin-top: 12px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 76px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 11px 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.date-chip .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.date-chip strong {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  color: var(--navy);
}

.date-chip small {
  font-size: 10.5px;
  line-height: 1.2;
}

.date-chip span {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 2px;
}

.date-chip--available {
  background: #eef4ff;
  border-color: #d8e5ff;
}

.date-chip--available span {
  color: var(--blue);
}

.date-chip--selected {
  background: var(--blue);
  border-color: var(--blue);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 18px rgba(47, 107, 255, 0.24);
}

.date-chip--selected strong,
.date-chip--selected small,
.date-chip--selected span,
.date-chip--selected .icon {
  color: #fff;
}

.date-chip--unavailable {
  opacity: 0.58;
}

.date-chip--all {
  flex-basis: 82px;
  justify-content: center;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 18px rgba(47, 107, 255, 0.22);
}

.date-chip--all .icon {
  color: #fff;
}

.date-chip--all span {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.date-toggle {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.segmented {
  display: inline-flex;
  background: #f1f5fc;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.segmented__item {
  min-height: 35px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented__item.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.22);
}

.segmented__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin-left: 5px;
  font-size: 9.5px;
}

.doctor-list {
  padding: 18px 20px 0;
}

.doctor-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.doctor-list__head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.doctor-list__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  margin-bottom: 11px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.doctor-card:active {
  transform: scale(0.987);
}

.doctor-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3fc;
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h3 {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.doctor-card__title {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.doctor-stat {
  background: #f4f8ff;
  border-radius: 10px;
  padding: 6px 5px;
  text-align: center;
}

.doctor-stat strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--blue);
}

.doctor-stat span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.1;
  color: var(--muted);
  white-space: nowrap;
}

.doctor-card__go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 6px;
}

.doctor-card__go .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.detail-hero {
  margin: 4px 20px 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.doctor-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.doctor-profile .avatar {
  box-shadow: 0 8px 18px rgba(20, 49, 114, 0.12);
}

.doctor-profile h2 {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
}

.doctor-profile .doctor-title-pill {
  margin-top: 6px;
}

.doctor-profile__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.doctor-profile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.doctor-profile__meta .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.doctor-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.doctor-quad__item {
  background: #f5f8fe;
  border-radius: 13px;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #edf2fb;
}

.doctor-quad__item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}

.doctor-quad__item span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.1;
}

.doctor-quad__item .icon {
  width: 19px;
  height: 19px;
  color: var(--blue);
  margin: 0 auto 2px;
}

.duty-panel {
  margin: 16px 20px 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.duty-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.duty-head .icon {
  width: 21px;
  height: 21px;
  color: var(--blue);
}

.duty-head h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.slot {
  border-radius: 14px;
  border: 1.5px solid #edf1f8;
  background: #fff;
  padding: 11px 12px;
  text-align: left;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.slot strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

.slot span {
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 700;
  margin-top: 4px;
}

.slot__go {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.slot__go .icon {
  width: 15px;
  height: 15px;
}

.slot--unavailable {
  background: #f2f5fa;
  border-color: #eef2f8;
}

.slot--unavailable strong,
.slot--unavailable span {
  color: #9aa6b9;
}

.slot--unavailable .slot__go {
  background: #dfe5ef;
}

.slot--selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.booking-summary {
  margin: 18px 20px 0;
  background: linear-gradient(135deg, #f2f7ff, #eaf1ff);
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  padding: 16px;
}

.booking-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-summary__head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.booking-summary__body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.booking-summary__body .avatar {
  border: 2px solid #fff;
  box-shadow: 0 5px 12px rgba(20, 49, 114, 0.1);
}

.booking-summary__body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.booking-summary__body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(47, 107, 255, 0.1);
  font-size: 12.5px;
  color: var(--muted);
}

.booking-row:first-child {
  border-top: 0;
}

.booking-row strong {
  color: var(--navy);
  font-weight: 800;
  text-align: right;
}

.success-page {
  min-height: 100%;
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(400px 280px at 50% 20%, rgba(47, 107, 255, 0.12), transparent 60%),
    var(--bg);
}

.success-mark {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 32px rgba(47, 107, 255, 0.3);
  margin-top: 18px;
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.success-mark .icon {
  width: 46px;
  height: 46px;
  stroke-width: 2.5;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-page h1 {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
}

.success-page > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
}

.success-card {
  width: 100%;
  margin-top: 22px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 10px 18px;
  text-align: left;
}

.success-actions {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   AI triage
   -------------------------------------------------------------------------- */

.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px 14px;
  scrollbar-width: none;
}

.chat-scroll::-webkit-scrollbar {
  display: none;
}

.triage-hero {
  text-align: center;
  padding: 10px 24px 4px;
}

.triage-orb {
  width: 112px;
  height: 112px;
  margin: 6px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 35% 20%, rgba(255, 255, 255, 0.32), transparent 42%),
    linear-gradient(145deg, #4d86ff, #1d55e9);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 20px 38px rgba(31, 87, 232, 0.28);
  position: relative;
}

.triage-orb::before,
.triage-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 107, 255, 0.18);
}

.triage-orb::before {
  inset: -12px;
}

.triage-orb::after {
  inset: -24px;
  border-color: rgba(47, 107, 255, 0.08);
}

.triage-orb .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.25;
}

.triage-hero h2 {
  margin-top: 22px;
  font-size: 21px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--navy);
}

.triage-hero p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.quick-access {
  padding: 8px 4px 2px;
}

.quick-access__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  margin: 10px 2px 8px;
}

.symptom-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 9px;
  border-radius: 15px;
  background: linear-gradient(120deg, #4a82ff, #2f6bff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 9px 20px rgba(47, 107, 255, 0.19);
  text-align: left;
}

.symptom-pill .icon {
  width: 19px;
  height: 19px;
  opacity: 0.9;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.msg-row--user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.2);
}

.msg-avatar .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
}

.msg-avatar--user {
  background: #e8effc;
  color: var(--blue);
  box-shadow: none;
}

.bubble {
  max-width: calc(100% - 54px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.msg-row--user .bubble {
  background: #e9f0ff;
  border-color: #dce7ff;
  border-radius: 18px 4px 18px 18px;
  box-shadow: none;
}

.bubble strong {
  color: var(--blue);
  font-weight: 800;
}

.bubble .bubble-title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.bubble__divider {
  height: 1px;
  background: var(--line);
  margin: 11px 0;
}

.bubble__hint {
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 8px;
}

.bubble-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bubble-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #e8effd;
  padding: 9px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.bubble-action:active {
  background: #eaf1ff;
}

.bubble-action__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6eeff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.bubble-action__icon .icon {
  width: 16px;
  height: 16px;
}

.bubble-action > .icon {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--blue);
}

.bubble-suggestions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

.bubble-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #e8effd;
  padding: 9px 10px;
  font-size: 12px;
  text-align: left;
  color: var(--text);
}

.bubble-suggestion .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: none;
}

.bubble-suggestion .chev {
  margin-left: auto;
  color: var(--blue);
}

.bubble-suggestion .chev .icon {
  width: 18px;
  height: 18px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aabc8;
  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.composer {
  flex: none;
  padding: 8px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(244, 247, 252, 0), rgba(244, 247, 252, 0.96) 26%);
}

.composer__disclaimer {
  text-align: center;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.composer__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 5px 5px 5px 13px;
  box-shadow: var(--shadow-sm);
}

.composer__row:focus-within {
  border-color: rgba(47, 107, 255, 0.6);
}

.composer__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  padding: 11px 0;
  color: var(--navy);
}

.composer__row input::placeholder {
  color: #9aa6b9;
}

.composer__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex: none;
}

.composer__icon:active {
  background: var(--blue-soft);
}

.composer__icon .icon {
  width: 21px;
  height: 21px;
}

.composer__send {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 7px 14px rgba(47, 107, 255, 0.24);
}

.composer__send .icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Live navigation + map
   -------------------------------------------------------------------------- */

.nav-summary {
  padding: 4px 20px 0;
}

.nav-hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1.38;
  background: linear-gradient(160deg, #d9e5f7, #b7cae8);
  box-shadow: var(--shadow-md);
}

.nav-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 58, 0.16), transparent 24%, transparent 55%, rgba(8, 24, 58, 0.22));
  pointer-events: none;
}

.nav-live-pill {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 28, 62, 0.55);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.nav-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63f2b0;
  box-shadow: 0 0 0 3px rgba(99, 242, 176, 0.18);
}

.nav-floor-pill {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.nav-destination {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 17px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 10px 24px rgba(8, 24, 58, 0.18);
}

.nav-destination__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.nav-destination__icon .icon {
  width: 22px;
  height: 22px;
}

.nav-destination h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-destination p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.nav-destination__meta {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.nav-destination__meta strong {
  color: var(--navy);
  font-size: 12px;
}

.nav-mode {
  display: flex;
  justify-content: center;
  margin: 14px 20px 0;
}

.nav-steps {
  margin: 16px 20px 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 17px 16px;
}

.nav-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 17px;
}

.nav-step:last-child {
  padding-bottom: 0;
}

.nav-step::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 3px;
  width: 2px;
  background-image: linear-gradient(#b9cef7 55%, transparent 0);
  background-size: 2px 7px;
}

.nav-step:last-child::before {
  display: none;
}

.nav-step__icon {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  z-index: 1;
}

.nav-step__icon .icon {
  width: 20px;
  height: 20px;
}

.nav-step.is-current .nav-step__icon {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 15px rgba(47, 107, 255, 0.26);
}

.nav-step.is-done .nav-step__icon {
  background: var(--green-soft);
  color: var(--green);
}

.nav-step__copy {
  padding-top: 5px;
}

.nav-step__copy strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-step__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.nav-actions {
  margin: 16px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.nav-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}

.nav-action.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-action .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.nav-start {
  margin: 16px 20px 0;
}

.nav-instruction {
  margin: 16px 20px 0;
  background: linear-gradient(120deg, #4a82ff, #2f6bff);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-blue);
}

.nav-instruction__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  display: grid;
  place-items: center;
}

.nav-instruction__icon .icon {
  width: 26px;
  height: 26px;
}

.nav-instruction strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.nav-instruction span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.map-shell {
  margin: 6px 0 0;
  position: relative;
}

.level-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: #fff;
  border-radius: 17px;
  padding: 5px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.level-btn {
  width: 44px;
  height: 37px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  display: grid;
  place-items: center;
}

.level-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.map-canvas {
  width: 100%;
  height: 560px;
  background: #f8faff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-tag {
  cursor: pointer;
}

.map-tag rect {
  transition: fill 0.16s ease;
}

.map-tag:hover rect {
  fill: #fff;
}

.map-route {
  stroke-dasharray: 7 6;
  animation: dash 1.2s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -26;
  }
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 20px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.map-note {
  margin: 12px 20px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 10.5px;
}

.floor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 20px 12px;
}

.floor-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.floor-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.floor-pills {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.floor-pills button {
  width: 34px;
  height: 30px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
}

.floor-pills button.is-active {
  background: var(--blue);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process-cards {
  padding: 4px 20px 0;
}

.process-card {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 20px;
  margin-bottom: 16px;
}

.process-card h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.process-card > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.process-art {
  width: 128px;
  height: 128px;
  margin: 16px auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(100% 100% at 30% 20%, #fff, transparent 55%),
    #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.process-art .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.35;
}

.process-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.process-progress__bar {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #edf1f8;
  overflow: hidden;
}

.process-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.3s ease;
}

.progress-hero {
  margin: 4px 20px 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.progress-ring {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--progress, 0) * 1%), #eaf0fb 0);
  display: grid;
  place-items: center;
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.progress-copy {
  flex: 1;
}

.progress-copy strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 800;
}

.progress-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.steps {
  padding: 16px 20px 0;
}

.step-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 13px;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card--active {
  border-color: #cfe0ff;
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.12);
}

.step-card--done {
  background: linear-gradient(180deg, #f7fffb, #fff);
  border-color: #d8f2e6;
}

.step-card--locked {
  opacity: 0.68;
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #f1f5fd;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.step-num .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
}

.step-card--active .step-num {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 11px rgba(47, 107, 255, 0.25);
}

.step-card--done .step-num {
  background: var(--green);
  color: #fff;
}

.step-head__copy {
  flex: 1;
  min-width: 0;
}

.step-head h2 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.step-head p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.step-card--done .step-head p {
  display: none;
}

.step-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  margin-left: auto;
}

.step-done-badge .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.step-art {
  width: 102px;
  height: 102px;
  margin: 15px auto 12px;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.step-art .icon {
  width: 50px;
  height: 50px;
  stroke-width: 1.4;
}

.step-links {
  text-align: center;
  margin: 4px 0 12px;
}

.step-links button {
  display: block;
  width: 100%;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.45;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-card .btn {
  width: 100%;
}

.step-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  margin-top: 9px;
}

.step-inline .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: none;
}

.step-inline span {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.4;
}

.step-inline strong {
  color: var(--navy);
}

.instruction-list {
  margin-top: 10px;
}

.instruction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.instruction:first-child {
  border-top: 0;
}

.instruction__num {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.instruction strong {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 800;
}

.instruction span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f2f7ff;
  border: 1px solid #e1eaff;
  color: #50617f;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 12px;
}

.info-banner .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: none;
  margin-top: 1px;
}

.info-banner--warn {
  background: #fff8ec;
  border-color: #f8e7c8;
  color: #8a6428;
}

.info-banner--warn .icon {
  color: #d38a1f;
}

.feedback-prompt {
  margin: 4px 20px 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 19px;
}

.feedback-prompt h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.feedback-prompt p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */

.notif-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  scrollbar-width: none;
}

.notif-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: none;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.filter-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 7px 14px rgba(47, 107, 255, 0.22);
}

.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 8px;
}

.notif-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.notif-toolbar .icon {
  width: 15px;
  height: 15px;
}

.notif-list {
  padding: 0 20px;
}

.notif-card {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  gap: 11px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 13px 11px 13px 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.notif-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--notif-color, var(--blue));
}

.notif-card__icon {
  width: 58px;
  height: 62px;
  border-radius: 14px;
  background: var(--notif-bg, #f0f5ff);
  color: var(--notif-color, var(--blue));
  display: grid;
  place-items: center;
}

.notif-card__icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.notif-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--notif-bg, #f0f5ff);
  color: var(--notif-color, var(--blue));
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notif-card__top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notif-card__time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.notif-card h3 {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.25;
}

.notif-card p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-card__chev {
  color: #c1cbdb;
  display: grid;
  place-items: center;
}

.notif-card__chev .icon {
  width: 17px;
  height: 17px;
}

.notif-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  top: 14px;
  right: 28px;
}

.notif-card.is-read {
  opacity: 0.86;
}

.notif-card.is-read .notif-card__dot {
  display: none;
}

.notif-section-label {
  margin: 16px 2px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reminder-blue-card {
  border-radius: 20px;
  padding: 19px;
  color: #fff;
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(135deg, #4d86ff, #2f6bff 55%, #1d55e9);
  box-shadow: var(--shadow-blue);
}

.reminder-blue-card .pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.reminder-blue-card h3 {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.reminder-blue-card h3 .icon {
  width: 23px;
  height: 23px;
}

.reminder-blue-card p {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.reminder-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.reminder-option {
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.reminder-option .icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.reminder-option.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.reminder-option.is-active .icon {
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.calendar-dow {
  text-align: center;
  font-size: 9.5px;
  color: var(--muted-2);
  font-weight: 800;
  padding: 6px 0;
}

.calendar-day {
  position: relative;
  min-height: 38px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  display: grid;
  place-items: center;
}

.calendar-day:hover {
  background: #f3f7ff;
}

.calendar-day.is-today {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 13px rgba(47, 107, 255, 0.22);
}

.calendar-day i {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.calendar-day.is-today i {
  background: #fff;
}

/* --------------------------------------------------------------------------
   Personal center
   -------------------------------------------------------------------------- */

.profile-banner {
  margin: 4px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  width: calc(100% - 40px);
  text-align: left;
}

.profile-banner .avatar {
  box-shadow: 0 7px 16px rgba(47, 107, 255, 0.18);
}

.profile-banner__copy {
  flex: 1;
  min-width: 0;
}

.profile-banner h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.profile-banner p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.profile-banner .chev {
  color: #c1cbdb;
}

.menu-list {
  padding: 16px 20px 0;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.15s ease;
}

.menu-item:active {
  transform: scale(0.987);
}

.menu-item__icon {
  width: 47px;
  height: 47px;
  flex: none;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.menu-item__icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.6;
}

.menu-item__copy {
  flex: 1;
  min-width: 0;
}

.menu-item h3 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.menu-item p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.menu-item .chev {
  color: #c1cbdb;
  flex: none;
}

.menu-item .chev .icon {
  width: 18px;
  height: 18px;
}

.menu-item__badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 0 5px;
}

.profile-hero {
  margin: 4px 20px 0;
  padding: 22px 20px;
  border-radius: 26px;
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 50%),
    linear-gradient(135deg, #4d86ff, #2f6bff 55%, #1d55e9);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-blue);
}

.profile-hero .avatar {
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 22px rgba(8, 24, 58, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

.profile-hero .avatar--initials {
  color: #fff;
}

.profile-hero h1 {
  margin-top: 12px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.profile-hero p {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}

.profile-hero__stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-hero__stats div {
  text-align: center;
}

.profile-hero__stats strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.profile-hero__stats span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.7);
}

.detail-list {
  margin: 16px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.detail-row:first-child {
  border-top: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.toggle-row:first-child {
  border-top: 0;
}

.toggle-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 700;
}

.toggle-row span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #dbe2ee;
  padding: 3px;
  flex: none;
  transition: background 0.18s ease;
}

.switch::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20, 49, 114, 0.16);
  transition: transform 0.18s ease;
}

.switch.is-on {
  background: var(--blue);
}

.switch.is-on::after {
  transform: translateX(18px);
}

/* --------------------------------------------------------------------------
   Medical records
   -------------------------------------------------------------------------- */

.records-tabs {
  margin: 3px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}

.records-tab {
  flex: 1;
  min-height: 40px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.records-tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 13px rgba(47, 107, 255, 0.22);
}

.records-subtabs {
  margin: 12px 20px 0;
  display: flex;
  gap: 4px;
  background: #eef3fb;
  border-radius: 999px;
  padding: 4px;
}

.records-subtab {
  flex: 1;
  min-height: 34px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.records-subtab.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 3px 9px rgba(20, 49, 114, 0.08);
}

.med-hero {
  margin: 14px 20px 0;
  border-radius: 24px;
  padding: 17px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.7), transparent 50%),
    linear-gradient(150deg, #eaf2ff, #dfeaff);
  border: 1px solid #d8e6ff;
}

.med-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.med-hero__top span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.med-hero__top h2 {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.calendar-link .icon {
  width: 15px;
  height: 15px;
}

.med-next {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e6edfa;
  border-radius: 19px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 17px rgba(20, 49, 114, 0.06);
}

.med-next__copy {
  flex: 1;
}

.med-next__copy span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.med-next__copy strong {
  display: block;
  margin-top: 2px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.med-next__copy strong small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 2px;
}

.med-next__copy h3 {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.med-next__copy p {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.med-illustration {
  width: 67px;
  height: 67px;
  flex: none;
  border-radius: 19px;
  background: #edf4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.med-illustration .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.4;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9d8f2;
  padding: 0;
}

.dots button.is-active {
  background: var(--blue);
  width: 16px;
  border-radius: 99px;
}

.quick-add {
  margin: 18px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-add-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.quick-add-card__icon {
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.quick-add-card__icon .icon {
  width: 21px;
  height: 21px;
}

.quick-add-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 800;
}

.quick-add-card span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.3;
}

.quick-add-card .chev {
  margin-left: auto;
  color: #c1cbdb;
}

.quick-add-card .chev .icon {
  width: 15px;
  height: 15px;
}

.conditions-card {
  margin: 16px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 17px;
  box-shadow: var(--shadow-sm);
}

.conditions-card h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.condition-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.condition-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f1f5fd;
  color: var(--text-2);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
}

.condition-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.record-card {
  margin: 14px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

.record-doctor {
  display: flex;
  align-items: center;
  gap: 13px;
}

.record-doctor .avatar {
  border: 2px solid #fff;
  box-shadow: 0 5px 13px rgba(20, 49, 114, 0.10);
}

.record-doctor h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.record-doctor p {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.record-doctor p .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10.5px;
}

.record-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.record-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.record-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.record-action {
  flex: 1;
  min-height: 39px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.record-action .icon {
  width: 15px;
  height: 15px;
}

.record-action--muted {
  color: var(--muted);
  background: #f2f5fa;
}

.record-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.record-status--upcoming {
  background: var(--blue-soft);
  color: var(--blue);
}

.record-status--completed {
  background: var(--green-soft);
  color: var(--green);
}

.record-status--cancelled {
  background: #f2f5fa;
  color: var(--muted);
}

.payment-card {
  margin: 14px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.payment-icon {
  width: 70px;
  height: 70px;
  flex: none;
  border-radius: 19px;
  background: #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.payment-icon .icon {
  width: 37px;
  height: 37px;
  stroke-width: 1.4;
}

.payment-body {
  flex: 1;
  min-width: 0;
}

.payment-body h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.payment-amount {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.payment-amount .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.payment-due {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.payment-due .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.payment-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.payment-actions button {
  flex: 1;
  min-height: 37px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.payment-actions .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Communication / chat
   -------------------------------------------------------------------------- */

.search-list {
  padding: 2px 20px 0;
}

.search-list .search-field {
  background: #fff;
  min-height: 50px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.chat-list {
  padding: 14px 20px 0;
}

.chat-person {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.chat-person .avatar {
  width: 54px;
  height: 54px;
}

.chat-person__copy {
  flex: 1;
  min-width: 0;
}

.chat-person__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.chat-person h3 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.chat-person time {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.chat-person p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-person__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  align-self: center;
}

.ai-support {
  margin: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 17px;
  background: #eaf2ff;
  border: 1px solid #dbe7ff;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}

.ai-support .icon {
  width: 22px;
  height: 22px;
}

.ai-support .chev {
  margin-left: auto;
}

.ai-support .chev .icon {
  width: 17px;
  height: 17px;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-header-actions .circle-btn {
  background: #eef3fc;
  color: var(--blue);
}

.chat-page .appbar-wrap {
  flex: none;
}

.chat-date {
  text-align: center;
  color: var(--muted-2);
  font-size: 9.5px;
  margin: 10px 0 2px;
}

.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 10px;
}

.chat-bubble-row--user {
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 76%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.chat-bubble-row--user .chat-bubble {
  background: #e9f0ff;
  border-color: #dce7ff;
  border-radius: 16px 4px 16px 16px;
  box-shadow: none;
}

.chat-bubble time {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
  text-align: right;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3fc;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar--user {
  background: #e7effe;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.chat-avatar--user .icon {
  width: 16px;
  height: 16px;
}

.chat-feedback-link {
  display: block;
  margin: 14px auto 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-typing {
  width: 54px;
}

/* --------------------------------------------------------------------------
   Reminders / services / education
   -------------------------------------------------------------------------- */

.reminder-card {
  margin: 12px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.reminder-icon {
  width: 45px;
  height: 45px;
  flex: none;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.reminder-icon .icon {
  width: 23px;
  height: 23px;
}

.reminder-copy {
  flex: 1;
  min-width: 0;
}

.reminder-copy h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.reminder-copy p {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
}

.reminder-time {
  font-size: 10px;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.service-grid {
  padding: 4px 20px 0;
}

.service-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.service-card__icon .icon {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.service-card p {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}

.service-card .chev {
  margin-left: auto;
  color: #c1cbdb;
}

.faq-card {
  margin: 8px 20px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.edu-list {
  padding: 4px 20px 0;
}

.edu-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.edu-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #5b8bff, #2f6bff);
}

.edu-icon .icon {
  width: 29px;
  height: 29px;
}

.edu-icon--green {
  background: linear-gradient(150deg, #4fc39a, #1f9d68);
}
.edu-icon--orange {
  background: linear-gradient(150deg, #f4b25b, #e98a2b);
}
.edu-icon--purple {
  background: linear-gradient(150deg, #a78bfa, #7b5ce5);
}

.edu-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}

.edu-card p {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}

.edu-meta {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted-2);
}

.article-hero {
  margin: 4px 20px 0;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, #4d86ff, #2f6bff 55%, #1d55e9);
  box-shadow: var(--shadow-blue);
}

.article-hero .pill {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.article-hero h1 {
  margin-top: 11px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.article-hero p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

.article-body {
  padding: 20px 22px 0;
}

.article-body p {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.article-tip {
  margin: 4px 20px 0;
  padding: 14px;
  border-radius: 16px;
  background: #f2f7ff;
  border: 1px solid #e1eaff;
  color: #50617f;
  font-size: 11.5px;
  line-height: 1.55;
  display: flex;
  gap: 9px;
}

.article-tip .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: none;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Sheets, toast, modal bits
   -------------------------------------------------------------------------- */

#sheet-root {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

#sheet-root.is-open {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 35, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}

#sheet-root.is-visible .sheet-backdrop {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 89%;
  background: #fff;
  border-radius: 26px 26px 0 0;
  transform: translateY(102%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 50px rgba(4, 14, 35, 0.22);
  padding-bottom: calc(12px + var(--safe-bottom));
  overflow: hidden;
}

#sheet-root.is-visible .sheet {
  transform: translateY(0);
}

.sheet--wide {
  max-height: 94%;
}

.sheet-grab {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d7deea;
  margin: 8px auto 2px;
  flex: none;
}

.sheet-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 12px;
}

.sheet-head h2 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy);
}

.sheet-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.sheet-close {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: #f1f4fa;
  color: var(--text-2);
  display: grid;
  place-items: center;
}

.sheet-close .icon {
  width: 17px;
  height: 17px;
}

.sheet-body {
  overflow-y: auto;
  padding: 0 20px 14px;
  scrollbar-width: none;
}

.sheet-body::-webkit-scrollbar {
  display: none;
}

.sheet-copy h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.sheet-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sheet-copy .reminder-blue-card p,
.reminder-blue-card p {
  color: rgba(255, 255, 255, 0.88);
}

.reminder-blue-card strong {
  color: #fff;
}

.info-rows {
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 3px 14px;
  margin-top: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.info-row:first-child {
  border-top: 0;
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  color: var(--navy);
  font-weight: 800;
  text-align: right;
}

.sheet-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.rating-row > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  margin-right: 4px;
}

.rating-star {
  width: 31px;
  height: 31px;
  color: #d6deeb;
  padding: 0;
  display: grid;
  place-items: center;
}

.rating-star.is-filled {
  color: var(--blue);
}

.rating-star .icon {
  width: 27px;
  height: 27px;
}

.rating-hint {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.suggestion-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 10.5px;
  font-weight: 700;
}

.suggestion-chip.is-active {
  background: var(--blue-soft);
  border-color: #cfe0ff;
  color: var(--blue);
}

.feedback-textarea {
  margin-top: 13px;
  position: relative;
}

.feedback-textarea textarea {
  width: 100%;
  min-height: 106px;
  resize: none;
  border: 1.5px solid var(--line);
  background: #f8fafe;
  border-radius: 15px;
  padding: 13px 14px 44px;
  font-size: 12.5px;
  line-height: 1.5;
  outline: 0;
  color: var(--navy);
}

.feedback-textarea textarea:focus {
  border-color: rgba(47, 107, 255, 0.6);
  background: #fff;
}

.feedback-textarea .mic {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.feedback-textarea .mic .icon {
  width: 17px;
  height: 17px;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.method {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.method__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.method__icon .icon {
  width: 17px;
  height: 17px;
}

.method__check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #fff;
}

.method__check .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
  stroke-width: 3;
}

.method.is-active {
  border-color: var(--blue);
  background: #f5f8ff;
}

.method.is-active .method__check {
  background: var(--blue);
  border-color: var(--blue);
}

.method.is-active .method__check .icon {
  opacity: 1;
}

.sheet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f7f9fd;
  font-size: 12px;
  color: var(--muted);
}

.sheet-total strong {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

.sheet-note {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  margin-top: 9px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#toast-root {
  position: absolute;
  left: 50%;
  top: 112px;
  z-index: 120;
  transform: translate(-50%, -8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: max-content;
  max-width: calc(100% - 40px);
}

#toast-root.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 27, 58, 0.94);
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(4, 14, 35, 0.3);
  backdrop-filter: blur(8px);
}

.toast__icon {
  color: #7fe3b3;
  display: grid;
  place-items: center;
}

.toast__icon .icon {
  width: 17px;
  height: 17px;
}

.toast--error .toast__icon {
  color: #ff9b9b;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: 38px 24px;
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 23px;
  background: #eef4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.empty-state__icon .icon {
  width: 36px;
  height: 36px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.empty-state .btn {
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}

.bottom-space {
  height: 18px;
}

.no-select {
  user-select: none;
}

.fade-in {
  animation: fade-in 0.25s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
