:root {
  --bg: #07111f;
  --bg-2: #0b1a2d;
  --surface: rgba(15, 31, 52, .78);
  --surface-strong: rgba(20, 42, 69, .92);
  --ink: #f5f9ff;
  --muted: #a9b8ca;
  --soft: #d8e6f4;
  --line: rgba(142, 178, 210, .22);
  --brand: #42b7dc;
  --brand-2: #2dd0a1;
  --accent: #f5c451;
  --danger: #ff7d7d;
  --shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(66, 183, 220, .22), transparent 34rem),
    radial-gradient(circle at 8% 22%, rgba(45, 208, 161, .12), transparent 26rem),
    linear-gradient(180deg, #06101c 0%, #081522 48%, #050b13 100%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142, 178, 210, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 178, 210, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(6, 16, 28, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 183, 220, .35), rgba(45, 208, 161, .5), transparent);
}

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

.brand-logo {
  display: block;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(66, 183, 220, .22);
}

.brand-logo--login {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .24),
    0 0 34px rgba(66, 183, 220, .24);
  animation: login-logo-pulse 3.4s ease-in-out infinite;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  border: 1px solid rgba(66, 183, 220, .42);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(66, 183, 220, .22), rgba(45, 208, 161, .16));
  box-shadow: 0 0 32px rgba(66, 183, 220, .22);
  font-family: Archivo, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand strong {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 15px;
  letter-spacing: -.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.topbar-pill,
.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(66, 183, 220, .28);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(66, 183, 220, .08);
  font-weight: 800;
}

.shell {
  position: relative;
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.hero--compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

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

.eyebrow {
  margin: 0;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h2 { font-size: 24px; }
h2,
h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
h3 { font-size: 18px; }

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

.metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metrics article {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 31, 52, .62);
  animation: metric-rise 5s ease-in-out infinite;
}

.metrics article:nth-child(2) {
  animation-delay: .7s;
}

.metrics strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-family: Archivo, sans-serif;
}

.metrics span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(66, 183, 220, .08), transparent 42%),
    rgba(15, 31, 52, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel--wide {
  max-width: none;
}

.panel--narrow {
  width: min(720px, 100%);
  margin: 0 auto;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 18px;
  background: rgba(6, 16, 28, .38);
}

.catalog-toolbar--compact {
  align-items: center;
  justify-content: space-between;
}

.toolbar-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.ops-panel {
  display: grid;
  gap: 14px;
}

.security-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 18px;
  background: rgba(6, 16, 28, .36);
}

.security-card__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(66, 183, 220, .18), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(45, 208, 161, .14), transparent 38%);
  animation: security-glow-drift 9s ease-in-out infinite;
  pointer-events: none;
}

.security-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.security-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.security-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(66, 183, 220, .28);
  background: rgba(66, 183, 220, .1);
}

.security-card__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: var(--brand);
}

.security-card--protected .security-card__icon {
  border-color: rgba(45, 208, 161, .34);
  color: var(--brand-2);
  background: rgba(45, 208, 161, .1);
  animation: security-icon-breathe 3.6s ease-in-out infinite;
}

.security-card--pending .security-card__icon {
  animation: security-icon-warn 2.8s ease-in-out infinite;
}

.security-card__copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.security-card__action {
  margin-top: 2px;
}

.security-card--protected {
  border-color: rgba(45, 208, 161, .24);
}

.security-card--pending {
  border-color: rgba(245, 196, 81, .22);
}

@keyframes repo-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes repo-card-shimmer {
  0%, 72%, 100% {
    left: -120%;
  }
  82% {
    left: 130%;
  }
}

@keyframes repo-icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes repo-chip-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 208, 161, .45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(45, 208, 161, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 208, 161, 0);
  }
}

@keyframes security-glow-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6%, -4%, 0) scale(1.05);
  }
}

@keyframes security-icon-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 208, 161, .24);
  }
  50% {
    box-shadow: 0 0 22px rgba(45, 208, 161, .18);
  }
}

@keyframes security-icon-warn {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

@keyframes metric-rise {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-card,
  .repo-card::before,
  .repo-icon,
  .repo-chip--live .repo-chip__dot,
  .security-card__glow,
  .security-card--protected .security-card__icon,
  .security-card--pending .security-card__icon,
  .metrics article,
  .login-backdrop::before,
  .login-orb,
  .login-card,
  .login-card::before,
  .brand-logo.brand-logo--login,
  .brand-logo.login-brand-mark,
  .login-title,
  .login-page .btn-primary {
    animation: none;
  }

  .login-title {
    color: var(--ink);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .repo-card:hover {
    transform: none;
  }
}

.ops-actions {
  display: grid;
  gap: 8px;
}

.ops-list {
  display: grid;
  gap: 10px;
}

.ops-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(142, 178, 210, .16);
  border-radius: 14px;
  background: rgba(6, 16, 28, .32);
}

.ops-list strong {
  color: var(--ink);
  font-size: 14px;
}

.ops-list span {
  color: var(--muted);
  font-size: 13px;
}

.catalog-search {
  flex: 1 1 auto;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.title-block {
  min-width: 0;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.repo-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 16px;
  background: rgba(6, 16, 28, .44);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  animation: repo-card-enter .55s ease both;
  animation-delay: calc(var(--repo-delay, 0) * 70ms);
}

.repo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(66, 183, 220, .08), transparent);
  transform: skewX(-18deg);
  animation: repo-card-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}

.repo-card-main {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.repo-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.repo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.repo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(6, 16, 28, .42);
  font-size: 11px;
  font-weight: 800;
}

.repo-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(169, 184, 202, .72);
}

.repo-chip--live {
  border-color: rgba(45, 208, 161, .34);
  color: var(--brand-2);
  background: rgba(45, 208, 161, .1);
}

.repo-chip--live .repo-chip__dot {
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(45, 208, 161, .45);
  animation: repo-chip-pulse 2.2s ease-out infinite;
}

.repo-chip--paused {
  border-color: rgba(245, 196, 81, .28);
  color: var(--accent);
  background: rgba(245, 196, 81, .08);
}

.repo-chip--paused .repo-chip__dot {
  background: var(--accent);
}

.repo-chip--muted {
  color: var(--muted);
}

.repo-chip--ghost {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.repo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 208, 161, .38);
  background: rgba(66, 183, 220, .09);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.repo-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--brand-2);
  background:
    linear-gradient(135deg, rgba(45, 208, 161, .18), rgba(66, 183, 220, .12)),
    rgba(6, 16, 28, .42);
  border: 1px solid rgba(45, 208, 161, .24);
  font-size: 12px;
  font-weight: 1000;
  animation: repo-icon-float 4.8s ease-in-out infinite;
}

.repo-card p {
  margin-top: 4px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-card h3 {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-delete-form {
  flex: 0 0 auto;
  margin-left: auto;
}

.icon-danger-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 125, 125, .26);
  border-radius: 12px;
  color: var(--danger);
  background: rgba(255, 125, 125, .08);
  cursor: pointer;
}

.icon-danger-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  overflow-wrap: anywhere;
}

.tag-row code {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px dashed rgba(142, 178, 210, .28);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(6, 16, 28, .28);
}

.empty strong { color: #fff; }

.tag-table {
  display: grid;
  gap: 6px;
}

.tag-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid rgba(142, 178, 210, .16);
  border-radius: 12px;
  background: rgba(6, 16, 28, .36);
}

.tag-row--head {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topbar-link--button {
  cursor: pointer;
  font: inherit;
}

.logout-form {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-loading {
  gap: 10px;
  opacity: .88;
  cursor: wait;
}

.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 32px rgba(66, 183, 220, .24);
}

.btn-secondary {
  color: var(--soft);
  border-color: rgba(66, 183, 220, .28);
  background: rgba(66, 183, 220, .08);
  box-shadow: none;
}

.btn-danger {
  color: #240606;
  background: linear-gradient(135deg, #ff9a9a, var(--danger));
  box-shadow: 0 12px 28px rgba(255, 125, 125, .18);
}

.btn-block {
  width: 100%;
}

.field {
  display: grid;
  gap: 5px;
}

.field-lbl {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(142, 178, 210, .24);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(6, 16, 28, .56);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(142, 178, 210, .24);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(6, 16, 28, .86);
  font: inherit;
  outline: none;
}

.field input:focus {
  border-color: rgba(66, 183, 220, .52);
  box-shadow: 0 0 0 4px rgba(66, 183, 220, .12);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-2);
}

.login-page {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(66, 183, 220, .24), transparent 34rem),
    radial-gradient(circle at 82% 72%, rgba(45, 208, 161, .12), transparent 24rem),
    linear-gradient(180deg, #06101c 0%, #081522 48%, #050b13 100%);
}

.login-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-backdrop::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(142, 178, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 178, 210, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .9) 18%, transparent 72%);
  animation: login-grid-drift 22s linear infinite;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .9;
  animation: login-orb-float 16s ease-in-out infinite;
}

.login-orb--one {
  top: 10%;
  left: 8%;
  width: min(320px, 42vw);
  height: min(320px, 42vw);
  background: rgba(66, 183, 220, .3);
}

.login-orb--two {
  right: 6%;
  bottom: 12%;
  width: min(260px, 36vw);
  height: min(260px, 36vw);
  background: rgba(45, 208, 161, .24);
  animation-delay: -5s;
}

.login-orb--three {
  top: 48%;
  left: 44%;
  width: min(200px, 28vw);
  height: min(200px, 28vw);
  background: rgba(245, 196, 81, .16);
  animation-delay: -10s;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: clamp(26px, 4.5vw, 34px);
  border: 1px solid rgba(66, 183, 220, .24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(66, 183, 220, .12), transparent 42%),
    rgba(15, 31, 52, .9);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .38),
    0 0 48px rgba(66, 183, 220, .12);
  backdrop-filter: blur(18px);
  animation:
    login-card-enter .75s cubic-bezier(.22, 1, .36, 1) both,
    login-card-float 8s ease-in-out 1s infinite,
    login-card-glow 4.5s ease-in-out infinite;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, .07) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  animation: login-card-shine 7s ease-in-out infinite;
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  text-align: center;
}

.login-header-copy {
  display: grid;
  gap: 10px;
  width: 100%;
}

.login-brand-mark {
  flex: 0 0 auto;
}

.brand-mark.login-brand-mark {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  font-size: 15px;
  letter-spacing: -.045em;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .24),
    0 0 34px rgba(66, 183, 220, .24);
  animation: login-logo-pulse 3.4s ease-in-out infinite;
}

.registry-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(66, 183, 220, .42);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(66, 183, 220, .28), rgba(45, 208, 161, .14)),
    rgba(6, 16, 28, .56);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .24),
    0 0 34px rgba(66, 183, 220, .24);
  overflow: hidden;
}

.registry-logo::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 230, 244, .14);
  border-radius: 16px;
}

.registry-logo::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, .2), transparent 64%);
  transform: translate(18px, -18px);
}

.registry-logo__stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  width: 34px;
}

.registry-logo__layer {
  position: relative;
  height: 9px;
  border: 1px solid rgba(245, 249, 255, .34);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(245, 249, 255, .92), rgba(66, 183, 220, .78));
  box-shadow: 0 5px 14px rgba(45, 208, 161, .14);
}

.registry-logo__layer::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-2);
  transform: translateY(-50%);
}

.registry-logo__layer:nth-child(2) {
  margin-left: 6px;
  background: linear-gradient(90deg, rgba(45, 208, 161, .86), rgba(66, 183, 220, .68));
}

.registry-logo__layer:nth-child(3) {
  margin-left: 12px;
  background: linear-gradient(90deg, rgba(245, 196, 81, .9), rgba(45, 208, 161, .72));
}

.login-title {
  margin: 0;
  font-size: clamp(24px, 4.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -.02em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-wrap: balance;
  background: linear-gradient(
    120deg,
    #fff 0%,
    #d8e6f4 34%,
    #42b7dc 68%,
    #2dd0a1 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: login-title-shimmer 9s linear infinite;
}

.login-page .btn-primary {
  animation: login-btn-glow 3s ease-in-out infinite;
}

.login-page .field input:focus {
  border-color: rgba(66, 183, 220, .56);
  box-shadow:
    0 0 0 3px rgba(66, 183, 220, .14),
    0 0 24px rgba(66, 183, 220, .18);
}

@keyframes login-grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-64px, -64px, 0);
  }
}

@keyframes login-orb-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(28px, -22px, 0) scale(1.06);
  }
  66% {
    transform: translate3d(-18px, 16px, 0) scale(.94);
  }
}

@keyframes login-card-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes login-card-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes login-card-glow {
  0%, 100% {
    box-shadow:
      0 28px 70px rgba(0, 0, 0, .38),
      0 0 36px rgba(66, 183, 220, .12);
  }
  50% {
    box-shadow:
      0 32px 78px rgba(0, 0, 0, .42),
      0 0 56px rgba(45, 208, 161, .18);
  }
}

@keyframes login-card-shine {
  0%, 68%, 100% {
    transform: translateX(-130%);
  }
  78% {
    transform: translateX(130%);
  }
}

@keyframes login-logo-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, .24),
      0 0 28px rgba(66, 183, 220, .22);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 22px 44px rgba(0, 0, 0, .28),
      0 0 42px rgba(45, 208, 161, .28);
  }
}

@keyframes login-title-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 220% center;
  }
}

@keyframes login-btn-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(66, 183, 220, .24);
  }
  50% {
    box-shadow:
      0 16px 38px rgba(66, 183, 220, .34),
      0 0 28px rgba(45, 208, 161, .22);
  }
}

.login-subtitle {
  display: block;
  margin: 0 auto;
  max-width: 44ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

.login-form {
  display: grid;
  gap: 16px;
}

.wizard-form {
  display: grid;
  gap: 16px;
}

.wizard-steps {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
}

.wizard-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(6, 16, 28, .34);
  font-size: 13px;
  font-weight: 900;
}

.wizard-step.is-active {
  border-color: rgba(66, 183, 220, .46);
  color: var(--ink);
  background: rgba(66, 183, 220, .12);
}

.wizard-step.is-done {
  border-color: rgba(45, 208, 161, .42);
  color: var(--brand-2);
  background: rgba(45, 208, 161, .1);
}

.wizard-pane {
  display: grid;
  gap: 16px;
}

.wizard-pane[hidden] {
  display: none;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.review-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 16px;
  background: rgba(6, 16, 28, .36);
}

.review-box > div {
  display: grid;
  gap: 4px;
}

.review-box strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 125, 125, .28);
  border-radius: 16px;
  color: var(--danger);
  background: rgba(255, 125, 125, .08);
  font-size: 14px;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 12px;
}

.pagination-link {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(142, 178, 210, .2);
  border-radius: 12px;
  color: var(--soft);
  background: rgba(6, 16, 28, .42);
  font-weight: 900;
}

.pagination-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.pagination-link--current {
  border-color: rgba(45, 208, 161, .42);
  color: #041018;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(45, 208, 161, .28);
  border-radius: 16px;
  color: var(--brand-2);
  background: rgba(45, 208, 161, .08);
  font-size: 14px;
  font-weight: 800;
}

.repo-message {
  margin-bottom: 10px;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(280px, 360px);
  gap: 10px;
  margin-bottom: 12px;
}

.management-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 16px;
  background: rgba(6, 16, 28, .36);
}

.management-box--dense {
  align-content: start;
}

.management-box--dense p {
  font-size: 14px;
}

.management-title {
  display: grid;
  gap: 4px;
}

.policy-form {
  display: grid;
  grid-template-columns: 150px 150px minmax(240px, 1fr) minmax(130px, auto);
  gap: 10px;
  align-items: end;
}

.policy-form .field:nth-of-type(3) {
  grid-column: auto;
}

.policy-form .check-field {
  align-self: center;
}

.policy-form .policy-note {
  grid-column: 1 / -1;
}

.policy-form .inline-actions {
  align-self: end;
}

.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.policy-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tag-row--managed {
  grid-template-columns: minmax(220px, .75fr) minmax(320px, 1fr) minmax(180px, 220px) minmax(92px, 120px);
}

.tag-row strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.size-pill {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(45, 208, 161, .24);
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(45, 208, 161, .08);
  font-size: 13px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 12px;
  align-items: start;
}

.admin-user-row {
  grid-template-columns: minmax(140px, 1.1fr) minmax(100px, .65fr) minmax(88px, .55fr) minmax(72px, .5fr) minmax(160px, 1fr);
}

.twofa-panel {
  max-width: 720px;
}

.twofa-qr-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(66, 183, 220, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(66, 183, 220, .16), transparent 58%),
    rgba(6, 16, 28, .42);
}

.twofa-qr-wrap svg {
  width: min(220px, 100%);
  height: auto;
  border-radius: 12px;
}

.twofa-secret {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(142, 178, 210, .18);
  border-radius: 12px;
  background: rgba(6, 16, 28, .48);
  font-size: 13px;
  word-break: break-all;
}

.twofa-benefits {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.twofa-benefits li + li {
  margin-top: 6px;
}

.hero-lead {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted);
}

.status-badge {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge--ok {
  border: 1px solid rgba(45, 208, 161, .34);
  color: var(--brand-2);
  background: rgba(45, 208, 161, .1);
}

.status-badge--warn {
  border: 1px solid rgba(245, 196, 81, .34);
  color: var(--accent);
  background: rgba(245, 196, 81, .08);
}

.role-badge {
  justify-self: start;
  padding: 5px 10px;
  border: 1px solid rgba(142, 178, 210, .2);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(142, 178, 210, .08);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-badge--admin {
  border-color: rgba(245, 196, 81, .34);
  color: var(--accent);
  background: rgba(245, 196, 81, .08);
}

.role-badge--operator {
  border-color: rgba(66, 183, 220, .34);
  color: var(--brand);
  background: rgba(66, 183, 220, .08);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .shell {
    width: min(100% - 20px, 1280px);
    padding-top: 12px;
  }

  .hero--compact {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 30px;
    white-space: normal;
  }

  .toolbar-strip {
    grid-template-columns: 1fr;
  }

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

  .tag-row {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .management-grid,
  .policy-form {
    grid-template-columns: 1fr;
  }

  .tag-row--managed {
    grid-template-columns: 1fr;
  }

  .tag-row--head.tag-row--managed {
    display: none;
  }

}
