:root {
  --rnc-primary: #004890;
  --rnc-primary-rgb: 0, 72, 144;
  --rnc-primary-deep: #03254d;
  --rnc-accent: #7dc4ff;
  --rnc-surface: rgba(255, 255, 255, 0.68);
  --rnc-border: rgba(255, 255, 255, 0.6);
  --rnc-text: #16324f;
  --rnc-text-soft: rgba(22, 50, 79, 0.72);
  --rnc-success: #1c8f64;
  --rnc-warning: #d6a436;
  --shadow-glass: 0 20px 50px rgba(8, 37, 73, 0.12);
  --shadow-soft: 0 12px 30px rgba(2, 36, 72, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body.registry-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--rnc-text);
  background:
    radial-gradient(circle at top left, rgba(var(--rnc-primary-rgb), 0.18), transparent 38%),
    radial-gradient(circle at right 20%, rgba(125, 196, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #f6fbff 0%, #f0f5fb 45%, #ecf2f8 100%);
  position: relative;
  overflow-x: hidden;
}

body.registry-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--rnc-primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rnc-primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 72%);
  pointer-events: none;
}

body.registry-body > header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

body.registry-body > header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 245, 251, 0.92) 0%, rgba(240, 245, 251, 0.68) 72%, rgba(240, 245, 251, 0) 100%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: 80px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(var(--rnc-primary-rgb), 0.24);
}

.ambient-two {
  right: 3%;
  bottom: 8%;
  width: 260px;
  height: 260px;
  background: rgba(125, 196, 255, 0.18);
}

.container {
  position: relative;
  z-index: 1;
}

.glass-panel,
.glass-subpanel,
.glass-float {
  background: var(--rnc-surface);
  border: 1px solid var(--rnc-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.glass-panel {
  border-radius: var(--radius-xl);
}

.glass-subpanel {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.glass-float {
  border-radius: var(--radius-md);
}

.topbar {
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.86));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(0, 72, 144, 0.28);
}

.brand-mark__glow {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(125, 196, 255, 0.8);
  filter: blur(2px);
}

.brand-mark__text {
  position: relative;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
}

.brand-mark__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 14px;
  filter: brightness(1.05) contrast(1.05);
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-kicker {
  color: rgba(var(--rnc-primary-rgb), 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--rnc-text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: all 0.24s ease;
}

.nav-pill__label {
  line-height: 1;
}

.nav-pill--with-badge {
  position: relative;
  padding-right: 1.55rem;
}

.nav-pill-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6f47;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  top: 0.34rem;
  right: 0.3rem;
}

.nav-pill--icon {
  min-width: 2.9rem;
  justify-content: center;
  padding-inline: 0.85rem;
}

.nav-pill--notification {
  color: var(--rnc-primary);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.22);
  background: rgba(var(--rnc-primary-rgb), 0.08);
}

.nav-pill--notification:hover,
.nav-pill--notification:focus-visible {
  color: #fff;
  background: linear-gradient(140deg, rgba(var(--rnc-primary-rgb), 0.94), rgba(3, 37, 77, 0.88));
}

.nav-pill--notification.show,
.nav-pill--notification[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(140deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.9));
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(0, 72, 144, 0.2);
}

.nav-pill--account {
  padding: 0.58rem 0.88rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--rnc-primary);
  background: rgba(var(--rnc-primary-rgb), 0.1);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.2);
  max-width: 14.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-pill--account:hover,
.nav-pill--account:focus-visible {
  color: var(--rnc-primary-deep);
  background: rgba(var(--rnc-primary-rgb), 0.16);
  border-color: rgba(var(--rnc-primary-rgb), 0.34);
  box-shadow: 0 10px 18px rgba(0, 72, 144, 0.12);
  transform: translateY(-1px);
}

.nav-pill--account.active {
  color: #fff;
  background: linear-gradient(140deg, rgba(var(--rnc-primary-rgb), 0.86), rgba(3, 37, 77, 0.74));
  border-color: transparent;
}

.nav-icon-bell {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-menu {
  width: min(26rem, 94vw);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.1);
  background: rgba(249, 252, 255, 0.96);
  box-shadow: 0 24px 40px rgba(8, 37, 73, 0.18);
  border-radius: 16px;
  overflow: hidden;
}

.notification-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.notification-menu__header a {
  color: var(--rnc-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.notification-menu__list {
  max-height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.notification-item:hover,
.notification-item:focus-visible {
  background: rgba(var(--rnc-primary-rgb), 0.06);
}

.notification-item__link {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.2rem;
  color: var(--rnc-text);
  text-decoration: none;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rnc-primary-deep);
}

.notification-item small,
.notification-item span {
  color: var(--rnc-text-soft);
  font-size: 0.78rem;
}

.notification-item.is-unread {
  background: rgba(var(--rnc-primary-rgb), 0.06);
}

.notification-item__dismiss {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--rnc-primary-rgb), 0.08);
  color: var(--rnc-primary);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.08rem;
  cursor: pointer;
}

.notification-item__dismiss:hover,
.notification-item__dismiss:focus-visible {
  color: #fff;
  background: rgba(var(--rnc-primary-rgb), 0.9);
}

.notification-empty {
  padding: 1rem;
  color: var(--rnc-text-soft);
  font-size: 0.86rem;
}

.topbar .dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.1);
  box-shadow: 0 20px 35px rgba(8, 37, 73, 0.16);
  padding: 0.45rem;
}

.topbar .dropdown-item {
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  font-weight: 700;
  color: var(--rnc-text);
}

.topbar .dropdown-item:hover,
.topbar .dropdown-item:focus-visible {
  color: var(--rnc-primary);
  background: rgba(var(--rnc-primary-rgb), 0.08);
}

.nav-pill:hover,
.nav-pill:focus-visible {
  color: var(--rnc-primary);
  background: rgba(var(--rnc-primary-rgb), 0.08);
}

button.nav-pill--logout:hover,
button.nav-pill--logout:focus-visible {
  color: #fff;
  background: #b54747;
  background: linear-gradient(140deg, #c94f4f, #8f2f2f);
  box-shadow: 0 12px 20px rgba(181, 71, 71, 0.22);
}

.nav-pill.active {
  color: #fff;
  background: linear-gradient(140deg, rgba(var(--rnc-primary-rgb), 0.94), rgba(3, 37, 77, 0.88));
  box-shadow: 0 12px 20px rgba(0, 72, 144, 0.16);
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--rnc-primary);
  --bs-btn-border-color: var(--rnc-primary);
  --bs-btn-hover-bg: var(--rnc-primary-deep);
  --bs-btn-hover-border-color: var(--rnc-primary-deep);
  --bs-btn-active-bg: var(--rnc-primary-deep);
  --bs-btn-active-border-color: var(--rnc-primary-deep);
}

.btn-soft-shadow {
  box-shadow: 0 16px 24px rgba(0, 72, 144, 0.22);
}

.btn-glass-secondary {
  color: var(--rnc-primary);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.12);
}

.btn-glass-secondary:hover,
.btn-glass-secondary:focus-visible {
  color: var(--rnc-primary-deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--rnc-primary-rgb), 0.22);
}

.btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.1);
  background: rgba(255, 255, 255, 0.74);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.btn-icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--rnc-primary);
}

.sidebar-offcanvas {
  background: transparent;
}

.rnc-mobile-menu {
  width: 100vw !important;
  max-width: none;
  height: 100dvh;
  border: 0;
  background:
    radial-gradient(circle at top left, rgba(var(--rnc-primary-rgb), 0.16), transparent 34%),
    radial-gradient(circle at right 12%, rgba(125, 196, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #f6fbff 0%, #edf4fb 100%);
  color: var(--rnc-text);
  z-index: 2050;
}

.offcanvas-backdrop {
  z-index: 2040;
}

.rnc-mobile-menu__header {
  align-items: flex-start;
  /* Full-bleed offcanvas: with viewport-fit=cover the notch overlaps its
     leading edge in landscape, so the side insets matter here too. */
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) max(1rem, env(safe-area-inset-right, 0px))
    0.9rem max(1rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.rnc-mobile-menu__brand {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex: 0 0 auto;
  text-decoration: none;
}

.rnc-mobile-menu__title {
  max-width: 16rem;
  margin: 0;
  color: var(--rnc-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.rnc-mobile-menu__close {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  background-color: rgba(255, 255, 255, 0.54);
  background-size: 0.72rem;
  box-shadow: 0 10px 22px rgba(8, 37, 73, 0.08);
  opacity: 0.72;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.rnc-mobile-menu__close:hover,
.rnc-mobile-menu__close:focus-visible {
  opacity: 1;
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.86);
}

.rnc-mobile-menu__body {
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) 1rem
    max(1rem, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rnc-mobile-menu__nav {
  display: grid;
  gap: 1rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
}

.rnc-mobile-menu__group {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.rnc-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.82rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rnc-text);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.rnc-mobile-menu__link:hover,
.rnc-mobile-menu__link:focus-visible {
  color: var(--rnc-primary);
  background: rgba(var(--rnc-primary-rgb), 0.08);
}

.rnc-mobile-menu__link.active {
  color: #fff;
  background: linear-gradient(140deg, rgba(var(--rnc-primary-rgb), 0.96), rgba(3, 37, 77, 0.9));
  box-shadow: 0 16px 28px rgba(0, 72, 144, 0.18);
}

.rnc-mobile-menu__link--danger {
  color: #9f3434;
}

.rnc-mobile-menu__link--danger:hover,
.rnc-mobile-menu__link--danger:focus-visible {
  color: #fff;
  background: linear-gradient(140deg, #c94f4f, #8f2f2f);
}

.rnc-auth-session-mobile {
  min-height: 2.55rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.rnc-mobile-menu__badge {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6f47;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.sidebar-panel {
  padding: 1.5rem;
  min-height: 100%;
}

.sidebar-copy,
.panel-copy,
.hero-copy,
.content-block p {
  color: var(--rnc-text-soft);
  line-height: 1.7;
}

.sidebar-block+.sidebar-block {
  margin-top: 1rem;
}

.sidebar-label {
  margin-bottom: 0.9rem;
  color: rgba(var(--rnc-primary-rgb), 0.66);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-link {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  color: var(--rnc-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.22s ease;
}

.rail-link strong {
  color: var(--rnc-primary);
  font-size: 0.9rem;
}

.rail-link:hover,
.rail-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--rnc-primary-rgb), 0.2);
}

.rail-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.84));
}

.rail-link.active strong {
  color: rgba(255, 255, 255, 0.86);
}

.mini-stat-list {
  display: grid;
  gap: 0.9rem;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mini-stat span {
  color: var(--rnc-text-soft);
  font-size: 0.94rem;
}

.mini-stat strong {
  font-size: 1rem;
}

body.pasaport-shell--signed-in {
  --pasaport-sidebar-collapsed: 4.9rem;
  --pasaport-sidebar-expanded: 15.25rem;
  --pasaport-sidebar-gap: 0;
  --pasaport-sidebar-surface: linear-gradient(180deg, rgba(252, 253, 255, 0.94) 0%, rgba(246, 249, 253, 0.94) 100%);
  --pasaport-sidebar-border: rgba(var(--rnc-primary-rgb), 0.08);
  --pasaport-sidebar-text: var(--rnc-text);
  --pasaport-sidebar-text-soft: rgba(var(--rnc-primary-rgb), 0.54);
}

.pasaport-nav-shell {
  position: relative;
}

.pasaport-mobile-topbar {
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  /* Bootstrap's .navbar defaults to flex-wrap: wrap, which drops the brand
     onto a second row once it cannot fit beside the burger. */
  flex-wrap: nowrap;
}

.pasaport-mobile-brand {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.pasaport-mobile-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.pasaport-mobile-topbar .btn-icon {
  flex: 0 0 auto;
}

.pasaport-mobile-brand__copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.pasaport-mobile-brand__copy .brand-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.pasaport-sidebar {
  width: var(--pasaport-sidebar-collapsed);
  min-height: 100dvh;
  padding: 0;
  border-radius: 0;
  background: var(--pasaport-sidebar-surface);
  border: 0;
  border-right: 1px solid var(--pasaport-sidebar-border);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--pasaport-sidebar-text);
  overflow: visible;
  transition:
    width 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-sidebar,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-sidebar {
  width: var(--pasaport-sidebar-expanded);
}

.pasaport-sidebar__inner {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.55rem 0.7rem;
}

.pasaport-sidebar__top {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
}

.pasaport-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.15rem 0.2rem 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar__brand {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  margin-inline: auto;
}

.pasaport-sidebar__brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.pasaport-sidebar__brand-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.pasaport-sidebar__brand-copy .section-kicker {
  color: rgba(var(--rnc-primary-rgb), 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.pasaport-sidebar__brand-copy .brand-title {
  color: var(--rnc-primary-deep);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  letter-spacing: -0.01em;
}

.pasaport-sidebar__section,
.pasaport-sidebar__footer {
  display: grid;
  gap: 0.3rem;
}

.pasaport-sidebar__footer {
  padding-top: 0;
  gap: 0.22rem;
}

.pasaport-sidebar__portal,
.pasaport-sidebar__account {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(var(--rnc-primary-rgb), 0.06);
}

.pasaport-sidebar__radial-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.85rem;
  padding: 0.05rem 0 0.2rem;
  overflow: visible;
  z-index: 4;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.pasaport-sidebar__spacer {
  flex: 1 1 auto;
}

.pasaport-sidebar-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(var(--rnc-primary-rgb), 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.pasaport-sidebar-toggle:hover,
.pasaport-sidebar-toggle:focus-visible {
  background: rgba(var(--rnc-primary-rgb), 0.07);
  border-color: rgba(var(--rnc-primary-rgb), 0.14);
  color: var(--rnc-primary-deep);
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar-toggle {
  display: none;
}

.pasaport-radial-toggle {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.12);
  border-radius: 16px;
  padding: 0;
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.96));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow:
    0 16px 28px rgba(0, 72, 144, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease,
    width 0.24s ease,
    border-radius 0.24s ease,
    padding 0.24s ease,
    justify-content 0.24s ease;
  z-index: 2;
}

.pasaport-radial-toggle:hover,
.pasaport-radial-toggle:focus-visible,
.pasaport-sidebar__radial-shell.is-open .pasaport-radial-toggle {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 18px 32px rgba(0, 72, 144, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: saturate(1.05);
}

.pasaport-radial-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pasaport-radial-toggle__icon .pasaport-rail-icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.7;
}

.pasaport-radial-toggle__label {
  display: none;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

.pasaport-radial-flyout {
  position: absolute;
  top: calc(50% - 5.8rem);
  left: calc(100% - 0.55rem);
  width: 11.35rem;
  height: 16.8rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.pasaport-radial-flyout::before {
  display: none;
}

.pasaport-radial-item {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8.95rem;
  min-height: 2.85rem;
  padding: 0.5rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(16, 70, 128, 0.97), rgba(4, 42, 87, 0.94));
  color: #fff;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(2, 36, 72, 0.18);
  opacity: 0;
  transform: translate(0, -50%) scale(0.72);
  transform-origin: left center;
  transition:
    transform 0.28s ease,
    opacity 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 2;
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item {
  pointer-events: auto;
  opacity: 1;
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--home {
  transform: translate(1rem, calc(-7.8rem - 50%)) scale(1);
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--map {
  transform: translate(1rem, calc(-4.95rem - 50%)) scale(1);
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--nis {
  transform: translate(2.5rem, calc(-2.05rem - 50%)) scale(1);
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--passport {
  transform: translate(3rem, calc(0.95rem - 50%)) scale(1);
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--registry-personal {
  transform: translate(2rem, calc(3.95rem - 50%)) scale(1);
}

.pasaport-sidebar__radial-shell.is-open .pasaport-radial-item--analytics {
  transform: translate(2rem, calc(6.95rem - 50%)) scale(1);
}

.pasaport-radial-item--home {
  transition-delay: 0.02s;
}

.pasaport-radial-item--map {
  transition-delay: 0.06s;
}

.pasaport-radial-item--nis {
  transition-delay: 0.1s;
}

.pasaport-radial-item--passport {
  transition-delay: 0.14s;
}

.pasaport-radial-item--registry-personal {
  transition-delay: 0.18s;
}

.pasaport-radial-item--analytics {
  transition-delay: 0.22s;
}

.pasaport-radial-item:hover,
.pasaport-radial-item:focus-visible,
.pasaport-radial-item.active {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 18px 32px rgba(0, 72, 144, 0.24);
}

.pasaport-radial-item__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.pasaport-radial-item__icon .pasaport-rail-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.pasaport-radial-item__label {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-sidebar__top,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-sidebar__top {
  justify-content: space-between;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-sidebar-toggle svg,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-sidebar-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 1.7;
}

.pasaport-sidebar__brand-copy,
.pasaport-rail-link__content {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-10px);
  white-space: nowrap;
  transition:
    max-width 0.28s ease,
    opacity 0.2s ease,
    transform 0.28s ease;
}

.pasaport-sidebar__brand-copy {
  white-space: normal;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-sidebar__brand-copy,
body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-rail-link__content,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-sidebar__brand-copy,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-rail-link__content {
  max-width: 180px;
  opacity: 1;
  transform: translateX(0);
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-sidebar__brand,
body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-rail-link,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-sidebar__brand,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-rail-link {
  justify-content: flex-start;
  gap: 0.65rem;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle {
  width: 100%;
  min-height: 2.9rem;
  height: auto;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  justify-content: center;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle__label,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle__label {
  display: inline;
}

.pasaport-rail-link {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.4rem 0.48rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pasaport-sidebar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  text-decoration: none;
  text-align: left;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.pasaport-rail-link:hover,
.pasaport-rail-link:focus-visible {
  color: var(--rnc-primary-deep);
  background: rgba(var(--rnc-primary-rgb), 0.06);
  border-color: rgba(var(--rnc-primary-rgb), 0.08);
  transform: none;
}

.pasaport-rail-link.active,
.pasaport-rail-link[aria-expanded="true"] {
  color: var(--rnc-primary-deep);
  background: rgba(var(--rnc-primary-rgb), 0.1);
  border-color: rgba(var(--rnc-primary-rgb), 0.1);
  box-shadow: none;
}

.pasaport-rail-link__icon {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 10px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex: 0 0 auto;
}

.pasaport-rail-icon {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pasaport-rail-link__content {
  min-width: 0;
  flex: 0 1 auto;
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.pasaport-rail-link__label {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.84rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
}

.pasaport-profile {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.4rem 0.48rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pasaport-sidebar-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  text-align: left;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

button.pasaport-profile,
button.pasaport-icon-button {
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.pasaport-profile:hover,
.pasaport-profile:focus-visible,
.pasaport-profile.active,
.pasaport-profile[aria-expanded="true"] {
  color: var(--rnc-primary-deep);
  background: rgba(var(--rnc-primary-rgb), 0.06);
  border-color: rgba(var(--rnc-primary-rgb), 0.08);
  transform: none;
}

.pasaport-profile__avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--rnc-primary-rgb), 0.12);
  color: var(--rnc-primary-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.pasaport-profile__content {
  min-width: 0;
  flex: 0 1 auto;
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.pasaport-profile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.84rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
}

.pasaport-profile__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pasaport-sidebar-text-soft);
  font-size: 0.76rem;
}

.rnc-auth-session-meta {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.15;
  font-size: 0.58rem;
  letter-spacing: -0.01em;
}

.rnc-session-modal__content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(var(--rnc-primary-rgb), 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
  box-shadow: 0 28px 70px rgba(24, 34, 52, 0.28);
}

.rnc-session-modal__header,
.rnc-session-modal__footer {
  border: 0;
  background: transparent;
  padding-inline: 1.5rem;
}

.rnc-session-modal__header {
  padding-top: 1.4rem;
  padding-bottom: 0.35rem;
}

.rnc-session-modal__body {
  padding: 0.25rem 1.5rem 0.75rem;
}

.rnc-session-modal__lead {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #182234;
}

.rnc-session-modal__meta {
  margin-top: 0.6rem;
  color: #5b6474;
  font-size: 0.92rem;
}

.rnc-session-modal__error {
  margin-top: 0.75rem;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.rnc-session-modal__footer {
  padding-top: 0.25rem;
  padding-bottom: 1.4rem;
}

.pasaport-account-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pasaport-auth-button {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.16);
  background: linear-gradient(135deg, rgba(var(--rnc-primary-rgb), 0.94), rgba(6, 48, 96, 0.94));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(var(--rnc-primary-rgb), 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    width 0.28s ease,
    padding 0.28s ease;
}

.pasaport-auth-button:hover,
.pasaport-auth-button:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(var(--rnc-primary-rgb), 0.24);
  filter: brightness(1.03);
}

.pasaport-auth-button__label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pasaport-auth-button__icon {
  display: none;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
}

.pasaport-auth-button__icon .pasaport-rail-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 1.9;
}

.pasaport-account-row .dropdown {
  width: auto;
}

.pasaport-profile-dropdown {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.pasaport-notification-dropdown {
  order: 2;
  flex: 0 0 auto;
  display: none;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-notification-dropdown,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-notification-dropdown {
  display: block;
}

.pasaport-icon-button,
.pasaport-account-row .pasaport-profile {
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  height: auto;
  padding: 0.4rem 0.48rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pasaport-sidebar-text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    width 0.28s ease;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-icon-button,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-icon-button {
  width: 2.7rem;
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0;
}

.pasaport-icon-button:hover,
.pasaport-icon-button:focus-visible,
.pasaport-icon-button.active,
.pasaport-icon-button[aria-expanded="true"] {
  color: var(--rnc-primary-deep);
  background: rgba(var(--rnc-primary-rgb), 0.06);
  border-color: rgba(var(--rnc-primary-rgb), 0.08);
  box-shadow: none;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-icon-button,
html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-account-row .pasaport-profile {
  width: 2.7rem;
  height: 2.7rem;
  min-width: 2.7rem;
  padding: 0;
  justify-content: center;
  margin-inline: auto;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-account-row {
  justify-content: center;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-auth-button {
  width: 2.7rem;
  min-width: 2.7rem;
  height: 2.7rem;
  min-height: 2.7rem;
  padding: 0.28rem;
  border-radius: 12px;
  margin-inline: auto;
  box-shadow: 0 8px 18px rgba(var(--rnc-primary-rgb), 0.18);
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-auth-button .pasaport-auth-button__label {
  display: none;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-auth-button .pasaport-auth-button__icon {
  display: inline-flex;
}

html:not(.pasaport-nav-open) body.pasaport-shell--signed-in:not(.pasaport-nav-open) .pasaport-sidebar .pasaport-profile-dropdown {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.pasaport-sidebar .dropdown-menu {
  min-width: 13rem;
  margin-left: 0.55rem;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  background: rgba(252, 253, 255, 0.98);
  box-shadow: 0 18px 32px rgba(8, 37, 73, 0.12);
}

.pasaport-sidebar .dropup .dropdown-menu {
  margin-left: 0;
  margin-bottom: 0.55rem;
}

.pasaport-sidebar .dropdown-item,
.pasaport-sidebar .dropdown-item-text {
  color: var(--pasaport-sidebar-text);
  font-weight: 700;
  border-radius: 10px;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 1200px) {
  body.pasaport-shell--signed-in {
    --pasaport-content-max: 1560px;
    --pasaport-content-wide-max: 1720px;
    padding-left: calc(var(--pasaport-sidebar-collapsed) + 1.35rem);
    transition: padding-left 0.28s ease;
  }

  body.pasaport-shell--signed-in.pasaport-nav-open,
  html.pasaport-nav-open body.pasaport-shell--signed-in {
    --pasaport-content-max: 1440px;
    --pasaport-content-wide-max: 1580px;
    padding-left: calc(var(--pasaport-sidebar-expanded) + 1.35rem);
  }

  body.pasaport-shell--signed-in > header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--pasaport-sidebar-collapsed);
    padding: 0 !important;
    overflow: visible;
    background: none;
    z-index: 1200;
    transition: width 0.28s ease;
  }

  body.pasaport-shell--signed-in.pasaport-nav-open > header,
  html.pasaport-nav-open body.pasaport-shell--signed-in > header {
    width: var(--pasaport-sidebar-expanded);
  }

  body.pasaport-shell--signed-in > header::before {
    display: none;
  }

  body.pasaport-shell--signed-in > header .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.pasaport-shell--signed-in > main.rnc-main {
    padding-top: 1.25rem;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  body.pasaport-shell--signed-in > main.rnc-main .page-shell {
    width: min(100%, var(--pasaport-content-wide-max));
    margin-inline: auto;
    transition: width 0.28s ease;
  }

  body.pasaport-shell--signed-in > main.rnc-main.rnc-main--wide .page-shell,
  body.pasaport-shell--signed-in > main.rnc-main .passport-builder-shell,
  body.pasaport-shell--signed-in > main.rnc-main .passport-detail-page {
    width: min(100%, var(--pasaport-content-wide-max));
  }
}

/* Below the sidebar breakpoint nothing else supplies a horizontal gutter, so
   content would otherwise sit flush against the viewport edges. The max() keeps
   text clear of the notch in landscape, now that viewport-fit=cover lets the
   page draw into it. */
@media (max-width: 1199.98px) {
  main.rnc-main {
    padding-top: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--rnc-text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rnc-accent);
  box-shadow: 0 0 0 4px rgba(125, 196, 255, 0.22);
}

.status-badge,
.status-chip,
.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.status-badge {
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(var(--rnc-primary-rgb), 0.09);
  color: var(--rnc-primary);
}

.status-badge--live {
  color: var(--rnc-success);
  background: rgba(28, 143, 100, 0.14);
}

.status-badge--soft {
  color: var(--rnc-warning);
  background: rgba(214, 164, 54, 0.14);
}

.hero-panel,
.workspace-panel,
.side-card,
.composition-panel,
.table-panel {
  padding: 1.5rem;
}

.hero-panel {
  margin-bottom: 1.5rem;
}

.display-title {
  max-width: 14ch;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.status-chip {
  padding: 0.66rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  color: var(--rnc-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rnc-success);
  box-shadow: 0 0 0 5px rgba(28, 143, 100, 0.16);
}

.stacked-steps {
  display: grid;
  gap: 0.85rem;
}

.stacked-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.stacked-step.active {
  border-color: rgba(var(--rnc-primary-rgb), 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(229, 242, 255, 0.82));
}

.stacked-step span {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(var(--rnc-primary-rgb), 0.1);
  color: var(--rnc-primary);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.stacked-step strong {
  display: block;
  margin-bottom: 0.15rem;
}

.stacked-step small {
  color: var(--rnc-text-soft);
  line-height: 1.5;
}

.metric-card {
  padding: 1.25rem;
}

.metric-card__label {
  margin-bottom: 0.75rem;
  color: rgba(var(--rnc-primary-rgb), 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card__value {
  margin-bottom: 0.35rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
}

.metric-card__meta {
  color: var(--rnc-text-soft);
  font-size: 0.92rem;
}


/* Map canvas — the visible grid/map area */
.map-stage__grid {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  background-color: #eef4f9;
  background-image:
    linear-gradient(rgba(var(--rnc-primary-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rnc-primary-rgb), 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  overflow: hidden;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Decorative road/river/boundary layers — hidden (pure decoration) */
.map-stage__roads,
.map-stage__river,
.map-stage__boundary {
  display: none;
}

.map-stage__boundary::after {
  content: "Zona administrativa";
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(var(--rnc-primary-rgb), 0.75);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shared glass styles for map panels */
.map-dock,
.map-sidebar-card,
.map-legend,
.map-scale {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}



.map-sidebar-card {
  width: 100%;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-grid span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--rnc-text-soft);
  font-size: 0.82rem;
}

.info-grid strong {
  font-size: 1rem;
}

.pill-soft {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--rnc-primary-rgb), 0.08);
  color: var(--rnc-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.map-sidebar-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.map-sidebar-card__actions a {
  color: var(--rnc-primary);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.map-sidebar-card__actions a:hover,
.map-sidebar-card__actions a:focus-visible {
  color: var(--rnc-primary-deep);
}

.parcel {
  position: absolute;
  z-index: 1;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(229, 239, 250, 0.76));
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.14);
  box-shadow: 0 10px 20px rgba(0, 72, 144, 0.06);
}

.parcel::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 0.75rem;
  border: 1px dashed rgba(var(--rnc-primary-rgb), 0.15);
}

.parcel-a {
  width: 16%;
  height: 14%;
  left: 52%;
  top: 21%;
  transform: rotate(-8deg);
}

.parcel-b {
  width: 12%;
  height: 11%;
  right: 11%;
  top: 58%;
  transform: rotate(4deg);
}

.parcel-c {
  width: 18%;
  height: 16%;
  left: 44%;
  bottom: 20%;
  transform: rotate(-13deg);
}

.parcel-d {
  width: 10%;
  height: 10%;
  right: 31%;
  bottom: 18%;
  transform: rotate(8deg);
}

.parcel-e {
  width: 11%;
  height: 10%;
  left: 57%;
  top: 46%;
  transform: rotate(3deg);
}

.parcel-f {
  width: 9%;
  height: 9%;
  right: 18%;
  top: 38%;
  transform: rotate(-6deg);
}

.parcel-selected {
  border-color: rgba(var(--rnc-primary-rgb), 0.5);
  box-shadow:
    0 0 0 4px rgba(var(--rnc-primary-rgb), 0.06),
    0 16px 26px rgba(0, 72, 144, 0.1);
}

.parcel-selected::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 1.35rem;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.24);
}

.map-focus {
  position: absolute;
  left: 53%;
  top: 54%;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.map-focus__halo,
.map-focus__ring,
.map-focus__dot {
  position: absolute;
  border-radius: 50%;
}

.map-focus__halo {
  width: 94px;
  height: 94px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--rnc-primary-rgb), 0.1);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.map-focus__ring {
  width: 42px;
  height: 42px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(var(--rnc-primary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.52);
}

.map-focus__dot {
  width: 14px;
  height: 14px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--rnc-primary);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.84);
}

.map-focus__label {
  position: absolute;
  top: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(3, 37, 77, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.map-legend {
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rnc-text);
  font-size: 0.84rem;
  font-weight: 800;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-swatch--primary {
  background: var(--rnc-primary);
  box-shadow: 0 0 0 5px rgba(var(--rnc-primary-rgb), 0.1);
}

.legend-swatch--soft {
  background: rgba(125, 196, 255, 0.8);
  box-shadow: 0 0 0 5px rgba(125, 196, 255, 0.16);
}

.legend-swatch--line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--rnc-primary-rgb), 0.68);
  box-shadow: none;
}

.map-scale {
  padding: 0.72rem 0.9rem;
  color: rgba(var(--rnc-primary-rgb), 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  align-self: flex-end;
}

.side-card .alert-success {
  --bs-alert-color: #0d5c45;
  --bs-alert-bg: rgba(28, 143, 100, 0.12);
  --bs-alert-border-color: rgba(28, 143, 100, 0.18);
  border-radius: var(--radius-md);
}

.detail-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.82));
  color: #fff;
}

.detail-card__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.detail-card__meta {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.74);
}

.detail-list {
  display: grid;
  gap: 0.95rem;
}

.detail-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
}

.detail-list__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list__row span {
  color: var(--rnc-text-soft);
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(var(--rnc-primary-rgb), 0.32);
}

.timeline-item.current::before {
  background: var(--rnc-success);
  box-shadow: 0 0 0 5px rgba(28, 143, 100, 0.14);
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.18rem;
}

.timeline-item span {
  color: var(--rnc-text-soft);
  font-size: 0.92rem;
}

.panel-pills .nav-link {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--rnc-text-soft);
  font-weight: 700;
  border: 1px solid transparent;
}

.panel-pills .nav-link.active {
  background: rgba(var(--rnc-primary-rgb), 0.08);
  color: var(--rnc-primary);
  border-color: rgba(var(--rnc-primary-rgb), 0.1);
}

.content-block {
  position: relative;
  overflow: hidden;
}

.content-block__icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.96), rgba(3, 37, 77, 0.82));
  box-shadow: 0 14px 24px rgba(0, 72, 144, 0.18);
}

.content-block__icon::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.table-glass {
  --bs-table-bg: transparent;
  --bs-table-color: var(--rnc-text);
  --bs-table-border-color: rgba(var(--rnc-primary-rgb), 0.08);
}

.table-glass thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: rgba(var(--rnc-primary-rgb), 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom-width: 1px;
}

.table-glass tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.table-link {
  color: var(--rnc-primary);
  font-weight: 800;
  text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
  color: var(--rnc-primary-deep);
}

.btn-outline-primary {
  --bs-btn-color: var(--rnc-primary);
  --bs-btn-border-color: rgba(var(--rnc-primary-rgb), 0.24);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--rnc-primary);
  --bs-btn-hover-border-color: var(--rnc-primary);
  --bs-btn-active-bg: var(--rnc-primary-deep);
  --bs-btn-active-border-color: var(--rnc-primary-deep);
}

.component-library-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.component-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.component-card--wide {
  grid-column: span 7;
}

.component-card--medium {
  grid-column: span 5;
}

.component-card--full {
  grid-column: 1 / -1;
}

.component-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.token-swatch {
  min-height: 108px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--token-bg);
  color: var(--token-text, #fff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.token-swatch strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.token-swatch span {
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.86;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-grid .form-label {
  margin-bottom: 0.55rem;
  color: rgba(var(--rnc-primary-rgb), 0.78);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid .form-control,
.form-grid .form-select {
  min-height: 52px;
  padding-inline: 1rem;
  border-radius: 18px;
  border-color: rgba(var(--rnc-primary-rgb), 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--rnc-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-grid .form-control:focus,
.form-grid .form-select:focus {
  border-color: rgba(var(--rnc-primary-rgb), 0.28);
  box-shadow: 0 0 0 0.24rem rgba(var(--rnc-primary-rgb), 0.12);
}

.form-grid textarea.form-control {
  min-height: 120px;
  padding-block: 0.9rem;
  resize: vertical;
}

.form-grid .form-check {
  margin-bottom: 0;
}

.form-grid .form-check-input {
  border-color: rgba(var(--rnc-primary-rgb), 0.18);
}

.form-grid .form-check-input:checked {
  background-color: var(--rnc-primary);
  border-color: var(--rnc-primary);
}

.form-grid .form-range::-webkit-slider-thumb {
  background: var(--rnc-primary);
}

.form-grid .form-range::-moz-range-thumb {
  background: var(--rnc-primary);
  border: 0;
}

.form-helper {
  margin-top: 0.35rem;
  color: var(--rnc-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.shadow-scale {
  display: grid;
  gap: 0.85rem;
}

.shadow-sample {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  gap: 0.3rem;
}

.shadow-sample strong {
  font-size: 0.94rem;
}

.shadow-sample span {
  color: var(--rnc-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shadow-sample--flat {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.shadow-sample--soft {
  box-shadow: var(--shadow-soft);
}

.shadow-sample--deep {
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.96), rgba(3, 37, 77, 0.82));
  border-color: rgba(var(--rnc-primary-rgb), 0.12);
  box-shadow: 0 18px 34px rgba(0, 72, 144, 0.22);
}

.shadow-sample--deep strong,
.shadow-sample--deep span {
  color: #fff;
}

.shadow-sample--deep span {
  opacity: 0.76;
}

.starter-accordion {
  display: grid;
  gap: 0.85rem;
  --bs-accordion-border-color: transparent;
  --bs-accordion-bg: transparent;
  --bs-accordion-btn-focus-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--rnc-primary);
  --bs-accordion-active-bg: rgba(var(--rnc-primary-rgb), 0.08);
}

.starter-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.starter-accordion .accordion-button {
  padding: 1rem 1.1rem;
  background: transparent;
  color: var(--rnc-text);
  font-weight: 800;
}

.starter-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.starter-accordion .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

.starter-accordion .accordion-body {
  padding: 0 1.1rem 1.1rem;
  color: var(--rnc-text-soft);
  line-height: 1.7;
}

.interaction-stack {
  display: grid;
  gap: 1rem;
}

.interaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.starter-alert {
  --bs-alert-color: #0e345f;
  --bs-alert-bg: rgba(var(--rnc-primary-rgb), 0.1);
  --bs-alert-border-color: rgba(var(--rnc-primary-rgb), 0.14);
  border-radius: var(--radius-md);
}

.interaction-panel {
  padding: 1rem;
}

.progress-glass {
  height: 14px;
  border-radius: 999px;
  background: rgba(var(--rnc-primary-rgb), 0.08);
  overflow: hidden;
}

.progress-glass .progress-bar {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.88));
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-card {
  padding: 1rem;
  display: grid;
  gap: 0.2rem;
}

.mini-card span {
  color: var(--rnc-text-soft);
  font-size: 0.84rem;
}

.mini-card strong {
  font-size: 1rem;
}

.empty-state-card {
  padding: 1rem;
}

.empty-state-card p {
  color: var(--rnc-text-soft);
  line-height: 1.6;
}

.starter-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  background: rgba(250, 252, 255, 0.88);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.starter-modal .modal-header,
.starter-modal .modal-footer {
  padding-inline: 1.35rem;
  border-color: rgba(var(--rnc-primary-rgb), 0.08);
}

.starter-modal .modal-body {
  padding: 1.35rem;
  color: var(--rnc-text);
}

.starter-modal .btn-close {
  opacity: 0.8;
}

.tooltip {
  --bs-tooltip-bg: rgba(3, 37, 77, 0.92);
  --bs-tooltip-color: #fff;
}

.tooltip .tooltip-inner {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(3, 37, 77, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.8s ease forwards;
}

.reveal-1 {
  animation-delay: 0.08s;
}

.reveal-2 {
  animation-delay: 0.16s;
}

.reveal-3 {
  animation-delay: 0.24s;
}

.reveal-4 {
  animation-delay: 0.32s;
}

.reveal-5 {
  animation-delay: 0.4s;
}

.reveal-6 {
  animation-delay: 0.48s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1199.98px) {
  body.registry-body > header {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  .topbar {
    align-items: center;
    border-radius: 22px;
  }

  .topbar > .d-flex:first-child {
    min-width: 0;
  }

  .topbar > .d-none.d-xl-flex {
    display: none !important;
  }

  .sidebar-panel {
    min-height: auto;
  }
}

@media (max-width: 991.98px) {
  .topbar {
    border-radius: 22px;
  }

  .hero-panel,
  .workspace-panel,
  .side-card,
  .composition-panel,
  .table-panel,
  .sidebar-panel {
    padding: 1.25rem;
  }

  .map-dock {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .map-tool {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 0.6rem;
  }

  .component-card--wide,
  .component-card--medium,
  .component-card--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  body.registry-body::before {
    background-size: 32px 32px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .brand-title {
    max-width: 28ch;
    font-size: 0.92rem;
  }

  .section-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .nav-pill {
    padding: 0.68rem 0.9rem;
    font-size: 0.9rem;
  }

  .display-title {
    max-width: none;
  }

  .map-dock {
    grid-template-columns: 1fr;
  }

  .map-tool {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 0.45rem;
  }

  .token-grid,
  .form-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .map-stage__grid {
    height: 200px;
  }

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

  .parcel-a,
  .parcel-b,
  .parcel-c,
  .parcel-d,
  .parcel-e,
  .parcel-f {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  body.registry-body > header .container,
  body.registry-body > main.rnc-main {
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .topbar {
    gap: 0.85rem;
    padding: 0.9rem !important;
    border-radius: 20px;
  }

  .topbar > .d-flex:first-child {
    gap: 0.75rem !important;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand-title {
    max-width: none;
    font-size: 0.86rem;
  }
}

/* Index static navbar behavior */
body.index-page > header[data-static-navbar] {
  position: sticky;
  top: 0;
  z-index: 1100;
  transition: padding 0.24s ease, transform 0.24s ease;
}

body.index-page > header[data-static-navbar] .topbar {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

body.index-page > header[data-static-navbar].is-scrolled {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

body.index-page > header[data-static-navbar].is-scrolled .topbar {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(var(--rnc-primary-rgb), 0.16);
  box-shadow: 0 16px 40px rgba(8, 37, 73, 0.16);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  body.index-page > header[data-static-navbar],
  body.index-page > header[data-static-navbar] .topbar {
    transition: none;
  }
}

body.pasaport-portal-open .pasaport-sidebar {
  width: var(--pasaport-sidebar-collapsed);
}

.pasaport-radial-toggle {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(var(--rnc-primary-rgb), 0.12);
  border-radius: 16px;
  padding: 0;
  background: linear-gradient(145deg, rgba(var(--rnc-primary-rgb), 0.98), rgba(3, 37, 77, 0.96));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow:
    0 16px 28px rgba(0, 72, 144, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease,
    width 0.24s ease,
    border-radius 0.24s ease,
    padding 0.24s ease,
    justify-content 0.24s ease;
  z-index: 2;
}

.pasaport-radial-toggle:hover,
.pasaport-radial-toggle:focus-visible,
body.pasaport-portal-open .pasaport-radial-toggle {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 18px 32px rgba(0, 72, 144, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: saturate(1.05);
}

.pasaport-radial-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pasaport-radial-toggle__icon .pasaport-rail-icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.7;
}

.pasaport-radial-toggle__label {
  display: none;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

.pasaport-radial-flyout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
  z-index: 1100;
}

.pasaport-radial-flyout__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(7, 22, 43, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pasaport-radial-flyout__dialog {
  position: fixed;
  left: 50vw;
  top: 50vh;
  width: min(82vw, 34rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, calc(-50% + 0.6rem)) scale(0.92);
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  z-index: 1;
}

.pasaport-radial-flyout__close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 31, 59, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(4, 21, 43, 0.24);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 5;
}

.pasaport-radial-flyout__close:hover,
.pasaport-radial-flyout__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(13, 41, 77, 0.92);
  box-shadow: 0 18px 28px rgba(4, 21, 43, 0.3);
}

.pasaport-radial-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 34px 68px rgba(4, 20, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pasaport-radial-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 74%);
}

.pasaport-radial-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(255, 255, 255, 0.08) 32% 33%, transparent 33% 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 64%);
  pointer-events: none;
}

.pasaport-radial-item {
  position: absolute;
  inset: 0;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--slice-fill, rgba(24, 101, 176, 0.96));
  color: #fff;
  display: block;
  text-decoration: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  clip-path: var(--slice-clip);
  transform: scale(0.94);
  transform-origin: center center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 3;
}

.pasaport-radial-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  opacity: 0;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}

.pasaport-radial-item__body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--body-width, 7.6rem);
  min-height: var(--body-height, 5.25rem);
  padding: 0.82rem 0.58rem 0.68rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
  box-shadow: none;
  transform: translate(-50%, -50%) translate(var(--body-x, 0), var(--body-y, 0));
  transition: transform 0.22s ease;
}

body.pasaport-portal-open .pasaport-radial-item {
  opacity: 0.95;
  transform: scale(1);
}

.pasaport-radial-item--home {
  --slice-fill: #1d6ab5;
  --slice-clip: polygon(
    50% 50%,
    6.70% 25.00%,
    4.69% 28.87%,
    3.02% 32.90%,
    1.70% 37.06%,
    0.76% 41.32%,
    0.19% 45.64%,
    0.00% 50.00%,
    0.19% 54.36%,
    0.76% 58.68%,
    1.70% 62.94%,
    3.02% 67.10%,
    4.69% 71.13%,
    6.70% 75.00%
  );
  --body-x: -11.2rem;
  --body-y: 0rem;
}

.pasaport-radial-item--map {
  --slice-fill: #1663af;
  --slice-clip: polygon(
    50% 50%,
    50.00% 0.00%,
    45.64% 0.19%,
    41.32% 0.76%,
    37.06% 1.70%,
    32.90% 3.02%,
    28.87% 4.69%,
    25.00% 6.70%,
    21.32% 9.04%,
    17.86% 11.70%,
    14.64% 14.64%,
    11.70% 17.86%,
    9.04% 21.32%,
    6.70% 25.00%
  );
  --body-x: -5.6rem;
  --body-y: -9.7rem;
}

.pasaport-radial-item--nis {
  --slice-fill: #1f76c2;
  --slice-clip: polygon(
    50% 50%,
    50.00% 0.00%,
    54.36% 0.19%,
    58.68% 0.76%,
    62.94% 1.70%,
    67.10% 3.02%,
    71.13% 4.69%,
    75.00% 6.70%,
    78.68% 9.04%,
    82.14% 11.70%,
    85.36% 14.64%,
    88.30% 17.86%,
    90.96% 21.32%,
    93.30% 25.00%
  );
  --body-x: 5.6rem;
  --body-y: -9.7rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item--passport {
  --slice-fill: #145da9;
  --slice-clip: polygon(
    50% 50%,
    93.30% 25.00%,
    95.31% 28.87%,
    96.98% 32.90%,
    98.30% 37.06%,
    99.24% 41.32%,
    99.81% 45.64%,
    100.00% 50.00%,
    99.81% 54.36%,
    99.24% 58.68%,
    98.30% 62.94%,
    96.98% 67.10%,
    95.31% 71.13%,
    93.30% 75.00%
  );
  --body-x: 11.2rem;
  --body-y: 0rem;
}

.pasaport-radial-item--registry-personal {
  --slice-fill: #0f4f94;
  --slice-clip: polygon(
    50% 50%,
    93.30% 75.00%,
    90.96% 78.68%,
    88.30% 82.14%,
    85.36% 85.36%,
    82.14% 88.30%,
    78.68% 90.96%,
    75.00% 93.30%,
    71.13% 95.31%,
    67.10% 96.98%,
    62.94% 98.30%,
    58.68% 99.24%,
    54.36% 99.81%,
    50.00% 100.00%
  );
  --body-x: 5.6rem;
  --body-y: 9.7rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item--analytics {
  --slice-fill: #114b87;
  --slice-clip: polygon(
    50% 50%,
    50.00% 100.00%,
    45.64% 99.81%,
    41.32% 99.24%,
    37.06% 98.30%,
    32.90% 96.98%,
    28.87% 95.31%,
    25.00% 93.30%,
    21.32% 90.96%,
    17.86% 88.30%,
    14.64% 85.36%,
    11.70% 82.14%,
    9.04% 78.68%,
    6.70% 75.00%
  );
  --body-x: -5.6rem;
  --body-y: 9.7rem;
}

.pasaport-radial-item:hover,
.pasaport-radial-item:focus-visible,
.pasaport-radial-item[aria-current="page"] {
  color: #fff;
  filter: brightness(1.08) saturate(1.04);
}

.pasaport-radial-item:hover::before,
.pasaport-radial-item:focus-visible::before,
.pasaport-radial-item[aria-current="page"]::before {
  opacity: 1;
}

.pasaport-radial-item:hover .pasaport-radial-item__body,
.pasaport-radial-item:focus-visible .pasaport-radial-item__body,
.pasaport-radial-item[aria-current="page"] .pasaport-radial-item__body {
  transform: translate(-50%, -50%) translate(var(--body-x, 0), var(--body-y, 0)) scale(1.06);
}

.pasaport-radial-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pasaport-radial-item__icon .pasaport-rail-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.pasaport-radial-item__label {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.pasaport-radial-wheel__hub {
  position: relative;
  z-index: 4;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(8, 29, 56, 0.97), rgba(4, 21, 43, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 34px rgba(5, 21, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  color: #fff;
}

.pasaport-radial-wheel__title {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pasaport-radial-wheel__subtitle {
  max-width: 10ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

body.pasaport-portal-open .pasaport-radial-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.pasaport-portal-open .pasaport-radial-flyout__dialog {
  transform: translate(-50%, -50%) scale(1);
}

body.pasaport-portal-open {
  overflow: hidden;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle {
  width: 100%;
  min-height: 2.9rem;
  height: auto;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  justify-content: center;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle__label,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle__label {
  display: inline;
}

/* The 6-slice @media (max-width: 720px) radial-wheel block that used to sit here
   was fully superseded by the WHEEL-V2 block further down: every selector it
   defined is redefined there and won on source order, and its one unique rule
   (.pasaport-radial-item--home) targets an element no template renders. */

/* ===== RNDC-WHEEL-V2: rotiță portal 5 felii + hub Acasă (sync din aplicatii_tehnice) ===== */
.pasaport-radial-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 34px 68px rgba(4, 20, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pasaport-radial-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 74%);
}

.pasaport-radial-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(255, 255, 255, 0.08) 32% 33%, transparent 33% 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 64%);
  pointer-events: none;
}

.pasaport-radial-item {
  position: absolute;
  inset: 0;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--slice-fill, rgba(24, 101, 176, 0.96));
  color: #fff;
  display: block;
  text-decoration: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  clip-path: var(--slice-clip);
  transform: scale(0.94);
  transform-origin: center center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 3;
}

.pasaport-radial-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  opacity: 0;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}

.pasaport-radial-item__body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--body-width, 7.6rem);
  min-height: var(--body-height, 5.25rem);
  padding: 0.82rem 0.58rem 0.68rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
  box-shadow: none;
  transform: translate(-50%, -50%) translate(var(--body-x, 0), var(--body-y, 0));
  transition: transform 0.22s ease;
}

body.pasaport-portal-open .pasaport-radial-item {
  opacity: 0.95;
  transform: scale(1);
}

/* 5 felii egale (72°), în sensul acelor de ceasornic de sus:
   Harta · Aplicații Tehnice · Registru Public & Atestări · Date și analiză · Portofoliu clădiri.
   „Acasă" stă în hub-ul central. Culoarea feliei e legată de poziție (gradient constant). */
.pasaport-radial-item--map {
  --slice-fill: #1663af;
  --slice-clip: polygon(
    50% 50%,
    20.61% 9.55%,
    25.00% 6.70%,
    29.66% 4.32%,
    34.55% 2.45%,
    39.60% 1.09%,
    44.77% 0.27%,
    50.00% 0.00%,
    55.23% 0.27%,
    60.40% 1.09%,
    65.45% 2.45%,
    70.34% 4.32%,
    75.00% 6.70%,
    79.39% 9.55%
  );
  --body-x: 0rem;
  --body-y: -11.2rem;
}

.pasaport-radial-item--passport {
  --slice-fill: #1f76c2;
  --slice-clip: polygon(
    50% 50%,
    79.39% 9.55%,
    83.46% 12.84%,
    87.16% 16.54%,
    90.45% 20.61%,
    93.30% 25.00%,
    95.68% 29.66%,
    97.55% 34.55%,
    98.91% 39.60%,
    99.73% 44.77%,
    100.00% 50.00%,
    99.73% 55.23%,
    98.91% 60.40%,
    97.55% 65.45%
  );
  --body-x: 10.65rem;
  --body-y: -3.46rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item--registry-personal {
  --slice-fill: #145da9;
  --slice-clip: polygon(
    50% 50%,
    97.55% 65.45%,
    95.68% 70.34%,
    93.30% 75.00%,
    90.45% 79.39%,
    87.16% 83.46%,
    83.46% 87.16%,
    79.39% 90.45%,
    75.00% 93.30%,
    70.34% 95.68%,
    65.45% 97.55%,
    60.40% 98.91%,
    55.23% 99.73%,
    50.00% 100.00%
  );
  --body-x: 6.58rem;
  --body-y: 9.06rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item--analytics {
  --slice-fill: #0f4f94;
  --slice-clip: polygon(
    50% 50%,
    50.00% 100.00%,
    44.77% 99.73%,
    39.60% 98.91%,
    34.55% 97.55%,
    29.66% 95.68%,
    25.00% 93.30%,
    20.61% 90.45%,
    16.54% 87.16%,
    12.84% 83.46%,
    9.55% 79.39%,
    6.70% 75.00%,
    4.32% 70.34%,
    2.45% 65.45%
  );
  --body-x: -6.58rem;
  --body-y: 9.06rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item--nis {
  --slice-fill: #114b87;
  --slice-clip: polygon(
    50% 50%,
    2.45% 65.45%,
    1.09% 60.40%,
    0.27% 55.23%,
    0.00% 50.00%,
    0.27% 44.77%,
    1.09% 39.60%,
    2.45% 34.55%,
    4.32% 29.66%,
    6.70% 25.00%,
    9.55% 20.61%,
    12.84% 16.54%,
    16.54% 12.84%,
    20.61% 9.55%
  );
  --body-x: -10.65rem;
  --body-y: -3.46rem;
  --body-width: 8.2rem;
}

.pasaport-radial-item:hover,
.pasaport-radial-item:focus-visible,
.pasaport-radial-item[aria-current="page"] {
  color: #fff;
  filter: brightness(1.08) saturate(1.04);
}

.pasaport-radial-item:hover::before,
.pasaport-radial-item:focus-visible::before,
.pasaport-radial-item[aria-current="page"]::before {
  opacity: 1;
}

.pasaport-radial-item:hover .pasaport-radial-item__body,
.pasaport-radial-item:focus-visible .pasaport-radial-item__body,
.pasaport-radial-item[aria-current="page"] .pasaport-radial-item__body {
  transform: translate(-50%, -50%) translate(var(--body-x, 0), var(--body-y, 0)) scale(1.06);
}

.pasaport-radial-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pasaport-radial-item__icon .pasaport-rail-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.pasaport-radial-item__label {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.pasaport-radial-wheel__hub {
  position: relative;
  z-index: 4;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(8, 29, 56, 0.97), rgba(4, 21, 43, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 34px rgba(5, 21, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.pasaport-radial-wheel__hub:hover,
.pasaport-radial-wheel__hub:focus-visible {
  color: #fff;
  transform: scale(1.04);
  filter: brightness(1.08) saturate(1.04);
  box-shadow:
    0 22px 40px rgba(5, 21, 43, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pasaport-radial-wheel__hub-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pasaport-radial-wheel__hub-icon .pasaport-rail-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.pasaport-radial-wheel__title {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pasaport-radial-wheel__subtitle {
  max-width: 10ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

body.pasaport-portal-open .pasaport-radial-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.pasaport-portal-open .pasaport-radial-flyout__dialog {
  transform: translate(-50%, -50%) scale(1);
}

body.pasaport-portal-open {
  overflow: hidden;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle {
  width: 100%;
  min-height: 2.9rem;
  height: auto;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  justify-content: center;
}

body.pasaport-shell--signed-in.pasaport-nav-open .pasaport-radial-toggle__label,
html.pasaport-nav-open body.pasaport-shell--signed-in .pasaport-radial-toggle__label {
  display: inline;
}

@media (max-width: 720px) {
  .pasaport-radial-flyout__dialog {
    width: min(92vw, 28rem);
  }

  .pasaport-radial-item__body {
    width: var(--body-width-mobile, 5.9rem);
    min-height: var(--body-height-mobile, 4.2rem);
    padding: 0.62rem 0.34rem 0.48rem;
  }

  .pasaport-radial-item__icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .pasaport-radial-item__icon .pasaport-rail-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .pasaport-radial-item__label {
    font-size: 0.74rem;
  }

  .pasaport-radial-item--map {
    --body-x: 0rem;
    --body-y: -7.6rem;
  }

  .pasaport-radial-item--passport {
    --body-x: 7.23rem;
    --body-y: -2.35rem;
    --body-width-mobile: 6.7rem;
  }

  .pasaport-radial-item--registry-personal {
    --body-x: 4.47rem;
    --body-y: 6.15rem;
    --body-width-mobile: 6.7rem;
  }

  .pasaport-radial-item--analytics {
    --body-x: -4.47rem;
    --body-y: 6.15rem;
    --body-width-mobile: 6.7rem;
  }

  .pasaport-radial-item--nis {
    --body-x: -7.23rem;
    --body-y: -2.35rem;
    --body-width-mobile: 6.7rem;
  }

  .pasaport-radial-flyout__close {
    display: none;
  }

  .pasaport-radial-wheel__hub {
    width: 39%;
    padding: 0.9rem;
  }

  .pasaport-radial-wheel__subtitle {
    font-size: 0.74rem;
  }
}

/* ===== Despre RNDC — buton stil portal, mai mic, verde, ușor coborât ===== */
.pasaport-sidebar__radial-shell--about {
  min-height: 2.9rem;
}
.pasaport-radial-toggle--about {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.4rem !important;
  border-radius: 13px;
  top: 3px;
  background: linear-gradient(145deg, #22a55a, #15803d);
  border-color: rgba(21, 128, 61, 0.34);
  box-shadow:
    0 10px 20px rgba(9, 78, 43, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none;
}
.pasaport-radial-toggle--about:hover,
.pasaport-radial-toggle--about:focus-visible {
  color: #fff;
  background: linear-gradient(145deg, #27b463, #178a43);
  box-shadow:
    0 14px 24px rgba(9, 78, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pasaport-radial-toggle--about .pasaport-radial-toggle__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.pasaport-radial-toggle--about .pasaport-radial-toggle__label {
  font-size: 0.82rem;
}

/* ── Selector de limbă ────────────────────────────────────────────────────────
   Stă în capul footer-ului din bara laterală, deasupra butoanelor „Despre RNDC"
   și „Portal RNDC": alegerea limbii e context, nu acțiune.

   Ambele opțiuni sunt vizibile simultan și ocupă EXACT aceeași lățime
   (`flex: 1 1 0`), centrate în celula lor. Un dropdown ar ascunde limba curentă,
   iar lățimi inegale ar sugera că una e principală.

   Cea inactivă se estompează, DRAPEL CU TOT: se citește ca „nu asta e limba
   pornită". Estomparea se pune pe opțiune, o singură dată — un `filter` separat
   pe drapel s-ar aduna peste ea, iar tricolorul, care e numai culoare fără
   niciun desen, ar deveni o pată cenușie.

   DRAPELUL NU ARE CONTUR PROPRIU. Un inel de 1px în jurul unui dreptunghi de
   26x19 se citea ca o cutie în jurul iconului. Cele două drapele se egalizează
   prin dimensiunea comună, nu prin contur. */
.pasaport-sidebar__lang { padding: 0 14px 10px; }

.rnc-lang { display: flex; align-items: center; }

.pasaport-sidebar__lang .rnc-lang {
  width: 100%;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .05);
  border: 1px solid rgba(15, 23, 42, .08);
}

.rnc-lang__opt {
  flex: 1 1 0;                 /* egale si echidistante, indiferent de latime */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  cursor: pointer;
  opacity: .58;
  transition: background-color .18s ease, opacity .18s ease;
}
.rnc-lang__opt:hover { opacity: .88; }
.rnc-lang__opt.is-active {
  opacity: 1;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .18);
}
.rnc-lang__opt:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.rnc-lang__flag {
  display: block;
  width: 26px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.rnc-lang__flag svg { display: block; width: 100%; height: 100%; }
.rnc-lang__code { letter-spacing: .06em; }

/* Bara laterală restrânsă: rămâne DOAR limba activă, centrată — un indicator,
   nu o alegere. Două drapele pe un rail se înghesuie și niciunul nu spune care
   limbă e pornită. Alegerea se face după ce bara se deschide. */
html:not(.pasaport-nav-open) .pasaport-sidebar__lang { padding: 0 6px 10px; }
html:not(.pasaport-nav-open) .rnc-lang__code { display: none; }
html:not(.pasaport-nav-open) .rnc-lang { justify-content: center; gap: 0; }
html:not(.pasaport-nav-open) .pasaport-sidebar__lang .rnc-lang { padding: 4px; }
html:not(.pasaport-nav-open) .rnc-lang__opt { gap: 0; padding: 0; }
html:not(.pasaport-nav-open) .rnc-lang__opt:not(.is-active) { display: none; }
html:not(.pasaport-nav-open) .rnc-lang__opt.is-active {
  flex: 0 0 auto;
  margin: 0 auto;
  cursor: default;             /* nu promite o acțiune pe care n-o face */
}

/* Pagina hărții n-are bară laterală, deci condiția regulii de mai sus e
   adevărată tot timpul și ar ascunde opțiunea inactivă. Aici selectorul stă
   într-o bară orizontală, deci nu se întinde pe toată lățimea. */
.map-topbar__lang { display: inline-flex; align-items: center; }
.map-topbar__lang .rnc-lang { width: auto; gap: 3px; padding: 3px; }
.map-topbar__lang .rnc-lang__code { display: inline !important; }
.map-topbar__lang .rnc-lang__opt:not(.is-active) { display: inline-flex !important; }
.map-topbar__lang .rnc-lang__opt { flex: 0 0 auto; min-width: 86px; min-height: 34px; }

@media (max-width: 720px) {
  .rnc-lang__opt { min-height: 34px; gap: 6px; font-size: .78rem; }
  .rnc-lang__flag { width: 22px; height: 16px; }
  .map-topbar__lang .rnc-lang__opt { min-width: 68px; }
}

/* Pe temă închisă se schimbă doar suprafețele, nu structura. Blocul E ÎNCHIS:
   lăsat deschis, înghițea tot ce urma și regulile ajungeau să se aplice numai
   pe temă închisă. */
@media (prefers-color-scheme: dark) {
  .pasaport-sidebar__lang .rnc-lang {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .13);
  }
  .rnc-lang__opt.is-active { background: rgba(255, 255, 255, .18); box-shadow: none; }
}
