:root {
  color-scheme: light;
  --site-blue: #134074;
  --site-blue-dark: #0b2545;
  --site-ink: #102a43;
  --site-body: #405d7e;
  --site-muted: #64748b;
  --site-canvas: #f7f9fc;
  --site-soft: #eef3f8;
  --site-strong: #e3eaf3;
  --site-line: #dce6f2;
  --site-success: #05b169;
  --site-danger: #cf202f;
  --site-radius: 12px;
  --site-pill: 100px;
  --site-glass: rgba(255, 255, 255, .68);
  --site-glass-strong: rgba(255, 255, 255, .82);
  --site-glass-line: rgba(255, 255, 255, .72);
  --site-shadow: 0 24px 70px rgba(19, 64, 116, .12);
  --site-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .95);

  /* Legacy page aliases keep older inline components on the shared palette. */
  --ink: var(--site-ink);
  --navy: var(--site-ink);
  --muted: var(--site-body);
  --line: var(--site-line);
  --paper: var(--site-canvas);
  --surface: var(--site-canvas);
  --soft: var(--site-soft);
  --strong: var(--site-strong);
  --coral: var(--site-blue);
  --accent: var(--site-blue);
  --danger: var(--site-danger);
}

/* Final brand overrides intentionally come after legacy component rules. */
.nav-pill-btn, .button-pill-cta, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 48%),
    linear-gradient(135deg, #134074, #134074) !important;
  border-color: rgba(19, 64, 116, .38) !important;
  color: #fff !important;
  text-shadow: none !important;
}

.nav-pill-btn:hover, .button-pill-cta:hover, .btn.primary:hover,
.button.primary:hover, button.primary:hover, input[type="submit"]:hover,
input[type="button"]:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 48%),
    linear-gradient(135deg, #1a5b99, #0b2545) !important;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 4% 8%, rgba(142, 166, 132, .28), transparent 30rem),
    radial-gradient(circle at 96% 10%, rgba(19, 64, 116, .24), transparent 30rem),
    radial-gradient(circle at 52% 100%, rgba(164, 177, 147, .16), transparent 36rem),
    #eef3f8;
}
body {
  position: relative;
  color: var(--site-body) !important;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(231, 232, 221, .3)),
    transparent !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(12px);
  opacity: .55;
}
body::before {
  top: 18%;
  left: -12rem;
  background: radial-gradient(circle, rgba(137, 160, 125, .24), transparent 68%);
}
body::after {
  right: -12rem;
  bottom: 8%;
  background: radial-gradient(circle, rgba(19, 64, 116, .2), transparent 68%);
}
h1, h2, h3, h4, h5, h6 { color: var(--site-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: var(--site-blue); }
a:hover { color: var(--site-blue-dark); }

header, .topbar, .site-header, .page-header {
  border-color: var(--site-line) !important;
}
.topbar, .site-header, .page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22)),
    linear-gradient(135deg, rgba(225, 235, 248, .24), rgba(225, 235, 248, .16)) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  box-shadow:
    var(--site-shadow-inset),
    0 16px 42px rgba(19, 64, 116, .14),
    0 0 22px rgba(137, 160, 125, .12),
    inset 0 2px 0 rgba(255, 255, 255, .56),
    inset 0 -2px 7px rgba(93, 105, 77, .09) !important;
  backdrop-filter: saturate(185%) blur(24px);
  -webkit-backdrop-filter: saturate(185%) blur(24px);
}
.topbar::before, .site-header::before, .page-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .98), transparent);
  content: "";
  pointer-events: none;
}
.topbar::after, .site-header::after, .page-header::after {
  position: absolute;
  z-index: -1;
  top: 8px;
  left: 12%;
  width: 42%;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}
.topbar .status, .site-header .status, .page-header .status {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .2)) !important;
  border: 1px solid rgba(255, 255, 255, .84) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -2px 5px rgba(93, 105, 77, .09),
    0 8px 20px rgba(19, 64, 116, .09) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-bar {
  position: sticky;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .2)),
    linear-gradient(135deg, rgba(225, 235, 248, .2), rgba(225, 235, 248, .13)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .88) !important;
  box-shadow:
    var(--site-shadow-inset),
    0 14px 38px rgba(19, 64, 116, .14),
    0 0 24px rgba(137, 160, 125, .12),
    0 2px 8px rgba(19, 64, 116, .07),
    inset 0 2px 0 rgba(255, 255, 255, .58),
    inset 0 3px 7px rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(19, 64, 116, .16),
    inset 0 -3px 8px rgba(19, 64, 116, .09),
    inset 0 -5px 12px rgba(80, 94, 67, .05) !important;
  backdrop-filter: saturate(190%) blur(26px);
  -webkit-backdrop-filter: saturate(190%) blur(26px);
}
.nav-bar::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .98), transparent);
  content: "";
  pointer-events: none;
}
.nav-bar::after {
  position: absolute;
  z-index: -1;
  top: 8px;
  left: 12%;
  width: 46%;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  content: "";
  filter: blur(10px);
  transform: rotate(-2deg);
  pointer-events: none;
}

main, .shell, .app-shell, .page-shell, .content, .container {
  color: var(--site-body);
}
.card, .panel, .surface, .content-card, article, section.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .42)) !important;
  border: 1px solid var(--site-glass-line) !important;
  border-radius: var(--site-radius) !important;
  box-shadow:
    var(--site-shadow-inset),
    var(--site-shadow),
    0 0 20px rgba(137, 160, 125, .1) !important;
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}
.card::before, .panel::before, .surface::before, .content-card::before,
article::before, section.card::before {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  content: "";
  pointer-events: none;
}

button, .button, .btn, .continue, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--site-pill) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 48%),
    linear-gradient(135deg, rgba(47, 126, 114, .96), rgba(23, 91, 83, .94)) !important;
  color: #fff !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 600;
  box-shadow:
    0 10px 22px rgba(19, 64, 116, .18),
    0 2px 5px rgba(33, 59, 52, .1),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(12, 67, 61, .22);
  text-shadow: 0 1px 2px rgba(12, 53, 48, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button::before, .button::before, .btn::before, .continue::before,
.nav-pill-btn::before, .button-pill-cta::before,
input[type="submit"]::before, input[type="button"]::before {
  position: absolute;
  z-index: -1;
  top: -60%;
  left: 8%;
  width: 84%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}
button:hover, .button:hover, .btn:hover, .continue:hover,
.nav-pill-btn:hover, .button-pill-cta:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .46), transparent 48%),
    linear-gradient(135deg, rgba(57, 139, 125, .98), rgba(27, 105, 95, .96)) !important;
  box-shadow:
    0 13px 26px rgba(19, 64, 116, .24),
    0 3px 8px rgba(33, 59, 52, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(12, 67, 61, .2);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

/* Video controls intentionally stay compact and dark over the media surface. */
.lucide-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.patient-video-tool {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  background: rgba(10, 11, 13, .65) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 11px !important;
}
.patient-video-tool .lucide-icon {
  width: 14px;
  height: 14px;
}
.patient-video-tool::before {
  display: none;
}
.patient-video-tool:hover,
.patient-video-tool:focus-visible {
  background: rgba(255, 255, 255, .2) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  box-shadow: none !important;
}
button:active, .button:active, .btn:active, .continue:active,
.nav-pill-btn:active, .button-pill-cta:active,
input[type="submit"]:active, input[type="button"]:active {
  box-shadow:
    0 5px 12px rgba(19, 64, 116, .16),
    inset 0 2px 5px rgba(12, 67, 61, .18),
    inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateY(0) scale(.985);
}
button.secondary, .button.secondary, .btn.secondary, .button-pill-secondary,
.secondary {
  color: var(--site-blue) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2)) !important;
  border-color: rgba(255, 255, 255, .86) !important;
  box-shadow:
    0 10px 24px rgba(19, 64, 116, .1),
    var(--site-shadow-inset),
    inset 0 -1px 0 rgba(104, 116, 88, .14);
  text-shadow: none;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
button.secondary:hover, .button.secondary:hover, .btn.secondary:hover,
.button-pill-secondary:hover, .secondary:hover {
  color: var(--site-blue-dark) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(225, 235, 248, .5)) !important;
}

/* Segmented clinical selectors use aria-pressed for their selected state. */
.sex-buttons button {
  color: var(--site-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2)) !important;
  border-color: rgba(255, 255, 255, .86) !important;
  border-radius: var(--site-pill) !important;
  box-shadow:
    0 10px 24px rgba(19, 64, 116, .1),
    var(--site-shadow-inset),
    inset 0 -1px 0 rgba(104, 116, 88, .14) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.sex-buttons button[aria-pressed="true"] {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 48%),
    linear-gradient(135deg, rgba(47, 126, 114, .96), rgba(23, 91, 83, .94)) !important;
  border-color: rgba(255, 255, 255, .62) !important;
  box-shadow:
    0 10px 22px rgba(19, 64, 116, .18),
    0 2px 5px rgba(33, 59, 52, .1),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(12, 67, 61, .22) !important;
}
.sex-buttons button:hover,
.sex-buttons button:focus-visible {
  border-color: var(--site-blue) !important;
  box-shadow:
    0 0 0 3px rgba(19, 64, 116, .12),
    0 10px 22px rgba(19, 64, 116, .16),
    var(--site-shadow-inset) !important;
}

input, textarea, select {
  color: var(--site-ink) !important;
  background: rgba(255, 255, 255, .64) !important;
  border: 1px solid var(--site-glass-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--site-shadow-inset);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(19, 64, 116, .16) !important;
  border-color: var(--site-blue) !important;
}
input:hover, textarea:hover, select:hover {
  background: rgba(255, 255, 255, .8) !important;
  border-color: rgba(19, 64, 116, .3) !important;
}
label { color: var(--site-body); }

.status, .badge, .pill {
  border-radius: var(--site-pill) !important;
  border-color: var(--site-line) !important;
  background: var(--site-soft) !important;
  color: var(--site-ink) !important;
}
.eyebrow { color: var(--site-blue) !important; }
.muted, .helper, .builder-note { color: var(--site-muted); }
.lead { color: var(--site-body) !important; }
.small, .footer { color: var(--site-muted) !important; }
.section { border-color: var(--site-line) !important; }
.btn {
  color: var(--site-ink) !important;
}
.btn.primary {
  color: #fff !important;
}
.nav-pill-primary {
  color: #fff !important;
}
button.danger-button, .button.danger-button {
  color: var(--site-danger) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .16)),
    linear-gradient(135deg, rgba(255, 232, 235, .78), rgba(255, 190, 198, .44)) !important;
  border-color: rgba(207, 32, 47, .34) !important;
  text-shadow: none;
  box-shadow:
    0 10px 24px rgba(145, 30, 45, .14),
    var(--site-shadow-inset),
    inset 0 -1px 0 rgba(145, 30, 45, .14) !important;
}
button.danger-button:hover, .button.danger-button:hover {
  color: #a31827 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .2)),
    linear-gradient(135deg, rgba(255, 220, 225, .9), rgba(255, 170, 181, .56)) !important;
  border-color: rgba(207, 32, 47, .52) !important;
  box-shadow:
    0 14px 30px rgba(145, 30, 45, .2),
    var(--site-shadow-inset),
    inset 0 -1px 0 rgba(145, 30, 45, .12) !important;
}

/* Keep the UPI deep-link consistent with the shared liquid-glass controls. */
.upi-app-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--site-blue) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .22)),
    linear-gradient(135deg, rgba(225, 235, 248, .56), rgba(225, 235, 248, .34)) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  border-radius: var(--site-pill) !important;
  box-shadow:
    0 10px 24px rgba(19, 64, 116, .12),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    inset 0 -2px 5px rgba(93, 105, 77, .1) !important;
  text-shadow: none;
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
}
.upi-app-link::before {
  position: absolute;
  z-index: -1;
  top: -60%;
  left: 8%;
  width: 84%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}
.upi-app-link:hover,
.upi-app-link:focus-visible {
  color: var(--site-blue-dark) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .32)),
    linear-gradient(135deg, rgba(225, 235, 248, .72), rgba(225, 235, 248, .46)) !important;
  border-color: rgba(255, 255, 255, .98) !important;
  box-shadow:
    0 14px 30px rgba(19, 64, 116, .15),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -2px 6px rgba(93, 105, 77, .12) !important;
  transform: translateY(-2px);
}

.nav-pill-btn:hover, .button-pill-cta:hover {
  color: #fff !important;
}

table { border-color: var(--site-line); }
th { color: var(--site-ink); background: var(--site-soft); }
td { border-color: var(--site-line); }

footer {
  color: var(--site-muted);
  border-color: var(--site-line) !important;
  background: var(--site-glass-strong) !important;
  box-shadow: var(--site-shadow-inset);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

/* Keep the public palette on the canonical navy and cool-neutral colors. */
:root {
  --site-blue: #134074;
  --site-blue-dark: #0b2545;
  --site-success: #134074;
  --site-canvas: #f7f9fc;
  --site-soft: #eef3f8;
  --site-strong: #e3eaf3;
  --site-line: #dce6f2;
  --site-glass-line: rgba(19, 64, 116, .2);
  --site-shadow: 0 24px 70px rgba(19, 64, 116, .14);
  --coral: #134074;
  --accent: #134074;
}

html {
  background:
    radial-gradient(circle at 5% 8%, rgba(19, 64, 116, .28), transparent 30rem),
    radial-gradient(circle at 94% 12%, rgba(91, 53, 135, .16), transparent 30rem),
    radial-gradient(circle at 52% 100%, rgba(19, 64, 116, .14), transparent 36rem),
    #f7f9fc;
}

body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(225, 235, 248, .34)),
    transparent !important;
}

body::before { background: radial-gradient(circle, rgba(19, 64, 116, .2), transparent 68%); }
body::after { background: radial-gradient(circle, rgba(91, 53, 135, .14), transparent 68%); }
a { color: #134074; }
a:hover { color: #0b2545; }

.topbar, .site-header, .page-header, .nav-bar {
  background:
    linear-gradient(135deg, rgba(247, 249, 252, .86), rgba(225, 235, 248, .62)),
    linear-gradient(90deg, rgba(19, 64, 116, .12), rgba(91, 53, 135, .08)) !important;
  box-shadow: var(--site-shadow-inset), 0 16px 42px rgba(19, 64, 116, .14),
    0 0 22px rgba(19, 64, 116, .14) !important;
}

.card, .panel, .surface, .content-card, article, section.card {
  box-shadow: var(--site-shadow-inset), var(--site-shadow),
    0 0 20px rgba(19, 64, 116, .1) !important;
}

button, .button, .btn, .continue, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 48%),
    linear-gradient(135deg, #134074, #134074) !important;
  box-shadow: 0 10px 22px rgba(19, 64, 116, .24),
    0 2px 5px rgba(19, 64, 116, .12),
    inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

button:hover, .button:hover, .btn:hover, .continue:hover,
.nav-pill-btn:hover, .button-pill-cta:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 48%),
    linear-gradient(135deg, #1a5b99, #0b2545) !important;
}

/* Deep glass footer with a broad, layered bevel rather than a flat panel. */
footer.footer-light {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(239, 239, 228, .46) 38%, rgba(222, 228, 211, .5) 100%),
    linear-gradient(110deg, rgba(218, 228, 207, .42), rgba(225, 235, 248, .26)) !important;
  box-shadow:
    0 18px 45px rgba(19, 64, 116, .12),
    0 3px 10px rgba(19, 64, 116, .07),
    0 0 22px rgba(137, 160, 125, .1),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(132, 142, 111, .2) !important;
  backdrop-filter: saturate(135%) blur(28px);
  -webkit-backdrop-filter: saturate(135%) blur(28px);
}

footer.footer-light::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 25px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(300deg, rgba(145, 163, 126, .1), transparent 34%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .72),
    inset 0 -1px 2px rgba(94, 105, 76, .12);
  pointer-events: none;
}

footer.footer-light > * {
  position: relative;
  z-index: 1;
}

/* Compact public-page link bars use the same polished glass treatment at a smaller scale. */
footer.footer:not(.footer-light) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 24px !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(240, 239, 229, .44) 44%, rgba(224, 228, 215, .48)),
    linear-gradient(110deg, rgba(218, 228, 207, .36), rgba(225, 235, 248, .22)) !important;
  box-shadow:
    0 12px 28px rgba(19, 64, 116, .09),
    0 0 18px rgba(137, 160, 125, .08),
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(132, 142, 111, .18) !important;
  backdrop-filter: saturate(130%) blur(22px);
  -webkit-backdrop-filter: saturate(130%) blur(22px);
}

footer.footer:not(.footer-light)::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 17px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .62),
    inset 0 -1px 2px rgba(94, 105, 76, .1);
  pointer-events: none;
}

footer.footer:not(.footer-light) > * {
  position: relative;
  z-index: 1;
}

.glass, .glass-surface {
  background: var(--site-glass) !important;
  border: 1px solid var(--site-glass-line) !important;
  box-shadow:
    var(--site-shadow-inset),
    var(--site-shadow),
    0 0 20px rgba(137, 160, 125, .1) !important;
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

/* Patient sign-in dialog: a translucent layer over the page rather than a flat card. */
.modal-overlay {
  background:
    linear-gradient(135deg, rgba(25, 40, 68, .42), rgba(88, 104, 138, .28)),
    rgba(25, 31, 40, .28) !important;
}
.login-modal-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .46)) !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  border-radius: 24px !important;
  box-shadow:
    var(--site-shadow-inset),
    0 30px 80px rgba(31, 48, 78, .28),
    0 8px 24px rgba(31, 48, 78, .14) !important;
  backdrop-filter: saturate(155%) blur(24px);
  -webkit-backdrop-filter: saturate(155%) blur(24px);
}
.login-modal-card::before {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .98), transparent);
  content: "";
  pointer-events: none;
}

/* Page-specific controls keep the same glass treatment despite local styles. */
.nav-pill-btn,
.button-pill-cta {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 48%),
    linear-gradient(135deg, rgba(47, 126, 114, .96), rgba(23, 91, 83, .94)) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  box-shadow:
    0 10px 22px rgba(19, 64, 116, .18),
    0 2px 5px rgba(33, 59, 52, .1),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(12, 67, 61, .22) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.button-pill-secondary,
.continue-consult-btn,
.google-signin-btn,
.patient-login-icon,
.modal-close-btn {
  color: var(--site-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2)) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  box-shadow:
    0 10px 24px rgba(19, 64, 116, .1),
    var(--site-shadow-inset),
    inset 0 -1px 0 rgba(104, 116, 88, .14) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-pill-btn:hover,
.button-pill-cta:hover {
  color: #fff !important;
}
.button-pill-secondary:hover,
.continue-consult-btn:hover,
.google-signin-btn:hover,
.patient-login-icon:hover,
.modal-close-btn:hover {
  color: var(--site-blue-dark) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(225, 235, 248, .5)) !important;
  border-color: rgba(19, 64, 116, .32) !important;
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .site-header, .page-header, .nav-bar, .card, .panel, .surface,
  .content-card, article, section.card, footer, .glass, .glass-surface {
    background: var(--site-canvas) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar .status, .site-header .status, .page-header .status {
    background: var(--site-canvas) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .modal-overlay {
    background: rgba(25, 31, 40, .48) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .login-modal-card {
    background: var(--site-canvas) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-pill-btn, .button-pill-cta, .button-pill-secondary,
  .continue-consult-btn, .google-signin-btn, .patient-login-icon,
  .modal-close-btn {
    background: var(--site-canvas) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body::before, body::after { display: none; }
}

/* Final navy overrides after all legacy component rules. */
.nav-pill-btn, .button-pill-cta, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 48%), linear-gradient(135deg, #134074, #134074) !important;
  border-color: rgba(19, 64, 116, .38) !important;
}
.nav-pill-btn:hover, .button-pill-cta:hover, .btn.primary:hover,
.button.primary:hover, button.primary:hover, input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 48%), linear-gradient(135deg, #1a5b99, #0b2545) !important;
}

/* Navy brand light palette. */
:root {
  color-scheme: light;
  --colors-primary: #134074;
  --colors-primary-active: #0b2545;
  --colors-primary-disabled: #9ab2cf;
  --colors-accent-yellow: #9fc5ff;
  --colors-canvas: #f7f9fc;
  --colors-surface-soft: #eef3f8;
  --colors-surface-strong: #e3eaf3;
  --colors-surface-dark: #102a43;
  --colors-surface-dark-elevated: #162e4b;
  --colors-hairline: rgba(19, 64, 116, .18);
  --colors-hairline-soft: rgba(19, 64, 116, .1);
  --colors-ink: #102a43;
  --colors-body: #405d7e;
  --colors-body-strong: #102a43;
  --colors-muted: #64748b;
  --colors-muted-soft: #8494aa;
  --colors-on-primary: #fff;
  --colors-on-dark: #f1f6ff;
  --colors-on-dark-soft: #c3d2e5;
  --site-blue: #134074;
  --site-blue-dark: #0b2545;
  --site-ink: #102a43;
  --site-body: #405d7e;
  --site-muted: #64748b;
  --site-canvas: #f7f9fc;
  --site-soft: #eef3f8;
  --site-strong: #e3eaf3;
  --site-line: rgba(19, 64, 116, .18);
  --site-success: #3f805c;
  --site-danger: #b93838;
  --site-glass: rgba(247, 249, 252, .88);
  --site-glass-strong: rgba(247, 249, 252, .97);
  --site-glass-line: rgba(19, 64, 116, .16);
  --site-shadow: 0 20px 54px rgba(19, 64, 116, .12);
  --site-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .86);
  --ink: var(--site-ink);
  --navy: var(--site-ink);
  --muted: var(--site-body);
  --line: var(--site-line);
  --paper: var(--site-canvas);
  --surface: var(--site-canvas);
  --soft: var(--site-soft);
  --strong: var(--site-strong);
  --coral: var(--site-blue);
  --accent: var(--site-blue);
}

html {
  overflow-x: clip;
  min-height: 100%;
  background:
    radial-gradient(ellipse 82rem 58rem at 50% 16%, rgba(19, 64, 116, .14), transparent 72%),
    radial-gradient(ellipse 72rem 64rem at 92% 44%, rgba(122, 67, 158, .09), transparent 74%),
    #f7f9fc !important;
  background-attachment: fixed !important;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  color: var(--site-body) !important;
  background:
    radial-gradient(ellipse 70rem 48rem at 52% 16%, rgba(19, 64, 116, .055), transparent 76%),
    radial-gradient(ellipse 64rem 58rem at 92% 70%, rgba(122, 67, 158, .04), transparent 76%),
    transparent !important;
  color-scheme: light;
}

body::before {
  background: radial-gradient(circle, rgba(19, 64, 116, .16), transparent 68%) !important;
  opacity: .65 !important;
}

body::after {
  background: radial-gradient(circle, rgba(117, 72, 158, .08), transparent 68%) !important;
  opacity: .58 !important;
}

h1, h2, h3, h4, h5, h6, th, strong, dt, summary,
.brand-title, .nav-bar, .topbar, .site-header, .page-header {
  color: var(--site-ink) !important;
}

p, li, label, dd, .lead, .small, .muted, .helper, .builder-note,
.footer, .section-intro, .eyebrow {
  color: var(--site-body) !important;
}

a, a:visited { color: #134074 !important; }
a:hover { color: #0b2545 !important; }

header, .topbar, .site-header, .page-header, .nav-bar,
footer, footer.footer-light, footer.footer:not(.footer-light) {
  color: var(--site-body) !important;
  background: rgba(247, 249, 252, .9) !important;
  border-color: var(--site-glass-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 36px rgba(19, 64, 116, .12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card, .panel, .surface, .content-card, article, section.card,
.glass, .glass-surface, .mode-card, .medication-builder,
.quick-actions, .verification, .india-references, .form-help,
.faq-item, .faq-card, .trust-card, .service-card, .credential,
.timing-banner, .notice, .scope-band, .vitals-section,
.verification-band, .portrait-badge-overlay {
  color: var(--site-body) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(225, 235, 248, .94)) !important;
  border-color: rgba(19, 64, 116, .14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 16px 38px rgba(19, 64, 116, .1) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

input, textarea, select, .form-control {
  color: #102a43 !important;
  background: #ffffff !important;
  border-color: rgba(19, 64, 116, .22) !important;
}

input::placeholder, textarea::placeholder { color: #8494aa !important; }
input:focus, textarea:focus, select:focus {
  border-color: #134074 !important;
  box-shadow: 0 0 0 3px rgba(19, 64, 116, .2) !important;
}

:focus-visible { outline-color: #134074 !important; }

/* Keep consultation footer content readable on its light surface. */
body.patient-view footer.footer-light .footer-heading {
  color: #134074 !important;
}

body.patient-view footer.footer-light .footer-text,
body.patient-view footer.footer-light .footer-mono {
  color: #405d7e !important;
}

body.patient-view footer.footer-light .footer-link {
  color: #134074 !important;
}

body.patient-view footer.footer-light .footer-link:hover {
  color: #0b2545 !important;
}

body.patient-view footer.footer-light .footer-text[style*="colors-semantic-down"] {
  color: #c00000 !important;
}

/* Preserve the green payment actions on a light payment panel. */
body.patient-view #paymentQrPanel {
  color: #102a43 !important;
  background: #fff !important;
  border-color: rgba(19, 64, 116, .14) !important;
  box-shadow: 0 12px 30px rgba(19, 64, 116, .1) !important;
}

body.patient-view #paymentQrPanel #paymentQrTitle {
  color: #134074 !important;
}

body.patient-view #paymentQrPanel .payment-panel-content > span {
  color: #405d7e !important;
}

body.patient-view #paymentQrPanel .payment-panel-content > span strong {
  color: #176b58 !important;
  background: #e9f5f0 !important;
}

body.patient-view #paymentQrPanel .payment-panel-toggle {
  color: #134074 !important;
  background: linear-gradient(145deg, #fff, #eef3f8) !important;
  border-color: rgba(19, 64, 116, .2) !important;
  box-shadow: 0 4px 12px rgba(19, 64, 116, .1) !important;
}

body.patient-view #paymentQrPanel .payment-panel-toggle:hover,
body.patient-view #paymentQrPanel .payment-panel-toggle:focus-visible {
  color: #fff !important;
  background: linear-gradient(145deg, #1a5b99, #0b2545) !important;
  border-color: rgba(19, 64, 116, .5) !important;
}

body.patient-view #paymentQrPanel .upi-app-link {
  color: #fff !important;
  background: #347d6c !important;
  border-color: rgba(155, 216, 204, .42) !important;
  box-shadow: 0 8px 20px rgba(23, 88, 74, .3), inset 0 1px 0 rgba(232, 243, 235, .3) !important;
}

body.patient-view #paymentQrPanel .upi-app-link:hover,
body.patient-view #paymentQrPanel .upi-app-link:focus-visible {
  color: #fff !important;
  background: #438c79 !important;
  border-color: rgba(174, 231, 218, .62) !important;
}

.hero-section {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.hero-section::before {
  position: absolute;
  z-index: -1;
  inset: -12rem 0;
  background:
    radial-gradient(ellipse 58% 48% at 68% 32%, rgba(19, 64, 116, .14), transparent 78%),
    radial-gradient(ellipse 48% 50% at 19% 70%, rgba(114, 57, 151, .07), transparent 80%);
  content: "";
  filter: blur(76px);
  opacity: .72;
  pointer-events: none;
}

.hero-section h1, .hero-section h2, .hero-section h3 { color: #102a43 !important; }
.hero-section .hero-intro, .hero-section p { color: #405d7e !important; }
.hero-section .eyebrow { color: #134074 !important; }
.trust-icon-plate { color: #134074 !important; background: rgba(19, 64, 116, .12) !important; }

.portrait-badge-overlay {
  color: #102a43 !important;
  background: rgba(247, 249, 252, .97) !important;
  border-color: rgba(19, 64, 116, .2) !important;
}

.portrait-badge-overlay .portrait-name {
  color: #102a43 !important;
}

.portrait-badge-overlay .portrait-meta,
.portrait-badge-overlay .portrait-meta span {
  color: #405d7e !important;
}

.nav-pill-btn, .button-pill-cta, .btn, .button, button,
input[type="submit"], input[type="button"] {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 48%), linear-gradient(135deg, #134074, #0b2545) !important;
  border-color: rgba(19, 64, 116, .38) !important;
  text-transform: capitalize;
}

.nav-pill-btn:hover, .button-pill-cta:hover, .btn:hover, .button:hover,
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 48%), linear-gradient(135deg, #1a5b99, #0b2545) !important;
}

input[type="reset"], input[type="image"], .button.secondary {
  text-transform: capitalize;
}

button, [role="button"], .button, .btn, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"], input[type="reset"] {
  text-transform: capitalize;
}

@media (prefers-reduced-transparency: reduce) {
  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .topbar, .site-header, .page-header,
  .nav-bar, footer, footer.footer-light, footer.footer:not(.footer-light) {
    background: #f7f9fc !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(.22, .75, .25, 1);
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }
}

button.secondary:disabled,
.button.secondary:disabled,
.btn.secondary:disabled {
  color: #64748b !important;
  background: #eef3f8 !important;
  border-color: #dce6f2 !important;
  box-shadow: none !important;
  opacity: .8 !important;
  text-shadow: none;
}

body:not(.patient-view) .private-meeting-tools > summary {
  border: 1px solid rgba(19, 64, 116, .24) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .38)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 6px 16px rgba(19, 64, 116, .12) !important;
  color: #134074 !important;
}

body:not(.patient-view) .private-meeting-tools > summary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .52)) !important;
  border-color: rgba(19, 64, 116, .4) !important;
  color: #0b2545 !important;
}

body:not(.patient-view) .hero-band-dark .hero-band-head h2 {
  color: #f1f6ff !important;
}

body:not(.patient-view) .topbar a,
body:not(.patient-view) .topbar a:visited,
body:not(.patient-view) footer a,
body:not(.patient-view) footer a:visited {
  color: #134074 !important;
}

body:not(.patient-view) .topbar a:hover,
body:not(.patient-view) footer a:hover {
  color: #0b2545 !important;
}

body:not(.patient-view) footer.footer-light .footer-link,
body:not(.patient-view) footer.footer-light .footer-link:visited {
  color: #134074 !important;
}

body:not(.patient-view) footer.footer-light .footer-link:hover {
  color: #0b2545 !important;
}

body:not(.patient-view) button.secondary:not(:disabled),
body:not(.patient-view) .button.secondary:not(:disabled),
body:not(.patient-view) .btn.secondary:not(:disabled),
body:not(.patient-view) a.button.secondary {
  color: #134074 !important;
}

body:not(.patient-view) #toggleAdmissions.danger-button {
  color: #8a1822 !important;
  background: linear-gradient(145deg, #fff1ee, #ffd8d3) !important;
  border-color: #b93838 !important;
}

body:not(.patient-view) #toggleAdmissions.danger-button:hover {
  background: linear-gradient(145deg, #ffe5e1, #ffc9c3) !important;
}

body:not(.patient-view) .queue-icon:not(.secondary) {
  color: #f1f6ff !important;
  background: linear-gradient(145deg, #134074, #0b2545) !important;
  border-color: rgba(19, 64, 116, .48) !important;
}

body:not(.patient-view) .queue-icon:not(.secondary):hover {
  background: linear-gradient(145deg, #134074, #0b2545) !important;
}

body.patient-view .doctor-video-waiting strong {
  color: #f1f6ff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

body.patient-view .doctor-video-waiting span {
  color: #c3d2e5 !important;
}

.emergency-number {
  color: #c00000 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body.patient-view .emergency-number {
  color: #c00000 !important;
}

/* Shared rounded glass surfaces for legacy pages and inline-styled screens. */
:root {
  --site-radius: 20px;
  --site-pill: 9999px;
}

header:not(.nav-bar), .topbar, .site-header, .page-header,
.card, .panel, .surface, .content-card, article, section.card,
.glass, .glass-surface, .mode-card, .medication-builder, .quick-actions,
.verification, .india-references, .form-help, .faq-item, .faq-card,
.trust-card, .service-card, .credential, .timing-banner, .notice,
.scope-band, .vitals-section, .verification-band, .portrait-badge-overlay,
.table-wrap, .table-container, .detail, dialog, [role="dialog"],
.modal-card, .login-modal-card, fieldset {
  border-radius: 20px !important;
  border-color: var(--site-glass-line) !important;
  background-color: var(--site-glass) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 16px 40px rgba(19, 64, 116, .12) !important;
  backdrop-filter: saturate(155%) blur(18px);
  -webkit-backdrop-filter: saturate(155%) blur(18px);
}

header:not(.nav-bar) {
  padding: 18px 22px;
  border: 1px solid var(--site-glass-line) !important;
}

.table-wrap, .table-container {
  overflow: auto;
  border: 1px solid var(--site-glass-line) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .48) !important;
}

th {
  background: rgba(255, 255, 255, .54) !important;
}

td, th {
  border-color: rgba(19, 64, 116, .12) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
select, textarea {
  border-radius: 14px !important;
  border-color: rgba(19, 64, 116, .18) !important;
  background: rgba(255, 255, 255, .58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 5px 14px rgba(19, 64, 116, .06) !important;
}

input[type="checkbox"], input[type="radio"] {
  border-radius: 5px;
  accent-color: var(--site-blue);
}

dialog {
  border: 1px solid var(--site-glass-line) !important;
  background: rgba(247, 249, 252, .88) !important;
}

summary, .status, .badge, .pill {
  border-radius: 9999px !important;
}

a.nav-pill-btn:link,
a.nav-pill-btn:visited,
a.nav-pill-btn:hover,
a.nav-pill-btn:active,
a.button-pill-cta:link,
a.button-pill-cta:visited,
a.button-pill-cta:hover,
a.button-pill-cta:active,
a.btn:not(.secondary):not(.danger-button):link,
a.btn:not(.secondary):not(.danger-button):visited,
a.btn:not(.secondary):not(.danger-button):hover,
a.btn:not(.secondary):not(.danger-button):active,
a.button:not(.secondary):not(.danger-button):link,
a.button:not(.secondary):not(.danger-button):visited,
a.button:not(.secondary):not(.danger-button):hover,
a.button:not(.secondary):not(.danger-button):active {
  color: #fff !important;
}

@media (prefers-reduced-transparency: reduce) {
  header:not(.nav-bar), .topbar, .site-header, .page-header,
  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .mode-card, .medication-builder, .quick-actions,
  .verification, .india-references, .form-help, .faq-item, .faq-card,
  .trust-card, .service-card, .credential, .timing-banner, .notice,
  .scope-band, .vitals-section, .verification-band, .portrait-badge-overlay,
  .table-wrap, .table-container, dialog, [role="dialog"],
  .modal-card, .login-modal-card, fieldset {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.tag-list li {
  color: #000 !important;
}
