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

* {
  margin: 0;
}

html {
  scroll-padding-top: 5rem;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  /* Opaque light base so the page never relies on canvas background
     propagation (which OS/browser dark modes can suppress → black page). */
  background-color: #e8f0fe;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: #0e1428;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
}

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

button, [role="button"] {
  cursor: pointer;
}

a {
  color: #254a9e;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0f2d52;
}

/* ================================
   Sky Gradient Background
   Soft pastel blue/lavender/peach
   ================================ */

.sky-bg {
  background:
    radial-gradient(
      ellipse 120% 80% at 20% 10%,
      rgba(180, 210, 255, 0.6) 0%,
      transparent 50%
    ),
    radial-gradient(
    ellipse 100% 60% at 80% 20%,
    rgba(200, 180, 255, 0.4) 0%,
    transparent 50%
  ),
    radial-gradient(
    ellipse 80% 50% at 60% 80%,
    rgba(180, 220, 255, 0.3) 0%,
    transparent 50%
  ),
    linear-gradient(
    180deg,
    #e8f0fe 0%,
    #dce6f8 8%,
    #c9d8f5 18%,
    #b8cff5 30%,
    #a8c4f0 42%,
    #c0d4f5 55%,
    #d4e0f8 68%,
    #e0e8fa 78%,
    #ebe4f5 88%,
    #f0e8f0 100%
  );
  /* Opaque fallback under the gradients so no dark canvas can bleed through. */
  background-color: #dbe6fa;
  min-height: 100vh;
  position: relative;
}

/* ================================
   Glass Cloud Shapes (decorative)
   ================================ */

/* Inset + overflow visible so clouds positioned past the viewport edge (e.g. left: -4%)
   and their blur/stroke are not clipped; body overflow-x: hidden prevents horizontal scroll */
.cloud-layer {
  position: fixed;
  top: -8vh;
  left: -5vw;
  width: calc(100% + 10vw);
  height: calc(100vh + 16vh);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  isolation: isolate;
}

/* Mobile: fewer clouds + smaller layer (zoom avoids fighting per-SVG parallax transforms) */
@media (max-width: 768px) {
  .cloud-layer {
    zoom: 0.52;
  }

  .cloud-layer svg.cloud-svg--hide-sm {
    display: none !important;
  }

  .cloud-layer svg.cloud-svg {
    filter: drop-shadow(0 0 0.5px rgba(120, 200, 255, 0.35));
  }
}

@media (max-width: 480px) {
  .cloud-layer {
    zoom: 0.42;
  }
}

.cloud-layer svg.cloud-svg {
  position: absolute;
  display: block;
  overflow: visible;
  /* Avoid will-change: transform — it worsens backdrop/compositing seams when transforms update every frame */
  backface-visibility: hidden;
  transition: filter 0.8s ease;
  /* Smoother curves when scaled (max-width: 100% on svg) + softer silhouette */
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 0.65px rgba(120, 200, 255, 0.45));
}

/* ================================
   Typography
   ================================ */

.font-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

h1, h2, h3, h4 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  line-height: 1.2;
  color: #0e1428;
}

.text-hero {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-section {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.text-subsection {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.text-body {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(18, 26, 47, 0.93);
  line-height: 1.75;
}

.text-body-sm {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(18, 26, 47, 0.78);
  line-height: 1.65;
}

.text-accent {
  color: #254a9e;
}

.text-center {
  text-align: center;
}

/* ================================
   Navigation
   ================================ */

:root {
  --nav-bar-height: 4.5rem;
  /* The site is a light-only design (sky gradient). Declare the scheme so
     browsers in OS/auto dark mode don't force-darken the page to black. */
  color-scheme: light;
  /* Shared keyboard focus ring — reused by every interactive control's
     :focus-visible so keyboard users always get a consistent, visible indicator. */
  --focus-ring: 2px solid rgba(80, 130, 220, 0.7);
  --focus-ring-offset: 2px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  /* Reserve border so .scrolled doesn’t flash a dark seam during backdrop compositing */
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  backface-visibility: hidden;
}

.nav.scrolled,
.nav[data-scroll-effects="false"] {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.65);
  /* Avoid dark drop shadow — it reads as a black hairline while the bar eases in */
  box-shadow: 0 12px 40px rgba(14, 20, 40, 0.05);
}

@media (max-width: 480px) {
  :root {
    --nav-bar-height: 4.35rem;
  }

  .nav {
    padding-inline: 0.85rem;
    gap: 0.5rem;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0e1428;
  min-width: 0;
}

.nav-logo img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
}

.nav-logo-text {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .nav-logo-text {
    display: none;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-btn {
    padding-inline: 0.8rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  min-width: 0;
}

.nav-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: none;
}

.nav-btn-ghost {
  color: rgba(18, 26, 47, 0.88);
  background: transparent;
}

.nav-btn-ghost:hover {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.45);
}

.nav-btn[aria-current="page"],
.nav-btn[data-current="true"] {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backface-visibility: hidden;
}

.nav-btn-glass {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backface-visibility: hidden;
}

.nav-btn-glass:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #0e1428;
}

.nav-coming-soon {
  cursor: default;
  opacity: 0.55;
  position: relative;
}

.nav-coming-soon:hover::after {
  content: "Coming soon";
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: #0e1428;
  border-radius: 6px;
  pointer-events: none;
}

.footer-coming-soon {
  cursor: default;
  opacity: 0.45;
  position: relative;
}

.footer-coming-soon:hover::after {
  content: "Coming soon";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: #0e1428;
  border-radius: 6px;
  pointer-events: none;
}

/* ================================
   Glass Card
   ================================ */

.glass {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backface-visibility: hidden;
}

.glass-strong {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backface-visibility: hidden;
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backface-visibility: hidden;
}

/* ================================
   Content Layer (above clouds)
   ================================ */

.content-layer {
  position: relative;
  z-index: 1;
}

/* ================================
   Layout
   ================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================
   Page Loading Skeleton
   ================================ */

.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 120% 80% at 20% 10%,
      rgba(180, 210, 255, 0.48) 0%,
      transparent 50%
    ),
    radial-gradient(
    ellipse 100% 60% at 80% 20%,
    rgba(200, 180, 255, 0.32) 0%,
    transparent 50%
  ),
    linear-gradient(180deg, #e8f0fe 0%, #dce6f8 48%, #ebe4f5 100%);
}

.page-skeleton--visible {
  display: block;
}

.page-skeleton-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  min-height: var(--nav-bar-height);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.page-skeleton-main {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: calc(var(--nav-bar-height) + 3rem) 1.5rem 3rem;
}

.page-skeleton-logo,
.page-skeleton-pill,
.page-skeleton-avatar,
.page-skeleton-card,
.page-skeleton-block,
.page-skeleton-search,
.page-skeleton-filter-pill,
.page-skeleton-media {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.42) 8%,
    rgba(255, 255, 255, 0.78) 18%,
    rgba(255, 255, 255, 0.42) 33%
  );
  background-size: 220% 100%;
  animation: page-skeleton-shimmer 1.15s linear infinite;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.page-skeleton-logo {
  width: 180px;
  height: 2.2rem;
}

.page-skeleton-pill {
  width: 110px;
  height: 2.35rem;
}

.page-skeleton-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.page-skeleton-pill--nav {
  width: 4.85rem;
  height: 2.5rem;
}

.page-skeleton-pill--account {
  width: 8.75rem;
  height: 2.5rem;
}

.page-skeleton-card {
  border-radius: 24px;
  min-height: 160px;
  box-shadow: 0 18px 50px rgba(20, 34, 70, 0.08);
}

.page-skeleton-card--hero {
  min-height: 280px;
  padding: 2rem;
  margin-bottom: 1rem;
}

.page-skeleton-hero-split {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.page-skeleton-main--home {
  width: min(100%, 1120px);
  padding-top: calc(var(--nav-bar-height) + 2rem);
}

.page-skeleton-main--profile,
.page-skeleton-main--developer,
.page-skeleton-main--hosts,
.page-skeleton-main--account {
  width: min(100%, 880px);
}

.page-skeleton-main--apps {
  width: min(100%, 1120px);
}

.page-skeleton-main--hosts,
.page-skeleton-main--account {
  width: min(100%, 920px);
}

.page-skeleton-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.page-skeleton-row--chips {
  gap: 0.4rem;
  margin-top: 0.75rem;
}

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

.page-skeleton-grid--feature {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-skeleton-grid--profiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.page-skeleton-grid--categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.page-skeleton-grid--ranked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.page-skeleton-grid--screenshots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.page-skeleton-grid--host-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.page-skeleton-grid--resources {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.page-skeleton-block {
  height: 1rem;
  margin-bottom: 0.9rem;
}

.page-skeleton-block--eyebrow {
  width: 9rem;
  height: 0.85rem;
}

.page-skeleton-block--title {
  width: min(60%, 360px);
  height: 2.4rem;
}

.page-skeleton-block--wide {
  width: min(86%, 620px);
  height: 4.2rem;
}

.page-skeleton-block--body {
  width: min(86%, 620px);
}

.page-skeleton-block--short {
  width: min(48%, 340px);
}

.page-skeleton-block--heading {
  width: min(42%, 260px);
  height: 1.5rem;
}

.page-skeleton-block--card-title {
  width: min(78%, 260px);
  height: 1.22rem;
}

.page-skeleton-block--micro {
  width: min(42%, 150px);
  height: 0.72rem;
}

.page-skeleton-block--button {
  width: 9.5rem;
  height: 2.6rem;
  margin-bottom: 0;
}

.page-skeleton-block--button-secondary {
  width: 8rem;
}

.page-skeleton-block--button-small {
  width: 5.4rem;
  height: 2.25rem;
}

.page-skeleton-block--tab {
  width: 8rem;
  height: 2.1rem;
  margin-bottom: 0;
}

.page-skeleton-block--chip {
  width: 4.6rem;
  height: 1.55rem;
  margin-bottom: 0;
}

.page-skeleton-block--chip-short {
  width: 3.2rem;
}

.page-skeleton-block--status {
  width: 5.2rem;
  height: 1.6rem;
  margin-left: auto;
  margin-bottom: 0;
}

.page-skeleton-block--input {
  width: 100%;
  height: 2.9rem;
  border-radius: 16px;
}

.page-skeleton-block--input-tall {
  height: 8rem;
}

.page-skeleton-block--badge {
  width: min(70%, 360px);
  height: 7rem;
  margin: 1.5rem auto 1rem;
  border-radius: 18px;
}

.page-skeleton-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.page-skeleton-main--hosts .page-skeleton-tabs {
  margin-top: 1.25rem;
  margin-bottom: 1.45rem;
}

.page-skeleton-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 2rem;
  text-align: center;
}

.page-skeleton-hero-center--compact {
  padding-top: 0.4rem;
  padding-bottom: 1.35rem;
}

.page-skeleton-hero-home {
  min-height: 36vh;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.page-skeleton-hero-center .page-skeleton-block {
  margin-left: auto;
  margin-right: auto;
}

.page-skeleton-search {
  width: min(100%, 620px);
  height: 3.1rem;
  margin-top: 1.1rem;
  border-radius: 999px;
}

.page-skeleton-browse-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(100%, 820px);
  margin-top: 1.1rem;
}

.page-skeleton-browse-controls .page-skeleton-search {
  flex: 1 1 330px;
  margin-top: 0;
}

.page-skeleton-filter-pill {
  width: 18.5rem;
  height: 3.1rem;
}

.page-skeleton-top-link {
  margin-bottom: 1rem;
}

.page-skeleton-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.page-skeleton-section-heading > span {
  display: block;
  min-width: 0;
  flex: 1;
}

.page-skeleton-home-visual {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  margin: 0 auto 1.8rem;
}

.page-skeleton-card--orbit {
  width: min(620px, 92vw);
  min-height: clamp(22rem, 40vw, 28rem);
  border-radius: 50%;
  position: relative;
}

.page-skeleton-card--orbit::before,
.page-skeleton-card--orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
}

.page-skeleton-card--orbit::before {
  width: 46%;
}

.page-skeleton-card--orbit::after {
  width: 76%;
}

.page-skeleton-app-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.page-skeleton-card--spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.72fr);
  gap: 1.1rem;
  min-height: 19rem;
  padding: 1.35rem;
}

.page-skeleton-spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.page-skeleton-spotlight-copy .page-skeleton-block--button {
  margin-top: auto;
}

.page-skeleton-media {
  min-height: 14rem;
  border-radius: 18px;
}

.page-skeleton-promo-stack {
  display: grid;
  gap: 1rem;
}

.page-skeleton-card--promo,
.page-skeleton-card--app {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
}

.page-skeleton-card--promo {
  min-height: 9rem;
}

.page-skeleton-card--app {
  min-height: 13rem;
}

.page-skeleton-card-lines {
  display: block;
  flex: 1;
  min-width: 0;
}

.page-skeleton-avatar--app {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
}

.page-skeleton-card--category {
  min-height: 6.2rem;
  position: relative;
}

.page-skeleton-card--category::before,
.page-skeleton-card--ranked::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.page-skeleton-card--category::after {
  content: "";
  position: absolute;
  left: 4.4rem;
  right: 1rem;
  top: 1.45rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.page-skeleton-card--ranked {
  min-height: 4.4rem;
  position: relative;
  border-radius: 18px;
}

.page-skeleton-card--ranked::before {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
}

.page-skeleton-card--host {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  min-height: 12rem;
  padding: 1.05rem;
}

.page-skeleton-host-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.page-skeleton-avatar--host {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
}

.page-skeleton-card--cloud {
  min-height: 300px;
  border-radius: 48% 52% 46% 54%;
}

.page-skeleton-card--profile {
  min-height: 210px;
  position: relative;
}

.page-skeleton-card--profile::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.page-skeleton-card--screenshot {
  min-height: 180px;
}

.page-skeleton-card--reviews {
  min-height: 220px;
}

.page-skeleton-card--detail {
  min-height: 12rem;
}

.page-skeleton-card--details {
  min-height: 8rem;
}

.page-skeleton-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.page-skeleton-profile-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  min-height: 220px;
  padding: 1.5rem;
}

.page-skeleton-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 28px;
  flex: 0 0 auto;
}

.page-skeleton-profile-lines {
  flex: 1;
}

.page-skeleton-card--actions {
  width: 10rem;
  min-height: 9rem;
  flex: 0 0 auto;
  border-radius: 18px;
}

.page-skeleton-account-heading {
  margin-bottom: 1.5rem;
}

.page-skeleton-card--signin,
.page-skeleton-card--form {
  min-height: 18rem;
  padding: 1.75rem;
}

.page-skeleton-card--form {
  display: grid;
  gap: 0.75rem;
}

.page-skeleton-card--account-profile {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 12rem;
  padding: 1.5rem;
}

.page-skeleton-avatar--round {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.page-skeleton-card--account {
  min-height: 8.5rem;
  margin-top: 1rem;
  padding: 1.5rem;
}

.page-skeleton-card--resource {
  min-height: 340px;
  padding: 1.75rem;
  text-align: center;
}

.page-skeleton-card--resource-small {
  min-height: 140px;
}

@keyframes page-skeleton-shimmer {
  to {
    background-position-x: -220%;
  }
}

@media (max-width: 720px) {
  .page-skeleton-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-skeleton-hero-split {
    min-height: 420px;
    grid-template-columns: 1fr;
  }

  .page-skeleton-nav-actions {
    gap: 0.35rem;
  }

  .page-skeleton-pill--nav {
    width: 3.9rem;
  }

  .page-skeleton-pill--account {
    width: 5.8rem;
  }

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

  .page-skeleton-card--orbit {
    min-height: 20rem;
  }

  .page-skeleton-app-spotlight,
  .page-skeleton-card--spotlight,
  .page-skeleton-browse-controls {
    grid-template-columns: 1fr;
  }

  .page-skeleton-app-spotlight,
  .page-skeleton-browse-controls {
    display: grid;
  }

  .page-skeleton-filter-pill {
    width: 100%;
  }

  .page-skeleton-profile-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-skeleton-avatar {
    width: 4.5rem;
    height: 4.5rem;
  }

  .page-skeleton-grid > .page-skeleton-card:nth-child(n+2),
  .page-skeleton-promo-stack > .page-skeleton-card:nth-child(n+2) {
    display: none;
  }

  .page-skeleton-card--actions {
    display: none;
  }
}

.section {
  padding: 3.5rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

/* ================================
   Hero
   ================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-bar-height) + 1rem) 1.5rem 4rem;
}

.hero-eyebrow {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.68);
  margin-bottom: 1rem;
}

.hero-subhead {
  max-width: 580px;
  margin: 1.5rem auto 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.62;
  color: #0e1428;
}

/* Sit above mobile browser bottom chrome (e.g. Safari address bar tools) */
@media (max-width: 768px) {
  .scroll-indicator {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ================================
   What Is Atmosphere
   ================================ */

.what-is-bluesky-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  align-items: center;
  justify-content: center;
  color: #1185fe;
  vertical-align: -0.16em;
}

.what-is-bluesky-icon-svg {
  width: 100%;
  height: 100%;
}

/* ================================
   Lottie Section
   ================================ */

.lottie-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.75rem, 5vw, 3.75rem);
}

.lottie-section-cta {
  margin-top: clamp(6rem, 9.5vw, 7.25rem);
}

.atmosphere-map {
  position: relative;
  width: min(620px, 92vw);
  min-height: clamp(27rem, 47vw, 34rem);
  overflow: visible;
}

.app-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(100%, 29rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.app-orbit::before,
.app-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 30, 66, 0.12);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.app-orbit::before {
  width: 56%;
  opacity: 0.62;
}

.app-orbit::after {
  width: 87%;
  opacity: 0.58;
}

.app-ghost-cloud {
  position: absolute;
  inset: -2%;
  z-index: 3;
  isolation: isolate;
  pointer-events: none;
}

.app-ghost-cloud::before,
.app-ghost-cloud::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 30, 66, 0.12);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.app-ghost-cloud::before {
  width: 108%;
  opacity: 0.72;
}

.app-ghost-cloud::after {
  display: block;
  width: 124%;
  opacity: 0.5;
}

.ghost-app {
  --ghost-left: 50%;
  --ghost-top: 50%;
  --ghost-size: clamp(0.62rem, 1.24vw, 0.88rem);
  --ghost-blur: 0.9px;
  --ghost-opacity: 0.4;
  --ghost-hue: 0deg;
  --ghost-tilt: 0deg;
  --ghost-drift-x: 0.06rem;
  --ghost-drift-y: 0.14rem;
  --ghost-speed: 10.8s;
  --ghost-delay: -0.6s;
  --ghost-bg: linear-gradient(135deg, #42c9ff, #fb4ea3 58%, #e7ff53);
  --ghost-border-color: rgba(23, 30, 66, 0.16);
  --ghost-radius: 30%;
  position: absolute;
  left: var(--ghost-left);
  top: var(--ghost-top);
  z-index: 1;
  width: var(--ghost-size);
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ghost-border-color);
  border-radius: var(--ghost-radius);
  background: var(--ghost-bg);
  box-shadow:
    0 0.58rem 1.9rem rgba(23, 30, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  filter: blur(var(--ghost-blur)) saturate(1.1) hue-rotate(var(--ghost-hue));
  opacity: var(--ghost-opacity);
  transform: translate(-50%, -50%) rotate(var(--ghost-tilt));
  animation: ghostConstellationFloat var(--ghost-speed) ease-in-out infinite;
  animation-delay: var(--ghost-delay);
}

.ghost-app:nth-child(n+25) {
  --ghost-size: clamp(0.42rem, 0.82vw, 0.58rem);
  --ghost-blur: 0.95px;
  --ghost-opacity: 0.34;
  --ghost-drift-x: 0.05rem;
  --ghost-drift-y: 0.11rem;
}

.ghost-app:nth-child(4n+1) {
  --ghost-drift-x: -0.07rem;
  --ghost-drift-y: 0.16rem;
  --ghost-speed: 11.4s;
  --ghost-delay: -1.8s;
}

.ghost-app:nth-child(4n+2) {
  --ghost-drift-x: 0.08rem;
  --ghost-drift-y: 0.12rem;
  --ghost-speed: 10.1s;
  --ghost-delay: -3.2s;
}

.ghost-app:nth-child(4n+3) {
  --ghost-drift-x: 0.04rem;
  --ghost-drift-y: 0.18rem;
  --ghost-speed: 12.2s;
  --ghost-delay: -4.4s;
}

.ghost-app:nth-child(4n) {
  --ghost-drift-x: -0.05rem;
  --ghost-drift-y: 0.13rem;
  --ghost-speed: 10.8s;
  --ghost-delay: -2.5s;
}

.ghost-app::before,
.ghost-app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  display: block;
  border: 0;
  box-shadow: none;
}

.ghost-app:nth-child(6n+1) {
  --ghost-bg: #ff6657;
  --ghost-border-color: rgba(23, 30, 66, 0.13);
  --ghost-radius: 34%;
}

.ghost-app:nth-child(6n+1)::before {
  left: 24%;
  top: 22%;
  width: 12%;
  height: 56%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    calc(var(--ghost-size) * 0.22) 0 0 rgba(255, 255, 255, 0.88),
    calc(var(--ghost-size) * 0.44) 0 0 rgba(255, 255, 255, 0.88);
}

.ghost-app:nth-child(6n+1)::after {
  display: none;
}

.ghost-app:nth-child(6n+2) {
  --ghost-bg: #10131f;
  --ghost-border-color: rgba(255, 255, 255, 0.2);
  --ghost-radius: 26%;
}

.ghost-app:nth-child(6n+2)::before {
  inset: 18%;
  border: calc(var(--ghost-size) * 0.075) solid rgba(91, 157, 255, 0.86);
  border-radius: 50%;
  background: transparent;
}

.ghost-app:nth-child(6n+2)::after {
  left: 42%;
  top: 42%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: rgba(91, 157, 255, 0.92);
  transform: none;
}

.ghost-app:nth-child(6n+3) {
  --ghost-bg: #e7ff53;
  --ghost-border-color: rgba(72, 118, 42, 0.24);
  --ghost-radius: 28%;
}

.ghost-app:nth-child(6n+3)::before {
  left: 22%;
  top: 18%;
  width: 58%;
  height: 54%;
  border-radius: 64% 48% 56% 42%;
  background: rgba(72, 118, 42, 0.78);
  transform: rotate(-30deg);
}

.ghost-app:nth-child(6n+3)::after {
  left: 27%;
  top: 49%;
  width: 47%;
  height: 9%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-30deg);
}

.ghost-app:nth-child(6n+4) {
  --ghost-bg: #5a48f3;
  --ghost-border-color: rgba(255, 255, 255, 0.18);
  --ghost-radius: 50% 42% 46% 34%;
}

.ghost-app:nth-child(6n+4)::before {
  left: 31%;
  top: 31%;
  width: 38%;
  height: 38%;
  border-radius: 18%;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(45deg);
}

.ghost-app:nth-child(6n+4)::after {
  left: 54%;
  top: 20%;
  width: 13%;
  height: 13%;
  border-radius: 50%;
  background: rgba(231, 255, 83, 0.9);
  transform: none;
}

.ghost-app:nth-child(6n+5) {
  --ghost-bg: #fff8df;
  --ghost-border-color: rgba(23, 30, 66, 0.18);
  --ghost-radius: 19%;
}

.ghost-app:nth-child(6n+5)::before {
  left: 19%;
  top: 26%;
  width: 62%;
  height: 16%;
  border-radius: 999px;
  background: rgba(23, 30, 66, 0.78);
}

.ghost-app:nth-child(6n+5)::after {
  left: 24%;
  top: 56%;
  width: 52%;
  height: 18%;
  border-radius: 999px;
  background: rgba(251, 78, 163, 0.72);
  transform: none;
}

.ghost-app:nth-child(6n) {
  --ghost-bg: #42c9ff;
  --ghost-border-color: rgba(23, 30, 66, 0.12);
  --ghost-radius: 42%;
}

.ghost-app:nth-child(6n)::before {
  left: 19%;
  top: 25%;
  width: 27%;
  height: 32%;
  border-radius: 62% 46% 62% 46%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: calc(var(--ghost-size) * 0.32) 0 0 rgba(255, 255, 255, 0.88);
}

.ghost-app:nth-child(6n)::after {
  left: 36%;
  top: 57%;
  width: 28%;
  height: 19%;
  border-radius: 50%;
  background: rgba(23, 30, 66, 0.34);
  transform: none;
}

.ghost-app:nth-child(1) {
  --ghost-left: 50%;
  --ghost-top: -3.5%;
  --ghost-hue: 58deg;
  --ghost-tilt: 8deg;
}

.ghost-app:nth-child(2) {
  --ghost-left: 63.8%;
  --ghost-top: -1.7%;
  --ghost-hue: 116deg;
  --ghost-tilt: 0deg;
}

.ghost-app:nth-child(3) {
  --ghost-left: 76.8%;
  --ghost-top: 3.7%;
  --ghost-hue: 174deg;
  --ghost-tilt: -8deg;
}

.ghost-app:nth-child(4) {
  --ghost-left: 87.8%;
  --ghost-top: 12.2%;
  --ghost-hue: 232deg;
  --ghost-tilt: 15deg;
}

.ghost-app:nth-child(5) {
  --ghost-left: 96.3%;
  --ghost-top: 23.3%;
  --ghost-hue: 290deg;
  --ghost-tilt: 7deg;
}

.ghost-app:nth-child(6) {
  --ghost-left: 101.7%;
  --ghost-top: 36.2%;
  --ghost-hue: 348deg;
  --ghost-tilt: -1deg;
}

.ghost-app:nth-child(7) {
  --ghost-left: 103.5%;
  --ghost-top: 50%;
  --ghost-hue: 46deg;
  --ghost-tilt: -9deg;
}

.ghost-app:nth-child(8) {
  --ghost-left: 101.7%;
  --ghost-top: 63.8%;
  --ghost-hue: 104deg;
  --ghost-tilt: 14deg;
}

.ghost-app:nth-child(9) {
  --ghost-left: 96.3%;
  --ghost-top: 76.8%;
  --ghost-hue: 162deg;
  --ghost-tilt: 6deg;
}

.ghost-app:nth-child(10) {
  --ghost-left: 87.8%;
  --ghost-top: 87.8%;
  --ghost-hue: 220deg;
  --ghost-tilt: -2deg;
}

.ghost-app:nth-child(11) {
  --ghost-left: 76.8%;
  --ghost-top: 96.3%;
  --ghost-hue: 278deg;
  --ghost-tilt: -10deg;
}

.ghost-app:nth-child(12) {
  --ghost-left: 63.8%;
  --ghost-top: 101.7%;
  --ghost-hue: 336deg;
  --ghost-tilt: 13deg;
}

.ghost-app:nth-child(13) {
  --ghost-left: 50%;
  --ghost-top: 103.5%;
  --ghost-hue: 34deg;
  --ghost-tilt: 5deg;
}

.ghost-app:nth-child(14) {
  --ghost-left: 36.2%;
  --ghost-top: 101.7%;
  --ghost-hue: 92deg;
  --ghost-tilt: -3deg;
}

.ghost-app:nth-child(15) {
  --ghost-left: 23.3%;
  --ghost-top: 96.3%;
  --ghost-hue: 150deg;
  --ghost-tilt: -11deg;
}

.ghost-app:nth-child(16) {
  --ghost-left: 12.2%;
  --ghost-top: 87.8%;
  --ghost-hue: 208deg;
  --ghost-tilt: 12deg;
}

.ghost-app:nth-child(17) {
  --ghost-left: 3.7%;
  --ghost-top: 76.8%;
  --ghost-hue: 266deg;
  --ghost-tilt: 4deg;
}

.ghost-app:nth-child(18) {
  --ghost-left: -1.7%;
  --ghost-top: 63.8%;
  --ghost-hue: 324deg;
  --ghost-tilt: -4deg;
}

.ghost-app:nth-child(19) {
  --ghost-left: -3.5%;
  --ghost-top: 50%;
  --ghost-hue: 22deg;
  --ghost-tilt: -12deg;
}

.ghost-app:nth-child(20) {
  --ghost-left: -1.7%;
  --ghost-top: 36.2%;
  --ghost-hue: 80deg;
  --ghost-tilt: 11deg;
}

.ghost-app:nth-child(21) {
  --ghost-left: 3.7%;
  --ghost-top: 23.2%;
  --ghost-hue: 138deg;
  --ghost-tilt: 3deg;
}

.ghost-app:nth-child(22) {
  --ghost-left: 12.2%;
  --ghost-top: 12.2%;
  --ghost-hue: 196deg;
  --ghost-tilt: -5deg;
}

.ghost-app:nth-child(23) {
  --ghost-left: 23.2%;
  --ghost-top: 3.7%;
  --ghost-hue: 254deg;
  --ghost-tilt: -13deg;
}

.ghost-app:nth-child(24) {
  --ghost-left: 36.2%;
  --ghost-top: -1.7%;
  --ghost-hue: 312deg;
  --ghost-tilt: 10deg;
}

.ghost-app:nth-child(25) {
  --ghost-left: 50%;
  --ghost-top: -11.8%;
  --ghost-hue: 352deg;
  --ghost-tilt: 8deg;
}

.ghost-app:nth-child(26) {
  --ghost-left: 60.7%;
  --ghost-top: -10.9%;
  --ghost-hue: 41deg;
  --ghost-tilt: 0deg;
}

.ghost-app:nth-child(27) {
  --ghost-left: 71.1%;
  --ghost-top: -8.1%;
  --ghost-hue: 90deg;
  --ghost-tilt: -8deg;
}

.ghost-app:nth-child(28) {
  --ghost-left: 80.9%;
  --ghost-top: -3.5%;
  --ghost-hue: 139deg;
  --ghost-tilt: 15deg;
}

.ghost-app:nth-child(29) {
  --ghost-left: 89.7%;
  --ghost-top: 2.7%;
  --ghost-hue: 188deg;
  --ghost-tilt: 7deg;
}

.ghost-app:nth-child(30) {
  --ghost-left: 97.3%;
  --ghost-top: 10.3%;
  --ghost-hue: 237deg;
  --ghost-tilt: -1deg;
}

.ghost-app:nth-child(31) {
  --ghost-left: 103.5%;
  --ghost-top: 19.1%;
  --ghost-hue: 286deg;
  --ghost-tilt: -9deg;
}

.ghost-app:nth-child(32) {
  --ghost-left: 108.1%;
  --ghost-top: 28.9%;
  --ghost-hue: 335deg;
  --ghost-tilt: 14deg;
}

.ghost-app:nth-child(33) {
  --ghost-left: 110.9%;
  --ghost-top: 39.3%;
  --ghost-hue: 24deg;
  --ghost-tilt: 6deg;
}

.ghost-app:nth-child(34) {
  --ghost-left: 111.8%;
  --ghost-top: 50%;
  --ghost-hue: 73deg;
  --ghost-tilt: -2deg;
}

.ghost-app:nth-child(35) {
  --ghost-left: 110.9%;
  --ghost-top: 60.7%;
  --ghost-hue: 122deg;
  --ghost-tilt: -10deg;
}

.ghost-app:nth-child(36) {
  --ghost-left: 108.1%;
  --ghost-top: 71.1%;
  --ghost-hue: 171deg;
  --ghost-tilt: 13deg;
}

.ghost-app:nth-child(37) {
  --ghost-left: 103.5%;
  --ghost-top: 80.9%;
  --ghost-hue: 220deg;
  --ghost-tilt: 5deg;
}

.ghost-app:nth-child(38) {
  --ghost-left: 97.3%;
  --ghost-top: 89.7%;
  --ghost-hue: 269deg;
  --ghost-tilt: -3deg;
}

.ghost-app:nth-child(39) {
  --ghost-left: 89.7%;
  --ghost-top: 97.3%;
  --ghost-hue: 318deg;
  --ghost-tilt: -11deg;
}

.ghost-app:nth-child(40) {
  --ghost-left: 80.9%;
  --ghost-top: 103.5%;
  --ghost-hue: 7deg;
  --ghost-tilt: 12deg;
}

.ghost-app:nth-child(41) {
  --ghost-left: 71.1%;
  --ghost-top: 108.1%;
  --ghost-hue: 56deg;
  --ghost-tilt: 4deg;
}

.ghost-app:nth-child(42) {
  --ghost-left: 60.7%;
  --ghost-top: 110.9%;
  --ghost-hue: 105deg;
  --ghost-tilt: -4deg;
}

.ghost-app:nth-child(43) {
  --ghost-left: 50%;
  --ghost-top: 111.8%;
  --ghost-hue: 154deg;
  --ghost-tilt: -12deg;
}

.ghost-app:nth-child(44) {
  --ghost-left: 39.3%;
  --ghost-top: 110.9%;
  --ghost-hue: 203deg;
  --ghost-tilt: 11deg;
}

.ghost-app:nth-child(45) {
  --ghost-left: 28.9%;
  --ghost-top: 108.1%;
  --ghost-hue: 252deg;
  --ghost-tilt: 3deg;
}

.ghost-app:nth-child(46) {
  --ghost-left: 19.1%;
  --ghost-top: 103.5%;
  --ghost-hue: 301deg;
  --ghost-tilt: -5deg;
}

.ghost-app:nth-child(47) {
  --ghost-left: 10.3%;
  --ghost-top: 97.3%;
  --ghost-hue: 350deg;
  --ghost-tilt: -13deg;
}

.ghost-app:nth-child(48) {
  --ghost-left: 2.7%;
  --ghost-top: 89.7%;
  --ghost-hue: 39deg;
  --ghost-tilt: 10deg;
}

.ghost-app:nth-child(49) {
  --ghost-left: -3.5%;
  --ghost-top: 80.9%;
  --ghost-hue: 88deg;
  --ghost-tilt: 8deg;
}

.ghost-app:nth-child(50) {
  --ghost-left: -8.1%;
  --ghost-top: 71.1%;
  --ghost-hue: 137deg;
  --ghost-tilt: 0deg;
}

.ghost-app:nth-child(51) {
  --ghost-left: -10.9%;
  --ghost-top: 60.7%;
  --ghost-hue: 186deg;
  --ghost-tilt: -8deg;
}

.ghost-app:nth-child(52) {
  --ghost-left: -11.8%;
  --ghost-top: 50%;
  --ghost-hue: 235deg;
  --ghost-tilt: 15deg;
}

.ghost-app:nth-child(53) {
  --ghost-left: -10.9%;
  --ghost-top: 39.3%;
  --ghost-hue: 284deg;
  --ghost-tilt: 7deg;
}

.ghost-app:nth-child(54) {
  --ghost-left: -8.1%;
  --ghost-top: 28.9%;
  --ghost-hue: 333deg;
  --ghost-tilt: -1deg;
}

.ghost-app:nth-child(55) {
  --ghost-left: -3.5%;
  --ghost-top: 19.1%;
  --ghost-hue: 22deg;
  --ghost-tilt: -9deg;
}

.ghost-app:nth-child(56) {
  --ghost-left: 2.7%;
  --ghost-top: 10.3%;
  --ghost-hue: 71deg;
  --ghost-tilt: 14deg;
}

.ghost-app:nth-child(57) {
  --ghost-left: 10.3%;
  --ghost-top: 2.7%;
  --ghost-hue: 120deg;
  --ghost-tilt: 6deg;
}

.ghost-app:nth-child(58) {
  --ghost-left: 19.1%;
  --ghost-top: -3.5%;
  --ghost-hue: 169deg;
  --ghost-tilt: -2deg;
}

.ghost-app:nth-child(59) {
  --ghost-left: 28.9%;
  --ghost-top: -8.1%;
  --ghost-hue: 218deg;
  --ghost-tilt: -10deg;
}

.ghost-app:nth-child(60) {
  --ghost-left: 39.3%;
  --ghost-top: -10.9%;
  --ghost-hue: 267deg;
  --ghost-tilt: 13deg;
}

.atmosphere-icon-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: clamp(4.6rem, 15%, 6.2rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #0e1428;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.atmosphere-icon-core::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 6%;
  z-index: 2;
  background: currentColor;
  -webkit-mask: url("/union.svg") center / contain no-repeat;
  mask: url("/union.svg") center / contain no-repeat;
}

.atmosphere-icon-core img {
  display: none;
}

.app-icon {
  --app-x: -50%;
  --app-y: -50%;
  --app-size: clamp(1.65rem, 4.1vw, 2.65rem);
  --app-rotate: 0deg;
  --app-drift-x: 0.18rem;
  --app-drift-y: 0.55rem;
  position: absolute;
  left: var(--app-left, 50%);
  top: var(--app-top, 50%);
  z-index: 4;
  width: var(--app-size);
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(18, 26, 47, 0.14);
  border-radius: clamp(0.9rem, 2.3vw, 1.55rem);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0.7rem 2.4rem rgba(18, 26, 47, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translate3d(var(--app-x, 0), var(--app-y, 0), 0)
    rotate(var(--app-rotate, 0deg));
  animation: appConstellationFloat var(--app-speed, 7.6s) ease-in-out infinite;
  animation-delay: var(--app-delay, 0s);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inner-ring {
  --app-size: clamp(1.95rem, 4.45vw, 2.9rem);
  z-index: 5;
}

.outer-ring {
  --app-size: clamp(1.15rem, 2.75vw, 1.8rem);
  z-index: 4;
}

.app-bluesky {
  --app-left: 78%;
  --app-top: 50%;
  --app-rotate: -4deg;
  --app-delay: -1.1s;
}

.app-spark {
  --app-left: 69.8%;
  --app-top: 30.2%;
  --app-size: clamp(2.55rem, 5.9vw, 3.75rem);
  --app-rotate: 5deg;
  --app-delay: -2.3s;
  --app-drift-x: -0.22rem;
}

.app-margin {
  --app-left: 90.2%;
  --app-top: 33.3%;
  --app-rotate: 6deg;
  --app-delay: -4.4s;
}

.app-mu {
  --app-left: 30.2%;
  --app-top: 30.2%;
  --app-rotate: -7deg;
  --app-delay: -0.9s;
  --app-drift-x: -0.18rem;
}

.app-blacksky {
  --app-left: 69.8%;
  --app-top: 69.8%;
  --app-rotate: 3deg;
  --app-delay: -5.1s;
}

.app-stream-place {
  --app-left: 50%;
  --app-top: 22%;
  --app-size: clamp(2.45rem, 5.65vw, 3.65rem);
  --app-rotate: -3deg;
  --app-delay: -2.7s;
  --app-drift-y: 0.36rem;
}

.app-popfeed {
  --app-left: 50%;
  --app-top: 93.5%;
  --app-rotate: 3deg;
  --app-delay: -3s;
}

.app-offprint {
  --app-left: 33.3%;
  --app-top: 90.2%;
  --app-rotate: -5deg;
  --app-delay: -1.7s;
  --app-drift-y: 0.42rem;
}

.app-leaflet {
  --app-left: 22%;
  --app-top: 50%;
  --app-rotate: 2deg;
  --app-delay: -0.4s;
}

.app-germ {
  --app-left: 80.8%;
  --app-top: 80.8%;
  --app-rotate: -2deg;
  --app-delay: -2.8s;
}

.app-anisota {
  --app-left: 80.8%;
  --app-top: 19.2%;
  --app-rotate: -5deg;
  --app-delay: -3.9s;
}

.app-tangled {
  --app-left: 50%;
  --app-top: 78%;
  --app-rotate: 5deg;
  --app-delay: -1.4s;
  --app-drift-x: -0.18rem;
}

.app-semble {
  --app-left: 9.8%;
  --app-top: 66.7%;
  --app-rotate: 1deg;
  --app-delay: -4.9s;
}

.app-beacon-bits {
  --app-left: 50%;
  --app-top: 6.5%;
  --app-rotate: 4deg;
  --app-delay: -3.2s;
  --app-drift-x: -0.16rem;
}

.app-plyr {
  --app-left: 30.2%;
  --app-top: 69.8%;
  --app-rotate: -7deg;
  --app-delay: -3.6s;
}

.app-pckt {
  --app-left: 93.5%;
  --app-top: 50%;
  --app-rotate: 7deg;
  --app-delay: -1.9s;
}

.app-grain {
  --app-left: 66.7%;
  --app-top: 9.8%;
  --app-rotate: -3deg;
  --app-delay: -5.6s;
}

.app-northsky {
  --app-left: 19.2%;
  --app-top: 19.2%;
  --app-rotate: 4deg;
  --app-delay: -2.1s;
}

.app-cartridge {
  --app-left: 90.2%;
  --app-top: 66.7%;
  --app-rotate: -6deg;
  --app-delay: -3.4s;
}

.app-smoke-signal {
  --app-left: 66.7%;
  --app-top: 90.2%;
  --app-rotate: 5deg;
  --app-delay: -4.2s;
}

.app-blento {
  --app-left: 19.2%;
  --app-top: 80.8%;
  --app-rotate: -3deg;
  --app-delay: -0.7s;
}

.app-surf {
  --app-left: 6.5%;
  --app-top: 50%;
  --app-rotate: 3deg;
  --app-delay: -5.2s;
}

.app-sifa {
  --app-left: 33.3%;
  --app-top: 9.8%;
  --app-rotate: -2deg;
  --app-delay: -1.5s;
}

.app-sill {
  --app-left: 9.8%;
  --app-top: 33.3%;
  --app-rotate: 5deg;
  --app-delay: -2.9s;
}

.atmosphere-map .app-icon {
  --app-drift-x: 0.1rem;
  --app-drift-y: 0.26rem;
}

.edge-icon {
  z-index: 4;
  opacity: 1;
  filter: none;
}

@keyframes appConstellationFloat {
  0%,
  100% {
    transform: translate3d(var(--app-x, 0), var(--app-y, 0), 0)
      rotate(var(--app-rotate, 0deg));
  }

  50% {
    transform: translate3d(
      calc(var(--app-x, 0) + var(--app-drift-x, 0.2rem)),
      calc(var(--app-y, 0) - var(--app-drift-y, 0.55rem)),
      0
    ) rotate(calc(var(--app-rotate, 0deg) * -1));
  }
}

@keyframes ghostConstellationFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--ghost-tilt));
  }

  50% {
    transform: translate(-50%, -50%)
      translate3d(
        var(--ghost-drift-x),
        calc(var(--ghost-drift-y) * -1),
        0
      ) rotate(calc(var(--ghost-tilt) * -1));
  }
}

@keyframes hostHandleLabelWordCycle {
  0% {
    opacity: 0;
    transform: translateY(0.32rem);
    filter: blur(0.4px);
  }

  1.25%,
  15.15% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  16.4%,
  100% {
    opacity: 0;
    transform: translateY(-0.32rem);
    filter: blur(0.4px);
  }
}

@keyframes hostHandleFrameCycle {
  0%,
  16.5% {
    opacity: 1;
  }

  16.67%,
  100% {
    opacity: 0;
  }
}

@keyframes hostHandleSuffixClipCycle {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  5% {
    clip-path: inset(0 0 0 0);
  }

  10.8% {
    clip-path: inset(0 0 0 0);
  }

  15%,
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes hostHandleCursorPosition {
  0% {
    left: 0;
  }

  5%,
  10.8% {
    left: 100%;
  }

  15%,
  100% {
    left: 0;
  }
}

@keyframes hostHandleCursor {
  50% {
    opacity: 0;
  }
}

@keyframes hostHandleSheen {
  0%,
  42% {
    transform: translateX(-64%);
  }

  66%,
  100% {
    transform: translateX(64%);
  }
}

@keyframes personalDomainOldHandle {
  0%,
  42% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  46%,
  100% {
    opacity: 0;
    transform: translateY(-0.28rem);
    filter: blur(0.5px);
  }
}

@keyframes personalDomainNewHandle {
  0%,
  50% {
    opacity: 0;
    transform: translateY(0.28rem);
    filter: blur(0.5px);
  }

  55%,
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes personalDomainArrow {
  0%,
  38% {
    transform: translateX(-0.1rem);
    opacity: 0.62;
  }

  55%,
  100% {
    transform: translateX(0.1rem);
    opacity: 1;
  }
}

@keyframes personalDomainGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-0.65rem, 0.6rem, 0) scale(1.08);
  }
}

@media (max-width: 768px) {
  .atmosphere-map {
    min-height: 32rem;
  }

  .atmosphere-icon-core {
    width: min(7rem, 25vw);
  }

  .app-icon {
    --app-size: clamp(2rem, 7vw, 3.2rem);
  }

  .inner-ring {
    --app-size: clamp(2.35rem, 7.8vw, 3.55rem);
  }

  .outer-ring {
    --app-size: clamp(1.55rem, 5.4vw, 2.45rem);
  }

  .app-spark {
    --app-size: clamp(2.55rem, 8.2vw, 3.75rem);
  }
}

@media (max-width: 520px) {
  .atmosphere-map {
    min-height: 24rem;
  }

  .atmosphere-icon-core {
    width: min(5rem, 24vw);
  }

  .app-icon {
    --app-size: clamp(1.85rem, 10.5vw, 2.75rem);
    border-radius: 0.86rem;
  }

  .app-ghost-cloud {
    display: none;
  }

  .lottie-section-cta {
    margin-top: 2.25rem;
  }

  .inner-ring {
    --app-size: clamp(1.95rem, 11vw, 2.85rem);
  }

  .outer-ring {
    --app-size: clamp(0.9rem, 5.4vw, 1.35rem);
    border-radius: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon,
  .ghost-app,
  .host-handle-label-word,
  .host-handle-demo::before,
  .personal-domain-demo-glow,
  .personal-domain-demo-handle--old,
  .personal-domain-demo-handle--new {
    animation: none;
  }

  .personal-domain-demo-handle--old {
    display: none;
  }

  .personal-domain-demo-handle--new {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

/* ================================
   Feature Grid
   ================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Verified host/app relationships
   ================================ */

.directory-relationship-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.directory-relationship-entry h2 {
  margin: 0.2rem 0 0.45rem;
}

.directory-relationship-entry .directory-register-button {
  flex: 0 0 auto;
}

.owner-app-relationship-entry {
  margin-top: 1rem;
  padding: 1.25rem;
}

.relationship-manage-container,
.relationship-confirm-container {
  max-width: 760px;
}

.relationship-list,
.relationship-create {
  margin-top: 1.5rem;
}

.relationship-list h2,
.relationship-create h2 {
  margin-bottom: 0.8rem;
}

.relationship-row {
  align-items: center;
  border-top: 1px solid rgba(18, 26, 47, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.relationship-row p {
  margin: 0.2rem 0 0.45rem;
}

.relationship-row-actions,
.relationship-confirm-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.relationship-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.relationship-status--verified {
  background: rgba(52, 211, 153, 0.16);
  color: var(--success-text, #087f5b);
}

.relationship-status--pending {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warning-text, #9a5a00);
}

.relationship-proof-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.relationship-proof {
  align-items: center;
  border: 1px solid rgba(18, 26, 47, 0.12);
  border-radius: 16px;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem;
}

.relationship-proof > span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.relationship-proof.is-approved > span {
  background: rgba(52, 211, 153, 0.18);
}

.relationship-proof.is-pending > span {
  background: rgba(245, 158, 11, 0.18);
}

.relationship-proof p {
  font-size: 0.82rem;
  margin: 0.15rem 0 0;
}

.relationship-confirm-next,
.relationship-complete {
  display: grid;
  gap: 0.75rem;
}

.relationship-switch-form button {
  width: 100%;
}

.relationship-add-account {
  justify-self: start;
}

@media (max-width: 640px) {
  .directory-relationship-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-relationship-entry .directory-register-button {
    justify-content: center;
  }

  .relationship-row {
    align-items: stretch;
    flex-direction: column;
  }

  .relationship-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Your account, your choice — three tiles in one row */
.your-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}

.host-handle-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 16.5rem);
  gap: clamp(0.7rem, 1.6vw, 1rem);
  align-items: center;
  width: 100%;
  max-width: 58rem;
  margin: 1rem auto 0;
  padding: clamp(0.68rem, 1.3vw, 0.82rem);
  overflow: hidden;
}

.host-handle-explainer-copy {
  /* Cap the measure so the body doesn't run an over-long line into the demo. */
  max-width: 38rem;
}

.host-handle-explainer-copy .text-eyebrow {
  margin-bottom: 0.25rem;
}

.host-handle-explainer-title {
  margin: 0;
  color: #0e1428;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.host-handle-explainer-copy .text-body-sm {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.host-handle-demo {
  position: relative;
  display: grid;
  gap: 0.3rem;
  width: 100%;
  padding: clamp(0.48rem, 1vw, 0.58rem);
  border: 1px solid rgba(23, 30, 66, 0.08);
  border-radius: 12px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.7)
    ),
    radial-gradient(
    circle at 12% 16%,
    rgba(64, 196, 255, 0.16),
    transparent 34%
  ),
    radial-gradient(
    circle at 92% 88%,
    rgba(251, 78, 163, 0.14),
    transparent 36%
  );
  box-shadow:
    0 18px 45px rgba(20, 30, 60, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.host-handle-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0 42%,
    rgba(255, 255, 255, 0.48) 50%,
    transparent 58% 100%
  );
  opacity: 0.55;
  transform: translateX(-55%);
  animation: hostHandleSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.host-handle-demo-stage {
  position: relative;
  height: 3.36rem;
}

.host-handle-demo-frame {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.3rem;
  opacity: 0;
  animation: hostHandleFrameCycle var(--host-handle-cycle) linear
    var(--host-handle-delay) infinite;
}

.host-handle-demo-frame:first-child {
  opacity: 1;
}

.host-handle-demo-label-window,
.host-handle-demo-window {
  position: relative;
  overflow: hidden;
}

.host-handle-demo-label-window {
  height: 0.9rem;
  display: block;
  width: 100%;
  line-height: 0.9rem;
}

.host-handle-label-phrase {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.14rem;
  min-width: 0;
  line-height: 0.9rem;
}

.host-handle-label-kind,
.host-handle-label-word {
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9rem;
  white-space: nowrap;
}

.host-handle-label-kind {
  display: inline-block;
  line-height: 0.9rem;
  vertical-align: baseline;
}

.host-handle-label-word {
  display: inline-block;
  line-height: 0.9rem;
  vertical-align: baseline;
  opacity: 0;
  transform: translateY(0.32rem);
  animation: hostHandleLabelWordCycle var(--host-handle-cycle) ease-in-out
    var(--host-handle-delay) infinite;
  will-change: transform, opacity;
}

.host-handle-demo-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  height: 2.16rem;
  padding: 0 0.58rem;
  border: 1px solid rgba(23, 30, 66, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 8px 20px rgba(20, 30, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.host-handle-at {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.24rem;
  height: 1.24rem;
  margin-right: 0.32rem;
  transform: translateY(0.035em);
}

.host-handle-at img {
  width: 1.12rem;
  height: 1.12rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(8%) sepia(13%) saturate(2312%)
    hue-rotate(193deg) brightness(92%) contrast(95%);
}

.host-handle-value-text {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  color: #0e1428;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.84rem, 1.8vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.host-handle-demo-window {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  min-width: 0;
  margin-left: -0.025ch;
  margin-top: 0;
  overflow: visible;
  transform: none;
  vertical-align: baseline;
}

.host-handle-value-prefix,
.host-handle-suffix {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: baseline;
}

.host-handle-value-prefix {
  display: inline-block;
  flex: 0 0 auto;
}

.host-handle-suffix {
  --host-handle-cursor-color: rgba(14, 20, 40, 0.54);
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  width: var(--host-handle-suffix-width);
  overflow: visible;
}

.host-handle-suffix::after {
  content: "";
  position: absolute;
  top: -0.04em;
  bottom: -0.02em;
  left: 0;
  width: 1px;
  background: var(--host-handle-cursor-color);
  animation:
    hostHandleCursorPosition var(--host-handle-cycle)
    steps(var(--host-handle-suffix-steps), end) var(--host-handle-delay)
    infinite,
    hostHandleCursor 1s steps(2, start) infinite;
}

.host-handle-suffix-text {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  font: inherit;
  line-height: inherit;
  transform: none;
  clip-path: inset(0 100% 0 0);
  animation: hostHandleSuffixClipCycle var(--host-handle-cycle)
    steps(var(--host-handle-suffix-steps), end) var(--host-handle-delay)
    infinite;
}

.host-handle-value strong {
  color: #254a9e;
  font-weight: 800;
}

.host-handle-value--custom strong {
  color: #0a7b61;
}

.host-handle-demo-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1.92rem;
  border-radius: 8px;
  background: #254a9e;
  color: #fff;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(42, 90, 168, 0.2);
}

.host-handle-demo-button-icon {
  width: 1rem;
  height: 1rem;
  /* union.svg is dark navy — render it white on the blue button. */
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .your-choice-grid {
    grid-template-columns: 1fr;
  }

  .host-handle-explainer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .host-handle-explainer {
    gap: 0.62rem;
    padding: 0.7rem;
  }

  .host-handle-demo {
    padding: 0.52rem;
  }

  .host-handle-demo-input {
    height: 2.18rem;
    padding-inline: 0.6rem;
  }

  .host-handle-demo-stage {
    height: 3.38rem;
  }

  .host-handle-at {
    width: 1.22rem;
    height: 1.22rem;
  }

  .host-handle-at img {
    width: 0.76rem;
    height: 0.76rem;
  }

  .host-handle-value-text {
    font-size: clamp(0.78rem, 4.4vw, 0.94rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .host-handle-demo-frame,
  .host-handle-label-word,
  .host-handle-suffix-text,
  .host-handle-suffix::after {
    animation: none;
  }

  .host-handle-demo-frame {
    opacity: 0;
  }

  .host-handle-demo-frame:first-child {
    opacity: 1;
  }

  .host-handle-label-word {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .host-handle-demo-frame:first-child .host-handle-suffix-text {
    clip-path: none;
  }

  .host-handle-suffix::after {
    display: none;
  }
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card--with-demo {
  display: block;
}

.feature-card-body--with-inline-demo {
  min-height: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Icon + title on one row — vertically center title with icon */
.feature-card-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.feature-card-title-row .text-subsection {
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Your-choice cards (Moderation / Algorithms / Portability): centered headers. */
.your-choice-grid .feature-card-title-row {
  justify-content: center;
}

.your-choice-grid .feature-card-title-row .text-subsection {
  flex: 0 1 auto;
  text-align: center;
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 10px;
  background: rgba(42, 90, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #254a9e;
  flex-shrink: 0;
}

.personal-domain-demo {
  position: relative;
  box-sizing: border-box;
  float: right;
  display: inline-flex;
  align-items: center;
  width: min(11.4rem, 46%);
  gap: 0.45rem;
  margin: 0.9rem 0 0.15rem 0.85rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid rgba(23, 30, 66, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.52)
    ),
    radial-gradient(
    circle at 0% 12%,
    rgba(64, 196, 255, 0.18),
    transparent 38%
  ),
    radial-gradient(
    circle at 100% 90%,
    rgba(10, 123, 97, 0.15),
    transparent 38%
  );
  box-shadow:
    0 14px 32px rgba(20, 30, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.personal-domain-demo-glow {
  position: absolute;
  width: 5.6rem;
  height: 5.6rem;
  right: -3.1rem;
  top: -3.6rem;
  border-radius: 999px;
  background: rgba(37, 74, 158, 0.16);
  filter: blur(16px);
  pointer-events: none;
  animation: personalDomainGlow 8s ease-in-out infinite;
}

.personal-domain-demo-route {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
}

.personal-domain-demo-avatar {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 1.86rem;
  height: 1.86rem;
  flex: 0 0 1.86rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(20, 30, 60, 0.12);
  overflow: hidden;
}

.personal-domain-demo-avatar svg {
  width: 1.08rem;
  height: 1.08rem;
  color: rgba(23, 61, 124, 0.72);
}

.personal-domain-demo-handle-window {
  position: relative;
  display: block;
  width: 6.15ch;
  min-width: 6.15ch;
  flex: 0 0 6.15ch;
  height: 1rem;
  overflow: hidden;
}

.personal-domain-demo-prefix,
.personal-domain-demo-handle {
  color: rgba(18, 26, 47, 0.64);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1rem;
  white-space: nowrap;
}

.personal-domain-demo-prefix {
  flex: 0 0 auto;
}

.personal-domain-demo-handle {
  position: absolute;
  inset: 0 auto auto 0;
}

.personal-domain-demo-handle--old {
  animation: personalDomainOldHandle 5.8s ease-in-out infinite;
}

.personal-domain-demo-handle--new {
  color: #0a7b61;
  font-weight: 800;
  animation: personalDomainNewHandle 5.8s ease-in-out infinite;
}

@media (max-width: 720px) {
  .personal-domain-demo {
    float: none;
    width: min(100%, 11.4rem);
    margin: 0 0 0.72rem;
  }
}

/* ================================
   One Place / Hub Visual
   ================================ */

.hub-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hub-examples-label {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  color: rgba(18, 26, 47, 0.74);
}

.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.45rem;
  padding: 0.42rem 0.78rem 0.42rem 0.48rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(42, 90, 168, 0.17);
  color: #173d7c;
  box-shadow: 0 8px 24px rgba(48, 70, 128, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hub-tag:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(42, 90, 168, 0.24);
  box-shadow: 0 12px 28px rgba(48, 70, 128, 0.09);
  transform: translateY(-1px);
}

.hub-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 10px;
  color: #244d9e;
  background: rgba(42, 90, 168, 0.11);
}

.hub-tag-icon-svg {
  width: 1.05rem;
  height: 1.05rem;
}

.hub-tag-label {
  min-width: 0;
}

.hub-tag-more {
  font-style: italic;
  font-weight: 400;
  background: transparent;
  border-style: dashed;
  color: rgba(18, 26, 47, 0.68);
}

.hub-tag-more:hover {
  background: rgba(59, 111, 194, 0.06);
}

.hub-tag:nth-child(4n+1) .hub-tag-icon {
  color: #284f9d;
  background: rgba(58, 103, 189, 0.12);
}

.hub-tag:nth-child(4n+2) .hub-tag-icon {
  color: #8d3e76;
  background: rgba(208, 80, 148, 0.13);
}

.hub-tag:nth-child(4n+3) .hub-tag-icon {
  color: #28735f;
  background: rgba(62, 164, 118, 0.14);
}

.hub-tag:nth-child(4n) .hub-tag-icon {
  color: #7a5a1f;
  background: rgba(218, 166, 61, 0.14);
}

/* ================================
   Pillars
   ================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42, 90, 168, 0.12);
  color: #254a9e;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ================================
   Cross-Pollination / Flow (animated)
   ================================ */

.flow-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
  margin-top: 2.75rem;
  position: relative;
}

/* Rails --------------------------------------------------------------- */

.flow-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flow-rail-left {
  align-items: flex-end;
}

.flow-rail-right {
  align-items: flex-start;
}

.flow-rail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(18, 26, 47, 0.68);
  margin-bottom: 0.6rem;
  padding: 0 1rem;
}

.flow-rail-left .flow-rail-label {
  text-align: right;
}

.flow-rail-viewport {
  position: relative;
  width: 100%;
  max-width: 15rem;
  height: 21rem;
  overflow: hidden;
  /* Types dissolve into the sky at both ends -> the stream feels infinite. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 20%,
    #000 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 20%,
    #000 80%,
    transparent 100%
  );
}

.flow-rail-left .flow-rail-viewport {
  margin-left: auto;
}

.flow-rail-right .flow-rail-viewport {
  margin-right: auto;
}

.flow-rail-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Two identical halves; translateY(-50%) advances exactly one half -> seamless. */
  animation: flowMarquee 34s linear infinite;
  will-change: transform;
}

.flow-rail-left .flow-rail-track {
  align-items: flex-end;
}

.flow-rail-right .flow-rail-track {
  align-items: flex-start;
}

.flow-rail-right .flow-rail-track {
  animation-direction: reverse;
}

@keyframes flowMarquee {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* Chips --------------------------------------------------------------- */

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 11.5rem;
  max-width: 100%;
  /* margin (not gap) so both marquee halves are exactly equal height. */
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.74rem 0.5rem 0.5rem;
  border-radius: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(48, 70, 128, 0.07);
}

.flow-chip-left {
  flex-direction: row-reverse;
  text-align: right;
}

.flow-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  color: #244d9e;
  background: rgba(42, 90, 168, 0.11);
}

.flow-chip-icon-svg {
  width: 1.05rem;
  height: 1.05rem;
}

.flow-chip-label {
  min-width: 0;
}

/* 4-colour icon rotation, matched across both marquee halves. */
.flow-chip:nth-child(4n+1) .flow-chip-icon {
  color: #284f9d;
  background: rgba(58, 103, 189, 0.12);
}
.flow-chip:nth-child(4n+2) .flow-chip-icon {
  color: #8d3e76;
  background: rgba(208, 80, 148, 0.13);
}
.flow-chip:nth-child(4n+3) .flow-chip-icon {
  color: #28735f;
  background: rgba(62, 164, 118, 0.14);
}
.flow-chip:nth-child(4n) .flow-chip-icon {
  color: #7a5a1f;
  background: rgba(218, 166, 61, 0.14);
}

.flow-chip-open {
  border: 1px dashed rgba(42, 90, 168, 0.4);
  font-style: italic;
  color: rgba(18, 26, 47, 0.66);
  box-shadow: none;
}

.flow-chip-open .flow-chip-icon {
  color: #4a6ba8;
  background: rgba(42, 90, 168, 0.08);
}

/* Core: hub + particle conduits -------------------------------------- */

.flow-core {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 clamp(0.25rem, 1.5vw, 1rem);
}

.flow-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  color: #254a9e;
  text-align: center;
}

.flow-hub-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(120, 170, 240, 0.45) 0%,
    rgba(120, 170, 240, 0) 68%
  );
  z-index: -1;
  animation: flowHubPulse 3.2s ease-in-out infinite;
}

@keyframes flowHubPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.flow-hub-logo {
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
}

.flow-hub-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 7rem;
  line-height: 1.3;
}

.flow-conduit {
  --flow-len: clamp(1.75rem, 5vw, 3.75rem);
  position: relative;
  width: var(--flow-len);
  height: 2px;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(42, 90, 168, 0.05),
    rgba(42, 90, 168, 0.3),
    rgba(42, 90, 168, 0.05)
  );
}

.flow-particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6fa6e6, #3f6ac4);
  box-shadow: 0 0 8px 1px rgba(74, 138, 212, 0.6);
  animation: flowParticle 2.4s linear infinite;
}

@keyframes flowParticle {
  0% {
    transform: translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--flow-len)) scale(0.9);
    opacity: 0;
  }
}

/* Tablet -------------------------------------------------------------- */

@media (max-width: 900px) {
  .flow-rail-viewport {
    height: 18rem;
    max-width: 12.5rem;
  }
  .flow-chip {
    min-width: 9.5rem;
    font-size: 0.78rem;
  }
}

/* Mobile: hub on top, two shorter rails side by side ------------------ */

@media (max-width: 640px) {
  .flow-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    margin-top: 1.75rem;
  }

  .flow-core {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0.25rem 0;
  }

  /* Conduits are horizontal - drop them in the stacked layout. */
  .flow-conduit {
    display: none;
  }

  .flow-rail-left {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
  }

  .flow-rail-right {
    grid-column: 2;
    grid-row: 2;
    align-items: center;
  }

  .flow-rail-label,
  .flow-rail-left .flow-rail-label {
    text-align: center;
    padding: 0 0.35rem;
    font-size: 0.68rem;
  }

  .flow-rail-viewport {
    height: 15rem;
    max-width: 100%;
    margin-inline: auto;
  }

  .flow-rail-left .flow-rail-track,
  .flow-rail-right .flow-rail-track {
    align-items: center;
  }

  .flow-chip {
    min-width: 0;
    width: min(100%, 10rem);
    padding: 0.42rem 0.55rem;
    gap: 0.4rem;
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.2;
    border-radius: 12px;
  }

  .flow-chip-left {
    flex-direction: row;
    text-align: left;
  }

  .flow-chip-icon {
    width: 1.62rem;
    height: 1.62rem;
  }

  .flow-chip-icon-svg {
    width: 0.92rem;
    height: 0.92rem;
  }

  .flow-hub {
    padding: 1rem 0.85rem;
    gap: 0.35rem;
    border-radius: 16px;
  }

  .flow-hub-logo {
    width: 30px;
    height: 30px;
  }

  .flow-hub-label {
    font-size: 0.62rem;
    max-width: 9rem;
  }
}

/* Respect reduced-motion: freeze the marquee mid-stream, hold particles. */
@media (prefers-reduced-motion: reduce) {
  .flow-rail-track {
    animation: none;
    transform: translateY(-8%);
  }
  .flow-hub-glow {
    animation: none;
  }
  .flow-particle {
    animation: none;
    opacity: 0.5;
    transform: translateX(calc(var(--flow-len) / 2));
  }
}

/* ================================
   App Showcase (Explore page)
   ================================ */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.app-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.app-card-name {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #0e1428;
}

.app-card-category {
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   Sign-In Badge Section
   ================================ */

.badge-display {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.badge-display img, .badge-display svg {
  max-width: 360px;
  width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
}

.badge-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.badge-downloads--left {
  justify-content: flex-start;
}

.badge-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1f4f96;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(42, 90, 168, 0.28);
  background: rgba(42, 90, 168, 0.08);
  transition: background 0.2s, color 0.2s;
}

.badge-download-btn:hover {
  background: rgba(42, 90, 168, 0.16);
  color: #153d78;
}

.developer-login-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.developer-code-block {
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(14, 20, 40, 0.06);
  color: #0e1428;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: left;
}

.developer-login-card code {
  font-family: "IBM Plex Mono", monospace;
}

/* ================================
   Provider Section
   ================================ */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}

.provider-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
}

.provider-card-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #174a8c;
  border: 1px solid rgba(10, 35, 72, 0.45);
  color: #f4f8ff;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10, 24, 48, 0.12);
}

.provider-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #0e1428;
}

.provider-name {
  font-size: 1rem;
  font-weight: 600;
}

.provider-cta {
  display: inline-block;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1f4f96;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(42, 90, 168, 0.28);
  background: rgba(42, 90, 168, 0.08);
  align-self: flex-start;
  transition: background 0.2s;
}

.provider-cta:hover {
  background: rgba(42, 90, 168, 0.16);
  color: #153d78;
}

.provider-bluesky-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  padding: 0.35rem;
  line-height: 1;
  vertical-align: middle;
  color: #1185fe;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.provider-bluesky-icon-link:hover {
  color: #0c6fd4;
}

.provider-bluesky-icon-link:focus-visible {
  outline: 2px solid rgba(17, 133, 254, 0.45);
  outline-offset: 2px;
}

.provider-bluesky-icon {
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 0.12em;
}

/* ================================
   Moderation & Algorithms
   ================================ */

.mod-algo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .mod-algo-grid {
    grid-template-columns: 1fr;
  }
}

.mod-algo-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mod-algo-icon--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  margin-top: 0.1em;
  color: #1f4f96;
}

.mod-algo-icon--inline svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ================================
   Footer
   ================================ */

.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(18, 26, 47, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin: 0 auto 2rem;
  /* Constrain so wrapping behaves predictably and the links visually
   * cluster directly beneath the centered logo on every viewport. */
  max-width: 36rem;
}

.footer-quote {
  font-style: italic;
  color: rgba(18, 26, 47, 0.58);
  max-width: 600px;
  margin: 2rem auto 0;
  font-size: 0.9rem;
}

a.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(18, 26, 47, 0.46);
  text-decoration: none;
  background: none;
  border: 1px solid rgba(18, 26, 47, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

a.back-to-top:hover {
  color: rgba(18, 26, 47, 0.76);
  border-color: rgba(18, 26, 47, 0.28);
}

/* ================================
   Scroll Reveal
   ================================ */

.reveal {
  opacity: 1;
  transform: none;
}

/* ================================
   Divider
   ================================ */

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a8ad4, #8a6fc4);
  border-radius: 2px;
  margin: 0.75rem auto;
}

/* ================================
   Utility
   ================================ */

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.inline-block {
  display: inline-block;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}
.w-full {
  width: 100%;
}

/* ================================
   Dark Phase (sunset / night)
   ================================ */

body {
  transition: color 0.6s ease;
}

.dark-phase {
  color: rgba(255, 255, 255, 0.97);
}

.dark-phase h1,
.dark-phase h2,
.dark-phase h3,
.dark-phase h4 {
  color: #fff;
}

.dark-phase .text-body {
  color: rgba(255, 255, 255, 0.88);
}

.dark-phase .text-body-sm {
  color: rgba(255, 255, 255, 0.76);
}

.dark-phase a {
  color: #a8d4f8;
}

.dark-phase a:hover {
  color: #d4ecfc;
}

.dark-phase .glass {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-phase .glass-strong {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-phase .glass-subtle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark-phase .host-handle-demo {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.08)
    ),
    radial-gradient(
    circle at 12% 16%,
    rgba(64, 196, 255, 0.18),
    transparent 34%
  ),
    radial-gradient(
    circle at 92% 88%,
    rgba(251, 78, 163, 0.16),
    transparent 36%
  );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dark-phase .host-handle-explainer-title {
  color: #f3f5fb;
}

.dark-phase .host-handle-label-kind,
.dark-phase .host-handle-label-word {
  color: rgba(255, 255, 255, 0.68);
}

.dark-phase .host-handle-demo-input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.dark-phase .host-handle-at {
  background: transparent;
  box-shadow: none;
}

.dark-phase .host-handle-at img {
  filter: brightness(0) invert(1);
}

.dark-phase .host-handle-value,
.dark-phase .host-handle-value-prefix {
  color: #fff;
}

.dark-phase .host-handle-suffix,
.dark-phase .host-handle-value strong {
  color: #fff;
}

.dark-phase .host-handle-suffix {
  --host-handle-cursor-color: rgba(255, 255, 255, 0.68);
}

.dark-phase .host-handle-value--custom strong {
  color: #fff;
}

.dark-phase .host-handle-value::after {
  background: rgba(255, 255, 255, 0.68);
}

.dark-phase .nav-logo {
  color: rgba(255, 255, 255, 0.94);
}

.dark-phase .nav-logo img {
  filter: brightness(0) invert(1);
}

.dark-phase .nav-btn-ghost {
  color: rgba(255, 255, 255, 0.88);
}

.dark-phase .nav-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.dark-phase .nav-btn[aria-current="page"],
.dark-phase .nav-btn[data-current="true"] {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-phase .nav-coming-soon:hover::after,
.dark-phase .footer-coming-soon:hover::after {
  background: rgba(255, 255, 255, 0.9);
  color: #0e1428;
}

.dark-phase .nav-btn-glass {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-phase .nav-btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark-phase .nav.scrolled,
.dark-phase .nav[data-scroll-effects="false"] {
  background: rgba(0, 0, 0, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.dark-phase .scroll-indicator {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .hero-eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.dark-phase .hub-tag {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #a8d4f8;
  box-shadow: none;
}

.dark-phase .hub-tag:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dark-phase .hub-examples-label {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .hub-tag-more {
  color: rgba(255, 255, 255, 0.64);
  border-color: rgba(255, 255, 255, 0.28);
}

.dark-phase .hub-tag-more:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dark-phase .hub-tag-icon,
.dark-phase .flow-chip-icon {
  color: #b9d8ff;
  background: rgba(255, 255, 255, 0.1);
}

.dark-phase .feature-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #9ec8f0;
}

.dark-phase .personal-domain-demo {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.07)
    ),
    radial-gradient(
    circle at 0% 12%,
    rgba(64, 196, 255, 0.18),
    transparent 38%
  ),
    radial-gradient(
    circle at 100% 90%,
    rgba(128, 226, 193, 0.14),
    transparent 38%
  );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.dark-phase .personal-domain-demo-avatar {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.dark-phase .personal-domain-demo-prefix,
.dark-phase .personal-domain-demo-handle {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .personal-domain-demo-handle--new {
  color: #80e2c1;
}

.dark-phase .flow-rail-label {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .flow-chip-open {
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
}

.dark-phase .flow-hub {
  color: #9ec8f0;
}

.dark-phase .flow-hub-logo {
  filter: brightness(0) invert(1);
}

.dark-phase .flow-conduit {
  background: linear-gradient(
    90deg,
    rgba(158, 200, 240, 0.08),
    rgba(158, 200, 240, 0.4),
    rgba(158, 200, 240, 0.08)
  );
}

.dark-phase .pillar-number {
  background: rgba(255, 255, 255, 0.12);
  color: #9ec8f0;
}

.dark-phase .provider-card-badge {
  background: #2a6ec4;
  border-color: rgba(180, 215, 255, 0.35);
  color: #f4f8ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.dark-phase .provider-logo-row {
  color: rgba(255, 255, 255, 0.98);
}

.dark-phase .provider-cta {
  color: #9ec8f0;
  border-color: rgba(158, 200, 240, 0.32);
  background: rgba(158, 200, 240, 0.1);
}

.dark-phase .provider-cta:hover {
  background: rgba(158, 200, 240, 0.22);
  color: #d0e8fa;
}

.dark-phase .provider-bluesky-icon-link {
  color: #5eb0ff;
}

.dark-phase .provider-bluesky-icon-link:hover {
  color: #8cc8ff;
}

.dark-phase .provider-bluesky-icon-link:focus-visible {
  outline-color: rgba(142, 200, 255, 0.55);
}

.dark-phase .mod-algo-icon--inline {
  color: #9ec8f0;
}

.dark-phase .badge-display img,
.dark-phase .badge-display svg {
  filter: brightness(0) invert(1);
}

.dark-phase .badge-download-btn {
  color: #9ec8f0;
  border-color: rgba(158, 200, 240, 0.32);
  background: rgba(158, 200, 240, 0.1);
}

.dark-phase .badge-download-btn:hover {
  background: rgba(158, 200, 240, 0.2);
  color: #d0e8fa;
}

.dark-phase .footer {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.dark-phase .footer-quote {
  color: rgba(255, 255, 255, 0.55);
}

.dark-phase a.back-to-top {
  color: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-phase a.back-to-top:hover {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.34);
}

.dark-phase .divider {
  background: linear-gradient(90deg, #6a9ec8, #9880c0);
}

.dark-phase .footer-logo {
  filter: brightness(0) invert(1) !important;
}

.dark-phase .atmosphere-icon-core {
  color: #fff;
}

.dark-phase .app-icon {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0.7rem 2.4rem rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* ====================================================================
   Explore (registry) — pages, lists, profile cards, forms
   ==================================================================== */

.text-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.62);
  margin: 0;
}
.dark-phase .text-eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

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

.inline-form {
  display: inline;
}
.text-link-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.explore-hero {
  padding: 9rem 0 2.5rem;
  text-align: center;
}

.explore-hero-back {
  display: flex;
  justify-content: center;
  margin: -2.6rem 0 1.5rem;
}

.app-browse-top-link {
  position: absolute;
  top: calc(var(--nav-bar-height) + 0.75rem);
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.app-browse-top-link .container {
  display: flex;
  justify-content: flex-start;
}

.app-browse-top-link .app-browse-home-link {
  pointer-events: auto;
}

.app-browse-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  padding: 0.44rem 0.88rem;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.08);
  border: 1px solid rgba(42, 90, 168, 0.16);
  color: #254a9e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.app-browse-home-link:hover {
  background: rgba(42, 90, 168, 0.13);
  border-color: rgba(42, 90, 168, 0.24);
  transform: translateY(-1px);
}

.app-browse-home-arrow {
  font-size: 0.9rem;
  line-height: 1;
}

.explore-hero-subhead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.explore-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.explore-search-form {
  display: flex;
  flex: 1 1 360px;
  max-width: 520px;
  min-height: 2.75rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  align-items: center;
  box-shadow: 0 6px 24px rgba(48, 70, 128, 0.06);
}
.explore-search-input {
  flex: 1;
  min-height: 2.35rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  outline: none;
  color: #0e1428;
}
.explore-search-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.explore-search-submit:hover {
  background: rgba(42, 90, 168, 1);
}

.app-browse-control-form {
  display: flex;
  align-items: center;
  width: min(100%, 820px);
  min-height: 2.78rem;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-browse-search-control {
  display: flex;
  align-items: center;
  flex: 1 1 330px;
  min-width: 240px;
  min-height: 2.76rem;
  gap: 0.5rem;
  padding: 0.24rem 0.28rem 0.24rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 24px rgba(48, 70, 128, 0.06);
}

.app-browse-search-input {
  flex: 1;
  min-width: 0;
  min-height: 2.35rem;
  border: 0;
  background: transparent;
  color: #0e1428;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.app-browse-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.24rem;
  padding: 0.42rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-browse-search-submit:hover {
  background: rgba(42, 90, 168, 1);
}

.app-browse-filter-pill {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  min-height: 2.76rem;
  padding: 0.16rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 24px rgba(48, 70, 128, 0.06);
}

.app-browse-collection-menu,
.app-browse-sort-menu {
  position: relative;
}

.app-browse-collection-menu {
  flex: 0 1 10.8rem;
}

.app-browse-sort-menu {
  flex: 0 0 6.8rem;
}

.app-browse-sort-menu {
  border-left: 1px solid rgba(18, 26, 47, 0.08);
}

.app-browse-collection-menu summary,
.app-browse-sort-menu summary {
  list-style: none;
}

.app-browse-collection-menu summary::-webkit-details-marker,
.app-browse-sort-menu summary::-webkit-details-marker {
  display: none;
}

.app-browse-dropdown-trigger {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label chevron"
    "value chevron";
  align-items: center;
  min-height: 2.42rem;
  height: 100%;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0e1428;
  cursor: pointer;
}

.app-browse-filter-pill:focus-within {
  outline: 2px solid rgba(42, 90, 168, 0.28);
  outline-offset: 2px;
}

.app-browse-dropdown-trigger:hover,
.app-browse-dropdown-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.app-browse-dropdown-label {
  grid-area: label;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.app-browse-dropdown-value {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-browse-dropdown-chevron {
  grid-area: chevron;
  color: rgba(18, 26, 47, 0.42);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.app-browse-collection-menu[open] .app-browse-dropdown-chevron,
.app-browse-sort-menu[open] .app-browse-dropdown-chevron {
  transform: rotate(180deg);
}

.app-browse-collection-popover,
.app-browse-sort-popover {
  position: absolute;
  right: 0;
  z-index: 30;
  display: grid;
  width: min(78vw, 15.75rem);
  max-height: min(28rem, 62vh);
  overflow-y: auto;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding: 0.45rem;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(48, 70, 128, 0.16);
}

.app-browse-sort-popover {
  width: min(60vw, 10.5rem);
}

.app-browse-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  color: rgba(18, 26, 47, 0.82);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}

.app-browse-checkbox-row:hover {
  background: rgba(42, 90, 168, 0.08);
}

.app-browse-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(42, 90, 168, 0.22);
  color: #254a9e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.app-browse-checkbox-row[aria-checked="true"] .app-browse-checkbox {
  background: rgba(42, 90, 168, 0.92);
  border-color: rgba(42, 90, 168, 0.92);
  color: #fff;
}

.app-browse-clear-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.45rem;
  color: rgba(37, 74, 158, 0.86);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.app-browse-clear-link:hover {
  color: #254a9e;
  text-decoration: underline;
}

.app-browse-sort-option {
  display: flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  color: rgba(18, 26, 47, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
}

.app-browse-sort-option:hover,
.app-browse-sort-option.is-active {
  background: rgba(42, 90, 168, 0.08);
  color: #254a9e;
}

.dark-phase .explore-search-form {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
.dark-phase .explore-search-input {
  color: #f0f4ff;
}

.dark-phase .app-browse-search-input,
.dark-phase .app-browse-dropdown-trigger {
  color: #f0f4ff;
}

.dark-phase .app-browse-search-control,
.dark-phase .app-browse-filter-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(2, 5, 18, 0.12);
}

.dark-phase .app-browse-dropdown-trigger:hover,
.dark-phase .app-browse-dropdown-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.dark-phase .app-browse-sort-menu {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.dark-phase .app-browse-dropdown-label,
.dark-phase .app-browse-dropdown-chevron {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .app-browse-collection-popover.glass,
.dark-phase .app-browse-sort-popover.glass {
  background: rgba(22, 28, 48, 0.94);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-phase .app-browse-checkbox-row,
.dark-phase .app-browse-sort-option {
  color: rgba(255, 255, 255, 0.84);
}

.dark-phase .app-browse-checkbox-row:hover,
.dark-phase .app-browse-sort-option:hover,
.dark-phase .app-browse-sort-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.dark-phase .app-browse-checkbox {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-phase .app-browse-clear-link {
  color: #d8e4ff;
}

.dark-phase .app-browse-home-link {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .app-browse-home-link:hover {
  background: rgba(106, 149, 255, 0.22);
}

.explore-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0e1428;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.explore-cta-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.dark-phase .explore-cta-primary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f0f4ff;
}
.dark-phase .explore-cta-primary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.explore-controls {
  padding: 0.5rem 0 1.5rem;
}

.app-browse-controls {
  padding-bottom: 0.75rem;
}

.app-browse-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.app-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.app-filter-label {
  color: rgba(18, 26, 47, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-filter-form--compact {
  justify-content: flex-end;
  gap: 0.45rem;
}

.app-filter-form--compact .app-filter-label {
  font-size: 0.66rem;
}

.app-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px rgba(48, 70, 128, 0.06);
}

.app-filter-form--compact .app-filter-control {
  min-height: 2.25rem;
  padding: 0.18rem;
  box-shadow: 0 5px 18px rgba(48, 70, 128, 0.05);
}

.app-filter-select {
  min-width: min(58vw, 14.5rem);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  background: transparent;
  color: #0e1428;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.app-filter-form--compact .app-filter-select {
  min-width: 9.8rem;
  padding: 0.42rem 1.85rem 0.42rem 0.72rem;
  font-size: 0.86rem;
}

.app-filter-form--compact .app-filter-select--sort {
  min-width: 7.6rem;
}

.app-filter-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(42, 90, 168, 0.22);
}

.app-filter-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-filter-form--compact .app-filter-submit {
  min-height: 2.06rem;
  padding: 0.43rem 0.78rem;
  background: rgba(42, 90, 168, 0.84);
  font-size: 0.82rem;
}

.app-filter-submit:hover {
  background: rgba(42, 90, 168, 1);
}

.app-filter-clear {
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.88rem;
  text-decoration: none;
}

.app-filter-form--compact .app-filter-clear {
  font-size: 0.8rem;
}

.app-filter-clear:hover {
  color: #0e1428;
  text-decoration: underline;
}

.dark-phase .app-filter-label,
.dark-phase .app-filter-clear {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .app-filter-control {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-phase .app-filter-select {
  color: #f0f4ff;
}

.dark-phase .app-filter-select option {
  color: #0e1428;
}

.dark-phase .app-filter-clear:hover {
  color: #f0f4ff;
}

@media (max-width: 520px) {
  .app-browse-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-browse-control-form {
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.55rem;
  }

  .app-browse-search-control {
    flex: 1 1 100%;
    min-width: 0;
    padding-left: 0.75rem;
  }

  .app-browse-filter-pill {
    width: 100%;
    flex: 1 1 100%;
  }

  .app-browse-collection-menu {
    flex: 1 1 calc(55% - 0.2rem);
    min-width: 0;
  }

  .app-browse-sort-menu {
    flex: 1 1 calc(45% - 0.2rem);
    min-width: 0;
  }

  .app-browse-collection-popover,
  .app-browse-sort-popover {
    max-width: calc(100vw - 2rem);
    width: min(86vw, 18rem);
  }

  .app-browse-collection-popover {
    left: 0;
    right: auto;
  }

  .app-browse-sort-popover {
    left: auto;
    right: 0;
    width: min(72vw, 10.5rem);
  }

  .app-filter-form,
  .app-filter-control {
    width: 100%;
  }

  .app-filter-control {
    justify-content: space-between;
  }

  .app-filter-select {
    flex: 1;
    min-width: 0;
  }

  .app-filter-form--compact {
    justify-content: stretch;
  }

  .app-filter-form--compact .app-filter-select,
  .app-filter-form--compact .app-filter-select--sort {
    min-width: 0;
  }
}

.explore-category-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.explore-category-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(18, 26, 47, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.explore-category-tab:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #0e1428;
}
.explore-category-tab.is-active {
  background: #0e1428;
  color: #fff;
  border-color: #0e1428;
}
.dark-phase .explore-category-tab {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}
.dark-phase .explore-category-tab.is-active {
  background: #f0f4ff;
  color: #0e1428;
  border-color: #f0f4ff;
}

.explore-subchips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.explore-subchip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(18, 26, 47, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
}
.explore-subchip.is-active {
  background: rgba(42, 90, 168, 0.85);
  color: #fff;
  border-color: rgba(42, 90, 168, 0.85);
}
.dark-phase .explore-subchip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
}

.featured-rail {
  padding: 1.5rem 0 2rem;
}
.featured-rail-heading {
  margin-bottom: 1rem;
}
.featured-rail-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.featured-rail-item .profile-card {
  height: 100%;
}

.app-directory-section {
  padding: 0.75rem 0 1.5rem;
}

.app-directory-section--featured {
  padding-top: 1rem;
}

.app-directory-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-directory-results-heading {
  text-align: center;
  margin-bottom: 1.2rem;
}

.app-directory-results-heading--left {
  min-width: 0;
  margin-bottom: 0;
  text-align: left;
}

.app-directory-bottom-cta {
  padding-top: 0.25rem;
}

.app-browse-results-section {
  padding-top: 0.25rem;
}

.app-showcase-section {
  padding: 1rem 0 1.6rem;
}

.app-showcase-section--spotlight {
  padding-top: 1.1rem;
}

.app-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-showcase-heading > div {
  min-width: 0;
}

.app-showcase-heading .text-subsection {
  margin-top: 0.15rem;
}

.app-showcase-heading--compact {
  margin-bottom: 0.85rem;
}

.app-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 4.85rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.86rem;
  border-radius: 999px;
  color: #254a9e;
  background: rgba(42, 90, 168, 0.08);
  border: 1px solid rgba(42, 90, 168, 0.16);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.app-section-link:hover {
  background: rgba(42, 90, 168, 0.13);
  border-color: rgba(42, 90, 168, 0.24);
  transform: translateY(-1px);
}

.app-spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.app-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.72fr);
  gap: 1.1rem;
  min-height: 19rem;
  padding: 1.35rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-spotlight-card--banner {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  isolation: isolate;
}

.app-spotlight-card:hover,
.app-category-tile:hover,
.app-ranked-row:hover,
.app-fresh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(48, 70, 128, 0.12);
}

.app-spotlight-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-spotlight-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.app-spotlight-card--banner .app-spotlight-copy {
  position: relative;
  z-index: 2;
  order: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.78rem;
  width: 100%;
  min-height: 5rem;
  margin-top: -1.5rem;
  padding: 0.78rem 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(244, 248, 255, 0.38),
    rgba(235, 242, 253, 0.64) 38%,
    rgba(224, 234, 251, 0.72)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.app-spotlight-footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.72);
  color: #254a9e;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(26, 48, 94, 0.14);
}

.app-spotlight-footer-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-spotlight-card--banner .app-spotlight-identity {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  overflow: hidden;
}

.app-spotlight-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.app-spotlight-card--banner h3 {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-spotlight-card--banner .app-spotlight-host {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-spotlight-category {
  overflow: hidden;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-spotlight-card--banner .app-spotlight-cta {
  align-self: center;
  flex: 0 0 auto;
  margin-top: 0;
}

.app-spotlight-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
  color: rgba(18, 26, 47, 0.56);
  font-size: 0.8rem;
}

.app-spotlight-kicker--below {
  margin-top: 0.65rem;
}

.app-spotlight-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  color: #0e1428;
}

.app-spotlight-host {
  margin: 0.55rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: rgba(18, 26, 47, 0.56);
}

.app-spotlight-description {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(18, 26, 47, 0.78);
  font-size: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app-spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.app-spotlight-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.76rem;
}

.app-spotlight-tags .is-collection {
  background: rgba(42, 90, 168, 0.12);
  border-color: rgba(42, 90, 168, 0.26);
  color: #254a9e;
  font-weight: 750;
}

.app-spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 2.42rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.16);
}

.app-spotlight-media {
  min-width: 0;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(42, 90, 168, 0.13), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.app-spotlight-media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  border-radius: inherit;
}

.app-spotlight-media--banner {
  position: relative;
  z-index: 0;
  inset: auto;
  order: 1;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.app-spotlight-media--banner img {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
}

.app-spotlight-media--icon {
  min-height: 14rem;
}

.app-spotlight-media--icon .app-spotlight-big-icon {
  width: min(58%, 11rem);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 2rem;
  object-fit: cover;
  box-shadow:
    0 18px 45px rgba(48, 70, 128, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.app-spotlight-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.62);
  color: #254a9e;
  font-size: 3rem;
  font-weight: 700;
}

.app-promo-column {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 0.62rem;
}

.app-promo-column .app-fresh-card--compact {
  display: flex;
  flex-direction: column;
  height: auto;
}

.app-promo-column .app-fresh-media {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}

.app-promo-column .app-fresh-media img {
  position: absolute;
  inset: 0;
}

.app-promo-column .app-fresh-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: -0.55rem;
}

.app-ranked-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #254a9e;
  font-weight: 700;
}

.app-ranked-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-store-category {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.7rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.app-category-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon count";
  gap: 0.04rem 0.56rem;
  align-items: center;
  min-height: 4.35rem;
  padding: 0.68rem 0.78rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-category-tile::after {
  content: none;
}

.app-category-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.72rem;
  background: rgba(42, 90, 168, 0.1);
  border: 1px solid rgba(42, 90, 168, 0.16);
  color: #254a9e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-category-icon-svg {
  width: 1rem;
  height: 1rem;
}

.app-category-tile--social .app-category-icon {
  background: rgba(42, 90, 168, 0.11);
  border-color: rgba(42, 90, 168, 0.18);
  color: #254a9e;
}

.app-category-tile--developer .app-category-icon {
  background: rgba(70, 105, 134, 0.12);
  border-color: rgba(70, 105, 134, 0.19);
  color: #31516a;
}

.app-category-tile--games .app-category-icon {
  background: rgba(78, 127, 94, 0.13);
  border-color: rgba(78, 127, 94, 0.2);
  color: #31633f;
}

.app-category-tile--productivity .app-category-icon {
  background: rgba(166, 118, 45, 0.13);
  border-color: rgba(166, 118, 45, 0.21);
  color: #80571b;
}

.app-category-tile--work .app-category-icon {
  background: rgba(126, 91, 156, 0.12);
  border-color: rgba(126, 91, 156, 0.2);
  color: #5a3c78;
}

.app-category-tile--publishing .app-category-icon {
  background: rgba(180, 83, 91, 0.12);
  border-color: rgba(180, 83, 91, 0.2);
  color: #893a45;
}

.app-category-tile--audio .app-category-icon {
  background: rgba(44, 132, 151, 0.12);
  border-color: rgba(44, 132, 151, 0.2);
  color: #216678;
}

.app-category-tile--bookmarks .app-category-icon {
  background: rgba(92, 113, 163, 0.12);
  border-color: rgba(92, 113, 163, 0.2);
  color: #40558f;
}

.app-category-tile--personal-page .app-category-icon {
  background: rgba(66, 133, 109, 0.12);
  border-color: rgba(66, 133, 109, 0.2);
  color: #2f6b57;
}

.app-category-name {
  grid-area: name;
  min-width: 0;
  color: #0e1428;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.15;
  text-transform: capitalize;
}

.app-category-count {
  grid-area: count;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.76rem;
}

.app-discovery-stack {
  display: grid;
  gap: clamp(1.45rem, 3vw, 2rem);
}

.app-ranked-panel,
.app-fresh-panel {
  min-width: 0;
}

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

.app-ranked-row {
  display: grid;
  grid-template-columns: 1.9rem 2.5rem minmax(0, 1fr) auto;
  gap: 0.62rem;
  align-items: start;
  min-height: 3.7rem;
  padding: 0.55rem 0.66rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-ranked-index {
  align-self: center;
  color: rgba(18, 26, 47, 0.4);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.app-ranked-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  gap: 0.22rem;
  width: 2.5rem;
}

.app-ranked-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.74rem;
}

.app-ranked-copy {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 0.16rem;
  min-width: 0;
  padding-top: 0.02rem;
}

.app-ranked-title-row,
.app-ranked-detail-row {
  display: flex;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
}

.app-ranked-title-row {
  gap: 0.36rem;
}

.app-ranked-detail-row {
  gap: 0.48rem;
}

.app-ranked-title {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 65%;
  overflow: hidden;
  color: #0e1428;
  font-weight: 650;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-ranked-handle,
.app-ranked-signal {
  min-width: 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.76rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-ranked-handle {
  flex: 1 1 auto;
  font-family: "IBM Plex Mono", monospace;
}

.app-ranked-signal {
  flex: 1 1 auto;
}

.app-ranked-meta {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
  overflow: hidden;
  margin-top: 0.04rem;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
}

.app-ranked-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-ranked-dot {
  flex: 0 0 auto;
  opacity: 0.46;
}

.app-ranked-action {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  border: 1px solid rgba(42, 90, 168, 0.24);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.app-fresh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.72rem;
}

.app-fresh-panel .app-fresh-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
}

.app-fresh-card {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-fresh-card--compact {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.app-fresh-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(42, 90, 168, 0.18), rgba(161, 181, 234, 0.2)),
    rgba(255, 255, 255, 0.45);
  color: rgba(37, 74, 158, 0.62);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 750;
}

.app-fresh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-fresh-media .app-fresh-media-icon-backdrop {
  opacity: 0.5;
  transform: scale(1.12);
}

.app-fresh-footer {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.15rem;
  padding: 0.62rem 0.7rem;
  background: linear-gradient(
    135deg,
    rgba(244, 248, 255, 0.8),
    rgba(224, 234, 251, 0.65)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.app-fresh-panel .app-fresh-media {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}

.app-fresh-panel .app-fresh-media img {
  position: absolute;
  inset: 0;
}

.app-fresh-panel .app-fresh-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: -0.55rem;
}

.app-fresh-icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.58);
  color: #254a9e;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 9px 22px rgba(48, 70, 128, 0.1);
}

.app-fresh-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-fresh-copy,
.app-fresh-title-row {
  min-width: 0;
}

.app-fresh-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  height: 2.75rem;
}

.app-fresh-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  overflow: hidden;
}

.app-fresh-title {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 65%;
  overflow: hidden;
  color: #0e1428;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-fresh-handle {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.74rem;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-fresh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.app-fresh-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  border: 1px solid rgba(42, 90, 168, 0.24);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.app-fresh-card--compact .app-fresh-footer {
  grid-template-columns: 2.15rem minmax(0, 1fr) auto;
  gap: 0.46rem;
  min-height: 3.15rem;
  padding: 0.4rem 0.48rem;
}

.app-fresh-card--compact .app-fresh-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.62rem;
}

.app-fresh-card--compact .app-fresh-copy {
  gap: 0.12rem;
  height: 2.15rem;
}

.app-fresh-card--compact .app-fresh-title-row {
  gap: 0.28rem;
}

.app-fresh-card--compact .app-fresh-title {
  max-width: 58%;
  font-size: 0.78rem;
}

.app-fresh-card--compact .app-fresh-handle {
  font-size: 0.62rem;
}

.app-fresh-card--compact .app-store-category {
  font-size: 0.62rem;
}

.app-fresh-card--compact .app-fresh-action {
  min-height: 1.65rem;
  padding: 0.2rem 0.54rem;
  font-size: 0.7rem;
}

.app-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.45rem 0 0;
}

.app-pagination-link,
.app-pagination-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.app-pagination-link {
  padding: 0.42rem 0.85rem;
  background: rgba(42, 90, 168, 0.09);
  border: 1px solid rgba(42, 90, 168, 0.16);
  color: #254a9e;
  font-weight: 650;
  text-decoration: none;
}

.app-pagination-link:not(.is-disabled):hover {
  background: rgba(42, 90, 168, 0.14);
  border-color: rgba(42, 90, 168, 0.24);
}

.app-pagination-link.is-disabled {
  color: rgba(18, 26, 47, 0.35);
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.4);
}

.app-pagination-status {
  padding: 0.42rem 0.25rem;
  color: rgba(18, 26, 47, 0.58);
}

.app-rail-track {
  align-items: stretch;
}

.app-rail-item,
.app-rail-item .app-card {
  height: 100%;
}

.app-rail-item {
  display: flex;
  min-width: 0;
}

.app-rail-item .app-card {
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.profile-card {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(48, 70, 128, 0.12);
}
.profile-card-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card-avatar-fallback {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.4rem;
  color: rgba(18, 26, 47, 0.7);
}
.profile-card-body {
  min-width: 0;
  flex: 1;
}
.profile-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.profile-card-name {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
  color: #0e1428;
}
.dark-phase .profile-card-name {
  color: #f0f4ff;
}

.atmosphere-handle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.atmosphere-handle-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.72em;
  height: 0.72em;
  background-color: currentColor;
  opacity: 1;
  transform: translateY(0.03em);
  -webkit-mask: url("/union.svg") center / contain no-repeat;
  mask: url("/union.svg") center / contain no-repeat;
}

.atmosphere-handle-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-phase .atmosphere-handle-icon {
  opacity: 1;
}

.profile-card-handle {
  margin: 0.05rem 0 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.55);
}
.dark-phase .profile-card-handle {
  color: rgba(255, 255, 255, 0.55);
}
.profile-card-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(18, 26, 47, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark-phase .profile-card-description {
  color: rgba(255, 255, 255, 0.78);
}
.profile-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
}
.profile-card-category, .profile-card-sub {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(18, 26, 47, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.profile-card-category {
  background: rgba(42, 90, 168, 0.12);
  border-color: rgba(42, 90, 168, 0.26);
  color: #254a9e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.profile-card-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.profile-card-sub {
  font-size: 0.76rem;
}
.dark-phase .profile-card-category, .dark-phase .profile-card-sub {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
.dark-phase .profile-card-category {
  background: rgba(106, 149, 255, 0.18);
  border-color: rgba(166, 191, 255, 0.24);
  color: #d8e4ff;
}

.app-card {
  align-items: stretch;
  height: 100%;
  min-height: 10.5rem;
  padding: 0.9rem;
  text-align: left;
}

.app-card--compact {
  display: grid;
  grid-template-columns: 3.85rem minmax(0, 1fr);
  gap: 0.9rem;
  min-height: 9.5rem;
}

.app-card-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 3.85rem;
}

.app-card-icon {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.48)
    ),
    rgba(42, 90, 168, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 9px 22px rgba(48, 70, 128, 0.1);
}

.app-card--compact .app-card-icon {
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 1rem;
}

.app-card-compact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: auto;
  min-width: 4.1rem;
  min-height: 2.05rem;
  padding: 0.36rem 0.5rem;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  border: 1px solid rgba(42, 90, 168, 0.24);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.app-card .profile-card-body {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 0.38rem;
}

.app-card-identity-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.app-card-identity-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.26rem;
  min-width: 0;
}

.app-card .profile-card-title-row {
  align-items: baseline;
  flex-wrap: nowrap;
  min-height: 0;
  gap: 0.42rem;
  overflow: hidden;
}

.app-card .profile-card-name {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 65%;
  overflow: hidden;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card .profile-card-handle {
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-category-label {
  min-width: 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.76rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-view {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 3.8rem;
  min-height: 2rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid rgba(42, 90, 168, 0.24);
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.app-card .profile-card-description {
  min-height: 2.5rem;
  margin-top: 0.18rem;
  -webkit-line-clamp: 2;
}

.app-card-placeholder {
  visibility: hidden;
}

.app-collection-badge {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  min-height: 1.55rem;
  padding-inline: 0.58rem;
  background: rgba(42, 90, 168, 0.11);
  border: 1px solid rgba(42, 90, 168, 0.18);
  color: #254a9e;
  white-space: nowrap;
}

.app-card-meta {
  gap: 0.45rem;
  min-height: 2.65rem;
  margin-top: auto;
}

.app-card--compact .app-card-meta {
  min-height: 0;
  margin-top: 0.55rem;
}

.app-card-taxonomy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.app-card .profile-card-subcategories {
  align-content: flex-start;
  min-height: 1.7rem;
}

.app-card-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem;
  min-height: 1.4rem;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.78rem;
}

.app-promo-collection {
  display: inline-flex;
  width: max-content;
  margin-top: 0.35rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: rgba(42, 90, 168, 0.1);
  color: #254a9e;
  font-size: 0.75rem;
  font-weight: 750;
}

.app-card-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 1.42rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.app-card-signals .app-card-host-indicator {
  gap: 0.3rem;
  border-color: rgba(42, 90, 168, 0.2);
  background: rgba(42, 90, 168, 0.1);
  color: #254a9e;
  font-weight: 700;
}

.app-card-host-indicator svg {
  width: 0.78rem;
  height: 0.78rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.app-card-host-indicator circle {
  fill: currentColor;
  stroke: none;
}

.dark-phase .app-collection-badge {
  background: rgba(106, 149, 255, 0.18);
  border-color: rgba(166, 191, 255, 0.24);
  color: #d8e4ff;
}

.dark-phase .app-card-signals {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .app-card-signals span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark-phase .app-card-signals .app-card-host-indicator {
  border-color: rgba(166, 191, 255, 0.24);
  background: rgba(106, 149, 255, 0.16);
  color: #d8e4ff;
}

.dark-phase .app-section-link {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .app-spotlight-kicker,
.dark-phase .app-spotlight-host,
.dark-phase .app-store-category,
.dark-phase .app-category-count,
.dark-phase .app-ranked-index,
.dark-phase .app-ranked-handle,
.dark-phase .app-ranked-signal,
.dark-phase .app-ranked-meta,
.dark-phase .app-fresh-handle {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .app-card-category-label {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .app-spotlight-card h3,
.dark-phase .app-category-name,
.dark-phase .app-ranked-title,
.dark-phase .app-fresh-title {
  color: #f0f4ff;
}

.dark-phase .app-spotlight-description {
  color: rgba(255, 255, 255, 0.76);
}

.dark-phase .app-spotlight-card--banner .app-spotlight-copy {
  background: linear-gradient(
    135deg,
    rgba(17, 27, 52, 0.78),
    rgba(25, 39, 72, 0.62)
  );
  border-top-color: rgba(255, 255, 255, 0.16);
}

.dark-phase .app-fresh-footer {
  background: linear-gradient(
    135deg,
    rgba(17, 27, 52, 0.82),
    rgba(25, 39, 72, 0.68)
  );
  border-top-color: rgba(255, 255, 255, 0.16);
}

.dark-phase .app-fresh-media {
  background:
    linear-gradient(145deg, rgba(91, 128, 219, 0.2), rgba(32, 48, 88, 0.28)),
    rgba(16, 25, 48, 0.78);
  color: rgba(216, 228, 255, 0.58);
}

.dark-phase .app-spotlight-footer-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-phase .app-spotlight-category {
  color: rgba(255, 255, 255, 0.68);
}

.dark-phase .app-spotlight-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.dark-phase .app-spotlight-media,
.dark-phase .app-ranked-icon,
.dark-phase .app-fresh-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d8e4ff;
}

.dark-phase .app-category-icon {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .app-category-tile::after {
  background: linear-gradient(90deg, rgba(166, 191, 255, 0.45), transparent);
}

.dark-phase .app-pagination-status {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .app-pagination-link {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .app-pagination-link:not(.is-disabled):hover {
  background: rgba(106, 149, 255, 0.22);
}

.dark-phase .app-pagination-link.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 940px) {
  .app-spotlight-layout {
    grid-template-columns: 1fr;
  }

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

  .app-promo-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .app-fresh-card--compact {
    height: auto;
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  .app-showcase-heading {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-spotlight-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-spotlight-media {
    min-height: 12rem;
    order: -1;
  }

  .app-spotlight-media--banner {
    min-height: 0;
  }

  .app-promo-column,
  .app-ranked-list,
  .app-fresh-grid {
    grid-template-columns: 1fr;
  }

  .app-ranked-row {
    grid-template-columns: 1.9rem 2.5rem minmax(0, 1fr);
  }

  .app-ranked-rail,
  .app-ranked-icon {
    width: 2.5rem;
  }

  .app-ranked-icon {
    height: 2.5rem;
  }

  .app-ranked-action {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-spotlight-card,
  .app-ranked-row {
    border-radius: 18px;
  }

  .app-spotlight-card {
    padding: 1rem;
  }

  .app-spotlight-card h3 {
    font-size: 2rem;
  }

  .app-spotlight-card.app-spotlight-card--banner {
    padding: 0;
  }

  .app-spotlight-card--banner .app-spotlight-copy {
    grid-template-columns: 2.55rem minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 3.7rem;
    padding: 0.5rem 0.58rem;
  }

  .app-spotlight-footer-icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.7rem;
  }

  .app-spotlight-card--banner h3 {
    font-size: 1rem;
  }

  .app-spotlight-card--banner .app-spotlight-host {
    font-size: 0.66rem;
  }

  .app-spotlight-category {
    font-size: 0.7rem;
  }

  .app-spotlight-card--banner .app-spotlight-cta {
    min-height: 2rem;
    padding: 0.35rem 0.68rem;
    font-size: 0.78rem;
  }

  .app-fresh-footer {
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    gap: 0.48rem;
    min-height: 3.5rem;
    padding: 0.46rem 0.52rem;
  }

  .app-fresh-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.66rem;
  }

  .app-fresh-copy {
    height: 2.35rem;
  }

  .app-fresh-title {
    font-size: 0.82rem;
  }

  .app-fresh-handle {
    font-size: 0.66rem;
  }

  .app-fresh-action {
    min-height: 1.75rem;
    padding: 0.2rem 0.58rem;
    font-size: 0.72rem;
  }

  .app-category-grid {
    grid-template-columns: 1fr;
  }

  .app-pagination {
    flex-wrap: wrap;
  }

  .app-ranked-row {
    padding: 0.7rem;
  }
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.profile-badge--official {
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
}
.profile-badge--verified {
  background: rgba(58, 158, 96, 0.85);
  color: #fff;
}

/* Verified-project seal: shown next to the project name when an
   admin has cleared the project. Distinct from `.profile-badge--*`,
   which are curator-controlled featured rail labels. */
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #254a9e;
  flex-shrink: 0;
  line-height: 1;
}
.profile-verified-badge--inline {
  vertical-align: -0.15em;
}
.profile-verified-badge svg {
  display: block;
}
.profile-verified-badge:hover {
  color: #1f4f96;
}

.explore-empty {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 18px;
}

/* ---- Profile detail page ---- */
.explore-profile-detail {
  padding: 7rem 0 3rem;
}
.profile-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 24px;
}
.profile-hero-media {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.profile-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 120px;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 120px;
}
.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-hero-avatar-fallback {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.5rem;
  color: rgba(18, 26, 47, 0.65);
}
.profile-hero-body {
  flex: 1;
  /* Never demand more width than the container: prevents the 120px hero icon
     + 240px body from forcing horizontal overflow in the 521–720px band. */
  min-width: min(240px, 100%);
}
.profile-hero-actions {
  align-self: stretch;
  border-left: 1px solid rgba(18, 26, 47, 0.12);
  padding-left: 1.25rem;
  min-width: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

/* Host detail: top-align the CTA with the name instead of floating it in the
   middle of the tall hero (which reads as excess empty space). */
.host-detail-hero .profile-hero-actions {
  justify-content: flex-start;
}
.profile-hero-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #0e1428;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.profile-hero-action:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(42, 90, 168, 0.2);
  transform: translateY(-1px);
}
.profile-hero-action--icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  align-self: flex-start;
}
.profile-hero-action--icon-only .profile-hero-action-icon {
  width: 34px;
  height: 34px;
}
.profile-hero-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff;
  color: #254a9e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.profile-hero-action-icon--brand {
  color: #1185fe;
}
.profile-hero-action-icon-svg {
  width: 100%;
  height: 100%;
}
.profile-hero-action-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}
.profile-hero-action-arrow {
  margin-left: auto;
  color: rgba(42, 90, 168, 0.75);
  font-size: 0.92rem;
}

.directory-identity-link {
  justify-content: center;
  gap: 0.55rem;
}

.directory-identity-link-arrow {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}
.dark-phase .profile-hero-actions {
  border-left-color: rgba(255, 255, 255, 0.14);
}
.dark-phase .profile-hero-action {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f0f4ff;
}
.dark-phase .profile-hero-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}
.dark-phase .profile-hero-action-icon {
  background: rgba(255, 255, 255, 0.92);
}
.dark-phase .profile-hero-action-arrow {
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 720px) {
  .profile-hero {
    flex-wrap: wrap;
  }
  .profile-hero-media {
    align-items: flex-start;
  }
  .profile-hero-secondary-actions {
    justify-content: flex-start;
  }
  .profile-hero-actions {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(18, 26, 47, 0.12);
    padding-left: 0;
    padding-top: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .profile-hero-action {
    flex: 1 1 150px;
  }
  .profile-hero-action--icon-only {
    flex: 0 0 48px;
  }
  .dark-phase .profile-hero-actions {
    border-top-color: rgba(255, 255, 255, 0.14);
  }
}
.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.profile-hero-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #0e1428;
}
.dark-phase .profile-hero-name {
  color: #f0f4ff;
}
.profile-hero-handle {
  margin: 0.2rem 0 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  color: rgba(18, 26, 47, 0.55);
  /* Fallback host domains render here as plain text with no whitespace —
     let long ones wrap instead of overflowing the hero. */
  overflow-wrap: anywhere;
}
.dark-phase .profile-hero-handle {
  color: rgba(255, 255, 255, 0.55);
}
.profile-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.profile-hero-description {
  margin-top: 0.85rem;
  color: rgba(18, 26, 47, 0.85);
}
.dark-phase .profile-hero-description {
  color: rgba(255, 255, 255, 0.85);
}

.app-detail-section {
  padding-bottom: 4rem;
}

.app-detail-banner {
  margin-bottom: 0;
}

.app-detail-hero {
  margin-top: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.app-detail-hero-summary {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.app-detail-hero-body {
  min-width: 0;
}

.app-detail-hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
}

.app-detail-hero-title {
  min-width: 0;
}

.app-detail-hero-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 120px;
}

.app-detail-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.app-detail-hero .profile-hero-actions {
  align-self: flex-end;
  width: min(100%, 15rem);
  min-width: 12.5rem;
  border-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
}

.app-detail-primary-actions {
  display: grid;
  gap: 0.48rem;
  width: 100%;
}

.app-detail-hero .profile-hero-actions.app-detail-action-columns {
  width: min(100%, 18.5rem);
  min-width: 18.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.75rem;
  align-items: start;
  gap: 0.55rem;
}

.app-detail-store-actions .profile-hero-action--store-icon {
  width: 100%;
  padding-inline: 0.6rem;
  gap: 0.35rem;
}

.app-detail-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.app-detail-hero .app-detail-inline-actions .profile-hero-action--icon-only {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
}

.app-detail-hero
  .app-detail-inline-actions
  .profile-hero-action--icon-only
  .profile-hero-action-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.app-detail-hero .profile-hero-action {
  flex: 0 0 auto;
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
}

.app-detail-hero .profile-hero-action:not(.profile-hero-action--icon-only) {
  width: 100%;
  background: rgba(42, 90, 168, 0.92);
  border-color: rgba(42, 90, 168, 0.24);
  color: #fff;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.app-detail-hero
  .profile-hero-action:not(.profile-hero-action--icon-only):hover {
  background: rgba(32, 75, 148, 0.96);
  border-color: rgba(32, 75, 148, 0.3);
}

.app-detail-hero .profile-hero-action.directory-identity-link {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(42, 90, 168, 0.18);
  color: #254a9e;
  box-shadow: 0 8px 18px rgba(42, 90, 168, 0.08);
}

.app-detail-hero .profile-hero-action.directory-identity-link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(42, 90, 168, 0.28);
}

.app-detail-hero-platforms {
  margin-top: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.app-detail-hero-platforms .profile-card-categories {
  justify-content: flex-end;
}

.app-detail-hero-description {
  width: 100%;
  margin: 0;
  max-width: none;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.app-detail-link-icon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .app-detail-hero-summary {
    gap: 1rem;
  }

  .app-detail-hero-heading {
    flex-direction: column;
    gap: 0.85rem;
  }

  .app-detail-hero-side {
    align-items: flex-start;
    width: 100%;
  }

  .app-detail-hero .profile-hero-actions {
    align-self: flex-start;
    width: 100%;
    min-width: 0;
    border-top: 0;
    padding-top: 0;
    justify-content: flex-start;
  }

  .app-detail-hero .profile-hero-actions.app-detail-action-columns {
    width: 100%;
    min-width: 0;
  }

  .app-detail-hero-platforms,
  .app-detail-hero-platforms .profile-card-categories {
    justify-content: flex-start;
  }
}

.app-detail-screenshots,
.app-detail-card {
  padding: 1.35rem;
}

.app-detail-screenshots {
  margin-top: 1rem;
}

.app-detail-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.app-detail-screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.app-detail-alias-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1rem;
}

.app-detail-alias-list code {
  overflow-wrap: anywhere;
}

.app-detail-reviews {
  margin-top: 1rem;
}

.app-detail-reviews-header {
  align-items: flex-start;
  gap: 1rem;
}

.app-detail-reviews-header > div:first-child {
  min-width: min(100%, 18rem);
}

.app-detail-review-summary {
  margin: 0.25rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.92rem;
}

.app-detail-review-meta {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  background: rgba(42, 90, 168, 0.09);
  border: 1px solid rgba(42, 90, 168, 0.14);
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.app-detail-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  max-width: 100%;
}

.app-detail-hero .profile-hero-action-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}

.app-review-list-island {
  margin-top: 1rem;
}

.app-review-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.app-review-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 2.2rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.app-review-sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.82rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  color: rgba(18, 26, 47, 0.64);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-review-sort-link:disabled {
  cursor: progress;
}

.app-review-sort-link.is-active {
  background: rgba(42, 90, 168, 0.14);
  color: #254a9e;
}

.app-review-sort-status {
  min-height: 1.2rem;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.8rem;
}

.app-detail-review-actions .profile-review-action-row {
  margin: 0;
  gap: 0.5rem;
  min-width: 0;
}

.app-detail-review-actions .explore-cta-primary {
  min-height: 2.2rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.1;
}

.app-like-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-form-button-secondary.app-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.42rem 0.82rem;
  gap: 0.42rem;
  font-size: 0.86rem;
  text-decoration: none;
}

.app-like-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  transition: fill 140ms ease, transform 140ms ease;
}

.app-like-button.is-liked {
  border-color: rgba(197, 56, 91, 0.34);
  background: rgba(197, 56, 91, 0.1);
  color: #a82e50;
}

.app-like-button.is-liked .app-like-icon {
  fill: currentColor;
  transform: scale(1.04);
}

.app-like-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  background: rgba(42, 90, 168, 0.11);
  color: #285aa8;
  font-size: 0.74rem;
  font-weight: 750;
}

.app-detail-related {
  margin-top: 1.3rem;
}

.app-detail-technical {
  margin-top: 1.3rem;
}

.app-detail-technical dd {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.dark-phase .app-detail-screenshot-grid img {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark-phase .app-detail-review-summary {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .app-review-sort {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark-phase .app-review-sort-link {
  color: rgba(255, 255, 255, 0.68);
}

.dark-phase .app-review-sort-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #f0f4ff;
}

.dark-phase .app-review-sort-status {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .app-detail-review-meta {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .app-like-count {
  background: rgba(166, 191, 255, 0.18);
  color: #d8e4ff;
}

.dark-phase .app-like-button.is-liked {
  border-color: rgba(255, 137, 168, 0.36);
  background: rgba(197, 56, 91, 0.2);
  color: #ffb5c8;
}

@media (max-width: 720px) {
  .app-detail-reviews-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-detail-review-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .app-review-sort {
    max-width: 100%;
    overflow-x: auto;
  }

  .app-review-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-detail-review-actions .profile-review-action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .app-detail-hero-summary {
    flex-direction: column;
  }

  .app-detail-hero-body,
  .app-detail-hero-title {
    width: 100%;
  }

  .app-detail-hero-identity {
    min-height: 0;
  }

  .app-detail-inline-actions {
    margin-top: 0.5rem;
  }

  .app-detail-hero .profile-hero-actions {
    flex-wrap: nowrap;
  }

  .app-detail-hero .profile-hero-action:not(.profile-hero-action--icon-only) {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .app-detail-hero .profile-hero-action--icon-only {
    flex: 0 0 48px;
  }

  .app-review-sort,
  .app-like-control,
  .app-detail-review-actions .profile-review-action-row,
  .app-detail-review-actions .explore-cta-primary,
  .app-detail-review-actions .app-like-button {
    width: 100%;
  }

  .app-review-sort {
    justify-content: space-between;
  }

  .app-review-sort-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .app-detail-review-actions .explore-cta-primary,
  .app-detail-review-actions .app-like-button {
    justify-content: center;
  }
}

/* ---- Profile detail secondary buttons (Atmosphere / custom) ---- */
.profile-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.profile-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.profile-action--compact {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}
.profile-action:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
.profile-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.profile-action-icon--glyph {
  background: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
}
/* Wrapper for inline-SVG branded icons (Bluesky / Tangled). Tints the SVG
 * to the site's primary blue via currentColor. */
.profile-action-icon--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #254a9e;
  padding: 5px;
}
.profile-action-icon-svg {
  width: 100%;
  height: 100%;
}
.profile-action--compact .profile-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 5px;
  box-shadow: none;
}
.profile-action-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.profile-action-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.dark-phase .profile-action {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.dark-phase .profile-action:hover {
  background: rgba(255, 255, 255, 0.16);
}
.dark-phase .profile-action-icon--glyph {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.profile-screenshots {
  margin-top: 1.5rem;
}
.profile-screenshots-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}
.profile-screenshots-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  padding: 0.1rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
}
.profile-screenshots-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.68);
  color: #254a9e;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(20, 34, 70, 0.1);
  transition: background 0.15s ease, transform 0.15s ease;
}
.profile-screenshots-arrow--prev {
  left: 0.65rem;
}
.profile-screenshots-arrow--next {
  right: 0.65rem;
}
.profile-screenshots-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) translateY(-1px);
}
.profile-screenshots-arrow:disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}
.profile-screenshot-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  overflow: hidden;
  height: clamp(320px, 58vh, 620px);
  max-width: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(20, 34, 70, 0.12);
}
.profile-screenshot-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.profile-screenshot-card:hover .profile-screenshot-img {
  transform: scale(1.015);
}
.dark-phase .profile-screenshot-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.dark-phase .profile-screenshots-arrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f0f4ff;
}
.dark-phase .profile-screenshots-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}
@media (max-width: 720px) {
  .profile-screenshots-shell {
    grid-template-columns: 1fr;
  }
  .profile-screenshots-arrow {
    display: none;
  }
  .profile-screenshot-card {
    height: clamp(300px, 62vh, 560px);
    max-width: 82vw;
  }
  .profile-screenshot-img {
    max-width: 82vw;
  }
}

.profile-footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.dark-phase .profile-footer {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Profile create / manage form ---- */
.manage-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.profile-form {
  padding: 1.75rem;
  border-radius: 24px;
}

.owner-app-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border-radius: 22px;
}

.owner-app-summary-copy {
  min-width: 0;
}

.owner-app-summary-copy h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.18rem;
  line-height: 1.18;
}

.owner-app-summary-copy p:last-child {
  margin: 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.5;
}

.owner-app-requirements {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 22rem;
}

.owner-app-requirement {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.48);
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.owner-app-requirement.is-ready {
  border-color: rgba(46, 160, 90, 0.22);
  background: rgba(46, 160, 90, 0.1);
  color: #256d45;
}

.owner-app-requirement.needs-work {
  border-color: rgba(176, 131, 40, 0.22);
  background: rgba(255, 246, 222, 0.72);
  color: #7a5a1f;
}

.owner-app-requirement--link {
  color: #254a9e;
}

.dark-phase .owner-app-summary-copy p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .owner-app-requirement {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .owner-app-requirement.is-ready {
  border-color: rgba(80, 200, 130, 0.28);
  background: rgba(80, 200, 130, 0.12);
  color: rgba(180, 240, 200, 1);
}

.dark-phase .owner-app-requirement.needs-work {
  border-color: rgba(255, 212, 120, 0.26);
  background: rgba(255, 212, 120, 0.1);
  color: rgba(255, 226, 166, 0.95);
}

@media (max-width: 720px) {
  .owner-app-summary {
    grid-template-columns: 1fr;
  }

  .owner-app-requirements {
    justify-content: flex-start;
    max-width: none;
  }
}

/* ---- Live / inactive status pill at the top of the form ---- */
.profile-status {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.profile-status--live {
  background: rgba(46, 160, 90, 0.1);
  border-color: rgba(46, 160, 90, 0.3);
  color: rgba(20, 90, 50, 1);
}
.profile-status--inactive {
  background: rgba(120, 120, 130, 0.08);
  border-color: rgba(18, 26, 47, 0.12);
  color: rgba(60, 70, 90, 1);
}
.profile-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.profile-status--live .profile-status-dot {
  background: #2ea05a;
  box-shadow: 0 0 0 4px rgba(46, 160, 90, 0.18);
}
.profile-status--inactive .profile-status-dot {
  background: #9aa0ad;
  box-shadow: 0 0 0 4px rgba(154, 160, 173, 0.18);
}
.profile-status-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.profile-status-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.profile-status-sub {
  font-size: 0.85rem;
  opacity: 0.85;
}
.dark-phase .profile-status--live {
  background: rgba(80, 200, 130, 0.12);
  border-color: rgba(80, 200, 130, 0.35);
  color: rgba(180, 240, 200, 1);
}
.dark-phase .profile-status--inactive {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(220, 225, 235, 1);
}
.dark-phase .profile-status--live .profile-status-dot {
  background: #4cd283;
  box-shadow: 0 0 0 4px rgba(76, 210, 131, 0.2);
}
.dark-phase .profile-status--inactive .profile-status-dot {
  background: #b1b6c1;
  box-shadow: 0 0 0 4px rgba(177, 182, 193, 0.18);
}
.profile-form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .profile-form-row {
    grid-template-columns: 1fr;
  }
}
.profile-form-banner {
  margin-bottom: 1.25rem;
}
.profile-form-banner-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.profile-form-banner-empty .profile-form-hint {
  margin: 0;
  flex: 1 1 220px;
}
/* Compact row when a banner exists */
.profile-form-banner-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Clickable thumbnail */
.profile-form-banner-thumb-label {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 1200 / 630;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
}
.profile-form-banner-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-form-banner-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.profile-form-banner-thumb-label:hover .profile-form-banner-thumb-overlay {
  opacity: 1;
}
.profile-form-banner-thumb-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
/* The visible "Replace banner" button next to thumbnail is redundant
   with the clickable thumbnail but improves discoverability */
.profile-form-banner-thumb-replace {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.profile-form-avatar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
.profile-form-avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.profile-form-avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(18, 26, 47, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(18, 26, 47, 0.4);
}
.profile-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.host-register-form-section {
  display: grid;
  gap: 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}
.host-register-profile-section {
  margin-top: 1.35rem;
}
.host-register-section-head {
  max-width: 42rem;
}
.host-register-section-head h2,
.host-register-app-section h2 {
  margin: 0.16rem 0 0;
  color: #0e1428;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.16;
}
.host-register-section-head .text-body,
.host-register-app-section .text-body {
  margin-top: 0.45rem;
}
.host-register-profile-row {
  margin-top: 0;
  align-items: stretch;
}
.host-register-avatar-hint {
  max-width: 12rem;
  margin: 0;
}
.host-register-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.host-location-infer-field {
  gap: 0.55rem;
}
.host-location-infer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.host-location-infer-row .profile-form-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.host-location-infer-row .profile-form-hint {
  flex: 1 1 18rem;
}
.host-location-infer-status {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}
.host-location-infer-status.is-ok {
  border-color: rgba(20, 93, 180, 0.18);
  background: rgba(227, 240, 255, 0.62);
  color: rgba(17, 60, 126, 0.82);
}
.host-location-infer-status.is-error {
  border-color: rgba(180, 63, 52, 0.18);
  background: rgba(255, 234, 230, 0.65);
  color: rgba(135, 50, 42, 0.86);
}
.host-register-app-section {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.host-register-submit-hint {
  flex: 1 1 16rem;
  margin: 0;
}
@media (max-width: 760px) {
  .host-register-app-section {
    grid-template-columns: 1fr;
  }

  .host-register-app-section .profile-form-button-secondary {
    justify-self: flex-start;
  }
}

/* Full-width column for everything below name/description (categories,
   links, icon, …). Sibling of `.profile-form-row`, so it spans the
   whole card on desktop instead of being constrained to the
   avatar+fields right-hand column. */
.profile-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.profile-form-mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) {
  .profile-form-mobile-links {
    grid-template-columns: 1fr;
  }
}
.profile-form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-form-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.52);
}
.profile-screenshots-field {
  gap: 0.75rem;
}
.profile-screenshot-status {
  width: fit-content;
}
.profile-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.profile-screenshot-edit {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid rgba(18, 26, 47, 0.1);
  background: rgba(255, 255, 255, 0.42);
}
.profile-screenshot-edit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-screenshot-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(18, 26, 47, 0.78);
  color: #ffffff;
  cursor: pointer;
}
.profile-screenshot-native-picker {
  max-width: 520px;
}
.profile-screenshot-file-input {
  padding: 0.7rem;
  cursor: pointer;
}
.dark-phase .profile-form-count {
  color: rgba(255, 255, 255, 0.58);
}
.dark-phase .profile-screenshot-edit {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .profile-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Read-only "Signed in as @handle" row, with the sign-out button
   anchored to the right. The button uses formAction="/oauth/logout"
   on submit so it doesn't break the parent profile form. */
.profile-form-handle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(18, 26, 47, 0.04);
  border: 1px solid rgba(18, 26, 47, 0.06);
}
.profile-form-handle-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.profile-form-handle-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(18, 26, 47, 0.9);
}
.profile-form-handle-signout {
  background: transparent;
  border: 1px solid rgba(18, 26, 47, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.profile-form-handle-signout:hover {
  background: rgba(18, 26, 47, 0.06);
  border-color: rgba(18, 26, 47, 0.28);
  color: rgba(18, 26, 47, 0.92);
}
.dark-phase .profile-form-handle-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .profile-form-handle-value {
  color: rgba(255, 255, 255, 0.95);
}
.dark-phase .profile-form-handle-signout {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.dark-phase .profile-form-handle-signout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.98);
}

/* ---- Bluesky client picker (used inside the modal for multi-select) ---- */
.bsky-client-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: rgba(18, 26, 47, 0.04);
  border: 1px solid rgba(18, 26, 47, 0.06);
  list-style: none;
}
.dark-phase .bsky-client-list {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.bsky-client-list li {
  list-style: none;
}
.bsky-client-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.bsky-client-row:hover {
  background: rgba(255, 255, 255, 0.5);
}
.bsky-client-row.is-selected {
  background: rgba(42, 90, 168, 0.08);
  border-color: rgba(42, 90, 168, 0.35);
}
.dark-phase .bsky-client-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dark-phase .bsky-client-row.is-selected {
  background: rgba(120, 170, 255, 0.12);
  border-color: rgba(120, 170, 255, 0.5);
}
.bsky-client-row > input[type="radio"],
.bsky-client-row > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bsky-client-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.bsky-client-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.bsky-client-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(18, 26, 47, 0.95);
}
.bsky-client-row.is-selected .bsky-client-name {
  color: rgba(42, 90, 168, 1);
}
.bsky-client-domain {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.dark-phase .bsky-client-name {
  color: rgba(255, 255, 255, 0.95);
}
.dark-phase .bsky-client-row.is-selected .bsky-client-name {
  color: rgba(160, 200, 255, 1);
}
.dark-phase .bsky-client-domain {
  color: rgba(255, 255, 255, 0.55);
}
.bsky-client-radio,
.bsky-client-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(18, 26, 47, 0.25);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.bsky-client-radio {
  border-radius: 50%;
}
.bsky-client-row.is-selected .bsky-client-radio,
.bsky-client-row.is-selected .bsky-client-check {
  border-color: rgba(42, 90, 168, 1);
  background: rgba(42, 90, 168, 1);
}
.bsky-client-row.is-selected .bsky-client-radio {
  box-shadow: inset 0 0 0 3px #ffffff;
}
.bsky-client-row.is-selected .bsky-client-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.dark-phase .bsky-client-radio,
.dark-phase .bsky-client-check {
  border-color: rgba(255, 255, 255, 0.35);
}
.dark-phase .bsky-client-row.is-selected .bsky-client-radio,
.dark-phase .bsky-client-row.is-selected .bsky-client-check {
  border-color: rgba(160, 200, 255, 1);
  background: rgba(160, 200, 255, 1);
}
.dark-phase .bsky-client-row.is-selected .bsky-client-radio {
  box-shadow: inset 0 0 0 3px rgba(20, 26, 50, 1);
}
.dark-phase .bsky-client-row.is-selected .bsky-client-check::after {
  border-color: rgba(20, 26, 50, 1);
}
.profile-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.profile-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .profile-form-row-2 {
    grid-template-columns: 1fr;
  }
}
.profile-form-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(18, 26, 47, 0.65);
}
.profile-form-required {
  color: #d96860;
  font-style: normal;
  margin-left: 0.2rem;
}
.profile-form-input {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.6);
  font: inherit;
  /* 16px keeps iOS Safari from auto-zooming the page on focus. */
  font-size: 1rem;
  color: #0e1428;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.profile-form-input:focus {
  border-color: rgba(42, 90, 168, 0.6);
  background: rgba(255, 255, 255, 0.85);
}
.profile-form-hint {
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
  margin: 0;
}
.dark-phase .profile-form-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f0f4ff;
}
.dark-phase .profile-form-label,
.dark-phase .profile-form-hint {
  color: rgba(255, 255, 255, 0.65);
}

/**
 * Inline checkbox-style toggle row used for the "open source" flag. Lives
 * between regular labelled fields, so the spacing matches `.profile-form-field`
 * (gap inherited from the parent), but the row itself reads as a control
 * with its own affordance.
 */
.profile-form-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(18, 26, 47, 0.12);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.profile-form-toggle input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
  cursor: pointer;
}
.profile-form-toggle-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.profile-form-toggle-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(18, 26, 47, 0.92);
}
.profile-form-toggle-hint {
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.dark-phase .profile-form-toggle {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.dark-phase .profile-form-toggle-label {
  color: rgba(255, 255, 255, 0.92);
}
.dark-phase .profile-form-toggle-hint {
  color: rgba(255, 255, 255, 0.6);
}

/**
 * Smaller variant of the field label used inside compound fieldsets
 * (links editor row, license sub-fields). Matches the hint typography
 * so nested fields don't compete with the parent legend.
 */
.profile-form-label--small {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(18, 26, 47, 0.7);
}
.dark-phase .profile-form-label--small {
  color: rgba(255, 255, 255, 0.75);
}
.profile-form-empty {
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.55);
  font-style: italic;
  margin: 0.25rem 0 0.5rem;
}
.dark-phase .profile-form-empty {
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ *
 * Atmosphere link toggles
 *
 * Each row is `[ toggle ]  [ icon + label ]   [ gear / url ]`. The
 * row gets `is-on` when active so we can colour the toggle track and
 * lift the icon. The Bluesky row optionally shows a stack of mini
 * favicons when more than one client is selected — see
 * `.atmosphere-icon-stack`.
 * ------------------------------------------------------------------ */
.atmosphere-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.atmosphere-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(18, 26, 47, 0.12);
  background: rgba(255, 255, 255, 0.45);
}
.atmosphere-row.is-on {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(42, 90, 168, 0.35);
}
.dark-phase .atmosphere-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .atmosphere-row.is-on {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.45);
}

.atmosphere-row-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.atmosphere-row-toggle input {
  position: absolute;
  /* Extend the (invisible) hit area beyond the small visual track so the
     tap target clears ~44px without shifting layout. */
  inset: -0.7rem -0.4rem;
  opacity: 0;
  cursor: pointer;
}
.atmosphere-toggle-track {
  display: inline-block;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.18);
  position: relative;
  transition: background 0.15s ease;
}
.atmosphere-toggle-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.atmosphere-row.is-on .atmosphere-toggle-track {
  background: rgba(42, 90, 168, 0.92);
}
.atmosphere-row.is-on .atmosphere-toggle-thumb {
  transform: translateX(1.05rem);
}

.atmosphere-row-body {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.atmosphere-row-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}
.atmosphere-row-title {
  color: rgba(18, 26, 47, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}
.atmosphere-row-subtitle {
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}
.host-profile-toggle {
  margin-top: -0.05rem;
}
.dark-phase .atmosphere-row-title {
  color: rgba(255, 255, 255, 0.92);
}
.dark-phase .atmosphere-row-subtitle {
  color: rgba(255, 255, 255, 0.6);
}
.atmosphere-row-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.atmosphere-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.atmosphere-icon-glyph {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 26, 47, 0.08);
  font-weight: 700;
  font-size: 0.85rem;
}
/**
 * Stacked mini-icons used when more than one Bluesky client is
 * selected. Each item overlaps the previous by negative margin and
 * uses descending z-index so the leftmost (primary client) sits on
 * top of the stack.
 */
.atmosphere-icon-stack {
  display: inline-flex;
  align-items: center;
}
.atmosphere-icon-stack-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.dark-phase .atmosphere-icon-stack-item {
  border-color: rgba(20, 28, 50, 0.95);
}
.atmosphere-row-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.atmosphere-row-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(18, 26, 47, 0.95);
}
.atmosphere-row-desc {
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.6);
}
.dark-phase .atmosphere-row-name {
  color: rgba(255, 255, 255, 0.95);
}
.dark-phase .atmosphere-row-desc {
  color: rgba(255, 255, 255, 0.6);
}

.atmosphere-row-gear {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 0.5rem;
  color: rgba(18, 26, 47, 0.6);
}
.atmosphere-row-gear:hover {
  background: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.9);
}
.user-bsky-viewer-trigger {
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
}
.dark-phase .atmosphere-row-gear {
  color: rgba(255, 255, 255, 0.65);
}
.dark-phase .atmosphere-row-gear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.atmosphere-row-url {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.user-bsky-viewer-panel {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
  padding-top: 0.7rem;
}

.user-bsky-viewer-panel h3 {
  margin: 0 0 0.45rem;
  color: rgba(18, 26, 47, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
}

.user-bsky-viewer-panel .bsky-client-list {
  margin: 0;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.42);
}

.user-bsky-viewer-panel .bsky-client-row {
  padding: 0.52rem 0.62rem;
}

.user-bsky-viewer-panel .bsky-client-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.user-bsky-viewer-panel .bsky-client-name {
  font-size: 0.88rem;
}

.user-bsky-viewer-panel .bsky-client-domain {
  font-size: 0.72rem;
}

.dark-phase .user-bsky-viewer-trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark-phase .user-bsky-viewer-panel {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .user-bsky-viewer-panel h3 {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .user-bsky-viewer-panel .bsky-client-list {
  background: rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------------------ *
 * Custom links editor
 *
 * Two columns (label | url) plus a small × delete button. Collapses
 * to a single column on narrow screens.
 * ------------------------------------------------------------------ */
.custom-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.custom-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.45rem;
  align-items: center;
}
.custom-link-label,
.custom-link-url {
  min-width: 0;
}
.custom-link-remove {
  appearance: none;
  border: 1px solid rgba(18, 26, 47, 0.15);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(18, 26, 47, 0.7);
}
.custom-link-remove:hover {
  background: rgba(220, 38, 38, 0.08);
  color: rgba(185, 28, 28, 0.95);
  border-color: rgba(220, 38, 38, 0.4);
}
.dark-phase .custom-link-remove {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.dark-phase .custom-link-remove:hover {
  background: rgba(248, 113, 113, 0.15);
  color: rgba(254, 202, 202, 0.95);
}
.custom-link-add {
  align-self: flex-start;
}
.profile-form-interop {
  gap: 0.75rem;
}
.profile-form-interop-textarea {
  min-height: 5.5rem;
  resize: vertical;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .custom-link-row {
    grid-template-columns: 1fr auto;
  }
  .custom-link-url {
    grid-column: 1 / -1;
  }
}

/* ---- Developer SVG icon slot (separate from main avatar) -------------- */
/* Smaller and squarer than the main avatar — this is a developer asset,
   not the public face of the project, so it shouldn't compete visually
   with the avatar block above. */
.profile-form-icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.profile-form-icon-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 26, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.profile-form-icon-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.profile-form-icon-placeholder {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(18, 26, 47, 0.4);
}
.profile-form-icon-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dark-phase .profile-form-icon-preview {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .profile-form-icon-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Two parallel slots — color and B/W — share the same access gate
   and sanitiser, so we render them side-by-side. They wrap to a single
   column on narrow viewports so the upload buttons stay reachable. */
.profile-form-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}
.profile-form-icon-slot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(18, 26, 47, 0.06);
}
.profile-form-icon-slot-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.profile-form-icon-slot-hint {
  margin: 0;
}
/* Render B/W previews with a neutral checker so a black-on-transparent
   mark is still visible without us having to inject CSS into the SVG. */
.profile-form-icon-preview--bw {
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.04) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.dark-phase .profile-form-icon-slot {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-phase .profile-form-icon-preview--bw {
  background-color: rgba(255, 255, 255, 0.06);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
}
.profile-form-icon-resource-actions {
  margin-top: 0.75rem;
}
.profile-form-icon-resource-link {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------------------------ *
 * Modal popup (used by BskyClientPickerModal)
 * ------------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 31, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  /* Keep scroll momentum inside the dialog; don't chain to the page behind. */
  overscroll-behavior: contain;
}
.modal-card {
  width: min(440px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1.4rem 1.4rem 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.dark-phase .modal-card {
  background: rgba(20, 28, 50, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}
.modal-header {
  margin-bottom: 1rem;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.modal-body-text {
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.7);
  margin: 0;
}
.dark-phase .modal-body-text {
  color: rgba(255, 255, 255, 0.7);
}
.modal-footnote {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: rgba(185, 28, 28, 0.95);
}
.dark-phase .modal-footnote {
  color: rgba(254, 202, 202, 0.95);
}
.modal-footer {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.profile-form-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.profile-form-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: rgba(18, 26, 47, 0.78);
}
.profile-form-chip input {
  display: none;
}
.profile-form-chip.is-selected {
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  border-color: rgba(42, 90, 168, 0.92);
}

.profile-form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.profile-form-button-primary {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 0;
  background: #0e1428;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.profile-form-button-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.profile-form-button-secondary {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-block;
}
.profile-form-button-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* Larger size variant used in the form action row so the secondary
 * "View public profile" button matches the proportions of the primary
 * Update / danger Remove buttons sitting next to it. Intentionally
 * scoped so existing compact secondary buttons (modals, custom-link
 * add, file picker label) keep their smaller look. */
.profile-form-button-secondary--lg {
  padding: 0.7rem 1.4rem;
  font-size: inherit;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.profile-form-button-link {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(18, 26, 47, 0.55);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.profile-form-button-danger {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(217, 104, 96, 0.55);
  color: #c25048;
  font: inherit;
  cursor: pointer;
}
.profile-form-button-danger:hover {
  background: rgba(217, 104, 96, 0.08);
}
.profile-form-status {
  font-size: 0.9rem;
}
.profile-form-status--ok {
  color: #2c8854;
}
.profile-form-status--error {
  color: #c25048;
}
.profile-form-hydration-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(194, 80, 72, 0.9);
}

.atstore-migration-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}
.atstore-migration-copy {
  min-width: 0;
}
.atstore-migration-copy h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.2;
}
.atstore-migration-copy p:last-child {
  margin: 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.55;
}
.atstore-migration-actions {
  min-width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.atstore-migration-button {
  white-space: nowrap;
}
.atstore-migration-state {
  width: 100%;
  border-radius: 1rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.atstore-migration-state span {
  display: block;
  color: rgba(18, 26, 47, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
}

.atstore-migration-state p {
  margin: 0.2rem 0 0;
  color: rgba(18, 26, 47, 0.64);
  font-size: 0.82rem;
  line-height: 1.42;
}

.atstore-migration-state--ok {
  border-color: rgba(46, 160, 90, 0.22);
  background: rgba(46, 160, 90, 0.1);
}

.atstore-migration-state--attention {
  border-color: rgba(176, 131, 40, 0.22);
  background: rgba(255, 246, 222, 0.72);
}

.atstore-migration-state--blocked {
  border-color: rgba(194, 80, 72, 0.24);
  background: rgba(194, 80, 72, 0.08);
}

.atstore-migration-preview {
  width: 100%;
  border-radius: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.08);
}
.atstore-migration-preview .text-eyebrow {
  margin: 0 0 0.55rem;
}
.atstore-migration-preview dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}
.atstore-migration-preview div {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.55rem;
}
.atstore-migration-preview dt {
  color: rgba(18, 26, 47, 0.52);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}
.atstore-migration-preview dd {
  margin: 0;
  color: rgba(18, 26, 47, 0.82);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.atstore-migration-issues {
  margin: 0;
  padding-left: 1rem;
  max-width: 280px;
  color: #c25048;
  font-size: 0.86rem;
  line-height: 1.45;
}
.atstore-migration-actions .profile-form-status {
  margin: 0;
  max-width: 280px;
  text-align: right;
}
.atstore-migration-details {
  max-width: 280px;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.atstore-migration-details summary {
  cursor: pointer;
}
.atstore-migration-details code {
  display: block;
  margin-top: 0.35rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dark-phase .atstore-migration-copy p:last-child,
.dark-phase .atstore-migration-details {
  color: rgba(255, 255, 255, 0.62);
}
.dark-phase .atstore-migration-preview {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .atstore-migration-state {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.dark-phase .atstore-migration-state span {
  color: rgba(255, 255, 255, 0.92);
}

.dark-phase .atstore-migration-state p {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .atstore-migration-state--ok {
  border-color: rgba(80, 200, 130, 0.28);
  background: rgba(80, 200, 130, 0.12);
}

.dark-phase .atstore-migration-state--attention {
  border-color: rgba(255, 212, 120, 0.26);
  background: rgba(255, 212, 120, 0.1);
}

.dark-phase .atstore-migration-state--blocked {
  border-color: rgba(255, 110, 100, 0.28);
  background: rgba(255, 110, 100, 0.1);
}

.dark-phase .atstore-migration-preview dt {
  color: rgba(255, 255, 255, 0.56);
}
.dark-phase .atstore-migration-preview dd {
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 720px) {
  .atstore-migration-card {
    grid-template-columns: 1fr;
  }
  .atstore-migration-actions {
    align-items: flex-start;
  }
  .atstore-migration-preview div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .atstore-migration-actions .profile-form-status {
    text-align: left;
  }
}

.profile-update-editor {
  padding: 1.35rem;
  border-radius: 24px;
}
.profile-update-editor-header h2,
.profile-update-editor-header p {
  margin: 0;
}
.profile-update-editor-header h2 {
  font-size: 1.25rem;
}
.profile-update-editor-header p {
  margin-top: 0.25rem;
  color: rgba(18, 26, 47, 0.68);
}
.profile-update-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}
.profile-update-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 0.9rem;
}
.profile-update-actions,
.profile-update-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.profile-update-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}
.profile-update-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.46);
}
.profile-update-list-item h3,
.profile-update-list-item p {
  margin: 0;
}
.profile-update-list-item h3 {
  font-size: 1rem;
}
.profile-update-list-item p {
  margin-top: 0.25rem;
  color: rgba(18, 26, 47, 0.68);
  white-space: pre-wrap;
}
.profile-update-list-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(18, 26, 47, 0.55);
}
.dark-phase .profile-update-editor-header p,
.dark-phase .profile-update-list-item p,
.dark-phase .profile-update-list-meta {
  color: rgba(255, 255, 255, 0.62);
}
.dark-phase .profile-update-list-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .profile-update-form-grid,
  .profile-update-list-item {
    grid-template-columns: 1fr;
  }
  .profile-update-list-item {
    flex-direction: column;
  }
}

/* ---- Sign-in form ---- */
.signin-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.signin-tab {
  min-height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 26, 47, 0.62);
  font: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.signin-tab.is-active {
  background: rgba(255, 255, 255, 0.86);
  color: #0e1428;
  box-shadow: 0 8px 22px rgba(48, 70, 128, 0.08);
}

.signin-rich-header {
  margin-top: 0.35rem;
}

.signin-rich-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: 0;
}

.signin-rich-header p,
.signin-info-line {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.7);
  font-size: 0.96rem;
  line-height: 1.6;
}

.signin-account-list {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.signin-account-list-label,
.signin-manual-label {
  margin: 0;
  padding: 0.8rem 1rem 0.55rem;
  color: rgba(18, 26, 47, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signin-account-switch-form {
  margin: 0;
}

.signin-account-row,
.signin-host-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  border-top: 1px solid rgba(18, 26, 47, 0.07);
  padding: 0.85rem 1rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: background 0.16s ease;
}

.signin-account-row:hover,
.signin-account-row:focus-visible,
.signin-host-row:hover,
.signin-host-row:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  outline: none;
}

.signin-account-avatar,
.signin-host-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff 0%, #9ebff1 100%);
  color: #17315f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
}

.signin-account-avatar img,
.signin-host-mark img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signin-account-avatar-fallback {
  position: relative;
  z-index: 0;
}

.signin-account-avatar--plus {
  overflow: visible;
  background: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.62);
  font-size: 1.3rem;
  font-weight: 500;
}

.signin-account-copy,
.signin-host-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.signin-account-copy strong,
.signin-host-copy strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #0e1428;
  font-size: 0.96rem;
  font-weight: 800;
}

.signin-account-copy span,
.signin-host-copy em {
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.85rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signin-host-domain {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.13rem 0.45rem;
  background: rgba(42, 90, 168, 0.1);
  color: rgba(42, 90, 168, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  max-width: min(50%, 14rem);
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.signin-host-copy .signin-host-name {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.signin-host-chooser {
  display: grid;
  gap: 0.65rem;
}

.signin-host-search {
  position: relative;
  display: flex;
  align-items: center;
}

.signin-host-search svg {
  position: absolute;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: rgba(18, 26, 47, 0.52);
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.signin-host-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(18, 26, 47, 0.1);
  border-radius: 999px;
  padding: 0.72rem 1rem 0.72rem 2.55rem;
  background: rgba(255, 255, 255, 0.64);
  color: #0e1428;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.signin-host-search input:focus {
  border-color: rgba(42, 90, 168, 0.5);
  box-shadow: 0 0 0 3px rgba(42, 90, 168, 0.08);
}

.signin-host-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signin-host-filters label {
  cursor: pointer;
}

.signin-host-filters input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signin-host-filters span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid rgba(18, 26, 47, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(18, 26, 47, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.signin-host-filters input:checked + span {
  border-color: rgba(42, 90, 168, 0.22);
  background: rgba(42, 90, 168, 0.1);
  color: #254a9e;
}

.signin-host-filters input:focus-visible + span {
  outline: 2px solid rgba(42, 90, 168, 0.55);
  outline-offset: 2px;
}

.signin-host-results-status {
  min-height: 1rem;
  color: rgba(18, 26, 47, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.signin-host-list {
  max-height: min(46vh, 30rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.signin-host-row.is-recommended {
  background: rgba(42, 90, 168, 0.075);
}

.signin-host-recommendation {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  margin: 0.16rem 0 0.1rem;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(44, 136, 84, 0.12);
  color: #2c7650;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signin-host-empty {
  padding: 1rem;
  color: rgba(18, 26, 47, 0.6);
  font-size: 0.88rem;
  text-align: center;
}

.signin-host-privacy-note {
  margin: 0;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.8rem;
  line-height: 1.5;
}

.signin-account-status {
  flex: 0 0 auto;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.signin-form-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(18, 26, 47, 0.65);
}
.dark-phase .signin-form-label {
  color: rgba(255, 255, 255, 0.65);
}
.signin-form-row {
  display: flex;
  gap: 0.5rem;
}

.signin-handle-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.signin-handle-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  color: rgba(18, 26, 47, 0.48);
  pointer-events: none;
}

.signin-handle-prefix img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
  opacity: 0.56;
}

.signin-form-input {
  flex: 1;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.65);
  font: inherit;
  font-size: 1rem;
  outline: none;
  color: #0e1428;
}

.signin-handle-field .signin-form-input {
  padding-left: 2.75rem;
}

.signin-form-input:focus {
  border-color: rgba(42, 90, 168, 0.6);
}
.signin-form-submit {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 0;
  background: #0e1428;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.signin-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signin-flow--rich .signin-form {
  margin-top: 0.25rem;
}

.signin-flow--rich .signin-form-row {
  flex-direction: column;
  gap: 0.75rem;
}

.signin-flow--rich .signin-form-submit {
  width: 100%;
  background: #254a9e;
  font-weight: 700;
}

.signin-flow--rich .signin-form-submit:hover {
  background: #173a7f;
}

.signin-flow--rich .signin-form-preview {
  position: static;
  z-index: auto;
  width: 100%;
  margin-top: 0.55rem;
}

.signin-form-error {
  color: #c25048;
  font-size: 0.85rem;
  margin: 0;
}
.signin-form-hint {
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.55);
  margin: 0;
}
.dark-phase .signin-form-hint {
  color: rgba(255, 255, 255, 0.55);
}

.admin-verify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 0.8rem;
}
.admin-verify-form-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.admin-verify-form-row .signin-form-input {
  min-width: 0;
}
@media (max-width: 640px) {
  .admin-verify-form-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ---- Sign-in handle preview dropdown ---- */
/* IMPORTANT: do NOT set z-index here. position:relative alone is enough
   to anchor the absolutely positioned dropdown without creating a stacking
   context that would trap the dropdown below higher-z-index siblings
   (footer logo, footer links, nav, etc.). */
.signin-form-preview-wrap {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
/* Dropdown floats above page chrome (nav z-index 101). */
.signin-form-preview {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  padding: 0.4rem;
  display: block;
  font-size: 0.92rem;
  color: #0e1428;
  isolation: isolate;
}

.signin-form-preview[hidden] {
  display: none !important;
}

/* Lightly translucent surface — readable but still has a hint of glass. */
.signin-form-preview.glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 26, 47, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(14, 20, 40, 0.22),
    0 6px 16px rgba(14, 20, 40, 0.1);
}
.dark-phase .signin-form-preview {
  color: #f3f5fb;
}
.dark-phase .signin-form-preview.glass {
  background: rgba(22, 28, 48, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.signin-form-preview-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(52vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.signin-form-preview-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.signin-form-preview-row:hover,
.signin-form-preview-row:focus-visible {
  background: rgba(42, 90, 168, 0.1);
  outline: none;
}
.dark-phase .signin-form-preview-row:hover,
.dark-phase .signin-form-preview-row:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}
.signin-form-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9d8f5 0%, #a8c4f0 100%);
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.signin-form-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.signin-form-preview-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signin-form-preview-handle {
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dark-phase .signin-form-preview-handle {
  color: rgba(255, 255, 255, 0.55);
}
.signin-form-preview-status {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.65);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.dark-phase .signin-form-preview-status {
  color: rgba(255, 255, 255, 0.6);
}
.signin-form-preview-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(18, 26, 47, 0.25);
  border-top-color: rgba(18, 26, 47, 0.65);
  animation: signin-spin 0.7s linear infinite;
}
.dark-phase .signin-form-preview-spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.7);
}

/* Locked-account chip. Overlays the input at the SAME height so selecting a
   match doesn't grow the field (which used to stretch the submit button). */
.signin-selected {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.4rem 0 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(42, 90, 168, 0.5);
  overflow: hidden;
}

.signin-selected[hidden] {
  display: none;
}

.signin-selected .signin-form-preview-avatar {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
}

.signin-selected .signin-form-preview-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Keep the chip to a single line — the avatar + name is enough confirmation. */
.signin-selected .signin-form-preview-handle {
  display: none;
}

.signin-selected .signin-form-preview-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.signin-selected-clear {
  flex: 0 0 auto;
  margin-left: auto;
}

.signin-selected-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 26, 47, 0.07);
  color: rgba(18, 26, 47, 0.56);
  font: inherit;
  font-weight: 700;
}

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

.signin-page-section.login-picker-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 7vw, 4.5rem) 0;
}

.login-picker-container {
  max-width: 720px;
}

.login-picker-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-bottom: 1rem;
}

.login-picker-title-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.login-picker-title img {
  width: clamp(2rem, 4vw, 2.45rem);
  height: clamp(2rem, 4vw, 2.45rem);
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
}

.login-picker-title span {
  min-width: 0;
}

.login-picker-card {
  display: grid;
  gap: 1rem;
}

.signin-page-card.login-picker-card {
  margin-top: 0;
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.login-picker-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
}

.login-picker-app-copy {
  min-width: 0;
}

.login-picker-app h2 {
  margin: 0;
  color: #0e1428;
  font-size: 1.18rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.login-picker-app p {
  margin: 0.15rem 0 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.56);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-picker-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-picker-app-mark,
.login-picker-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff 0%, #9ebff1 100%);
  color: #17315f;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.login-picker-app-mark {
  width: 3.1rem;
  height: 3.1rem;
  font-size: 1.05rem;
}

.login-picker-avatar {
  width: 2.65rem;
  height: 2.65rem;
  font-size: 0.95rem;
}

.login-picker-app-mark img,
.login-picker-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-picker-status {
  justify-self: end;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: rgba(42, 90, 168, 0.1);
  color: rgba(42, 90, 168, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.login-picker-status.is-trusted {
  background: rgba(44, 136, 84, 0.12);
  color: #2c7650;
}

.login-picker-status.is-development {
  background: rgba(42, 90, 168, 0.1);
  color: rgba(42, 90, 168, 0.82);
}

.login-picker-status.is-unverified {
  background: rgba(226, 151, 60, 0.14);
  color: #94601f;
}

.login-picker-status.is-blocked {
  background: rgba(217, 104, 96, 0.14);
  color: #a9443e;
}

.login-picker-notice {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-picker-notice strong {
  color: #0e1428;
}

.login-picker-notice--unverified {
  background: rgba(255, 247, 232, 0.72);
}

.login-picker-account-list {
  overflow: hidden;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
}

.login-picker-account-list form,
.login-picker-secondary {
  margin: 0;
}

.login-picker-account-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.45rem;
  border: 0;
  border-top: 1px solid rgba(18, 26, 47, 0.07);
  padding: 0.9rem 1rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: background 0.16s ease;
}

.login-picker-account-list > .login-picker-account-row:first-child {
  border-top: 0;
}

.login-picker-account-row:hover,
.login-picker-account-row:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.login-picker-account-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.login-picker-account-copy strong {
  overflow: hidden;
  color: #0e1428;
  font-size: 0.98rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-picker-account-copy span,
.login-picker-footnote,
.login-picker-error .text-body-sm {
  color: rgba(18, 26, 47, 0.6);
  font-size: 0.88rem;
  line-height: 1.55;
}

.login-picker-footnote {
  text-align: center;
  text-wrap: balance;
}

.login-picker-account-action {
  flex: 0 0 auto;
  padding-right: 0.25rem;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .signin-page-section.login-picker-section {
    padding: max(1rem, env(safe-area-inset-top)) 0
      max(1rem, env(safe-area-inset-bottom));
  }

  .login-picker-container {
    padding: 0 0.85rem;
  }

  .login-picker-title {
    gap: 0.28em;
    margin-bottom: 0.8rem;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.05;
  }

  .login-picker-title-brand {
    gap: 0.38rem;
  }

  .login-picker-title img {
    width: 2rem;
    height: 2rem;
  }

  .signin-page-card.login-picker-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .login-picker-app {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.82rem;
    border-radius: 18px;
  }

  .login-picker-app-mark {
    width: 2.65rem;
    height: 2.65rem;
  }

  .login-picker-status {
    grid-column: 2;
    justify-self: start;
    margin-top: -0.18rem;
  }

  .login-picker-notice {
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    font-size: 0.86rem;
  }

  .login-picker-account-row {
    gap: 0.68rem;
    min-height: 4.25rem;
    padding: 0.8rem;
  }

  .login-picker-avatar {
    width: 2.45rem;
    height: 2.45rem;
  }

  .login-picker-account-copy strong {
    font-size: 0.94rem;
  }

  .login-picker-account-copy span {
    line-height: 1.35;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .login-picker-card {
    gap: 0.8rem;
  }

  .login-picker-account-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .login-picker-account-action {
    display: none;
  }

  .login-picker-account-copy > span {
    display: none;
  }
}

.login-picker-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.login-picker-secondary-symbol {
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
}

.login-picker-add-account > summary {
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}

.login-picker-add-account > summary::-webkit-details-marker {
  display: none;
}

.login-picker-add-account-body {
  margin-top: 0.75rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 20px;
  padding: clamp(0.8rem, 2vw, 1rem);
  background: rgba(255, 255, 255, 0.28);
}

.login-picker-empty {
  position: relative;
}

.login-picker-footnote {
  margin: 0;
}

.login-picker-error h2 {
  margin: 0 0 0.55rem;
  color: #0e1428;
  font-size: 1.25rem;
}

.signin-host-list {
  display: grid;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.signin-host-row--all {
  background: rgba(255, 255, 255, 0.22);
}

.signin-host-row--all .signin-host-mark {
  background: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.6);
}

.dark-phase .signin-tab,
.dark-phase .signin-rich-header p,
.dark-phase .signin-info-line,
.dark-phase .signin-account-list-label,
.dark-phase .signin-manual-label,
.dark-phase .signin-account-copy span,
.dark-phase .signin-host-copy em,
.dark-phase .signin-account-status {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .signin-tab.is-active,
.dark-phase .signin-rich-header h2,
.dark-phase .signin-account-copy strong,
.dark-phase .signin-host-copy strong {
  color: #f3f5fb;
}

.dark-phase .signin-tabs,
.dark-phase .signin-account-list,
.dark-phase .signin-host-list,
.dark-phase .signin-selected {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-phase .signin-tab.is-active,
.dark-phase .signin-account-row:hover,
.dark-phase .signin-account-row:focus-visible,
.dark-phase .signin-host-row:hover,
.dark-phase .signin-host-row:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.dark-phase .signin-host-search input,
.dark-phase .login-picker-add-account-body {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f5fb;
}

.dark-phase .signin-host-search svg {
  stroke: rgba(255, 255, 255, 0.58);
}

.dark-phase .signin-host-filters span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .signin-host-filters input:checked + span {
  border-color: rgba(125, 166, 236, 0.35);
  background: rgba(125, 166, 236, 0.14);
  color: #c7d9ff;
}

.dark-phase .signin-host-results-status,
.dark-phase .signin-host-privacy-note,
.dark-phase .signin-host-empty {
  color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 560px) {
  .signin-account-status {
    display: none;
  }

  .signin-account-copy span,
  .signin-host-copy em {
    white-space: normal;
  }
}

/* ================================
   Account menu (explore-page nav rail)
   ================================ */

/* Fixed rail that hangs directly under the nav, right-aligned, so the
 * trigger sits visually "underneath the Explore button". The 0.55rem
 * offset adds a small visual gap so the rail's contents don't crash
 * into the nav's bottom border (especially once .nav.scrolled paints
 * its glass background). Sits above the nav so the dropdown can paint
 * over page content. */
.account-menu-rail {
  position: fixed;
  top: calc(var(--nav-bar-height) + 0.55rem);
  right: 1.5rem;
  z-index: 110;
  pointer-events: none;
}

.account-menu-rail .account-menu {
  pointer-events: auto;
}

.account-menu,
.account-menu-signin {
  pointer-events: auto;
}

.account-menu {
  position: relative;
  display: inline-block;
}

/* Signed-out variant: keep the global nav hit target consistent while
 * leaving the account action quieter than the active page pill. */
.account-menu-signin {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(14, 20, 40, 0.08);
  cursor: pointer;
  color: #0e1428;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.account-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(14, 20, 40, 0.12);
}

.account-menu-trigger-label {
  max-width: min(24vw, 12rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-trigger--signed-out {
  opacity: 0.7;
}

.account-menu-trigger:focus-visible {
  outline: 2px solid rgba(80, 130, 220, 0.6);
  outline-offset: 2px;
}

.account-menu-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #aac6f0 0%, #7da4dc 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-menu-avatar-initial {
  font-family: "IBM Plex Mono", monospace;
  /* Anti-alias against the gradient so the letter doesn't look fuzzy */
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.account-menu-chevron {
  font-size: 0.7rem;
  line-height: 1;
  color: rgba(18, 26, 47, 0.7);
  transition: transform 0.15s ease;
}

.account-menu-trigger[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}

.account-menu-popup {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 240px;
  padding: 0.45rem;
  /* Same z-strategy as the sign-in preview: sit above hero text and
   * the footer regardless of any sibling stacking contexts. */
  z-index: 1000;
  isolation: isolate;
  /* Override the default .glass tint for higher legibility — the menu
   * sits over arbitrary hero gradients and we don't want the items to
   * disappear into the sky. */
}
.account-menu-popup.glass {
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(18, 26, 47, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(14, 20, 40, 0.22),
    0 6px 16px rgba(14, 20, 40, 0.1);
}

.account-menu-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem 0.4rem;
}

.account-menu-header-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(18, 26, 47, 0.55);
  font-family: "IBM Plex Mono", monospace;
}

.account-menu-header-handle {
  font-size: 0.92rem;
  color: #0e1428;
  font-weight: 600;
  word-break: break-all;
}

.account-menu-header-host {
  font-size: 0.82rem;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.3;
}

.account-menu-divider {
  height: 1px;
  margin: 0.25rem 0.5rem;
  background: rgba(18, 26, 47, 0.1);
}

.account-menu-form {
  margin: 0;
  display: contents;
}

.account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0e1428;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s ease;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(18, 26, 47, 0.06);
  outline: none;
}

.account-menu-item-primary {
  color: #fff;
  background: linear-gradient(135deg, #4a7bd9 0%, #2c5db4 100%);
  font-weight: 600;
  text-align: center;
  margin-top: 0.25rem;
}

.account-menu-item-primary:hover,
.account-menu-item-primary:focus-visible {
  background: linear-gradient(135deg, #5a8be9 0%, #3c6dc4 100%);
}

.account-menu-item-danger {
  color: rgba(146, 32, 32, 0.95);
}

.account-menu-item-danger:hover,
.account-menu-item-danger:focus-visible {
  background: rgba(146, 32, 32, 0.08);
}

.account-menu-hint {
  margin: 0;
  padding: 0.6rem 0.7rem 0.45rem;
  font-size: 0.82rem;
  color: rgba(18, 26, 47, 0.7);
  line-height: 1.4;
}

/* --- Account switcher (remembered accounts on this device) --- */

.account-menu-section-label {
  padding: 0.6rem 0.7rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.55);
}

.account-menu-switch-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.account-menu-switch-form {
  flex: 1;
  display: contents;
}

.account-menu-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  padding: 0.45rem 0.7rem;
}

.account-menu-switch-btn .account-menu-avatar {
  width: 26px;
  height: 26px;
}

.account-menu-switch-handle {
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-forget-form {
  display: flex;
  align-items: center;
}

.account-menu-forget-btn {
  background: transparent;
  border: none;
  color: rgba(18, 26, 47, 0.45);
  font-size: 1.1rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  margin-right: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-forget-btn:hover,
.account-menu-forget-btn:focus-visible {
  background: rgba(146, 32, 32, 0.08);
  color: rgba(146, 32, 32, 0.95);
  outline: none;
}

.account-menu-item-add {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.78);
}

.account-menu-add-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(18, 26, 47, 0.08);
  font-size: 0.95rem;
  line-height: 1;
}

/* Dark-phase variants — match the sign-in preview palette so both
 * float on the same hero gradients without re-tinting work. */
.dark-phase .account-menu-trigger {
  color: #f3f5fb;
  background: rgba(22, 28, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dark-phase .account-menu-trigger:hover {
  background: rgba(34, 42, 68, 0.7);
}

.dark-phase .account-menu-chevron {
  color: rgba(255, 255, 255, 0.75);
}

.dark-phase .account-menu-popup.glass {
  background: rgba(22, 28, 48, 0.94);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.dark-phase .account-menu-header-label {
  color: rgba(255, 255, 255, 0.6);
}

.dark-phase .account-menu-header-handle {
  color: #f3f5fb;
}

.dark-phase .account-menu-header-host {
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .account-menu-divider {
  background: rgba(255, 255, 255, 0.12);
}

.dark-phase .account-menu-item {
  color: #f3f5fb;
}

.dark-phase .account-menu-item:hover,
.dark-phase .account-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.dark-phase .account-menu-item-danger {
  color: #f4a3a3;
}

.dark-phase .account-menu-item-danger:hover,
.dark-phase .account-menu-item-danger:focus-visible {
  background: rgba(244, 163, 163, 0.12);
}

.dark-phase .account-menu-hint {
  color: rgba(255, 255, 255, 0.7);
}

.dark-phase .account-menu-section-label {
  color: rgba(255, 255, 255, 0.55);
}

.dark-phase .account-menu-forget-btn {
  color: rgba(255, 255, 255, 0.55);
}

.dark-phase .account-menu-forget-btn:hover,
.dark-phase .account-menu-forget-btn:focus-visible {
  background: rgba(244, 163, 163, 0.18);
  color: #f4a3a3;
}

.dark-phase .account-menu-item-add {
  color: rgba(255, 255, 255, 0.85);
}

.dark-phase .account-menu-add-glyph {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 0.4rem;
  }

  .account-menu-trigger-label {
    display: none;
  }

  .account-menu-popup {
    min-width: 220px;
  }
}

.home-section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-section-cta-button {
  gap: 0.55rem;
  font-weight: 600;
}

.home-section-cta-button:hover .home-explore-cta-arrow {
  transform: translateX(3px);
}

.home-explore-cta-arrow {
  transition: transform 0.18s ease;
}

/* ================================
   Account-first pages
   ================================ */

.signin-page-section,
.account-home-section,
.hosts-section {
  padding: 8.5rem 0 4rem;
}

.signin-page-container,
.account-home-container {
  max-width: 920px;
}

.hosts-container {
  max-width: 1200px;
}

.signin-page-card {
  margin-top: 2rem;
  padding: 1.75rem;
  position: relative;
  z-index: 50;
}

.account-home-header,
.hosts-header {
  margin-bottom: 2rem;
}

.hosts-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.hosts-header .text-body {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.directory-register-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
}

.directory-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  color: rgba(18, 26, 47, 0.72);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 26, 47, 0.08);
  box-shadow: 0 8px 20px rgba(48, 70, 128, 0.07);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.directory-register-button:hover {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 26, 47, 0.13);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(48, 70, 128, 0.09);
}

.directory-register-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(18, 26, 47, 0.08);
  line-height: 1;
  font-size: 0.82rem;
}

.account-home-card,
.account-home-details,
.host-card,
.hosts-empty {
  padding: 1.5rem;
}

.account-dashboard-container {
  max-width: 980px;
}

.account-dashboard-page-head {
  position: relative;
  z-index: 120;
  max-width: none;
  margin: 0 0 1rem;
  overflow: visible;
}

.account-dashboard-page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.account-dashboard-page-head h1 {
  margin: 0;
  color: #0e1428;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.account-dashboard-page-head-action {
  position: relative;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.account-dashboard-upgrade-anchor {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.8rem;
}

.account-dashboard-page-head p:not(.text-eyebrow) {
  max-width: 660px;
  margin: 0.7rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.55;
}

.account-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
  scroll-margin-top: 6rem;
  overflow: visible;
}

.account-dashboard-hero-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.account-dashboard-identity {
  flex: 1 1 0;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  min-height: 5.15rem;
  min-width: 0;
  max-width: 100%;
}

.account-dashboard-identity .text-eyebrow {
  margin: 0;
  line-height: 1.15;
}

.account-dashboard-identity h1,
.account-dashboard-identity h2 {
  margin: 0;
  color: #0e1428;
  font-size: clamp(1.55rem, 3vw, 2.08rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.account-dashboard-identity .account-home-handle {
  margin: 0;
  line-height: 1.15;
}

.account-dashboard-identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.account-dashboard-hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.account-dashboard-hero-side p {
  max-width: 24rem;
  margin: 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.45;
  text-align: right;
}

.account-dashboard-profile-source {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
  max-width: 27rem;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.42);
}

.account-dashboard-profile-source .text-eyebrow,
.account-dashboard-profile-source strong,
.account-dashboard-profile-source p {
  margin: 0;
  text-align: right;
}

.account-dashboard-profile-source strong {
  display: block;
  margin-top: 0.12rem;
  color: #0e1428;
  font-size: 1rem;
  line-height: 1.15;
}

.account-dashboard-profile-source p:not(.text-eyebrow) {
  margin-top: 0.32rem;
  font-size: 0.9rem;
}

.account-dashboard-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 24rem);
  margin: 0;
}

.account-dashboard-profile-facts div {
  min-width: 0;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 16px;
  padding: 0.65rem 0.72rem;
  background: rgba(255, 255, 255, 0.46);
}

.account-dashboard-profile-facts dt {
  color: rgba(18, 26, 47, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-dashboard-profile-facts dd {
  margin: 0.18rem 0 0;
  color: #0e1428;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.account-dashboard-sidebar {
  position: sticky;
  top: 6rem;
}

.account-dashboard-nav {
  display: grid;
  gap: 0.45rem;
}

.account-dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.44);
  color: rgba(18, 26, 47, 0.75);
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.account-dashboard-nav-link:hover,
.account-dashboard-nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(42, 90, 168, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: #0e1428;
  outline: none;
}

.account-dashboard-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1185fe;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 133, 254, 0.18);
}

.account-dashboard-nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.account-dashboard-main {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
  min-width: 0;
}

.account-dashboard-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}

.account-dashboard-primary-grid > .account-dashboard-panel {
  min-width: 0;
}

.account-dashboard-panel {
  scroll-margin-top: 6rem;
  padding: 1rem;
}

.account-dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.account-dashboard-section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  min-width: 0;
}

.account-dashboard-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #173f82;
  box-shadow: 0 8px 20px rgba(48, 70, 128, 0.07);
}

.account-dashboard-section-icon svg {
  width: 1.12rem;
  height: 1.12rem;
}

.account-dashboard-section-head h2 {
  margin: 0.15rem 0 0;
  color: #0e1428;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.1;
}

.account-dashboard-section-head p:not(.text-eyebrow) {
  max-width: 720px;
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.55;
}

.account-dashboard-account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 22px;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.44)
  );
  box-shadow: 0 12px 30px rgba(48, 70, 128, 0.08);
}

.account-dashboard-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.account-dashboard-avatar {
  width: 5.15rem;
  height: 5.15rem;
  box-shadow: 0 12px 24px rgba(18, 26, 47, 0.12);
}

.account-dashboard-profile h3 {
  margin: 0;
  color: #0e1428;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.account-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.account-dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  min-height: 2.45rem;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.account-dashboard-button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.account-dashboard-button--primary {
  background: #173f82;
  border-color: rgba(23, 63, 130, 0.18);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 63, 130, 0.16);
}

.account-dashboard-button--secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.76);
}

.account-dashboard-button--disabled {
  cursor: default;
  opacity: 0.62;
}

.account-dashboard-button:hover,
.account-dashboard-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.account-dashboard-button--disabled:hover,
.account-dashboard-button--disabled:focus-visible {
  transform: none;
  outline: none;
}

.account-dashboard-button--primary:hover,
.account-dashboard-button--primary:focus-visible {
  background: #0f326d;
  box-shadow: 0 14px 28px rgba(23, 63, 130, 0.2);
}

.account-dashboard-button--secondary:hover,
.account-dashboard-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(18, 26, 47, 0.13);
  color: #0e1428;
}

.account-dashboard-button--secondary.account-dashboard-button--disabled:hover,
.account-dashboard-button--secondary.account-dashboard-button--disabled:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.76);
}

.account-microblog-viewer {
  position: relative;
  z-index: 140;
}

.account-microblog-viewer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  min-height: 2.45rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 26, 47, 0.76);
  font: inherit;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 26, 47, 0.06);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.account-microblog-viewer-button:hover,
.account-microblog-viewer-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(18, 26, 47, 0.13);
  box-shadow: 0 14px 28px rgba(18, 26, 47, 0.09);
  outline: none;
}

.account-microblog-viewer-atmosphere,
.account-microblog-viewer-client,
.account-microblog-viewer-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.account-microblog-viewer-atmosphere {
  width: 1.25rem;
  height: 1.25rem;
}

.account-microblog-viewer-atmosphere img {
  width: 1.12rem;
  height: 1.12rem;
  display: block;
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%)
    hue-rotate(195deg) brightness(95%);
}

.account-microblog-viewer-client {
  width: 1.26rem;
  height: 1.26rem;
  border-radius: 0.38rem;
}

.account-microblog-viewer-client img,
.account-microblog-viewer-option-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-microblog-viewer-separator {
  color: rgba(18, 26, 47, 0.34);
  transform: translateY(-0.03rem);
}

.account-microblog-viewer-popover {
  position: absolute;
  z-index: 500;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  border: 1px solid rgba(18, 26, 47, 0.1);
  border-radius: 1.05rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0e1428;
  box-shadow: 0 24px 58px rgba(18, 26, 47, 0.2);
  backdrop-filter: blur(18px);
  text-align: left;
}

.account-microblog-viewer-popover::before {
  content: "";
  position: absolute;
  top: -0.42rem;
  right: 1.15rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 1px solid rgba(18, 26, 47, 0.1);
  border-left: 1px solid rgba(18, 26, 47, 0.1);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.account-microblog-viewer-popover-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.account-microblog-viewer-popover-head h3 {
  margin: 0;
  color: #0e1428;
  font-size: 0.98rem;
  line-height: 1.15;
}

.account-microblog-viewer-popover-head p {
  margin: 0.28rem 0 0;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.82rem;
  line-height: 1.35;
}

.account-microblog-viewer-close {
  width: 1.8rem;
  height: 1.8rem;
}

.account-microblog-viewer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 0.85rem;
  padding: 0.72rem 0.78rem;
  background: rgba(248, 250, 255, 0.76);
}

.account-microblog-viewer-toggle strong,
.account-microblog-viewer-option-copy strong {
  display: block;
  color: #0e1428;
  font-size: 0.85rem;
  line-height: 1.15;
}

.account-microblog-viewer-toggle small,
.account-microblog-viewer-option-copy small {
  display: block;
  margin-top: 0.18rem;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.74rem;
  line-height: 1.25;
}

.account-microblog-viewer-toggle input {
  accent-color: #173f82;
  flex: 0 0 auto;
}

.account-microblog-viewer-options {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.62rem;
}

.account-microblog-viewer-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.66rem;
  width: 100%;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 0.85rem;
  padding: 0.62rem 0.68rem;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.account-microblog-viewer-option:hover,
.account-microblog-viewer-option:focus-visible {
  transform: translateY(-1px);
  background: rgba(244, 248, 255, 0.94);
  border-color: rgba(23, 63, 130, 0.18);
  outline: none;
}

.account-microblog-viewer-option.is-selected {
  background: rgba(216, 228, 255, 0.56);
  border-color: rgba(23, 63, 130, 0.22);
}

.account-microblog-viewer-option-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.58rem;
  box-shadow: 0 7px 16px rgba(18, 26, 47, 0.08);
}

.account-microblog-viewer-option-copy {
  min-width: 0;
}

.account-microblog-viewer-option-dot {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid rgba(18, 26, 47, 0.2);
  border-radius: 999px;
}

.account-microblog-viewer-option.is-selected
  .account-microblog-viewer-option-dot {
  border-color: #173f82;
  background: #173f82;
  box-shadow: 0 0 0 0.2rem rgba(23, 63, 130, 0.12);
}

.account-microblog-viewer-status {
  margin: 0.62rem 0 0;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.78rem;
  font-weight: 750;
}

.account-profile-edit-backdrop {
  z-index: 260;
  align-items: center;
  overflow-y: auto;
  padding: 1rem;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(116, 159, 255, 0.18),
      transparent 36%
    ),
    rgba(12, 20, 42, 0.32);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.account-profile-edit-modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 18px 50px rgba(48, 70, 128, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(30px) saturate(1.08);
  -webkit-backdrop-filter: blur(30px) saturate(1.08);
}

.account-profile-edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.3rem 1.3rem 0.35rem;
  border-bottom: 0;
  background: transparent;
}

.account-profile-edit-header .text-eyebrow,
.account-profile-edit-header .modal-title,
.account-profile-edit-header .modal-body-text {
  margin-left: 0;
  margin-right: 0;
}

.account-profile-edit-header .modal-title {
  margin-top: 0.12rem;
  font-size: 1.2rem;
}

.account-profile-edit-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(18, 26, 47, 0.62);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.account-profile-edit-close:hover,
.account-profile-edit-close:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  color: #0e1428;
  outline: none;
}

.account-profile-edit-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.8rem 1.3rem 1.3rem;
  background: transparent;
}

.account-profile-edit-body .user-profile-client-form {
  gap: 0.85rem;
}

.account-profile-edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 8px 20px rgba(48, 70, 128, 0.04);
}

.account-profile-edit-avatar-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.35rem;
  height: 4.35rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(17, 133, 254, 0.28),
    rgba(255, 255, 255, 0.34)
  );
  color: #173f82;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(18, 26, 47, 0.1);
}

.account-profile-edit-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-profile-edit-avatar-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.account-profile-edit-avatar-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.15rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 999px;
  padding: 0.46rem 0.85rem;
  background: rgba(255, 255, 255, 0.48);
  color: #173f82;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.account-profile-edit-avatar-button:hover,
.account-profile-edit-avatar-button:focus-within {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 63, 130, 0.18);
}

.account-profile-edit-avatar-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.account-profile-edit-body .account-profile-edit-input {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.36);
  color: #0e1428;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 8px 18px rgba(48, 70, 128, 0.05);
}

.account-profile-edit-body .account-profile-edit-input:focus {
  border-color: rgba(23, 63, 130, 0.42);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 0 0 3px rgba(23, 63, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.account-profile-edit-body .account-profile-edit-input::placeholder {
  color: rgba(18, 26, 47, 0.46);
}

.account-profile-edit-body .user-profile-bio-input {
  min-height: 5.25rem;
}

.account-profile-edit-link-settings {
  display: grid;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  padding: 0.78rem;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 8px 20px rgba(48, 70, 128, 0.04);
}

.account-profile-edit-link-settings .profile-form-hint {
  margin: 0;
}

.account-profile-edit-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 15px;
  padding: 0.68rem 0.72rem;
  background: rgba(255, 255, 255, 0.34);
}

.account-profile-edit-toggle-copy {
  min-width: 0;
}

.account-profile-edit-toggle-copy strong,
.account-profile-edit-toggle-copy small {
  display: block;
}

.account-profile-edit-toggle-copy strong {
  color: #0e1428;
  font-size: 0.9rem;
  line-height: 1.15;
}

.account-profile-edit-toggle-copy small {
  margin-top: 0.18rem;
  color: rgba(18, 26, 47, 0.56);
  font-size: 0.76rem;
  line-height: 1.3;
}

.account-profile-edit-switch {
  position: relative;
  display: inline-flex;
  width: 2.55rem;
  height: 1.48rem;
  flex: 0 0 auto;
}

.account-profile-edit-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}

.account-profile-edit-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(18, 26, 47, 0.1);
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.11);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.account-profile-edit-switch span::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(18, 26, 47, 0.16);
  transition: transform 0.16s ease;
}

.account-profile-edit-switch input:checked + span {
  border-color: rgba(23, 63, 130, 0.28);
  background: #173f82;
}

.account-profile-edit-switch input:checked + span::after {
  transform: translateX(1.07rem);
}

.account-profile-edit-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(23, 63, 130, 0.12);
}

.account-profile-edit-website-field {
  margin: 0;
}

.account-profile-edit-body .user-profile-save-row {
  position: sticky;
  bottom: -1.3rem;
  justify-content: flex-end;
  margin: 0.1rem -1.3rem -1.3rem;
  padding: 0.8rem 1.3rem 1.3rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(218, 228, 249, 0.88) 32%,
    rgba(218, 228, 249, 0.94)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.account-profile-edit-body .profile-form-button-primary {
  background: #173f82;
  font-weight: 800;
}

.account-profile-edit-body .profile-form-button-primary:hover,
.account-profile-edit-body .profile-form-button-primary:focus-visible {
  background: #0f326d;
  outline: none;
}

.account-dashboard-info-grid,
.account-dashboard-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.account-dashboard-info-grid--summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.account-dashboard-info-grid + .account-dashboard-empty,
.account-dashboard-info-grid + .account-dashboard-saved-list {
  margin-top: 0.75rem;
}

.account-dashboard-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-dashboard-info-card,
.account-dashboard-readiness-card,
.account-dashboard-empty,
.account-dashboard-app,
.account-dashboard-saved-account,
.account-dashboard-host-router {
  padding: 1rem;
}

.account-dashboard-info-card {
  min-height: 7.4rem;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.38);
}

.account-dashboard-info-card h3,
.account-dashboard-readiness-card h3 {
  margin: 0.65rem 0 0;
  color: #0e1428;
  font-size: 1.05rem;
}

.account-dashboard-empty h3 {
  margin: 0.05rem 0 0;
  color: #0e1428;
  font-size: 1.05rem;
}

.account-dashboard-info-card p,
.account-dashboard-readiness-card p,
.account-dashboard-empty p,
.account-dashboard-host-router p {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.5;
}

.account-dashboard-host-router {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 0.75rem;
  padding: 1rem;
}

.account-dashboard-host-router h2 {
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.05;
}

.account-dashboard-host-router-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
}

.account-dashboard-host-router-copy {
  min-width: 0;
}

.account-dashboard-host-router-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.8rem;
  min-width: 0;
}

.account-dashboard-host-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #173f82;
  box-shadow: 0 8px 20px rgba(48, 70, 128, 0.07);
}

.account-dashboard-host-orb svg {
  width: 1.12rem;
  height: 1.12rem;
}

.account-dashboard-host-router-details {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
  padding-top: 0.85rem;
}

.account-dashboard-host-router-details summary {
  cursor: pointer;
  color: rgba(18, 26, 47, 0.78);
  font-weight: 800;
}

.account-dashboard-host-router-details p {
  max-width: 46rem;
}

.account-dashboard-info-top,
.account-dashboard-readiness-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(18, 26, 47, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-dashboard-info-top {
  justify-content: space-between;
}

.account-dashboard-info-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.account-dashboard-info-label svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #173f82;
}

.account-dashboard-text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #1f4f96;
  font-weight: 800;
  text-decoration: none;
}

.account-dashboard-text-link:hover {
  text-decoration: underline;
}

.account-dashboard-details {
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.account-dashboard-empty {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}

.account-dashboard-empty--visual {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.72rem;
}

.account-dashboard-empty-actions,
.account-dashboard-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.account-dashboard-empty--visual .account-dashboard-empty-actions {
  grid-column: 2;
}

.account-dashboard-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(17, 133, 254, 0.1);
  border: 1px solid rgba(17, 133, 254, 0.12);
  color: #173f82;
}

.account-dashboard-empty-icon svg {
  width: 1.16rem;
  height: 1.16rem;
}

.account-dashboard-panel-actions {
  margin-top: 0.85rem;
}

.account-dashboard-app-list,
.account-dashboard-saved-list {
  display: grid;
  gap: 0.55rem;
}

.account-dashboard-browser-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(18, 26, 47, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
}

.account-dashboard-browser-summary + .account-dashboard-saved-list {
  margin-top: 0.6rem;
}

.account-dashboard-browser-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(17, 133, 254, 0.1);
  border: 1px solid rgba(17, 133, 254, 0.12);
  color: #173f82;
}

.account-dashboard-browser-summary-icon svg {
  width: 1.08rem;
  height: 1.08rem;
}

.account-dashboard-browser-summary-copy {
  display: grid;
  min-width: 0;
  gap: 0.04rem;
}

.account-dashboard-browser-summary-copy strong,
.account-dashboard-browser-summary-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dashboard-browser-summary-copy strong {
  color: #0e1428;
  font-size: 0.95rem;
  line-height: 1.16;
}

.account-dashboard-browser-summary-copy span {
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.82rem;
  line-height: 1.2;
}

.account-dashboard-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.58rem 0.7rem;
}

.account-dashboard-app--empty {
  grid-template-columns: minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.32);
}

.account-dashboard-app--empty .account-home-connection-row {
  color: inherit;
  pointer-events: none;
}

.account-dashboard-app--empty .account-home-connection-mark {
  background: rgba(17, 133, 254, 0.1);
  border: 1px solid rgba(17, 133, 254, 0.12);
  color: #173f82;
}

.account-dashboard-app--empty .account-home-connection-mark svg {
  width: 1.12rem;
  height: 1.12rem;
}

.account-dashboard-app-link {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.account-dashboard-app .account-home-connection-mark {
  width: 2.1rem;
  height: 2.1rem;
}

.account-dashboard-app .account-home-connection-copy strong {
  font-size: 0.94rem;
}

.account-dashboard-app .account-home-connection-copy span {
  font-size: 0.78rem;
}

.account-dashboard-app
  .account-home-connection-copy
  .account-dashboard-app-subline {
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dashboard-app-link:hover,
.account-dashboard-app-link:focus-visible {
  background: transparent;
  border-color: transparent;
}

.account-dashboard-app-actions {
  justify-self: end;
}

.account-dashboard-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(18, 26, 47, 0.78);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.account-dashboard-mini-button:hover,
.account-dashboard-mini-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(42, 90, 168, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #0e1428;
  outline: none;
}

.account-dashboard-saved-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.25rem 10.75rem;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-height: 3.75rem;
  padding: 0.58rem 0.7rem;
}

.account-dashboard-saved-copy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.account-dashboard-saved-identity {
  display: grid;
  align-content: center;
  gap: 0.03rem;
  min-height: 2.35rem;
  min-width: 0;
}

.account-dashboard-saved-identity strong {
  overflow: hidden;
  color: #0e1428;
  font-size: 0.98rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dashboard-saved-handle {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.account-dashboard-saved-handle .atmosphere-handle {
  display: inline-flex;
  max-width: 100%;
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.05;
}

.account-dashboard-saved-status {
  justify-self: start;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.account-dashboard-saved-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  justify-self: end;
}

.account-dashboard-saved-avatar,
.account-dashboard-readiness-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.account-dashboard-saved-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff 0%, #9ebff1 100%);
  color: #17315f;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.account-dashboard-readiness-top {
  justify-content: flex-start;
}

.account-dashboard-readiness-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #1185fe;
  box-shadow: 0 0 0 4px rgba(17, 133, 254, 0.12);
}

.account-developer-hero {
  margin-top: 0.65rem;
}

.account-developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 1rem;
  align-items: start;
}

.account-developer-form,
.account-developer-state-card,
.account-developer-app-card {
  padding: 1rem;
}

.account-developer-form {
  display: grid;
  gap: 0.9rem;
}

.account-developer-form-head {
  margin-bottom: 0;
}

.account-developer-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.account-developer-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.account-developer-side {
  position: sticky;
  top: 6rem;
}

.account-developer-state-card {
  display: grid;
  gap: 0.75rem;
}

.account-developer-state-card h2 {
  margin: 0;
  color: #0e1428;
  font-size: 1.2rem;
}

.account-developer-review-state {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 16px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.45);
}

.account-developer-review-state span {
  color: #0e1428;
  font-weight: 850;
}

.account-developer-review-state p {
  margin: 0;
  color: rgba(18, 26, 47, 0.64);
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-developer-review-state.is-trusted {
  background: rgba(232, 247, 238, 0.58);
}

.account-developer-review-state.is-development {
  background: rgba(235, 243, 255, 0.6);
}

.account-developer-review-state.is-unverified {
  background: rgba(255, 247, 232, 0.72);
}

.account-developer-review-state.is-blocked {
  background: rgba(255, 236, 234, 0.62);
}

.account-developer-list {
  margin-top: 1.25rem;
}

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

.account-developer-app-card {
  display: grid;
  gap: 0.85rem;
}

.account-developer-app-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.account-developer-app-top h3 {
  margin: 0;
  color: #0e1428;
  font-size: 1.1rem;
}

.account-developer-app-top p {
  margin: 0.12rem 0 0;
  overflow: hidden;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-developer-app-details {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.account-developer-app-details div {
  display: grid;
  gap: 0.25rem;
}

.account-developer-app-details dt {
  color: rgba(18, 26, 47, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-developer-app-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(18, 26, 47, 0.7);
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-developer-app-details ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1rem;
}

.account-developer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.account-developer-review-mini {
  margin: -0.15rem 0 0;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  width: fit-content;
  background: rgba(235, 243, 255, 0.7);
  color: #1f4f96;
  font-size: 0.82rem;
  font-weight: 800;
}

.account-developer-review-mini--warn {
  background: rgba(255, 247, 232, 0.85);
  color: #94601f;
}

.account-developer-run-checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.account-developer-run-checks.is-pass {
  background: rgba(232, 247, 238, 0.58);
}

.account-developer-run-checks.is-warn {
  background: rgba(255, 247, 232, 0.72);
}

.account-developer-run-checks.is-fail {
  background: rgba(255, 236, 234, 0.62);
}

.account-developer-run-checks-copy h2 {
  margin: 0.15rem 0 0;
  color: #0e1428;
  font-size: 1.2rem;
}

.account-developer-run-checks-copy p:not(.text-eyebrow) {
  max-width: 720px;
  margin: 0.4rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.5;
}

.account-developer-run-checks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.account-developer-readiness-pill,
.account-developer-check-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 850;
}

.account-developer-readiness-pill {
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.54);
  color: rgba(18, 26, 47, 0.72);
}

.account-developer-readiness-pill.is-ready,
.account-developer-readiness-pill.is-trusted {
  color: #2c7650;
}

.account-developer-readiness-pill.is-development {
  color: #94601f;
}

.account-developer-readiness-pill.is-needs_fixes,
.account-developer-readiness-pill.is-blocked {
  color: #a9443e;
}

.account-developer-check-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.account-developer-check-counts span {
  min-height: 1.65rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(18, 26, 47, 0.06);
  color: rgba(18, 26, 47, 0.68);
}

.account-developer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 1rem;
  align-items: start;
}

.account-developer-hero-app-mark {
  width: 4rem;
  height: 4rem;
}

.account-developer-picker-preview {
  gap: 0.75rem;
}

.account-developer-picker-preview .login-picker-app {
  align-items: flex-start;
}

.account-developer-picker-preview .login-picker-status {
  margin-left: 0;
}

.account-developer-review-copy,
.account-developer-review-note {
  margin: 0;
  color: rgba(18, 26, 47, 0.66);
  line-height: 1.5;
}

.account-developer-review-note {
  border-left: 3px solid rgba(217, 104, 96, 0.45);
  padding-left: 0.75rem;
  color: rgba(18, 26, 47, 0.78);
}

.account-developer-review-form {
  display: grid;
  gap: 0.75rem;
}

.account-developer-textarea--small {
  min-height: 6rem;
}

.account-developer-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-developer-check {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.account-developer-check span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-developer-check h3 {
  margin: 0;
  color: #0e1428;
  font-size: 1.02rem;
}

.account-developer-check p {
  margin: 0;
  color: rgba(18, 26, 47, 0.66);
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-developer-check a {
  justify-self: start;
}

.account-developer-check.is-pass {
  background: rgba(232, 247, 238, 0.58);
}

.account-developer-check.is-pass span {
  background: rgba(44, 136, 84, 0.12);
  color: #2c7650;
}

.account-developer-check.is-warn {
  background: rgba(255, 247, 232, 0.72);
}

.account-developer-check.is-warn span {
  background: rgba(226, 151, 60, 0.14);
  color: #94601f;
}

.account-developer-check.is-fail {
  background: rgba(255, 236, 234, 0.62);
}

.account-developer-check.is-fail span {
  background: rgba(217, 104, 96, 0.14);
  color: #a9443e;
}

.account-developer-uri-list {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.account-developer-uri-list code {
  overflow-wrap: anywhere;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(18, 26, 47, 0.78);
  font-size: 0.82rem;
}

.account-developer-test-console {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.account-developer-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 0.85rem;
}

.account-developer-verifier {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
  padding-top: 1rem;
}

.account-home-card + .account-home-card,
.account-home-details {
  margin-top: 1rem;
}

.account-home-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-home-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #7da4dc 0%, #5f8ecf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.account-home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-home-avatar.account-dashboard-avatar {
  width: 5.15rem;
  height: 5.15rem;
}

.account-home-profile h2,
.host-card h2,
.account-home-card-header h2 {
  margin: 0;
  color: #0e1428;
}

.account-home-handle,
.account-home-host {
  margin: 0.2rem 0 0;
  color: rgba(18, 26, 47, 0.7);
}

.account-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.account-home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.account-home-pill,
.host-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.account-home-pill {
  color: #315686;
  background: rgba(125, 164, 220, 0.18);
}

.account-home-connection-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.account-home-connection-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.34);
  color: inherit;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.account-home-connection-row:hover,
.account-home-connection-row:focus-visible {
  border-color: rgba(42, 90, 168, 0.18);
  background: rgba(255, 255, 255, 0.56);
  color: inherit;
  outline: none;
}

.account-dashboard-app .account-dashboard-app-link {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.account-dashboard-app .account-dashboard-app-link:hover,
.account-dashboard-app .account-dashboard-app-link:focus-visible {
  border-color: transparent;
  background: transparent;
}

.account-home-connection-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe8ff 0%, #9ebff1 100%);
  color: #17315f;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.account-home-connection-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-home-connection-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-home-connection-copy strong {
  overflow: hidden;
  color: #0e1428;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-home-connection-copy span {
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.84rem;
}

.account-home-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0e1428;
}

.account-home-details dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.account-home-details dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.55);
}

.account-home-details dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  color: rgba(18, 26, 47, 0.82);
}

.hosts-search-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.hosts-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
}

.hosts-search-query {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
}

.hosts-search-form .explore-search-input {
  width: 100%;
  min-width: 0;
}

.hosts-filter-menu {
  position: relative;
  align-self: stretch;
}

.hosts-filter-menu > summary {
  list-style: none;
}

.hosts-filter-menu > summary::-webkit-details-marker {
  display: none;
}

.hosts-filter-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.45rem;
  height: 100%;
  min-height: 3.45rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(18, 26, 47, 0.76);
  box-shadow: 0 6px 24px rgba(48, 70, 128, 0.06);
  cursor: pointer;
  user-select: none;
}

.hosts-filter-trigger:hover,
.hosts-filter-menu[open] .hosts-filter-trigger {
  border-color: rgba(42, 90, 168, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

/* Desktop keeps the compact icon-only trigger; the text label is revealed
   only on mobile, where the trigger becomes a full-width button. */
.hosts-filter-trigger-label {
  display: none;
}

.hosts-filter-count {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  min-height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.3rem;
  background: #285aa8;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  line-height: 1;
}

.hosts-filter-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(42, 90, 168, 0.16);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.98);
  box-shadow: 0 18px 50px rgba(32, 54, 102, 0.2);
}

.hosts-filter-popover .hosts-filter-field:first-child,
.hosts-filter-popover .hosts-filter-apply {
  grid-column: 1 / -1;
}

.hosts-filter-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.hosts-filter-field span {
  color: rgba(18, 26, 47, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hosts-filter-field select {
  appearance: none;
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(42, 90, 168, 0.16);
  border-radius: 12px;
  padding: 0 2.65rem 0 0.7rem;
  background-color: rgba(255, 255, 255, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2352699a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem auto;
  color: #0e1428;
  font: inherit;
  /* 16px keeps iOS Safari from auto-zooming the page on focus. */
  font-size: 1rem;
}

.app-browse-control-form.hosts-search-form {
  width: 100%;
  max-width: none;
}

.hosts-filter-popover.app-browse-filter-popover {
  grid-template-columns: minmax(0, 1fr);
  width: min(28rem, calc(100vw - 2rem));
}

.app-browse-collection-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.app-browse-collection-field legend {
  margin-bottom: 0.3rem;
  color: rgba(18, 26, 47, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-browse-collection-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  max-height: min(16rem, 42vh);
  overflow-y: auto;
  padding: 0.08rem 0.18rem 0.08rem 0;
}

.app-browse-collection-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(42, 90, 168, 0.1);
  border-radius: 11px;
  color: rgba(18, 26, 47, 0.78);
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  font-size: 0.82rem;
}

.app-browse-collection-option:hover {
  border-color: rgba(42, 90, 168, 0.22);
  background: rgba(42, 90, 168, 0.06);
}

.app-browse-collection-option input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: #285aa8;
}

.app-browse-collection-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-browse-collection-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.82rem;
}

.hosts-search-form .explore-search-submit {
  min-height: 2.5rem;
}

.hosts-filter-apply {
  min-height: 2.5rem;
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 1rem;
  background: #285aa8;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hosts-filter-apply:hover {
  background: #1f4b91;
}

.hosts-directory-summary {
  margin: -0.35rem 0 1.2rem;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.86rem;
}

.hosts-directory-summary p {
  margin: 0;
}

.hosts-directory-summary p:first-child {
  white-space: nowrap;
}

.hosts-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(42, 90, 168, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  color: rgba(18, 26, 47, 0.64);
  font-size: 0.86rem;
}

.hosts-pagination a,
.hosts-pagination > span:first-child,
.hosts-pagination > span:last-child {
  color: #285aa8;
  font-weight: 650;
  text-decoration: none;
}

.hosts-pagination > :last-child {
  justify-self: end;
}

.hosts-pagination [aria-disabled="true"] {
  opacity: 0.4;
}

@media (max-width: 680px) {
  .hosts-filter-popover {
    width: min(24rem, calc(100vw - 2rem));
  }

  .app-browse-collection-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .hosts-pagination {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .hosts-pagination > span:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }
}

.hosts-filter-groups {
  display: grid;
  gap: 0.95rem;
  width: 100%;
}

.hosts-filter-group {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.hosts-filter-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.55);
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
  gap: 0.85rem;
  min-width: 0;
}

.host-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  height: 100%;
  min-width: 0;
  min-height: 12rem;
  padding: 1.05rem;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.host-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(48, 70, 128, 0.12);
}

.host-card:focus-visible {
  outline: 3px solid rgba(42, 90, 168, 0.35);
  outline-offset: 4px;
}

.host-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.host-card-identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.host-card-account-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  border: 1px solid rgba(42, 90, 168, 0.18);
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  background: rgba(42, 90, 168, 0.1);
  color: #254a9e;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.host-card-account-summary {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.32rem;
}

.host-card-account-count-compact {
  display: none;
}

@container (max-width: 360px) {
  .host-card-account-count-full {
    display: none;
  }

  .host-card-account-count-compact {
    display: inline;
  }
}

.host-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  color: #f6f8ff;
  background: linear-gradient(135deg, #536f9f 0%, #8397bd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(18, 26, 47, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
}

.host-card-mark-bluesky {
  color: #1185fe;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.6)
    ),
    #dcecff;
}

.host-card-mark-blacksky {
  color: #f6f8ff;
  background: linear-gradient(135deg, #0d1325 0%, #51466f 100%);
}

.host-card-mark-selfhosted {
  color: #f8fff8;
  background: linear-gradient(135deg, #1f725c 0%, #80b96e 100%);
}

.host-card-mark-eurosky {
  color: #fff8dd;
  background: linear-gradient(135deg, #3159a7 0%, #d3aa3c 100%);
}

.host-card-mark-spark {
  color: #fff7f4;
  background: linear-gradient(135deg, #e46351 0%, #4766c8 100%);
}

.host-card-mark-tangled {
  color: #f8fff8;
  background: linear-gradient(135deg, #13645f 0%, #a0a962 100%);
}

.host-card-mark-pckt {
  color: #f5fbff;
  background: linear-gradient(135deg, #254a9e 0%, #6fb6da 100%);
}

.host-card-mark-margin {
  color: #fff9f0;
  background: linear-gradient(135deg, #20253b 0%, #d08770 100%);
}

.host-card-mark-npmx {
  color: #f8fff8;
  background: linear-gradient(135deg, #293a2e 0%, #78b36d 100%);
}

.host-card-mark-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.host-card-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-card-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  flex: 1 1 auto;
  align-self: stretch;
  height: 3.25rem;
  min-width: 0;
  padding-block: 0.08rem;
  overflow: hidden;
}

.host-card-title-block h2 {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-card-handle {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-card-domain {
  margin: 0;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-card-description {
  margin: 0;
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  min-height: 4.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.host-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
  margin-top: auto;
  min-width: 0;
}

.host-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

.host-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(18, 26, 47, 0.78);
  font-size: 0.69rem;
  font-weight: 650;
}

.host-card-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(180, 119, 34, 0.22);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  color: #7b4b0f;
  background: rgba(226, 164, 73, 0.15);
  font-size: 0.69rem;
  font-weight: 650;
  white-space: nowrap;
}

.host-card-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  border: 1px solid rgba(105, 77, 173, 0.22);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  color: #594092;
  background: rgba(121, 91, 190, 0.12);
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.host-card-tags .host-card-conformance {
  background: rgba(23, 137, 91, 0.12);
  border-color: rgba(23, 137, 91, 0.24);
  color: #176047;
}

.host-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  border: 1px solid rgba(42, 90, 168, 0.24);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: rgba(42, 90, 168, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(42, 90, 168, 0.14);
}

.host-status-verified {
  color: #176047;
  background: rgba(62, 164, 118, 0.16);
}

.host-status-claimed {
  color: #315686;
  background: rgba(125, 164, 220, 0.18);
}

.host-status-observed {
  color: #6b5975;
  background: rgba(142, 126, 160, 0.16);
}

.host-detail-section .project-page-toolbar {
  margin-bottom: 1rem;
}

.host-detail-hero .host-card-mark {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  font-size: 2.5rem;
}

.host-detail-hero .host-card-mark-icon {
  width: 4.4rem;
  height: 4.4rem;
}

.host-detail-media {
  justify-content: center;
}

.host-detail-domain {
  margin: 0.28rem 0 0;
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.host-detail-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

/* Compact account count ("42M") sits in the name row, pushed to the right.
   Kept small so it doesn't crowd the name out of the narrow mobile column. */
.host-detail-account-count {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  min-height: 0;
  padding: 0.12rem 0.46rem;
  font-size: 0.72rem;
}

/* Bluesky profile button now shares the status-pill row; size it to match the
   pills and keep the row vertically centered. */
.host-detail-hero .profile-card-categories {
  align-items: center;
  gap: 0.3rem;
}
.host-detail-hero .host-detail-bsky-link {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
}
.host-detail-hero .host-detail-bsky-link .profile-action-icon {
  width: 1.65rem;
  height: 1.65rem;
}
/* The pill-row Bluesky button is mobile-only; on desktop the button sits below
   the avatar instead (rendered separately in .profile-hero-secondary-actions). */
@media (min-width: 601px) {
  .host-detail-hero .host-detail-bsky-link {
    display: none;
  }
}

.host-detail-hero .profile-card-categories .host-card-conformance {
  border-color: rgba(23, 137, 91, 0.24);
  background: rgba(23, 137, 91, 0.12);
  color: #176047;
}

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

.host-detail-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.host-detail-choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-height: 8.5rem;
  padding: 1.2rem;
}

.host-detail-choice-card h2 {
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.host-detail-choice-card p:not(.text-eyebrow) {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.66);
  line-height: 1.45;
}

.host-detail-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  color: #244f94;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.45)
    ),
    rgba(155, 190, 235, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 26px rgba(48, 70, 128, 0.12);
}

.host-detail-choice-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.host-detail-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  padding: 1.35rem;
}

.host-detail-explainer h2 {
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.12;
}

.host-detail-explainer .text-body {
  max-width: 640px;
  margin-top: 0.55rem;
}

.host-detail-explainer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.host-detail-card {
  padding: 1.5rem;
}

.host-detail-card .text-eyebrow {
  margin-bottom: 0.5rem;
}

.host-detail-dashboard-card {
  margin-top: 1rem;
}

.host-detail-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.host-detail-dashboard-head h2 {
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: 1.35rem;
}

.host-detail-dashboard-head .text-body {
  max-width: 640px;
  margin-top: 0.5rem;
}

.host-detail-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.host-detail-capability {
  display: grid;
  gap: 0.28rem;
  min-height: 4.5rem;
  border-radius: 16px;
  padding: 0.8rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.host-detail-capability span {
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.82rem;
}

.host-detail-capability strong {
  color: #0e1428;
  font-size: 0.94rem;
}

.host-detail-capability--supported {
  background: rgba(232, 247, 238, 0.58);
}

.host-detail-capability--host_owned {
  background: rgba(235, 243, 255, 0.58);
}

.host-detail-facts {
  margin-top: 0.75rem;
}

.host-detail-details {
  margin-top: 1rem;
}

.host-detail-claim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.host-detail-claim-button {
  opacity: 0.82;
}

.host-detail-claim-button:hover {
  opacity: 1;
}

.host-detail-claim-note {
  margin: 0;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.92rem;
  font-weight: 700;
}

.host-claim-section {
  min-height: auto;
}

.host-claim-card {
  margin-top: 1rem;
}

.host-claim-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.host-claim-title {
  margin: 0.1rem 0 0;
  color: #10182b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.host-claim-copy {
  margin-top: 1.25rem;
}

.host-claim-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.host-claim-panel {
  width: 100%;
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.host-claim-panel-ok {
  background: rgba(236, 249, 255, 0.64);
  border-color: rgba(63, 142, 205, 0.18);
}

.host-claim-panel-title {
  margin: 0 0 0.35rem;
  color: #10182b;
  font-size: 1rem;
  font-weight: 800;
}

.host-claim-secondary-action {
  margin-top: 1rem;
}

.host-manage-section {
  min-height: auto;
}

.host-manage-card {
  margin-top: 1rem;
}

.host-manage-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.host-manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.host-manage-save {
  min-height: 2.6rem;
  padding-inline: 1rem;
}

.host-manage-validation,
.host-manage-current {
  margin-top: 1.25rem;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.host-manage-validation--ok {
  background: rgba(236, 249, 255, 0.64);
  border-color: rgba(63, 142, 205, 0.18);
}

.host-manage-validation--error {
  background: rgba(255, 244, 242, 0.72);
  border-color: rgba(219, 106, 82, 0.18);
}

.host-manage-validation-url {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.host-manage-issues {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.host-manage-issue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.55rem;
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.host-manage-issue strong {
  color: #0e1428;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.host-manage-issue span {
  color: rgba(18, 26, 47, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.host-manage-issue p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(18, 26, 47, 0.74);
  font-size: 0.9rem;
}

.host-manage-issue--error strong {
  color: #9c3f31;
}

.host-manage-issue--warning strong {
  color: #80611b;
}

.host-detail-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.host-detail-patterns span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  /* Wildcard patterns contain no whitespace; wrap them instead of overflowing. */
  overflow-wrap: anywhere;
}

.host-source-records {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
}

.host-source-records h3 {
  margin: 0 0 0.75rem;
  color: rgba(18, 26, 47, 0.78);
  font-size: 0.95rem;
}

.host-source-record-list {
  display: grid;
  gap: 0.65rem;
}

.host-source-record {
  display: grid;
  gap: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 26, 47, 0.08);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.42);
}

.host-source-record > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.host-source-record strong {
  color: #0e1428;
  font-size: 0.86rem;
}

.host-source-record span,
.host-source-record p {
  margin: 0;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.host-source-record code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.72rem;
}

.dark-phase .account-home-profile h2,
.dark-phase .host-card h2,
.dark-phase .account-home-card-header h2,
.dark-phase .account-home-details summary,
.dark-phase .account-dashboard-section-head h2,
.dark-phase .account-dashboard-profile h3,
.dark-phase .account-dashboard-info-card h3,
.dark-phase .account-dashboard-readiness-card h3,
.dark-phase .account-dashboard-empty h3,
.dark-phase .account-dashboard-host-router h2,
.dark-phase .host-detail-dashboard-head h2,
.dark-phase .host-detail-capability strong,
.dark-phase .account-developer-state-card h2,
.dark-phase .account-developer-run-checks-copy h2,
.dark-phase .account-developer-review-state span,
.dark-phase .account-developer-app-top h3,
.dark-phase .account-developer-check h3,
.dark-phase .account-dashboard-browser-summary-copy strong,
.dark-phase .account-dashboard-saved-identity strong,
.dark-phase .account-dashboard-profile-source strong {
  color: #f3f5fb;
}

.dark-phase .account-home-handle,
.dark-phase .account-home-host,
.dark-phase .host-card p,
.dark-phase .account-home-details dd,
.dark-phase .account-dashboard-section-head p:not(.text-eyebrow),
.dark-phase .account-dashboard-info-card p,
.dark-phase .account-dashboard-readiness-card p,
.dark-phase .account-dashboard-empty p,
.dark-phase .account-dashboard-host-router p,
.dark-phase .host-detail-capability span,
.dark-phase .account-developer-run-checks-copy p:not(.text-eyebrow),
.dark-phase .account-developer-review-state p,
.dark-phase .account-developer-app-top p,
.dark-phase .account-developer-app-details dd,
.dark-phase .account-developer-review-copy,
.dark-phase .account-developer-review-note,
.dark-phase .account-developer-check p,
.dark-phase .account-dashboard-browser-summary-copy span,
.dark-phase .account-dashboard-saved-handle .atmosphere-handle,
.dark-phase .account-dashboard-saved-status {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .account-dashboard-hero-mark {
  color: #f3f5fb;
}

.dark-phase .account-dashboard-identity h1,
.dark-phase .account-dashboard-identity h2 {
  color: #f3f5fb;
}

.dark-phase .account-dashboard-page-head h1,
.dark-phase .account-dashboard-profile-facts dd {
  color: #f3f5fb;
}

.dark-phase .account-dashboard-hero-side p {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .account-dashboard-page-head p:not(.text-eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .account-dashboard-profile-facts div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .account-dashboard-profile-source {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .account-dashboard-profile-facts dt {
  color: rgba(255, 255, 255, 0.56);
}

.dark-phase .account-dashboard-nav-link,
.dark-phase .account-dashboard-account-card,
.dark-phase .account-dashboard-info-card,
.dark-phase .account-dashboard-browser-summary,
.dark-phase .account-dashboard-host-router,
.dark-phase .host-detail-capability,
.dark-phase .host-source-record,
.dark-phase .account-developer-run-checks,
.dark-phase .account-developer-readiness-pill,
.dark-phase .account-developer-check-counts span,
.dark-phase .account-developer-test-console,
.dark-phase .account-developer-verifier,
.dark-phase .account-developer-review-state,
.dark-phase .account-developer-check,
.dark-phase .account-developer-uri-list code,
.dark-phase .account-dashboard-mini-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.76);
}

.dark-phase .account-dashboard-nav-link:hover,
.dark-phase .account-dashboard-nav-link:focus-visible,
.dark-phase .account-dashboard-mini-button:hover,
.dark-phase .account-dashboard-mini-button:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f5fb;
}

.dark-phase .account-dashboard-info-top,
.dark-phase .account-dashboard-readiness-top,
.dark-phase .account-developer-app-details dt,
.dark-phase .host-source-record span,
.dark-phase .host-source-record p {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .account-dashboard-section-icon,
.dark-phase .account-dashboard-host-orb,
.dark-phase .account-dashboard-browser-summary-icon,
.dark-phase .account-dashboard-button--secondary,
.dark-phase .account-dashboard-empty-icon {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.dark-phase .account-dashboard-info-label svg {
  color: #d8e4ff;
}

.dark-phase .account-dashboard-button--primary {
  background: #d8e4ff;
  border-color: rgba(216, 228, 255, 0.3);
  color: #0e1428;
}

.dark-phase .account-dashboard-button--primary:hover,
.dark-phase .account-dashboard-button--primary:focus-visible {
  background: #f0f4ff;
}

.dark-phase .account-dashboard-button--secondary:hover,
.dark-phase .account-dashboard-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #f3f5fb;
}

.dark-phase .account-microblog-viewer-button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.dark-phase .account-microblog-viewer-button:hover,
.dark-phase .account-microblog-viewer-button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-phase .account-microblog-viewer-atmosphere img {
  filter: none;
}

.dark-phase .account-microblog-viewer-separator {
  color: rgba(255, 255, 255, 0.42);
}

.dark-phase .account-microblog-viewer-popover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(14, 20, 40, 0.96);
  color: #f3f5fb;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.dark-phase .account-microblog-viewer-popover::before {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(14, 20, 40, 0.96);
}

.dark-phase .account-microblog-viewer-popover-head h3,
.dark-phase .account-microblog-viewer-toggle strong,
.dark-phase .account-microblog-viewer-option-copy strong {
  color: #f3f5fb;
}

.dark-phase .account-microblog-viewer-popover-head p,
.dark-phase .account-microblog-viewer-toggle small,
.dark-phase .account-microblog-viewer-option-copy small,
.dark-phase .account-microblog-viewer-status {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .account-microblog-viewer-toggle,
.dark-phase .account-microblog-viewer-option {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-phase .account-microblog-viewer-option:hover,
.dark-phase .account-microblog-viewer-option:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(216, 228, 255, 0.26);
}

.dark-phase .account-microblog-viewer-option.is-selected {
  background: rgba(216, 228, 255, 0.14);
  border-color: rgba(216, 228, 255, 0.32);
}

.dark-phase .account-microblog-viewer-option-dot {
  border-color: rgba(255, 255, 255, 0.28);
}

.dark-phase
  .account-microblog-viewer-option.is-selected
  .account-microblog-viewer-option-dot {
  border-color: #d8e4ff;
  background: #d8e4ff;
  box-shadow: 0 0 0 0.2rem rgba(216, 228, 255, 0.14);
}

.dark-phase .account-profile-edit-header {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .account-profile-edit-close {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .account-profile-edit-close:hover,
.dark-phase .account-profile-edit-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #f3f5fb;
}

.dark-phase .account-profile-edit-body .profile-form-button-primary {
  background: #d8e4ff;
  color: #0e1428;
}

.dark-phase .account-profile-edit-body .profile-form-button-primary:hover,
.dark-phase
  .account-profile-edit-body
  .profile-form-button-primary:focus-visible {
  background: #f0f4ff;
}

.dark-phase .account-profile-edit-avatar-row {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark-phase .account-profile-edit-link-settings {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark-phase .account-profile-edit-toggle-row {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .account-profile-edit-toggle-copy strong {
  color: #f3f5fb;
}

.dark-phase .account-profile-edit-toggle-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .account-profile-edit-switch span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.dark-phase .account-profile-edit-switch input:checked + span {
  border-color: rgba(216, 228, 255, 0.38);
  background: #d8e4ff;
}

.dark-phase .account-profile-edit-avatar-preview {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(216, 228, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
  color: #d8e4ff;
}

.dark-phase .account-profile-edit-avatar-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d8e4ff;
}

.dark-phase .account-profile-edit-avatar-button:hover,
.dark-phase .account-profile-edit-avatar-button:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(216, 228, 255, 0.28);
}

.dark-phase .account-profile-edit-body .account-profile-edit-input {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  color: #f3f5fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dark-phase .account-profile-edit-body .account-profile-edit-input:focus {
  border-color: rgba(216, 228, 255, 0.48);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(216, 228, 255, 0.13);
}

.dark-phase
  .account-profile-edit-body
  .account-profile-edit-input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.dark-phase .account-dashboard-host-router-details {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .account-dashboard-host-router-details summary {
  color: rgba(255, 255, 255, 0.78);
}

.dark-phase .account-dashboard-text-link {
  color: #d8e4ff;
}

.dark-phase .host-card-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .host-card-account-count {
  border-color: rgba(166, 191, 255, 0.22);
  background: rgba(106, 149, 255, 0.16);
  color: #d8e4ff;
}

.dark-phase .host-card-unavailable {
  border-color: rgba(246, 186, 92, 0.25);
  background: rgba(246, 186, 92, 0.12);
  color: #ffd898;
}

.dark-phase .host-card-app {
  border-color: rgba(202, 181, 255, 0.25);
  background: rgba(171, 139, 247, 0.14);
  color: #e0d2ff;
}

.dark-phase .host-card-domain {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .host-detail-domain {
  color: rgba(255, 255, 255, 0.66);
}

.dark-phase .host-card-tags .host-card-conformance {
  background: rgba(92, 220, 164, 0.13);
  border-color: rgba(92, 220, 164, 0.26);
  color: #a8f0cf;
}

.dark-phase .host-detail-hero .profile-card-categories .host-card-conformance {
  border-color: rgba(92, 220, 164, 0.26);
  background: rgba(92, 220, 164, 0.13);
  color: #a8f0cf;
}

.dark-phase .account-home-details dt,
.dark-phase .hosts-filter-label {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .hosts-filter-field span,
.dark-phase .hosts-directory-summary,
.dark-phase .hosts-pagination {
  color: rgba(255, 255, 255, 0.64);
}

.dark-phase .hosts-filter-field select,
.dark-phase .hosts-pagination {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.1);
  color: #f0f4ff;
}

.dark-phase .hosts-filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d8e4ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dark-phase .app-browse-collection-field legend,
.dark-phase .app-browse-collection-empty {
  color: rgba(255, 255, 255, 0.64);
}

.dark-phase .app-browse-collection-option {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.dark-phase .app-browse-collection-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.dark-phase .hosts-filter-trigger,
.dark-phase .hosts-filter-popover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(19, 27, 48, 0.96);
  color: #f0f4ff;
}

.dark-phase .hosts-filter-trigger:hover,
.dark-phase .hosts-filter-menu[open] .hosts-filter-trigger {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(28, 39, 68, 0.98);
}

.dark-phase .hosts-pagination a,
.dark-phase .hosts-pagination > span:first-child,
.dark-phase .hosts-pagination > span:last-child {
  color: #d8e4ff;
}

.dark-phase .host-detail-patterns span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
}

.dark-phase .host-source-records {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .host-source-records h3,
.dark-phase .host-source-record strong {
  color: #f3f5fb;
}

.dark-phase .host-source-record code {
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .host-detail-choice-card h2,
.dark-phase .host-detail-explainer h2 {
  color: #f3f5fb;
}

.dark-phase .host-detail-choice-card p:not(.text-eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.dark-phase .host-detail-choice-icon {
  color: #d8e4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.dark-phase .host-manage-validation,
.dark-phase .host-manage-current,
.dark-phase .host-manage-issue {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .host-manage-validation--ok {
  background: rgba(63, 142, 205, 0.13);
  border-color: rgba(136, 190, 238, 0.2);
}

.dark-phase .host-manage-validation--error {
  background: rgba(176, 74, 54, 0.13);
  border-color: rgba(232, 133, 116, 0.2);
}

.dark-phase .host-manage-validation-url,
.dark-phase .host-manage-issue span {
  color: rgba(255, 255, 255, 0.58);
}

.dark-phase .host-manage-issue strong {
  color: #f3f5fb;
}

.dark-phase .host-manage-issue p {
  color: rgba(255, 255, 255, 0.74);
}

.dark-phase .directory-register-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .directory-register-button:hover {
  color: #f3f5fb;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-phase .directory-register-button-icon {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .hosts-header {
    flex-direction: column;
  }

  .account-dashboard-hero,
  .account-dashboard-account-card,
  .account-home-profile {
    align-items: flex-start;
  }

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

  .account-dashboard-page-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .account-dashboard-page-head-action {
    justify-content: flex-start;
  }

  .account-dashboard-account-card,
  .account-dashboard-saved-account {
    flex-direction: column;
  }

  .account-dashboard-saved-account {
    grid-template-columns: 1fr;
  }

  .account-dashboard-saved-status {
    justify-self: start;
  }

  .account-dashboard-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.72rem;
  }

  .account-home-avatar.account-dashboard-avatar {
    width: 4.7rem;
    height: 4.7rem;
  }

  .account-dashboard-identity {
    min-height: 0;
  }

  .account-dashboard-identity h1,
  .account-dashboard-identity h2 {
    font-size: clamp(1.25rem, 8vw, 1.72rem);
    line-height: 1.02;
    word-break: break-word;
  }

  .account-dashboard-identity .account-home-handle,
  .account-dashboard-identity .atmosphere-handle {
    max-width: 100%;
  }

  .account-dashboard-identity-tags {
    margin-top: 0.45rem;
  }

  .account-dashboard-hero-side {
    justify-items: start;
  }

  .account-dashboard-hero-side p {
    max-width: none;
    text-align: left;
  }

  .account-dashboard-profile-source {
    justify-items: start;
    max-width: none;
    width: 100%;
  }

  .account-dashboard-profile-source .text-eyebrow,
  .account-dashboard-profile-source strong,
  .account-dashboard-profile-source p {
    text-align: left;
  }

  .account-dashboard-profile-facts {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .account-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .account-dashboard-sidebar {
    position: static;
  }

  .account-dashboard-nav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .account-dashboard-nav-link {
    flex: 0 0 auto;
  }

  .account-dashboard-section-head,
  .account-dashboard-account-card,
  .account-dashboard-saved-account {
    align-items: flex-start;
  }

  .account-dashboard-actions,
  .account-dashboard-app-actions,
  .account-developer-run-checks-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .account-profile-edit-avatar-row {
    align-items: flex-start;
  }

  .account-microblog-viewer-popover {
    right: auto;
    left: 0;
    width: min(340px, calc(100vw - 2rem));
  }

  .account-microblog-viewer-popover::before {
    right: auto;
    left: 1.15rem;
  }

  .account-dashboard-info-grid,
  .account-dashboard-info-grid--summary,
  .account-dashboard-check-grid,
  .account-developer-grid,
  .account-developer-app-grid,
  .account-developer-detail-grid,
  .account-developer-run-checks,
  .account-developer-test-grid,
  .account-developer-check-grid,
  .admin-login-app-row {
    grid-template-columns: 1fr;
  }

  .account-dashboard-app {
    grid-template-columns: 1fr;
  }

  .account-developer-side {
    position: static;
  }

  .account-developer-app-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-developer-app-top .login-picker-status {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .admin-login-app-button-row {
    justify-content: flex-start;
  }

  .host-detail-grid,
  .host-detail-choice-grid,
  .host-detail-capability-grid {
    grid-template-columns: 1fr;
  }

  .host-detail-explainer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .host-detail-explainer-actions {
    justify-content: flex-start;
  }

  .account-dashboard-host-router,
  .host-detail-dashboard-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .account-dashboard-host-router-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .account-dashboard-host-router-actions .account-dashboard-button {
    max-width: 100%;
  }

  .account-dashboard-app
    .account-home-connection-copy
    .account-dashboard-app-subline {
    white-space: normal;
  }

  .account-dashboard-empty--visual {
    grid-template-columns: 1fr;
  }

  .account-dashboard-empty--visual .account-dashboard-empty-actions {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .host-card-top {
    gap: 0.5rem;
  }

  .host-card-identity {
    gap: 0.6rem;
  }

  .host-detail-hero {
    gap: 1rem;
    padding: 1.25rem;
  }

  .host-detail-hero .profile-hero-media {
    flex-basis: 96px;
    gap: 0.55rem;
  }

  .host-detail-hero .host-card-mark {
    width: 96px;
    height: 96px;
    border-radius: 19px;
  }

  .host-detail-hero .host-card-mark-icon {
    width: 3.6rem;
    height: 3.6rem;
  }

  .host-detail-hero .profile-hero-body {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }

  .host-detail-hero .profile-hero-actions {
    gap: 0.5rem;
    padding-top: 0.85rem;
  }

  .host-detail-choice-card {
    gap: 0.8rem;
    min-height: 0;
    padding: 1rem;
  }

  .host-detail-choice-icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
  }

  .host-detail-choice-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* ================================
   Developer Resources — Profile API playground
   ================================ */

/* Wrapping card matches the manage-form glass aesthetic so the page
 * reads as one consistent design language. */
.api-playground {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(14, 20, 40, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  /* min-width: 0 lets the inner <pre> blocks honour overflow:auto
   * instead of pushing the card wider than its parent (the default
   * min-width: auto on flex/grid items expands to fit content). */
  min-width: 0;
}

.api-playground-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(14, 20, 40, 0.08);
  padding-bottom: 0.6rem;
}

.api-playground-tab {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: rgba(14, 20, 40, 0.7);
  cursor: pointer;
}

.api-playground-tab.is-active {
  background: rgba(42, 90, 168, 0.12);
  border-color: rgba(42, 90, 168, 0.28);
  color: #1f4f96;
  font-weight: 500;
}

.api-playground-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.api-playground-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.api-playground-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.api-playground-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(14, 20, 40, 0.65);
  text-transform: uppercase;
}

.api-playground-input {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 20, 40, 0.14);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.9rem;
  color: #0e1428;
}

.api-playground-input:focus {
  outline: none;
  border-color: rgba(42, 90, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 90, 168, 0.15);
}

.api-playground-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.api-playground-fetch {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 0;
  background: #0e1428;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.api-playground-fetch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Inline preview of the resolved request URL — monospace so devs can
 * eyeball the query string without copying. */
.api-playground-url {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(14, 20, 40, 0.7);
  background: rgba(14, 20, 40, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.api-playground-response {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(14, 20, 40, 0.08);
}

.api-playground-response-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.api-playground-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}

.api-playground-status.is-ok {
  background: rgba(44, 136, 84, 0.12);
  color: #2c8854;
}

.api-playground-status.is-err {
  background: rgba(194, 80, 72, 0.12);
  color: #c25048;
}

.api-playground-error {
  font-size: 0.85rem;
  color: #c25048;
  margin: 0;
}

.api-playground-pre {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #0e1428;
  color: rgba(245, 247, 250, 0.95);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

.api-playground-snippets {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  /* Keep wrapped snippets from sizing the grid to their longest token. */
  min-width: 0;
}

@media (min-width: 720px) {
  .api-playground-snippets {
    /* `minmax(0, 1fr)` keeps both columns equal-width regardless of
     * the longest line in either snippet (defaults to min-content
     * which would otherwise overflow). */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.api-playground-snippet {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.api-playground-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.api-playground-copy {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 90, 168, 0.28);
  background: rgba(42, 90, 168, 0.08);
  color: #1f4f96;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.api-playground-copy:hover {
  background: rgba(42, 90, 168, 0.16);
}

.login-console {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.login-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.login-console-head h3 {
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: 1.2rem;
}

.login-console-head p:not(.text-eyebrow) {
  max-width: 620px;
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.68);
}

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

.login-console-wide {
  grid-column: 1 / -1;
}

.login-console-state-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.login-console-mode-control {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 0.25rem;
  padding: 0.24rem;
  border: 1px solid rgba(18, 26, 47, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.login-console-mode-option {
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: transparent;
  color: rgba(18, 26, 47, 0.66);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.login-console-mode-option:hover {
  background: rgba(22, 119, 255, 0.08);
  color: #0e1428;
}

.login-console-mode-option.is-active {
  background: #0f4ec4;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 78, 196, 0.22);
}

.login-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.login-console-actions .is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.login-console-url {
  display: block;
  overflow: visible;
  max-width: 100%;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(14, 20, 40, 0.05);
  color: rgba(14, 20, 40, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.login-console-snippets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.login-console-verifier {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
  padding-top: 1rem;
}

.login-console-verifier h3 {
  margin: 0.15rem 0 0;
  color: #0e1428;
  font-size: 1rem;
}

.login-console-verifier p:not(.text-eyebrow) {
  max-width: 680px;
  margin: 0.35rem 0 0;
  color: rgba(18, 26, 47, 0.68);
}

.login-console-token-input {
  min-height: 6.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.login-console-verifier-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(18, 26, 47, 0.06);
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.login-console-verifier-status--ok {
  background: rgba(44, 136, 84, 0.13);
  color: #2c8854;
}

.login-console-verifier-status--error {
  background: rgba(194, 80, 72, 0.13);
  color: #c25048;
}

.login-console-checks {
  margin-top: 0;
}

.login-example-section {
  min-height: auto;
}

.login-example-card {
  margin-top: 1rem;
}

.login-example-app-card {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.login-example-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 0.9rem;
  align-items: stretch;
  min-width: 0;
}

.login-example-demo-panel,
.login-example-next-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.48);
  padding: 1rem;
}

.login-example-demo-app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-example-demo-app-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 119, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  object-fit: cover;
}

.login-example-demo-app strong,
.login-example-next-panel h2 {
  color: #0e1428;
}

.login-example-demo-app span,
.login-example-demo-panel p,
.login-example-next-panel p {
  color: rgba(18, 26, 47, 0.68);
}

.login-example-demo-app span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.login-example-button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.login-example-popup-status {
  min-height: 1.35rem;
  font-size: 0.9rem;
}

.login-example-next-panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.login-example-next-panel p {
  margin: 0;
}

.login-example-result {
  margin-top: 1.2rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.login-example-result--ok {
  background: rgba(236, 249, 255, 0.64);
  border-color: rgba(63, 142, 205, 0.18);
}

.login-example-result--error {
  background: rgba(255, 244, 242, 0.72);
  border-color: rgba(219, 106, 82, 0.18);
}

.login-example-result--dev {
  background: rgba(248, 245, 255, 0.72);
  border-color: rgba(112, 86, 188, 0.18);
}

.login-example-result strong {
  display: block;
  color: #0e1428;
}

.login-example-result p {
  margin: 0.35rem 0 0;
  color: rgba(18, 26, 47, 0.7);
}

.login-example-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.login-example-check {
  display: grid;
  gap: 0.25rem;
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.login-example-check span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.login-example-check--ok span {
  background: rgba(44, 136, 84, 0.13);
  color: #2c8854;
}

.login-example-check--error span {
  background: rgba(194, 80, 72, 0.13);
  color: #c25048;
}

.login-example-check strong {
  color: #0e1428;
}

.login-example-check p {
  margin: 0;
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.login-example-oauth,
.login-example-details,
.login-example-json {
  margin-top: 1rem;
}

.login-popup-callback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(22, 119, 255, 0.12),
      transparent 32rem
    ),
    #f7f9ff;
  color: #0e1428;
}

.login-popup-callback-card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(18, 26, 47, 0.08);
  text-align: center;
}

.login-popup-callback-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.login-popup-callback-card h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1;
}

.login-popup-callback-card p {
  margin: 0;
  color: rgba(18, 26, 47, 0.68);
}

@media (max-width: 760px) {
  .login-console-head,
  .login-console-state-row {
    align-items: flex-start;
  }

  .login-console-head {
    flex-direction: column;
  }

  .login-console-grid,
  .login-console-state-row,
  .login-console-snippets,
  .login-example-app-grid,
  .login-example-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-console {
    gap: 0.85rem;
    border-radius: 18px;
    padding: 0.9rem;
  }

  .login-console-grid,
  .login-console-snippets {
    gap: 0.75rem;
  }

  .login-console-head h3 {
    font-size: 1.08rem;
  }

  .login-console-actions {
    gap: 0.5rem;
  }

  .login-console-mode-control {
    width: 100%;
  }

  .login-console-mode-option {
    flex: 1 1 0;
  }

  .login-console-actions > a,
  .login-console-actions > button {
    justify-content: center;
  }

  .login-console-url {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .login-console-token-input {
    min-height: 5.5rem;
  }

  .login-example-card {
    margin-top: 0.85rem;
  }

  .login-example-app-card {
    gap: 0.85rem;
  }

  .login-example-demo-panel,
  .login-example-next-panel,
  .login-example-result,
  .login-example-check {
    border-radius: 16px;
    padding: 0.85rem;
  }

  .login-example-demo-app {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .login-console-actions > a,
  .login-console-actions > button {
    width: 100%;
  }
}

.dark-phase .login-console,
.dark-phase .login-console-verifier,
.dark-phase .login-example-demo-panel,
.dark-phase .login-example-next-panel,
.dark-phase .login-example-result,
.dark-phase .login-example-check {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.dark-phase .login-example-demo-app-avatar {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #8fc2ff;
}

.dark-phase .login-example-result--ok {
  background: rgba(63, 142, 205, 0.13);
  border-color: rgba(136, 190, 238, 0.2);
}

.dark-phase .login-example-result--error {
  background: rgba(176, 74, 54, 0.13);
  border-color: rgba(232, 133, 116, 0.2);
}

.dark-phase .login-example-result--dev {
  background: rgba(112, 86, 188, 0.14);
  border-color: rgba(190, 170, 248, 0.22);
}

.dark-phase .login-console-head h3,
.dark-phase .login-console-verifier h3,
.dark-phase .login-example-demo-app strong,
.dark-phase .login-example-next-panel h2,
.dark-phase .login-example-result strong,
.dark-phase .login-example-check strong {
  color: #f3f5fb;
}

.dark-phase .login-console-head p:not(.text-eyebrow),
.dark-phase .login-console-verifier p:not(.text-eyebrow),
.dark-phase .login-example-demo-app span,
.dark-phase .login-example-demo-panel p,
.dark-phase .login-example-next-panel p,
.dark-phase .login-example-result p,
.dark-phase .login-example-check p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .login-console-url {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.dark-phase .login-console-mode-control {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-phase .login-console-mode-option {
  color: rgba(255, 255, 255, 0.7);
}

.dark-phase .login-console-mode-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f5fb;
}

.dark-phase .login-console-mode-option.is-active {
  background: #78b7ff;
  color: #081226;
  box-shadow: 0 8px 20px rgba(120, 183, 255, 0.18);
}

/* ---- Endpoint reference ---- */

.api-endpoints {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.api-endpoint {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 20, 40, 0.08);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.api-endpoint-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: #0e1428;
}

.api-endpoint-method {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  background: rgba(42, 90, 168, 0.14);
  color: #1f4f96;
  font-weight: 600;
  font-size: 0.75rem;
}

.api-endpoint-summary {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(14, 20, 40, 0.78);
  line-height: 1.5;
}

/* Per-card parameters block. Renders below the summary as a
 * "Parameters" label + indented bullet list — much easier to scan
 * than the previous inline `?q=&...` query-string template. */
.api-endpoint-params {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.api-endpoint-params-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(14, 20, 40, 0.55);
}

.api-endpoint-params-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: rgba(14, 20, 40, 0.78);
  line-height: 1.5;
}

.api-endpoint-param-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #1f4f96;
}

.api-endpoint-param-default {
  color: rgba(14, 20, 40, 0.55);
  font-size: 0.8rem;
}

.api-endpoint-param-default code {
  font-family: "IBM Plex Mono", monospace;
}

.api-endpoint-cache {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(14, 20, 40, 0.55);
}

.api-endpoint-cache code {
  font-family: "IBM Plex Mono", monospace;
}

/* Sub-section headings inside the Profile API panel (Endpoints,
 * Schema). Centred to match the page's other section headers, with
 * generous top spacing so the divider feels intentional rather than
 * crammed against the preceding card. */
.api-section-heading {
  margin: 3rem 0 1.25rem;
  text-align: center;
}

.api-section-heading .divider {
  margin-top: 0.6rem;
}

/* ---- Project SVG icon download tool ---- */

.svg-download-tool {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(14, 20, 40, 0.06);
  text-align: left;
}

.svg-download-toolbar {
  display: flex;
  gap: 0.85rem;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.svg-download-search {
  flex: 1 1 240px;
}

.svg-download-zip {
  min-height: 2.4rem;
}

/* Color / B/W toggle. Sits between the search input and the ZIP
   button so the toolbar reads search → variant → bulk-download. */
.svg-download-tabs {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  background: rgba(14, 20, 40, 0.06);
  border: 1px solid rgba(14, 20, 40, 0.08);
}
.svg-download-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(14, 20, 40, 0.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.svg-download-tab:hover {
  color: #0e1428;
}
.svg-download-tab.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: #0e1428;
  box-shadow: 0 1px 2px rgba(14, 20, 40, 0.08);
}
.dark-phase .svg-download-tabs {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .svg-download-tab {
  color: rgba(255, 255, 255, 0.7);
}
.dark-phase .svg-download-tab:hover {
  color: #fff;
}
.dark-phase .svg-download-tab.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

.svg-download-meta {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(14, 20, 40, 0.62);
}

.svg-download-empty {
  margin: 1rem 0 0;
}

.svg-download-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.svg-download-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(14, 20, 40, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.svg-download-preview {
  display: grid;
  place-items: center;
  min-height: 96px;
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(14, 20, 40, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(14, 20, 40, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(14, 20, 40, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(14, 20, 40, 0.04) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.svg-download-preview img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

/* When showing the B/W variant we paint the preview tile white so a
   pure-black mark remains legible regardless of the page theme. The
   downloaded SVG itself is unmodified — this is preview-only chrome. */
.svg-download-preview--bw {
  background: #ffffff;
  border: 1px solid rgba(14, 20, 40, 0.08);
}
.dark-phase .svg-download-preview--bw {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.svg-download-details {
  min-width: 0;
}

.svg-download-name {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  color: #0e1428;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svg-download-handle {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(14, 20, 40, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svg-download-button {
  width: 100%;
}

/* Dark phase fallback for pages that opt into the darker palette. */
.dark-phase .api-playground {
  background: rgba(20, 26, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .svg-download-tool,
.dark-phase .svg-download-card {
  background: rgba(20, 26, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .api-playground-tab {
  color: rgba(245, 247, 250, 0.7);
}
.dark-phase .api-playground-tab.is-active {
  background: rgba(150, 180, 240, 0.18);
  color: #cfdfff;
  border-color: rgba(150, 180, 240, 0.32);
}
.dark-phase .api-playground-input {
  background: rgba(20, 26, 48, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(245, 247, 250, 0.95);
}
.dark-phase .api-playground-fetch {
  background: rgba(245, 247, 250, 0.92);
  color: #0e1428;
}
.dark-phase .api-endpoint {
  background: rgba(20, 26, 48, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .api-endpoint-summary,
.dark-phase .api-endpoint-cache,
.dark-phase .api-endpoint-params-list,
.dark-phase .svg-download-meta,
.dark-phase .svg-download-handle {
  color: rgba(245, 247, 250, 0.78);
}
.dark-phase .api-endpoint-path,
.dark-phase .svg-download-name {
  color: rgba(245, 247, 250, 0.95);
}
.dark-phase .api-endpoint-params-label,
.dark-phase .api-endpoint-param-default {
  color: rgba(245, 247, 250, 0.6);
}
.dark-phase .api-endpoint-param-name {
  color: #cfdfff;
}

/* ================================================================== *
 * Admin dashboard + moderation UI
 * ================================================================== */

.admin-section {
  padding: 7rem 0 4rem;
}
.admin-header {
  margin-bottom: 2rem;
}
.admin-header h1 {
  margin: 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.admin-card {
  display: block;
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 26, 47, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 14, 31, 0.08);
}
.admin-card-count {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.admin-card-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.admin-card-body {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(18, 26, 47, 0.65);
}
.dark-phase .admin-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .admin-card-body {
  color: rgba(255, 255, 255, 0.7);
}

.admin-app-directory-grid {
  margin-bottom: 1.25rem;
}

.admin-app-directory-stat {
  pointer-events: none;
}

.admin-app-directory-panel {
  margin-top: 1.25rem;
  padding: 1.35rem;
}

.admin-app-directory-notice {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 1rem 0 0;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  background: rgba(42, 90, 168, 0.1);
  border: 1px solid rgba(42, 90, 168, 0.16);
  color: #254a9e;
  font-size: 0.86rem;
  font-weight: 650;
}

.admin-app-directory-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.admin-app-directory-facts div,
.admin-app-directory-action-note,
.admin-app-directory-candidate {
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.admin-app-directory-facts dt {
  margin: 0 0 0.25rem;
  color: rgba(18, 26, 47, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-app-directory-facts dd {
  margin: 0;
  color: rgba(18, 26, 47, 0.86);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-app-directory-warning {
  margin: 1rem 0 0;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 202, 87, 0.14);
  border: 1px solid rgba(184, 116, 12, 0.18);
  color: #74500d;
  font-size: 0.9rem;
}

.admin-app-directory-actions-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-app-directory-action-form {
  margin: 0;
}

.admin-app-directory-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.admin-app-directory-action-note h3,
.admin-app-directory-candidate h3 {
  margin: 0;
  color: rgba(18, 26, 47, 0.9);
  font-size: 0.98rem;
}

.admin-app-directory-action-note p,
.admin-app-directory-candidate p {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-app-directory-action-note code {
  font-size: 0.8rem;
}

.admin-app-directory-action-note button {
  margin-top: 0.85rem;
}

.admin-app-directory-jobs {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-app-directory-job {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  gap: 1rem;
  border-radius: 0.9rem;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.admin-app-directory-job h3,
.admin-app-directory-migration-group h3 {
  margin: 0;
  color: rgba(18, 26, 47, 0.9);
  font-size: 0.98rem;
}

.admin-app-directory-job p,
.admin-app-directory-migration-group p {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-app-directory-job dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.admin-app-directory-job dl div {
  border-radius: 0.7rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.06);
}

.admin-app-directory-candidates {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-app-directory-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-app-directory-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.admin-app-directory-row-actions form {
  margin: 0;
}

.admin-app-directory-candidate .admin-app-directory-warning {
  margin-top: 0.55rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.admin-app-directory-failure-time {
  flex: 0 0 auto;
  color: rgba(18, 26, 47, 0.55);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.admin-app-directory-migration-groups {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.admin-app-directory-migration-group {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.admin-app-directory-migration-group header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-app-directory-migration-group header span {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(42, 90, 168, 0.1);
  color: #254a9e;
  font-size: 0.88rem;
  font-weight: 750;
}

.admin-app-directory-raw {
  margin-top: 1rem;
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.admin-app-directory-raw p {
  margin: 0 0 0.5rem;
}

.admin-app-directory-raw code {
  display: block;
  color: rgba(18, 26, 47, 0.82);
  font-size: 0.86rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dark-phase .admin-app-directory-notice {
  background: rgba(106, 149, 255, 0.16);
  border-color: rgba(166, 191, 255, 0.22);
  color: #d8e4ff;
}

.dark-phase .admin-app-directory-facts div,
.dark-phase .admin-app-directory-action-note,
.dark-phase .admin-app-directory-candidate,
.dark-phase .admin-app-directory-job,
.dark-phase .admin-app-directory-job dl div,
.dark-phase .admin-app-directory-migration-group,
.dark-phase .admin-app-directory-raw {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
}

.dark-phase .admin-app-directory-facts dt,
.dark-phase .admin-app-directory-action-note p,
.dark-phase .admin-app-directory-candidate p,
.dark-phase .admin-app-directory-failure-time,
.dark-phase .admin-app-directory-job p,
.dark-phase .admin-app-directory-migration-group p {
  color: rgba(255, 255, 255, 0.62);
}

.dark-phase .admin-app-directory-facts dd,
.dark-phase .admin-app-directory-action-note h3,
.dark-phase .admin-app-directory-candidate h3,
.dark-phase .admin-app-directory-job h3,
.dark-phase .admin-app-directory-migration-group h3,
.dark-phase .admin-app-directory-raw code {
  color: rgba(255, 255, 255, 0.9);
}

.dark-phase .admin-app-directory-migration-group header span {
  background: rgba(106, 149, 255, 0.16);
  color: #d8e4ff;
}

.dark-phase .admin-app-directory-warning {
  background: rgba(255, 202, 87, 0.13);
  border-color: rgba(255, 202, 87, 0.2);
  color: #f6d189;
}

@media (max-width: 640px) {
  .admin-app-directory-panel {
    padding: 1rem;
  }

  .admin-app-directory-candidate {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-app-directory-row-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

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

  .admin-app-directory-job dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-empty {
  margin-top: 2rem;
  font-style: italic;
  color: rgba(18, 26, 47, 0.55);
}
.dark-phase .admin-empty {
  color: rgba(255, 255, 255, 0.55);
}

/* --- Pending icon review rows ------------------------------------- */
.admin-icon-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-icon-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 26, 47, 0.08);
}
.admin-icon-row--done {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.65;
}
.admin-icon-row-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(18, 26, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-icon-row-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.admin-icon-row-meta {
  min-width: 0;
}
.admin-icon-row-name {
  margin: 0;
  font-size: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.admin-icon-row-handle {
  color: rgba(18, 26, 47, 0.55);
  font-size: 0.85rem;
}
.admin-icon-row-did {
  margin: 0.25rem 0;
  font-size: 0.75rem;
  color: rgba(18, 26, 47, 0.55);
  word-break: break-all;
}
.admin-icon-row-uploaded {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(18, 26, 47, 0.55);
}
.admin-icon-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  min-width: 200px;
}
.admin-icon-reject {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 280px;
  max-width: 100%;
}
.admin-icon-reject-label {
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-icon-reject-input {
  width: 100%;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  resize: vertical;
}
.admin-icon-reject-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.admin-icon-row-error {
  margin: 0;
  font-size: 0.75rem;
  color: #c25048;
}

.admin-login-app-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  align-items: start;
}

.admin-login-app-notes {
  margin: 0.75rem 0 0;
  border-left: 3px solid rgba(42, 90, 168, 0.28);
  padding-left: 0.75rem;
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-login-app-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.admin-login-app-check {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: rgba(18, 26, 47, 0.64);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-app-check.is-pass {
  background: rgba(232, 247, 238, 0.72);
  color: #2c7650;
}

.admin-login-app-check.is-warn {
  background: rgba(255, 247, 232, 0.82);
  color: #94601f;
}

.admin-login-app-check.is-fail {
  background: rgba(255, 236, 234, 0.72);
  color: #a9443e;
}

.admin-login-app-details {
  margin-top: 0.8rem;
  color: rgba(18, 26, 47, 0.62);
  font-size: 0.85rem;
}

.admin-login-app-details summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-login-app-details ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  overflow-wrap: anywhere;
}

.admin-login-app-actions {
  align-items: stretch;
  min-width: 0;
}

.admin-login-app-actions .profile-form-field {
  width: 100%;
}

.admin-login-app-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.dark-phase .admin-icon-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .admin-icon-row-handle,
.dark-phase .admin-icon-row-did,
.dark-phase .admin-icon-row-uploaded,
.dark-phase .admin-login-app-notes,
.dark-phase .admin-login-app-details {
  color: rgba(255, 255, 255, 0.6);
}
.dark-phase .admin-icon-row-preview {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .admin-icon-reject-input {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-phase .admin-login-app-check {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --- Status pills ------------------------------------------------- */
.admin-status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.admin-status-badge--pending {
  background: rgba(255, 197, 99, 0.2);
  color: #8a5a00;
}
.admin-status-badge--approved {
  background: rgba(70, 196, 142, 0.2);
  color: #1f7a4e;
}
.admin-status-badge--rejected {
  background: rgba(217, 104, 96, 0.2);
  color: #b1453d;
}
.dark-phase .admin-status-badge--pending {
  color: #ffd791;
}
.dark-phase .admin-status-badge--approved {
  color: #8be0b3;
}
.dark-phase .admin-status-badge--rejected {
  color: #ffaca6;
}

/* --- Per-project SVG verification gate (manage form) ------------- */
/**
 * Banner that explains the current verification state above the SVG
 * uploader. Color reflects state: neutral grey for locked, amber for
 * pending review, soft red for denied, no banner for granted.
 */
.icon-gate-banner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.icon-gate-banner-title {
  font-size: 0.9rem;
  font-weight: 700;
}
.icon-gate-banner-body {
  display: block;
}
.icon-gate-banner-hint {
  font-size: 0.75rem;
  opacity: 0.7;
}
.icon-gate-button {
  margin-top: 0.25rem;
  align-self: flex-start;
}
.icon-gate-banner--locked {
  background: rgba(99, 113, 145, 0.1);
  border: 1px solid rgba(99, 113, 145, 0.3);
  color: rgba(38, 50, 78, 0.95);
}
.icon-gate-banner--pending {
  background: rgba(255, 197, 99, 0.15);
  border: 1px solid rgba(255, 197, 99, 0.4);
  color: #6c4500;
}
.icon-gate-banner--denied {
  background: rgba(217, 104, 96, 0.12);
  border: 1px solid rgba(217, 104, 96, 0.4);
  color: #8a3a34;
}
.icon-gate-granted-hint {
  color: rgba(11, 110, 79, 0.95);
}
.dark-phase .icon-gate-banner--locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.dark-phase .icon-gate-banner--pending {
  color: #ffd791;
  background: rgba(255, 197, 99, 0.1);
}
.dark-phase .icon-gate-banner--denied {
  color: #ffb1ab;
  background: rgba(217, 104, 96, 0.12);
}
.dark-phase .icon-gate-granted-hint {
  color: #8be0b3;
}

/**
 * Greyed-out uploader when verification hasn't been granted. We keep
 * the slot visible (so the user understands what they're requesting
 * access to) but visibly inert.
 */
.profile-form-icon-row.is-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: saturate(0.5);
}
.profile-form-button-secondary.is-disabled,
.profile-form-button-secondary.is-disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
}

/* --- Verification request modal --------------------------------- */
.icon-access-modal {
  width: min(460px, 100%);
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ================================================================== *
 * Reports — admin queue + user-facing button/modal
 * ================================================================== */

.admin-report-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-report-row {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 26, 47, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-report-row--done {
  opacity: 0.55;
}
.admin-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.7);
}
.admin-report-meta strong {
  color: rgba(18, 26, 47, 0.95);
}
.admin-report-details {
  margin: 0;
  font-size: 0.85rem;
  white-space: pre-wrap;
}
.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.admin-report-notes-input {
  flex: 1 1 200px;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
}
.dark-phase .admin-report-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .admin-report-meta {
  color: rgba(255, 255, 255, 0.65);
}
.dark-phase .admin-report-meta strong {
  color: rgba(255, 255, 255, 0.95);
}
.dark-phase .admin-report-notes-input {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}

/* User-facing report button (under the profile hero) */
.profile-report-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}
.profile-report-button {
  background: transparent;
  border: 1px solid rgba(18, 26, 47, 0.18);
  color: rgba(18, 26, 47, 0.65);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.profile-report-button:hover {
  color: #c25048;
  border-color: rgba(217, 104, 96, 0.5);
}
.dark-phase .profile-report-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
}
.profile-reviews-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.profile-whats-new {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
}
.profile-whats-new-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.profile-whats-new-copy {
  min-width: 0;
}
.profile-whats-new-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.profile-whats-new h2,
.profile-whats-new h3,
.profile-whats-new h4,
.profile-whats-new p {
  margin: 0;
}
.profile-card-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  color: rgba(18, 26, 47, 0.92);
}
.profile-whats-new-title {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 750;
  line-height: 1.3;
}
.profile-whats-new-body,
.profile-whats-new-preview,
.profile-whats-new-full {
  margin-top: 0.45rem;
  color: rgba(18, 26, 47, 0.76);
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
}
.profile-whats-new-expand {
  display: flex;
  flex-direction: column;
}
.profile-whats-new-expand:has(.profile-whats-new-details[open])
  .profile-whats-new-preview {
  display: none;
}
.profile-whats-new-details summary {
  align-self: flex-start;
  margin-top: 0.55rem;
  list-style: none;
  color: #254a9e;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.profile-whats-new-details summary::-webkit-details-marker {
  display: none;
}
.profile-whats-new-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
.profile-whats-new-empty {
  color: rgba(18, 26, 47, 0.62);
}
.profile-whats-new-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: rgba(18, 26, 47, 0.58);
}
.profile-whats-new-icon-button,
.profile-whats-new-history-button,
.profile-version-history-commit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  text-decoration: none;
  color: #254a9e;
  border: 1px solid rgba(18, 26, 47, 0.12);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}
.profile-whats-new-icon-button,
.profile-whats-new-history-button {
  width: 2.15rem;
  height: 2.15rem;
}
.profile-whats-new-icon-button {
  position: relative;
}
.profile-whats-new-history-button {
  cursor: pointer;
  font-size: 1rem;
}
.profile-whats-new-icon-button:hover,
.profile-whats-new-history-button:hover,
.profile-version-history-commit:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(42, 90, 168, 0.3);
}
.profile-whats-new-icon {
  width: 1.15rem;
  height: 1.15rem;
}
.profile-whats-new-icon-arrow {
  position: absolute;
  right: 0.25rem;
  top: 0.18rem;
  font-size: 0.62rem;
  line-height: 1;
}
.profile-version-history-modal {
  max-width: 640px;
}
.profile-version-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
}
.profile-version-history-item {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
}
.profile-version-history-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.profile-version-history-item h3 {
  margin-top: 0.2rem;
  font-size: 0.98rem;
}
.profile-version-history-item p {
  margin-top: 0.25rem;
  color: rgba(18, 26, 47, 0.7);
  white-space: pre-wrap;
  font-size: 0.88rem;
}
.profile-version-history-commit {
  gap: 0.25rem;
  margin-top: 0.55rem;
  padding: 0.32rem 0.55rem;
}
.profile-reviews-summary,
.profile-reviews-panel,
.profile-review-card {
  padding: 1rem;
  border-radius: 1.2rem;
}
.profile-reviews-summary.glass,
.profile-reviews-panel.glass,
.profile-review-card.glass {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(18, 26, 47, 0.08);
}
.profile-reviews-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 1.2rem;
  align-items: center;
}
.profile-reviews-average {
  margin: 0.3rem 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 850;
}
.profile-reviews-average span,
.profile-review-stars {
  color: #d89a23;
}
.profile-reviews-threshold {
  margin: 0.25rem 0 0;
  color: rgba(18, 26, 47, 0.68);
}
.profile-rating-distribution {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-rating-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(18, 26, 47, 0.68);
}
.profile-rating-bar {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.1);
}
.profile-rating-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d89a23, #f2c75c);
}
.profile-reviews-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(18, 26, 47, 0.08);
}
.profile-review-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}
.profile-review-write-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.profile-review-write-icon {
  font-size: 1rem;
  line-height: 1;
}
.profile-review-action-hint,
.profile-review-owner-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(18, 26, 47, 0.62);
}
.profile-review-rating-field {
  display: flex;
  gap: 0.2rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}
.profile-review-rating-field legend,
.profile-review-body-field span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: rgba(18, 26, 47, 0.7);
}
.profile-review-star {
  background: none;
  border: 0;
  color: rgba(18, 26, 47, 0.22);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 0.1rem;
}
.profile-review-star.is-active {
  color: #d89a23;
}
.profile-review-body-field textarea,
.profile-review-response-composer textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  border: 1px solid rgba(18, 26, 47, 0.14);
  border-radius: 0.9rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font: inherit;
}
.profile-review-char-count {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.profile-review-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}
.profile-review-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.profile-review-card {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 26, 47, 0.07);
  box-shadow: none;
}
.profile-reviews-empty {
  margin-top: 0.25rem;
}
.profile-review-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.profile-review-author-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.profile-review-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.1);
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.9rem;
  font-weight: 850;
}
.profile-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-review-author,
.profile-review-date,
.profile-review-body,
.profile-review-stars {
  margin: 0;
}
.profile-review-author {
  font-weight: 800;
}
.profile-review-handle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.profile-review-date {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(18, 26, 47, 0.55);
}
.profile-review-stars {
  flex: 0 0 auto;
  letter-spacing: 0.05em;
}
.profile-review-stars span {
  color: rgba(18, 26, 47, 0.24);
}
.profile-review-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(18, 26, 47, 0.07);
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
}
.profile-review-response {
  margin-top: 0.9rem;
  border-left: 3px solid rgba(18, 26, 47, 0.18);
  padding: 0.1rem 0 0.1rem 0.85rem;
}
.profile-review-response p {
  margin: 0.2rem 0 0;
}
.profile-review-response-label {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 26, 47, 0.58);
}
.profile-review-response-toggle,
.profile-review-report-button {
  margin-top: 0.9rem;
}
.profile-review-report-button {
  display: inline-flex;
}
.profile-review-response-composer {
  margin-top: 0.9rem;
}
.dark-phase .profile-review-rating-field legend,
.dark-phase .profile-review-body-field span,
.dark-phase .profile-review-response-label {
  color: rgba(255, 255, 255, 0.65);
}
.dark-phase .profile-card-section-title {
  color: rgba(255, 255, 255, 0.92);
}
.dark-phase .profile-reviews-summary.glass,
.dark-phase .profile-reviews-panel.glass,
.dark-phase .profile-review-card.glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}
.dark-phase .profile-reviews-threshold,
.dark-phase .profile-whats-new-empty,
.dark-phase .profile-whats-new-body,
.dark-phase .profile-whats-new-preview,
.dark-phase .profile-whats-new-full,
.dark-phase .profile-version-history-item p,
.dark-phase .profile-whats-new-meta,
.dark-phase .profile-rating-row,
.dark-phase .profile-review-handle,
.dark-phase .profile-review-date,
.dark-phase .profile-review-char-count,
.dark-phase .profile-review-action-hint,
.dark-phase .profile-review-owner-note {
  color: rgba(255, 255, 255, 0.58);
}
.dark-phase .profile-rating-bar {
  background: rgba(255, 255, 255, 0.12);
}
.dark-phase .profile-reviews-panel-header,
.dark-phase .profile-review-body {
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .profile-review-star {
  color: rgba(255, 255, 255, 0.22);
}
.dark-phase .profile-review-star.is-active {
  color: #f2c75c;
}
.dark-phase .profile-review-stars span {
  color: rgba(255, 255, 255, 0.25);
}
.dark-phase .profile-review-avatar {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}
.dark-phase .profile-whats-new-details summary,
.dark-phase .profile-whats-new-icon-button,
.dark-phase .profile-whats-new-history-button,
.dark-phase .profile-version-history-commit {
  color: rgba(160, 200, 255, 1);
}
.dark-phase .profile-whats-new-icon-button,
.dark-phase .profile-whats-new-history-button,
.dark-phase .profile-version-history-commit {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}
.dark-phase .profile-whats-new-icon-button:hover,
.dark-phase .profile-whats-new-history-button:hover,
.dark-phase .profile-version-history-commit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(160, 200, 255, 0.35);
}
.dark-phase .profile-version-history-item {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .profile-review-body-field textarea,
.dark-phase .profile-review-response-composer textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .profile-review-response {
  border-left-color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 640px) {
  .profile-whats-new-main {
    flex-direction: column;
  }
  .profile-reviews-summary {
    grid-template-columns: 1fr;
  }
  .profile-review-header {
    flex-direction: column;
  }
}

/* Account type onboarding + user review management */
.account-type-section,
.account-reviews-section {
  min-height: 70vh;
  padding: 8rem 0 4rem;
}
.account-type-backdrop {
  position: fixed;
}
.account-type-card {
  width: min(560px, 100%);
}
.account-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.account-type-options form {
  margin: 0;
}
.account-type-option {
  display: flex;
  min-height: 10rem;
  width: 100%;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid rgba(18, 26, 47, 0.14);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.account-type-option:hover {
  transform: translateY(-1px);
  border-color: rgba(81, 114, 255, 0.45);
  background: rgba(255, 255, 255, 0.9);
}
.account-type-option strong {
  font-size: 1rem;
}
.account-type-option span {
  font-size: 0.9rem;
  color: rgba(18, 26, 47, 0.68);
}
.account-reviews-header {
  margin-bottom: 1.5rem;
}
.account-reviews-header-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.user-profile-upgrade-button {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* ---- Project page (banner + share toolbar) ---- */
.project-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.project-page-banner {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.3);
}
.project-page-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Share button + toast ---- */
.share-button-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0e1428;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.share-button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.share-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dark-phase .share-button {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f0f4ff;
}
.dark-phase .share-button:hover {
  background: rgba(255, 255, 255, 0.22);
}
.share-button-toast {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  background: rgba(20, 30, 60, 0.92);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: share-toast-pop 0.2s ease-out;
}
.share-button-toast--error {
  background: rgba(120, 30, 30, 0.92);
}
@keyframes share-toast-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.account-reviews-empty {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
}
.user-reviews-heading {
  margin: 1.45rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.user-profile-settings {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
}
.user-profile-settings:has(.user-profile-client-form.is-modal-open) {
  z-index: 300;
}
.user-profile-client-form.is-modal-open .modal-backdrop {
  z-index: 1000;
}
.user-profile-preview {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.user-profile-avatar,
.user-public-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.1);
  color: rgba(18, 26, 47, 0.7);
  font-weight: 850;
}
.user-profile-avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.3rem;
}
.user-public-avatar {
  width: 6.5rem;
  height: 6.5rem;
  font-size: 2rem;
}
.user-profile-avatar img,
.user-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-profile-preview h2 {
  margin: 0;
  font-size: 1.15rem;
}
.user-profile-handle {
  margin: 0.15rem 0 0.6rem;
  color: rgba(18, 26, 47, 0.58);
}
.user-profile-bio {
  margin: 0.7rem 0 0;
  white-space: pre-wrap;
}
.user-profile-view-link {
  display: inline-flex;
  margin-top: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.user-profile-client-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.user-profile-bio-input {
  min-height: 6rem;
  resize: vertical;
}
.user-profile-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.user-bsky-picker-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: rgba(18, 26, 47, 0.7);
}
.user-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.user-review-row {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
}
.user-review-row--deleted {
  opacity: 0.65;
}
.user-review-row-header,
.user-review-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.user-review-row-header h2,
.user-review-row-header p,
.user-review-row-body {
  margin: 0;
}
.user-review-row-header h2 {
  font-size: 1rem;
}
.user-review-row-header a {
  color: inherit;
  opacity: 0.68;
}
.user-review-row-body {
  margin-top: 0.8rem;
  white-space: pre-wrap;
}
.user-review-row-actions {
  align-items: center;
  margin-top: 1rem;
  color: rgba(18, 26, 47, 0.58);
  font-size: 0.82rem;
}
.dark-phase .account-type-option {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-phase .account-type-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(160, 180, 255, 0.45);
}
.dark-phase .account-type-option span,
.dark-phase .user-profile-handle,
.dark-phase .user-bsky-picker-label,
.dark-phase .user-review-row-actions {
  color: rgba(255, 255, 255, 0.6);
}
.dark-phase .user-profile-avatar,
.dark-phase .user-public-avatar {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 640px) {
  .account-type-options {
    grid-template-columns: 1fr;
  }
  .account-reviews-empty {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-profile-settings {
    grid-template-columns: 1fr;
  }
}

.user-public-section {
  min-height: 70vh;
  padding: 8rem 0 4rem;
}
.user-public-card {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
}
.user-public-media {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.user-public-body {
  min-width: 0;
}
.user-public-client-link {
  margin-top: 0;
}
.user-public-actions {
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .user-public-card {
    flex-direction: column;
  }
}

/* Modal-internal styles for the report dialog */
.report-modal-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.report-modal-fieldset legend {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.report-modal-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.report-modal-textarea {
  width: 100%;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  resize: vertical;
  min-height: 4.5rem;
}
.dark-phase .report-modal-textarea {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}
.report-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.report-modal-status {
  font-size: 0.8rem;
  margin: 0.5rem 0;
}
.report-modal-status--ok {
  color: #1f7a4e;
}
.report-modal-status--error {
  color: #c25048;
}

/* ================================================================== *
 * Featured curation
 * ================================================================== */

.admin-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .admin-featured-layout {
    grid-template-columns: 1fr;
  }
}
.admin-featured-column h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.admin-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-featured-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 26, 47, 0.08);
}
.admin-featured-row strong {
  font-size: 0.9rem;
}
.admin-featured-handle {
  color: rgba(18, 26, 47, 0.55);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}
.admin-featured-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.admin-featured-icon-button {
  background: transparent;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  cursor: pointer;
  color: rgba(18, 26, 47, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-featured-icon-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.admin-featured-badges {
  display: flex;
  gap: 0.25rem;
}
.admin-featured-badge-toggle {
  background: transparent;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  color: rgba(18, 26, 47, 0.65);
}
.admin-featured-badge-toggle--on {
  background: rgba(70, 196, 142, 0.18);
  border-color: rgba(70, 196, 142, 0.5);
  color: #1f7a4e;
}
.admin-featured-filter {
  width: 100%;
  border: 1px solid rgba(18, 26, 47, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
}
.admin-featured-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.admin-featured-status {
  font-size: 0.85rem;
}
.admin-featured-status--ok {
  color: #1f7a4e;
}
.admin-featured-status--error {
  color: #c25048;
}
.dark-phase .admin-featured-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-phase .admin-featured-handle {
  color: rgba(255, 255, 255, 0.55);
}
.dark-phase .admin-featured-icon-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}
.dark-phase .admin-featured-badge-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
}
.dark-phase .admin-featured-filter {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ================================================================== *
 * Takedowns
 * ================================================================== */

.admin-report-takedown-button {
  background: rgba(194, 80, 72, 0.12);
  border: 1px solid rgba(194, 80, 72, 0.4);
  color: #c25048;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.admin-report-takedown-button:hover:not(:disabled) {
  background: rgba(194, 80, 72, 0.2);
}
.admin-report-takedown-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dark-phase .admin-report-takedown-button {
  background: rgba(255, 110, 100, 0.15);
  border-color: rgba(255, 110, 100, 0.45);
  color: #ff9b94;
}

.manage-takedown-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(194, 80, 72, 0.08);
  border: 1px solid rgba(194, 80, 72, 0.35);
  color: #7a2a24;
}
.manage-takedown-banner-title {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.manage-takedown-banner-body {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.manage-takedown-banner-reason {
  margin: 0;
  font-size: 0.85rem;
}
.dark-phase .manage-takedown-banner {
  background: rgba(255, 110, 100, 0.1);
  border-color: rgba(255, 110, 100, 0.4);
  color: #ffb6b0;
}

/* ================================================================== *
 * Docs
 * ================================================================== */

.docs-shell-section {
  padding: 6.25rem 0 4rem;
}

.docs-shell {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.25rem);
  align-items: start;
  max-width: 1140px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 7.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 26, 47, 0.22) transparent;
}

.docs-sidebar {
  display: grid;
  gap: 1rem;
  padding-right: 0.25rem;
}

.docs-sidebar::-webkit-scrollbar,
.docs-toc::-webkit-scrollbar {
  width: 0.45rem;
}

.docs-sidebar::-webkit-scrollbar-track,
.docs-toc::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb,
.docs-toc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 26, 47, 0.18);
}

.docs-sidebar-home {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  color: #0e1428;
  text-decoration: none;
  font-weight: 900;
  background: transparent;
  border: 1px solid transparent;
}

.docs-sidebar-home img {
  width: 1.75rem;
  height: 1.75rem;
}

.docs-nav {
  display: grid;
  gap: 1rem;
}

.docs-nav-group {
  display: grid;
  gap: 0.35rem;
}

.docs-nav-group p,
.docs-toc p {
  margin: 0 0 0.2rem;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-nav-group a,
.docs-toc a {
  display: flex;
  align-items: center;
  min-height: 2.05rem;
  border-radius: 10px;
  color: rgba(18, 26, 47, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
}

.docs-nav-group a {
  padding: 0.25rem 0.6rem;
}

.docs-nav-group a:hover,
.docs-nav-group a:focus-visible {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.56);
}

/* Active page: distinct from hover through its card and accent treatment. */
.docs-nav-group a.is-active {
  color: #1f4fa8;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.64);
}

.docs-main {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(150px, 1fr);
  column-gap: clamp(1.1rem, 2.4vw, 1.6rem);
  align-items: start;
  min-width: 0;
  max-width: 970px;
}

.docs-hero {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin-top: 0.25rem;
  padding: 0.15rem 0 1.15rem;
  border-bottom: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 720px;
}

.docs-kicker-row .text-eyebrow {
  margin: 0;
}

.docs-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.6);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-hero h1 {
  max-width: 720px;
  margin: 0.25rem 0 0;
  color: #0e1428;
  font-size: clamp(2rem, 3.25vw, 2.85rem);
  line-height: 1.06;
}

.docs-hero > p:not(.text-eyebrow) {
  max-width: 700px;
  margin: 0.85rem 0 0;
  color: rgba(18, 26, 47, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.docs-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.55rem;
  max-width: 720px;
  margin-top: 0.9rem;
}

.docs-summary-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-summary-grid span {
  min-height: 0;
  border-radius: 12px;
  padding: 0.66rem 0.72rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.07);
  color: rgba(18, 26, 47, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.docs-hero-cta {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.64rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.docs-hero-cta::after {
  content: "";
  display: inline-block;
  width: 0.46rem;
  height: 0.46rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(1px) rotate(45deg);
}

.docs-hero-cta--primary {
  background: #1677ff;
  border: 1px solid rgba(22, 119, 255, 0.9);
  color: #fff;
  box-shadow: 0 13px 28px rgba(22, 119, 255, 0.18);
}

.docs-hero-cta--secondary {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(22, 119, 255, 0.24);
  color: #1f4f96;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.docs-hero-cta:hover {
  transform: translateY(-1px);
}

.docs-hero-cta--primary:hover {
  background: #0f6ee9;
  border-color: rgba(15, 110, 233, 0.95);
  box-shadow: 0 16px 34px rgba(22, 119, 255, 0.24);
}

.docs-hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(22, 119, 255, 0.34);
}

.docs-hero-actions .docs-hero-cta {
  min-height: 2.65rem;
}

.docs-content-grid {
  display: contents;
}

.docs-content {
  display: grid;
  grid-column: 1;
  gap: 0;
  margin-top: 1.45rem;
  min-width: 0;
}

.docs-section {
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 6.5rem;
  border-radius: 0;
  padding: clamp(1.45rem, 3vw, 2rem) 0;
  background: transparent;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-section h2 {
  max-width: 720px;
  margin: 0.2rem 0 0;
  color: #0e1428;
  font-size: clamp(1.4rem, 2.25vw, 1.82rem);
  line-height: 1.08;
}

.docs-section-intro,
.docs-paragraph {
  max-width: 720px;
  color: rgba(18, 26, 47, 0.7);
  line-height: 1.65;
}

.docs-section-intro {
  margin: 0.65rem 0 0;
}

.docs-blocks {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  min-width: 0;
}

.docs-callout {
  min-width: 0;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(42, 90, 168, 0.16);
  background: rgba(229, 239, 255, 0.62);
}

.docs-callout--amber {
  border-color: rgba(176, 131, 40, 0.22);
  background: rgba(255, 246, 222, 0.72);
}

.docs-callout strong {
  display: block;
  color: #0e1428;
}

.docs-callout p {
  margin: 0.35rem 0 0;
  color: rgba(18, 26, 47, 0.7);
  line-height: 1.55;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.docs-card-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card-link {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  min-height: 8rem;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: #0e1428;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.docs-card-link:hover,
.docs-card-link:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(17, 133, 254, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.docs-card-link strong {
  font-size: 1rem;
  line-height: 1.2;
}

.docs-card-link span {
  color: rgba(18, 26, 47, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.docs-card-link em {
  align-self: end;
  margin-top: 0.2rem;
  color: #1f4f96;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-diagram {
  min-width: 0;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-diagram h3 {
  margin: 0 0 0.75rem;
  color: #0e1428;
  font-size: 1rem;
}

.docs-diagram-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr));
  gap: 0.65rem;
}

.docs-diagram-track--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-diagram--login .docs-diagram-track {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.58rem;
}

.docs-diagram-node {
  position: relative;
  min-width: 0;
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(18, 26, 47, 0.07);
}

.docs-diagram-node span {
  display: inline-flex;
  margin-bottom: 0.42rem;
  color: #1f4f96;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 900;
}

.docs-diagram-node strong {
  display: block;
  color: #0e1428;
  line-height: 1.2;
}

.docs-diagram-node p {
  margin: 0.4rem 0 0;
  color: rgba(18, 26, 47, 0.67);
  font-size: 0.9rem;
  line-height: 1.42;
}

.docs-diagram--login .docs-diagram-node {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  column-gap: 0.72rem;
  align-items: start;
  padding: 0.78rem 0.85rem;
}

.docs-diagram--login .docs-diagram-node span {
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0.02rem 0 0;
  border-radius: 999px;
  background: rgba(17, 133, 254, 0.1);
  border: 1px solid rgba(17, 133, 254, 0.14);
}

.docs-diagram--login .docs-diagram-node p {
  margin-top: 0.24rem;
}

.docs-diagram--host .docs-diagram-node span,
.docs-diagram--host .docs-card-link em {
  color: #3f6c56;
}

.docs-code {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.docs-code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  color: rgba(18, 26, 47, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.docs-code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  border: 1px solid rgba(18, 26, 47, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(18, 26, 47, 0.72);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.docs-code-copy:hover,
.docs-code-copy:focus-visible,
.docs-code-copy[data-copied="true"] {
  background: rgba(17, 133, 254, 0.12);
  border-color: rgba(17, 133, 254, 0.2);
  color: #1f4f96;
  outline: none;
}

.docs-code pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  border-radius: 14px;
  padding: 1rem;
  background: #0e1428;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3f7ff;
  line-height: 1.58;
  white-space: pre;
  overflow-wrap: normal;
  box-shadow: 0 14px 34px rgba(18, 26, 47, 0.14);
}

.docs-code code,
.docs-endpoint code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.docs-inline-code {
  display: inline-block;
  max-width: 100%;
  border-radius: 7px;
  padding: 0.05rem 0.28rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: #0e1428;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  line-height: 1.35;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}

.docs-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(18, 26, 47, 0.72);
  line-height: 1.55;
}

.docs-checklist {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-checklist li {
  position: relative;
  min-width: 0;
  border-radius: 14px;
  padding: 0.7rem 0.82rem 0.7rem 2.45rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: rgba(18, 26, 47, 0.72);
  line-height: 1.45;
}

.docs-checklist li::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 0.85rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #1185fe;
  box-shadow: 0 0 0 4px rgba(17, 133, 254, 0.12);
}

.docs-checklist li::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  top: 1.02rem;
  width: 0.3rem;
  height: 0.5rem;
  border-bottom: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: rotate(42deg);
}

.docs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.docs-steps article {
  min-width: 0;
  padding: 0.92rem;
  overflow-wrap: anywhere;
}

.docs-steps span {
  color: #1f4f96;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.docs-steps h3 {
  margin: 0.55rem 0 0;
  color: #0e1428;
  font-size: 1rem;
}

.docs-steps p {
  margin: 0.45rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.docs-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.52);
}

.docs-table th,
.docs-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(18, 26, 47, 0.07);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: rgba(18, 26, 47, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.docs-table td {
  color: rgba(18, 26, 47, 0.72);
  line-height: 1.45;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-endpoint {
  min-width: 0;
  padding: 1rem;
  border-radius: 14px;
}

.docs-endpoint > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.docs-endpoint span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 1.75rem;
  border-radius: 999px;
  background: #1185fe;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.docs-endpoint code {
  overflow-wrap: anywhere;
  color: #0e1428;
}

.docs-endpoint p {
  margin: 0.65rem 0 0;
  color: rgba(18, 26, 47, 0.68);
  line-height: 1.5;
}

.docs-icon-downloads {
  padding: 1rem;
}

.docs-toc {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  gap: 0.25rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-toc-summary {
  margin: 0 0 0.35rem;
  color: rgba(18, 26, 47, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.docs-toc-summary::-webkit-details-marker {
  display: none;
}

/* Disclosure chevron — hidden on desktop where the TOC is always open. */
.docs-toc-summary::after {
  content: "";
  display: none;
}

.docs-toc-links {
  display: grid;
  gap: 0.25rem;
}

.docs-toc a {
  position: relative;
  margin-left: -0.5rem;
  min-height: 1.9rem;
  border-radius: 10px;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
}

.docs-toc a:hover,
.docs-toc a:focus-visible,
.docs-toc a.is-active {
  color: #0e1428;
  background: rgba(255, 255, 255, 0.52);
  outline: none;
}

.docs-toc a.is-active::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 999px;
  background: #1185fe;
}

.docs-next-steps {
  grid-column: 1;
  max-width: 720px;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(18, 26, 47, 0.08);
}

.docs-next-steps h2 {
  margin: 0.22rem 0 0.75rem;
  color: #0e1428;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.docs-next-prev {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 720px;
  margin-top: 1rem;
}

.docs-page-link,
.docs-page-link-placeholder {
  display: grid;
  min-height: 4.25rem;
}

.docs-page-link {
  gap: 0.25rem;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 26, 47, 0.08);
  color: #0e1428;
  text-decoration: none;
}

.docs-page-link--next {
  text-align: right;
}

.docs-page-link:hover,
.docs-page-link:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(17, 133, 254, 0.22);
  outline: none;
}

.docs-next-prev span {
  color: rgba(18, 26, 47, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.docs-next-prev strong {
  font-size: 1rem;
}

@media (max-width: 1120px) {
  .docs-shell {
    grid-template-columns: 12.75rem minmax(0, 1fr);
    gap: clamp(1rem, 2.4vw, 1.5rem);
  }

  .docs-main {
    display: block;
    max-width: none;
  }

  .docs-content-grid {
    display: grid;
    margin-top: 1.45rem;
  }

  .docs-content {
    margin-top: 0;
  }

  .docs-main,
  .docs-hero,
  .docs-content-grid,
  .docs-next-steps,
  .docs-next-prev {
    max-width: none;
  }

  /* TOC becomes a collapsible card above the content (docs.js collapses it
     by default on load for small screens). */
  .docs-toc {
    display: block;
    position: static;
    grid-column: 1;
    grid-row: auto;
    order: -1;
    max-height: none;
    overflow: visible;
    margin-bottom: 1.35rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(18, 26, 47, 0.1);
    border-left: 1px solid rgba(18, 26, 47, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
  }

  .docs-toc[open] {
    padding-bottom: 0.7rem;
  }

  .docs-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
  }

  .docs-toc[open] .docs-toc-summary {
    margin-bottom: 0.5rem;
  }

  /* Show a rotating chevron on mobile where the TOC is interactive. */
  .docs-toc-summary::after {
    display: block;
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid rgba(18, 26, 47, 0.5);
    border-bottom: 2px solid rgba(18, 26, 47, 0.5);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .docs-toc[open] .docs-toc-summary::after {
    transform: rotate(-135deg);
  }
}

@media (max-width: 760px) {
  .docs-shell,
  .docs-content-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    padding-right: 0;
  }

  .docs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 1rem;
    overflow: visible;
  }

  .docs-nav-group {
    min-width: 0;
  }

  .docs-summary-grid,
  .docs-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .docs-shell-section {
    padding-top: 5.65rem;
    padding-bottom: 2.5rem;
  }

  .docs-shell {
    gap: 0.85rem;
    padding-inline: 1rem;
  }

  .docs-sidebar {
    gap: 0.55rem;
  }

  .docs-sidebar-home {
    min-height: 2.55rem;
    border-radius: 14px;
    padding: 0.45rem 0.7rem;
  }

  .docs-nav {
    display: flex;
    gap: 0.45rem;
    margin-inline: -0.15rem;
    padding: 0.15rem 0.15rem 0.35rem;
    overflow-x: auto;
    overscroll-behavior-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .docs-nav::-webkit-scrollbar {
    display: none;
  }

  .docs-nav-group {
    display: contents;
  }

  .docs-nav-group p {
    display: none;
  }

  .docs-nav-group a {
    flex: 0 0 auto;
    min-height: 2.25rem;
    border: 1px solid rgba(18, 26, 47, 0.06);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.32);
    white-space: nowrap;
  }

  .docs-nav-group a.is-active {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.78);
  }

  .docs-hero {
    width: 100%;
    padding: 0 0 1rem;
  }

  .docs-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
    line-height: 1.02;
  }

  .docs-hero > p:not(.text-eyebrow) {
    font-size: 1rem;
    line-height: 1.5;
  }

  .docs-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.95rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .docs-summary-grid span {
    width: 100%;
    min-height: 0;
    border-radius: 16px;
    padding: 0.72rem 0.8rem;
    line-height: 1.42;
  }

  .docs-hero-actions {
    align-items: stretch;
  }

  .docs-hero-actions a {
    justify-content: center;
  }

  .docs-kicker-row {
    align-items: flex-start;
  }

  .docs-status-badge {
    margin-top: 0.1rem;
  }

  .docs-card-grid,
  .docs-diagram-track {
    grid-template-columns: 1fr;
  }

  .docs-card-link {
    min-height: 0;
    border-radius: 16px;
  }

  .docs-content-grid {
    margin-top: 0.85rem;
  }

  .docs-content {
    gap: 0;
  }

  .docs-section {
    padding: 1.2rem 0;
  }

  .docs-section h2 {
    font-size: clamp(1.38rem, 7vw, 1.8rem);
    line-height: 1.08;
  }

  .docs-section-intro,
  .docs-paragraph,
  .docs-callout p,
  .docs-endpoint p {
    line-height: 1.55;
  }

  .docs-blocks {
    gap: 0.75rem;
  }

  .docs-callout,
  .docs-endpoint,
  .docs-icon-downloads {
    border-radius: 16px;
    padding: 0.85rem;
  }

  .docs-code pre {
    border-radius: 16px;
    padding: 0.85rem;
  }

  .docs-code code,
  .docs-endpoint code {
    font-size: 0.78rem;
  }

  .docs-table-wrap {
    overflow: visible;
  }

  .docs-table {
    min-width: 0;
    display: block;
  }

  .docs-table thead {
    display: none;
  }

  .docs-table tbody {
    display: grid;
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .docs-table tr,
  .docs-table td {
    display: block;
  }

  .docs-table tr {
    overflow: hidden;
    border: 1px solid rgba(18, 26, 47, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
  }

  .docs-table td {
    border-bottom: 1px solid rgba(18, 26, 47, 0.06);
    padding: 0.7rem 0.8rem;
  }

  .docs-table td:last-child {
    border-bottom: 0;
  }

  .docs-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.22rem;
    color: rgba(18, 26, 47, 0.52);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .docs-next-prev {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .docs-page-link-placeholder {
    display: none;
  }

  .docs-page-link--next {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .docs-hero-actions {
    flex-direction: column;
  }

  .docs-hero-actions a,
  .docs-page-link {
    width: 100%;
  }
}

/* ================================================================
   Keyboard focus — consolidated visible focus rings
   Fills gaps flagged in the a11y audit. Placed last so it wins the
   equal-specificity `outline: none` declarations these controls set.
   ================================================================ */

/* Zero-specificity global safety net: any interactive element that has
   no bespoke focus style still gets a visible ring. `:where()` keeps
   specificity at 0 so component-specific focus styles always win. */
:where(
  a,
  button,
  [role="button"],
  [role="tab"],
  summary,
  [tabindex]
):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Explicit rings for controls that set `outline: none` with no replacement. */
.explore-category-tab:focus-visible,
.profile-hero-action:focus-visible,
.profile-form-button-secondary:focus-visible,
.profile-form-button-secondary:focus-within,
.directory-register-button:focus-visible,
.text-link-button:focus-visible,
.explore-search-submit:focus-visible,
.hosts-filter-trigger:focus-visible,
.hosts-filter-apply:focus-visible,
.signin-tab:focus-visible,
.app-card:focus-visible,
.app-fresh-card:focus-visible,
.app-spotlight-card:focus-visible,
.app-ranked-row:focus-visible,
.app-category-tile:focus-visible,
.app-pagination-link:focus-visible,
.docs-nav-group a:focus-visible,
.docs-toc a:focus-visible,
.docs-card-link:focus-visible,
.docs-code-copy:focus-visible,
.docs-page-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Text inputs read better with an inset-style ring that hugs the field. */
.explore-search-input:focus-visible,
.signin-form-input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
}

/* ============================================================
   Mobile UX sweep — app & host directory/detail refinements.
   Phone-scoped and intentionally last in the file so these
   overrides win the cascade over the base rules above.
   ============================================================ */
@media (max-width: 640px) {
  /* App directory cards: drop "View" below the identity block and stack name
     over handle, so the app name gets the full card width (up to two lines)
     instead of being capped at 65% and racing the handle + View for a ~99px
     sliver. The whole card is the link, so View is only a visual affordance. */
  .app-card-identity-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .app-card-view {
    align-self: flex-start;
  }
  .app-card .profile-card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    overflow: visible;
  }
  .app-card .profile-card-name {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .app-card .profile-card-handle {
    max-width: 100%;
  }

  /* Search + filter: stack so the field spans the full width (the
     "Search account hosts…" placeholder no longer clips) and the filter
     becomes a full-width, clearly labelled button. */
  .hosts-search-form {
    grid-template-columns: 1fr;
  }
  .hosts-filter-menu {
    align-self: stretch;
  }
  .hosts-filter-trigger {
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    gap: 0.5rem;
    border-radius: 999px;
  }
  .hosts-filter-trigger-label {
    display: inline;
    font-weight: 600;
    font-size: 0.95rem;
  }

  /* Comfortable ≥44px touch targets for standalone controls. */
  .text-link-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .hosts-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.4rem;
  }
  .hosts-filter-field select,
  .hosts-filter-apply,
  .hosts-search-form .explore-search-submit {
    min-height: 2.75rem;
  }
  .app-review-sort-link {
    min-height: 2.75rem;
  }
  .app-detail-review-actions .explore-cta-primary,
  .profile-form-button-secondary.app-like-button {
    min-height: 2.75rem;
  }

  /* Reclaim dead space above the fold: the fixed nav is ~4.35rem, so 8.5rem
     of section padding leaves a large empty band on a phone. */
  .signin-page-section,
  .account-home-section,
  .hosts-section {
    padding-top: 5.75rem;
  }
}

/* ------------------------------------------------------------
   Detail hero (mobile): put the name/handle beside the avatar and
   let pills, description and actions span the full width below — so
   the space to the right of and under the avatar is actually used,
   and action buttons pack instead of each taking a full row.
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .host-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "media   identity"
      "meta    meta"
      "desc    desc"
      "actions actions";
    column-gap: 1rem;
    row-gap: 0.8rem;
    align-items: start;
  }
  .host-detail-hero .profile-hero-media {
    grid-area: media;
    align-self: start;
  }
  /* Smaller avatar on mobile leaves more room for the name/count and pills. */
  .host-detail-hero .host-card-mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .host-detail-hero .host-card-mark-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  /* Bluesky button lives in the pill row on mobile, not under the avatar. */
  .host-detail-hero .profile-hero-secondary-actions {
    display: none;
  }
  /* Flatten the body wrapper so its children join the hero grid directly. */
  .host-detail-hero .profile-hero-body {
    display: contents;
  }
  .host-detail-hero .profile-hero-identity {
    grid-area: identity;
    align-self: start;
    min-width: 0;
  }
  /* The name wraps to show in full (host page carries all the info); the
     compact count stays pinned top-right beside the first line. */
  .host-detail-hero .profile-hero-name-row {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
  }
  .host-detail-hero .profile-hero-name {
    font-size: 1.5rem;
    min-width: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .host-detail-hero .host-detail-account-count {
    align-self: flex-start;
    margin-top: 0.15rem;
  }
  .host-detail-hero .profile-hero-meta {
    grid-area: meta;
    margin: 0;
  }
  /* Shrink the status pills so the Bluesky button + both pills share one row
     even for longer labels ("Location not listed" + "Signup unclear"). */
  .host-detail-hero .profile-card-categories .profile-card-category {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
    letter-spacing: 0.02em;
  }

  /* --- Coherent compact sizing for the rest of the host detail page --- */
  /* Tighten the gap between handle and host domain. */
  .host-detail-hero .profile-hero-handle {
    margin: 0.1rem 0 0.05rem;
    font-size: 0.92rem;
  }
  .host-detail-hero .host-detail-domain {
    margin-top: 0;
  }
  /* Smaller "about" text to match the downsized hero. */
  .host-detail-hero .profile-hero-description {
    grid-area: desc;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }
  /* Slimmer action buttons so they read in proportion to the cards. */
  .host-detail-hero .profile-hero-action {
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
    font-size: 0.88rem;
  }
  .host-detail-hero .profile-hero-action .profile-hero-action-icon {
    width: 1.6rem;
    height: 1.6rem;
  }
  /* Smaller summary cards below the hero. */
  .host-detail-choice-card {
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .host-detail-choice-card h2 {
    font-size: 0.98rem;
  }
  .host-detail-choice-card p:not(.text-eyebrow) {
    font-size: 0.8rem;
  }
  .host-detail-choice-card .text-eyebrow {
    font-size: 0.68rem;
  }
  .host-detail-choice-icon {
    width: 2.3rem;
    height: 2.3rem;
  }
  .host-detail-choice-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .host-detail-hero .profile-hero-actions {
    grid-area: actions;
    width: auto;
    margin: 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(18, 26, 47, 0.12);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  /* Buttons grow to fill the row: two share a row (≈half each) and a lone or
     odd-one-out button takes the full width. */
  .host-detail-hero .profile-hero-action {
    flex: 1 1 40%;
    justify-content: center;
  }
  /* Centre the label+icon instead of pinning the arrow to the far edge, so a
     full-width button reads as a balanced CTA. */
  .host-detail-hero .profile-hero-action-arrow {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .app-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "media identity"
      "actions actions"
      "platforms platforms"
      "desc desc";
    column-gap: 1rem;
    row-gap: 0.85rem;
    align-items: center;
  }
  /* Flatten the nested wrappers so avatar, identity, actions, platforms and
     description all become direct items of the hero grid. */
  .app-detail-hero-summary,
  .app-detail-hero-body,
  .app-detail-hero-heading,
  .app-detail-hero-title,
  .app-detail-hero-side,
  .app-detail-primary-actions {
    display: contents;
  }
  .app-detail-hero .profile-hero-media {
    grid-area: media;
    align-self: start;
  }
  .app-detail-hero .profile-hero-avatar {
    width: 96px;
    height: 96px;
    flex-basis: auto;
  }
  .app-detail-hero-identity {
    grid-area: identity;
    align-self: start;
    min-height: 0;
  }
  .app-detail-hero .profile-hero-actions,
  .app-detail-hero .profile-hero-actions.app-detail-action-columns {
    grid-area: actions;
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    width: auto;
    min-width: 0;
  }
  /* Primary buttons grow to fill the row (two-up, lone one full width);
     store / icon-only buttons keep their natural size. */
  .app-detail-hero
    .profile-hero-action:not(.profile-hero-action--icon-only):not(
      .profile-hero-action--store-icon
    ) {
    flex: 1 1 40%;
    width: auto;
    justify-content: center;
  }
  .app-detail-hero
    .profile-hero-action:not(.profile-hero-action--icon-only):not(
      .profile-hero-action--store-icon
    )
    .profile-hero-action-arrow {
    margin-left: 0;
  }
  .app-detail-hero .profile-hero-action--icon-only {
    flex: 0 0 auto;
  }
  /* Keep store badges compact. Specificity (0,4,0) beats the base
     `.app-detail-hero .profile-hero-action:not(--icon-only)` width:100% and the
     ≤480 flex rule (both 0,3,0) so they pair up instead of stretching full. */
  .app-detail-hero
    .app-detail-store-actions
    .profile-hero-action--store-icon:not(.profile-hero-action--icon-only) {
    flex: 0 0 auto;
    width: auto;
  }
  .app-detail-hero-platforms {
    grid-area: platforms;
  }
  .app-detail-hero-description {
    grid-area: desc;
  }
}
