:root {
  /* Paleta institucional (ajustable) */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f4f8fd;
  --surface-solid: #ffffff;
  --text: #0f172a;
  --text-900: #0f172a;
  --muted: #475569;

  --brand-600: #0f5fa6;
  --blue-950: #062746;
  --blue-900: #0b3a66;
  --blue-800: #0d4a80;
  --blue-700: #0f5fa6;
  --blue-600: #1a71c7;
  --blue-500: #2a89e6;
  --blue-400: #7cb8ff;
  --brand-gradient: linear-gradient(135deg, #0f5fa6 0%, #0b3a66 100%);
  --surface-gradient: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.96),
    rgba(237, 245, 255, 0.88)
  );

  --border: rgba(15, 95, 166, 0.16);
  --border-soft: rgba(15, 95, 166, 0.18);

  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md:
    0 2px 6px rgba(15, 23, 42, 0.1), 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg:
    26px 26px 56px rgba(2, 6, 23, 0.2),
    -10px -10px 22px rgba(255, 255, 255, 0.78);

  --radius-tile: 18px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-pill: 999px;

  --container: 1160px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;

  --focus: 3px solid rgba(42, 137, 230, 0.7);
  --header-offset: 180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-header-h: 64px;
  --mobile-dock-h: 76px;

  --tele-brand-900: #083b8a;
  --tele-brand-700: #0b57d0;
  --tele-ink: #0b1b2b;
  --tele-muted: rgba(11, 27, 43, 0.68);
  --tele-surface: rgba(255, 255, 255, 0.86);
  --tele-stroke: rgba(10, 45, 90, 0.14);
  --tele-shadow: 0 18px 60px rgba(10, 25, 50, 0.18);
  --tele-radius: 18px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 180px);
  width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .topbar,
  body::before,
  body::after,
  .brand-mark,
  .brand-ribbon,
  .brand-subtitle,
  .partner-logo,
  .partner-logo img,
  .nav-link,
  .reveal,
  .btn,
  .pill,
  .role-card,
  .hero-card::before,
  .hero-card::after,
  .responsive-embed::before,
  .responsive-embed iframe {
    transition: none !important;
  }

  .kpi-live,
  .nav-list li,
  .responsive-embed.is-embed-loading::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);

  /* Fondo dinámico */
  background-image:
    radial-gradient(
      circle at 12% -10%,
      rgba(42, 137, 230, 0.16) 0,
      transparent 34%
    ),
    radial-gradient(
      circle at 86% -8%,
      rgba(15, 95, 166, 0.14) 0,
      transparent 30%
    ),
    radial-gradient(
      circle at 1px 1px,
      rgba(11, 58, 102, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      120deg,
      rgba(11, 58, 102, 0.06) 0 1px,
      transparent 1px 100%
    ),
    linear-gradient(60deg, rgba(11, 58, 102, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
  background-size:
    100% 100%,
    100% 100%,
    44px 44px,
    110px 110px,
    110px 110px,
    100% 100%;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;

  font-family:
    "Avenir Next", Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.45;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

body::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: 130px;
  background: radial-gradient(
    circle,
    rgba(42, 137, 230, 0.24),
    transparent 72%
  );
}

body::after {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: 120px;
  background: radial-gradient(circle, rgba(15, 95, 166, 0.18), transparent 70%);
  animation-duration: 22s;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-18px) translateX(14px);
  }
}

h1,
h2 {
  letter-spacing: -0.02em;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.95em;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    filter 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.9),
    rgba(231, 244, 255, 0.8)
  );
  border-bottom: 1px solid rgba(15, 95, 166, 0.12);
  transition:
    background 220ms ease,
    backdrop-filter 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  isolation: isolate;
  overflow: visible;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.site-header::before {
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(15, 95, 166, 0.08) 0%,
    rgba(124, 184, 255, 0.16) 48%,
    rgba(15, 95, 166, 0.08) 100%
  );
}

.site-header::after {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -210px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(42, 137, 230, 0.24),
    transparent 70%
  );
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.86),
    rgba(235, 246, 255, 0.76)
  );
  border-bottom-color: rgba(15, 95, 166, 0.2);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.14);
}

.topbar {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 10px 0 8px;
  transition:
    padding 220ms ease,
    gap 220ms ease;
  position: relative;
}

.site-header.is-scrolled .topbar {
  gap: 8px;
  padding: 7px 0 5px;
}

.brand {
  display: flex;
  gap: clamp(14px, 1.7vw, 18px);
  align-items: center;
  justify-content: center;
  width: min(100%, 980px);
  margin: 0 auto;
  min-width: 0;
  padding-inline: clamp(8px, 1.4vw, 14px);
}

.brand-mark {
  width: clamp(66px, 6.4vw, 84px);
  height: clamp(66px, 6.4vw, 84px);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  transition: transform 220ms ease;
  position: relative;
  overflow: visible;
}

.site-header.is-scrolled .brand-mark {
  transform: none;
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-ribbon {
  width: clamp(56px, 6vw, 78px);
  height: clamp(56px, 6vw, 78px);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 220ms ease;
}

.site-header.is-scrolled .brand-ribbon {
  transform: none;
}

.brand-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  min-width: 0;
}

.brand-kicker {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.brand-title {
  margin: 0;
  font-family:
    "SF Pro Display", "Avenir Next", "Avenir Next Condensed", Montserrat,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1.9rem, 2.3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--blue-900);
  overflow-wrap: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 72ch;
  max-height: 80px;
  overflow: hidden;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    margin 180ms ease;
}

.site-header.is-scrolled .brand-subtitle {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

/* NAV */
.site-nav {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--blue-900);
  font-weight: 650;
}

.nav-toggle__icon {
  width: 18px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 999px;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 999px;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
  position: relative;
  overflow: hidden;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 95, 166, 0.14);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.11);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(11, 95, 255, 0.55);
  outline-offset: 3px;
}

.nav-link[aria-current="page"],
.nav-link[aria-current="true"],
.nav-link.is-active {
  color: #ffffff;
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 24px rgba(11, 58, 102, 0.26);
}

.nav-link[aria-current="page"]::after,
.nav-link[aria-current="true"]::after,
.nav-link.is-active::after {
  transform: scaleX(0);
}

.nav-link__icon {
  display: none;
}

.nav-link__label {
  display: block;
}

/* Logo strip */
.logo-strip {
  position: relative;
  border-top: 1px solid rgba(15, 95, 166, 0.09);
  background: linear-gradient(
    180deg,
    rgba(227, 239, 253, 0.74),
    rgba(255, 255, 255, 0.62)
  );
}

.logo-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(15, 95, 166, 0.08),
    rgba(42, 137, 230, 0.35),
    rgba(15, 95, 166, 0.08)
  );
}

.logo-strip__inner,
.partners-strip {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 10px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  overflow-x: clip;
  scroll-snap-type: none;
  min-width: 0;
}

.partner-logo,
.partner-pill {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 54px;
  gap: 0;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 95, 166, 0.14);
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.08);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  min-width: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  scroll-snap-align: start;
}

.partner-logo img,
.partner-pill img {
  width: 122px;
  height: 34px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transform: none;
  transition: transform 180ms ease;
}

.partner-logo[data-partner="fep"] img,
.partner-pill[data-partner="fep"] img {
  width: 132px;
  height: 36px;
}

.partner-logo[data-partner="gedyt"] img,
.partner-logo[data-partner="gcba"] img,
.partner-pill[data-partner="gedyt"] img,
.partner-pill[data-partner="gcba"] img {
  width: 126px;
}

.partner-logo[data-partner="merck"] img,
.partner-pill[data-partner="merck"] img {
  width: 108px;
}

.partner-logo span {
  display: none;
}

.partner-logo:hover,
.partner-logo:focus-within {
  transform: translateY(-1px);
  border-color: rgba(15, 95, 166, 0.2);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.1);
}

.partner-logo:hover img,
.partner-logo:focus-within img {
  transform: scale(1.03);
}

/* SECTIONS */
.section {
  padding: 54px 0;
}

.section-anchor {
  scroll-margin-top: var(--header-offset, 180px);
}

#cronograma.section-anchor {
  padding-bottom: clamp(24px, 3vw, 32px);
}

.section-muted {
  background: linear-gradient(
    180deg,
    rgba(15, 95, 166, 0.08),
    rgba(15, 95, 166, 0.03)
  );
  border-top: 1px solid rgba(15, 95, 166, 0.1);
  border-bottom: 1px solid rgba(15, 95, 166, 0.1);
}

.section-header {
  padding: 0 0 var(--space-5);
  margin-bottom: 18px;
  position: relative;
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 136px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.section-title--with-live {
  display: inline-flex;
  align-items: center;
}

.kpi-live {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

/* HERO */
.hero {
  padding-top: 38px;
}

body.page-home #inicio.section {
  padding-bottom: 36px;
}

body.page-home #guias.section {
  padding-top: 38px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(239, 248, 255, 0.92) 100%
  );
  border: 1px solid rgba(15, 95, 166, 0.14);
  border-radius: 24px;
  box-shadow:
    0 18px 38px rgba(7, 31, 67, 0.13),
    0 4px 10px rgba(7, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 26px;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.hero-card::before {
  width: 320px;
  height: 320px;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle, rgba(15, 95, 166, 0.2), transparent 74%);
}

.hero-card::after {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(
    circle,
    rgba(42, 137, 230, 0.16),
    transparent 72%
  );
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

.hero-left {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-left__main {
  display: grid;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 95, 166, 0.26);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(234, 244, 255, 0.85)
  );
  color: var(--blue-900);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 6px;
  font-size: clamp(2.02rem, 2.8vw, 2.64rem);
  line-height: 1.08;
  color: var(--blue-950);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0;
  color: var(--blue-800);
  font-weight: 760;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  letter-spacing: -0.01em;
  line-height: 1.24;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 75ch;
  font-size: 1.03rem;
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-highlights li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #335474;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1d7ad1, #0f5ca6);
  box-shadow: 0 0 0 3px rgba(29, 122, 209, 0.16);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.hero-cta__link {
  white-space: nowrap;
}

.hero-right {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hero-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(11, 52, 96, 0.12);
  background: #ffffff;
  box-shadow:
    0 10px 22px rgba(7, 31, 67, 0.12),
    0 2px 6px rgba(7, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-action-card__copy {
  min-width: 0;
}

.hero-action-card__title {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.04rem, 1.5vw, 1.26rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.hero-action-card__subtitle {
  margin: 4px 0 0;
  color: rgba(12, 42, 79, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-action-card__btn {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, #0b67bf 0%, #0a4f93 68%, #0a4683 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 24px rgba(7, 49, 96, 0.34),
    0 3px 8px rgba(6, 42, 84, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.hero-action-card__btn:hover {
  background: linear-gradient(145deg, #0f73d3 0%, #0c5ca9 68%, #0a4f95 100%);
  box-shadow:
    0 13px 28px rgba(7, 49, 96, 0.38),
    0 4px 10px rgba(6, 42, 84, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.hero-action-card__btn:focus-visible {
  outline: 3px solid rgba(156, 214, 255, 0.9);
  outline-offset: 2px;
}

.hero-action-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-action-card__icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

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

.mini-panel {
  min-height: 102px;
  padding: 13px 14px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(15, 95, 166, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 18px rgba(7, 31, 67, 0.11),
    0 2px 5px rgba(7, 31, 67, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.mini-panel--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mini-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 95, 166, 0.22);
  box-shadow:
    0 12px 24px rgba(7, 31, 67, 0.14),
    0 3px 7px rgba(7, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.mini-panel--link:hover {
  text-decoration: none;
}

.mini-panel--link:focus-visible {
  outline: 2px solid rgba(42, 137, 230, 0.58);
  outline-offset: 2px;
}

.mini-panel__title {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 1.02rem;
  line-height: 1.22;
  letter-spacing: -0.004em;
}

.mini-panel__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.mini-panel--primary {
  grid-column: 1 / -1;
  padding: 22px 24px;
  border: 1px solid rgba(15, 95, 166, 0.22);
  background:
    radial-gradient(
      circle at 12% -18%,
      rgba(79, 184, 255, 0.16),
      transparent 44%
    ),
    linear-gradient(
      162deg,
      rgba(255, 255, 255, 0.98),
      rgba(234, 246, 255, 0.92)
    );
  box-shadow:
    0 18px 34px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mini-panel--primary .mini-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 95, 166, 0.1);
  border: 1px solid rgba(15, 95, 166, 0.22);
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.mini-panel__meta {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: #355a7a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.mini-panel__meta li {
  position: relative;
  padding-left: 14px;
}

.mini-panel__meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0f66b4;
  font-weight: 800;
}

.mini-panel__cta {
  margin-top: 14px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 780;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-900);
  border-color: rgba(15, 95, 166, 0.18);
}

.btn-success {
  background: linear-gradient(140deg, #1f9d63, #14844f);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-success:hover {
  background: linear-gradient(140deg, #22ad6d, #17965a);
}

.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-900);
  border-color: rgba(15, 95, 166, 0.18);
}

.text-white {
  color: #ffffff !important;
}

.px-4 {
  padding-left: 24px;
  padding-right: 24px;
}

.fw-bold {
  font-weight: 800;
}

.ms-2 {
  margin-left: 8px;
}

.home-algo__actions .fa-solid.fa-arrow-right {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.home-algo__actions .fa-solid.fa-arrow-right::before {
  content: "→";
}

.btn-danger {
  background: linear-gradient(140deg, #dd2f45, #bb1735);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(15, 95, 166, 0.06);
  color: var(--blue-900);
  border-color: rgba(15, 95, 166, 0.1);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Pills grid (Guías) */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.96),
    rgba(236, 245, 255, 0.8)
  );
  border: 1px solid rgba(15, 95, 166, 0.16);
  box-shadow: var(--shadow-sm);
  color: var(--blue-950);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition:
    transform 130ms ease,
    box-shadow 130ms ease;
}

.pill:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill:active {
  transform: translateY(0);
}

.pill[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.pill__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    165deg,
    rgba(241, 249, 255, 0.95),
    rgba(224, 239, 255, 0.9)
  );
  border: 1px solid rgba(15, 95, 166, 0.2);
  color: var(--blue-900);
  flex: 0 0 auto;
  box-shadow:
    0 8px 14px rgba(11, 58, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pill__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pill__title {
  font-size: 1rem;
  font-family:
    "SF Pro Display", "Avenir Next Condensed", "Avenir Next", Montserrat,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 520;
  line-height: 1.1;
  color: var(--blue-950);
}

.pill__meta {
  font-size: 0.84rem;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6f8095;
}

.pill--tiny {
  display: inline-flex;
  padding: 4px 10px;
  min-height: unset;
  border-radius: 999px;
  box-shadow: none;
  border: 1px solid rgba(15, 95, 166, 0.16);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 750;
  font-size: 0.8rem;
}

.pill--tiny:hover {
  transform: none;
  box-shadow: none;
}

/* Role cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.role-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(238, 246, 255, 0.76)
  );
  border: 1px solid rgba(15, 95, 166, 0.14);
  border-radius: var(--radius-20);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-card__header {
  padding: 16px 16px 14px;
  min-height: 122px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 6px;
  background: linear-gradient(
    180deg,
    rgba(15, 95, 166, 0.1),
    rgba(15, 95, 166, 0.02)
  );
  border-bottom: 1px solid rgba(15, 95, 166, 0.1);
}

.role-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--blue-900);
}

.role-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.role-card__body {
  padding: 14px 16px 18px;
}

.role-actions {
  display: grid;
  gap: 12px;
  grid-auto-rows: minmax(86px, auto);
}

.role-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 95, 166, 0.2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(244, 250, 255, 0.9) 100%
  );
  box-shadow:
    0 10px 20px rgba(9, 31, 62, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -1px 0 rgba(221, 237, 252, 0.54) inset;
  color: var(--blue-900);
  font-weight: 560;
  transition:
    transform 200ms ease,
    box-shadow 220ms ease,
    border-color 200ms ease,
    background 220ms ease,
    color 200ms ease;
}

.role-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  background: linear-gradient(
    120deg,
    rgba(220, 240, 255, 0) 10%,
    rgba(182, 220, 247, 0.36) 56%,
    rgba(210, 235, 255, 0) 92%
  );
  border-radius: inherit;
  opacity: 0.12;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 220ms ease;
  transform: translateX(-8%);
}

.role-link::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(15, 95, 166, 0.08),
    rgba(15, 95, 166, 0.35),
    rgba(15, 95, 166, 0.08)
  );
  opacity: 0.42;
  transition: opacity 180ms ease;
}

.role-link:hover,
.role-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px rgba(4, 32, 66, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(217, 235, 251, 0.62) inset;
  border-color: rgba(15, 95, 166, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(236, 247, 255, 0.94) 100%
  );
  color: var(--blue-900);
}

.role-link:hover::before,
.role-link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.role-link:hover::after,
.role-link:focus-visible::after {
  opacity: 0.62;
}

.role-link:focus-visible {
  outline: 2px solid rgba(42, 137, 230, 0.55);
  outline-offset: 2px;
}

.role-link__icon {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 95, 166, 0.35);
  background: radial-gradient(
    115% 115% at 25% 20%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(230, 245, 255, 0.92) 54%,
    rgba(208, 233, 251, 0.85) 100%
  );
  color: var(--blue-900);
  box-shadow:
    0 12px 20px rgba(10, 46, 92, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 0 1px rgba(236, 246, 255, 0.95) inset;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.role-link__icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(42, 137, 230, 0.2);
  opacity: 0.78;
  pointer-events: none;
}

.role-link__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  filter: blur(0.4px);
  pointer-events: none;
}

.role-link__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.role-link__label {
  position: relative;
  z-index: 1;
  font-weight: 560;
  font-size: 1.01rem;
  line-height: 1.28;
  color: var(--blue-900);
  letter-spacing: 0.002em;
  overflow-wrap: anywhere;
}

.role-link:hover .role-link__icon,
.role-link:focus-visible .role-link__icon {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(15, 95, 166, 0.58);
  box-shadow:
    0 14px 22px rgba(10, 46, 92, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(220, 239, 255, 0.9) inset;
}

.role-link__chev {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(15, 95, 166, 0.24);
  background: rgba(15, 95, 166, 0.08);
  color: rgba(11, 58, 102, 0.7);
  font-weight: 760;
  font-size: 0.88rem;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.role-link:hover .role-link__chev,
.role-link:focus-visible .role-link__chev {
  transform: translateX(3px);
  border-color: rgba(15, 95, 166, 0.38);
  background: rgba(15, 95, 166, 0.13);
  color: var(--blue-900);
}

.role-link[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Home: Algoritmo */
.home-algo {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 95, 166, 0.2);
  background:
    radial-gradient(
      circle at 14% -20%,
      rgba(79, 184, 255, 0.18),
      transparent 42%
    ),
    linear-gradient(162deg, rgba(255, 255, 255, 0.98), rgba(233, 246, 255, 0.9));
  box-shadow:
    0 26px 52px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-algo__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-algo__status-chip {
  margin: 0;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(15, 95, 166, 0.26);
  background: rgba(15, 95, 166, 0.09);
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 100%;
}

.home-algo__status-chip[data-state="final"] {
  border-color: rgba(17, 146, 92, 0.46);
  border-radius: 9px;
  background: linear-gradient(
    165deg,
    rgba(231, 251, 240, 0.98),
    rgba(216, 244, 228, 0.95)
  );
  color: #0d5f3b;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  box-shadow:
    0 8px 18px rgba(10, 76, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-algo__status-label {
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d6a42;
}

.home-algo__status-value {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0b5b39;
}

.home-algo__stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-algo__stepper-item {
  min-width: 0;
}

.home-algo__stepper-button {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(15, 95, 166, 0.24);
  background: rgba(255, 255, 255, 0.93);
  color: var(--muted);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.home-algo__stepper-button:disabled,
.home-algo__stepper-button.is-locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.home-algo__stepper-button.is-current {
  border-color: rgba(15, 95, 166, 0.52);
  background: linear-gradient(
    145deg,
    rgba(231, 245, 255, 0.98),
    rgba(211, 235, 255, 0.94)
  );
  color: var(--blue-900);
  box-shadow:
    0 12px 24px rgba(8, 38, 74, 0.12),
    0 0 0 3px rgba(42, 137, 230, 0.12);
}

.home-algo__stepper-button.is-complete {
  border-color: rgba(17, 146, 92, 0.35);
  background: rgba(233, 250, 240, 0.96);
  color: #0f5f3b;
}

.home-algo__stepper-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 820;
  box-shadow: 0 8px 14px rgba(9, 48, 95, 0.2);
}

.home-algo__stepper-button.is-complete .home-algo__stepper-index {
  background: linear-gradient(160deg, #1ea46b, #107a4f);
}

.home-algo__stepper-label {
  font-size: 0.9rem;
  line-height: 1.24;
  font-weight: 730;
}

.home-algo__panel {
  border-radius: 18px;
  border: 1px solid rgba(15, 95, 166, 0.17);
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-algo__panel-title {
  margin: 0 0 6px;
  color: var(--blue-900);
  font-size: clamp(1.14rem, 2.1vw, 1.38rem);
  letter-spacing: -0.012em;
}

.home-algo__panel-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.home-algo__required-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-algo__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-algo__grid--step4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-algo__field {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.home-algo__field--full {
  grid-column: 1 / -1;
}

.home-algo__field--half {
  grid-column: span 2;
}

.home-algo__label {
  margin: 0;
  font-weight: 740;
  color: var(--blue-900);
}

.home-algo__input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 95, 166, 0.28);
  background: #fff;
  color: var(--blue-950);
  font: inherit;
  padding: 10px 12px;
}

.home-algo__input:focus-visible {
  outline: 2px solid rgba(42, 137, 230, 0.5);
  outline-offset: 2px;
  border-color: rgba(15, 95, 166, 0.5);
}

.home-algo__input[readonly] {
  background: rgba(240, 247, 255, 0.95);
  color: var(--blue-900);
  font-weight: 680;
  cursor: default;
}

#home-algo-device-time {
  font-weight: 400;
}

#home-algo-device-time::placeholder {
  font-weight: 400;
}

.home-algo__input:disabled {
  cursor: not-allowed;
  opacity: 0.86;
}

.home-algo__input.is-invalid {
  border-color: rgba(177, 36, 58, 0.56);
  background: rgba(255, 241, 244, 0.95);
  box-shadow: 0 0 0 3px rgba(177, 36, 58, 0.14);
}

.home-algo__input.is-invalid:focus-visible {
  outline-color: rgba(177, 36, 58, 0.45);
  border-color: rgba(177, 36, 58, 0.64);
}

.home-algo__error {
  margin: 0;
  min-height: 1.05rem;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.2;
  color: #a21f3e;
}

.home-algo__sex-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
}

.home-algo__sex-switch.is-invalid {
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(177, 36, 58, 0.45);
}

.home-algo__sex-option {
  position: relative;
}

.home-algo__sex-radio {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}

.home-algo__sex-label {
  min-height: 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(107, 114, 128, 0.46);
  background: rgba(247, 249, 252, 0.96);
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 10px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.home-algo__sex-label--m {
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.46);
}

.home-algo__sex-label--f {
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.46);
}

.home-algo__sex-label--other {
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.46);
}

.home-algo__sex-radio:hover + .home-algo__sex-label {
  box-shadow: 0 0 0 2px rgba(13, 53, 92, 0.08);
}

.home-algo__sex-radio:focus-visible + .home-algo__sex-label {
  outline: 3px solid rgba(42, 137, 230, 0.28);
  outline-offset: 2px;
}

.home-algo__sex-radio:checked + .home-algo__sex-label--m {
  color: #0f5fa6;
  border-color: #0f5fa6;
  background: rgba(227, 241, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(15, 95, 166, 0.16);
}

.home-algo__sex-radio:checked + .home-algo__sex-label--f {
  color: #bf1f5b;
  border-color: #bf1f5b;
  background: rgba(255, 231, 242, 0.95);
  box-shadow: 0 0 0 2px rgba(191, 31, 91, 0.16);
}

.home-algo__sex-radio:checked + .home-algo__sex-label--other {
  color: #0f7a4a;
  border-color: #0f7a4a;
  background: rgba(223, 247, 235, 0.95);
  box-shadow: 0 0 0 2px rgba(15, 122, 74, 0.16);
}

.home-algo__sex-switch.is-invalid
  .home-algo__sex-radio:not(:checked)
  + .home-algo__sex-label {
  border-style: dashed;
}

.home-algo__sex-other {
  margin-top: 10px;
  max-width: 360px;
  display: grid;
  gap: 6px;
}

.home-algo__label--subtle {
  font-size: 0.88rem;
  color: var(--muted);
}

.home-algo__group {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 95, 166, 0.14);
  background: rgba(248, 252, 255, 0.88);
}

.home-algo__group + .home-algo__group {
  margin-top: 10px;
}

.home-algo__group-title {
  padding: 0 6px;
  margin: 0;
  color: var(--blue-900);
  font-weight: 760;
}

.home-algo__checklist {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.home-algo__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 95, 166, 0.12);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.home-algo__check:hover {
  border-color: rgba(15, 95, 166, 0.28);
  box-shadow: 0 10px 18px rgba(9, 48, 95, 0.08);
}

.home-algo__check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.home-algo__check span {
  color: var(--blue-900);
  line-height: 1.3;
}

.home-algo__feedback {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.home-algo__feedback[data-tone="danger"] {
  color: #8f1f34;
  font-weight: 640;
}

.home-algo__feedback[data-tone="success"] {
  color: #0f6b43;
  font-weight: 640;
}

.home-algo__alert {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 14px;
}

.home-algo__alert--danger {
  border-color: rgba(177, 36, 58, 0.34);
  background: linear-gradient(
    160deg,
    rgba(255, 237, 240, 0.98),
    rgba(255, 222, 228, 0.92)
  );
}

.home-algo__alert--success {
  border-color: rgba(20, 129, 82, 0.32);
  background: linear-gradient(
    160deg,
    rgba(233, 251, 240, 0.98),
    rgba(218, 245, 229, 0.92)
  );
}

.home-algo__alert-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 790;
  color: var(--blue-950);
}

.home-algo__alert-text {
  margin: 0;
  color: var(--blue-900);
}

.home-algo__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-algo__modal[hidden] {
  display: none !important;
}

.home-algo__modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.home-algo__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 29, 0.58);
}

.home-algo__modal-card {
  position: relative;
  z-index: 1;
  width: min(94vw, 660px);
  margin: 8vh auto 0;
  border-radius: 18px;
  border: 1px solid rgba(15, 95, 166, 0.24);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.99),
    rgba(236, 246, 255, 0.94)
  );
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.home-algo__modal-title {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.28rem;
}

.home-algo__modal-outcome {
  margin: 8px 0 0;
  color: #0d5f3b;
  font-weight: 780;
}

.home-algo__modal-text {
  margin: 4px 0 12px;
  color: var(--blue-900);
}

.home-algo__modal-summary {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 95, 166, 0.16);
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  max-height: 42vh;
  overflow: auto;
  color: #0c2744;
  font-size: 0.84rem;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

.home-algo__modal-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
/* Callout */
.callout {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-16);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 95, 166, 0.12);
  box-shadow: var(--shadow-sm);
}

.callout__icon {
  font-size: 1.2rem;
}

.callout__title {
  margin: 0 0 6px;
  font-weight: 850;
  color: var(--blue-900);
}

.callout__text {
  margin: 0;
  color: var(--muted);
}

/* Embeds */
.embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.embed-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.embed-hint:empty {
  display: none;
}

.embed-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(236, 246, 255, 0.82)
  );
  border: 1px solid rgba(15, 95, 166, 0.12);
  border-radius: 18px;
  box-shadow:
    0 22px 44px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.embed-shell {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 95, 166, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 30px rgba(2, 6, 23, 0.11);
}

.embed-shell--looker {
  /* Ajuste PC: evita recorte sin dejar bloque vacío inferior */
  height: clamp(680px, 82vh, 860px);
}

.embed-shell--calendar {
  height: clamp(520px, 72vh, 760px);
}

/* KPI desktop edge refinement: evita corte óptico en vértices del reporte */
@media (min-width: 769px) {
  .page-home #kpis .embed-shell--looker {
    padding: 3px;
    border-radius: 16px;
    border-color: rgba(13, 79, 145, 0.16);
    background: linear-gradient(
      180deg,
      rgba(249, 253, 255, 0.98),
      rgba(237, 246, 255, 0.95)
    );
  }

  .page-home #kpis #looker-iframe,
  .page-home #kpis .embed-shell--looker .embed-iframe {
    border-radius: 0;
    background: #ffffff;
  }

  .page-home #kpis .embed-shell--looker .embed-skeleton,
  .page-home #kpis .embed-shell--looker .embed-fallback--overlay {
    inset: 3px;
    border-radius: 11px;
  }
}

@supports (height: 100dvh) {
  .embed-shell--looker {
    height: clamp(680px, 82dvh, 860px);
  }

  .embed-shell--calendar {
    height: clamp(520px, 72dvh, 760px);
  }
}

.embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 1;
  background: transparent;
  transition: opacity 360ms ease;
}

.embed-shell.is-embed-loading .embed-iframe {
  opacity: 0;
}

.embed-shell.is-embed-ready .embed-iframe,
.embed-shell.is-loaded .embed-iframe {
  opacity: 1;
}

.embed-skeleton {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(13, 74, 140, 0.06) 0%,
    rgba(13, 74, 140, 0.12) 50%,
    rgba(13, 74, 140, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: embed-shimmer 1.5s linear infinite;
}

@keyframes embed-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.embed-shell.is-loaded .embed-skeleton,
.embed-shell.is-embed-ready .embed-skeleton,
.embed-shell.is-timeout .embed-skeleton {
  display: none;
}

.embed-fallback--overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  color: rgba(7, 33, 63, 0.88);
  font-weight: 600;
  line-height: 1.4;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(238, 246, 255, 0.94)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.embed-shell.is-timeout .embed-fallback--overlay {
  opacity: 1;
}

.embed-shell.is-loaded .embed-fallback--overlay,
.embed-shell.is-embed-ready .embed-fallback--overlay {
  display: none;
}

.embed-card > .embed-fallback {
  padding: 14px 10px 6px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .embed-shell--looker {
    height: clamp(420px, 64vh, 620px);
  }

  .embed-shell--calendar {
    height: clamp(460px, 68vh, 680px);
  }

  @supports (height: 100dvh) {
    .embed-shell--looker {
      height: clamp(420px, 64dvh, 620px);
    }

    .embed-shell--calendar {
      height: clamp(460px, 68dvh, 680px);
    }
  }
}

.timeline-placeholder {
  margin: 0 0 var(--space-5);
  padding: 24px 24px 22px;
  border-radius: var(--radius-20);
  border: 1px solid rgba(26, 113, 199, 0.22);
  background: linear-gradient(
    165deg,
    rgba(252, 254, 255, 0.98),
    rgba(233, 246, 255, 0.94)
  );
  box-shadow:
    0 14px 26px rgba(10, 70, 128, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timeline-placeholder__header {
  margin-bottom: 16px;
}

.timeline-placeholder__title {
  margin: 0 0 7px;
  color: var(--blue-800);
  font-size: clamp(1.18rem, 1.55vw, 1.34rem);
  font-weight: 760;
  line-height: 1.2;
}

.timeline-placeholder__subtitle {
  margin: 0;
  color: rgba(66, 87, 113, 0.96);
  max-width: 76ch;
  font-size: 0.97rem;
  line-height: 1.46;
}

.timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 8px 0 2px 24px;
  display: grid;
  gap: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(27, 120, 206, 0.9),
    rgba(102, 188, 246, 0.78)
  );
}

.phase-card {
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.99),
    rgba(242, 249, 255, 0.95)
  );
  border: 1px solid rgba(26, 113, 199, 0.22);
  box-shadow:
    0 10px 20px rgba(10, 70, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.phase-card:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 113, 199, 0.3);
  box-shadow:
    0 14px 24px rgba(10, 70, 128, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.phase-card.is-expanded {
  border-color: rgba(20, 100, 180, 0.38);
  box-shadow:
    0 14px 26px rgba(9, 62, 112, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.phase-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a71c7;
  box-shadow: 0 0 0 4px rgba(42, 137, 230, 0.18);
}

.phase-top {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.phase-top__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.phase-heading {
  display: grid;
  gap: 0;
  min-width: 0;
}

.phase-stage {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26, 113, 199, 0.26);
  background: linear-gradient(
    150deg,
    rgba(47, 142, 232, 0.16),
    rgba(125, 191, 255, 0.14)
  );
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0;
}

.phase-period {
  margin: 0;
}

.phase-period time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #126fc8 0%, #0a4f97 100%);
  border: 1px solid rgba(10, 82, 148, 0.38);
  box-shadow: 0 6px 14px rgba(26, 113, 199, 0.24);
  color: #fff;
  font-size: 0.99rem;
  font-weight: 860;
  letter-spacing: 0.012em;
  line-height: 1.2;
  max-width: 100%;
}

.phase-title {
  margin: 0 0 7px;
  color: var(--blue-900);
  font-weight: 860;
  font-size: 1.11rem;
  line-height: 1.28;
}

.phase-objective {
  margin: 0 0 12px;
  color: rgba(66, 86, 112, 0.95);
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 500;
}

.phase-objective strong {
  color: var(--blue-900);
}

.phase-highlights-label {
  margin: 0 0 6px;
  color: var(--blue-800);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(49, 64, 84, 0.94);
  font-weight: 560;
  font-size: 0.9rem;
  line-height: 1.45;
}

.phase-highlights li::marker {
  color: #1f7ed9;
}

.calendar-panel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.calendar-panel__header {
  display: grid;
  gap: 10px;
  align-items: start;
}

.calendar-panel__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.calendar-panel__eyebrow {
  margin: 0;
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-panel__cta {
  justify-self: start;
  white-space: nowrap;
}

.phase-details {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(26, 113, 199, 0.28);
}

.phase-details__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26, 113, 199, 0.24);
  background: linear-gradient(
    160deg,
    rgba(240, 248, 255, 0.96),
    rgba(230, 242, 255, 0.92)
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  color: var(--blue-800);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.phase-details__summary::-webkit-details-marker {
  display: none;
}

.phase-details__summary::after {
  content: "▾";
  font-size: 0.8rem;
  transition: transform 160ms ease;
}

.phase-details[open] .phase-details__summary::after {
  transform: rotate(180deg);
}

.phase-details[open] .phase-details__summary {
  border-color: rgba(26, 113, 199, 0.36);
  background: linear-gradient(
    160deg,
    rgba(233, 245, 255, 0.98),
    rgba(219, 238, 255, 0.94)
  );
  color: var(--blue-900);
}

.phase-details__summary:hover {
  border-color: rgba(26, 113, 199, 0.36);
  background: linear-gradient(
    160deg,
    rgba(233, 245, 255, 0.98),
    rgba(219, 238, 255, 0.94)
  );
  box-shadow: 0 4px 10px rgba(10, 70, 128, 0.12);
  text-decoration: none;
}

.phase-details__summary:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 999px;
}

.phase-details__list {
  margin: 10px 0 0;
  padding: 10px 12px 10px 18px;
  display: grid;
  gap: 7px;
  color: rgba(67, 89, 115, 0.97);
  font-size: 0.9rem;
  line-height: 1.48;
  background: linear-gradient(
    170deg,
    rgba(247, 252, 255, 0.96),
    rgba(236, 247, 255, 0.92)
  );
  border: 1px solid rgba(26, 113, 199, 0.2);
  border-left: 3px solid rgba(31, 126, 217, 0.5);
  border-radius: 12px;
}

.phase-details__list li::marker {
  color: #1f7ed9;
}

/* Teleconsulta placeholder */
.placeholder {
  background: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.9),
    rgba(236, 246, 255, 0.82)
  );
  border: 1px dashed rgba(15, 95, 166, 0.26);
  border-radius: var(--radius-20);
  box-shadow:
    0 16px 28px rgba(2, 6, 23, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 20px;
}

.placeholder__badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 95, 166, 0.1);
  border: 1px solid rgba(15, 95, 166, 0.14);
  font-weight: 850;
  color: var(--blue-900);
  margin-bottom: 10px;
}

.placeholder__title {
  margin: 0 0 8px;
  color: var(--blue-950);
}

.placeholder__text {
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
  line-height: 1.55;
}

.brand-seal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 1.2vw, 14px) 0 clamp(24px, 3.1vw, 36px);
}

.brand-seal__img {
  display: block;
  width: clamp(120px, 14vw, 188px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
  opacity: 0.98;
}

/* Footer */
.back-to-top {
  position: fixed;
  right: clamp(18px, 2.2vw, 30px);
  bottom: clamp(92px, 10vh, 122px);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 95, 166, 0.34);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.94),
    rgba(228, 243, 255, 0.9)
  );
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  color: var(--blue-950);
  box-shadow:
    0 14px 28px rgba(6, 33, 67, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 -1px 0 rgba(205, 230, 252, 0.64) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.93);
  transition:
    opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 260ms linear,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  z-index: 92;
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.46),
    rgba(63, 139, 214, 0.14)
  );
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

.back-to-top::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
  opacity: 0.9;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: rgba(15, 95, 166, 0.46);
  box-shadow:
    0 18px 32px rgba(6, 33, 67, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(196, 224, 248, 0.74) inset;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.99),
    rgba(214, 237, 255, 0.94)
  );
  transform: translateY(-1px) scale(1.02);
}

.back-to-top:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.back-to-top__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.back-to-top__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.back-to-top:hover .back-to-top__icon svg {
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(15, 95, 166, 0.14);
  border-bottom: 2px solid rgba(11, 74, 142, 0.62);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(239, 248, 255, 0.92) 100%
  );
  box-shadow:
    0 -10px 24px rgba(7, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 16px 0 18px;
  overflow: hidden;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: 0;
}

.site-footer::before {
  width: 240px;
  height: 240px;
  right: -120px;
  top: -110px;
  background: radial-gradient(circle, rgba(15, 95, 166, 0.17), transparent 74%);
}

.site-footer::after {
  width: 200px;
  height: 200px;
  left: -95px;
  bottom: -120px;
  background: radial-gradient(
    circle,
    rgba(42, 137, 230, 0.15),
    transparent 72%
  );
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.footer-partners {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-title {
  margin: 0;
  font-weight: 780;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-900);
}

.footer-text {
  margin: 0 0 8px;
  color: var(--muted);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.footer-logos img[data-partner="fep"] {
  height: 31px;
}

.footer-meta {
  margin: 0;
  color: rgba(71, 85, 105, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-meta strong {
  font-weight: 860;
  color: var(--blue-900);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.modal__dialog {
  position: relative;
  width: min(1100px, calc(100% - 28px));
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-20);
  border: 1px solid rgba(15, 95, 166, 0.18);
  box-shadow: 0 40px 110px rgba(2, 6, 23, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: calc(100vh - 48px);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(15, 95, 166, 0.14),
    rgba(15, 95, 166, 0.04)
  );
  border-bottom: 1px solid rgba(15, 95, 166, 0.12);
}

.modal__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue-950);
}

.icon-btn {
  border: 1px solid rgba(15, 95, 166, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.modal__body {
  padding: 10px;
}

.modal__body iframe {
  width: 100%;
  height: calc(100vh - 140px);
  border: 0;
  border-radius: var(--radius-16);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 95, 166, 0.12);
}

/* NoScript */
.noscript {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(15, 95, 166, 0.12);
}

/*
1) Sidebar desktop en @media (min-width: 1180px): .site-nav y .nav-list.
2) Tile cuadrado enterprise: .nav-link (70px + aspect-ratio 1/1).
3) Iconos ampliados: .nav-link__icon y .nav-link__icon svg.
4) Estados accesibles: hover, focus-visible y [aria-current="page"].
5) Motion reducido: override global en @media (prefers-reduced-motion: reduce).
*/
/* Desktop floating nav cubes */
@media (min-width: 1180px) {
  .topbar {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand {
    max-width: 980px;
  }

  .brand-copy {
    max-width: 840px;
  }

  .brand-title {
    font-size: clamp(1.95rem, 2.15vw, 2.52rem);
    line-height: 1.11;
  }

  .site-nav {
    --dock-tile-size: 78px;
    --dock-tile-gap: 12px;
    position: fixed;
    left: 14px;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 75;
    width: calc(var(--dock-tile-size) + 8px);
    padding: 0;
    justify-items: center;
    isolation: auto;
  }

  .site-nav::before {
    content: none;
  }

  .site-nav::after {
    content: none;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-list {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--dock-tile-gap);
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list li,
  .site-nav .station-chip-item {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    opacity: 1;
    animation: none;
  }

  .nav-link {
    width: var(--dock-tile-size);
    aspect-ratio: 1 / 1;
    min-width: var(--dock-tile-size);
    min-height: var(--dock-tile-size);
    height: var(--dock-tile-size);
    padding: 8px 6px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(241, 248, 255, 0.9) 100%
    );
    border: 1px solid var(--border-soft);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 8px 18px rgba(15, 23, 42, 0.08);
    color: var(--text-900);
    opacity: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(7px) saturate(130%);
    backdrop-filter: blur(7px) saturate(130%);
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease,
      background 180ms ease,
      color 180ms ease;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
      radial-gradient(
        110% 74% at 25% 10%,
        rgba(255, 255, 255, 0.76),
        rgba(255, 255, 255, 0.06) 72%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.24),
        rgba(255, 255, 255, 0.02)
      );
    opacity: 0.82;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .nav-link::after {
    content: none;
  }

  .nav-link__icon {
    display: inline-grid;
    place-items: center;
    color: currentColor;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    width: 27px;
    height: 27px;
    margin: 0;
    transform: none;
    transition:
      transform 180ms ease,
      color 180ms ease;
  }

  .nav-link__icon svg {
    width: 27px;
    height: 27px;
    stroke: var(--brand-600);
    stroke-width: 2.05;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
  }

  .nav-link__label {
    display: block;
    color: var(--text-900);
    font-size: 0.6rem;
    letter-spacing: 0.012em;
    line-height: 1.06;
    font-weight: 700;
    margin-top: 0;
    text-shadow: none;
    text-decoration: none;
  }

  .nav-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(231, 243, 255, 0.94) 100%
    );
    border-color: rgba(15, 95, 166, 0.34);
    box-shadow:
      0 2px 6px rgba(15, 23, 42, 0.1),
      0 12px 26px rgba(15, 23, 42, 0.12);
    color: var(--text-900);
  }

  .nav-link:focus-visible {
    outline: 2px solid rgba(11, 95, 255, 0.62);
    outline-offset: 2px;
    border-color: rgba(15, 95, 166, 0.44);
    box-shadow:
      var(--shadow-md),
      0 0 0 3px rgba(11, 95, 255, 0.12);
  }

  .nav-link:hover .nav-link__icon,
  .nav-link:focus-visible .nav-link__icon {
    transform: scale(1.08);
  }

  .nav-link:hover::before,
  .nav-link:focus-visible::before {
    opacity: 1;
  }

  .nav-link[aria-current="page"],
  .nav-link[aria-current="true"],
  .nav-link.is-active {
    color: var(--text-900);
    background: linear-gradient(
      165deg,
      rgba(226, 241, 255, 0.96) 0%,
      rgba(210, 232, 252, 0.92) 100%
    );
    border-color: rgba(15, 95, 166, 0.52);
    box-shadow:
      0 2px 7px rgba(15, 23, 42, 0.11),
      0 14px 28px rgba(15, 23, 42, 0.13),
      0 0 0 3px rgba(11, 95, 255, 0.12);
    animation: none;
  }

  .nav-link[aria-current="page"] .nav-link__icon svg,
  .nav-link[aria-current="true"] .nav-link__icon svg,
  .nav-link.is-active .nav-link__icon svg {
    stroke: var(--brand-600);
  }

  .nav-link[aria-current="page"] .nav-link__label,
  .nav-link[aria-current="true"] .nav-link__label,
  .nav-link.is-active .nav-link__label {
    color: var(--text-900);
    font-weight: 760;
  }

  .nav-link[aria-current="page"] .nav-link__icon,
  .nav-link[aria-current="true"] .nav-link__icon,
  .nav-link.is-active .nav-link__icon {
    transform: scale(1.06);
  }

  .site-nav .station-chip.user-dock-tile,
  .site-nav #station-switch-trigger.station-chip {
    width: var(--dock-tile-size);
    min-width: var(--dock-tile-size);
    height: var(--dock-tile-size);
    min-height: var(--dock-tile-size);
    border-radius: 16px;
    padding: 8px 6px;
    gap: 5px;
  }

  .site-nav .station-chip__meta {
    gap: 1px;
  }

  .site-nav .station-chip__kicker {
    font-size: 8px;
  }

  .site-nav .station-chip__label.user-dock-tile__label {
    max-width: calc(var(--dock-tile-size) - 12px);
    font-size: 9.2px;
    line-height: 1.04;
  }

  .site-nav .station-chip--admin .station-chip__label.user-dock-tile__label,
  .site-nav
    #station-switch-trigger.station-chip.station-chip--admin
    .station-chip__label.user-dock-tile__label {
    max-width: calc(var(--dock-tile-size) - 8px);
    font-size: 8.6px;
    line-height: 1.02;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-items: center;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .brand-ribbon {
    width: 74px;
    height: 74px;
  }

  .brand-title {
    font-size: clamp(1.44rem, 3vw, 1.96rem);
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .partner-logo,
  .partner-pill {
    width: 142px;
    height: 50px;
  }

  .logo-strip__inner,
  .partners-strip {
    overflow-x: clip;
    justify-content: center;
    flex-wrap: wrap;
    scroll-snap-type: none;
  }

  .phase-top {
    gap: 6px 8px;
  }

  .timeline {
    padding-left: 20px;
    gap: 12px;
  }

  .timeline::before {
    left: 6px;
  }

  .phase-card::before {
    left: -18px;
  }

  .phase-stage {
    font-size: 0.69rem;
    padding: 4px 9px;
  }

  .phase-period time {
    font-size: 0.92rem;
    padding: 7px 12px;
    white-space: normal;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  body.page-home #inicio.section {
    padding-bottom: 28px;
  }

  body.page-home #guias.section {
    padding-top: 30px;
  }

  .hero-left {
    min-height: 0;
    gap: 10px;
  }

  .hero-highlights {
    gap: 6px;
  }

  .hero-highlights li {
    font-size: 0.92rem;
  }

  .hero-action-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .hero-action-card__btn {
    width: 100%;
    justify-content: center;
  }

  .hero-right {
    gap: 10px;
  }

  .mini-panels {
    grid-template-columns: 1fr 1fr;
  }

  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .home-algo__stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-algo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-algo__field--full {
    grid-column: 1 / -1;
  }

  .home-algo__field--half {
    grid-column: span 1;
  }

  .role-card__header {
    min-height: unset;
    grid-template-rows: auto auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-partners {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body::before,
  body::after {
    display: none;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 78px;
    right: 14px;
  }

  .back-to-top__icon {
    width: 24px;
    height: 24px;
  }

  .back-to-top__icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border-radius: var(--radius-16);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 95, 166, 0.12);
    box-shadow: var(--shadow-sm);
  }

  .nav-list.is-open {
    display: flex;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }

  .home-algo {
    padding: 16px;
  }

  .home-algo__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-algo__stepper {
    grid-template-columns: 1fr;
  }

  .home-algo__grid {
    grid-template-columns: 1fr;
  }

  .home-algo__field--half {
    grid-column: 1 / -1;
  }

  .home-algo__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-algo__actions .btn {
    width: 100%;
  }

  .home-algo__modal-card {
    margin-top: 8vh;
    width: min(94vw, 660px);
    padding: 16px;
  }

  .home-algo__modal-summary {
    max-height: 36vh;
  }

  .home-algo__modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-algo__modal-actions .btn {
    width: 100%;
  }

  .role-link {
    min-height: 78px;
    grid-template-columns: 46px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 10px 12px;
  }

  .role-actions {
    grid-auto-rows: minmax(78px, auto);
  }

  .role-link__icon {
    width: 40px;
    height: 40px;
  }

  .role-link__icon svg {
    width: 20px;
    height: 20px;
  }

  .role-link__label {
    font-size: 0.95rem;
  }

  .mini-panels {
    grid-template-columns: 1fr;
  }

  .timeline-placeholder {
    padding: 18px 14px 16px;
  }

  .timeline {
    padding-left: 14px;
    gap: 10px;
  }

  .timeline::before {
    left: 4px;
    width: 2px;
  }

  .phase-card {
    padding: 13px 12px 12px;
  }

  .phase-top {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .phase-card::before {
    left: -13px;
    top: 17px;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px rgba(42, 137, 230, 0.18);
  }

  .phase-period time {
    font-size: 0.84rem;
    width: 100%;
    justify-content: flex-start;
    padding: 7px 10px;
    white-space: normal;
    text-align: left;
  }

  .phase-title {
    font-size: 1rem;
  }

  .phase-objective,
  .phase-highlights,
  .phase-details__list {
    font-size: 0.88rem;
  }

  .phase-details__summary {
    font-size: 0.81rem;
    padding: 4px 9px;
  }

  .phase-details__list {
    padding: 9px 10px 9px 16px;
  }

  .brand {
    gap: 10px;
    justify-content: center;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 0;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-ribbon {
    width: 52px;
    height: 52px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-title {
    font-size: clamp(1.2rem, 5.2vw, 1.42rem);
    line-height: 1.14;
  }

  .hero-title {
    font-size: 1.92rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .partner-logo,
  .partner-pill {
    width: 136px;
    height: 50px;
    padding: 6px;
  }

  .partner-logo img,
  .partner-pill img {
    width: 108px;
    height: 31px;
  }

  .partner-logo[data-partner="fep"] img,
  .partner-pill[data-partner="fep"] img {
    width: 124px;
    height: 34px;
  }
}

/* Workflow / Componentes */
.page-workflow .wf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-workflow .wf-section-head__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-workflow .wf-role-legend {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.page-workflow .wf-info-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 95, 166, 0.32);
  border-radius: 999px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.96),
    rgba(232, 244, 255, 0.9)
  );
  color: var(--blue-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(8, 38, 74, 0.14);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.page-workflow .wf-info-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 95, 166, 0.46);
  box-shadow: 0 8px 16px rgba(8, 38, 74, 0.2);
}

.page-workflow .wf-role-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(300px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: var(--radius-16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: #fff;
  box-shadow: 0 16px 26px rgba(8, 38, 74, 0.3);
}

.page-workflow .wf-role-popover[hidden] {
  display: none;
}

.page-workflow .wf-role-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: var(--blue-900);
  transform: translate(-50%, -50%) rotate(45deg);
}

.page-workflow .wf-role-popover__title {
  margin: 0 0 8px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
}

.page-workflow .wf-role-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-workflow .wf-role-popover__list li {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
}

.page-workflow .wf-role-popover__list strong {
  font-weight: 600;
}

.page-workflow .wf-step-card .wf-step-card__badge,
.page-workflow .wf-step-card .wf-step-card__roles-label,
.page-workflow .wf-step-card .wf-decision__title {
  font-weight: 600;
}

.page-workflow .wf-step-card .wf-step-card__desc,
.page-workflow .wf-step-card .wf-step-card__list,
.page-workflow .wf-step-card .wf-branch__desc {
  font-weight: 400;
}

.page-workflow .wf-step-card .wf-branch__action {
  font-weight: 500;
}

.page-workflow .wf-step-card .wf-role-chip {
  text-decoration: none;
  border-bottom: 0;
}

@media (max-width: 720px) {
  .page-workflow .wf-section-head {
    align-items: flex-start;
  }

  .page-workflow .wf-role-popover {
    width: min(300px, calc(100% - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-workflow .wf-info-btn,
  .page-workflow .wf-role-popover {
    transition: none;
  }
}

/* Home: Registro + reveal polish */
.page-home [data-animate] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
  transition-delay: var(--delay, 0ms);
}

.page-home [data-animate].is-inview {
  opacity: 1;
  transform: none;
}

.page-home .role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.page-home .role-grid.role-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.page-home .role-grid.role-grid--registro-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.page-home .role-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  overflow: visible;
  padding: 24px 22px 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.page-home .role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 95, 166, 0.26);
  box-shadow:
    0 18px 30px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.page-home .role-card__header {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
}

.page-home .role-card__title {
  margin: 0;
  line-height: 1.15;
}

.page-home .role-card__desc {
  margin: 6px 0 0;
  color: var(--muted);
}

.page-home .role-card__actions,
.page-home .role-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .role-card--single-nohead .role-card__actions,
.page-home .role-card--single-nohead .role-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 1081px) {
  .page-home .role-card--single-nohead .role-card__actions,
  .page-home .role-card--single-nohead .role-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px;
  }
}

.page-home .action-pill,
.page-home .role-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 95, 166, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(8, 38, 74, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.page-home .action-pill::before,
.page-home .action-pill::after,
.page-home .role-link::before,
.page-home .role-link::after {
  display: none;
}

.page-home .action-pill:hover,
.page-home .action-pill:focus-visible,
.page-home .role-link:hover,
.page-home .role-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 95, 166, 0.36);
  box-shadow: 0 16px 24px rgba(8, 38, 74, 0.16);
}

.page-home .action-pill:active,
.page-home .role-link:active {
  transform: translateY(0) scale(0.99);
}

.page-home .action-pill:focus-visible,
.page-home .role-link:focus-visible {
  outline: 3px solid rgba(42, 137, 230, 0.25);
  outline-offset: 2px;
}

.page-home .action-pill__icon,
.page-home .role-link__icon {
  width: 44px;
  height: 44px;
}

.page-home .action-pill__label,
.page-home .role-link__label {
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .action-pill__chev,
.page-home .role-link__chev {
  width: 28px;
  height: 28px;
  justify-self: center;
}

.page-home .nav-link.is-active,
.page-home .nav-link[aria-current="true"] {
  box-shadow:
    0 12px 24px rgba(11, 58, 102, 0.24),
    0 0 0 3px rgba(42, 137, 230, 0.14);
}

@media (max-width: 1080px) {
  .page-home .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .role-grid.role-grid--registro-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-home .role-grid {
    grid-template-columns: 1fr;
  }

  .page-home .role-grid.role-grid--registro-split {
    grid-template-columns: 1fr;
  }

  .page-home .role-card--single-nohead {
    padding: 14px 12px 12px;
  }

  .page-home .role-card--single-nohead .role-card__actions,
  .page-home .role-card--single-nohead .role-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-home .role-card--single-nohead .action-pill,
  .page-home .role-card--single-nohead .role-link {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 104px;
    gap: 8px;
    padding: 10px 8px;
  }

  .page-home .role-card--single-nohead .action-pill__icon,
  .page-home .role-card--single-nohead .role-link__icon {
    width: 36px;
    height: 36px;
  }

  .page-home .role-card--single-nohead .action-pill__label,
  .page-home .role-card--single-nohead .role-link__label {
    font-size: 0.8rem;
    line-height: 1.18;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .page-home .role-card--single-nohead .action-pill__chev,
  .page-home .role-card--single-nohead .role-link__chev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .embed-skeleton {
    animation: none;
  }
}

/* Home mobile polish: anti-overflow + partners */
.page-home {
  width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .page-home {
    overflow-x: hidden;
  }
}

.page-home .site-header,
.page-home .site-main,
.page-home .logo-strip,
.page-home .logo-strip .container {
  /* Evita desborde horizontal por pseudo-elementos decorativos del header */
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .page-home .site-header,
  .page-home .site-main,
  .page-home .logo-strip,
  .page-home .logo-strip .container {
    overflow-x: hidden;
  }
}

.page-home :where(img, svg, video, canvas) {
  max-width: 100%;
  height: auto;
}

.page-home iframe {
  max-width: 100%;
}

.page-home
  :where(
    .container,
    .card,
    .section,
    .hero,
    .pill-grid,
    .mini-panels,
    .embed-card,
    .embed-shell,
    .logo-strip__inner,
    .partners-strip
  ) {
  min-width: 0;
}

@media (max-width: 768px) {
  .page-home .partners-strip,
  .page-home .partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .page-home .partner-logo,
  .page-home .partner-pill {
    width: 100%;
    height: 44px;
    padding: 6px 10px;
    border-radius: 14px;
  }

  .page-home .partner-logo img,
  .page-home .partner-pill img {
    max-height: 22px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 360px) {
  .page-home .partners-strip,
  .page-home .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Home mobile-first polish: header fijo + partners dinámicos + dock inferior */
@media (max-width: 768px) {
  .page-home .nav-toggle {
    display: none !important;
  }

  .page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-home .site-header::before,
  .page-home .site-header::after {
    display: none;
  }

  .page-home .topbar {
    position: relative;
    z-index: 3;
    width: min(100% - 20px, 520px);
    padding-top: calc(8px + var(--safe-top));
    padding-bottom: 8px;
    background: linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.96),
      rgba(231, 244, 255, 0.92)
    );
    border: 1px solid rgba(15, 95, 166, 0.14);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.14);
  }

  .page-home .site-header.is-scrolled .topbar {
    gap: 10px;
    padding-top: calc(8px + var(--safe-top));
    padding-bottom: 8px;
  }

  .page-home .site-header.is-scrolled .brand-mark,
  .page-home .site-header.is-scrolled .brand-ribbon {
    transform: none;
  }

  .page-home .logo-strip,
  .page-home .partners-bar {
    position: relative;
    z-index: 1;
    max-height: 126px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-height 240ms ease,
      opacity 200ms ease,
      transform 240ms ease,
      border-color 200ms ease;
  }

  .page-home .logo-strip .container,
  .page-home .partners-bar .container {
    width: min(100% - 20px, 520px);
  }

  .page-home .site-header.partners-collapsed .logo-strip,
  .page-home .site-header.partners-collapsed .partners-bar {
    max-height: 0;
    opacity: 0;
    transform: translateY(-16px);
    border-top-color: transparent;
  }

  .page-home .site-header.partners-expanded .logo-strip,
  .page-home .site-header.partners-expanded .partners-bar {
    max-height: 126px;
    opacity: 1;
    transform: translateY(0);
  }

  .page-home .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--safe-bottom) + 10px);
    margin: 0;
    padding: 0 12px;
    width: auto;
    z-index: 130;
    display: flex;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
    transform: translateZ(0);
  }

  .page-home .site-nav .nav-list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    width: min(520px, calc(100% - 24px));
    max-width: 100%;
    gap: 6px;
    margin: 0;
    padding: 8px;
    min-height: 68px;
    border-radius: 20px;
    border: 1px solid rgba(15, 95, 166, 0.22);
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(229, 242, 255, 0.9) 100%
    );
    box-shadow:
      0 16px 28px rgba(2, 6, 23, 0.2),
      0 1px 0 rgba(255, 255, 255, 0.88) inset;
    -webkit-backdrop-filter: blur(10px) saturate(135%);
    backdrop-filter: blur(10px) saturate(135%);
    pointer-events: auto;
  }

  .page-home .site-nav .nav-list li {
    min-width: 0;
    list-style: none;
  }

  .page-home .site-nav .nav-link {
    width: 100%;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 14px;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 95, 166, 0.18);
    box-shadow:
      0 8px 14px rgba(2, 6, 23, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.84) inset;
    transform: none;
  }

  .page-home .site-nav .nav-link::before,
  .page-home .site-nav .nav-link::after {
    display: none;
  }

  .page-home .site-nav .nav-link__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--brand-600);
  }

  .page-home .site-nav .nav-link__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.05;
  }

  .page-home .site-nav .nav-link__label {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 0.56rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--text-900);
    text-transform: none;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-home .site-nav .nav-link[aria-current="true"],
  .page-home .site-nav .nav-link.is-active {
    background: linear-gradient(
      165deg,
      rgba(223, 239, 255, 0.98) 0%,
      rgba(207, 231, 253, 0.94) 100%
    );
    border-color: rgba(15, 95, 166, 0.38);
    box-shadow:
      0 10px 18px rgba(11, 58, 102, 0.2),
      0 0 0 2px rgba(42, 137, 230, 0.16);
  }

  .page-home .site-main,
  .page-home main.site-main,
  .page-home #contenido.site-main {
    padding-top: var(
      --home-mobile-header-offset,
      calc(var(--mobile-header-h) + 112px + var(--safe-top))
    );
    padding-bottom: calc(var(--mobile-dock-h) + 18px + var(--safe-bottom));
  }

  .page-home .section-anchor {
    scroll-margin-top: calc(var(--mobile-header-h) + var(--safe-top) + 12px);
  }

  .page-home #kpis .embed-card,
  .page-home #cronograma .embed-card {
    padding: 10px;
  }

  .page-home #kpis .embed-shell--looker {
    height: clamp(250px, 48vh, 340px);
    min-height: 250px;
    max-height: 340px;
    aspect-ratio: auto;
  }

  .page-home #cronograma .embed-shell--calendar {
    height: clamp(360px, 64vh, 500px);
    min-height: 360px;
    max-height: 500px;
    aspect-ratio: auto;
  }

  .page-home .back-to-top {
    width: 44px;
    height: 44px;
    right: 10px;
    bottom: calc(var(--mobile-dock-h) + 14px + var(--safe-bottom));
  }
}

@media (max-width: 390px) {
  .page-home .site-nav .nav-list {
    gap: 5px;
    padding: 7px;
    width: min(520px, calc(100% - 20px));
  }

  .page-home .site-nav .nav-link {
    min-height: 50px;
    padding-inline: 3px;
  }

  .page-home .site-nav .nav-link__label {
    font-size: 0.5rem;
    line-height: 1;
  }
}

/* ============================================================
   MOBILE SOLID UX + PREMIUM FIXED HEADER + COMPACT MODE
   ============================================================ */
:root {
  --topbar-h: 78px;
  --dock-h: 76px;
  --h-offset: 90px;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  body {
    touch-action: pan-y;
  }

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

  .page-home,
  .page-home .site-main,
  .page-home #contenido.site-main,
  .page-home .container,
  .page-home .site-header,
  .page-home .logo-strip,
  .page-home .partners-bar,
  .page-home .hero,
  .page-home .embed-shell {
    max-width: 100%;
  }

  .page-home img,
  .page-home svg,
  .page-home video,
  .page-home canvas {
    max-width: 100%;
    height: auto;
  }

  .page-home iframe {
    max-width: 100%;
  }

  body.page-home,
  body.page-home .site-main,
  body.page-home #contenido.site-main {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
  }

  body.page-home header.site-header.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  body.page-home header.site-header.site-topbar::before,
  body.page-home header.site-header.site-topbar::after {
    display: none;
  }

  body.page-home #siteTopbar.site-topbar__inner {
    position: relative;
    z-index: 2;
    width: min(100% - 20px, 520px);
    margin-inline: auto;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 10px;
    padding-inline: 12px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    border: 1px solid rgba(17, 49, 92, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 24px rgba(12, 36, 64, 0.09);
    will-change: padding, box-shadow, background;
    transition:
      padding 190ms ease,
      box-shadow 190ms ease,
      background 190ms ease;
  }

  body.page-home #siteTopbar.site-topbar__inner nav.primary-nav,
  body.page-home .site-nav.is-mobile-source-hidden {
    display: none !important;
  }

  body.page-home #siteTopbar .brand {
    padding-inline: 0;
  }

  body.page-home #siteTopbar .brand-title,
  body.page-home #siteTopbar h1,
  body.page-home #siteTopbar .site-title {
    margin: 0;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    max-width: 18ch;
    margin-inline: auto;
  }

  body.page-home
    header.site-header.site-topbar.is-compact
    #siteTopbar.site-topbar__inner,
  body.page-home.is-header-compact #siteTopbar.site-topbar__inner {
    /* Mantener proporción original del header también al scrollear */
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 10px;
    box-shadow: 0 10px 24px rgba(12, 36, 64, 0.09);
  }

  body.page-home
    header.site-header.site-topbar.is-compact
    #siteTopbar
    .brand-title,
  body.page-home header.site-header.site-topbar.is-compact #siteTopbar h1,
  body.page-home
    header.site-header.site-topbar.is-compact
    #siteTopbar
    .site-title,
  body.page-home.is-header-compact #siteTopbar .brand-title,
  body.page-home.is-header-compact #siteTopbar h1,
  body.page-home.is-header-compact #siteTopbar .site-title {
    /* No reducir el H1 en mobile durante scroll */
    font-size: clamp(1.2rem, 5.2vw, 1.42rem);
    line-height: 1.14;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.page-home .logo-strip.partners-bar,
  body.page-home .partners-bar {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    padding: 4px 10px 8px;
    overflow: hidden;
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-height 220ms ease,
      opacity 190ms ease,
      transform 200ms ease,
      padding 190ms ease,
      margin 190ms ease;
  }

  body.page-home .logo-strip.partners-bar .container,
  body.page-home .partners-bar .container {
    width: min(100% - 20px, 520px);
  }

  body.page-home
    header.site-header.site-topbar.is-compact
    .logo-strip.partners-bar,
  body.page-home header.site-header.site-topbar.is-compact .partners-bar,
  body.page-home.is-header-compact .logo-strip.partners-bar,
  body.page-home.is-header-compact .partners-bar {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-bottom: 0;
    margin-top: 0;
    pointer-events: none;
  }

  #partner-logos.partners-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    padding: 2px 0;
  }

  #partner-logos.partners-strip > * {
    min-width: 0;
  }

  #partner-logos.partners-strip > a,
  #partner-logos.partners-strip > .partner,
  #partner-logos.partners-strip .partner-logo,
  #partner-logos.partners-strip .partner-pill {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 79, 145, 0.12);
    box-shadow: 0 6px 14px rgba(2, 44, 94, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #partner-logos.partners-strip .partner-logo img,
  #partner-logos.partners-strip .partner-pill img,
  #partner-logos.partners-strip img {
    width: auto !important;
    max-width: 100% !important;
    height: 22px;
    max-height: 22px;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: translateY(1px);
  }

  body.page-home #kpis .embed-shell--looker {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.4;
  }

  body.page-home #kpis #looker-iframe,
  body.page-home #kpis .embed-shell--looker .embed-iframe {
    height: 100% !important;
    pointer-events: none; /* evita scroll interno del iframe en mobile */
  }

  body.page-home #cronograma .embed-shell--calendar {
    height: clamp(390px, 52vh, 440px);
    min-height: 390px;
    max-height: 440px;
  }

  body.page-home .embed-shell .embed-iframe,
  body.page-home .embed-iframe {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
  }

  body.page-home main.site-main,
  body.page-home #contenido.site-main {
    padding-top: var(--home-mobile-header-offset, 0px) !important;
    padding-bottom: calc(
      var(--mobile-dock-h, 0px) + env(safe-area-inset-bottom, 0px) + 16px
    ) !important;
    transition: padding-top 220ms ease;
  }

  body.page-home #inicio,
  body.page-home #inicio.section,
  body.page-home #inicio.hero {
    margin-top: 0 !important;
    padding-top: 14px !important;
  }

  body.page-home nav#mobile-fixed-dock.mobile-fixed-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateZ(0) !important;
    width: min(520px, calc(100% - 24px)) !important;
    max-width: 520px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    z-index: 2100;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 40, 71, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(9, 40, 71, 0.16);
  }

  body.page-home nav#mobile-fixed-dock.mobile-fixed-dock[hidden] {
    display: none !important;
  }

  body.page-home #mobile-fixed-dock .mobile-dock-list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 10px;
    list-style: none;
  }

  body.page-home #mobile-fixed-dock .mobile-dock-list li {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  body.page-home #mobile-fixed-dock .nav-link {
    width: 62px;
    max-width: 100%;
    height: 58px;
    border-radius: 16px;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    gap: 3px;
    padding: 8px 6px 7px;
    box-sizing: border-box;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 95, 166, 0.18);
    -webkit-tap-highlight-color: transparent;
  }

  body.page-home #mobile-fixed-dock .nav-link__icon {
    display: grid !important;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--brand-600);
  }

  body.page-home #mobile-fixed-dock .nav-link__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }

  body.page-home #mobile-fixed-dock .nav-link__label {
    font-size: 10px;
    line-height: 1.05;
    text-align: center;
    opacity: 0.92;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  body.page-home #mobile-fixed-dock .nav-link:focus-visible {
    outline: 2px solid rgba(42, 137, 230, 0.72);
    outline-offset: 2px;
  }

  body.page-home #mobile-fixed-dock .nav-link[aria-current="true"],
  body.page-home #mobile-fixed-dock .nav-link.is-active {
    background: linear-gradient(
      165deg,
      rgba(223, 239, 255, 0.98) 0%,
      rgba(207, 231, 253, 0.94) 100%
    );
    border-color: rgba(15, 95, 166, 0.38);
    box-shadow:
      0 10px 18px rgba(11, 58, 102, 0.2),
      0 0 0 2px rgba(42, 137, 230, 0.16);
  }

  body.page-home .back-to-top {
    bottom: calc(
      var(--mobile-dock-h, 0px) + env(safe-area-inset-bottom, 0px) + 14px
    ) !important;
  }

  html {
    scroll-padding-top: var(--h-offset, 84px) !important;
  }

  body.page-home section[id] {
    scroll-margin-top: var(--h-offset, 84px);
  }
}

/* =========================
   Mobile App Shell (Premium)
   ========================= */
@media (max-width: 768px) {
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --shell-gutter: 12px;
    --shell-radius: 18px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

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

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }

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

  .container,
  .site-main,
  section,
  header,
  footer {
    max-width: 100%;
  }

  .container * {
    min-width: 0;
  }

  body.page-home .site-header.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 53, 92, 0.1);
    box-shadow: 0 10px 30px rgba(7, 29, 56, 0.1);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  body.page-home .site-header.site-topbar::before,
  body.page-home .site-header.site-topbar::after {
    display: none;
  }

  body.page-home .site-topbar__inner {
    width: min(100% - (var(--shell-gutter) * 2), 520px);
    margin-inline: auto;
    padding: 10px var(--shell-gutter) 8px;
  }

  body.page-home .site-header h1,
  body.page-home .site-header .site-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.05;
  }

  body.page-home .partners-bar {
    overflow: hidden;
    max-height: 70px;
    padding: 0;
    margin: 0;
  }

  body.page-home #partner-logos.partners-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 6px var(--shell-gutter) 10px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo,
  body.page-home #partner-logos.partners-strip > .partner-pill,
  body.page-home #partner-logos.partners-strip > * {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: calc((100% - 30px) / 4);
    height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 53, 92, 0.1);
    box-shadow: 0 6px 18px rgba(7, 29, 56, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home #partner-logos.partners-strip img {
    width: auto !important;
    height: auto !important;
    max-height: 18px;
    max-width: 72px;
    object-fit: contain;
    display: block;
    transform: none;
  }

  body.page-home .site-header.is-compact .site-topbar__inner {
    padding: 8px var(--shell-gutter) 6px;
  }

  body.page-home .site-header.is-compact h1,
  body.page-home .site-header.is-compact .site-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-home .site-header.partners-collapsed .partners-bar,
  body.page-home .site-header.is-compact .partners-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  body.page-home .site-header,
  body.page-home .site-topbar__inner,
  body.page-home .partners-bar {
    transition:
      padding 180ms ease,
      box-shadow 180ms ease,
      opacity 180ms ease,
      max-height 180ms ease;
  }

  body.page-home .home-hero,
  body.page-home .home-card,
  body.page-home .hero {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  /* Cierre visual del final de página: sin hueco extra bajo el logo circular */
  body.page-home .brand-seal {
    padding: 8px 0 2px;
  }

  body.page-home main.site-main,
  body.page-home #contenido.site-main {
    padding-bottom: calc(
      var(--mobile-dock-h, 84px) + var(--safe-bottom) + 8px
    ) !important;
  }

  body.page-home .mobile-fixed-dock {
    position: fixed !important;
    left: 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
    bottom: calc(8px + var(--safe-bottom)) !important;
    width: min(520px, calc(100% - (var(--shell-gutter) * 2))) !important;
    z-index: 1450 !important;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 53, 92, 0.12);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 29, 56, 0.16);
    padding: 10px;
    will-change: transform;
  }

  body.page-home .mobile-fixed-dock .mobile-dock-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.page-home .mobile-fixed-dock .mobile-dock-list li {
    display: flex;
    min-width: 0;
    justify-content: center;
  }

  body.page-home .mobile-fixed-dock .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
  }

  body.page-home .mobile-fixed-dock .nav-link__icon {
    width: 22px;
    height: 22px;
    display: grid !important;
    place-items: center;
  }

  body.page-home .mobile-fixed-dock .nav-link__label {
    font-size: 10px;
    line-height: 1;
    opacity: 0.85;
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-home .mobile-fixed-dock .nav-link.is-active,
  body.page-home .mobile-fixed-dock .nav-link[aria-current="true"] {
    background: rgba(13, 53, 92, 0.08);
    border: 1px solid rgba(13, 53, 92, 0.18);
  }

  body.page-home {
    padding-bottom: 0 !important;
  }

  body.page-home .back-to-top {
    bottom: calc(
      var(--mobile-dock-h, 84px) + var(--safe-bottom) + 20px
    ) !important;
    z-index: 1440;
  }

  html {
    scroll-padding-top: calc(var(--mobile-header-h, 120px) + 10px) !important;
  }

  body.page-home [id] {
    scroll-margin-top: calc(var(--mobile-header-h, 120px) + 10px) !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body.page-home .site-header,
  body.page-home .site-topbar__inner,
  body.page-home .partners-bar {
    transition: none;
  }
}

/* =========================
   Mobile Layout System (520)
   ========================= */
@media (max-width: 520px) {
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --shell-gutter: 12px;
    --shell-radius: 18px;
    --mobile-header-h: 90px;
    --mobile-dock-h: 84px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }

  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

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

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

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

  .container,
  .site-main,
  .wf-main,
  .roles-main,
  .kf-main,
  .page-algoritmo__main,
  section,
  header,
  footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .container * {
    min-width: 0;
  }

  body.page-home .site-header.site-topbar,
  body.page-internal .site-header.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(13, 53, 92, 0.1);
    box-shadow: 0 10px 30px rgba(7, 29, 56, 0.1);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  body.page-home .site-header.site-topbar::before,
  body.page-home .site-header.site-topbar::after,
  body.page-internal .site-header.site-topbar::before,
  body.page-internal .site-header.site-topbar::after {
    display: none;
  }

  body.page-home .site-topbar__inner,
  body.page-internal .site-header.site-topbar > .container,
  body.page-internal .site-header.site-topbar > .page-algoritmo__container {
    width: min(100% - (var(--shell-gutter) * 2), 520px);
    margin-inline: auto;
    padding: 10px var(--shell-gutter) 8px;
  }

  body.page-home .site-header h1,
  body.page-home .site-header .site-title,
  body.page-internal .site-header h1,
  body.page-internal .site-header [class*="title"] {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.05;
  }

  body.page-home h2,
  body.page-internal h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
  }

  body.page-home .section-subtitle,
  body.page-internal .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.page-home .site-header.is-compact .site-topbar__inner,
  body.page-internal.is-header-compact .site-header.site-topbar > .container,
  body.page-internal.is-header-compact
    .site-header.site-topbar
    > .page-algoritmo__container {
    padding: 8px var(--shell-gutter) 6px;
  }

  body.page-home .site-header.is-compact h1,
  body.page-home .site-header.is-compact .site-title,
  body.page-internal.is-header-compact .site-header h1,
  body.page-internal.is-header-compact .site-header [class*="title"] {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-internal .site-header :is(.wf-note, .kf-note, .roles-hero__meta) {
    max-height: 180px;
    opacity: 1;
    overflow: hidden;
    transition:
      max-height 180ms ease,
      opacity 180ms ease,
      margin 180ms ease,
      padding 180ms ease;
  }

  body.page-internal.is-header-compact
    .site-header
    :is(.wf-note, .kf-note, .roles-hero__meta) {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }

  body.page-internal.is-header-compact
    .site-header
    :is(
      .wf-hero__subtitle,
      .kf-hero__subtitle,
      .roles-hero__subtitle,
      .page-algoritmo__subtitle
    ) {
    display: none;
  }

  body.page-home main.site-main,
  body.page-home #contenido.site-main,
  body.page-internal .site-main {
    padding-top: calc(var(--mobile-header-h, 90px) + 8px) !important;
    padding-bottom: calc(
      var(--mobile-dock-h, 84px) + var(--safe-bottom) + 18px
    ) !important;
  }

  body.page-home .home-hero,
  body.page-home .home-card,
  body.page-home .hero {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  body.page-home .partners-bar {
    overflow: hidden;
    max-height: 72px;
    padding: 0;
    margin: 0;
  }

  body.page-home #partner-logos.partners-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
    align-items: center;
    gap: 6px;
    padding: 6px var(--shell-gutter) 10px;
  }

  body.page-home #partner-logos.partners-strip > * {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 53, 92, 0.1);
    box-shadow: 0 6px 18px rgba(7, 29, 56, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home #partner-logos.partners-strip img {
    width: 100% !important;
    height: auto !important;
    max-height: 20px;
    max-width: 56px;
    object-fit: contain;
    display: block;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.page-home .site-header.partners-collapsed .partners-bar,
  body.page-home .site-header.is-compact .partners-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  body.page-home .site-header,
  body.page-home .site-topbar__inner,
  body.page-home .partners-bar,
  body.page-internal .site-header {
    transition:
      padding 180ms ease,
      box-shadow 180ms ease,
      opacity 180ms ease,
      max-height 180ms ease;
  }

  .mobile-fixed-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
    bottom: calc(8px + var(--safe-bottom)) !important;
    width: min(430px, calc(100% - 24px)) !important;
    z-index: 1450 !important;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 53, 92, 0.12);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 29, 56, 0.16);
    padding: 10px;
    will-change: transform;
  }

  .mobile-fixed-dock[hidden] {
    display: none !important;
  }

  .mobile-fixed-dock .mobile-dock-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-fixed-dock .mobile-dock-list li {
    display: flex;
    min-width: 0;
    justify-content: center;
  }

  .mobile-fixed-dock .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
  }

  .mobile-fixed-dock .nav-link__icon {
    width: 22px;
    height: 22px;
    display: grid !important;
    place-items: center;
  }

  .mobile-fixed-dock .nav-link__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }

  .mobile-fixed-dock .nav-link__label {
    font-size: 10px;
    line-height: 1;
    opacity: 0.85;
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-fixed-dock .nav-link.is-active,
  .mobile-fixed-dock .nav-link[aria-current="true"] {
    background: rgba(13, 53, 92, 0.08);
    border: 1px solid rgba(13, 53, 92, 0.18);
  }

  body.page-home .back-to-top,
  body.page-internal .back-to-top {
    bottom: calc(
      var(--mobile-dock-h, 84px) + var(--safe-bottom) + 12px
    ) !important;
    z-index: 1440;
  }

  body.page-home .brand-seal {
    padding: 8px 0 2px;
  }

  html {
    scroll-padding-top: calc(var(--mobile-header-h, 90px) + 10px) !important;
  }

  body.page-home [id],
  body.page-internal [id] {
    scroll-margin-top: calc(var(--mobile-header-h, 90px) + 10px) !important;
  }

  body.page-home .embed-shell {
    border-radius: 16px;
    overflow: clip;
    border: 1px solid rgba(13, 53, 92, 0.12);
    box-shadow: 0 12px 28px rgba(7, 29, 56, 0.12);
  }

  body.page-home #kpis .embed-shell--looker {
    height: auto;
    aspect-ratio: 1.34;
    min-height: 300px;
    max-height: 72vh;
  }

  body.page-home #cronograma .embed-shell--calendar {
    height: auto;
    aspect-ratio: 0.92;
    min-height: 350px;
    max-height: 68vh;
  }
}

@media (max-width: 370px) {
  body.page-home #partner-logos.partners-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 6px;
    padding-bottom: 8px;
  }

  body.page-home #partner-logos.partners-strip > * {
    flex: 0 0 auto;
    min-width: 82px;
    scroll-snap-align: center;
  }
}

@media (min-width: 521px) {
  body.page-internal .site-header.site-topbar {
    position: relative;
    top: auto;
    z-index: 1;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  body.page-internal .site-header.site-topbar::before,
  body.page-internal .site-header.site-topbar::after {
    display: none;
  }

  .mobile-fixed-dock.mobile-fixed-dock--internal {
    display: none !important;
  }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  body.page-home .site-header,
  body.page-home .site-topbar__inner,
  body.page-home .partners-bar,
  body.page-internal .site-header {
    transition: none;
  }
}

/* Hotfix mobile: asegurar visibilidad real de logos de partners bajo header */
@media (max-width: 520px) {
  body.page-home #partner-logos.partners-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: center;
    justify-items: stretch;
    padding: 6px var(--shell-gutter) 9px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo,
  body.page-home #partner-logos.partners-strip > .partner-pill,
  body.page-home #partner-logos.partners-strip > a,
  body.page-home #partner-logos.partners-strip > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 7px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(13, 53, 92, 0.11);
    box-shadow: 0 4px 10px rgba(7, 29, 56, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo img,
  body.page-home #partner-logos.partners-strip > .partner-pill img,
  body.page-home #partner-logos.partners-strip img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 20px !important;
    object-fit: contain;
    object-position: center;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }

  /* Ajuste óptico por marca para que el peso visual se vea parejo */
  body.page-home
    #partner-logos.partners-strip
    > .partner-logo[data-partner="fep"]
    img {
    max-width: 62px !important;
    max-height: 19px !important;
  }

  body.page-home
    #partner-logos.partners-strip
    > .partner-logo[data-partner="gedyt"]
    img {
    max-width: 70px !important;
    max-height: 18px !important;
  }

  body.page-home
    #partner-logos.partners-strip
    > .partner-logo[data-partner="merck"]
    img {
    max-width: 56px !important;
    max-height: 20px !important;
  }

  body.page-home
    #partner-logos.partners-strip
    > .partner-logo[data-partner="gcba"]
    img {
    max-width: 68px !important;
    max-height: 18px !important;
  }

  /* Fine tune KPI mobile: elimina gap inferior sin cortar el dashboard */
  body.page-home #kpis .embed-card {
    padding: 9px !important;
  }

  body.page-home #kpis .embed-shell--looker {
    height: auto !important;
    aspect-ratio: 1.34 !important;
    min-height: clamp(238px, 58vw, 260px) !important;
    max-height: 62vh !important;
  }
}

/* =====================================================================
   Auth Gatekeeper Module (auth-* / user-*)
   ===================================================================== */
:root {
  --ppccr-blue: #0b5ed7;
  --app-header-h: 0px;
  --user-banner-h: 34px;
  --user-banner-gap-mobile: 12px;
  --mobile-shell-blue-gradient: linear-gradient(
    180deg,
    #0a63dc 0%,
    #0a53b8 52%,
    #0949a3 100%
  );
  --mobile-shell-blue-border: rgba(146, 198, 255, 0.34);
  --mobile-header-shell-max: 560px;
  --mobile-header-shell-gutter: 6px;
  --mobile-header-shell-radius: 22px;
  --mobile-header-shell-bleed: 12px;
  --mobile-header-shell-shadow:
    0 16px 34px rgba(11, 94, 215, 0.32), 0 4px 12px rgba(8, 74, 169, 0.24);
}

/* Diseño sólido global */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg,
iframe {
  max-width: 100%;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 16px
    calc(20px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
  animation: auth-gate-fade-in 220ms ease;
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-gate.auth-gate--closing,
.auth-gate.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: min(92vw, 520px);
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.2),
    0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
  animation: auth-card-fade-in 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

.auth-gate.auth-gate--closing .auth-card,
.auth-gate.is-hiding .auth-card {
  transform: translateY(6px);
  opacity: 0;
}

.auth-header {
  padding: 18px 22px 14px;
  background: linear-gradient(
    180deg,
    rgba(233, 245, 255, 0.92),
    rgba(255, 255, 255, 0.98)
  );
  border-bottom: 1px solid rgba(11, 94, 215, 0.14);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-brand__logo,
.auth-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.auth-brand__copy {
  min-width: 0;
  text-align: left;
}

.auth-brand__kicker {
  display: block;
  margin: 0 0 4px;
  color: #3b5e86;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-brand__title,
.auth-title {
  margin: 0;
  color: var(--ppccr-blue, #0b3a6e);
  font-weight: 800;
  font-size: clamp(1.06rem, 1.74vw, 1.24rem);
  line-height: 1.12;
}

.auth-brand__subtitle,
.auth-subtitle {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.2;
}

.auth-section {
  padding: 18px 22px 20px;
}

.auth-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.auth-grid.is-error {
  animation: ppccr-shake 0.35s ease;
}

.auth-station,
.auth-tile {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 92px;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  border: 1px solid rgba(11, 90, 179, 0.18);
  background: #eaf4ff;
  color: #0b3e72;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  padding: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

.auth-station span,
.auth-station,
.auth-tile span,
.auth-tile {
  font-weight: 700;
}

.auth-station:hover,
.auth-tile:hover {
  transform: translateY(-1px);
}

.auth-station:active,
.auth-tile:active {
  transform: translateY(0);
}

.auth-station.is-selected,
.auth-station[aria-pressed="true"],
.auth-tile.is-selected,
.auth-tile[aria-pressed="true"] {
  background: var(--ppccr-blue, #0b5ed7);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(11, 94, 215, 0.22);
}

.auth-station:focus-visible,
.auth-tile:focus-visible,
.auth-input:focus-visible,
.auth-btn:focus-visible,
.auth-passToggle:focus-visible {
  outline: 3px solid rgba(11, 94, 215, 0.28);
  outline-offset: 2px;
}

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

.auth-label {
  display: block;
  margin-bottom: 7px;
  color: #0f2f53;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-inputWrap {
  position: relative;
}

#authPass,
.auth-input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  padding: 0 46px 0 12px;
  font: inherit;
  font-size: 0.95rem;
  color: #10253d;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#authPass:disabled,
.auth-input:disabled {
  cursor: not-allowed;
  color: rgba(15, 23, 42, 0.5);
  background: rgba(241, 245, 249, 0.9);
}

#authPassToggle.auth-passToggle,
.auth-passToggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: #233f5f;
  opacity: 0.85;
  cursor: pointer;
}

#authPassToggle.auth-passToggle:hover,
.auth-passToggle:hover {
  background: rgba(2, 132, 199, 0.1);
}

.auth-passToggle__icon {
  width: 19px;
  height: 19px;
  display: block;
}

.auth-helper {
  margin: 8px 0 0;
  font-size: 0.83rem;
  color: #4b647f;
}

.auth-helper.is-error {
  color: #b42318;
}

.auth-error {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: #b42318;
  font-weight: 700;
}

.auth-field.is-error #authPass,
.auth-field.is-error .auth-input {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.auth-field.is-error .auth-inputWrap,
.auth-inputWrap.is-shaking {
  animation: ppccr-shake 0.35s ease;
}

.auth-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.auth-btn {
  min-width: 126px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 86, 179, 0.18);
  background: linear-gradient(165deg, #0d6fd3 0%, #0056b3 100%);
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 8px 16px rgba(0, 86, 179, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(0, 86, 179, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

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

@keyframes auth-card-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ppccr-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

body.is-auth-locked {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

.user-banner,
#user-banner {
  height: var(--user-banner-h);
  min-height: var(--user-banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0056b3;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  text-align: center;
}

#user-dock-tile.user-dock-tile,
.user-dock-tile {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b5ed7, #084aae);
  box-shadow: 0 10px 26px rgba(11, 94, 215, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.user-dock-tile__icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
  opacity: 0.95;
}

.user-dock-tile__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.user-dock-tile__label {
  color: #ffffff;
  font-weight: 800;
  font-size: 10.5px;
  line-height: 1.05;
  text-align: center;
  padding-inline: 6px;
  word-break: break-word;
}

.user-dock-tile.user-dock-tile--inline {
  width: auto;
  min-width: 170px;
  height: 42px;
  padding: 8px 10px;
  flex-direction: row;
  gap: 8px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.user-dock-tile.user-dock-tile--inline .user-dock-tile__label {
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  body.page-home {
    --user-banner-h: 36px;
    --user-banner-gap-mobile: 8px;
    --mobile-header-shell-gutter: 8px;
    --mobile-header-shell-radius: 20px;
  }

  body.page-home.is-header-compact {
    --user-banner-h: 34px;
    --user-banner-gap-mobile: 6px;
    --mobile-header-shell-bleed: 9px;
    --mobile-header-shell-shadow:
      0 10px 22px rgba(11, 94, 215, 0.24), 0 2px 8px rgba(8, 74, 169, 0.2);
  }

  body.page-home:not(.is-header-compact) {
    --user-banner-h: 36px;
    --user-banner-gap-mobile: 10px;
    --mobile-header-shell-bleed: 13px;
    --mobile-header-shell-shadow:
      0 16px 34px rgba(11, 94, 215, 0.32), 0 4px 12px rgba(8, 74, 169, 0.24);
  }

  html,
  body {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .page-home,
  .page-internal,
  main,
  #contenido,
  .site-main {
    overflow-x: clip;
  }

  .site-header,
  .site-topbar__inner,
  .topbar,
  .container,
  main,
  .site-main,
  #contenido,
  [class*="__container"],
  [class*="__inner"] {
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-card {
    width: min(94vw, 520px);
    border-radius: 18px;
  }

  .auth-header {
    padding: 16px 16px 12px;
  }

  .auth-brand {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .auth-brand__title,
  .auth-title {
    font-size: 17px;
  }

  .auth-section {
    padding: 16px;
  }

  .auth-station,
  .auth-tile {
    min-width: 86px;
    font-size: 0.78rem;
  }

  .user-banner,
  #user-banner {
    position: fixed;
    left: 50%;
    right: auto;
    top: calc(
      var(--app-header-h, var(--mobile-header-h, var(--topbar-h, 78px))) +
        var(--mobile-header-shell-bleed) + var(--user-banner-gap-mobile)
    );
    transform: translateX(-50%);
    width: min(calc(100% - 12px), calc(var(--mobile-header-shell-max) - 8px));
    z-index: 1700;
    overflow: hidden;
    padding-inline: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--mobile-shell-blue-gradient);
    -webkit-backdrop-filter: saturate(110%);
    backdrop-filter: saturate(110%);
    box-shadow:
      0 12px 22px rgba(3, 35, 82, 0.2),
      0 2px 8px rgba(4, 37, 84, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
      top 180ms ease,
      box-shadow 200ms ease;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 1px rgba(2, 24, 56, 0.25);
  }

  .user-banner::before,
  #user-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 46%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
  }

  body.page-home.has-user-banner main.site-main,
  body.page-home.has-user-banner #contenido.site-main {
    padding-top: calc(
      var(--app-header-h, var(--h-offset, 0px)) +
        var(--mobile-header-shell-bleed) + var(--user-banner-gap-mobile) +
        var(--user-banner-h) + 2px
    ) !important;
  }

  body.page-internal.has-user-banner .site-main {
    padding-top: calc(
      var(--app-header-h, var(--mobile-header-h, 0px)) +
        var(--mobile-header-shell-bleed) + var(--user-banner-h) +
        var(--user-banner-gap-mobile) + 8px
    ) !important;
  }

  body.page-home nav#mobile-fixed-dock.mobile-fixed-dock,
  body.page-home .mobile-fixed-dock {
    background: var(--mobile-shell-blue-gradient) !important;
    border: 1px solid var(--mobile-shell-blue-border) !important;
    box-shadow:
      0 16px 34px rgba(11, 94, 215, 0.34),
      0 4px 12px rgba(8, 74, 169, 0.24) !important;
    overflow: hidden;
    isolation: isolate;
  }

  body.page-home nav#mobile-fixed-dock.mobile-fixed-dock::before,
  body.page-home .mobile-fixed-dock::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 56%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );
    pointer-events: none;
  }

  body.page-home #mobile-fixed-dock .mobile-dock-list {
    position: relative;
    z-index: 1;
    padding: 10px 9px;
  }

  body.page-home #mobile-fixed-dock .nav-link {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 229, 252, 0.78);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 5px 10px rgba(4, 37, 84, 0.14);
  }

  body.page-home #mobile-fixed-dock .nav-link.is-active,
  body.page-home #mobile-fixed-dock .nav-link[aria-current="true"] {
    background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
    border-color: rgba(12, 73, 147, 0.4);
    box-shadow:
      0 8px 16px rgba(4, 37, 84, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.4);
  }

  body.page-home .hero-cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  body.page-home .hero-cta .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    font-size: clamp(0.78rem, 3.15vw, 0.9rem);
    line-height: 1.08;
    white-space: nowrap;
  }

  body.page-home .site-footer {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .auth-brand__title,
  .auth-title {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  body.page-home .site-footer {
    display: block;
  }
}

/* Mobile surgical polish: rectángulo azul detrás del header (solo bordes visibles) */
@media (max-width: 767.98px) {
  body.page-home header.site-header.site-topbar {
    overflow: visible !important;
    isolation: isolate;
    --mobile-shell-h: var(
      --app-header-h,
      var(--mobile-header-h, var(--topbar-h, 78px))
    );
  }

  body.page-home header.site-header.site-topbar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 1px);
    transform: translateX(-50%);
    width: min(
      calc(100% - var(--mobile-header-shell-gutter)),
      var(--mobile-header-shell-max)
    );
    height: calc(var(--mobile-shell-h) + var(--mobile-header-shell-bleed));
    border-radius: 0 0 var(--mobile-header-shell-radius)
      var(--mobile-header-shell-radius);
    border: 1px solid var(--mobile-shell-blue-border);
    border-top: 0;
    background: var(--mobile-shell-blue-gradient);
    box-shadow: var(--mobile-header-shell-shadow);
    z-index: 0;
    display: block !important;
    pointer-events: none;
  }

  body.page-home header.site-header.site-topbar::after {
    display: none !important;
  }

  body.page-home #siteTopbar.site-topbar__inner {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  body.page-home header.site-header.site-topbar .logo-strip.partners-bar,
  body.page-home header.site-header.site-topbar .partners-bar {
    position: relative;
    z-index: 2;
  }
}

/* =====================================================================
   Station Context + Header Accent (Desktop/Mobile hardening)
   ===================================================================== */
:root {
  --header-accent-h: 6px;
  --ppccr-blue-700: #0b5ed7;
  --ppccr-blue-800: #084298;
  --ppccr-cyan-400: #22d3ee;
  --header-fixed-h: 0px;
}

.container,
.site-main {
  min-width: 0;
}

img,
svg,
iframe {
  max-width: 100%;
}

.auth-field[hidden] {
  display: none !important;
}

.auth-btn--ghost {
  min-width: 126px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(2, 56, 121, 0.22);
  background: #ffffff;
  color: #084298;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 56, 121, 0.1);
}

.auth-btn--ghost:hover {
  background: #eff6ff;
}

.auth-station,
.auth-tile {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.auth-station.is-selected,
.auth-station[aria-pressed="true"],
.auth-tile.is-selected,
.auth-tile[aria-pressed="true"] {
  background: linear-gradient(
    180deg,
    var(--ppccr-blue-700),
    var(--ppccr-blue-800)
  );
  color: #ffffff;
  border-color: #0b4bb2;
  box-shadow:
    0 10px 24px rgba(11, 94, 215, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#user-banner.user-banner {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(
    180deg,
    var(--ppccr-blue-700),
    var(--ppccr-blue-800)
  );
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

#user-banner.user-banner:focus-visible,
.station-chip:focus-visible,
#station-switch-trigger:focus-visible {
  outline: 3px solid rgba(186, 230, 253, 0.85);
  outline-offset: 2px;
}

#user-banner.user-banner .user-banner__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

#user-banner.user-banner .user-banner__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

#user-banner.user-banner .user-banner__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#user-banner.user-banner .user-banner__chevron {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

#user-banner.user-banner .user-banner__chevron svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.station-chip-item {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.station-chip.user-dock-tile,
#station-switch-trigger.station-chip {
  width: 88px;
  min-width: 88px;
  height: 88px;
  min-height: 88px;
  border-radius: 14px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(
    180deg,
    var(--ppccr-blue-700),
    var(--ppccr-blue-800)
  );
  box-shadow:
    0 12px 24px rgba(3, 27, 78, 0.2),
    0 4px 10px rgba(11, 94, 215, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  cursor: pointer;
}

.station-chip.user-dock-tile:hover,
#station-switch-trigger.station-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(3, 27, 78, 0.24),
    0 6px 12px rgba(11, 94, 215, 0.3);
}

.station-chip.user-dock-tile:active,
#station-switch-trigger.station-chip:active {
  transform: translateY(0);
}

.station-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.station-chip__kicker {
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.station-chip__label.user-dock-tile__label {
  max-width: 80px;
  font-size: 10.5px;
  line-height: 1.08;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.station-chip__label--tight.user-dock-tile__label {
  font-size: 9.4px;
  line-height: 1.04;
  letter-spacing: 0;
}

.station-chip--admin .station-chip__meta,
#station-switch-trigger.station-chip.station-chip--admin .station-chip__meta {
  gap: 0;
}

.station-chip--admin .station-chip__label.user-dock-tile__label,
#station-switch-trigger.station-chip.station-chip--admin
  .station-chip__label.user-dock-tile__label {
  max-width: 82px;
  font-size: 9.2px;
  line-height: 1.03;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.station-chip.station-chip--inline,
#station-switch-trigger.station-chip.station-chip--inline {
  width: auto;
  min-width: 172px;
  height: 44px;
  min-height: 44px;
  padding: 8px 10px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 12px;
}

.station-chip.station-chip--inline .station-chip__meta,
#station-switch-trigger.station-chip.station-chip--inline .station-chip__meta {
  align-items: flex-start;
}

.station-chip.station-chip--inline .station-chip__label.user-dock-tile__label,
#station-switch-trigger.station-chip.station-chip--inline
  .station-chip__label.user-dock-tile__label {
  max-width: 126px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding-top: var(--header-accent-h);
    overflow: visible;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: var(--header-accent-h);
    border-radius: 0;
    background: linear-gradient(
      90deg,
      var(--ppccr-blue-700) 0%,
      var(--ppccr-blue-800) 55%,
      var(--ppccr-cyan-400) 120%
    );
    box-shadow: 0 1px 0 rgba(7, 23, 51, 0.12);
    pointer-events: none;
    z-index: 2;
  }
}

@media (max-width: 767.98px) {
  :root {
    --user-banner-h: 44px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  #user-banner.user-banner {
    position: fixed;
    top: calc(
      env(safe-area-inset-top, 0px) +
        var(--header-fixed-h, var(--app-header-h, 0px)) + 8px
    );
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    z-index: 1200;
    height: var(--user-banner-h);
    min-height: var(--user-banner-h);
    padding: 0 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 28px rgba(3, 27, 78, 0.22);
  }

  #user-banner.user-banner:active {
    transform: scale(0.99);
  }

  body.page-home.has-user-banner #contenido.site-main,
  body.page-home.has-user-banner main.site-main,
  body.page-internal.has-user-banner .site-main,
  body.has-user-banner main#contenido,
  body.has-user-banner main.site-main,
  body.has-user-banner .site-main {
    padding-top: calc(
      var(--header-fixed-h, var(--app-header-h, 0px)) + var(--user-banner-h) +
        18px
    ) !important;
  }

  body.page-home nav#mobile-fixed-dock.mobile-fixed-dock,
  body.page-home .mobile-fixed-dock,
  body.page-internal .mobile-fixed-dock,
  .mobile-fixed-dock {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* =====================================================================
   Station Switch Modal (scoped only to station mode)
   ===================================================================== */
:root {
  --pp-blue-900: #0b2e4a;
  --pp-blue-700: #0b5ed7;
  --pp-blue-800: #084bb0;
  --pp-blue-600: #1d6fe8;
  --pp-blue-accent: #0f6bde;
  --pp-program-blue: #0b4a7a;
  --pp-surface: #ffffff;
  --pp-border: rgba(11, 46, 74, 0.14);
  --pp-muted: #6b7280;
  --pp-shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.18);
  --pp-shadow-md: 0 14px 35px rgba(0, 0, 0, 0.14);
  --pp-shadow-sm: 0 10px 22px rgba(11, 46, 74, 0.12);
  --pp-radius-xxl: 24px;
  --pp-radius-xl: 18px;
  --pp-radius-lg: 14px;
}

#auth-gate[data-mode="station"] {
  background: rgba(15, 23, 42, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

#auth-gate[data-mode="station"] .pp-modal__card {
  width: min(92vw, 560px);
  max-width: 560px;
  position: relative;
  container-type: inline-size;
  border-radius: var(--pp-radius-xxl);
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow-lg);
  overflow: hidden;
  animation: ppModalIn 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#auth-gate[data-mode="station"] .pp-modal__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--pp-program-blue) 0%,
    var(--pp-blue-700) 62%,
    #35b6ff 120%
  );
  box-shadow: 0 1px 0 rgba(7, 23, 51, 0.14);
  pointer-events: none;
  z-index: 3;
}

#auth-gate[data-mode="station"] .pp-modal__header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(11, 46, 74, 0.1);
  background: linear-gradient(
    180deg,
    rgba(241, 247, 255, 0.92),
    rgba(255, 255, 255, 0.98)
  );
}

#auth-gate[data-mode="station"] .pp-modal__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#auth-gate[data-mode="station"] .pp-modal__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

#auth-gate[data-mode="station"] .pp-modal__brandText {
  min-width: 0;
}

#auth-gate[data-mode="station"] .pp-modal__kicker {
  display: none;
  margin: 0;
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#auth-gate[data-mode="station"] .pp-modal__programTitle {
  margin: 2px 0 0;
  color: var(--pp-program-blue);
  font-size: 14px;
  font-size: clamp(10.8px, 2.85cqi, 15.5px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.012em;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-family:
    "Avenir Next", "Trebuchet MS", "Montserrat", "Segoe UI", Helvetica, Arial,
    sans-serif;
}

#auth-gate[data-mode="station"] .pp-modal__hint {
  margin: 6px 0 0;
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.35;
}

#auth-gate[data-mode="station"] .pp-modal__sectionTitle {
  margin-top: 15px;
}

#auth-gate[data-mode="station"] .pp-modal__sectionKicker {
  display: block;
  margin: 0;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 600;
}

#auth-gate[data-mode="station"] .pp-modal__sectionHeading {
  margin: 2px 0 0;
  color: var(--pp-blue-accent);
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family:
    "Avenir Next", "Trebuchet MS", "Montserrat", "Segoe UI", Helvetica, Arial,
    sans-serif;
}

#auth-gate[data-mode="station"] .pp-modal__body {
  padding: 18px 24px 22px;
}

#auth-gate[data-mode="station"] .station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

#auth-gate[data-mode="station"] .station-tile {
  position: relative;
  min-height: 96px;
  padding: 14px;
  border-radius: var(--pp-radius-xl);
  border: 1px solid rgba(11, 46, 74, 0.16);
  background: #eaf6ff;
  color: var(--pp-blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.18;
  box-shadow: 0 3px 10px rgba(11, 46, 74, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

#auth-gate[data-mode="station"] .station-tile__label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}

#auth-gate[data-mode="station"] .station-tile__line {
  display: block;
  line-height: 1.1;
}

#auth-gate[data-mode="station"] .station-tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--pp-shadow-sm);
}

#auth-gate[data-mode="station"] .station-tile:active {
  transform: scale(0.99);
}

#auth-gate[data-mode="station"] .station-tile:focus-visible {
  outline: 3px solid rgba(29, 111, 232, 0.34);
  outline-offset: 2px;
}

#auth-gate[data-mode="station"] .station-tile.is-selected,
#auth-gate[data-mode="station"] .station-tile[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--pp-blue-600), var(--pp-blue-800));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 14px 30px rgba(11, 94, 215, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#auth-gate[data-mode="station"] .station-tile.is-selected::after,
#auth-gate[data-mode="station"] .station-tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  opacity: 0.92;
}

#auth-gate[data-mode="station"] .pp-modal__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 46, 74, 0.1);
}

#auth-gate[data-mode="station"] .pp-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#auth-gate[data-mode="station"] .pp-btn {
  height: 44px;
  min-width: 136px;
  padding: 0 18px;
  border-radius: var(--pp-radius-lg);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

#auth-gate[data-mode="station"] .pp-btn:active:not(:disabled) {
  transform: translateY(1px);
}

#auth-gate[data-mode="station"] .pp-btn--secondary {
  background: #ffffff;
  border: 1px solid rgba(11, 46, 74, 0.2);
  color: var(--pp-blue-800);
  box-shadow: 0 6px 14px rgba(11, 46, 74, 0.08);
}

#auth-gate[data-mode="station"] .pp-btn--secondary:hover {
  background: rgba(11, 94, 215, 0.06);
}

#auth-gate[data-mode="station"] .pp-btn--primary {
  background: var(--pp-program-blue);
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(11, 74, 122, 0.24);
}

#auth-gate[data-mode="station"] .pp-btn--primary:hover:not(:disabled) {
  background: #083a61;
}

#auth-gate[data-mode="station"] .pp-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.9);
  box-shadow: none;
}

@media (max-width: 520px) {
  #auth-gate[data-mode="station"] .pp-modal__header,
  #auth-gate[data-mode="station"] .pp-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  #auth-gate[data-mode="station"] .pp-modal__programTitle {
    font-size: clamp(10px, 3.3cqi, 13.6px);
  }

  #auth-gate[data-mode="station"] .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #auth-gate[data-mode="station"] .station-tile[data-station="admin"] {
    grid-column: 1 / -1;
  }

  #auth-gate[data-mode="station"] .pp-modal__actions {
    justify-content: center;
  }

  #auth-gate[data-mode="station"] .pp-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@keyframes ppModalIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-gate[data-mode="station"] .pp-modal__card,
  #auth-gate[data-mode="station"] .station-tile,
  #auth-gate[data-mode="station"] .pp-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Auth Gate UI Refresh (login + station)
   ===================================================================== */
#auth-gate.auth-gate {
  --auth-blue-900: #0b365f;
  --auth-blue-800: #0f4f8f;
  --auth-blue-700: #0b5ed7;
  --auth-blue-600: #2177e6;
  --auth-blue-200: #cfe3fb;
  --auth-ink-900: #10253d;
  --auth-ink-700: #2a4563;
  --auth-ink-500: #4d6178;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f4f9ff;
  --auth-border: rgba(15, 72, 128, 0.18);
  --auth-shadow-xl:
    0 30px 64px rgba(3, 20, 39, 0.36), 0 12px 30px rgba(6, 35, 66, 0.24);
  --auth-shadow-lg:
    0 22px 42px rgba(10, 44, 83, 0.2), 0 8px 20px rgba(10, 44, 83, 0.14);
  --auth-shadow-sm:
    0 10px 20px rgba(9, 56, 108, 0.14), 0 2px 8px rgba(9, 56, 108, 0.1);
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(74, 142, 255, 0.18),
      transparent 42%
    ),
    radial-gradient(circle at 86% 86%, rgba(13, 83, 165, 0.2), transparent 48%),
    rgba(8, 20, 37, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

#auth-gate.auth-gate .auth-card.pp-modal__card {
  width: min(94vw, 566px);
  max-width: 566px;
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(184, 212, 243, 0.58);
  background: linear-gradient(
    180deg,
    rgba(251, 254, 255, 0.98) 0%,
    rgba(247, 251, 255, 0.98) 42%,
    rgba(255, 255, 255, 0.99) 100%
  );
  box-shadow: var(--auth-shadow-xl);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

#auth-gate.auth-gate .auth-card.pp-modal__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0a4a85 0%, #0b66d8 66%, #2fc6f6 120%);
  z-index: 3;
}

#auth-gate.auth-gate .auth-card.pp-modal__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(189, 222, 255, 0.2),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 22%);
  z-index: 0;
}

#auth-gate.auth-gate.auth-gate--closing .auth-card.pp-modal__card,
#auth-gate.auth-gate.is-hiding .auth-card.pp-modal__card {
  transform: translateY(10px) scale(0.992);
  opacity: 0;
}

#auth-gate.auth-gate .pp-modal__header {
  position: relative;
  z-index: 1;
  padding: 23px 26px 17px;
  border-bottom: 1px solid rgba(11, 74, 130, 0.14);
  background: linear-gradient(
    180deg,
    rgba(239, 247, 255, 0.94) 0%,
    rgba(251, 254, 255, 0.92) 100%
  );
}

#auth-gate.auth-gate .pp-modal__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#auth-gate.auth-gate .pp-modal__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: 1px;
}

#auth-gate.auth-gate .pp-modal__brandText {
  min-width: 0;
}

#auth-gate.auth-gate .pp-modal__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 9px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42, 122, 204, 0.24);
  background: rgba(37, 117, 202, 0.1);
  color: #0b4f95;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#auth-gate.auth-gate .pp-modal__programTitle {
  margin: 0;
  color: var(--auth-blue-900);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}

#auth-gate.auth-gate .pp-modal__hint {
  margin: 7px 0 0;
  color: var(--auth-ink-500);
  font-size: 0.88rem;
  line-height: 1.38;
}

#auth-gate.auth-gate .pp-modal__sectionTitle {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(32, 104, 172, 0.18);
}

#auth-gate.auth-gate .pp-modal__sectionKicker {
  display: block;
  margin: 0;
  color: var(--auth-ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#auth-gate.auth-gate .pp-modal__sectionHeading {
  margin: 4px 0 0;
  color: #0f63d0;
  font-size: clamp(1.9rem, 3.15vw, 2.35rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#auth-gate.auth-gate .pp-modal__body {
  position: relative;
  z-index: 1;
  padding: 20px 26px 24px;
  display: grid;
  gap: 16px;
}

#auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
}

#auth-gate.auth-gate .auth-station.station-tile {
  position: relative;
  min-height: 102px;
  margin: 0;
  border-radius: 17px;
  border: 1px solid rgba(20, 96, 164, 0.2);
  background: linear-gradient(160deg, #f4faff 0%, #e9f3fc 100%);
  color: #123f68;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-shadow:
    0 2px 10px rgba(9, 67, 126, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 180ms ease,
    box-shadow 200ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

#auth-gate.auth-gate .station-tile__label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

#auth-gate.auth-gate .station-tile__line {
  display: block;
}

#auth-gate.auth-gate .auth-station.station-tile::before,
#auth-gate.auth-gate .auth-station.station-tile::after {
  pointer-events: none;
  position: absolute;
  opacity: 0;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

#auth-gate.auth-gate .auth-station.station-tile::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  top: 9px;
  right: 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.56);
  transform: translateY(-2px);
}

#auth-gate.auth-gate .auth-station.station-tile::after {
  content: "✓";
  top: 10px;
  right: 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-2px);
}

#auth-gate.auth-gate .auth-station.station-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--auth-shadow-sm);
}

#auth-gate.auth-gate .auth-station.station-tile:active {
  transform: translateY(0);
}

#auth-gate.auth-gate .auth-station.station-tile:focus-visible {
  outline: 3px solid rgba(12, 102, 195, 0.3);
  outline-offset: 2px;
}

#auth-gate.auth-gate .auth-station.station-tile.is-selected,
#auth-gate.auth-gate .auth-station.station-tile[aria-pressed="true"] {
  background: linear-gradient(168deg, #2a7cf0 0%, #105cc5 68%, #0d4ca8 100%);
  color: #ffffff;
  border-color: rgba(233, 244, 255, 0.66);
  box-shadow:
    0 18px 34px rgba(9, 74, 160, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#auth-gate.auth-gate .auth-station.station-tile.is-selected::before,
#auth-gate.auth-gate .auth-station.station-tile[aria-pressed="true"]::before,
#auth-gate.auth-gate .auth-station.station-tile.is-selected::after,
#auth-gate.auth-gate .auth-station.station-tile[aria-pressed="true"]::after {
  opacity: 1;
  transform: translateY(0);
}

#auth-gate.auth-gate .auth-field {
  margin-top: 0;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(21, 92, 155, 0.14);
  background: linear-gradient(
    180deg,
    rgba(244, 250, 255, 0.88),
    rgba(255, 255, 255, 0.95)
  );
}

#auth-gate.auth-gate .auth-label {
  margin-bottom: 8px;
  color: #15426c;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#auth-gate.auth-gate #authPass,
#auth-gate.auth-gate .auth-input {
  height: 50px;
  border: 1px solid rgba(17, 80, 139, 0.24);
  border-radius: 14px;
  padding: 0 48px 0 14px;
  color: var(--auth-ink-900);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#auth-gate.auth-gate #authPass::placeholder,
#auth-gate.auth-gate .auth-input::placeholder {
  color: rgba(71, 96, 122, 0.78);
}

#auth-gate.auth-gate #authPass:focus-visible,
#auth-gate.auth-gate .auth-input:focus-visible {
  outline: none;
  border-color: #0f6ad5;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.14);
}

#auth-gate.auth-gate #authPassToggle.auth-passToggle,
#auth-gate.auth-gate .auth-passToggle {
  width: 36px;
  height: 36px;
  right: 8px;
  border-radius: 11px;
  color: #184777;
  opacity: 0.92;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

#auth-gate.auth-gate #authPassToggle.auth-passToggle:hover,
#auth-gate.auth-gate .auth-passToggle:hover {
  background: rgba(15, 106, 208, 0.1);
}

#auth-gate.auth-gate .auth-helper {
  margin: 10px 0 0;
  color: var(--auth-ink-500);
  font-size: 0.8rem;
  line-height: 1.34;
}

#auth-gate.auth-gate .auth-helper.is-error,
#auth-gate.auth-gate .auth-error {
  color: #b42318;
  font-weight: 700;
}

#auth-gate.auth-gate .auth-field.is-error {
  border-color: rgba(180, 37, 24, 0.32);
  background: linear-gradient(
    180deg,
    rgba(255, 246, 246, 0.98),
    rgba(255, 255, 255, 0.98)
  );
}

#auth-gate.auth-gate .auth-field.is-error #authPass,
#auth-gate.auth-gate .auth-field.is-error .auth-input {
  border-color: rgba(180, 37, 24, 0.5);
  box-shadow: 0 0 0 4px rgba(180, 37, 24, 0.12);
}

#auth-gate.auth-gate .auth-actions.pp-modal__footer {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 84, 146, 0.12);
}

#auth-gate.auth-gate .pp-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#auth-gate.auth-gate .auth-btn.pp-btn,
#auth-gate.auth-gate .auth-btn--ghost,
#auth-gate.auth-gate .pp-btn {
  min-width: 136px;
  height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 150ms ease,
    box-shadow 180ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

#auth-gate.auth-gate .pp-btn--secondary,
#auth-gate.auth-gate .auth-btn--ghost {
  border: 1px solid rgba(13, 69, 123, 0.24);
  background: #ffffff;
  color: #114d8a;
  box-shadow: 0 8px 16px rgba(14, 73, 129, 0.12);
}

#auth-gate.auth-gate .pp-btn--secondary:hover,
#auth-gate.auth-gate .auth-btn--ghost:hover {
  background: rgba(13, 97, 182, 0.08);
}

#auth-gate.auth-gate .pp-btn--primary {
  border: 1px solid transparent;
  background: linear-gradient(168deg, #0d66d7 0%, #0a55bb 74%, #08499e 100%);
  color: #ffffff;
  box-shadow:
    0 12px 22px rgba(8, 77, 157, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#auth-gate.auth-gate .pp-btn--primary:hover:not(:disabled) {
  box-shadow:
    0 14px 26px rgba(8, 77, 157, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

#auth-gate.auth-gate .pp-btn:active:not(:disabled) {
  transform: translateY(1px);
}

#auth-gate.auth-gate .pp-btn:disabled,
#auth-gate.auth-gate .auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

#auth-gate[data-mode="login"] .auth-card.pp-modal__card {
  width: min(94vw, 560px);
  max-width: 560px;
}

#auth-gate[data-mode="login"] .pp-modal__programTitle {
  font-size: clamp(1.08rem, 1.85vw, 1.34rem);
}

#auth-gate[data-mode="login"] .pp-modal__hint {
  max-width: 42ch;
}

#auth-gate[data-mode="station"] .auth-card.pp-modal__card {
  width: min(94vw, 624px);
  max-width: 624px;
}

#auth-gate[data-mode="station"] .pp-modal__programTitle {
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  line-height: 1.12;
}

#auth-gate[data-mode="station"] .pp-modal__hint {
  font-size: 0.86rem;
}

#auth-gate[data-mode="station"] .pp-modal__sectionHeading {
  font-size: clamp(2rem, 3.35vw, 2.55rem);
}

#auth-gate[data-mode="station"] .auth-station.station-tile {
  min-height: 108px;
}

#auth-gate[data-mode="station"] .auth-field {
  display: none !important;
}

#auth-gate[data-mode="station"] .auth-actions.pp-modal__footer {
  padding-top: 16px;
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate {
    padding: calc(12px + env(safe-area-inset-top)) 10px
      calc(12px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(14px) saturate(1.06);
    backdrop-filter: blur(14px) saturate(1.06);
  }

  #auth-gate.auth-gate .auth-card.pp-modal__card {
    width: min(100vw - 12px, 560px);
    border-radius: 21px;
  }

  #auth-gate.auth-gate .pp-modal__header {
    padding: 17px 16px 14px;
  }

  #auth-gate.auth-gate .pp-modal__logo {
    width: 36px;
    height: 36px;
  }

  #auth-gate.auth-gate .pp-modal__kicker {
    margin-bottom: 7px;
    padding: 3px 8px;
    font-size: 0.62rem;
  }

  #auth-gate.auth-gate .pp-modal__programTitle {
    font-size: clamp(0.98rem, 4.6vw, 1.16rem);
  }

  #auth-gate.auth-gate .pp-modal__hint {
    font-size: 0.82rem;
    line-height: 1.33;
  }

  #auth-gate.auth-gate .pp-modal__sectionTitle {
    margin-top: 13px;
    padding-top: 12px;
  }

  #auth-gate.auth-gate .pp-modal__sectionKicker {
    font-size: 0.67rem;
  }

  #auth-gate.auth-gate .pp-modal__sectionHeading {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.06;
  }

  #auth-gate.auth-gate .pp-modal__body {
    padding: 14px 16px 16px;
    gap: 12px;
  }

  #auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #auth-gate.auth-gate .auth-station.station-tile {
    min-height: 86px;
    border-radius: 14px;
    font-size: 0.8rem;
    padding: 10px 8px;
  }

  #auth-gate.auth-gate .auth-station.station-tile[data-station="admin"] {
    grid-column: 1 / -1;
    min-height: 78px;
  }

  #auth-gate.auth-gate .auth-field {
    padding: 12px;
    border-radius: 14px;
  }

  #auth-gate.auth-gate .auth-label {
    font-size: 0.71rem;
    margin-bottom: 7px;
  }

  #auth-gate.auth-gate #authPass,
  #auth-gate.auth-gate .auth-input {
    height: 46px;
    font-size: 0.92rem;
    border-radius: 12px;
    padding-right: 42px;
  }

  #auth-gate.auth-gate #authPassToggle.auth-passToggle,
  #auth-gate.auth-gate .auth-passToggle {
    width: 32px;
    height: 32px;
    right: 7px;
    border-radius: 9px;
  }

  #auth-gate.auth-gate .auth-helper,
  #auth-gate.auth-gate .auth-error {
    font-size: 0.75rem;
  }

  #auth-gate.auth-gate .auth-actions.pp-modal__footer {
    padding-top: 12px;
  }

  #auth-gate.auth-gate .pp-modal__actions {
    width: 100%;
  }

  #auth-gate.auth-gate .pp-btn,
  #auth-gate.auth-gate .auth-btn {
    min-width: 0;
    flex: 1 1 0;
  }

  #auth-gate[data-mode="login"] .pp-modal__actions .pp-btn--primary {
    width: 100%;
    flex: 1 1 auto;
  }

  #auth-gate[data-mode="login"] #authCancel {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-gate.auth-gate,
  #auth-gate.auth-gate .auth-card.pp-modal__card,
  #auth-gate.auth-gate .auth-station.station-tile,
  #auth-gate.auth-gate .pp-btn,
  #auth-gate.auth-gate .auth-passToggle {
    animation: none !important;
    transition: none !important;
  }
}

/* Teleconsulta Embedded */
.section-card.teleconsulta-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 95, 166, 0.16);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.94),
    rgba(236, 246, 255, 0.86)
  );
  box-shadow:
    0 18px 42px rgba(3, 18, 38, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: clamp(16px, 2.4vw, 24px);
  max-width: 100%;
}

.teleconsulta-head.section-header {
  margin-bottom: 16px;
}

.telew {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: var(--tele-radius);
  border: 1px solid var(--tele-stroke);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(11, 87, 208, 0.11) 0,
      transparent 36%
    ),
    var(--tele-surface);
  box-shadow: var(--tele-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(134%);
  backdrop-filter: blur(12px) saturate(134%);
}

.telew.is-busy .telew__status::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(8, 59, 138, 0.25);
  border-top-color: rgba(8, 59, 138, 0.95);
  animation: teleSpin 1s linear infinite;
}

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

.telew__station {
  width: 100%;
  border: 1px solid rgba(8, 59, 138, 0.18);
  border-radius: var(--radius-16);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.84),
    rgba(237, 246, 255, 0.78)
  );
  box-shadow:
    0 12px 22px rgba(9, 34, 69, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--tele-ink);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.telew__station:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 59, 138, 0.28);
  box-shadow:
    0 16px 26px rgba(7, 30, 62, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.87);
}

.telew__stationIcon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #e7f1ff, #d8e9ff);
  color: var(--tele-brand-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  flex: 0 0 auto;
}

.telew__stationIcon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.telew__stationText {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.telew__stationKicker {
  font-size: 0.76rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(11, 27, 43, 0.62);
}

.telew__stationName {
  font-weight: 760;
  font-size: 1rem;
  color: var(--tele-ink);
  overflow-wrap: anywhere;
}

.telew__stationAction {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 760;
  color: var(--tele-brand-700);
}

.telew__copy {
  display: grid;
  gap: 4px;
}

.telew__copyKicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 27, 43, 0.56);
  font-weight: 780;
}

.telew__copyTitle {
  font-family:
    "SF Pro Display", "Avenir Next", "Avenir Next Condensed", Montserrat,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 640;
  color: var(--tele-ink);
}

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

.telew__roleGroup {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.telew__prefsLabel {
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(11, 27, 43, 0.62);
}

.telew__chip {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(9, 52, 106, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: #0a3d78;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 720;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.telew__chip[aria-pressed="true"] {
  background: linear-gradient(145deg, #0b57d0, #083b8a);
  border-color: rgba(8, 59, 138, 0.42);
  color: #fff;
}

.telew__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #0b2e5e;
  font-weight: 620;
}

.telew__toggle input {
  width: 16px;
  height: 16px;
}

.telew__targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.telew-target {
  border: 1px solid rgba(11, 87, 208, 0.18);
  border-radius: 14px;
  background: linear-gradient(
    158deg,
    rgba(240, 247, 255, 0.9),
    rgba(230, 242, 255, 0.84)
  );
  box-shadow:
    0 10px 18px rgba(8, 37, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  min-height: 84px;
  padding: 10px 11px;
  text-align: left;
  color: var(--tele-ink);
  cursor: pointer;
  display: grid;
  align-content: space-between;
  gap: 8px;
  transition:
    transform 150ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    color 170ms ease;
}

.telew-target:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(7, 35, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.telew-target__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.telew-target__meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(11, 27, 43, 0.6);
}

.telew-target__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 680;
  color: var(--tele-muted);
}

.telew-target__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7f8ea3;
  box-shadow: 0 0 0 3px rgba(11, 27, 43, 0.08);
}

.telew-target[data-state="available"] .telew-target__dot {
  background: #15a661;
  box-shadow: 0 0 0 3px rgba(21, 166, 97, 0.22);
}

.telew-target[data-state="busy"] .telew-target__dot {
  background: #ffae18;
  box-shadow: 0 0 0 3px rgba(255, 174, 24, 0.22);
}

.telew-target[data-state="offline"] .telew-target__dot {
  background: #d23b4c;
  box-shadow: 0 0 0 3px rgba(210, 59, 76, 0.2);
}

.telew-target.is-selected {
  background: linear-gradient(145deg, #0b57d0, #083b8a);
  border-color: rgba(4, 36, 84, 0.55);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(4, 32, 71, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.telew-target.is-selected .telew-target__status {
  color: rgba(255, 255, 255, 0.9);
}

.telew-target.is-selected .telew-target__meta {
  color: rgba(255, 255, 255, 0.92);
}

.telew-target[disabled] {
  opacity: 0.78;
}

.telew__statusRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.telew__infoRow {
  align-items: center;
}

.telew__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 0.92rem;
  color: var(--tele-ink);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(8, 59, 138, 0.15);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.telew__status[data-tone="info"] {
  color: #0b376f;
}

.telew__status[data-tone="ok"] {
  color: #0b5a3b;
}

.telew__status[data-tone="warn"] {
  color: #7e4b00;
}

.telew__status[data-tone="error"] {
  color: #8c1d2c;
}

.telew__statusActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telew__btn {
  min-width: 108px;
  min-height: 42px;
}

.telew__stage {
  display: grid;
  gap: 10px;
}

.telew__stageInner {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(8, 59, 138, 0.16);
  background:
    radial-gradient(
      circle at 14% 10%,
      rgba(11, 87, 208, 0.22) 0,
      transparent 38%
    ),
    linear-gradient(155deg, rgba(8, 27, 48, 0.96), rgba(7, 34, 66, 0.97));
  box-shadow:
    0 16px 36px rgba(4, 20, 41, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.telew__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  color: rgba(235, 244, 255, 0.88);
  padding: 16px;
  pointer-events: none;
}

.telew__placeholderTitle {
  font-size: 1.08rem;
  font-weight: 720;
}

.telew__placeholderText {
  font-size: 0.9rem;
  color: rgba(226, 239, 255, 0.75);
}

.telew__meetingHost,
.telew__meetingHost iframe,
.telew__stageInner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.telew__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.telew__ctl {
  border: 1px solid rgba(10, 45, 90, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: #0b2e5e;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 150ms ease,
    color 160ms ease;
}

.telew__ctl:hover {
  transform: translateY(-1px);
  background: rgba(241, 248, 255, 0.98);
}

.telew__ctl[aria-pressed="true"] {
  background: linear-gradient(145deg, #0b57d0, #083b8a);
  border-color: rgba(8, 59, 138, 0.4);
  color: #ffffff;
}

.telew__ctl:focus-visible,
.telew-target:focus-visible,
.telew__station:focus-visible {
  outline: 3px solid rgba(42, 137, 230, 0.72);
  outline-offset: 2px;
}

.telew__audioPanel {
  border: 1px solid rgba(11, 87, 208, 0.22);
  border-radius: 12px;
  background: rgba(238, 247, 255, 0.96);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.telew__audioHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.telew__audioTitle {
  font-size: 0.93rem;
  font-weight: 760;
  color: #09386f;
}

.telew__audioClose {
  border: 1px solid rgba(11, 87, 208, 0.28);
  border-radius: 999px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0b3f84;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.telew__audioClose:hover {
  background: rgba(240, 248, 255, 0.98);
}

.telew__audioField {
  display: grid;
  gap: 4px;
}

.telew__audioLabel {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a3f7f;
}

.telew__audioSelect {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(11, 87, 208, 0.25);
  background: #ffffff;
  color: #0c2f60;
  font-size: 0.84rem;
  padding: 0 10px;
}

.telew__audioSelect:focus {
  outline: 2px solid rgba(34, 122, 222, 0.54);
  outline-offset: 1px;
}

.telew__audioInfo {
  font-size: 0.78rem;
  color: rgba(11, 49, 97, 0.82);
}

.telew__audioInfo[data-tone="ok"] {
  color: #0f6a38;
}

.telew__audioInfo[data-tone="warn"] {
  color: #8a2d21;
}

.telew__audioActions {
  display: flex;
  justify-content: flex-end;
}

.telew__audioBtn {
  border: 1px solid rgba(11, 87, 208, 0.3);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a3f80;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.telew__audioBtn:hover {
  background: rgba(241, 248, 255, 0.98);
}

.telew__soundUnlock {
  border: 1px solid rgba(11, 87, 208, 0.24);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 720;
  color: #0a3e7d;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 150ms ease,
    border-color 160ms ease;
}

.telew__soundUnlock:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 87, 208, 0.34);
  background: rgba(237, 247, 255, 0.95);
}

.telew__externalHint {
  border: 1px solid rgba(11, 87, 208, 0.2);
  border-radius: 12px;
  background: rgba(230, 243, 255, 0.92);
  color: #0a3d78;
  font-size: 0.84rem;
  padding: 8px 10px;
}

.telew__chat {
  border: 1px solid rgba(11, 87, 208, 0.16);
  border-radius: 16px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.9),
    rgba(236, 246, 255, 0.85)
  );
  box-shadow:
    0 8px 20px rgba(8, 32, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.telew__chatHeader {
  display: grid;
  gap: 2px;
}

.telew__chatTitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
  color: #0a2f60;
}

.telew__chatHint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(11, 27, 43, 0.62);
}

.telew__chatLog {
  height: 220px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(9, 55, 110, 0.14);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.88);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.telew__chatForm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telew__chatAuthor,
.telew__chatInput {
  min-height: 40px;
  border: 1px solid rgba(10, 46, 93, 0.21);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0e2542;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

.telew__chatAuthor {
  flex: 1 1 240px;
  min-width: 170px;
}

.telew__chatInput {
  flex: 3 1 360px;
  min-width: 220px;
  resize: vertical;
  min-height: 40px;
  max-height: 140px;
}

.telew__chatAuthor:focus,
.telew__chatInput:focus {
  border-color: rgba(10, 87, 184, 0.58);
  box-shadow: 0 0 0 3px rgba(10, 125, 224, 0.18);
}

.telew__chatSend,
.telew__chatRequest {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(9, 52, 106, 0.2);
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 720;
  cursor: pointer;
}

.telew__chatSend {
  background: rgba(255, 255, 255, 0.94);
  color: #0a3d78;
}

.telew__chatRequest {
  background: linear-gradient(145deg, #0b57d0, #083b8a);
  color: #fff;
  border-color: rgba(8, 59, 138, 0.42);
}

.telew__chatSend:hover,
.telew__chatRequest:hover {
  transform: translateY(-1px);
}

.telemsg {
  border: 1px solid rgba(11, 87, 208, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 9px;
  display: grid;
  gap: 6px;
}

.telemsg__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: rgba(11, 27, 43, 0.62);
}

.telemsg__text {
  margin: 0;
  font-size: 0.9rem;
  color: #0f233b;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.telemsg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telemsg__btn {
  border: 1px solid rgba(11, 87, 208, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #0a3974;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.telemsg__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.telemsg__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 740;
  border: 1px solid rgba(11, 87, 208, 0.22);
  background: rgba(227, 241, 255, 0.86);
  color: #0b3f7a;
}

.telemsg__badge[data-state="pending"] {
  border-color: rgba(165, 108, 0, 0.28);
  background: rgba(255, 239, 208, 0.88);
  color: #7a4c00;
}

.telemsg__badge[data-state="called"] {
  border-color: rgba(18, 126, 74, 0.28);
  background: rgba(212, 247, 232, 0.88);
  color: #0f6b45;
}

.telew__debugTools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telemodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.telemodal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.telemodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 38, 0.48);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.telemodal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  border-radius: 18px;
  border: 1px solid rgba(9, 39, 75, 0.16);
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow:
    0 22px 48px rgba(4, 20, 41, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(6px) scale(0.98);
  transition: transform 220ms ease;
}

.telemodal.is-open .telemodal__card {
  transform: translateY(0) scale(1);
}

.telemodal__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 760;
  color: var(--tele-brand-900);
}

.telemodal__from {
  margin: 4px 0 0;
  font-size: 1.14rem;
  font-weight: 720;
  color: #0a2d59;
}

.telemodal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.telefs {
  position: fixed;
  inset: 0;
  z-index: 320;
  background:
    radial-gradient(circle at 16% 0%, rgba(11, 87, 208, 0.18), transparent 36%),
    linear-gradient(150deg, rgba(3, 10, 23, 0.96), rgba(7, 22, 42, 0.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  display: flex;
  flex-direction: column;
}

.telefs.is-open {
  opacity: 1;
  pointer-events: auto;
}

.telefs__topbar {
  min-height: 62px;
  padding: 10px clamp(12px, 2.2vw, 18px);
  border-bottom: 1px solid rgba(156, 190, 232, 0.26);
  background: rgba(8, 24, 47, 0.66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.telefs__label {
  color: #eff6ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.telefs__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telefs__actions .btn {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.telefs__actions .btn-ghost {
  color: #eff6ff;
  border-color: rgba(210, 228, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.telefs__stage {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(10px, 2vw, 16px);
}

.telefs__stage .telew__meetingHost {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

body.telefs-open,
html.telefs-open {
  overflow: hidden;
}

@media (min-width: 780px) {
  .telew__targets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .telew__targets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .telew {
    padding: 12px;
    gap: 12px;
  }

  .telew__stationAction {
    font-size: 0.8rem;
  }

  .telew__statusRow {
    flex-direction: column;
    align-items: stretch;
  }

  .telew__prefs {
    flex-direction: column;
    align-items: flex-start;
  }

  .telew__statusActions {
    width: 100%;
  }

  .telew__btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .telew__chatForm {
    flex-direction: column;
  }

  .telew__audioHead {
    flex-wrap: wrap;
  }

  .telew__audioClose,
  .telew__audioBtn {
    width: 100%;
  }

  .telew__audioActions {
    justify-content: stretch;
  }

  .telew__chatAuthor,
  .telew__chatInput,
  .telew__chatSend,
  .telew__chatRequest {
    width: 100%;
  }

  .telemodal__actions {
    justify-content: stretch;
  }

  .telemodal__actions .btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .telew,
  .telew__station,
  .telew-target,
  .telew__ctl,
  .telemodal,
  .telemodal__card,
  .telefs,
  .telew.is-busy .telew__status::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Dashboard CTA + Flow Modal: Algoritmo de Inclusión (ppccr-modal)
   ========================================================================== */
@keyframes homeAlgoPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ppccrSpin {
  to {
    transform: rotate(1turn);
  }
}

.hero-algo-launch {
  margin: 1rem 0 1.1rem;
  display: flex;
  justify-content: center;
}

.hero-algo-launch__btn {
  width: min(100%, 25rem);
  min-height: 58px;
  padding: 0.9rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 820;
  box-shadow: 0 20px 36px rgba(8, 38, 74, 0.26);
}

.algo-teaser {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 38px 36px;
  min-height: 148px;
  border-radius: 24px;
  border: 1px solid rgba(15, 95, 166, 0.14);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(239, 248, 255, 0.92) 100%
  );
  box-shadow:
    0 18px 38px rgba(7, 31, 67, 0.13),
    0 4px 10px rgba(7, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 180ms ease;
}

.algo-teaser::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  top: -140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 95, 166, 0.2), transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.algo-teaser::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -140px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(42, 137, 230, 0.16),
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.algo-teaser__content {
  max-width: 720px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.algo-teaser__title {
  margin: 0;
  color: #0f5fa6;
  background: var(--brand-gradient);
  background-size: 170% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.34rem, 2.05vw, 1.72rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition:
    background-position 180ms ease,
    filter 180ms ease;
}

.algo-teaser:hover,
.algo-teaser:focus-within {
  box-shadow:
    0 20px 42px rgba(7, 31, 67, 0.14),
    0 6px 14px rgba(7, 31, 67, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.algo-teaser:hover .algo-teaser__title,
.algo-teaser:focus-within .algo-teaser__title {
  background-position: 100% 50%;
  filter: saturate(1.08) brightness(1.03);
}

.algo-teaser__text {
  margin: 8px 0 0;
  color: #56697f;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.52;
  max-width: 62ch;
}

.algo-teaser__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.algo-teaser__cta.btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  gap: 12px;
}

.algo-teaser__cta.rounded-pill {
  border-radius: 999px;
}

.algo-teaser__cta.shadow {
  box-shadow:
    0 14px 24px rgba(7, 56, 108, 0.26),
    0 4px 10px rgba(7, 56, 108, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.algo-teaser__cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 26px rgba(7, 56, 108, 0.3),
    0 5px 12px rgba(7, 56, 108, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.algo-teaser__cta:focus-visible {
  outline: 3px solid rgba(146, 210, 255, 0.95);
  outline-offset: 2px;
}

.algo-teaser__cta-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.algo-teaser__cta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .algo-teaser {
    padding: 24px 22px;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .algo-teaser__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .algo-teaser__cta.btn-lg {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
  }
}

body.page-home .ppccr-modal.modal--interview[hidden] {
  display: none !important;
}

body.page-home .ppccr-modal.modal--interview {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

body.page-home .ppccr-modal.modal--interview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.page-home .ppccr-modal.modal--interview.is-closing {
  pointer-events: none;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 29, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 180ms ease;
}

body.page-home .ppccr-modal.modal--interview.is-open .ppccr-modal__backdrop {
  opacity: 1;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__card {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 48px));
  height: min(92vh, 860px);
  height: min(92dvh, 860px);
  max-height: min(92vh, 860px);
  max-height: min(92dvh, 860px);
  border-radius: 22px;
  border: 1px solid rgba(15, 95, 166, 0.2);
  background:
    radial-gradient(
      circle at 10% -24%,
      rgba(96, 187, 255, 0.2),
      transparent 40%
    ),
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.99),
      rgba(237, 247, 255, 0.95)
    );
  box-shadow:
    0 34px 62px rgba(2, 6, 23, 0.32),
    0 8px 22px rgba(8, 38, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.page-home .ppccr-modal.modal--interview.is-open .ppccr-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#ppccr-algo-modal.ppccr-modal.modal--interview[hidden] {
  display: none !important;
}

#ppccr-algo-modal.ppccr-modal.modal--interview {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
}

#ppccr-algo-modal.ppccr-modal.modal--interview.is-open,
#ppccr-algo-modal.ppccr-modal.modal--interview[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#ppccr-algo-modal.ppccr-modal.modal--interview .ppccr-modal__backdrop {
  z-index: 0;
}

#ppccr-algo-modal.ppccr-modal.modal--interview .ppccr-modal__card {
  z-index: 2;
}

#ppccr-algo-modal.ppccr-modal.modal--interview[aria-hidden="false"] .ppccr-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15, 95, 166, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 252, 255, 0.95)
  );
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__titlewrap {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-home .ppccr-modal.modal--interview .modal-status-hud {
  flex: 0 1 44%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.page-home .ppccr-modal.modal--interview .modal-status-hud:empty {
  display: none;
}

body.page-home .ppccr-modal.modal--interview .modal-status-hud__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(12, 42, 79, 0.2);
  background: rgba(233, 239, 246, 0.9);
  color: rgba(27, 62, 95, 0.9);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

body.page-home
  .ppccr-modal.modal--interview
  .modal-status-hud[data-state="success"]
  .modal-status-hud__pill {
  border-color: rgba(20, 129, 82, 0.32);
  background: rgba(229, 249, 237, 0.96);
  color: #0f6d43;
}

body.page-home
  .ppccr-modal.modal--interview
  .modal-status-hud[data-state="danger"]
  .modal-status-hud__pill {
  border-color: rgba(170, 36, 58, 0.34);
  background: rgba(255, 235, 239, 0.98);
  color: #91243a;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__header h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.016em;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__subtitle {
  margin: 2px 0 0;
  color: #436787;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 95, 166, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-900);
  font-size: 1.36rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__close:hover,
body.page-home .ppccr-modal.modal--interview .ppccr-modal__close:focus-visible {
  border-color: rgba(15, 95, 166, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 137, 230, 0.16);
  outline: none;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__close:active {
  transform: scale(0.97);
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__body > .home-algo {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 10px 11px 11px;
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  overflow: hidden;
}

body.page-home .ppccr-modal.modal--interview .home-algo__topbar {
  margin: 0;
  padding: 0;
  min-height: 0;
}

body.page-home .ppccr-modal.modal--interview .home-algo__status-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__status-chip[data-state="final"] {
  display: block;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: none;
}

body.page-home .ppccr-modal.modal--interview .home-algo > nav {
  margin: 0;
}

body.page-home .ppccr-modal.modal--interview .home-algo__stepper {
  gap: 5px;
}

body.page-home .ppccr-modal.modal--interview .home-algo__stepper-button {
  min-height: 42px;
  padding: 6px 9px;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

body.page-home .ppccr-modal.modal--interview .home-algo__stepper-label {
  font-size: 0.8rem;
  line-height: 1.22;
  font-weight: 760;
}

body.page-home .ppccr-modal.modal--interview .home-algo__stepper-index {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
}

body.page-home .ppccr-modal.modal--interview .home-algo__flow-status {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 95, 166, 0.2);
  background: rgba(240, 248, 255, 0.9);
  color: #1f4768;
  font-size: 0.8rem;
  font-weight: 620;
  line-height: 1.28;
  width: 100%;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__flow-status[data-tone="danger"] {
  border-color: rgba(177, 36, 58, 0.34);
  background: rgba(255, 236, 240, 0.98);
  color: #8f1f34;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__flow-status[data-tone="success"] {
  border-color: rgba(20, 129, 82, 0.34);
  background: rgba(233, 251, 240, 0.98);
  color: #0f6b43;
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel:not([hidden]) {
  flex: 1 1 auto;
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 12px 12px 96px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    box-shadow 140ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel.is-step-entering {
  animation: homeAlgoPanelIn 180ms ease both;
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel.is-overflow-top {
  box-shadow:
    inset 0 13px 14px -14px rgba(10, 36, 71, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel.is-overflow-bottom {
  box-shadow:
    inset 0 -15px 16px -16px rgba(10, 36, 71, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel.is-overflow-top.is-overflow-bottom {
  box-shadow:
    inset 0 13px 14px -14px rgba(10, 36, 71, 0.42),
    inset 0 -15px 16px -16px rgba(10, 36, 71, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel::after {
  content: none;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel.is-overflow-bottom::after {
  content: "Deslizá para ver más";
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(33, 74, 106, 0.76);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92) 26%,
    rgba(255, 255, 255, 0.98)
  );
  padding: 10px 12px 6px;
  border-radius: 10px;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel::-webkit-scrollbar {
  width: 10px;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel::-webkit-scrollbar-track {
  background: rgba(227, 240, 252, 0.86);
  border-radius: 999px;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__panel::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(15, 95, 166, 0.6),
    rgba(42, 137, 230, 0.6)
  );
  border-radius: 999px;
  border: 2px solid rgba(227, 240, 252, 0.86);
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel-title {
  margin-bottom: 4px;
  color: var(--blue-950);
  font-size: clamp(1.08rem, 1.95vw, 1.24rem);
  font-weight: 820;
  letter-spacing: -0.013em;
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel-copy {
  margin-bottom: 10px;
  color: #365977;
  font-size: 0.93rem;
  line-height: 1.4;
}

body.page-home .ppccr-modal.modal--interview .home-algo__group-title {
  font-size: 0.95rem;
  font-weight: 790;
}

body.page-home .ppccr-modal.modal--interview .home-algo__label {
  font-size: 0.9rem;
  font-weight: 780;
}

body.page-home .ppccr-modal.modal--interview .home-algo__required-note {
  margin-top: 10px;
  color: #3d5f7d;
  font-size: 0.86rem;
  line-height: 1.34;
}

body.page-home .ppccr-modal.modal--interview .home-algo__feedback,
body.page-home .ppccr-modal.modal--interview .home-algo__alert {
  display: none !important;
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions {
  flex: 0 0 auto;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 10px 0 1px;
  border-top: 1px solid rgba(15, 95, 166, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.86) 28%,
    rgba(255, 255, 255, 0.97)
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 760;
  letter-spacing: 0.003em;
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn.is-selected {
  outline: 3px solid rgba(13, 109, 193, 0.44);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(13, 109, 193, 0.16),
    0 12px 24px rgba(9, 48, 95, 0.12);
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn-primary,
body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn-success,
body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn-danger {
  background: linear-gradient(145deg, #0f66b4, #0a4f90);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-primary:hover,
body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-success:hover,
body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-danger:hover {
  background: linear-gradient(145deg, #1273cb, #0b5ca5);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-outline-secondary,
body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-900);
  border-color: rgba(15, 95, 166, 0.3);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-outline-secondary:hover,
body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn-ghost:hover {
  background: rgba(240, 248, 255, 0.98);
  border-color: rgba(15, 95, 166, 0.46);
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn[disabled],
body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn[aria-disabled="true"] {
  opacity: 0.62;
  box-shadow: none;
  transform: none;
  filter: saturate(0.84);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn.is-loading {
  position: relative;
  pointer-events: none;
  cursor: wait;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  .btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-right-color: transparent;
  vertical-align: -2px;
  animation: ppccrSpin 700ms linear infinite;
}

body.page-home
  .ppccr-modal.modal--interview
  :is(
    .home-algo__stepper-button,
    .home-algo__actions .btn,
    .home-algo__input,
    .home-algo__check input
  ):focus-visible {
  outline: 3px solid rgba(13, 109, 193, 0.44);
  outline-offset: 2px;
}

body.page-home .ppccr-modal.modal--interview .home-algo__check:focus-within {
  border-color: rgba(15, 95, 166, 0.4);
  box-shadow:
    0 0 0 3px rgba(13, 109, 193, 0.16),
    0 10px 18px rgba(9, 48, 95, 0.08);
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo__actions
  #home-algo-restart {
  margin-left: auto;
}

body.page-home .ppccr-modal.modal--interview .home-algo__modal {
  position: absolute;
  inset: 0;
  z-index: 18;
}

body.page-home .ppccr-modal.modal--interview .home-algo__modal-backdrop {
  background: rgba(3, 13, 29, 0.52);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.page-home .ppccr-modal.modal--interview .home-algo__modal-card {
  margin-top: 5.5vh;
}

body.page-home .home-algo-complete[hidden] {
  display: none !important;
}

body.page-home .home-algo-complete {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: grid;
  place-items: center;
  padding: 14px;
}

body.page-home .home-algo-complete__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 29, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.page-home .home-algo-complete__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  border-radius: 20px;
  border: 1px solid rgba(15, 95, 166, 0.22);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.995),
    rgba(236, 247, 255, 0.96)
  );
  padding: 20px;
  box-shadow:
    0 28px 52px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.page-home .home-algo-complete__title {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

body.page-home .home-algo-complete__text {
  margin: 8px 0 0;
  color: #355a7a;
  line-height: 1.4;
}

body.page-home .home-algo-complete__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Interview Modal Layout Refactor (scoped)
   -------------------------------------------------------------------------- */
body.page-home .ppccr-modal.modal--interview .ppccr-modal__card {
  width: min(980px, calc(100vw - 48px));
  height: min(82vh, 760px);
  height: min(82dvh, 760px);
  max-height: min(82vh, 760px);
  max-height: min(82dvh, 760px);
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__header {
  padding: 16px 20px 12px;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__subtitle {
  margin-top: 4px;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__body {
  padding: 0;
}

body.page-home .ppccr-modal.modal--interview .ppccr-modal__body > .home-algo {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
  line-height: 1.5;
}

body.page-home
  .ppccr-modal.modal--interview
  .home-algo
  :is(p, li, label, .home-algo__check span) {
  font-weight: 400;
  letter-spacing: 0.1px;
}

body.page-home .ppccr-modal.modal--interview .home-algo__panel-title {
  font-size: 1.08rem;
  font-weight: 700;
}

body.page-home .ppccr-modal.modal--interview .home-algo__label {
  font-weight: 560;
}

body.page-home .ppccr-modal.modal--interview .interview-top {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(12, 42, 79, 0.1);
}

body.page-home .ppccr-modal.modal--interview .interview-top .home-algo__topbar {
  margin: 0;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-top
  .home-algo__stepper {
  margin-top: 8px;
  gap: 8px;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-top
  .home-algo__stepper-button {
  min-height: 40px;
  padding: 8px 10px;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-top
  .home-algo__stepper-index {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
}

body.page-home .ppccr-modal.modal--interview .interview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 14px 16px 18px;
  overscroll-behavior: contain;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body::-webkit-scrollbar {
  width: 10px;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body::-webkit-scrollbar-track {
  background: transparent;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body::-webkit-scrollbar-thumb {
  background: rgba(12, 42, 79, 0.28);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body.is-overflow-bottom::after {
  content: "Deslizá para ver más";
  position: sticky;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  margin-top: -2px;
  padding: 22px 0 6px;
  text-align: center;
  pointer-events: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(20, 60, 90, 0.74);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.9) 45%,
    rgba(255, 255, 255, 0.98)
  );
}

body.page-home .ppccr-modal.modal--interview .interview-body .home-algo__panel {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 16px 16px 10px;
  border-radius: 16px;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body
  .home-algo__panel::after {
  content: none !important;
}

body.page-home
  .ppccr-modal.modal--interview
  .interview-body
  .home-algo__flow-status {
  margin: 0 0 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

body.page-home .ppccr-modal.modal--interview .interview-footer {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(12, 42, 79, 0.12);
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.1);
}

body.page-home .ppccr-modal.modal--interview #home-algo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 42px;
}

body.page-home
  .ppccr-modal.modal--interview
  #home-algo-actions
  .home-algo__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  position: static;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.page-home .ppccr-modal.modal--interview .home-algo__actions-anchor {
  display: none !important;
}

body.page-home .ppccr-modal.modal--interview #home-algo-actions .btn,
body.page-home .ppccr-modal.modal--interview #home-algo-restart {
  min-height: 42px;
  padding: 0 14px;
}

body.page-home .ppccr-modal.modal--interview #home-algo-restart {
  margin-left: auto;
}

body.ppccr-modal-open,
html.ppccr-modal-open {
  overflow: hidden;
}

body.ppccr-modal-open {
  overscroll-behavior: none;
}

/* Oculta el HUD de estado en la fila del título del modal de algoritmo */
body.page-home .ppccr-modal.modal--interview .modal-status-hud {
  display: none !important;
}

@media (max-width: 980px) {
  body.page-home .ppccr-modal.modal--interview {
    padding: 12px;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__card {
    width: calc(100vw - 24px);
    height: min(92vh, 740px);
    height: min(92dvh, 740px);
    max-height: min(92vh, 740px);
    max-height: min(92dvh, 740px);
    border-radius: 16px;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__header {
    padding: 10px 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__subtitle {
    font-size: 0.74rem;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__titlewrap {
    flex: 1 1 calc(100% - 54px);
    max-width: calc(100% - 54px);
  }

  body.page-home .ppccr-modal.modal--interview .modal-status-hud {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  body.page-home .ppccr-modal.modal--interview .modal-status-hud__pill {
    width: auto;
    max-width: 100%;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__body {
    padding: 8px;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__body > .home-algo {
    padding: 0;
  }

  body.page-home
    .ppccr-modal.modal--interview
    .interview-top
    .home-algo__stepper {
    grid-template-columns: 1fr;
  }

  body.page-home .ppccr-modal.modal--interview .interview-body {
    padding: 12px;
  }

  body.page-home .ppccr-modal.modal--interview #home-algo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-home
    .ppccr-modal.modal--interview
    #home-algo-actions
    .home-algo__actions {
    width: 100%;
  }

  body.page-home .ppccr-modal.modal--interview #home-algo-actions .btn,
  body.page-home .ppccr-modal.modal--interview #home-algo-restart {
    width: 100%;
  }

  body.page-home .ppccr-modal.modal--interview #home-algo-restart {
    margin-left: 0;
  }

  body.page-home .home-algo-complete__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-home .home-algo-complete__actions .btn {
    width: 100%;
  }
}

@media (max-height: 760px) {
  body.page-home .ppccr-modal.modal--interview {
    padding: 12px;
  }

  body.page-home .ppccr-modal.modal--interview .ppccr-modal__card {
    height: min(92vh, 720px);
    height: min(92dvh, 720px);
    max-height: min(92vh, 720px);
    max-height: min(92dvh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .ppccr-modal.modal--interview,
  body.page-home .ppccr-modal.modal--interview .ppccr-modal__backdrop,
  body.page-home .ppccr-modal.modal--interview .ppccr-modal__card,
  body.page-home .ppccr-modal.modal--interview .home-algo__panel,
  body.page-home .ppccr-modal.modal--interview .home-algo__actions .btn,
  body.page-home
    .ppccr-modal.modal--interview
    .home-algo__actions
    .btn.is-loading::before {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Left Dock Executive Harmonization (Home desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 1180px) {
  body.page-home .site-nav {
    --left-dock-cube-size: 78px;
    --left-dock-cube-gap: 12px;
    --left-dock-cube-radius: 16px;
    top: calc(var(--header-fixed-h, 0px) + var(--left-dock-cube-gap));
    transform: none;
    width: calc(var(--left-dock-cube-size) + 10px);
    padding: 0;
  }

  body.page-home .site-nav .nav-list {
    gap: var(--left-dock-cube-gap) !important;
    padding: 0 !important;
  }

  body.page-home .site-nav .nav-list > li,
  body.page-home .site-nav .station-chip-item {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  body.page-home .site-nav .nav-link,
  body.page-home .site-nav .station-chip.user-dock-tile,
  body.page-home .site-nav #station-switch-trigger.station-chip {
    width: var(--left-dock-cube-size);
    min-width: var(--left-dock-cube-size);
    height: var(--left-dock-cube-size);
    min-height: var(--left-dock-cube-size);
    margin: 0 !important;
    border-radius: var(--left-dock-cube-radius);
  }

  body.page-home .site-nav .nav-link {
    border: 1px solid rgba(14, 84, 148, 0.2);
    background: linear-gradient(
      182deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(235, 246, 255, 0.93) 100%
    );
    box-shadow:
      0 10px 20px rgba(7, 31, 67, 0.11),
      0 2px 5px rgba(7, 31, 67, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.page-home .site-nav .nav-link:hover {
    box-shadow:
      0 12px 24px rgba(7, 31, 67, 0.14),
      0 3px 8px rgba(7, 31, 67, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  body.page-home .site-nav .nav-link[aria-current="page"],
  body.page-home .site-nav .nav-link[aria-current="true"],
  body.page-home .site-nav .nav-link.is-active {
    border-color: rgba(11, 92, 168, 0.48);
    box-shadow:
      0 12px 24px rgba(7, 31, 67, 0.16),
      0 0 0 2px rgba(42, 137, 230, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.page-home .site-nav .nav-link__icon {
    width: 24px;
    height: 24px;
  }

  body.page-home .site-nav .nav-link__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
  }

  body.page-home .site-nav .nav-link__label {
    font-size: 0.6rem;
    line-height: 1.06;
    font-weight: 730;
  }

  body.page-home .site-nav .station-chip.user-dock-tile,
  body.page-home .site-nav #station-switch-trigger.station-chip {
    padding: 8px 6px;
    gap: 5px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--brand-gradient);
    box-shadow:
      0 14px 24px rgba(7, 56, 108, 0.26),
      0 4px 10px rgba(7, 56, 108, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
      transform 170ms ease,
      box-shadow 190ms ease,
      filter 170ms ease;
  }

  body.page-home .site-nav .station-chip.user-dock-tile::before,
  body.page-home .site-nav #station-switch-trigger.station-chip::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto;
    height: 54%;
    border-radius: calc(var(--left-dock-cube-radius) - 3px);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  body.page-home .site-nav .station-chip.user-dock-tile::after,
  body.page-home .site-nav #station-switch-trigger.station-chip::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    right: -16px;
    bottom: -16px;
    border-radius: 999px;
    background: radial-gradient(
      circle,
      rgba(59, 155, 239, 0.38) 0%,
      rgba(59, 155, 239, 0) 72%
    );
    pointer-events: none;
    z-index: 0;
  }

  body.page-home .site-nav .station-chip.user-dock-tile .station-chip__icon,
  body.page-home
    .site-nav
    #station-switch-trigger.station-chip
    .station-chip__icon,
  body.page-home .site-nav .station-chip.user-dock-tile .station-chip__meta,
  body.page-home
    .site-nav
    #station-switch-trigger.station-chip
    .station-chip__meta {
    position: relative;
    z-index: 1;
  }

  body.page-home .site-nav .station-chip.user-dock-tile:hover,
  body.page-home .site-nav #station-switch-trigger.station-chip:hover {
    filter: saturate(1.07) brightness(1.03);
    box-shadow:
      0 16px 26px rgba(7, 56, 108, 0.3),
      0 5px 12px rgba(7, 56, 108, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  body.page-home .site-nav .station-chip__meta {
    gap: 1px;
  }

  body.page-home .site-nav .station-chip__kicker {
    font-size: 8px;
    letter-spacing: 0.055em;
  }

  body.page-home .site-nav .station-chip__label.user-dock-tile__label {
    max-width: calc(var(--left-dock-cube-size) - 12px);
    font-size: 9.1px;
    line-height: 1.03;
  }

  body.page-home
    .site-nav
    .station-chip--admin
    .station-chip__label.user-dock-tile__label,
  body.page-home
    .site-nav
    #station-switch-trigger.station-chip.station-chip--admin
    .station-chip__label.user-dock-tile__label {
    max-width: calc(var(--left-dock-cube-size) - 8px);
    font-size: 8.5px;
    line-height: 1.02;
  }
}

/* --------------------------------------------------------------------------
   Auth Gate Premium Pass (final visual emphasis)
   -------------------------------------------------------------------------- */
#auth-gate.auth-gate {
  --auth-cube-blue-top: #0f5fa6;
  --auth-cube-blue-bottom: #0b3a66;
  --auth-cube-gradient: var(--brand-gradient);
  --auth-surface-edge: rgba(193, 218, 243, 0.66);
  --auth-tile-bg: linear-gradient(160deg, #f2f8ff 0%, #e5f0fb 100%);
  --auth-tile-border: rgba(16, 94, 162, 0.22);
  --auth-deep-shadow:
    0 34px 70px rgba(3, 18, 34, 0.42), 0 16px 36px rgba(6, 34, 63, 0.28);
  background:
    radial-gradient(circle at 14% 8%, rgba(85, 151, 228, 0.2), transparent 46%),
    radial-gradient(
      circle at 86% 92%,
      rgba(15, 95, 166, 0.28),
      transparent 44%
    ),
    rgba(6, 21, 39, 0.64);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  backdrop-filter: blur(20px) saturate(1.14);
}

#auth-gate.auth-gate .auth-card.pp-modal__card {
  width: min(95vw, 628px);
  max-width: 628px;
  border-radius: 30px;
  border: 1px solid var(--auth-surface-edge);
  box-shadow: var(--auth-deep-shadow);
}

#auth-gate[data-mode="station"] .auth-card.pp-modal__card {
  width: min(95vw, 680px);
  max-width: 680px;
}

#auth-gate.auth-gate .pp-modal__header {
  padding: 28px 30px 22px;
}

#auth-gate.auth-gate .pp-modal__logo {
  width: 46px;
  height: 46px;
}

#auth-gate.auth-gate .pp-modal__kicker {
  margin-bottom: 10px;
  padding: 5px 11px;
}

#auth-gate.auth-gate .pp-modal__programTitle {
  font-size: clamp(1.18rem, 1.86vw, 1.46rem);
  line-height: 1.14;
}

#auth-gate[data-mode="station"] .pp-modal__programTitle {
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
}

#auth-gate.auth-gate .pp-modal__hint {
  margin-top: 8px;
  font-size: 0.93rem;
}

#auth-gate[data-mode="station"] .pp-modal__sectionTitle {
  margin-top: 18px;
  padding-top: 15px;
}

#auth-gate[data-mode="station"] .pp-modal__sectionKicker {
  font-size: 0.8rem;
}

#auth-gate[data-mode="station"] .pp-modal__sectionHeading {
  margin-top: 5px;
  font-size: clamp(2.3rem, 3.9vw, 3.1rem);
}

#auth-gate.auth-gate .pp-modal__body {
  padding: 24px 30px 26px;
  gap: 18px;
}

#auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
  gap: 14px;
}

#auth-gate.auth-gate .auth-station.station-tile {
  min-height: 126px;
  border-radius: 21px;
  border: 1px solid var(--auth-tile-border);
  background: var(--auth-tile-bg);
  color: #103d66;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  box-shadow:
    0 8px 18px rgba(8, 62, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

#auth-gate.auth-gate .auth-station.station-tile:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 28px rgba(8, 62, 118, 0.2),
    0 4px 11px rgba(8, 62, 118, 0.13);
}

#auth-gate.auth-gate .auth-station.station-tile.is-selected,
#auth-gate.auth-gate .auth-station.station-tile[aria-pressed="true"] {
  border-color: rgba(213, 234, 255, 0.78);
  background: linear-gradient(
    150deg,
    var(--auth-cube-blue-top) 0%,
    var(--auth-cube-blue-bottom) 100%
  );
  box-shadow:
    0 22px 34px rgba(8, 56, 108, 0.38),
    0 0 0 2px rgba(206, 231, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#auth-gate.auth-gate .auth-station.station-tile::before {
  width: 24px;
  height: 24px;
  top: 10px;
  right: 11px;
}

#auth-gate.auth-gate .auth-station.station-tile::after {
  top: 11px;
  right: 17px;
  font-size: 13px;
}

#auth-gate.auth-gate .auth-field {
  padding: 18px;
  border-radius: 18px;
  border-color: rgba(18, 95, 162, 0.2);
}

#auth-gate.auth-gate .auth-label {
  font-size: 0.82rem;
}

#auth-gate.auth-gate #authPass,
#auth-gate.auth-gate .auth-input {
  height: 56px;
  border-radius: 16px;
  font-size: 1rem;
  padding-right: 52px;
}

#auth-gate.auth-gate #authPassToggle.auth-passToggle,
#auth-gate.auth-gate .auth-passToggle {
  width: 38px;
  height: 38px;
  right: 10px;
  border-radius: 12px;
}

#auth-gate.auth-gate .auth-helper,
#auth-gate.auth-gate .auth-error {
  font-size: 0.84rem;
}

#auth-gate.auth-gate .auth-actions.pp-modal__footer {
  padding-top: 18px;
}

#auth-gate.auth-gate .pp-modal__actions {
  gap: 12px;
}

#auth-gate.auth-gate .auth-btn.pp-btn,
#auth-gate.auth-gate .auth-btn--ghost,
#auth-gate.auth-gate .pp-btn {
  min-width: 178px;
  height: 56px;
  border-radius: 17px;
  font-size: 1.02rem;
  font-weight: 800;
}

#auth-gate.auth-gate .pp-btn--secondary,
#auth-gate.auth-gate .auth-btn--ghost {
  border: 1px solid rgba(11, 84, 152, 0.24);
  box-shadow: 0 10px 18px rgba(10, 73, 133, 0.12);
}

#auth-gate.auth-gate .pp-btn--primary {
  background: linear-gradient(
    145deg,
    var(--auth-cube-blue-top) 0%,
    var(--auth-cube-blue-bottom) 100%
  );
  box-shadow:
    0 14px 24px rgba(6, 52, 101, 0.3),
    0 4px 10px rgba(6, 52, 101, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#auth-gate.auth-gate .pp-btn--primary:hover:not(:disabled) {
  box-shadow:
    0 18px 28px rgba(6, 52, 101, 0.36),
    0 5px 12px rgba(6, 52, 101, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#auth-gate[data-mode="station"] .auth-actions.pp-modal__footer {
  margin-top: 2px;
}

#auth-gate[data-mode="station"]
  .auth-station.station-tile[data-station="admin"] {
  min-height: 118px;
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate .auth-card.pp-modal__card,
  #auth-gate[data-mode="station"] .auth-card.pp-modal__card {
    width: min(100vw - 14px, 560px);
    border-radius: 23px;
  }

  #auth-gate.auth-gate .pp-modal__header {
    padding: 18px 16px 15px;
  }

  #auth-gate.auth-gate .pp-modal__programTitle {
    font-size: clamp(1.02rem, 4.6vw, 1.2rem);
  }

  #auth-gate.auth-gate .pp-modal__hint {
    font-size: 0.84rem;
  }

  #auth-gate[data-mode="station"] .pp-modal__sectionHeading {
    font-size: clamp(1.72rem, 7.8vw, 2.2rem);
  }

  #auth-gate.auth-gate .pp-modal__body {
    padding: 14px 16px 16px;
    gap: 12px;
  }

  #auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #auth-gate.auth-gate .auth-station.station-tile {
    min-height: 92px;
    border-radius: 16px;
    font-size: 0.86rem;
  }

  #auth-gate.auth-gate .auth-station.station-tile[data-station="admin"] {
    grid-column: 1 / -1;
    min-height: 84px;
  }

  #auth-gate.auth-gate #authPass,
  #auth-gate.auth-gate .auth-input {
    height: 48px;
    border-radius: 13px;
    font-size: 0.94rem;
  }

  #auth-gate.auth-gate .auth-btn.pp-btn,
  #auth-gate.auth-gate .auth-btn--ghost,
  #auth-gate.auth-gate .pp-btn {
    min-width: 0;
    flex: 1 1 0;
    height: 50px;
    border-radius: 15px;
    font-size: 0.96rem;
  }

  #auth-gate[data-mode="login"] .pp-modal__actions .pp-btn--primary {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   Auth Station Tiles v2 (Modern Selectable Tiles)
   -------------------------------------------------------------------------- */
#auth-gate.auth-gate .pp-modal__body .auth-grid.pp-modal__station-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 20px;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card {
  position: relative;
  height: 100%;
  min-height: 242px;
  margin: 0;
  padding: 0;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  background: #ffffff;
  color: #212529;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card::before,
#auth-gate.auth-gate .pp-modal__body .auth-station.station-card::after {
  content: none !important;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card:hover {
  transform: translateY(-4px);
  border-color: #cfd6de;
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.12),
    0 3px 8px rgba(15, 23, 42, 0.08);
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card:active {
  transform: translateY(-1px);
}

#auth-gate.auth-gate .station-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 22px 14px 18px;
  text-align: center;
}

#auth-gate.auth-gate .station-card__avatarWrap {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  margin-bottom: 16px;
  border: 4px solid rgba(13, 110, 253, 0.08);
  box-shadow:
    0 10px 22px rgba(13, 43, 81, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

#auth-gate.auth-gate .station-card__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#auth-gate.auth-gate .station-card__name {
  display: block;
  color: #212529;
  font-size: 1.16rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}

#auth-gate.auth-gate .station-card__check {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  opacity: 0;
  transform: scale(0.65);
  transform-origin: top right;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
}

#auth-gate.auth-gate .station-card__check svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(13, 95, 166, 0.28));
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card.is-selected,
#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card[aria-pressed="true"] {
  border: 3px solid #0f5fa6;
  background-color: #f0f7ff;
  box-shadow:
    0 18px 34px rgba(15, 95, 166, 0.22),
    0 0 0 1px rgba(15, 95, 166, 0.12);
}

#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card.is-selected
  .station-card__check,
#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card[aria-pressed="true"]
  .station-card__check {
  opacity: 1;
  transform: scale(1);
}

#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card.is-selected
  .station-card__avatarWrap,
#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card[aria-pressed="true"]
  .station-card__avatarWrap {
  border-color: rgba(15, 95, 166, 0.24);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn,
#auth-gate.auth-gate .pp-modal__actions .auth-btn {
  height: 58px;
  min-width: 190px;
  border-radius: 18px;
  font-size: 1.03rem;
  font-weight: 800;
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary {
  background: var(--brand-gradient);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 15px 26px rgba(11, 58, 102, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 19px 30px rgba(11, 58, 102, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--secondary,
#auth-gate.auth-gate .pp-modal__actions .auth-btn--ghost {
  background: #ffffff;
  color: #0f5fa6;
  border: 2px solid rgba(15, 95, 166, 0.2);
  box-shadow: 0 8px 18px rgba(15, 95, 166, 0.12);
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate .pp-modal__body .auth-grid.pp-modal__station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #auth-gate.auth-gate .pp-modal__body .auth-station.station-card {
    min-height: 172px;
    border-radius: 16px;
  }

  #auth-gate.auth-gate
    .pp-modal__body
    .auth-station.station-card[data-station="admin"] {
    grid-column: 1 / -1;
    min-height: 148px;
  }

  #auth-gate.auth-gate .station-card__content {
    padding: 14px 10px 12px;
  }

  #auth-gate.auth-gate .station-card__avatarWrap {
    width: 84px;
    height: 84px;
    margin-bottom: 10px;
  }

  #auth-gate.auth-gate .station-card__name {
    font-size: 0.95rem;
    line-height: 1.13;
  }

  #auth-gate.auth-gate .station-card__check {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }

  #auth-gate.auth-gate .pp-modal__actions .pp-btn,
  #auth-gate.auth-gate .pp-modal__actions .auth-btn {
    min-width: 0;
    flex: 1 1 0;
    height: 52px;
    border-radius: 15px;
    font-size: 0.96rem;
  }
}

/* --------------------------------------------------------------------------
   Auth Gate Corporate Harmonization (final)
   -------------------------------------------------------------------------- */
#auth-gate.auth-gate {
  background:
    radial-gradient(
      circle at 16% 10%,
      rgba(65, 125, 196, 0.15),
      transparent 46%
    ),
    radial-gradient(circle at 82% 88%, rgba(15, 95, 166, 0.2), transparent 44%),
    rgba(7, 22, 40, 0.58);
  -webkit-backdrop-filter: blur(15px) saturate(1.06);
  backdrop-filter: blur(15px) saturate(1.06);
}

#auth-gate.auth-gate .auth-card.pp-modal__card {
  width: min(90vw, 552px);
  max-width: 552px;
  border-radius: 24px;
  border: 1px solid rgba(182, 205, 229, 0.8);
  box-shadow:
    0 20px 44px rgba(8, 29, 55, 0.32),
    0 8px 18px rgba(9, 36, 67, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

#auth-gate[data-mode="login"] .auth-card.pp-modal__card {
  max-width: 520px;
}

#auth-gate[data-mode="station"] .auth-card.pp-modal__card {
  max-width: 560px;
}

#auth-gate.auth-gate .pp-modal__header {
  padding: 18px 26px 14px 18px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(241, 247, 254, 0.94) 0%,
    rgba(250, 253, 255, 0.94) 100%
  );
  box-shadow: inset 0 -1px 0 rgba(168, 197, 224, 0.52);
}

/* Typographic hierarchy: H1 > H2 > H3 */
#auth-gate.auth-gate .pp-modal__programTitle {
  font-size: clamp(1.34rem, 1.82vw, 1.58rem);
  line-height: 1.17;
  font-weight: 800;
  color: #103f6c;
  margin: 0;
  max-width: 24ch;
  overflow-wrap: anywhere;
}

#auth-gate.auth-gate .pp-modal__brand {
  justify-content: center;
  align-items: center;
  gap: 12px;
  transform: translateX(-12px);
}

#auth-gate.auth-gate .pp-modal__brandText {
  text-align: left;
  max-width: 34ch;
}

#auth-gate.auth-gate .pp-modal__logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 14px rgba(9, 64, 119, 0.2))
    drop-shadow(0 2px 5px rgba(9, 64, 119, 0.14));
}

#auth-gate.auth-gate .pp-modal__sectionHeading {
  margin-top: 3px;
  font-size: clamp(1.12rem, 1.45vw, 1.24rem);
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: #0f5fa6;
}

#auth-gate.auth-gate .pp-modal__sectionKicker {
  font-size: 0.78rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #55718f;
}

#auth-gate.auth-gate .pp-modal__hint {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.34;
  color: #4d6279;
}

#auth-gate.auth-gate .pp-modal__body {
  padding: 14px 22px 16px;
  gap: 12px;
}

#auth-gate.auth-gate .pp-modal__body .auth-grid.pp-modal__station-grid {
  gap: 14px;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card {
  min-height: 176px;
  border-radius: 16px;
  border: 1.5px solid rgba(201, 214, 227, 0.95);
  box-shadow:
    0 7px 14px rgba(10, 30, 52, 0.09),
    0 2px 4px rgba(10, 30, 52, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(12, 40, 69, 0.14),
    0 4px 8px rgba(12, 40, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

#auth-gate.auth-gate .station-card__content {
  padding: 14px 10px 12px;
}

#auth-gate.auth-gate .station-card__avatarWrap {
  width: 82px;
  height: 82px;
  margin-bottom: 10px;
}

#auth-gate.auth-gate .station-card__name {
  font-size: 1.04rem;
  line-height: 1.14;
  font-weight: 700;
  color: #1f2933;
}

#auth-gate.auth-gate .station-card__check {
  width: 30px;
  height: 30px;
  top: 8px;
  right: 8px;
}

#auth-gate.auth-gate .pp-modal__body .auth-station.station-card.is-selected,
#auth-gate.auth-gate
  .pp-modal__body
  .auth-station.station-card[aria-pressed="true"] {
  border: 2.5px solid #0f5fa6;
  background-color: #f0f7ff;
  box-shadow:
    0 12px 22px rgba(15, 95, 166, 0.22),
    0 0 0 1px rgba(15, 95, 166, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

#auth-gate.auth-gate .auth-actions.pp-modal__footer {
  padding-top: 12px;
  border-top: 1px solid rgba(168, 197, 224, 0.42);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn,
#auth-gate.auth-gate .pp-modal__actions .auth-btn {
  height: 48px;
  min-width: 154px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease;
}

#auth-gate.auth-gate .pp-modal__actions {
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary {
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 18px rgba(11, 58, 102, 0.26),
    0 2px 6px rgba(11, 58, 102, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 13px 22px rgba(11, 58, 102, 0.3),
    0 4px 8px rgba(11, 58, 102, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--secondary,
#auth-gate.auth-gate .pp-modal__actions .auth-btn--ghost {
  border-color: rgba(15, 95, 166, 0.3);
  background: #ffffff;
  color: #0f5fa6;
  box-shadow:
    0 6px 10px rgba(15, 95, 166, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--secondary:hover:not(:disabled),
#auth-gate.auth-gate .pp-modal__actions .auth-btn--ghost:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(15, 95, 166, 0.44);
  box-shadow:
    0 9px 14px rgba(15, 95, 166, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate .auth-card.pp-modal__card,
  #auth-gate[data-mode="login"] .auth-card.pp-modal__card,
  #auth-gate[data-mode="station"] .auth-card.pp-modal__card {
    width: min(100vw - 18px, 520px);
    max-width: 520px;
    border-radius: 18px;
  }

  #auth-gate.auth-gate .pp-modal__header {
    padding: 14px 16px 12px 12px;
  }

  #auth-gate.auth-gate .pp-modal__programTitle {
    font-size: clamp(1.06rem, 4.1vw, 1.22rem);
    max-width: 21ch;
    margin: 0;
  }

  #auth-gate.auth-gate .pp-modal__brand {
    gap: 10px;
    transform: translateX(-5px);
  }

  #auth-gate.auth-gate .pp-modal__logo {
    width: 50px;
    height: 50px;
  }

  #auth-gate.auth-gate .pp-modal__sectionHeading {
    font-size: clamp(0.98rem, 3.8vw, 1.08rem);
  }

  #auth-gate.auth-gate .pp-modal__sectionKicker {
    font-size: 0.68rem;
  }

  #auth-gate.auth-gate .pp-modal__hint {
    font-size: 0.78rem;
  }

  #auth-gate.auth-gate .pp-modal__body {
    padding: 12px 14px 14px;
    gap: 10px;
  }

  #auth-gate.auth-gate .pp-modal__body .auth-grid.pp-modal__station-grid {
    gap: 10px;
  }

  #auth-gate.auth-gate .pp-modal__body .auth-station.station-card {
    min-height: 142px;
    border-radius: 14px;
  }

  #auth-gate.auth-gate
    .pp-modal__body
    .auth-station.station-card[data-station="admin"] {
    min-height: 126px;
  }

  #auth-gate.auth-gate .station-card__avatarWrap {
    width: 66px;
    height: 66px;
    margin-bottom: 8px;
  }

  #auth-gate.auth-gate .station-card__name {
    font-size: 0.9rem;
  }

  #auth-gate.auth-gate .station-card__check {
    width: 26px;
    height: 26px;
  }

  #auth-gate.auth-gate .pp-modal__actions .pp-btn,
  #auth-gate.auth-gate .pp-modal__actions .auth-btn {
    height: 44px;
    min-width: 0;
    flex: 1 1 0;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

/* KPI dashboard frameless shell:
   el contenedor no compite con el borde nativo del reporte */
body.page-home #kpis .embed-card {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.page-home #kpis .embed-shell--looker {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.page-home #kpis #looker-iframe,
body.page-home #kpis .embed-shell--looker .embed-iframe {
  border-radius: 0 !important;
  background: transparent !important;
}

body.page-home #kpis .embed-shell--looker .embed-skeleton,
body.page-home #kpis .embed-shell--looker .embed-fallback--overlay {
  inset: 0 !important;
  border-radius: 0 !important;
}

/* KPI desktop: mostrar un poco más de contenido inferior del reporte */
@media (min-width: 769px) {
  body.page-home #kpis .embed-shell--looker {
    height: clamp(754px, 85.4vh, 938px) !important;
    overflow: hidden !important;
  }

  body.page-home #kpis #looker-iframe,
  body.page-home #kpis .embed-shell--looker .embed-iframe {
    -webkit-clip-path: inset(0 0 18px 0);
    clip-path: inset(0 0 18px 0);
  }
}

/* Page transitions (MPA app-like) */
html.is-ready body {
  animation: ppccr-page-enter 170ms ease both;
}

html.is-leaving body {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

/* Overlay safety: evita que body transformado rompa fixed modals */
body.ppccr-modal-open,
body.is-auth-locked {
  animation: none !important;
  transform: none !important;
}

@keyframes ppccr-page-enter {
  from {
    opacity: 0.98;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-ready body {
    animation: none !important;
  }

  html.is-leaving body {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Auth Gate Layout Guard: centrar y mantener visible */
#auth-gate.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    12px
    max(12px, env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
}

#auth-gate.auth-gate[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#auth-gate.auth-gate .auth-card.pp-modal__card {
  margin: 0;
  justify-self: center;
  align-self: center;
  transform: none !important;
  width: min(92vw, 560px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

#auth-gate[data-mode="login"] .auth-card.pp-modal__card {
  width: min(92vw, 520px);
}

#auth-gate[data-mode="station"] .auth-card.pp-modal__card {
  width: min(92vw, 600px);
}

@supports not (height: 100dvh) {
  #auth-gate.auth-gate {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }

  #auth-gate.auth-gate .auth-card.pp-modal__card {
    max-height: calc(100vh - 24px);
  }
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate .auth-card.pp-modal__card {
    width: min(100vw - 12px, 520px);
    max-height: calc(100dvh - 20px);
  }
}

/* Algorithm Modal Hardening: visible + centered + above backdrop */
#ppccr-algo-modal.ppccr-modal.modal--interview {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid !important;
  place-items: center !important;
  padding: clamp(12px, 2.2vw, 24px);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: auto;
}

#ppccr-algo-modal.ppccr-modal.modal--interview.is-open,
#ppccr-algo-modal.ppccr-modal.modal--interview[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#ppccr-algo-modal.ppccr-modal.modal--interview .ppccr-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#ppccr-algo-modal.ppccr-modal.modal--interview .ppccr-modal__card {
  position: relative;
  z-index: 1;
}

#ppccr-algo-modal.ppccr-modal.modal--interview.is-open .ppccr-modal__card,
#ppccr-algo-modal.ppccr-modal.modal--interview[aria-hidden="false"] .ppccr-modal__card,
#ppccr-algo-modal.ppccr-modal.modal--interview.is-force-open .ppccr-modal__card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Auth Gate: authenticated user switching refinements */
#user-banner.user-banner .user-banner__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

#user-banner.user-banner .user-banner__eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 63, 111, 0.72);
}

#station-switch-trigger.station-chip .station-chip__meta {
  gap: 3px;
}

#station-switch-trigger.station-chip .station-chip__kicker {
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
}

#auth-gate.auth-gate .auth-sessionSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 93, 160, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.98)),
    radial-gradient(circle at top right, rgba(70, 140, 220, 0.12), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 28px rgba(15, 63, 111, 0.08);
}

#auth-gate.auth-gate .auth-sessionSummary__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

#auth-gate.auth-gate .auth-sessionSummary__label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 63, 111, 0.66);
}

#auth-gate.auth-gate .auth-sessionSummary__value {
  display: block;
  min-width: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f3f6f;
  text-wrap: balance;
}

#auth-gate.auth-gate .auth-sessionSummary__value.is-placeholder {
  color: rgba(15, 63, 111, 0.58);
}

#auth-gate.auth-gate .station-card__currentTag {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 36, 68, 0.18);
  box-shadow: none;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

#auth-gate.auth-gate .auth-station.station-card.is-current {
  border-color: rgba(10, 69, 125, 0.94);
  background:
    linear-gradient(180deg, #2d7ed0 0%, #125291 100%),
    #125291;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 14px 24px rgba(9, 52, 98, 0.18);
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__name {
  color: #ffffff;
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__content {
  color: #ffffff;
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__avatarWrap {
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.08),
    0 8px 14px rgba(3, 27, 53, 0.18);
  border-radius: 999px;
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__avatar {
  filter: saturate(0.98) brightness(1.04);
}

#auth-gate[data-mode="station"] .auth-card.pp-modal__card {
  width: min(94vw, 676px);
}

#auth-gate[data-mode="station"] .pp-modal__header {
  gap: 8px;
  align-items: flex-start;
  padding: 18px 24px 8px 18px;
}

#auth-gate[data-mode="station"] .pp-modal__brand {
  justify-content: flex-start;
  width: 100%;
  gap: 16px;
  transform: translateX(-28px);
}

#auth-gate[data-mode="station"] .pp-modal__brandText {
  max-width: 41ch;
}

#auth-gate[data-mode="station"] .pp-modal__programTitle {
  max-width: 32ch;
  text-align: left;
}

#auth-gate[data-mode="station"] .pp-modal__logo {
  width: 66px;
  height: 66px;
  margin-left: -6px;
}

#auth-gate[data-mode="station"] .pp-modal__kicker,
#auth-gate[data-mode="station"] .pp-modal__hint,
#auth-gate[data-mode="station"] .pp-modal__sectionTitle,
#auth-gate[data-mode="station"] .auth-sessionSummary {
  display: none !important;
}

#auth-gate[data-mode="station"] .pp-modal__body {
  gap: 12px;
  padding-top: 10px;
}

#auth-gate[data-mode="station"] .auth-grid.pp-modal__station-grid {
  gap: 12px;
}

#auth-gate[data-mode="station"] .auth-station.station-card {
  min-height: 184px;
  padding: 20px 16px 16px;
}

#auth-gate[data-mode="station"] .station-card__avatarWrap {
  width: 82px;
  height: 82px;
  margin-bottom: 10px;
}

#auth-gate[data-mode="station"] .station-card__name {
  font-size: 1rem;
  line-height: 1.14;
}

#auth-gate[data-mode="station"] .auth-field {
  display: block !important;
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(31, 93, 160, 0.12);
}

#auth-gate[data-mode="station"] .auth-label {
  color: #103e6c;
}

#auth-gate[data-mode="station"] .auth-helper {
  min-height: 1.35em;
  color: #57708c;
}

#auth-gate[data-mode="station"] .auth-actions.pp-modal__footer {
  padding-top: 8px;
}

@media (max-width: 767.98px) {
  #user-banner.user-banner .user-banner__eyebrow {
    font-size: 0.56rem;
  }

  #auth-gate.auth-gate .auth-sessionSummary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  #auth-gate.auth-gate .auth-sessionSummary__item {
    padding: 10px 11px;
  }

  #auth-gate.auth-gate .station-card__currentTag {
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 0.52rem;
  }

  #auth-gate[data-mode="station"] .auth-card.pp-modal__card {
    width: min(100vw - 12px, 534px);
  }

  #auth-gate[data-mode="station"] .pp-modal__header {
    padding: 16px 16px 8px 14px;
  }

  #auth-gate[data-mode="station"] .pp-modal__brand {
    gap: 12px;
    transform: translateX(-12px);
  }

  #auth-gate[data-mode="station"] .pp-modal__programTitle {
    max-width: 19ch;
  }

  #auth-gate[data-mode="station"] .pp-modal__logo {
    width: 52px;
    height: 52px;
    margin-left: -3px;
  }

  #auth-gate[data-mode="station"] .auth-grid.pp-modal__station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #auth-gate[data-mode="station"] .auth-station.station-card {
    min-height: 156px;
    padding: 18px 12px 14px;
  }

  #auth-gate[data-mode="station"] .station-card__avatarWrap {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
  }

  #auth-gate[data-mode="station"] .auth-field {
    padding: 14px;
    border-radius: 16px;
  }
}

/* Auth Gate: ultra-fine access and switch modal polish */
#auth-gate.auth-gate .auth-card.pp-modal__card {
  width: min(94vw, 724px);
  border: 1px solid rgba(170, 197, 224, 0.7);
  background:
    radial-gradient(circle at top left, rgba(78, 151, 227, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(243, 247, 252, 0.98));
  box-shadow:
    0 26px 54px rgba(11, 47, 85, 0.18),
    0 10px 20px rgba(11, 47, 85, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#auth-gate.auth-gate .auth-card.pp-modal__card,
#auth-gate.auth-gate .auth-card.pp-modal__card :is(h1, h2, h3, p, span, strong, label, input, button) {
  font-family:
    "SF Pro Display", "Avenir Next", "Avenir Next Condensed", "Segoe UI",
    Helvetica, Arial, sans-serif;
}

#auth-gate.auth-gate .pp-modal__header {
  gap: 12px;
  align-items: flex-start;
  padding: 22px 30px 16px 22px;
  box-shadow: inset 0 -1px 0 rgba(168, 194, 220, 0.52);
}

#auth-gate.auth-gate .pp-modal__brand {
  width: 100%;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-8px);
}

#auth-gate.auth-gate .pp-modal__brandText {
  min-width: 0;
  max-width: 39rem;
}

#auth-gate.auth-gate .pp-modal__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33, 78, 123, 0.7);
}

#auth-gate.auth-gate .pp-modal__programTitle {
  display: flex;
  max-width: 30ch;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  text-align: left;
  color: #103f6c;
}

#auth-gate.auth-gate .pp-modal__programTitle .pp-modal__titleLine {
  display: block;
  text-wrap: balance;
}

#auth-gate.auth-gate .pp-modal__programTitle .pp-modal__titleLine--intro {
  font-size: clamp(1.12rem, 1.45vw, 1.28rem);
  line-height: 1.08;
  font-weight: 735;
  letter-spacing: 0.002em;
  color: #2f587f;
}

#auth-gate.auth-gate .pp-modal__programTitle .pp-modal__titleLine--focus {
  font-size: clamp(1.72rem, 2.2vw, 1.98rem);
  line-height: 0.99;
  font-weight: 805;
  letter-spacing: -0.022em;
  color: #103f6c;
}

#auth-gate.auth-gate .pp-modal__logo {
  width: 70px;
  height: 70px;
  margin-left: 0;
  filter:
    drop-shadow(0 12px 16px rgba(9, 63, 117, 0.14))
    drop-shadow(0 4px 8px rgba(9, 63, 117, 0.1));
}

#auth-gate.auth-gate .pp-modal__hint {
  margin: 9px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 520;
  color: #607a96;
}

#auth-gate.auth-gate .pp-modal__body {
  gap: 16px;
  padding: 16px 24px 20px;
}

#auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#auth-gate.auth-gate .auth-station.station-card {
  min-height: 188px;
  padding: 18px 16px 16px;
  border: 1.5px solid rgba(186, 203, 221, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.99));
  box-shadow:
    0 12px 22px rgba(9, 38, 69, 0.075),
    0 3px 8px rgba(9, 38, 69, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#auth-gate.auth-gate .auth-station.station-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 181, 214, 0.9);
  box-shadow:
    0 16px 26px rgba(9, 38, 69, 0.095),
    0 5px 11px rgba(9, 38, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#auth-gate.auth-gate .auth-station.station-card .station-card__content {
  min-width: 0;
  padding: 16px 14px 10px;
}

#auth-gate.auth-gate .station-card__avatarWrap {
  width: 80px;
  height: 80px;
  margin-bottom: 11px;
  box-shadow:
    0 8px 18px rgba(11, 47, 85, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#auth-gate.auth-gate .station-card__name {
  width: 100%;
  font-size: clamp(0.93rem, 1.02vw, 0.99rem);
  line-height: 1.14;
  font-weight: 645;
  letter-spacing: -0.012em;
  color: #203142;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  text-wrap: balance;
}

#auth-gate.auth-gate .auth-station.station-card.is-current {
  border-color: rgba(10, 70, 124, 0.9);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #2f84d6 0%, #165ea7 58%, #114b85 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    0 16px 28px rgba(9, 52, 98, 0.2),
    0 5px 11px rgba(9, 52, 98, 0.12);
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__content,
#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__name {
  color: #ffffff;
}

#auth-gate.auth-gate .auth-station.station-card.is-current .station-card__avatarWrap {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.075),
    0 11px 16px rgba(2, 22, 43, 0.2);
}

#auth-gate.auth-gate .station-card__currentTag {
  top: 11px;
  left: 11px;
  padding: 4px 7px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(6, 37, 69, 0.16);
  font-size: 0.52rem;
  font-weight: 760;
  letter-spacing: 0.065em;
}

#auth-gate.auth-gate .auth-field {
  --auth-field-text-inset: 18px;
  padding: 18px 20px 18px;
  border: 1px solid rgba(176, 198, 222, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 250, 253, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 22px rgba(12, 47, 85, 0.055);
}

#auth-gate.auth-gate .auth-label {
  margin-bottom: 10px;
  padding-left: var(--auth-field-text-inset);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #143f69;
}

#auth-gate.auth-gate .auth-inputWrap {
  border-color: rgba(171, 194, 219, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 7px 16px rgba(10, 45, 80, 0.05);
}

#auth-gate.auth-gate #authPass,
#auth-gate.auth-gate .auth-input {
  height: 54px;
  padding: 0 50px 0 var(--auth-field-text-inset);
  font-size: 1rem;
  font-weight: 540;
  letter-spacing: -0.008em;
  color: #23496f;
}

#auth-gate.auth-gate #authPass::placeholder,
#auth-gate.auth-gate .auth-input::placeholder {
  color: #8398b0;
}

#auth-gate.auth-gate #authPassToggle.auth-passToggle,
#auth-gate.auth-gate .auth-passToggle {
  width: 36px;
  height: 36px;
  right: 8px;
  border-radius: 11px;
  color: #1c4b7a;
}

#auth-gate.auth-gate .auth-helper {
  min-height: 1.35em;
  margin-top: 10px;
  padding-left: var(--auth-field-text-inset);
  font-size: 0.9rem;
  line-height: 1.36;
  font-weight: 520;
  color: #5d7894;
}

#auth-gate.auth-gate .auth-actions.pp-modal__footer {
  padding-top: 12px;
  border-top-color: rgba(170, 194, 218, 0.38);
}

#auth-gate.auth-gate .pp-modal__actions {
  gap: 12px;
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn,
#auth-gate.auth-gate .pp-modal__actions .auth-btn {
  min-width: 172px;
  height: 52px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary {
  box-shadow:
    0 12px 20px rgba(9, 52, 98, 0.18),
    0 4px 10px rgba(9, 52, 98, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--primary:disabled {
  background:
    linear-gradient(180deg, rgba(156, 179, 202, 0.95), rgba(131, 157, 183, 0.95));
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 7px 14px rgba(94, 121, 151, 0.12);
}

#auth-gate.auth-gate .pp-modal__actions .pp-btn--secondary,
#auth-gate.auth-gate .pp-modal__actions .auth-btn--ghost {
  background: linear-gradient(180deg, #ffffff, #f7fafd);
  border-color: rgba(145, 179, 214, 0.46);
  box-shadow:
    0 8px 15px rgba(10, 45, 80, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

@media (max-width: 767.98px) {
  #auth-gate.auth-gate .auth-card.pp-modal__card {
    width: min(100vw - 12px, 560px);
  }

  #auth-gate.auth-gate .pp-modal__header {
    gap: 10px;
    padding: 18px 18px 14px 16px;
  }

  #auth-gate.auth-gate .pp-modal__brand {
    gap: 12px;
    transform: translateX(-2px);
  }

  #auth-gate.auth-gate .pp-modal__programTitle {
    max-width: 14ch;
    gap: 3px;
  }

  #auth-gate.auth-gate .pp-modal__programTitle .pp-modal__titleLine--intro {
    font-size: 0.98rem;
  }

  #auth-gate.auth-gate .pp-modal__programTitle .pp-modal__titleLine--focus {
    font-size: clamp(1.42rem, 7vw, 1.74rem);
    line-height: 0.99;
  }

  #auth-gate.auth-gate .pp-modal__logo {
    width: 58px;
    height: 58px;
  }

  #auth-gate.auth-gate .pp-modal__hint {
    font-size: 0.87rem;
  }

  #auth-gate.auth-gate .pp-modal__body {
    padding: 13px 14px 18px;
    gap: 12px;
  }

  #auth-gate.auth-gate .auth-grid.pp-modal__station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #auth-gate.auth-gate .auth-station.station-card {
    min-height: 160px;
    padding: 16px 12px 14px;
  }

  #auth-gate.auth-gate .auth-station.station-card .station-card__content {
    padding: 14px 8px 8px;
  }

  #auth-gate.auth-gate .station-card__avatarWrap {
    width: 72px;
    height: 72px;
    margin-bottom: 9px;
  }

  #auth-gate.auth-gate .station-card__name {
    font-size: 0.92rem;
  }

  #auth-gate.auth-gate .station-card__currentTag {
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    font-size: 0.48rem;
  }

  #auth-gate.auth-gate .auth-field {
    --auth-field-text-inset: 16px;
    padding: 14px 14px 16px;
    border-radius: 18px;
  }

  #auth-gate.auth-gate .auth-label {
    font-size: 0.76rem;
    margin-bottom: 9px;
  }

  #auth-gate.auth-gate #authPass,
  #auth-gate.auth-gate .auth-input {
    height: 50px;
    font-size: 0.95rem;
  }

  #auth-gate.auth-gate .auth-helper {
    margin-top: 9px;
    font-size: 0.86rem;
  }

  #auth-gate.auth-gate .pp-modal__actions .pp-btn,
  #auth-gate.auth-gate .pp-modal__actions .auth-btn {
    min-width: 0;
    flex: 1 1 0;
    height: 48px;
    font-size: 0.96rem;
  }
}

/* Home hero sponsors: institutional band refinement */
body.page-home header.site-header.site-topbar .logo-strip.partners-bar,
body.page-home header.site-header.site-topbar .partners-bar {
  background: linear-gradient(
    180deg,
    rgba(247, 250, 254, 0.92) 0%,
    rgba(241, 246, 252, 0.97) 55%,
    rgba(247, 250, 254, 0.88) 100%
  );
  border-top-color: rgba(124, 166, 208, 0.18);
  box-shadow: inset 0 -1px 0 rgba(174, 201, 227, 0.32);
}

body.page-home header.site-header.site-topbar .logo-strip.partners-bar::before,
body.page-home header.site-header.site-topbar .partners-bar::before {
  background: linear-gradient(
    90deg,
    rgba(116, 162, 206, 0.04),
    rgba(58, 132, 204, 0.24),
    rgba(116, 162, 206, 0.04)
  );
}

body.page-home header.site-header.site-topbar .partners-bar .container,
body.page-home header.site-header.site-topbar .logo-strip.partners-bar .container {
  width: min(100% - 34px, 780px);
}

body.page-home #siteTopbar .brand {
  gap: 16px;
}

body.page-home #siteTopbar .brand-mark {
  width: clamp(72px, 5.8vw, 78px);
  height: clamp(72px, 5.8vw, 78px);
  display: grid;
  place-items: center;
}

body.page-home #siteTopbar .brand-ribbon {
  width: clamp(58px, 4.8vw, 64px);
  height: clamp(58px, 4.8vw, 64px) !important;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  body.page-home #partner-logos.partners-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: min(100%, 740px);
    max-width: 740px;
    margin-inline: auto;
    padding: 7px 0 10px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo,
  body.page-home #partner-logos.partners-strip > .partner-pill,
  body.page-home #partner-logos.partners-strip > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transform: none;
    transition: none;
    scroll-snap-align: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo:hover,
  body.page-home #partner-logos.partners-strip > .partner-logo:focus-within,
  body.page-home #partner-logos.partners-strip > .partner-pill:hover,
  body.page-home #partner-logos.partners-strip > .partner-pill:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo img,
  body.page-home #partner-logos.partners-strip > .partner-pill img,
  body.page-home #partner-logos.partners-strip img {
    width: auto;
    height: 40px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none;
    transition: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo:hover img,
  body.page-home #partner-logos.partners-strip > .partner-logo:focus-within img,
  body.page-home #partner-logos.partners-strip > .partner-pill:hover img,
  body.page-home #partner-logos.partners-strip > .partner-pill:focus-within img {
    transform: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="fep"] img {
    height: 46px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gedyt"] img {
    height: 42px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="merck"] img {
    height: 44px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gcba"] img {
    height: 43px;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  body.page-home header.site-header.site-topbar .partners-bar .container,
  body.page-home header.site-header.site-topbar .logo-strip.partners-bar .container {
    width: min(100% - 28px, 700px);
  }

  body.page-home #partner-logos.partners-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: min(100%, 620px);
    max-width: 620px;
    margin-inline: auto;
    padding: 7px 0 10px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo,
  body.page-home #partner-logos.partners-strip > .partner-pill,
  body.page-home #partner-logos.partners-strip > * {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transform: none;
    transition: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo:hover,
  body.page-home #partner-logos.partners-strip > .partner-logo:focus-within,
  body.page-home #partner-logos.partners-strip > .partner-pill:hover,
  body.page-home #partner-logos.partners-strip > .partner-pill:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo img,
  body.page-home #partner-logos.partners-strip > .partner-pill img,
  body.page-home #partner-logos.partners-strip img {
    width: auto;
    height: 35px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none;
    transition: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo:hover img,
  body.page-home #partner-logos.partners-strip > .partner-logo:focus-within img,
  body.page-home #partner-logos.partners-strip > .partner-pill:hover img,
  body.page-home #partner-logos.partners-strip > .partner-pill:focus-within img {
    transform: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="fep"] img {
    height: 40px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gedyt"] img {
    height: 36px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="merck"] img {
    height: 38px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gcba"] img {
    height: 37px !important;
  }
}

@media (max-width: 520px) {
  body.page-home header.site-header.site-topbar .partners-bar .container,
  body.page-home header.site-header.site-topbar .logo-strip.partners-bar .container {
    width: min(100% - 22px, 520px);
  }

  body.page-home #partner-logos.partners-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 10px;
    padding: 6px var(--shell-gutter) 9px;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo,
  body.page-home #partner-logos.partners-strip > .partner-pill,
  body.page-home #partner-logos.partners-strip > a,
  body.page-home #partner-logos.partners-strip > * {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: none;
    transition: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo:hover,
  body.page-home #partner-logos.partners-strip > .partner-logo:focus-within,
  body.page-home #partner-logos.partners-strip > .partner-pill:hover,
  body.page-home #partner-logos.partners-strip > .partner-pill:focus-within {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo img,
  body.page-home #partner-logos.partners-strip > .partner-pill img,
  body.page-home #partner-logos.partners-strip img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 22px !important;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none !important;
    transition: none;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="fep"] img {
    max-height: 24px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gedyt"] img {
    max-height: 22px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="merck"] img {
    max-height: 23px !important;
  }

  body.page-home #partner-logos.partners-strip > .partner-logo[data-partner="gcba"] img {
    max-height: 22px !important;
  }
}

@media (min-width: 769px) {
  body.workflow-page header.site-header.site-topbar .partners-bar .container,
  body.page-roles header.site-header.site-topbar .partners-bar .container,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .container {
    width: min(100% - 34px, 780px);
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: min(100%, 740px);
    max-width: 740px;
    margin-inline: auto;
    padding: 7px 0 10px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transform: none;
    transition: none;
    scroll-snap-align: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip img {
    width: auto;
    height: 40px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none;
    transition: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img {
    transform: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img {
    height: 46px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img {
    height: 42px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img {
    height: 44px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img {
    height: 43px;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  body.workflow-page header.site-header.site-topbar .partners-bar .container,
  body.page-roles header.site-header.site-topbar .partners-bar .container,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .container {
    width: min(100% - 28px, 700px);
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: min(100%, 620px);
    max-width: 620px;
    margin-inline: auto;
    padding: 7px 0 10px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > * {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transform: none;
    transition: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip img {
    width: auto;
    height: 35px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none;
    transition: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within img {
    transform: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img {
    height: 40px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img {
    height: 36px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img {
    height: 38px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img {
    height: 37px !important;
  }
}

@media (max-width: 520px) {
  body.workflow-page header.site-header.site-topbar .partners-bar .container,
  body.page-roles header.site-header.site-topbar .partners-bar .container,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .container {
    width: min(100% - 22px, 520px);
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 10px;
    padding: 6px var(--shell-gutter) 9px;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > a,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > a,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > *,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > a,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > * {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: none;
    transition: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo:focus-within,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:hover,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill:focus-within {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-pill img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 22px !important;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none !important;
    transition: none;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="fep"] img {
    max-height: 24px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gedyt"] img {
    max-height: 22px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="merck"] img {
    max-height: 23px !important;
  }

  body.workflow-page header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-roles header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img,
  body.page-kit-fit header.site-header.site-topbar .partners-bar .partners-strip > .partner-logo[data-partner="gcba"] img {
    max-height: 22px !important;
  }
}
