
/* /src/styles.css */
:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #efeeea;
  color: #0d110f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #efeeea;
  color: rgb(13 17 15 / 0.82);
}

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

button,
input,
select {
  font: inherit;
}

svg {
  flex: 0 0 auto;
}

.shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #efeeea;
}

.shell--auth {
  background: #ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(17 17 17 / 0.08);
  background: rgb(239 238 234 / 0.86);
  backdrop-filter: blur(14px);
  transition:
    margin-bottom 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.topbar--hidden {
  margin-bottom: -67px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, calc(100vw - 32px));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

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

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #04f7a4;
  box-shadow: 0 0 0 3px rgb(4 247 164 / 0.16);
}

.main {
  flex: 1 0 auto;
  width: 100%;
  padding: clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px) 56px;
}

.main--auth {
  padding: 0;
}

.registry-page,
.section-stack {
  display: grid;
  gap: clamp(16px, 2vw, 32px);
}

.registry-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  height: 88vh;
  min-height: 700px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.registry-hero-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #ffffff;
}

.registry-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  flex: 0 0 auto;
}

.registry-hero-header .brand {
  gap: 12px;
  font-size: 1.5rem;
  line-height: 1;
}

.metrics-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  color: #888888;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics-pill::before,
.metrics-pill::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
}

.metrics-pill::before {
  top: 0;
  left: 0;
  border-top: 1px solid #888888;
  border-left: 1px solid #888888;
}

.metrics-pill::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid #888888;
  border-bottom: 1px solid #888888;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #04f7a4;
  box-shadow: 0 0 0 0 rgb(4 247 164 / 0.7);
  animation: pulse 1.6s infinite;
}

.registry-hero-copy {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(32px, 4.2vw, 64px);
}

.eyebrow {
  margin: 0 0 20px;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #111111;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 100%;
  padding-bottom: 0.14em;
  font-size: clamp(3.8rem, 8.8vw, 7rem);
  font-weight: 850;
  line-height: 1.02;
}

.registry-hero-copy h1 {
  color: #151515;
  font-size: clamp(4.5rem, 6.7vw, 8rem);
  line-height: 0.88;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.65;
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 140px;
  background: #1c1c1c;
  color: #ffffff;
}

.mini-feature {
  padding: 24px;
  border-right: 1px solid rgb(255 255 255 / 0.08);
}

.mini-feature:last-child {
  border-right: 0;
}

.mini-feature h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.15;
}

.mini-feature p {
  margin: 0;
  color: #9ca3af;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.registry-hero-side {
  display: grid;
  grid-template-rows: 45% 55%;
  min-height: 100%;
  background: #e6e6e6;
}

.ascii-panel {
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e6e6e6;
  color: #686868;
}

.registry-ascii-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.registry-ascii-background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-signin-row {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
}

.hero-signin-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 16px;
  background: #ffffff;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: auto;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.hero-signin-button:hover {
  background: #111111;
  color: #ffffff;
}

.hero-signin-button.is-connected {
  max-width: min(360px, calc(100vw - 64px));
  overflow: hidden;
  border: 1px solid rgb(4 247 164 / 0.45);
  background: #111111;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.green-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 32px;
  background: #04f7a4;
  color: #0d110f;
}

.green-panel h2 {
  margin: 8px 0 0;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
}

.scope-summary {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgb(13 17 15 / 0.18);
  background: rgb(13 17 15 / 0.08);
}

.scope-summary a {
  overflow-wrap: anywhere;
  color: #0d110f;
  font-size: 1.1rem;
  font-weight: 850;
}

.scope-summary span {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.corner {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-color: rgb(13 17 15 / 0.58);
}

.corner.tl {
  top: 20px;
  left: 20px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.corner.tr {
  top: 20px;
  right: 20px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}

.corner.bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
}

.corner.br {
  right: 20px;
  bottom: 20px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
}

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

.stat {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid rgb(13 17 15 / 0.18);
  background: rgb(13 17 15 / 0.08);
}

.stat-value {
  color: #0d110f;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: rgb(13 17 15 / 0.72);
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.registry-panel {
  overflow: hidden;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(17 17 17 / 0.04);
}

.panel-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 32px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid #e5e5e5;
}

.panel-heading-row h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  line-height: 1.18;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

/* The topology list filters: search, tag, engine and membership on one line. */
.toolbar.toolbar-wide {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  color: #777777;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.search-field input::placeholder {
  color: #888888;
}

.select {
  min-width: 170px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #e5e5e5;
  border-radius: 0;
  outline: 0;
  background: #fafafa;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 2px 2px 2px 10px;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  color: #111111;
}

.account-pill img,
.account-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #f5f5f5;
  object-fit: cover;
}

.account-label {
  max-width: 220px;
  overflow: hidden;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-scope-link {
  min-height: 26px;
  padding: 0 8px;
  border-left: 1px solid #e5e5e5;
  color: #555555;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 26px;
}

.account-scope-link:hover {
  color: #111111;
}

.scope-profile-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
}

.scope-profile-panel.is-owned {
  border-color: rgb(4 247 164 / 0.55);
  box-shadow: inset 0 0 0 1px rgb(4 247 164 / 0.18);
}

.scope-profile-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.scope-profile-main img,
.scope-profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #777777;
  object-fit: cover;
}

.scope-profile-main h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111111;
  font-size: 1.35rem;
  line-height: 1.12;
}

.scope-profile-main p:last-child {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: #777777;
  font-size: 0.88rem;
}

.scope-profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scope-profile-meta span {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  background: #f5f5f5;
  color: #333333;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 28px;
  text-transform: uppercase;
}

.auth-page {
  display: flex;
  min-height: calc(100vh - 67px);
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  padding: 48px 24px;
}

.auth-card {
  display: flex;
  width: min(100%, 380px);
  flex-direction: column;
  justify-content: center;
  gap: 0;
  justify-items: center;
  padding: 0;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  text-align: center;
}

.auth-logo {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto 28px;
  place-items: center;
}

.auth-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 36px;
}

.auth-copy h1 {
  margin: 0;
  padding: 0;
  color: #111111;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.08;
}

.auth-copy p {
  margin: 0;
  max-width: 270px;
  color: #9b9991;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.08;
}

.auth-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fafafa;
  color: #333333;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.auth-message.error {
  border-color: #f1c8c1;
  background: #fff6f4;
  color: #a33a2b;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.auth-button:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.auth-button.is-loading {
  pointer-events: none;
  opacity: 0.78;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 16px;
  color: #777777;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.auth-home-link:hover {
  color: #111111;
}

.spin {
  animation: spin 0.8s linear infinite;
}

.registry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.package-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  min-height: 168px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.package-card:hover {
  background: #fafafa;
}

.card-body {
  padding: 22px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.pkg-name {
  overflow-wrap: anywhere;
  margin: 0;
  color: #111111;
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

.pkg-id {
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.pkg-description {
  max-width: 760px;
  min-height: 0;
  margin: 12px 0 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #f5f5f5;
  color: #333333;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.badge.green {
  border-color: rgb(4 247 164 / 0.6);
  background: rgb(4 247 164 / 0.18);
  color: #0d110f;
}

.badge.amber {
  border-color: #d6c07b;
  background: #fff5cb;
  color: #5f4700;
}

.badge.red {
  border-color: #ef9b9b;
  background: #fff0f0;
  color: #8f1c1c;
}

.badge.blue {
  border-color: #cfcfec;
  background: #f1f1ff;
  color: #4f46e5;
}

.card-footer {
  display: grid;
  align-items: center;
  align-content: center;
  justify-content: stretch;
  gap: 10px;
  min-height: 100%;
  padding: 22px;
  border-top: 0;
  border-left: 1px solid #e5e5e5;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-footer-strong {
  color: #111111;
}

.empty-state,
.error-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  background: #ffffff;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-align: center;
}

.page-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
}

.detail-page {
  width: 100%;
}

.action-detail {
  display: grid;
  width: 100%;
  gap: clamp(16px, 2vw, 32px);
}

.action-detail-hero {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.action-detail-hero-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px clamp(28px, 5vw, 72px) 42px;
  background: #ffffff;
}

.detail-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.detail-back-link:hover {
  color: #111111;
}

.action-detail-header {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: 36px;
}

.action-detail-header .eyebrow {
  margin-bottom: 16px;
}

.action-detail-heading h1 {
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  padding-bottom: 0.08em;
  font-size: clamp(3.2rem, 6.2vw, 6.8rem);
  font-weight: 850;
  line-height: 0.92;
}

.action-package-name {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.action-detail-description {
  max-width: 760px;
  margin: 18px 0 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  line-height: 1.65;
}

.action-detail-badges {
  margin-top: 24px;
}

.action-detail .badge {
  min-height: 26px;
  border-radius: 0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-detail-release-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 36px 36px;
  overflow: hidden;
  background: #04f7a4;
  color: #0d110f;
}

.action-release-heading p {
  margin: 0;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-release-heading strong {
  display: block;
  margin-top: 14px;
  overflow-wrap: anywhere;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.action-release-meta {
  display: grid;
  margin: 48px 0 0;
  border-top: 1px solid rgb(13 17 15 / 0.22);
}

.action-release-meta > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(13 17 15 / 0.22);
}

.action-release-meta dt,
.action-release-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.action-release-meta dt {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.action-release-meta dd {
  font-weight: 700;
}

.action-detail-body {
  width: 100%;
  min-width: 0;
  overflow: clip;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
}

.action-detail-tabs {
  position: sticky;
  top: 66px;
  z-index: 10;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid #e5e5e5;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(12px);
}

.action-detail-tabs button {
  display: inline-flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  color: #777777;
  cursor: pointer;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  outline: 0;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.action-detail-tabs button:last-child {
  border-right: 0;
}

.action-detail-tabs button:focus-visible {
  box-shadow: inset 0 0 0 2px #111111;
}

.action-detail-tabs button:hover {
  background: #efeeea;
  color: #111111;
}

.action-detail-tabs button.is-active {
  background: #111111;
  color: #ffffff;
}

.action-detail-tabs button > span {
  min-width: 20px;
  padding: 2px 6px;
  background: #e5e5e5;
  color: #777777;
  font-size: 0.64rem;
  line-height: 1.35;
  text-align: center;
}

.action-detail-tabs button.is-active > span {
  background: #04f7a4;
  color: #0d110f;
}

.action-detail-content {
  --detail-content-padding: clamp(20px, 4vw, 48px);
  width: 100%;
  min-width: 0;
  min-height: 420px;
  padding: 0 var(--detail-content-padding) var(--detail-content-padding);
}

.action-detail-content > .detail-section {
  padding-top: var(--detail-content-padding);
}

.action-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(var(--detail-content-padding) * -1) 48px;
  background: #1c1c1c;
}

.action-stat-tile {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 2.5vw, 32px);
  border-right: 1px solid rgb(255 255 255 / 0.1);
  background: #1c1c1c;
}

.action-stat-tile:last-child {
  border-right: 0;
}

.action-stat-tile p {
  margin: 0;
  color: #9ca3af;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.action-stat-tile strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: #04f7a4;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-stat-tile svg {
  color: rgb(255 255 255 / 0.35);
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
  margin-top: 48px;
}

.detail-section-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--detail-content-padding);
}

.detail-section-grid-code {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.detail-section {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.detail-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #111111;
}

.detail-section-eyebrow {
  margin: 0 0 8px;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-section-header h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 850;
}

.detail-section-header p:not(.detail-section-eyebrow) {
  margin: 5px 0 0;
  color: #777777;
  font-size: 0.8rem;
  line-height: 1.5;
}

.detail-section-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #777777;
}

/* A text-styled button (a topology version that opens its document). */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.detail-copy-button {
  min-height: 34px;
  padding: 0 10px;
  border-color: #111111;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.detail-copy-button:hover {
  border-color: #04f7a4;
  background: #04f7a4;
  color: #0d110f;
}

.detail-fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #d8d8d8;
  border-left: 1px solid #d8d8d8;
}

.detail-fact-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  font-size: 0.84rem;
}

.detail-fact-list dt {
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-fact-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #111111;
  font-weight: 750;
}

.detail-fact-list code {
  color: inherit;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
}

.detail-code-block {
  max-height: 360px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid #333333;
  border-radius: 0;
  background: #111111;
  color: #04f7a4;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-code-block-tall {
  max-height: 640px;
}

.detail-empty {
  padding: 24px 16px;
  border: 1px dashed #d0d0d0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  text-align: center;
}

.detail-changelog {
  display: grid;
  gap: 20px;
  margin: 0 0 0 4px;
  padding: 0 0 0 20px;
  border-left: 1px solid #d0d0d0;
  list-style: none;
}

.detail-changelog > li {
  position: relative;
  display: grid;
  gap: 8px;
}

.detail-changelog-dot {
  position: absolute;
  top: 6px;
  left: -25px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #04f7a4;
  box-shadow: 0 0 0 2px #111111;
}

.detail-changelog > li > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.detail-changelog > li > div span,
.detail-changelog ul {
  color: #777777;
  font-size: 0.78rem;
}

.detail-changelog ul {
  margin: 0;
  padding-left: 18px;
}

.detail-version-list {
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
}

.detail-release-grid .detail-fact-list {
  grid-template-columns: 1fr;
}

.action-detail .schema-list {
  background: #fafafa;
}

.site-footer {
  flex: 0 0 auto;
  margin: 0 clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px);
  overflow: hidden;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 390px;
}

.site-footer-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: clamp(30px, 4.5vw, 64px);
}

.site-footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 850;
}

.site-footer-brand svg {
  transition: transform 180ms ease;
}

.site-footer-brand:hover svg {
  transform: rotate(12deg);
}

.site-footer-copy {
  max-width: 800px;
}

.site-footer-eyebrow {
  margin: 0 0 18px;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-copy .site-footer-eyebrow {
  color: #04f7a4;
}

.site-footer-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 5.2vw, 5.3rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.site-footer-copy > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 0.58);
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.75rem, 1vw, 0.88rem);
  line-height: 1.7;
}

.site-footer-directory {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 52px);
  background: #04f7a4;
  color: #0d110f;
}

.site-footer-directory .corner {
  width: 17px;
  height: 17px;
}

.site-footer-directory nav {
  display: grid;
  border-top: 1px solid rgb(13 17 15 / 0.28);
}

.site-footer-directory nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid rgb(13 17 15 / 0.28);
  font-size: 0.85rem;
  font-weight: 800;
  transition:
    background 160ms ease,
    padding 160ms ease;
}

.site-footer-directory nav a:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgb(255 255 255 / 0.3);
}

.site-footer-directory nav a span {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.site-footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 0 clamp(24px, 4vw, 56px);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.5);
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-meta > span:last-child {
  text-align: right;
}

.site-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgb(255 255 255 / 0.72);
}

.studio-page-header {
  overflow: hidden;
  padding: clamp(28px, 6vw, 56px);
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
}

.studio-page-header h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.studio-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
}

.studio-two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-three-grid,
.studio-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.studio-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.studio-card-heading h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
}

.studio-card-heading p {
  margin: 10px 0 0;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
}

.panel-header {
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  color: #777777;
}

.panel-subtitle {
  margin: 0 0 4px;
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0;
  color: #111111;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
}

.panel-title .button {
  pointer-events: none;
}

.panel-body {
  padding: 18px;
}

.stat-panel .panel-body {
  padding: 20px;
}

.registry-stat-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.registry-stat-content strong {
  display: block;
  padding-bottom: 0.08em;
  color: #111111;
  font-size: 2rem;
  line-height: 1.16;
}

.registry-stat-content svg {
  color: #777777;
}

.description-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.description-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 12px;
}

.description-row dt {
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.description-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #111111;
  font-weight: 750;
}

.kv-grid {
  display: grid;
  grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
  gap: 12px 14px;
}

.kv-key {
  color: #777777;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kv-value {
  overflow-wrap: anywhere;
  color: #111111;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.code-block {
  overflow: auto;
  max-height: 560px;
  margin: 0;
  padding: 18px;
  border: 1px solid #333333;
  border-radius: 0;
  background: #111111;
  color: #04f7a4;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.compact-code {
  max-height: 220px;
  margin-bottom: 16px;
}

.schema-list-block {
  display: grid;
  gap: 12px;
}

.schema-list-block + .schema-list-block {
  margin-top: 20px;
}

.schema-list-block h3 {
  margin: 0;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schema-list {
  border: 1px solid #e5e5e5;
}

.schema-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.schema-row:last-child {
  border-bottom: 0;
}

.schema-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.schema-meta > span {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 850;
}

.schema-row strong {
  color: #111111;
}

.schema-row p {
  margin: 0;
  color: #777777;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.contract-description {
  max-width: 72ch;
  margin: 0 0 12px;
  color: #333333;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
}

.detail-section + .detail-section-grid {
  margin-top: 24px;
}

.changelog-list {
  display: grid;
  gap: 16px;
}

.changelog-entry {
  display: grid;
  gap: 8px;
  color: #777777;
}

.changelog-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.changelog-title strong {
  color: #111111;
}

.changelog-title span,
.changelog-entry li {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 20px;
}

.no-margin {
  margin-top: 0;
}

.version-list {
  display: grid;
  gap: 0;
}

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.version-row:last-child {
  border-bottom: 0;
}

.version-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.version-row > div:last-child {
  justify-items: end;
  text-align: right;
}

.version-row strong,
.version-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.version-row strong {
  color: #111111;
}

.version-row span {
  color: #777777;
  font-size: 0.72rem;
}

.muted {
  color: #777777;
}

.small {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgb(4 247 164 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(4 247 164 / 0);
  }
}

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

@media (max-width: 960px) {
  .registry-hero-card,
  .action-detail-hero,
  .detail-layout,
  .studio-main-grid,
  .studio-two-grid,
  .studio-three-grid,
  .studio-stat-grid {
    grid-template-columns: 1fr;
  }

  .registry-hero-card {
    height: auto;
    min-height: 0;
  }

  .registry-hero-side {
    grid-template-rows: auto auto;
  }

  .ascii-panel {
    display: none;
  }

  .hero-bottom-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .mini-feature {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }

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

  .search-field,
  .select {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .page-heading {
    grid-template-columns: 1fr;
  }

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

  .action-stat-tile:nth-child(2) {
    border-right: 0;
  }

  .action-stat-tile:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }

  .action-detail-hero {
    min-height: 0;
  }

  .action-detail-hero-main {
    min-height: 400px;
  }

  .action-detail-release-panel {
    min-height: 280px;
  }

  .detail-section-grid-three,
  .detail-section-grid-code {
    grid-template-columns: 1fr;
  }

  .action-detail-tabs button {
    gap: 7px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

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

  .site-footer-intro {
    min-height: 360px;
  }

  .site-footer-directory {
    min-height: 300px;
  }

  .site-footer-meta {
    grid-template-columns: 1fr 1fr;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-footer-meta > span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .action-detail-tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .action-detail-tabs::-webkit-scrollbar {
    display: none;
  }

  .action-detail-tabs button {
    min-width: 132px;
    flex: 1 0 132px;
    scroll-snap-align: start;
  }

  .detail-fact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 10px 10px 40px;
  }

  .topbar-inner {
    width: min(100%, calc(100vw - 20px));
  }

  .topbar-actions {
    max-width: 52vw;
  }

  .account-pill {
    gap: 6px;
    padding-left: 6px;
  }

  .account-label {
    display: none;
  }

  .account-scope-link {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics-pill {
    display: none;
  }

  .registry-hero-header {
    padding: 18px;
  }

  .registry-hero-copy {
    min-height: 360px;
    padding: 28px 22px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .green-panel {
    padding: 28px 22px;
  }

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

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

  .card-footer {
    min-height: 50px;
    border-top: 1px solid #e5e5e5;
    border-left: 0;
  }

  .panel-heading-row {
    align-items: start;
    flex-direction: column;
  }

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

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

  .scope-profile-panel,
  .scope-profile-main {
    align-items: start;
    flex-direction: column;
  }

  .scope-profile-meta {
    justify-content: flex-start;
  }

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

  .version-row > div:last-child {
    justify-items: start;
    text-align: left;
  }

  .action-detail-hero,
  .action-detail-body {
    border-radius: 8px;
  }

  .action-detail-hero-main {
    min-height: 360px;
    padding: 20px 22px 30px;
  }

  .action-detail-header {
    padding-top: 24px;
  }

  .action-detail-heading h1 {
    font-size: clamp(2.65rem, 15vw, 4.25rem);
    line-height: 0.94;
  }

  .action-detail-description {
    font-size: 0.78rem;
  }

  .action-detail-release-panel {
    min-height: 250px;
    padding: 38px 24px 28px;
  }

  .action-detail-content {
    --detail-content-padding: 16px;
  }

  .action-detail-tabs {
    top: 66px;
  }

  .action-detail-tabs button {
    min-width: 132px;
    min-height: 54px;
    flex: 0 0 auto;
  }

  .action-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 36px;
  }

  .detail-section-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }

  .detail-fact-list {
    grid-template-columns: 1fr;
  }

  .detail-fact-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .detail-section-header {
    flex-direction: column;
  }

  .detail-code-block {
    max-width: 100%;
    padding: 16px;
    font-size: 0.66rem;
  }

  .site-footer {
    margin: 0 10px 10px;
    border-radius: 8px;
  }

  .site-footer-intro {
    min-height: 340px;
    gap: 42px;
    padding: 28px 22px 34px;
  }

  .site-footer-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .site-footer-directory {
    min-height: 280px;
    padding: 34px 22px 28px;
  }

  .site-footer-directory nav a {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 60px;
    font-size: 0.78rem;
  }

  .site-footer-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
  }

  .site-footer-meta > span:last-child {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .topbar .brand > span:last-child {
    display: none;
  }

  .topbar-actions {
    max-width: calc(100vw - 76px);
  }

  .action-detail-hero-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .action-detail-release-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .action-stat-tile {
    padding: 20px 14px;
  }

  .action-stat-tile svg {
    display: none;
  }

  .action-stat-tile strong {
    font-size: 1.35rem;
  }

  .action-detail-tabs button {
    min-width: 122px;
    flex-basis: 122px;
  }
}
