/*
 * RuniverseHub UI V2 · Navigation
 * Derivación directa de AppShell.tsx y AppShellAuth.tsx de Lovable.
 * Header público/autenticado, selector de espacios, mega menú, drawer,
 * navegación contextual, breadcrumbs implícitos y tab bar móvil.
 */


/* Host aislado para integrar solo navegación V2 sobre contenido Legacy. */
.rh-v2-navigation-host {
  display: contents;
}

.rh-v2-navigation-host .rh-v2-public-header {
  isolation: isolate;
}

.rh-v2-root {
  --rh-v2-nav-header-height: 3.5rem;
  --rh-v2-nav-context-height: 2.5rem;
  --rh-v2-nav-tabbar-height: 4rem;
}

.rh-v2-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: var(--rh-v2-space-2);
  color: var(--rh-v2-color-foreground);
  font-family: var(--rh-v2-font-display);
  font-weight: var(--rh-v2-weight-semibold);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.rh-v2-brand:hover {
  color: var(--rh-v2-color-foreground);
}

.rh-v2-brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-md);
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--rh-v2-color-primary) 40%, transparent),
    0 8px 24px color-mix(in oklab, var(--rh-v2-color-primary) 20%, transparent);
  font-family: var(--rh-v2-font-sans);
  font-size: var(--rh-v2-text-sm);
  font-weight: var(--rh-v2-weight-bold);
}

.rh-v2-brand__name > span {
  color: var(--rh-v2-color-primary);
}

.rh-v2-brand--compact .rh-v2-brand__name {
  display: none;
}

.rh-v2-public-header,
.rh-v2-app-header {
  position: sticky;
  top: 0;
  z-index: var(--rh-v2-z-sticky);
  border-bottom: 1px solid var(--rh-v2-color-border);
  background: color-mix(in oklab, var(--rh-v2-color-background) 84%, transparent);
  box-shadow: 0 8px 24px oklch(0 0 0 / 8%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.rh-v2-public-header__inner,
.rh-v2-app-header__inner {
  display: flex;
  width: min(100%, var(--rh-v2-container-2xl));
  min-height: var(--rh-v2-nav-header-height);
  margin-inline: auto;
  align-items: center;
  gap: var(--rh-v2-space-2);
  padding-inline: var(--rh-v2-gutter);
}

.rh-v2-public-header__nav {
  display: none;
  align-items: center;
  gap: var(--rh-v2-space-1);
  margin-left: var(--rh-v2-space-4);
}

.rh-v2-public-header__actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--rh-v2-space-1);
}

.rh-v2-public-header__toggle {
  margin-left: auto;
}

.rh-v2-nav-icon-button {
  display: inline-grid;
  width: var(--rh-v2-touch-target);
  height: var(--rh-v2-touch-target);
  flex: 0 0 var(--rh-v2-touch-target);
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--rh-v2-radius-md);
  background: transparent;
  color: var(--rh-v2-color-muted-foreground);
  cursor: pointer;
  transition: color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-nav-icon-button:hover {
  border-color: var(--rh-v2-color-border);
  background: var(--rh-v2-color-surface-2);
  color: var(--rh-v2-color-foreground);
}

.rh-v2-nav-icon-button:active {
  transform: scale(0.96);
}

.rh-v2-nav-icon-button svg,
.rh-v2-brand svg,
.rh-v2-nav-link svg,
.rh-v2-space-chip svg,
.rh-v2-entity-chip svg,
.rh-v2-search-trigger svg,
.rh-v2-account-trigger svg,
.rh-v2-mobile-tabbar svg,
.rh-v2-dialog svg,
.rh-v2-mega-menu svg,
.rh-v2-space-switch-row svg,
.rh-v2-account-menu svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.rh-v2-nav-link {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: var(--rh-v2-space-2);
  border: 1px solid transparent;
  border-radius: var(--rh-v2-radius-md);
  color: var(--rh-v2-color-muted-foreground);
  text-decoration: none;
  transition: color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-nav-link:hover {
  background: color-mix(in oklab, var(--rh-v2-color-surface-3) 72%, transparent);
  color: var(--rh-v2-color-foreground);
}

.rh-v2-nav-link.is-active {
  border-color: color-mix(in oklab, var(--rh-v2-context-accent) 28%, var(--rh-v2-color-border));
  background: color-mix(in oklab, var(--rh-v2-context-accent) 10%, var(--rh-v2-color-surface-2));
  color: var(--rh-v2-color-foreground);
  box-shadow: inset 3px 0 0 var(--rh-v2-context-accent);
}

.rh-v2-nav-link--public {
  align-items: center;
  gap: 0;
  padding: 0.45rem 0.7rem;
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-nav-link--public .rh-v2-nav-link__icon,
.rh-v2-nav-link--public .rh-v2-nav-link__hint,
.rh-v2-nav-link--public .rh-v2-nav-link__external {
  display: none;
}

.rh-v2-nav-link--public.is-active {
  box-shadow: none;
}

.rh-v2-nav-link--menu,
.rh-v2-nav-link--mega,
.rh-v2-nav-link--drawer,
.rh-v2-nav-link--search {
  padding: 0.65rem 0.75rem;
}

.rh-v2-nav-link--mega {
  padding-block: 0.55rem;
}

.rh-v2-nav-link__icon {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  place-items: center;
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-nav-link:hover .rh-v2-nav-link__icon,
.rh-v2-nav-link.is-active .rh-v2-nav-link__icon {
  color: var(--rh-v2-context-accent);
}

.rh-v2-nav-link__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.08rem;
}

.rh-v2-nav-link__label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--rh-v2-space-2);
  color: currentColor;
  font-size: var(--rh-v2-text-sm);
  font-weight: var(--rh-v2-weight-medium);
  line-height: var(--rh-v2-leading-snug);
}

.rh-v2-nav-link__label .rh-v2-badge {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-nav-link__hint {
  overflow: hidden;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs-alt);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-nav-link__external {
  display: grid;
  margin-left: auto;
  place-items: center;
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-app-shell {
  min-height: 100dvh;
  padding-bottom: calc(var(--rh-v2-nav-tabbar-height) + env(safe-area-inset-bottom));
}

.rh-v2-app-header__inner {
  padding-inline: clamp(0.6rem, 2vw, 1.25rem);
}

.rh-v2-space-chip,
.rh-v2-entity-chip,
.rh-v2-search-trigger,
.rh-v2-account-trigger,
.rh-v2-app-header__menu {
  display: inline-flex;
  min-height: var(--rh-v2-control-height);
  align-items: center;
  gap: var(--rh-v2-space-2);
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-md);
  background: color-mix(in oklab, var(--rh-v2-color-surface-2) 72%, transparent);
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-space-chip,
.rh-v2-search-trigger,
.rh-v2-account-trigger,
.rh-v2-app-header__menu {
  cursor: pointer;
}

.rh-v2-space-chip:hover,
.rh-v2-search-trigger:hover,
.rh-v2-account-trigger:hover,
.rh-v2-app-header__menu:hover {
  border-color: color-mix(in oklab, var(--rh-v2-context-accent) 28%, var(--rh-v2-color-border));
  background: var(--rh-v2-color-surface-2);
  color: var(--rh-v2-color-foreground);
}

.rh-v2-space-chip {
  display: none;
  padding: 0.3rem 0.55rem;
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-space-chip__icon {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-sm);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 18%, transparent);
  color: var(--rh-v2-context-accent);
}

.rh-v2-space-chip__label {
  color: var(--rh-v2-color-foreground);
  font-weight: var(--rh-v2-weight-medium);
}

.rh-v2-app-header__separator {
  display: none;
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-entity-chip {
  display: none;
  min-width: 0;
  padding: 0.25rem 0.55rem;
}

.rh-v2-entity-chip > span {
  color: var(--rh-v2-context-accent);
}

.rh-v2-entity-chip strong {
  max-width: 12rem;
  overflow: hidden;
  color: var(--rh-v2-color-foreground);
  font-size: var(--rh-v2-text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-entity-chip small {
  display: none;
  max-width: 12rem;
  overflow: hidden;
  color: var(--rh-v2-color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-app-header__menu {
  display: none;
  padding: 0.35rem 0.65rem;
  border-color: transparent;
  background: transparent;
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-app-header__actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: var(--rh-v2-space-1);
}

.rh-v2-app-header__primary,
.rh-v2-search-trigger {
  display: none;
}

.rh-v2-search-trigger {
  padding: 0.35rem 0.6rem;
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-search-trigger kbd {
  border: 1px solid var(--rh-v2-color-border);
  border-radius: 0.35rem;
  background: var(--rh-v2-color-surface-3);
  padding: 0.05rem 0.3rem;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
}

.rh-v2-notification-button {
  position: relative;
}

.rh-v2-notification-button i {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid var(--rh-v2-color-background);
  border-radius: var(--rh-v2-radius-full);
  background: var(--rh-v2-color-danger);
}

.rh-v2-account-trigger {
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border-color: transparent;
  background: transparent;
}

.rh-v2-account-trigger > span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-full);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 18%, var(--rh-v2-color-surface-2));
  color: var(--rh-v2-context-accent);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-bold);
}

.rh-v2-context-tabs {
  display: none;
  width: min(100%, var(--rh-v2-container-2xl));
  min-height: var(--rh-v2-nav-context-height);
  margin-inline: auto;
  align-items: center;
  gap: var(--rh-v2-space-1);
  overflow-x: auto;
  border-top: 1px solid var(--rh-v2-color-border);
  padding: 0.25rem var(--rh-v2-gutter);
  scrollbar-width: none;
}

.rh-v2-context-tabs::-webkit-scrollbar {
  display: none;
}

.rh-v2-nav-link--tab {
  flex: 0 0 auto;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: var(--rh-v2-text-xs);
  white-space: nowrap;
}

.rh-v2-nav-link--tab .rh-v2-nav-link__icon,
.rh-v2-nav-link--tab .rh-v2-nav-link__hint {
  display: none;
}

.rh-v2-nav-link--tab.is-active {
  box-shadow: none;
}

.rh-v2-app-main {
  min-width: 0;
}

.rh-v2-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--rh-v2-z-overlay);
  display: grid;
  pointer-events: none;
}

.rh-v2-overlay[hidden] {
  display: none;
}

.rh-v2-overlay.is-opening,
.rh-v2-overlay.is-open,
.rh-v2-overlay.is-closing {
  pointer-events: auto;
}

.rh-v2-overlay__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--rh-v2-color-overlay);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: default;
  opacity: 0;
  transition: opacity var(--rh-v2-motion-panel) var(--rh-v2-ease-standard);
}

.rh-v2-overlay__backdrop--transparent {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.rh-v2-overlay.is-opening .rh-v2-overlay__backdrop,
.rh-v2-overlay.is-open .rh-v2-overlay__backdrop {
  opacity: 1;
}

.rh-v2-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 27rem);
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--rh-v2-color-border);
  background: var(--rh-v2-color-surface-2);
  box-shadow: var(--rh-v2-shadow-panel);
  transform: translateX(102%);
  transition: transform var(--rh-v2-motion-panel) var(--rh-v2-ease-enter);
}

.rh-v2-drawer--right {
  justify-self: end;
}

.rh-v2-overlay.is-opening .rh-v2-drawer,
.rh-v2-overlay.is-open .rh-v2-drawer {
  transform: translateX(0);
}

.rh-v2-overlay.is-closing .rh-v2-drawer {
  transform: translateX(102%);
  transition-timing-function: var(--rh-v2-ease-exit);
}

.rh-v2-drawer__header {
  display: flex;
  min-height: var(--rh-v2-nav-header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-v2-space-3);
  border-bottom: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-3) var(--rh-v2-space-4);
}

.rh-v2-drawer__header > div {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.rh-v2-drawer__header small {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rh-v2-drawer__header strong {
  overflow: hidden;
  font-family: var(--rh-v2-font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-drawer__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: var(--rh-v2-space-4);
  overflow-y: auto;
  padding: var(--rh-v2-space-3);
  overscroll-behavior: contain;
}

.rh-v2-drawer__footer {
  display: grid;
  gap: var(--rh-v2-space-2);
  border-top: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-3);
  padding-bottom: calc(var(--rh-v2-space-3) + env(safe-area-inset-bottom));
}

.rh-v2-button--block {
  width: 100%;
}

.rh-v2-nav-group {
  min-width: 0;
}

.rh-v2-nav-group > h3 {
  margin: 0 0 var(--rh-v2-space-2);
  padding-inline: var(--rh-v2-space-2);
  color: var(--rh-v2-color-muted-foreground);
  font-family: var(--rh-v2-font-sans);
  font-size: var(--rh-v2-text-2xs);
  font-weight: var(--rh-v2-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rh-v2-nav-group__items {
  display: grid;
  gap: 0.1rem;
}

.rh-v2-space-switch-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--rh-v2-space-2);
  border: 0;
  border-bottom: 1px solid var(--rh-v2-color-border);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 7%, transparent);
  padding: var(--rh-v2-space-3) var(--rh-v2-space-4);
  color: var(--rh-v2-color-foreground);
  text-align: left;
  cursor: pointer;
}

.rh-v2-space-switch-row svg:first-child {
  color: var(--rh-v2-context-accent);
}

.rh-v2-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 34rem);
  max-height: min(46rem, calc(100dvh - 2rem));
  margin: clamp(0.75rem, 5vh, 3rem) auto auto;
  overflow: auto;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-xl);
  background: var(--rh-v2-color-surface-2);
  box-shadow: var(--rh-v2-shadow-panel);
  opacity: 0;
  transform: translateY(-0.75rem) scale(0.98);
  transition: opacity var(--rh-v2-motion-panel) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-panel) var(--rh-v2-ease-enter);
}

.rh-v2-overlay.is-opening .rh-v2-dialog,
.rh-v2-overlay.is-open .rh-v2-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rh-v2-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rh-v2-space-4);
  padding: var(--rh-v2-space-5);
}

.rh-v2-dialog__header > div {
  display: grid;
  gap: var(--rh-v2-space-1);
}

.rh-v2-dialog__eyebrow {
  color: var(--rh-v2-context-accent);
  font-size: var(--rh-v2-text-2xs);
  font-weight: var(--rh-v2-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rh-v2-dialog__header h2 {
  font-size: var(--rh-v2-text-xl);
}

.rh-v2-dialog__header p {
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-space-grid {
  display: grid;
  gap: var(--rh-v2-space-2);
  padding: 0 var(--rh-v2-space-5) var(--rh-v2-space-5);
}

.rh-v2-space-card {
  --rh-v2-context-accent: var(--rh-v2-role-public);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--rh-v2-space-3);
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface) 74%, transparent);
  padding: var(--rh-v2-space-3);
  color: var(--rh-v2-color-foreground);
  text-decoration: none;
  transition: border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-space-card:hover,
.rh-v2-space-card.is-active {
  border-color: color-mix(in oklab, var(--rh-v2-context-accent) 45%, var(--rh-v2-color-border));
  background: color-mix(in oklab, var(--rh-v2-context-accent) 9%, var(--rh-v2-color-surface));
  color: var(--rh-v2-color-foreground);
  transform: translateY(-1px);
}

.rh-v2-space-card.is-active {
  box-shadow: var(--rh-v2-shadow-inset-context);
}

.rh-v2-space-card__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-md);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 18%, transparent);
  color: var(--rh-v2-context-accent);
}

.rh-v2-space-card__copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.rh-v2-space-card__copy strong {
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-space-card__copy span {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-dialog__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rh-v2-space-2);
  border-top: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-4) var(--rh-v2-space-5);
}

.rh-v2-dialog__footer a {
  display: inline-flex;
  min-height: var(--rh-v2-touch-target);
  align-items: center;
  justify-content: center;
  gap: var(--rh-v2-space-2);
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-md);
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  text-decoration: none;
}

.rh-v2-dialog__footer a:hover {
  background: var(--rh-v2-color-surface-3);
  color: var(--rh-v2-color-foreground);
}

.rh-v2-mega-menu {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 2rem), var(--rh-v2-container-2xl));
  max-height: calc(100dvh - 5rem);
  margin: calc(var(--rh-v2-nav-header-height) + 0.75rem) auto auto;
  grid-template-columns: minmax(0, 1fr) 18rem;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-xl);
  background: var(--rh-v2-color-surface-2);
  box-shadow: var(--rh-v2-shadow-panel);
  opacity: 0;
  transform: translateY(-0.75rem) scale(0.99);
  transition: opacity var(--rh-v2-motion-panel) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-panel) var(--rh-v2-ease-enter);
}

.rh-v2-overlay.is-opening .rh-v2-mega-menu,
.rh-v2-overlay.is-open .rh-v2-mega-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rh-v2-mega-menu__header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-v2-space-4);
  border-bottom: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-3) var(--rh-v2-space-5);
}

.rh-v2-mega-menu__identity,
.rh-v2-mega-menu__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--rh-v2-space-2);
}

.rh-v2-mega-menu__identity > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-md);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 18%, transparent);
  color: var(--rh-v2-context-accent);
}

.rh-v2-mega-menu__identity > div {
  display: grid;
  min-width: 0;
}

.rh-v2-mega-menu__identity small,
.rh-v2-mega-menu__aside > small {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rh-v2-mega-menu__identity strong {
  overflow: hidden;
  font-family: var(--rh-v2-font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-mega-menu__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: var(--rh-v2-space-6);
  overflow-y: auto;
  padding: var(--rh-v2-space-5);
}

.rh-v2-mega-menu__aside {
  display: flex;
  flex-direction: column;
  gap: var(--rh-v2-space-2);
  overflow-y: auto;
  border-left: 1px solid var(--rh-v2-color-border);
  background: color-mix(in oklab, var(--rh-v2-color-surface) 75%, transparent);
  padding: var(--rh-v2-space-5);
}

.rh-v2-mega-menu__aside strong {
  font-family: var(--rh-v2-font-display);
}

.rh-v2-mega-menu__aside p {
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-mega-menu__aside a {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-v2-space-2);
  border: 1px dashed var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-md);
  padding: var(--rh-v2-space-3);
  color: var(--rh-v2-color-foreground);
  font-size: var(--rh-v2-text-sm);
  text-decoration: none;
}

.rh-v2-account-menu {
  position: absolute;
  z-index: 1;
  top: calc(var(--rh-v2-nav-header-height) + 0.35rem);
  right: max(var(--rh-v2-gutter), calc((100vw - var(--rh-v2-container-2xl)) / 2));
  display: grid;
  width: min(calc(100% - 1.5rem), 17rem);
  overflow: hidden;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-lg);
  background: var(--rh-v2-color-surface-2);
  box-shadow: var(--rh-v2-shadow-panel);
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-fast) var(--rh-v2-ease-enter);
}

.rh-v2-overlay.is-opening .rh-v2-account-menu,
.rh-v2-overlay.is-open .rh-v2-account-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rh-v2-account-menu header {
  display: grid;
  gap: 0.1rem;
  border-bottom: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-3);
}

.rh-v2-account-menu header span {
  overflow: hidden;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-account-menu a,
.rh-v2-account-menu button {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  gap: var(--rh-v2-space-2);
  border: 0;
  background: transparent;
  padding: var(--rh-v2-space-2) var(--rh-v2-space-3);
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rh-v2-account-menu a:hover,
.rh-v2-account-menu button:hover {
  background: var(--rh-v2-color-surface-3);
  color: var(--rh-v2-color-foreground);
}

.rh-v2-account-menu a:last-child {
  border-top: 1px solid var(--rh-v2-color-border);
}

.rh-v2-search-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 42rem);
  max-height: min(42rem, calc(100dvh - 2rem));
  margin: clamp(0.75rem, 8vh, 4.5rem) auto auto;
  overflow: hidden;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-xl);
  background: var(--rh-v2-color-surface-2);
  box-shadow: var(--rh-v2-shadow-panel);
  opacity: 0;
  transform: translateY(-0.75rem) scale(0.98);
  transition: opacity var(--rh-v2-motion-panel) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-panel) var(--rh-v2-ease-enter);
}

.rh-v2-overlay.is-opening .rh-v2-search-dialog,
.rh-v2-overlay.is-open .rh-v2-search-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rh-v2-search-dialog > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--rh-v2-space-2);
  border-bottom: 1px solid var(--rh-v2-color-border);
  padding: var(--rh-v2-space-3);
}

.rh-v2-search-dialog > header > span {
  color: var(--rh-v2-context-accent);
}

.rh-v2-search-dialog input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rh-v2-color-foreground);
  font-size: var(--rh-v2-text-base);
}

.rh-v2-search-dialog input::placeholder {
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-search-dialog__body {
  display: grid;
  max-height: 32rem;
  gap: var(--rh-v2-space-4);
  overflow-y: auto;
  padding: var(--rh-v2-space-4);
}

.rh-v2-search-dialog__body h2 {
  font-size: var(--rh-v2-text-lg);
}

.rh-v2-search-dialog__body > p {
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-search-dialog__body .rh-v2-search-empty {
  border: 1px dashed var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  padding: var(--rh-v2-space-5);
  text-align: center;
}

.rh-v2-mobile-tabbar {
  position: fixed;
  z-index: var(--rh-v2-z-sticky);
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: calc(var(--rh-v2-nav-tabbar-height) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rh-v2-color-border);
  background: color-mix(in oklab, var(--rh-v2-color-background) 92%, transparent);
  padding: 0.25rem 0.25rem env(safe-area-inset-bottom);
  box-shadow: 0 -12px 30px oklch(0 0 0 / 18%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar,
.rh-v2-mobile-tabbar__button {
  display: flex;
  min-width: 0;
  min-height: 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 0;
  border-radius: var(--rh-v2-radius-md);
  background: transparent;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
  text-decoration: none;
  cursor: pointer;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-nav-link__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: inherit;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar > .rh-v2-nav-link__icon svg,
.rh-v2-mobile-tabbar__button > svg,
.rh-v2-mobile-tabbar__button--primary i > svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-nav-link__copy,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-nav-link__label {
  display: contents;
  font-size: inherit;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-nav-link__hint {
  display: none;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar.is-active,
.rh-v2-mobile-tabbar__button:hover {
  background: transparent;
  box-shadow: none;
  color: var(--rh-v2-context-accent);
}

.rh-v2-mobile-tabbar__button--primary i {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-top: -0.75rem;
  place-items: center;
  border-radius: var(--rh-v2-radius-full);
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--rh-v2-color-primary) 25%, transparent);
  font-style: normal;
}

.rh-v2-root.rh-v2-overlay-lock,
.rh-v2-root.rh-v2-overlay-lock body {
  overflow: hidden;
}

@media (min-width: 40rem) {
  .rh-v2-brand--compact .rh-v2-brand__name,
  .rh-v2-space-chip {
    display: inline-flex;
  }

  .rh-v2-mobile-menu-trigger {
    display: none;
  }

  .rh-v2-search-trigger {
    display: inline-flex;
  }
}

@media (min-width: 48rem) {
  .rh-v2-public-header__nav,
  .rh-v2-public-header__actions {
    display: flex;
  }

  .rh-v2-public-header__toggle {
    display: none;
  }

  .rh-v2-app-header__primary,
  .rh-v2-context-tabs {
    display: flex;
  }

  .rh-v2-entity-chip,
  .rh-v2-app-header__separator {
    display: inline-flex;
  }

  .rh-v2-dialog__header,
  .rh-v2-dialog__footer,
  .rh-v2-space-grid {
    padding-inline: var(--rh-v2-space-6);
  }
}

@media (min-width: 64rem) {
  .rh-v2-app-shell {
    padding-bottom: 0;
  }

  .rh-v2-app-header__menu {
    display: inline-flex;
  }

  .rh-v2-mobile-tabbar {
    display: none;
  }

  .rh-v2-brand--compact .rh-v2-brand__name {
    display: inline;
  }
}

@media (min-width: 80rem) {
  .rh-v2-entity-chip small {
    display: inline;
  }

  .rh-v2-search-trigger span {
    display: inline;
  }
}

@media (max-width: 63.99rem) {
  .rh-v2-mega-menu {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  .rh-v2-search-trigger {
    width: var(--rh-v2-touch-target);
    height: var(--rh-v2-touch-target);
    justify-content: center;
    padding: 0;
  }

  .rh-v2-search-trigger span,
  .rh-v2-search-trigger kbd,
  .rh-v2-account-trigger > svg {
    display: none;
  }

  .rh-v2-dialog__footer {
    grid-template-columns: 1fr;
  }

  .rh-v2-search-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--rh-v2-radius-xl) var(--rh-v2-radius-xl) 0 0;
    transform: translateY(100%);
  }

  .rh-v2-overlay.is-opening .rh-v2-search-dialog,
  .rh-v2-overlay.is-open .rh-v2-search-dialog {
    transform: translateY(0);
  }

  .rh-v2-account-menu {
    right: var(--rh-v2-space-3);
  }
}

@media (max-width: 30rem) {
  .rh-v2-root {
    --rh-v2-nav-header-height: 3.25rem;
  }

  .rh-v2-public-header__inner,
  .rh-v2-app-header__inner {
    padding-inline: 0.7rem;
  }

  .rh-v2-brand__mark {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
  }

  .rh-v2-brand__name {
    font-size: var(--rh-v2-text-sm);
  }

  .rh-v2-space-chip__label {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rh-v2-notification-button {
    display: none;
  }

  .rh-v2-drawer {
    width: 100%;
  }

  .rh-v2-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .rh-v2-dialog__header {
    padding: var(--rh-v2-space-4);
  }

  .rh-v2-space-grid {
    padding: 0 var(--rh-v2-space-4) var(--rh-v2-space-4);
  }

  .rh-v2-dialog__footer {
    padding: var(--rh-v2-space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-nav-link,
  .rh-v2-nav-icon-button,
  .rh-v2-space-card,
  .rh-v2-overlay__backdrop,
  .rh-v2-drawer,
  .rh-v2-dialog,
  .rh-v2-mega-menu,
  .rh-v2-account-menu,
  .rh-v2-search-dialog {
    transition-duration: 0.01ms;
  }
}


/* UI-V2-F2C-PRIVATE-ROLE-SHELLS-1.0 */
.rh-v2-private-shadow-host{display:contents}
.rh-v2-private-header{position:fixed;inset:0 0 auto 0;z-index:var(--rh-v2-z-sticky,60);box-shadow:0 14px 40px rgba(0,0,0,.28)}
body.rh-v2-private-shadow-active{padding-top:76px}
.rh-v2-private-rail{position:sticky;top:92px;align-self:start;width:min(288px,100%);max-height:calc(100vh - 112px);overflow:auto;padding:14px;border:1px solid var(--rh-v2-border-subtle);border-radius:var(--rh-v2-radius-xl);background:linear-gradient(180deg,rgba(13,26,36,.98),rgba(7,17,24,.98));box-shadow:var(--rh-v2-shadow-card);scrollbar-width:thin}
.rh-v2-private-rail__identity{display:flex;align-items:center;gap:12px;padding:12px 10px 16px;border-bottom:1px solid var(--rh-v2-border-subtle);margin-bottom:12px}
.rh-v2-private-rail__identity>span{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--rh-v2-context-soft);color:var(--rh-v2-context-accent)}
.rh-v2-private-rail__identity svg{width:20px;height:20px}
.rh-v2-private-rail__identity div{display:grid;gap:2px;min-width:0}
.rh-v2-private-rail__identity small{font-size:var(--rh-v2-text-xs);color:var(--rh-v2-text-muted)}
.rh-v2-private-rail__identity strong{font-family:var(--rh-v2-font-display);font-size:var(--rh-v2-text-md);color:var(--rh-v2-text-primary)}
.rh-v2-private-rail__nav{display:grid;gap:14px}
.rh-v2-private-rail .rh-v2-nav-group{display:grid;gap:6px}
.rh-v2-private-rail .rh-v2-nav-group h3{margin:0;padding:0 10px;font-size:10px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--rh-v2-text-subtle)}
.rh-v2-private-rail .rh-v2-nav-group__items{display:grid;gap:4px}
.rh-v2-nav-link--rail{min-height:42px;border-radius:12px;padding:9px 10px}
.rh-v2-nav-link--rail .rh-v2-nav-link__icon{width:30px;height:30px;border-radius:10px}
.rh-v2-nav-link--rail.is-active{background:var(--rh-v2-context-soft);border-color:color-mix(in srgb,var(--rh-v2-context-accent) 38%,transparent);color:var(--rh-v2-text-primary)}
.rh-v2-private-rail__footer{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--rh-v2-border-subtle)}
.rh-v2-private-rail__footer>a{display:flex;align-items:center;gap:8px;padding:8px 10px;color:var(--rh-v2-text-muted);font-size:var(--rh-v2-text-sm);text-decoration:none}
.rh-v2-private-rail__footer>a:hover{color:var(--rh-v2-text-primary)}
.rh-v2-private-rail__footer svg{width:17px;height:17px}
.rh-v2-private-tabbar{display:none}
/* PRIVATE-SHELL-RESPONSIVE-ZOOM-21.0A
 * Contrato transversal para zoom, escritorio angosto y orientación apaisada.
 * El shell compacto se activa antes de que header, rail y contenido compitan
 * por el mismo ancho. Un único breakpoint gobierna los cuatro espacios. */
@media (max-width:74rem){
 body.rh-v2-private-shadow-active{padding-top:68px;padding-bottom:78px}
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-app-header__menu,
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-search-trigger,
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-notification-button,
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-app-header__primary{display:none}
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-app-header__inner{gap:clamp(6px,1vw,12px);padding-inline:clamp(10px,1.8vw,20px)}
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-space-chip{max-width:min(31vw,13rem)}
 body.rh-v2-private-shadow-active .rh-v2-private-header .rh-v2-entity-chip{max-width:min(36vw,15rem)}
 body.rh-v2-private-shadow-active .rh-v2-private-rail{display:none}
 body.rh-v2-private-shadow-active .rh-v2-private-tabbar{display:grid}
 body.rh-v2-private-shadow-active :is(
   .rh-v2-organizer-shell,
   .rh-v2-organizer-event-shell,
   .rh-v2-organizer-profile-shell,
   .rh-v2-athlete-shell,
   .rh-v2-admin-shell,
   .rh-admin-v2-parity-shell
 ){grid-template-columns:minmax(0,1fr)}
 body.rh-v2-private-shadow-active :is(.rh-v2-builder-main,.rh-v2-workspace-main){margin-left:0}
 body.rh-v2-private-shadow-active .rh-v2-team-main{width:100%;margin-left:0;padding-top:1rem}
}
@media (max-width:640px){
 .rh-v2-private-header .rh-v2-brand__name,.rh-v2-private-header .rh-v2-account-trigger{display:none}
 .rh-v2-private-header .rh-v2-app-header__inner{padding-inline:12px}
 .rh-v2-private-header .rh-v2-space-chip{max-width:160px}
}

/* UI-V2-F2D-CONTEXT-INTEGRATION-1.0 */
.rh-v2-context-bar {
  position: relative;
  z-index: calc(var(--rh-v2-z-sticky, 60) - 2);
  border-bottom: 1px solid var(--rh-v2-border-subtle);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--rh-v2-context-accent) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(10, 24, 34, .97), rgba(7, 17, 24, .96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.rh-v2-context-bar__inner {
  width: min(100%, var(--rh-v2-container-2xl));
  margin-inline: auto;
  padding: 10px clamp(12px, 2.5vw, 28px) 0;
}

.rh-v2-context-bar__trail,
.rh-v2-context-bar__main,
.rh-v2-context-bar__actions,
.rh-v2-breadcrumbs,
.rh-v2-context-entity {
  display: flex;
  align-items: center;
}

.rh-v2-context-bar__trail {
  min-height: 28px;
  gap: 14px;
}

.rh-v2-context-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--rh-v2-text-muted);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-medium);
  text-decoration: none;
}

.rh-v2-context-bar__back:hover {
  color: var(--rh-v2-context-accent);
}

.rh-v2-context-bar__back svg,
.rh-v2-breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.rh-v2-breadcrumbs {
  min-width: 0;
  gap: 5px;
  overflow: hidden;
  color: var(--rh-v2-text-subtle);
  font-size: var(--rh-v2-text-xs);
  white-space: nowrap;
}

.rh-v2-breadcrumbs a,
.rh-v2-breadcrumbs span {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
}

.rh-v2-breadcrumbs a:hover {
  color: var(--rh-v2-text-primary);
}

.rh-v2-breadcrumbs [aria-current="page"] {
  color: var(--rh-v2-text-muted);
}

.rh-v2-context-bar__main {
  min-height: 74px;
  justify-content: space-between;
  gap: 22px;
  padding-block: 8px 12px;
}

.rh-v2-context-bar__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rh-v2-context-bar__eyebrow {
  color: var(--rh-v2-context-accent);
  font-size: 10px;
  font-weight: var(--rh-v2-weight-semibold);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rh-v2-context-bar__copy h2 {
  margin: 0;
  color: var(--rh-v2-text-primary);
  font-family: var(--rh-v2-font-display);
  font-size: clamp(1.05rem, 1.45vw, 1.38rem);
  font-weight: var(--rh-v2-weight-semibold);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.rh-v2-context-bar__copy p {
  max-width: 68ch;
  margin: 2px 0 0;
  color: var(--rh-v2-text-muted);
  font-size: var(--rh-v2-text-sm);
  line-height: 1.45;
}

.rh-v2-context-bar__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
}

.rh-v2-context-entity {
  min-width: 0;
  max-width: 280px;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--rh-v2-context-accent) 24%, var(--rh-v2-border-subtle));
  border-radius: var(--rh-v2-radius-lg);
  background: var(--rh-v2-context-soft);
}

.rh-v2-context-entity > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rh-v2-context-accent) 17%, transparent);
  color: var(--rh-v2-context-accent);
}

.rh-v2-context-entity svg {
  width: 16px;
  height: 16px;
}

.rh-v2-context-entity div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.rh-v2-context-entity small,
.rh-v2-context-entity em {
  overflow: hidden;
  color: var(--rh-v2-text-subtle);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-context-entity strong {
  overflow: hidden;
  color: var(--rh-v2-text-primary);
  font-size: var(--rh-v2-text-sm);
  font-weight: var(--rh-v2-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-context-nav {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.rh-v2-context-nav__link {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--rh-v2-radius-md);
  color: var(--rh-v2-text-muted);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-medium);
  text-decoration: none;
  scroll-snap-align: start;
  transition: color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-context-nav__link svg {
  width: 15px;
  height: 15px;
}

.rh-v2-context-nav__link:hover,
.rh-v2-context-nav__link.is-active {
  border-color: color-mix(in srgb, var(--rh-v2-context-accent) 30%, transparent);
  background: color-mix(in srgb, var(--rh-v2-context-accent) 10%, transparent);
  color: var(--rh-v2-text-primary);
}

.rh-v2-context-nav__link.is-active {
  box-shadow: inset 0 -2px 0 var(--rh-v2-context-accent);
}

.rh-v2-entity-chip > div {
  display: grid;
  min-width: 0;
}

.rh-v2-entity-chip strong,
.rh-v2-entity-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-entity-chip small {
  color: var(--rh-v2-text-subtle);
  font-size: 9px;
  font-weight: var(--rh-v2-weight-regular);
}

@media (max-width: 1023px) {
  .rh-v2-context-bar__inner {
    padding-inline: 12px;
  }

  .rh-v2-context-bar__trail {
    gap: 8px;
  }

  .rh-v2-context-bar__main {
    min-height: 62px;
    gap: 10px;
    padding-block: 6px 9px;
  }

  .rh-v2-context-bar__copy p,
  .rh-v2-context-entity,
  .rh-v2-context-bar__next span {
    display: none;
  }

  .rh-v2-context-bar__next {
    width: var(--rh-v2-touch-target);
    min-width: var(--rh-v2-touch-target);
    padding-inline: 0;
  }

  .rh-v2-context-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }
}

@media (max-width: 640px) {
  .rh-v2-context-bar__back span,
  .rh-v2-breadcrumbs > :not(:last-child) {
    display: none;
  }

  .rh-v2-breadcrumbs {
    max-width: calc(100vw - 80px);
  }

  .rh-v2-context-bar__copy h2 {
    font-size: 1rem;
  }

  .rh-v2-context-bar__eyebrow {
    font-size: 9px;
  }

  .rh-v2-context-nav__link {
    min-height: 34px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-context-nav__link {
    transition-duration: .01ms;
  }
}


/* UI-V2-F7D-A.1 · Mobile tabbar optical parity with Unified V16 */

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar,
.rh-v2-mobile-tabbar__button {
  line-height: 1;
}

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-nav-link__label,
.rh-v2-mobile-tabbar__button > span {
  line-height: 1.1;
}

.rh-v2-mobile-tabbar__button--primary i {
  flex: 0 0 2rem;
}


/* UI-V2-F7D-A.2 · Exact MobileTabBar parity with Unified V16
   V16 contract: 16 px icon, 10 px label, 32 px primary circle,
   44 px minimum touch row, 6 px vertical padding and 2 px icon/label gap. */

.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar,
.rh-v2-mobile-tabbar__button {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding-block: 0.375rem;
  gap: 0.125rem;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.25;
}

.rh-v2-mobile-tabbar__icon,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__icon {
  display: grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  place-items: center;
  color: inherit;
}

.rh-v2-mobile-tabbar__icon > svg,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__icon > svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.rh-v2-mobile-tabbar__label,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__label {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  font: inherit;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-mobile-tabbar__icon--primary,
.rh-v2-mobile-tabbar__button--primary .rh-v2-mobile-tabbar__icon--primary {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  margin-top: -0.75rem;
  border-radius: var(--rh-v2-radius-full);
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--rh-v2-color-primary) 25%, transparent);
  font-style: normal;
}

.rh-v2-mobile-tabbar__button--primary .rh-v2-mobile-tabbar__icon--primary > svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

@media (max-width: 22.5rem) {
  .rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar,
  .rh-v2-mobile-tabbar__button {
    font-size: 0.625rem;
  }
}

/* UI-V2-F7D-A.3 · MobileTabBar optical scale refinement
   User-validated structure is preserved. Only the icon scale increases:
   18 px regular icons and a 36 px primary circle with an 18 px inner icon. */
.rh-v2-root {
  --rh-v2-mobile-tabbar-icon-size: 1.125rem;
  --rh-v2-mobile-tabbar-primary-size: 2.25rem;
}

.rh-v2-mobile-tabbar__icon,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__icon {
  width: var(--rh-v2-mobile-tabbar-icon-size);
  height: var(--rh-v2-mobile-tabbar-icon-size);
  flex-basis: var(--rh-v2-mobile-tabbar-icon-size);
  font-size: var(--rh-v2-mobile-tabbar-icon-size);
}

.rh-v2-mobile-tabbar__icon > svg,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__icon > svg {
  width: var(--rh-v2-mobile-tabbar-icon-size);
  height: var(--rh-v2-mobile-tabbar-icon-size);
  flex-basis: var(--rh-v2-mobile-tabbar-icon-size);
}

.rh-v2-mobile-tabbar__icon--primary,
.rh-v2-mobile-tabbar__button--primary .rh-v2-mobile-tabbar__icon--primary {
  width: var(--rh-v2-mobile-tabbar-primary-size);
  height: var(--rh-v2-mobile-tabbar-primary-size);
  flex-basis: var(--rh-v2-mobile-tabbar-primary-size);
  font-size: var(--rh-v2-mobile-tabbar-icon-size);
  margin-top: -0.875rem;
}

.rh-v2-mobile-tabbar__button--primary .rh-v2-mobile-tabbar__icon--primary > svg {
  width: var(--rh-v2-mobile-tabbar-icon-size);
  height: var(--rh-v2-mobile-tabbar-icon-size);
  flex-basis: var(--rh-v2-mobile-tabbar-icon-size);
}

/* UI-V2-F7E.1 · Hybrid legacy/V2 icon parity
   Some certified Organizer legacy styles force every SVG to 1em. The shared
   wrapper now defines that em as the same optical icon size used everywhere. */
.rh-v2-mobile-tabbar__icon > svg,
.rh-v2-mobile-tabbar .rh-v2-nav-link--tabbar .rh-v2-mobile-tabbar__icon > svg,
.rh-v2-mobile-tabbar__button--primary .rh-v2-mobile-tabbar__icon--primary > svg {
  font-size: inherit;
}

/* UX-INTENT-SEARCH-1.0 · búsqueda por objetivo, distinta del menú completo */
.rh-v2-intent-search {
  width: min(calc(100% - 1.5rem), 48rem);
}

.rh-v2-intent-search__body {
  gap: var(--rh-v2-space-3);
}

.rh-v2-intent-search__heading {
  display: grid;
  gap: 0.35rem;
}

.rh-v2-intent-search__heading h2,
.rh-v2-intent-search__featured h3,
.rh-v2-intent-search__results h3 {
  margin: 0;
}

.rh-v2-intent-search__heading p {
  max-width: 42rem;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-intent-search__eyebrow {
  color: var(--rh-v2-context-accent);
  font-size: var(--rh-v2-text-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rh-v2-intent-search__intro {
  display: grid;
  gap: var(--rh-v2-space-4);
}

.rh-v2-intent-search__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rh-v2-intent-search__examples > span {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
  font-weight: 650;
}

.rh-v2-intent-search__examples button,
.rh-v2-intent-search__footer button {
  border: 1px solid var(--rh-v2-color-border);
  background: var(--rh-v2-color-surface-3);
  color: var(--rh-v2-color-foreground);
  cursor: pointer;
  font: inherit;
}

.rh-v2-intent-search__examples button {
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-intent-search__examples button:hover,
.rh-v2-intent-search__examples button:focus-visible,
.rh-v2-intent-search__footer button:hover,
.rh-v2-intent-search__footer button:focus-visible {
  border-color: var(--rh-v2-context-accent);
  outline: none;
  color: var(--rh-v2-context-accent);
}

.rh-v2-intent-search__featured,
.rh-v2-intent-search__results {
  display: grid;
  gap: var(--rh-v2-space-3);
}

.rh-v2-intent-search__featured > header,
.rh-v2-intent-search__results > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--rh-v2-space-3);
}

.rh-v2-intent-search__featured > header small,
.rh-v2-intent-search__results > header small,
.rh-v2-intent-card__copy small,
.rh-v2-intent-result__copy small {
  color: var(--rh-v2-color-muted-foreground);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rh-v2-intent-search__featured > header > span,
.rh-v2-intent-search__results > header > span {
  flex: 0 0 auto;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-intent-search__featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rh-v2-space-2);
}

.rh-v2-intent-card,
.rh-v2-intent-result {
  display: grid;
  min-width: 0;
  align-items: center;
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-3) 82%, transparent);
  color: var(--rh-v2-color-foreground);
  text-decoration: none;
  transition: border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    transform var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-intent-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--rh-v2-space-2);
  min-height: 6.4rem;
  padding: var(--rh-v2-space-3);
}

.rh-v2-intent-result {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--rh-v2-space-3);
  padding: 0.85rem var(--rh-v2-space-3);
}

.rh-v2-intent-card:hover,
.rh-v2-intent-card:focus-visible,
.rh-v2-intent-result:hover,
.rh-v2-intent-result:focus-visible {
  border-color: color-mix(in oklab, var(--rh-v2-context-accent) 74%, var(--rh-v2-color-border));
  outline: none;
  background: color-mix(in oklab, var(--rh-v2-context-accent) 10%, var(--rh-v2-color-surface-3));
  transform: translateY(-1px);
}

.rh-v2-intent-card__icon,
.rh-v2-intent-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.85rem;
  background: color-mix(in oklab, var(--rh-v2-context-accent) 14%, var(--rh-v2-color-surface-2));
  color: var(--rh-v2-context-accent);
}

.rh-v2-intent-card__copy,
.rh-v2-intent-result__copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.rh-v2-intent-card__copy strong,
.rh-v2-intent-result__copy strong {
  overflow-wrap: anywhere;
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-intent-card__copy > span,
.rh-v2-intent-result__copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rh-v2-intent-card__arrow,
.rh-v2-intent-result__arrow {
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-intent-search__result-list {
  display: flex;
  flex-direction: column;
  gap: var(--rh-v2-space-2);
}

.rh-v2-intent-search__empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--rh-v2-space-3);
  border: 1px dashed var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-3) 70%, transparent);
  padding: var(--rh-v2-space-4);
}

.rh-v2-intent-search__empty > span {
  color: var(--rh-v2-context-accent);
}

.rh-v2-intent-search__empty strong {
  display: block;
  margin-bottom: 0.2rem;
}

.rh-v2-intent-search__empty p,
.rh-v2-intent-search__status {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-intent-search__status {
  min-height: 1px;
  margin: 0;
}

.rh-v2-intent-search__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-v2-space-3);
  border-top: 1px solid var(--rh-v2-color-border);
  padding-top: var(--rh-v2-space-3);
}

.rh-v2-intent-search__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-intent-search__footer button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--rh-v2-radius-md);
  padding: 0.45rem 0.75rem;
  font-size: var(--rh-v2-text-xs);
  font-weight: 700;
}

.rh-v2-intent-search [hidden] {
  display: none;
}

@media (max-width: 680px) {
  .rh-v2-intent-search__featured-grid {
    grid-template-columns: 1fr;
  }

  .rh-v2-intent-card {
    min-height: 5.5rem;
  }

  .rh-v2-intent-search__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rh-v2-intent-search__footer button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-intent-card,
  .rh-v2-intent-result {
    transition: none;
  }
}

/* UX-INTENT-SEARCH-POLISH-1.0
   Hace inequívoco el campo de escritura y normaliza todos los SVG del
   buscador frente a CSS Legacy que pueda alterar sus dimensiones. */
.rh-v2-intent-search > .rh-v2-intent-search__searchbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: 0.75rem;
  background: color-mix(in oklab, var(--rh-v2-color-surface-1) 48%, var(--rh-v2-color-surface-2));
}

.rh-v2-intent-search__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--rh-v2-context-accent) 34%, var(--rh-v2-color-border-strong));
  border-radius: 1rem;
  background: color-mix(in oklab, var(--rh-v2-color-surface-3) 88%, transparent);
  padding: 0.6rem 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: text;
  transition: border-color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard),
    box-shadow var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-intent-search__field:focus-within {
  border-color: var(--rh-v2-context-accent);
  background: color-mix(in oklab, var(--rh-v2-context-accent) 7%, var(--rh-v2-color-surface-3));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--rh-v2-context-accent) 16%, transparent);
}

.rh-v2-intent-search__field-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  place-items: center;
  border-radius: 0.8rem;
  background: color-mix(in oklab, var(--rh-v2-context-accent) 14%, var(--rh-v2-color-surface-2));
  color: var(--rh-v2-context-accent);
}

.rh-v2-intent-search__field-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.rh-v2-intent-search__field-copy label {
  width: max-content;
  max-width: 100%;
  color: var(--rh-v2-context-accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rh-v2-intent-search__field-copy input,
.rh-v2-search-dialog.rh-v2-intent-search .rh-v2-intent-search__field-copy input {
  width: 100%;
  min-height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rh-v2-color-foreground);
  caret-color: var(--rh-v2-context-accent);
  font-size: clamp(0.9rem, 2.7vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
}

.rh-v2-intent-search__field-copy input::placeholder,
.rh-v2-search-dialog.rh-v2-intent-search .rh-v2-intent-search__field-copy input::placeholder {
  color: color-mix(in oklab, var(--rh-v2-color-muted-foreground) 88%, var(--rh-v2-color-foreground));
  opacity: 1;
  font-weight: 500;
}

.rh-v2-intent-search__close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-self: center;
}

/* Tamaños SVG cerrados: evita los 300x150 px por defecto y cualquier
   herencia accidental de estilos Admin, Organizer, Athlete o Team. */
.rh-v2-intent-search svg {
  display: block;
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  flex: 0 0 1rem;
  overflow: visible;
}

.rh-v2-intent-search__field-icon > svg {
  width: 1.2rem;
  height: 1.2rem;
  max-width: 1.2rem;
  max-height: 1.2rem;
  flex-basis: 1.2rem;
}

.rh-v2-intent-search__close > svg,
.rh-v2-intent-card__arrow > svg,
.rh-v2-intent-result__arrow > svg,
.rh-v2-intent-search__footer button > svg,
.rh-v2-intent-search__footer > span > svg,
.rh-v2-intent-search__empty > span > svg {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  flex-basis: 1rem;
}

.rh-v2-intent-card__icon > svg,
.rh-v2-intent-result__icon > svg {
  width: 1.2rem;
  height: 1.2rem;
  max-width: 1.2rem;
  max-height: 1.2rem;
  flex-basis: 1.2rem;
}

.rh-v2-intent-card__arrow,
.rh-v2-intent-result__arrow,
.rh-v2-intent-search__footer > span,
.rh-v2-intent-search__footer button {
  min-width: 0;
}

.rh-v2-intent-search__footer button > svg,
.rh-v2-intent-search__footer > span > svg {
  align-self: center;
}

@media (max-width: 47.99rem) {
  .rh-v2-intent-search > .rh-v2-intent-search__searchbar {
    position: sticky;
    z-index: 2;
    top: 0;
    padding: 0.7rem;
  }

  .rh-v2-intent-search__field {
    min-height: 4rem;
    padding: 0.55rem 0.7rem;
  }

  .rh-v2-intent-search__field-icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-basis: 2.15rem;
  }

  .rh-v2-intent-search__close {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }
}

@media (max-width: 24rem) {
  .rh-v2-intent-search > .rh-v2-intent-search__searchbar {
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .rh-v2-intent-search__field {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.55rem;
    min-height: 3.75rem;
    border-radius: 0.85rem;
  }

  .rh-v2-intent-search__field-icon {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    border-radius: 0.65rem;
  }

  .rh-v2-intent-search__field-icon > svg {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
    flex-basis: 1rem;
  }

  .rh-v2-intent-search__field-copy label {
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-intent-search__field {
    transition: none;
  }
}

/* UX-INTENT-SEARCH-MOBILE-FLOW-1.0
   Reordena el buscador como un compositor inferior: sugerencias y resultados
   quedan arriba, mientras el campo permanece visible sobre el teclado. */
.rh-v2-intent-search {
  --rh-v2-intent-viewport-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(46rem, calc(100dvh - 2rem));
  max-height: min(46rem, calc(100dvh - 2rem));
}

.rh-v2-intent-search__topbar,
.rh-v2-search-dialog > .rh-v2-intent-search__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rh-v2-color-border);
  background: color-mix(in oklab, var(--rh-v2-color-surface-1) 56%, var(--rh-v2-color-surface-2));
}

.rh-v2-intent-search__topbar > div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.rh-v2-intent-search__topbar strong {
  overflow: hidden;
  color: var(--rh-v2-color-foreground);
  font-family: var(--rh-v2-font-display);
  font-size: clamp(1rem, 3vw, 1.18rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-v2-intent-search__body,
.rh-v2-search-dialog__body.rh-v2-intent-search__body {
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 0.75rem;
  padding: 1rem;
}

.rh-v2-intent-search__heading {
  margin: 0;
}

.rh-v2-intent-search__heading p {
  margin: 0;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  line-height: 1.55;
}

.rh-v2-intent-search > .rh-v2-intent-search__searchbar {
  display: block;
  position: relative;
  z-index: 3;
  padding: 0.75rem;
  border-top: 1px solid var(--rh-v2-color-border-strong);
  border-bottom: 0;
  background: color-mix(in oklab, var(--rh-v2-color-surface-1) 82%, var(--rh-v2-color-surface-2));
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
}

.rh-v2-intent-search > .rh-v2-intent-search__searchbar .rh-v2-intent-search__field {
  width: 100%;
}

.rh-v2-intent-search__field-copy label {
  letter-spacing: 0.06em;
}

.rh-v2-intent-search__field-copy input {
  caret-shape: bar;
}

.rh-v2-overlay.is-open .rh-v2-intent-search__field:focus-within {
  animation: rh-v2-intent-ready 900ms var(--rh-v2-ease-standard) 1;
}

@keyframes rh-v2-intent-ready {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--rh-v2-context-accent) 16%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--rh-v2-context-accent) 25%, transparent); }
}

@media (max-width: 47.99rem) {
  .rh-v2-intent-search {
    width: 100%;
    height: min(var(--rh-v2-intent-viewport-height), 100dvh);
    max-height: min(var(--rh-v2-intent-viewport-height), 100dvh);
    margin: auto 0 0;
  }

  .rh-v2-intent-search__topbar,
  .rh-v2-search-dialog > .rh-v2-intent-search__topbar {
    padding: 0.72rem 0.85rem;
  }

  .rh-v2-intent-search__body,
  .rh-v2-search-dialog__body.rh-v2-intent-search__body {
    padding: 0.85rem;
  }

  .rh-v2-intent-search > .rh-v2-intent-search__searchbar {
    top: auto;
    bottom: 0;
    padding: 0.65rem 0.75rem max(0.65rem, env(safe-area-inset-bottom));
  }

  .rh-v2-intent-search__field {
    min-height: 4.15rem;
  }

  .rh-v2-intent-search[data-rh-v2-keyboard-open="true"] .rh-v2-intent-search__heading,
  .rh-v2-intent-search[data-rh-v2-keyboard-open="true"] .rh-v2-intent-search__examples {
    display: none;
  }

  .rh-v2-intent-search[data-rh-v2-keyboard-open="true"] .rh-v2-intent-search__body {
    gap: 0.75rem;
    padding-top: 0.75rem;
  }
}

@media (max-height: 34rem) and (max-width: 47.99rem) {
  .rh-v2-intent-search__topbar,
  .rh-v2-search-dialog > .rh-v2-intent-search__topbar {
    padding-block: 0.55rem;
  }

  .rh-v2-intent-search__body,
  .rh-v2-search-dialog__body.rh-v2-intent-search__body {
    padding-block: 0.65rem;
  }

  .rh-v2-intent-search > .rh-v2-intent-search__searchbar {
    padding-top: 0.5rem;
  }

  .rh-v2-intent-search__field {
    min-height: 3.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-overlay.is-open .rh-v2-intent-search__field:focus-within {
    animation: none;
  }
}

/* Ajuste de posición para navegadores que mantienen el layout viewport detrás
   del teclado (por ejemplo, variantes de Samsung Internet). */
.rh-v2-intent-search {
  --rh-v2-intent-keyboard-inset: 0px;
}

@media (max-width: 47.99rem) {
  .rh-v2-intent-search {
    margin: auto 0 var(--rh-v2-intent-keyboard-inset);
  }
}


/* UX-INTENT-SEARCH-LABEL-CLEAR-1.0
   Evita que el outline global del input atraviese la etiqueta del compositor.
   El foco accesible se conserva en el contenedor mediante :focus-within. */
.rh-v2-intent-search__field-copy {
  gap: 0.34rem;
  padding-block: 0.08rem;
}

.rh-v2-intent-search__field-copy label {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
}

.rh-v2-intent-search__field-copy input,
.rh-v2-intent-search__field-copy input:focus,
.rh-v2-intent-search__field-copy input:focus-visible {
  min-height: 2rem;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* PUBLIC-NAVIGATION-V27A-CONTEXT-SESSION-1.0 */
.rh-v2-public-account-spaces {
  display: grid;
  gap: var(--rh-v2-space-1);
  margin-top: var(--rh-v2-space-4);
  padding-top: var(--rh-v2-space-4);
  border-top: 1px solid var(--rh-v2-color-border);
}

.rh-v2-public-account-spaces__label {
  padding-inline: var(--rh-v2-space-3);
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-font-size-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rh-v2-public-header[data-rh-public-navigation-v27a] .rh-v2-public-header__actions .rh-v2-button {
  white-space: nowrap;
}

@media (min-width: 48rem) and (max-width: 67.99rem) {
  .rh-v2-public-header[data-rh-public-navigation-v27a] .rh-v2-public-header__actions .rh-v2-button--ghost span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
