/* Public landing chrome and registry glass. Functional registry IDs stay intact. */
#navbar.ms-premium-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.1rem clamp(1rem, 3vw, 3rem) 0;
  transition: padding .3s ease;
}
#navbar.ms-premium-header .ms-header-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 1440px;
  min-height: 4.6rem;
  margin: 0 auto;
  padding: .65rem 1.4rem;
  border: 1px solid #ffffffc9;
  border-radius: 1.4rem;
  background: linear-gradient(120deg, #ffffffab, #ffffff59) !important;
  box-shadow: 0 8px 32px #2447730b, inset 0 1px 0 #fff, 0 0 0 1px #6686af17;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  transition: background .3s ease, box-shadow .3s ease, min-height .3s ease;
}
#navbar.ms-premium-header.is-compact { padding-top: .55rem; }
#navbar.ms-premium-header.is-compact .ms-header-nav { min-height: 4.1rem; background: #ffffffbf !important; box-shadow: 0 10px 30px #24477313, inset 0 1px 0 #fff; }
#navbar .ms-chrome-brand { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; color: #10264d; text-decoration: none; }
#navbar .ms-chrome-brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; }
#navbar.ms-premium-header .ms-header-nav .ms-chrome-brand span { display: inline; color: #10264d; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.18rem; font-weight: 800; letter-spacing: -.055em; }
#navbar .ms-header-links, #navbar .ms-header-actions { display: flex; align-items: center; gap: .3rem; }
#navbar .ms-header-links a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; border-radius: .8rem; color: #526581; font-size: .8rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
#navbar .ms-header-links a::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 2px; border-radius: 2px; background: #0f63ff; transform: scaleX(0); transition: transform .25s; }
#navbar .ms-header-links a:hover, #navbar .ms-header-links a[aria-current='location'] { color: #0c52cb; background: #e8f0ff80; }
#navbar .ms-header-links a:hover::after, #navbar .ms-header-links a[aria-current='location']::after { transform: scaleX(1); }
#navbar .ms-header-actions { justify-self: end; gap: .65rem; }
#navbar.ms-premium-header a.ms-header-login { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 2.75rem; padding: .65rem .9rem; border: 0; border-radius: .85rem; background: transparent !important; box-shadow: none; color: #243e64 !important; font-size: .8rem; font-weight: 650; }
#navbar.ms-premium-header a.ms-header-login:hover { background: #e9f1ff88 !important; }
#navbar.ms-premium-header a.ms-header-register { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-width: 0; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid #235caf; border-radius: .85rem; background: linear-gradient(130deg, #163965, #10294e) !important; color: #fff !important; box-shadow: inset 0 1px 0 #ffffff29, 0 5px 14px #17385c1c; font-size: .8rem; font-weight: 650; text-decoration: none; transition: transform .2s, box-shadow .2s; }
#navbar .ms-header-register svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#navbar.ms-premium-header a.ms-header-register:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff29, 0 8px 18px #17385c29; }
#navbar a:focus-visible, .ms-premium-footer a:focus-visible, #registry-snapshot a:focus-visible, #registry-snapshot button:focus-visible { outline: 3px solid #0f63ff; outline-offset: 4px; }

#top > .hero-shell { width: 100%; max-width: 1440px; margin: 0 auto; gap: clamp(2rem, 4vw, 4.5rem); min-height: min(820px, calc(100svh - 6rem)); padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(2rem, 4vw, 4rem); }
#top #registry-snapshot {
  position: relative;
  align-self: center;
  padding: clamp(1.15rem, 2.2vw, 2rem);
  margin: 0;
  border: 1px solid #ffffffd9;
  border-radius: 1.8rem;
  background: linear-gradient(125deg, #ffffff70, #ffffff26 55%, #e9f2ff3b);
  box-shadow: 0 24px 60px #21427114, inset 0 1px 0 #fff, inset 0 -1px 0 #ffffff60, 0 0 0 1px #7197ca22;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  color: #10264d;
  isolation: isolate;
}
#top #registry-snapshot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 1; background: linear-gradient(125deg, #ffffff70, transparent 32%, transparent 70%, #ffffff40); mask-image: none; pointer-events: none; }
#registry-snapshot .registry-head { align-items: center; gap: .9rem; }
#registry-snapshot .registry-title { flex-wrap: wrap; gap: .6rem; color: #16365c; font-size: .87rem; font-weight: 750; letter-spacing: -.02em; }
#registry-snapshot .status-dot { flex: none; width: .4rem; height: .4rem; background: #15755d; box-shadow: 0 0 0 4px #15755d12; }
#registry-snapshot .live-chip { color: #12644f; background: #e2f5eb7a; border: 1px solid #15755d2b; border-radius: .4rem; padding: .16rem .38rem; font-size: .56rem; font-weight: 750; letter-spacing: .08em; }
#registry-snapshot .fda-badge-shell { padding: .3rem .5rem; border: 1px solid #ffffffbd; border-radius: .55rem; color: #375572; background: #ffffff3b; box-shadow: none; font-size: .57rem; letter-spacing: .03em; }
#registry-snapshot .fda-badge-seal { width: 1.2rem; height: 1.2rem; background: #e9f5f2; box-shadow: none; }
#registry-snapshot .fda-badge-seal::after { border-color: #15755d; }
#registry-snapshot .registry-grid { gap: .9rem; margin-top: 1.4rem; }
#registry-snapshot .registry-card { min-width: 0; min-height: 12rem; padding: 1.4rem 1.2rem 1.2rem !important; border: 1px solid #ffffffd1; border-radius: 1.1rem; background: linear-gradient(135deg, #ffffff63, #ffffff1a); box-shadow: inset 0 1px 0 #ffffffd6, 0 7px 20px #183f7510; }
#registry-snapshot .registry-card::after { inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #ffffffeb, transparent); }
#registry-snapshot .registry-card--pink { --card-accent: #b12f60; }
#registry-snapshot .registry-card--cyan { --card-accent: #164db3; }
#registry-snapshot .registry-label { max-width: calc(100% - 2.3rem); min-height: 2.3rem; margin: 0 0 1.1rem; color: #375170; font-size: .75rem; font-weight: 650; line-height: 1.45; }
#registry-snapshot .registry-count { position: relative; margin: 0; color: #143657 !important; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(2.1rem, 3.2vw, 3.3rem) !important; line-height: 1.1; font-weight: 750; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
#registry-snapshot .registry-card--pink .registry-count { color: #a8325b !important; }
#registry-snapshot .registry-card--cyan .registry-count { color: #124ca7 !important; }
#registry-snapshot .hero-stat-delta { margin: .75rem 0 0; color: #526581; font-size: .63rem; font-weight: 500; }
#registry-snapshot .registry-icon { top: 1.05rem; right: 1.05rem; width: 2.2rem; height: 2.2rem; transform: none; border: 1px solid #ffffffc4; border-radius: .75rem; background: #ffffff3d; color: var(--card-accent); box-shadow: inset 0 1px 0 #ffffffd1; }
#registry-snapshot .registry-icon svg { width: 1.2rem; height: 1.2rem; }
#registry-snapshot .registry-source-card { min-width: 0; gap: .75rem; padding: 1.1rem .15rem .05rem; border: 0; border-top: 1px solid #ffffffa6; border-radius: 0; box-shadow: none; background: transparent; }
#registry-snapshot .registry-source-card > div { gap: .75rem; }
#registry-snapshot .registry-source-icon { flex: none; width: 2.6rem; height: 2.6rem; border: 1px solid #ffffffb3; border-radius: .85rem; background: #ffffff33; box-shadow: none; color: #315d91; }
#registry-snapshot .registry-source-card p:first-child { color: #526581 !important; font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#registry-snapshot .registry-source-card p:nth-child(2) { margin-top: .15rem; color: #17385b !important; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
#registry-snapshot .registry-source-card p:last-child { display: block; margin-top: .2rem; color: #526581 !important; font-size: .65rem; line-height: 1.5; }
#registry-snapshot .fda-verify-link { flex: none; width: 2.6rem; height: 2.6rem; border: 1px solid #ffffffb3; border-radius: .85rem; background: #ffffff3d; color: #215ca0; box-shadow: none; }
#registry-snapshot .fda-verify-link:hover { background: #ffffff9c; }
#registry-snapshot .hero-count-loading { min-height: 3.1rem; justify-content: flex-start; }
#registry-snapshot .hero-mini-graph { max-width: 100%; border-color: #ffffffb3; background: #ffffff2e; }
#registry-snapshot #registryCountsError { color: #365172 !important; font-size: .8rem; }
#registry-snapshot #registryCountsRetry { color: #0c4fab !important; min-height: 2.75rem; }

.ms-premium-footer { padding: 2rem clamp(1rem, 3vw, 3rem) 1.5rem; }
.ms-premium-footer .ms-footer-inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 2.7rem 0 0; border-top: 1px solid #b9cde17a; }
.ms-premium-footer .ms-footer-inner::before { content: ''; position: absolute; top: -1px; left: 0; width: 12rem; max-width: 45%; height: 1px; background: linear-gradient(90deg, #0f63ff, #ef2f6370, transparent); }
.ms-footer-main { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2.5rem; }
.ms-premium-footer .ms-footer-brand { display: inline-flex; align-items: center; gap: .8rem; color: #10264d; text-decoration: none; }
.ms-footer-brand img { width: 3.75rem; height: 3.75rem; object-fit: contain; }
.ms-footer-brand span { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.065em; }
.ms-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.6rem, 2vw, 1.75rem); }
.ms-premium-footer .ms-footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #3e5877; font-size: .8rem; font-weight: 600; text-decoration: none; }
.ms-premium-footer .ms-footer-links a:hover, .ms-premium-footer .ms-footer-legal a:hover { color: #0f63ff; }
.ms-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid #c7d6e759; }
.ms-footer-bottom p { margin: 0; color: #526581; font-size: .72rem; letter-spacing: .015em; }
.ms-footer-bottom p span { color: #ab315b; }
.ms-footer-legal { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.ms-premium-footer .ms-footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #526581; font-size: .68rem; text-decoration: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #navbar.ms-premium-header .ms-header-nav { background: #f2f7ffed !important; }
  #top #registry-snapshot { background: #eff5ffee; }
}
@media (max-width: 1100px) {
  #navbar.ms-premium-header .ms-header-nav { grid-template-columns: 1fr auto auto; gap: .6rem; }
  #registry-snapshot .registry-card { min-height: 11rem; padding: 1.25rem 1rem 1rem !important; }
  #registry-snapshot .registry-label { font-size: .68rem; }
  #registry-snapshot .registry-icon { width: 1.8rem; height: 1.8rem; top: 1rem; right: .8rem; }
}
@media (max-width: 1023px) {
  #top > .hero-shell { min-height: auto; max-width: 760px; gap: 2.25rem; }
  #top #registry-snapshot { width: 100%; }
  #registry-snapshot .registry-count { font-size: 3rem !important; }
}
@media (max-width: 640px) {
  #navbar.ms-premium-header { padding: .65rem 1rem 0; }
  #navbar.ms-premium-header .ms-header-nav { grid-template-columns: 1fr auto; gap: .2rem .4rem; padding: .55rem .7rem .2rem; border-radius: 1.1rem; }
  #navbar .ms-chrome-brand img { width: 2.1rem; height: 2.1rem; }
  #navbar.ms-premium-header .ms-header-nav .ms-chrome-brand span { font-size: 1rem; }
  #navbar .ms-chrome-brand { gap: .3rem; }
  #navbar .ms-header-links { grid-row: 2; grid-column: 1 / -1; justify-content: center; border-top: 1px solid #b8cde542; margin-top: .25rem; padding-top: .1rem; }
  #navbar .ms-header-links a { padding: .45rem 1.3rem; min-height: 2.6rem; font-size: .72rem; }
  #navbar .ms-header-actions { gap: .1rem; }
  #navbar.ms-premium-header a.ms-header-login { padding: .5rem .65rem !important; font-size: .72rem !important; }
  #navbar.ms-premium-header a.ms-header-register { padding: .5rem .7rem !important; font-size: .72rem !important; gap: .45rem; }
  #navbar .ms-header-register svg { width: .85rem; height: .85rem; }
  #top > .hero-shell { padding-top: 2.4rem; gap: 2rem; }
  #top #registry-snapshot { padding: 1.15rem; border-radius: 1.4rem; }
  #registry-snapshot .registry-title { font-size: .82rem; }
  #registry-snapshot .registry-grid { gap: .7rem; margin-top: 1.1rem; }
  #registry-snapshot .registry-count { font-size: 2.5rem !important; }
  #registry-snapshot .registry-card { min-height: 10.8rem; }
  #registry-snapshot .registry-label { max-width: calc(100% - 1.65rem); }
  #registry-snapshot .registry-source-card { padding-top: 1rem; }
  #registry-snapshot, #platform, #about-details { scroll-margin-top: 8.3rem; }
  .ms-footer-main { align-items: flex-start; flex-direction: column; gap: 1.35rem; padding-bottom: 1.4rem; }
  .ms-footer-links { width: 100%; justify-content: space-between; gap: .65rem; }
  .ms-footer-brand img { width: 3rem; height: 3rem; }
  .ms-footer-bottom { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .ms-footer-bottom p { padding-top: .4rem; }
}
@media (max-width: 400px) {
  #navbar .ms-header-register svg { display: none; }
  #navbar.ms-premium-header .ms-header-nav { padding-left: .5rem; padding-right: .5rem; }
  #registry-snapshot .registry-grid { grid-template-columns: minmax(0, 1fr); }
  #registry-snapshot .registry-card { min-height: 9.3rem; padding: 1rem !important; }
  #registry-snapshot .registry-label { min-height: auto; margin-bottom: .7rem; font-size: .73rem; }
  #registry-snapshot .registry-count { font-size: 2.7rem !important; }
  #registry-snapshot .registry-icon { width: 2.3rem; height: 2.3rem; }
  #registry-snapshot .registry-source-card > div { gap: .5rem; }
  #registry-snapshot .registry-source-card p:last-child { font-size: .59rem; }
  #registry-snapshot .registry-source-icon { width: 2rem; height: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  #navbar.ms-premium-header, #navbar.ms-premium-header *, #navbar.ms-premium-header *::after { transition: none !important; }
}
