:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: #0f1c2f;
  --surface-soft: #152639;
  --surface-light: #f7f8fb;
  --text: #f5f9ff;
  --text-muted: #b8c6d6;
  --accent: #5ad4ff;
  --accent-soft: rgba(90, 212, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  --card-radius-scale: 0.8;
  --shadow: 0 28px 80px rgba(2, 8, 20, 0.22);
  --radius: calc(24px * var(--card-radius-scale));
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-focus: rgba(90, 212, 255, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, rgba(74, 154, 255, 0.08), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #06101f 0%, #08151f 38%, #08191f 100%);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.8px, transparent 0.8px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

body.page-uap-101 {
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.86) 0%, rgba(7, 16, 31, 0.78) 44%, rgba(7, 16, 31, 0.9) 100%),
    url('../images/black%20hole%20image.png');
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.86) 0%, rgba(7, 16, 31, 0.78) 44%, rgba(7, 16, 31, 0.9) 100%),
    image-set(
      url('../images/optimized/black-hole-image-mobile.webp') type('image/webp'),
      url('../images/black%20hole%20image.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.page-event-timeline {
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
    url('../images/Twin%20pulsars.png');
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
    image-set(
      url('../images/optimized/twin-pulsars-mobile.webp') type('image/webp'),
      url('../images/Twin%20pulsars.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.page-research-index {
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
    url('../images/Resarch%20background.png');
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
    image-set(
      url('../images/optimized/research-background-mobile.webp') type('image/webp'),
      url('../images/Resarch%20background.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.page-deep-dive {
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
    url('../images/The%20office.png');
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
    image-set(
      url('../images/optimized/the-office-mobile.webp') type('image/webp'),
      url('../images/The%20office.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.page-briefing {
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
    url('../images/classified%20simple.jpg');
  background-image:
    linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
    image-set(
      url('../images/optimized/classified-simple-mobile.webp') type('image/webp'),
      url('../images/classified%20simple.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (min-width: 900px) {
  body.page-uap-101 {
    background-image:
      linear-gradient(180deg, rgba(4, 8, 16, 0.86) 0%, rgba(7, 16, 31, 0.78) 44%, rgba(7, 16, 31, 0.9) 100%),
      image-set(
        url('../images/optimized/black-hole-image-desktop.webp') type('image/webp'),
        url('../images/black%20hole%20image.png') type('image/png')
      );
  }

  body.page-event-timeline {
    background-image:
      linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
      image-set(
        url('../images/optimized/twin-pulsars-desktop.webp') type('image/webp'),
        url('../images/Twin%20pulsars.png') type('image/png')
      );
  }

  body.page-research-index {
    background-image:
      linear-gradient(180deg, rgba(4, 8, 16, 0.84) 0%, rgba(7, 16, 31, 0.76) 42%, rgba(7, 16, 31, 0.9) 100%),
      image-set(
        url('../images/optimized/research-background-desktop.webp') type('image/webp'),
        url('../images/Resarch%20background.png') type('image/png')
      );
  }

  body.page-deep-dive {
    background-image:
      linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
      image-set(
        url('../images/optimized/the-office-desktop.webp') type('image/webp'),
        url('../images/The%20office.png') type('image/png')
      );
  }

  body.page-briefing {
    background-image:
      linear-gradient(180deg, rgba(4, 8, 16, 0.88) 0%, rgba(7, 16, 31, 0.8) 44%, rgba(7, 16, 31, 0.92) 100%),
      image-set(
        url('../images/optimized/classified-simple-desktop.webp') type('image/webp'),
        url('../images/classified%20simple.jpg') type('image/jpeg')
      );
  }
}

@media (max-width: 768px) {
  body.page-uap-101,
  body.page-event-timeline,
  body.page-research-index,
  body.page-deep-dive,
  body.page-briefing {
    background-attachment: scroll;
  }
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
button:hover {
  opacity: 0.92;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 1.5rem 0;
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-title-home-wrap {
  display: inline-block;
  max-width: 28ch;
  line-height: 1.3;
  white-space: normal;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
}

.site-subtitle-home {
  margin-top: -0.08rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: none;
  color: rgba(221, 237, 255, 0.75);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.rocket-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-link:hover .rocket-icon,
.brand-link:focus-visible .rocket-icon,
.brand-link.is-launching .rocket-icon {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(90, 212, 255, 0.7));
}

.brand-link.is-launching .rocket-icon {
  animation: saucer-launch 1.2s ease-in forwards;
}

@keyframes saucer-launch {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  20% { transform: translateY(-8px) scale(1.15) rotate(0deg); opacity: 1; }
  45% { transform: translateY(-18px) scale(1.6) rotate(0deg); opacity: 1; }
  70% { transform: translateY(-28px) scale(2.2) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-220px) scale(0.15) rotate(0deg); opacity: 0; }
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.site-nav a.active {
  color: #06101d;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 6px 18px rgba(2, 8, 20, 0.25);
  font-weight: 600;
}

.site-nav a[href="research.html"] {
  display: none;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-action:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(90deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0.7) 45%, rgba(7, 16, 31, 0.82) 100%), url('../images/hero.png');
  background-image:
    linear-gradient(90deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0.7) 45%, rgba(7, 16, 31, 0.82) 100%),
    image-set(
      url('../images/optimized/hero-mobile.webp') type('image/webp'),
      url('../images/hero.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-background {
    background-image:
      linear-gradient(90deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0.7) 45%, rgba(7, 16, 31, 0.82) 100%),
      image-set(
        url('../images/optimized/hero-desktop.webp') type('image/webp'),
        url('../images/hero.png') type('image/png')
      );
  }
}

@media (max-width: 768px) {
  .hero-background {
    background-attachment: scroll;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 4vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero-copy p {
  margin: 1.75rem 0 0;
  max-width: 54rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-home-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(22rem, auto) auto;
  gap: 4rem;
  align-items: start;
  width: 100%;
}

.hero-intro-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-content: start;
  grid-row: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  justify-content: center;
}

.hero-actions-stack {
  display: grid;
  gap: 0.85rem;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-actions-row-centered {
  justify-content: center;
}

.hero-member-invite {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-newsletter-note {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.btn,
.btn-secondary,
.btn-ghost {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn {
  background: linear-gradient(135deg, #68d7ff 0%, #3b9dff 100%);
  color: #07101f;
  box-shadow: 0 22px 50px rgba(17, 84, 143, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-danger {
  border-color: rgba(255, 116, 116, 0.45);
  background: rgba(255, 85, 85, 0.12);
  color: #ffd4d4;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(255, 85, 85, 0.2);
  box-shadow: 0 18px 42px rgba(130, 24, 24, 0.22);
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.deep-dive-return-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.tl-deep-dive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(114, 216, 255, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 48, 70, 0.92), rgba(22, 38, 56, 0.92));
  color: #d9f8ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.62rem 1.05rem;
  box-shadow: 0 0 0 1px rgba(114, 216, 255, 0.16), 0 8px 18px rgba(8, 17, 30, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-deep-dive-btn:hover,
.tl-deep-dive-btn:focus-visible {
  border-color: rgba(114, 216, 255, 0.86);
  background: linear-gradient(180deg, rgba(35, 56, 82, 0.96), rgba(25, 43, 64, 0.96));
  box-shadow: 0 0 0 1px rgba(114, 216, 255, 0.26), 0 10px 22px rgba(8, 17, 30, 0.45);
  transform: translateY(-1px) scale(1.02);
}

.tl-deep-dive-btn.is-disabled,
.tl-deep-dive-btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.deep-dive-return-wrap.has-sequence-nav {
  flex-direction: column;
  align-items: center;
}

.deep-dive-sequence-nav {
  display: grid;
  grid-template-columns: minmax(2.85rem, auto) minmax(0, auto) minmax(2.85rem, auto);
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 46rem);
}

.deep-dive-sequence-arrow {
  min-width: 2.85rem;
  padding-inline: 0.8rem;
}

.deep-dive-sequence-nav .tl-deep-dive-btn:not(.deep-dive-sequence-arrow),
.research-page[data-case-page] .case-bottom-actions .tl-deep-dive-btn:not(.deep-dive-sequence-arrow) {
  min-width: 0;
  text-align: center;
}

.case-sequence-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
}

.case-witness-top {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
}

.case-witness-top h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-witness-top .case-sequence-nav-wrap {
  margin: 0;
  justify-content: flex-end;
}

.case-image-carousel {
  position: relative;
  width: min(100%, 58rem);
  margin: 1.5rem auto;
  outline: none;
}

.case-image-carousel:focus-visible {
  border-radius: 0.85rem;
  box-shadow: 0 0 0 3px rgba(114, 216, 255, 0.42);
}

.case-image-carousel__viewport {
  position: relative;
  min-height: clamp(18rem, 45vw, 33rem);
  overflow: hidden;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.case-image-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.case-image-carousel__attribution {
  position: absolute;
  z-index: 5;
  top: 0.45rem;
  right: 0;
  width: min(11rem, 24%);
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(114, 216, 255, 0.22);
  border-radius: 0.55rem;
  background: rgba(5, 8, 15, 0.76);
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.case-image-carousel__attribution strong {
  color: var(--text);
}

.case-image-carousel__attribution a {
  color: #8fdfff;
}

.case-image-carousel__slide {
  position: absolute;
  inset: 1.1rem 50% auto auto;
  width: min(54%, 30rem);
  margin: 0;
  opacity: 0;
  transform: translateX(50%) scale(0.74);
  transform-origin: center;
  filter: saturate(0.55) brightness(0.7);
  transition: transform 0.48s cubic-bezier(0.22, 0.75, 0.22, 1), opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}

.case-image-carousel__slide img {
  display: block;
  width: 100%;
  height: clamp(13rem, 34.5vw, 25.5rem);
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.38));
  -webkit-mask-image: radial-gradient(ellipse 98% 96% at center, #000 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 98% 96% at center, #000 84%, transparent 100%);
}

.case-image-carousel__slide[data-position='previous'] {
  z-index: 1;
  opacity: 0.36;
  transform: translateX(8%) scale(0.78) rotate(-2deg);
  pointer-events: auto;
  cursor: pointer;
}

.case-image-carousel__slide[data-position='next'] {
  z-index: 1;
  opacity: 0.36;
  transform: translateX(92%) scale(0.78) rotate(2deg);
  pointer-events: auto;
  cursor: pointer;
}

.case-image-carousel__slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(50%) scale(1);
  filter: none;
  pointer-events: auto;
}

.case-image-carousel__slide figcaption {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease 0s;
}

.case-image-carousel__slide.is-active figcaption {
  opacity: 1;
  transition-delay: 0.22s;
}

.case-image-carousel__controls {
  width: min(100%, 14rem);
  margin: -0.35rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.case-image-carousel__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.25rem 0.8rem;
  border: 0;
  background: transparent;
  color: #72d8ff;
  cursor: pointer;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(90, 212, 255, 0.75);
  filter: drop-shadow(0 0 5px rgba(90, 212, 255, 0.5));
  transition: color 0.2s ease, filter 0.2s ease;
}

.case-image-carousel__button span {
  transition: transform 0.2s ease;
}

.case-image-carousel__button:hover,
.case-image-carousel__button:focus-visible {
  color: #b9efff;
  background: transparent;
  filter: drop-shadow(0 0 9px rgba(90, 212, 255, 0.95));
}

.case-image-carousel__button:hover span,
.case-image-carousel__button:focus-visible span {
  transform: translateY(-2px) scale(1.12);
}

.case-image-carousel__counter {
  display: block;
  min-width: 3.5rem;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

.cms-page-additions {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
}

.cms-page-additions h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cms-editor-notes,
.cms-page-sources,
.cms-image-carousel {
  border: 1px solid rgba(140, 196, 236, 0.24);
  background: rgba(10, 22, 36, 0.72);
  border-radius: 8px;
  padding: 1rem;
}

.cms-editor-note {
  border-top: 1px solid rgba(140, 196, 236, 0.18);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.cms-editor-note:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cms-editor-note h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.cms-editor-note p,
.cms-page-sources p,
.cms-record-source {
  color: var(--text-muted);
}

.cms-page-sources ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.cms-source-meta,
.cms-record-source {
  font-size: 0.86rem;
}

.cms-image-carousel__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 38%);
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 0.35rem;
}

.cms-image-carousel__item {
  margin: 0;
  scroll-snap-align: start;
}

.cms-image-carousel__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(140, 196, 236, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.cms-image-carousel__item figcaption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-items: center;
}

.hero-intro-stack .hero-panel {
  width: 100%;
}

.quote-deck {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0;
  height: auto;
  min-height: 0;
  grid-row: 1;
  overflow: visible;
}

.quote-deck__card {
  position: relative;
  width: min(100%, 680px);
  min-height: 12rem;
  max-height: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.quote-deck__card::before {
  display: none;
}

.quote-deck__card > * {
  position: relative;
  z-index: 1;
}

.quote-deck__content {
  min-height: 0;
  max-height: none;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 0.25rem 0 0.2rem;
  text-align: center;
  overflow: visible;
}

.quote-deck__quote,
.quote-deck__author,
.quote-deck__role {
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.quote-deck__quote {
  font-size: clamp(1.45rem, 1.1vw + 1.1rem, 2.4rem);
  line-height: 1.38;
  letter-spacing: -0.035em;
  color: var(--text);
}

.quote-deck__author {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(90, 212, 255, 0.95);
}

.quote-deck__role {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.quote-deck__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.2rem;
  min-height: 1.6rem;
}

.quote-deck__nav {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(90, 212, 255, 0.95);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(90, 212, 255, 0.28), 0 0 18px rgba(90, 212, 255, 0.16);
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

.quote-deck__nav:hover,
.quote-deck__nav:focus-visible {
  transform: translateY(-1px);
  color: rgba(90, 212, 255, 1);
  text-shadow: 0 0 12px rgba(90, 212, 255, 0.42), 0 0 22px rgba(90, 212, 255, 0.22);
}

.quote-deck__nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.quote-deck.is-visible .quote-deck__card {
  opacity: 1;
  transform: translateY(0);
}

.quote-deck.is-transitioning .quote-deck__card {
  opacity: 0.1;
  transform: translateY(-15px);
}

.quote-deck.is-intro-quote .quote-deck__quote,
.quote-deck.is-intro-author .quote-deck__author,
.quote-deck.is-intro-role .quote-deck__role {
  opacity: 1;
  transform: translateY(0);
}

@keyframes quote-deck-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.8;
  }
}

.uap101-cta-wrap {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.home-cta-band {
  padding: 1rem 0 2.2rem;
}

.uap101-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(8, 20, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
}

.uap101-cta h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: var(--text);
}

.home-secondary-actions {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  position: relative;
  z-index: 3;
}

.home-secondary-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-secondary-buttons {
  justify-content: center;
}

.uap101-cta .btn {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24), 0 22px 50px rgba(17, 84, 143, 0.32);
  opacity: 1;
  visibility: visible;
}

.home-poll-highlight {
  padding: 0.2rem 0 2.4rem;
}

.home-poll-card {
  width: min(100%, 42rem);
  margin: 0 auto;
  border: 1px solid rgba(126, 206, 255, 0.38);
  border-radius: calc(24px * var(--card-radius-scale));
  padding: 1rem 1.05rem;
  background:
    radial-gradient(circle at top right, rgba(99, 210, 255, 0.16), transparent 33%),
    linear-gradient(160deg, rgba(9, 30, 50, 0.96), rgba(8, 18, 30, 0.94));
  box-shadow: 0 22px 48px rgba(1, 9, 22, 0.38);
}

.home-poll-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd8ff;
}

.home-poll-card h2 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
}

.home-poll-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-poll-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.home-poll-option {
  padding: 0.5rem 0.55rem;
  border-radius: calc(12px * var(--card-radius-scale));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.home-poll-option h3 {
  margin: 0;
  font-size: 0.9rem;
}

.home-poll-option p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-poll-option__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.home-poll-option__bar {
  margin-top: 0.45rem;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.home-poll-option__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #58cbff, #2da8ef);
}

.home-poll-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .home-poll-card {
    width: min(100%, 46rem);
  }

  .home-poll-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-poll-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-donate-band {
  padding: 0 0 2.4rem;
}

.home-donate-band__inner {
  display: flex;
  justify-content: center;
}

.home-donate-form {
  width: min(100%, 29rem);
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  padding: 1.25rem 1.3rem 1rem;
  border-radius: calc(26px * var(--card-radius-scale));
  border: 1px solid rgba(126, 206, 255, 0.2);
  background:
    radial-gradient(circle at top, rgba(95, 210, 255, 0.12), transparent 48%),
    linear-gradient(165deg, rgba(8, 20, 32, 0.96), rgba(8, 18, 30, 0.92));
  box-shadow: 0 20px 44px rgba(1, 9, 22, 0.28);
}

.home-donate-form__label {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-donate-form__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}

.home-donate-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 8.9rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 225, 255, 0.34);
  background: rgba(6, 22, 37, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(2, 10, 22, 0.2);
}

.home-donate-input-wrap:focus-within {
  border-color: rgba(140, 225, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(90, 212, 255, 0.14);
}

.home-donate-input-wrap__currency {
  color: #8fd8ff;
  font-weight: 700;
}

.home-donate-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.home-donate-input::placeholder {
  color: transparent;
}

.home-donate-input::-webkit-outer-spin-button,
.home-donate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.home-donate-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.home-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  min-height: 3.35rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(117, 214, 255, 0.55);
  background: linear-gradient(135deg, rgba(94, 212, 255, 0.98) 0%, rgba(50, 141, 235, 0.98) 100%);
  color: #06101d;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(18, 92, 163, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-donate-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.home-donate-button:hover,
.home-donate-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(18, 92, 163, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  filter: saturate(1.08);
}

.home-donate-form__status {
  margin: 0;
  min-height: 1.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 32ch;
  text-align: center;
}

.home-donate-form__status[data-state="error"] {
  color: #ffb4b4;
}

.home-donate-form__status[data-state="pending"] {
  color: #a9e6ff;
}

.home-donate-form__status[data-state="success"] {
  color: #b8ffd8;
}

.home-secondary-buttons .btn-secondary {
  background: rgba(16, 38, 60, 0.95);
  border: 1px solid rgba(140, 225, 255, 0.55);
  color: #ffffff;
  opacity: 1;
  visibility: visible;
}

.home-secondary-buttons .btn-ghost {
  background: rgba(20, 52, 82, 0.95);
  border: 1px solid rgba(125, 218, 255, 0.6);
  color: #dff7ff;
  opacity: 1;
  visibility: visible;
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top right, rgba(90, 212, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.info-card {
  position: relative;
  z-index: 1;
}

.info-card-compact {
  padding: 1.2rem 1.15rem;
  border-radius: calc(18px * var(--card-radius-scale));
}

.info-card-title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.info-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.info-card p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1rem 1rem 1rem 0;
  border-left: 3px solid rgba(90, 212, 255, 0.5);
  color: var(--text-muted);
}

.info-list span {
  font-weight: 700;
  color: var(--text);
}

.status-banner {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: calc(20px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
}

.section p,
.section li,
.section dd {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card,
.list-card,
.content-panel,
.form-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: calc(20px * var(--card-radius-scale));
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.feature-card h3,
.list-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.feature-card p,
.list-card p,
.content-panel p {
  margin: 1rem 0 0;
}

.callout {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(17, 52, 90, 0.75), rgba(8, 18, 31, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.callout h3 {
  margin: 0;
  color: #e9f8ff;
}

.callout p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.section-light {
  background: #f7f8fb;
  color: #0f1729;
}

.section-light h2,
.section-light h3,
.section-light p,
.section-light li {
  color: #0f1729;
}

.section-light .feature-card,
.section-light .list-card,
.section-light .form-panel,
.section-light .content-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f1729;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.cookie-settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.cookie-settings-table th,
.cookie-settings-table td {
  padding: 0.9rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.cookie-settings-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #42526b;
}

.cookie-settings-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-light .cookie-settings-table th,
.section-light .cookie-settings-table td {
  color: #0f1729;
}

.uap101-intro {
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.uap101-links h2 {
  margin: 0;
  font-size: 1.22rem;
}

.uap101-links ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.uap101-links a {
  color: var(--accent);
  font-weight: 600;
}

.uap101-links a:hover {
  color: #ffffff;
}

.uap101-timeline-section {
  margin-top: 2rem;
}

.uap101-timeline-controls {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.65rem;
}

.uap101-timeline-nav {
  border: 1px solid rgba(125, 218, 255, 0.5);
  background: rgba(18, 45, 72, 0.92);
  color: #dff7ff;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.uap101-timeline-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.uap101-timeline-hint {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uap101-timeline-shell {
  margin-top: 0.7rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.uap101-timeline-progress {
  width: min(1200px, calc(100vw - 2.5rem));
  height: 5px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.uap101-timeline-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.uap101-timeline-track {
  position: relative;
  margin-top: 0;
}

.uap101-timeline-track::before,
.uap101-timeline-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.6rem;
  pointer-events: none;
  z-index: 2;
}

.uap101-timeline-track::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 16, 31, 0.95), rgba(7, 16, 31, 0));
}

.uap101-timeline-track::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 16, 31, 0.95), rgba(7, 16, 31, 0));
}

.uap101-timeline-list {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0.9rem;
  display: flex;
  gap: 1.25rem;
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 212, 255, 0.5) rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.uap101-timeline-list::-webkit-scrollbar {
  height: 0.72rem;
}

.uap101-timeline-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.uap101-timeline-list::-webkit-scrollbar-thumb {
  background: rgba(90, 212, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.uap101-timeline-list.is-dragging {
  cursor: grabbing;
}

.uap101-timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.95rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(14, 116, 144, 0.75));
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.55);
}

.uap101-timeline-item {
  position: relative;
  margin-left: 0;
  min-width: min(82vw, 760px);
  max-width: min(82vw, 760px);
  min-height: 212px;
  padding: 1.05rem 1.1rem;
  border-radius: calc(16px * var(--card-radius-scale));
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(7, 15, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 40px rgba(1, 9, 22, 0.22);
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.uap101-timeline-item.is-active {
  border-color: rgba(125, 218, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(125, 218, 255, 0.25), 0 24px 44px rgba(1, 9, 22, 0.26);
  transform: translateY(-2px);
}

.uap101-timeline-item::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: -1.58rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28), 0 0 12px rgba(37, 99, 235, 0.42);
}

.uap101-timeline-year {
  display: inline-flex;
  margin-bottom: 0.3rem;
  font-size: 0.77rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.uap101-timeline-item h3 {
  margin: 0;
  font-size: 1.03rem;
  color: var(--text);
}

.uap101-timeline-item p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.research-page .content-panel,
.research-page .list-card,
.research-page .form-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text);
}

.research-page .content-panel h2,
.research-page .content-panel p,
.research-page .list-card h3,
.research-page .list-card p,
.research-page .form-panel label,
.research-page .form-panel p {
  color: var(--text);
}

.research-page input,
.research-page textarea,
.research-page select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.research-page input::placeholder,
.research-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.research-page .resource-note {
  background: rgba(90, 212, 255, 0.12);
  border-color: rgba(90, 212, 255, 0.28);
  color: var(--text);
}

.research-page .resource-browse {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.research-page .resource-field span {
  color: var(--text);
}

.research-page .resource-clear {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.research-page .resource-results,
.research-page .resource-sources,
.research-page .forum-post p,
.research-page .forum-meta {
  color: var(--text-muted);
}

.research-page .forum-post {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.research-page .forum-post h3 {
  color: var(--text);
}

.member-area-page .member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.member-area-page .member-setup-panel,
.member-area-page .member-dashboard-panel {
  grid-column: 1 / -1;
}

.member-area-page .member-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(90, 212, 255, 0.12);
  border: 1px solid rgba(90, 212, 255, 0.24);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.member-area-page .member-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.member-area-page .member-profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.member-area-page .member-profile-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.member-area-page .member-dev-notice {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(247, 214, 109, 0.42);
  background: rgba(247, 214, 109, 0.16);
  color: #ffe8a3;
  font-weight: 600;
}

.member-area-page .member-beta-info-panel {
  padding: 1.2rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(247, 214, 109, 0.42);
  background: rgba(247, 214, 109, 0.08);
  color: var(--text);
  margin-bottom: 1.5rem;
}

.member-area-page .member-beta-info-panel p {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.member-area-page .member-beta-info-panel a {
  color: #68d7ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.member-area-page .member-beta-info-panel a:hover {
  color: #3b9dff;
}

.member-area-page .member-checklist {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.member-area-page .member-config-note {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: calc(16px * var(--card-radius-scale));
  background: rgba(90, 212, 255, 0.1);
  border: 1px solid rgba(90, 212, 255, 0.18);
  color: var(--text);
}

.member-area-page .member-auth-panel label {
  display: grid;
  gap: 0.45rem;
}

.member-area-page .member-auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.member-area-page .member-auth-tabs .btn-ghost {
  border-color: rgba(90, 212, 255, 0.2);
}

.member-area-page .member-auth-tabs .btn-ghost.is-active {
  border-color: rgba(90, 212, 255, 0.52);
  background: rgba(90, 212, 255, 0.12);
}

.member-area-page .member-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.member-area-page .member-auth-card,
.member-area-page .member-magic-link-form {
  padding: 1rem 1.1rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.75rem;
}

.member-area-page .member-auth-card h3,
.member-area-page .member-magic-link-form h3 {
  margin: 0;
}

.member-area-page .member-magic-link-form {
  margin-top: 1rem;
}

.member-area-page .member-recovery-reset-form {
  margin-top: 1rem;
}

.member-area-page .member-forgot-password-card {
  margin-top: 1rem;
}

.member-area-page .member-inline-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.member-area-page .member-auth-actions,
.member-area-page .member-dashboard-actions {
  margin-top: 1.2rem;
}

.member-area-page .member-feedback[data-state='error'] {
  color: #ffb4b4;
}

.member-area-page .member-feedback[data-state='success'] {
  color: #93f0c2;
}

.member-area-page .member-feedback[data-state='warning'] {
  color: #f7d66d;
}

.member-area-page .member-dashboard__meta {
  margin: 0.55rem 0 0;
}

.member-area-page .member-stats-grid {
  margin-top: 1.25rem;
}

.member-area-page .member-feature-grid {
  margin-top: 1.25rem;
}

.member-area-page .member-feed-panel {
  margin-top: 1.25rem;
}

.member-area-page .member-password-panel {
  margin-top: 1.25rem;
}

.member-area-page .member-profile-panel,
.member-area-page .member-discussion-panel {
  margin-top: 1.25rem;
}

.member-area-page .member-profile-form textarea,
.member-area-page .member-discussion-form textarea {
  resize: vertical;
}

.member-settings-dropdown {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.member-settings-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.member-settings-dropdown:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.member-settings-dropdown .dropdown-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.member-settings-dropdown[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.member-settings-content {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.member-area-page .member-discussion-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.member-area-page .member-discussion-item {
  padding: 1rem 1.1rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.member-area-page .member-discussion-item.is-mine {
  border-color: rgba(90, 212, 255, 0.45);
  background: rgba(90, 212, 255, 0.08);
}

.member-area-page .member-discussion-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.member-area-page .member-discussion-item p {
  margin: 0.55rem 0 0;
  white-space: pre-wrap;
}

.member-area-page .member-password-change-form {
  margin-top: 1rem;
}

.member-area-page .member-feed-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.member-area-page .member-feed-item {
  padding: 1rem 1.1rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.member-area-page .member-feed-item h3 {
  margin: 0.3rem 0 0;
}

.member-area-page .member-feed-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.member-area-page .member-feed-item__meta,
.member-area-page .member-feed-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline-member-widget {
  margin-top: 1.25rem;
}

.timeline-member-widget .member-auth-card {
  padding: 1rem 1.1rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.timeline-member-widget .member-discussion-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.timeline-member-widget .member-discussion-item {
  padding: 0.85rem 0.95rem;
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-member-widget textarea {
  width: 100%;
}

.member-area-page button {
  display: none !important;
}

.member-area-page button[data-member-sign-out],
.member-area-page button[data-member-shell-signout] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.member-area-page [data-member-sign-out],
.member-area-page [data-member-shell-signout] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.member-area-page .member-auth-actions [data-member-shell-signout] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.member-area-page .member-dashboard-actions button[data-member-sign-out] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.member-area-page [data-scif-forum] .btn,
.member-area-page [data-scif-forum] .btn-secondary,
.member-area-page [data-scif-forum] .btn-ghost,
.member-area-page [data-scif-forum] button,
.member-area-page [data-scif-forum] [class*="btn"] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.member-area-page .scif-forum {
  margin-top: 1rem;
}

.member-area-page .scif-forum__member-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.member-area-page .scif-forum__member-bar .member-dashboard__meta {
  margin: 0;
}

.member-area-page .scif-forum__dashboard-link {
  flex-shrink: 0;
}

.member-area-page .scif-forum__layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.member-area-page .scif-rooms {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.member-area-page .scif-rooms__title {
  margin: 0;
  font-size: 1rem;
}

.member-area-page .scif-rooms__subtitle {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.member-area-page .scif-rooms__list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.member-area-page .scif-room {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  display: grid !important;
  gap: 0.24rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.member-area-page .scif-room:hover,
.member-area-page .scif-room:focus-visible {
  border-color: rgba(139, 201, 255, 0.48);
  background: rgba(139, 201, 255, 0.08);
}

.member-area-page .scif-room.is-active {
  border-color: rgba(139, 201, 255, 0.56);
  background: rgba(139, 201, 255, 0.11);
}

.member-area-page .scif-room__title {
  font-weight: 700;
  line-height: 1.2;
}

.member-area-page .scif-room__description {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.member-area-page .scif-thread {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.member-area-page .scif-thread__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.member-area-page .scif-thread__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.member-area-page .scif-thread__title {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
}

.member-area-page .scif-thread__description {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.member-area-page .scif-live-status {
  margin: 0.55rem 0 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.member-area-page .scif-live-status::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.member-area-page .scif-live-status[data-state='live'] {
  color: #89f0bb;
  border-color: rgba(137, 240, 187, 0.5);
  background: rgba(137, 240, 187, 0.1);
}

.member-area-page .scif-live-status[data-state='connecting'],
.member-area-page .scif-live-status[data-state='reconnecting'] {
  color: #ffd985;
  border-color: rgba(255, 217, 133, 0.5);
  background: rgba(255, 217, 133, 0.1);
}

.member-area-page .scif-live-status[data-state='offline'] {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.5);
  background: rgba(255, 154, 154, 0.1);
}

.member-area-page .scif-thread__tools {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.member-area-page .scif-notifications {
  position: relative;
}

.member-area-page .scif-notifications__toggle {
  align-items: center;
  gap: 0.35rem;
}

.member-area-page .scif-notifications__count {
  min-width: 1.3rem;
  min-height: 1.3rem;
  border-radius: 999px;
  padding: 0.08rem 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 201, 255, 0.35);
  border: 1px solid rgba(139, 201, 255, 0.48);
  font-size: 0.76rem;
  color: var(--text);
}

.member-area-page .scif-notifications__count.is-empty {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.member-area-page .scif-notifications__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(420px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #101828;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  z-index: 40;
}

.member-area-page .scif-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.member-area-page .scif-notifications__list {
  max-height: 300px;
  overflow: auto;
}

.member-area-page .scif-notifications__item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  display: grid !important;
  gap: 0.2rem;
  text-align: left;
  padding: 0.62rem 0.72rem;
}

.member-area-page .scif-notifications__item:last-child {
  border-bottom: 0;
}

.member-area-page .scif-notifications__item.is-unread {
  background: rgba(139, 201, 255, 0.12);
}

.member-area-page .scif-notifications__item:hover,
.member-area-page .scif-notifications__item:focus-visible {
  background: rgba(139, 201, 255, 0.18);
}

.member-area-page .scif-notifications__item small {
  color: var(--text-muted);
}

.member-area-page .scif-sort {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-area-page .scif-sort select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 18, 30, 0.76);
  color: var(--text);
  padding: 0.4rem 0.55rem;
}

.member-area-page .scif-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.member-area-page .scif-composer__body {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
  padding: 0.75rem;
  position: relative;
}

.member-area-page .scif-composer__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.member-area-page .scif-composer textarea,
.member-area-page .scif-reply-form textarea,
.member-area-page .scif-edit-form textarea {
  width: 100%;
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 18, 30, 0.72);
  color: var(--text);
  padding: 0.65rem;
  resize: none;
}

.member-area-page .scif-composer__footer,
.member-area-page .scif-reply-form__footer {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.member-area-page .scif-composer__actions,
.member-area-page .scif-reply-form__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.member-area-page .scif-discussion-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.member-area-page .scif-comment {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.member-area-page .scif-comment:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.member-area-page .scif-comment[data-depth='1'],
.member-area-page .scif-comment[data-depth='2'] {
  margin-left: clamp(0.3rem, 2vw, 1.3rem);
}

.member-area-page .scif-comment__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
}

.member-area-page .scif-comment__meta {
  align-items: center;
}

.member-area-page .scif-comment__body {
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.member-area-page .scif-comment__footer {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.member-area-page .scif-comment__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.member-area-page .scif-comment__reply-count {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.member-area-page .scif-comment__children {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.55rem;
}

.member-area-page .scif-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.12rem 0.2rem;
  background: rgba(10, 18, 30, 0.55);
}

.member-area-page .scif-vote__button {
  min-width: 30px;
  min-height: 30px;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}

.member-area-page .scif-vote__button.is-active {
  background: rgba(139, 201, 255, 0.2);
  border-color: rgba(139, 201, 255, 0.5);
}

.member-area-page .scif-vote__score {
  min-width: 32px;
  text-align: center;
  font-size: 0.9rem;
}

.member-area-page .scif-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.member-area-page .scif-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-area-page .scif-avatar__fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.member-area-page .scif-badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.09rem 0.48rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.member-area-page .scif-collapse-toggle {
  margin-top: 0.35rem;
}

.member-area-page .scif-reply-form,
.member-area-page .scif-edit-form {
  margin-top: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem;
}

.member-area-page .scif-reply-form textarea,
.member-area-page .scif-edit-form textarea {
  min-height: 76px;
}

.member-area-page .scif-empty {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.member-area-page .scif-thread__footer {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
}

.member-area-page .scif-mention-list {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% - 0.45rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: #101828;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  z-index: 30;
}

.member-area-page .scif-mention-list__item {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0.48rem 0.65rem;
}

.member-area-page .scif-mention-list__item:last-child {
  border-bottom: 0;
}

.member-area-page .scif-mention-list__item:hover,
.member-area-page .scif-mention-list__item:focus-visible {
  background: rgba(139, 201, 255, 0.16);
}

.member-area-page .scif-mention {
  color: #8bc9ff;
  text-decoration: none;
}

.member-area-page .scif-mention:hover,
.member-area-page .scif-mention:focus-visible {
  text-decoration: underline;
}

.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: 1024px) {
  .member-area-page .scif-forum__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .member-area-page .scif-thread {
    padding: 0.8rem;
  }

  .member-area-page .scif-thread__header {
    flex-direction: column;
  }

  .member-area-page .scif-thread__tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .member-area-page .scif-composer {
    grid-template-columns: 1fr;
  }

  .member-area-page .scif-comment {
    padding: 0.85rem;
  }

  .member-area-page .scif-comment[data-depth='1'],
  .member-area-page .scif-comment[data-depth='2'] {
    margin-left: 0.25rem;
  }
}

.member-area-page .member-settings-dropdown {
  display: none !important;
}

.member-area-page .btn,
.member-area-page .btn-secondary,
.member-area-page .btn-ghost,
.member-area-page [class*="btn"] {
  display: none !important;
}

.member-area-page .member-dashboard-panel[hidden],
.member-area-page .member-setup-panel[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .member-area-page .member-grid {
    grid-template-columns: 1fr;
  }

  .member-area-page .member-auth-grid {
    grid-template-columns: 1fr;
  }
}

.research-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: start;
}

.research-heading {
  margin: 0;
  font-size: 1.3rem;
}

.research-sidebar-note {
  margin-top: 0.6rem;
}

.research-search-label {
  margin-top: 1rem;
  display: block;
}

.research-topic-count {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.research-topic-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.research-topic-bin {
  display: grid;
  gap: 0.5rem;
}

.research-topic-bin__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.research-topic-bin__list {
  display: grid;
  gap: 0.55rem;
}

.research-topic-btn {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.72rem 0.82rem;
  cursor: pointer;
}

.research-topic-btn:hover,
.research-topic-btn:focus-visible {
  border-color: rgba(90, 212, 255, 0.55);
  background: rgba(90, 212, 255, 0.1);
  transform: translateY(-1px);
}

.research-topic-btn.is-active {
  border-color: rgba(90, 212, 255, 0.75);
  background: rgba(90, 212, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(90, 212, 255, 0.24);
}

.research-topic-filter {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin-top: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(90, 212, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(8, 22, 31, 0.9), rgba(10, 26, 38, 0.92)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.72rem 2.45rem 0.72rem 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(90, 212, 255, 0.08);
  color-scheme: dark;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  background-image:
    linear-gradient(180deg, rgba(8, 22, 31, 0.9), rgba(10, 26, 38, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%238ee8ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left top, right 0.75rem center;
  background-size: auto, 1rem;
}

.research-topic-filter:hover {
  border-color: rgba(90, 212, 255, 0.55);
}

.research-topic-filter:focus-visible {
  outline: none;
  border-color: rgba(90, 212, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(90, 212, 255, 0.22), inset 0 0 0 1px rgba(90, 212, 255, 0.18);
}

.research-topic-filter option {
  background: #0b1a2b;
  color: #dbeeff;
}

.research-workspace > .research-main {
  position: sticky;
  top: clamp(0.75rem, 2vh, 1.25rem);
  align-self: start;
  z-index: 2;
  max-height: calc(100dvh - clamp(1.5rem, 3vh, 2.5rem));
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding: 1.15rem;
  padding-bottom: 1.5rem;
}

.research-selected-summary {
  margin-top: 0.45rem;
  line-height: 1.45;
}

.research-case-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.research-case-actions .is-hidden {
  display: none;
}

.research-selected-meta {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.research-links-heading {
  margin-top: 0.8rem;
}

.research-witness-list {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.research-witness-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 212, 255, 0.35);
  background: rgba(90, 212, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.research-witness-btn:hover,
.research-witness-btn:focus-visible {
  border-color: rgba(90, 212, 255, 0.7);
  background: rgba(90, 212, 255, 0.16);
  transform: translateY(-1px);
}

.research-topic-links.is-empty {
  display: none;
}

.research-links-heading.is-hidden {
  display: none;
}

.research-topic-links a {
  word-break: break-word;
}

.research-topic-links a,
.research-list a {
  word-break: break-word;
}

.research-topic-links {
  list-style: none;
  padding-left: 0;
}

.research-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 212, 255, 0.35);
  background: rgba(90, 212, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.research-link-btn:hover,
.research-link-btn:focus-visible {
  border-color: rgba(90, 212, 255, 0.7);
  background: rgba(90, 212, 255, 0.16);
  transform: translateY(-1px);
}

.witness-excerpt {
  margin-top: 0.8rem;
  line-height: 1.6;
}

.research-columns {
  display: block;
}

.research-block {
  margin-top: 2rem;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.research-block h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}

.research-block h3 {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: var(--text);
}

.content-panel {
  display: block;
}

.content-panel > p {
  margin-top: 1rem;
}

.research-page[data-witness-page] .content-panel {
  max-width: 980px;
  margin-inline: auto;
}

.witness-page-actions {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.4rem;
}

.witness-page-actions-bottom {
  margin-top: 1.6rem;
}

.witness-method-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(90, 212, 255, 0.28);
  border-left: 3px solid rgba(90, 212, 255, 0.72);
  border-radius: calc(12px * var(--card-radius-scale));
  background: rgba(90, 212, 255, 0.07);
}

.witness-method-note strong {
  display: block;
  color: var(--text);
}

.witness-method-note p,
.witness-section-intro,
.witness-source-note {
  color: var(--text-muted);
  line-height: 1.65;
}

.witness-method-note p {
  margin: 0.35rem 0 0;
}

.witness-section {
  padding-top: 0.15rem;
}

.witness-section > h2,
.witness-sources > h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.witness-section-intro {
  margin: 0 0 0.9rem;
}

.witness-assessment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.witness-assessment-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(11, 24, 38, 0.62);
}

.witness-assessment-card h3 {
  margin-top: 0;
  color: #8ee8ff;
}

.witness-assessment-card p {
  margin: 0.5rem 0 0;
  line-height: 1.62;
}

.witness-assessment-grid .witness-assessment-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.witness-assessment-conclusion {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  background: linear-gradient(135deg, rgba(90, 212, 255, 0.12), rgba(90, 212, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(90, 212, 255, 0.2);
}

.witness-assessment-conclusion h3 {
  margin-top: 0;
}

.witness-assessment-conclusion p {
  margin: 0.5rem 0 0;
  line-height: 1.65;
}

.witness-case-boundary {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.025);
}

.witness-case-boundary > h2 {
  margin-top: 0;
}

.witness-case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.witness-sources {
  margin-top: 2.4rem;
  padding-top: 0.35rem;
}

.witness-source-list {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
}

.witness-source-item {
  padding: 0.55rem 0 0.85rem 0.25rem;
}

.witness-source-item + .witness-source-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.witness-source-item > a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.witness-source-kind {
  display: inline-flex;
  margin-left: 0.55rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(90, 212, 255, 0.28);
  border-radius: 999px;
  color: #8ee8ff;
  font-size: 0.76rem;
  line-height: 1.2;
  vertical-align: middle;
}

.witness-source-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.witness-directory-controls {
  display: grid;
  gap: 0.45rem;
  margin: 1.5rem 0 1rem;
}

.witness-directory-label {
  font-weight: 650;
}

.witness-directory-search {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(90, 212, 255, 0.28);
  border-radius: calc(10px * var(--card-radius-scale));
  background: rgba(8, 22, 31, 0.84);
  color: var(--text);
  font: inherit;
}

.witness-directory-search:focus-visible {
  outline: 2px solid rgba(90, 212, 255, 0.65);
  outline-offset: 2px;
}

.witness-directory-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.witness-directory-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(11, 24, 38, 0.62);
}

.witness-directory-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.witness-directory-card h2 a {
  color: #8ee8ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.witness-directory-role {
  margin: 0.4rem 0 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
}

.witness-directory-summary {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.witness-directory-empty {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .witness-assessment-grid {
    grid-template-columns: 1fr;
  }

  .witness-assessment-grid .witness-assessment-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .witness-source-kind {
    margin: 0.4rem 0 0;
  }

  .witness-source-item > a,
  .witness-source-kind {
    display: flex;
    width: fit-content;
  }

  .witness-directory-grid {
    grid-template-columns: 1fr;
  }
}

.mission-page-copy {
  text-align: center;
}

.mission-page-header {
  position: relative;
  isolation: isolate;
  min-height: clamp(13rem, 28vw, 24rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mission-page-header::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(82vw, 42rem);
  aspect-ratio: 1;
  background: url("/assets/images/UAPRAD%20logo%20transparent.png") center / contain no-repeat;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.mission-page-header h2 {
  position: relative;
  margin: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.mission-page-copy ul {
  display: inline-block;
  margin-right: auto;
  margin-left: auto;
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

.case-witness-band {
  margin-top: 2rem;
  padding: 0;
}

.case-witness-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.case-witness-band .research-witness-list {
  margin-top: 0.7rem;
}

/* Align research case deep dives to timeline deep-dive presentation. */
.research-page[data-case-page].case-has-analytical .case-ratings-card,
.research-page[data-case-page].case-has-analytical .case-witnesses-buttons,
.research-page[data-case-page].case-has-analytical .research-columns,
.research-page[data-case-page].case-has-analytical .case-witness-band {
  display: none;
}

.research-page[data-case-page].case-has-analytical .deep-dive-return-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0;
}

.research-page[data-case-page].case-has-analytical #case-meta,
.research-page[data-case-page].case-has-analytical #case-summary {
  display: none;
}

.research-page[data-case-page].case-has-analytical .content-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.research-page[data-case-page] .analytical-deep-dive {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(16px * var(--card-radius-scale));
  background: rgba(11, 24, 38, 0.74);
}

.research-page[data-case-page] .analytical-deep-dive > h2:first-child {
  margin-top: 0;
}

.research-page[data-case-page] .research-block {
  margin-top: 1.2rem;
}

.research-page[data-case-page] .case-bottom-return-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.research-page[data-case-page] .case-bottom-actions {
  display: grid;
  grid-template-columns: minmax(2.85rem, auto) minmax(0, auto) minmax(2.85rem, auto);
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 46rem);
}

@media (max-width: 780px) {
  .case-witness-top {
    justify-items: start;
    width: 100%;
    margin: 1.25rem 0;
  }

  .case-witness-top .case-sequence-nav-wrap {
    justify-content: flex-start;
  }

  .case-sequence-nav-wrap {
    justify-content: stretch;
  }

  .case-sequence-nav-wrap .tl-deep-dive-btn {
    flex: 1 1 100%;
  }

  .deep-dive-sequence-nav,
  .research-page[data-case-page] .case-bottom-actions {
    grid-template-columns: minmax(2.7rem, auto) minmax(0, 1fr) minmax(2.7rem, auto);
  }

  .case-image-carousel {
    margin: 1.25rem 0;
  }

  .case-image-carousel__viewport {
    min-height: min(67vw, 24rem);
  }

  .case-image-carousel__attribution {
    position: static;
    width: auto;
    margin: 0.25rem auto 0;
    text-align: center;
  }

  .case-image-carousel__slide {
    top: 0.8rem;
    width: 58.5%;
  }

  .case-image-carousel__slide img {
    height: min(49.5vw, 18rem);
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-image-carousel__slide,
  .case-image-carousel__slide figcaption {
    transition: none;
  }
}

.content-panel > article:not(.analytical-deep-dive) {
  margin-top: 1.5rem;
}

.research-notes-list {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
  max-height: 32vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.research-form-block {
  margin-top: 1rem;
}

.briefing-x-panel {
  margin-top: 1.2rem;
}

.briefing-x-card h2 {
  margin: 0;
}

.briefing-x-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.briefing-x-card .twitter-timeline {
  display: block;
  margin-top: 1rem;
  width: 100%;
  min-width: 0;
}

.briefing-x-card iframe.twitter-timeline {
  width: 100% !important;
  min-width: 0 !important;
}

.x-timeline-fallback {
  margin-top: 1rem;
  border: 1px solid rgba(90, 212, 255, 0.28);
  border-radius: calc(14px * var(--card-radius-scale));
  overflow: hidden;
  background: rgba(8, 22, 31, 0.72);
}

.x-timeline-fallback__banner {
  height: 120px;
  background:
    linear-gradient(135deg, rgba(25, 59, 79, 0.74), rgba(8, 22, 31, 0.86)),
    url('../images/background.jpg') center/cover no-repeat;
}

.x-timeline-fallback__avatar {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 3px solid rgba(8, 22, 31, 0.92);
  margin: -38px 0 0 1rem;
  display: block;
  background: #0f2534;
  object-fit: cover;
}

.x-timeline-fallback__body {
  padding: 0.5rem 1rem 1rem;
}

.x-timeline-fallback__title {
  margin: 0;
  font-size: 1rem;
}

.x-timeline-fallback__note {
  margin: 0.35rem 0 0;
  color: rgba(215, 242, 255, 0.88);
  font-size: 0.92rem;
}

.x-timeline-fallback__cta {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 212, 255, 0.45);
  color: #d7f2ff;
  background: rgba(90, 212, 255, 0.12);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.x-timeline-fallback__cta:hover,
.x-timeline-fallback__cta:focus-visible {
  border-color: rgba(120, 226, 255, 0.72);
  background: rgba(90, 212, 255, 0.22);
}

@media (max-width: 980px) {
  .research-workspace {
    grid-template-columns: 1fr;
  }

  .research-workspace > .research-main {
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
    padding: 1.5rem;
  }
  .research-notes-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }


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

  .uap101-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .uap101-timeline-list::before {
    left: 0.2rem;
    right: 0.2rem;
  }

  .uap101-timeline-item {
    min-width: 270px;
    max-width: 270px;
  }

  .uap101-timeline-track::before,
  .uap101-timeline-track::after {
    width: 1.35rem;
  }

  .uap101-timeline-progress {
    width: calc(100vw - 1.2rem);
  }

  .uap101-timeline-item {
    min-width: min(88vw, 420px);
    max-width: min(88vw, 420px);
  }

  .hero-intro-stack {
    grid-template-columns: 1fr;
  }
}

.resource-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: calc(16px * var(--card-radius-scale));
  background: rgba(90, 212, 255, 0.12);
  border: 1px solid rgba(90, 212, 255, 0.24);
  color: #0f1729;
}

.resource-browse {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: calc(18px * var(--card-radius-scale));
  background: rgba(7, 16, 31, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.resource-field {
  display: grid;
  gap: 0.4rem;
}

.resource-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1729;
}

.resource-browse input,
.resource-browse select {
  width: 100%;
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.resource-clear {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: #fff;
  color: #0f1729;
  cursor: pointer;
}

.resource-results {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .resource-browse {
    grid-template-columns: 1fr;
  }

  .resource-clear {
    width: 100%;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

.resource-sources {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: #475569;
}

.resource-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.resource-links a {
  color: var(--accent);
  font-weight: 600;
}

.resource-quality-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 0.55rem;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(104, 215, 255, 0.28);
  border-radius: 999px;
  background: rgba(104, 215, 255, 0.09);
  color: #d8f7ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.resource-link-description {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.resource-category-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.resource-category-card:hover,
.resource-category-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(90, 212, 255, 0.45);
  box-shadow: 0 18px 34px rgba(1, 9, 22, 0.2);
}

.resource-category-card.is-selected {
  border-color: rgba(90, 212, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(90, 212, 255, 0.22), 0 18px 34px rgba(1, 9, 22, 0.2);
  background: rgba(90, 212, 255, 0.08);
}

.resource-detail-panel {
  margin-top: 1.6rem;
  padding: 1.35rem;
  border-radius: calc(20px * var(--card-radius-scale));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.resource-detail-panel h2 {
  margin: 0;
}

.resource-detail-panel p {
  margin: 0.75rem 0 0;
}

.resource-detail-panel .resource-links {
  margin-top: 1rem;
}

.resource-quality-note {
  margin-top: 1.6rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 232, 163, 0.24);
  border-radius: calc(20px * var(--card-radius-scale));
  background: linear-gradient(180deg, rgba(18, 22, 12, 0.72), rgba(11, 16, 26, 0.9));
}

.resource-quality-note h2 {
  margin: 0;
}

.resource-quality-note p {
  max-width: 88ch;
  margin: 0.75rem 0 0;
  color: #d8ecd8;
  line-height: 1.55;
}

.list-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.list-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.list-card li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.about-contact-form {
  margin-top: 1.25rem;
}

#contactQueryForm .form-actions .btn {
  padding: 0.7125rem 1.125rem;
  font-size: 0.75rem;
}

#contactQueryForm .form-actions {
  margin-top: 1.1rem;
}

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

.about-contact-grid label:last-child {
  grid-column: 1 / -1;
}

.forum-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.forum-post {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.forum-post h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.forum-post p {
  margin: 0.4rem 0 0;
  color: #475569;
}

.forum-meta {
  font-size: 0.9rem;
  color: #64748b;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  padding: 0.95rem 1rem;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--input-focus);
  background: rgba(255, 255, 255, 0.1);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field-help {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-message {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.form-message[data-state='error'] {
  color: #ffb4b4;
}

.form-message[data-state='success'] {
  color: #93f0c2;
}

.account-auth-page .account-auth-card,
.account-page .content-panel {
  margin-top: 1rem;
}

.account-auth-page .account-auth-card form,
.account-page .account-form {
  display: grid;
  gap: 0.9rem;
}

.account-auth-page .account-auth-card form[hidden] {
  display: none !important;
}

.login-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 26, 0.5) 0%, rgba(6, 15, 26, 0.68) 100%),
    url('../images/alien%20welcome%202.png') center center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(6, 15, 26, 0.5) 0%, rgba(6, 15, 26, 0.68) 100%),
    image-set(
      url('../images/optimized/alien-welcome-2-mobile.webp') type('image/webp'),
      url('../images/alien%20welcome%202.png') type('image/png')
    ) center center / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.login-page .account-auth-card {
  width: min(40vw, 608px);
  min-width: 320px;
  margin-inline: 0;
  backdrop-filter: blur(2px);
}

.login-page .section.page-section > .container {
  display: grid;
  justify-content: stretch;
  gap: 1rem;
}

.login-membership-layout {
  display: grid;
  width: min(100%, 1180px);
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: stretch;
  justify-self: start;
}

.login-membership-layout .account-auth-card {
  width: 100%;
}

.login-membership-summary {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border-radius: calc(20px * var(--card-radius-scale));
  border: 1px solid rgba(90, 212, 255, 0.32);
  background:
    radial-gradient(circle at 14% 18%, rgba(90, 212, 255, 0.26), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(247, 214, 109, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(11, 27, 47, 0.88), rgba(5, 13, 25, 0.72));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.login-membership-summary::before {
  content: '';
  position: absolute;
  inset: auto -18% -42% 28%;
  height: 72%;
  border-radius: 999px;
  background: rgba(90, 212, 255, 0.12);
  filter: blur(34px);
  transform: rotate(-10deg);
  pointer-events: none;
}

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

.login-membership-summary__kicker {
  margin: 0;
  color: #f7d66d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-membership-summary h2 {
  max-width: 13ch;
  margin: 0.5rem 0 0;
  color: #f5fbff;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.login-membership-summary p {
  margin: 0.95rem 0 0;
  color: rgba(245, 249, 255, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.login-membership-summary ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.login-membership-summary li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(245, 249, 255, 0.86);
  line-height: 1.45;
}

.login-membership-summary li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(90, 212, 255, 0.72);
}

.login-membership-summary__note {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(247, 214, 109, 0.28);
  border-radius: calc(16px * var(--card-radius-scale));
  background: rgba(247, 214, 109, 0.09);
}

.login-signup-button {
  display: inline-flex;
  width: fit-content;
  transform: translateY(0);
  filter: drop-shadow(0 0 14px rgba(129, 236, 255, 0.35));
  animation: login-signup-float 3.2s ease-in-out infinite;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.login-signup-button img {
  display: block;
  width: clamp(150px, 14vw, 210px);
  height: auto;
}

.login-signup-button--inline {
  margin-left: auto;
}

.login-signup-button:hover,
.login-signup-button:focus-visible {
  transform: translateY(2px) scale(0.98);
  filter: drop-shadow(0 0 18px rgba(129, 236, 255, 0.46));
}

.login-signup-button:focus-visible {
  outline: 2px solid rgba(129, 236, 255, 0.85);
  outline-offset: 4px;
}

@keyframes login-signup-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.register-page .nav-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.register-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.register-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(320px, 680px);
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.register-signup-card {
  margin-top: 0;
}

.register-password-hint,
.register-supporting-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.register-community-guidelines {
  padding: 0.95rem 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(90, 212, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  max-height: 260px;
  overflow: auto;
}

.register-community-guidelines h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #dff5ff;
}

.register-community-guidelines p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.register-guidelines-check {
  width: 100%;
  align-items: flex-start;
}

.register-guidelines-check input {
  margin-top: 0.1rem;
}

.register-age-check {
  width: 100%;
  align-items: flex-start;
}

.register-age-check input {
  margin-top: 0.1rem;
}

.register-auth-actions {
  align-items: center;
  gap: 0.75rem;
}

.account-page .nav-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.account-tabs .btn-ghost {
  border: 1px solid rgba(90, 212, 255, 0.26);
  background: rgba(255, 255, 255, 0.03);
}

.account-tabs .btn-ghost.is-active {
  border-color: rgba(90, 212, 255, 0.58);
  background: rgba(90, 212, 255, 0.12);
}

.account-tab-security {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.account-tab-security span[aria-hidden='true'] {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-tab-security.is-active span[aria-hidden='true'] {
  color: var(--accent);
}

.account-profile-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  min-height: 720px;
}

.account-profile-layout::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: calc(18px * var(--card-radius-scale));
  background:
    linear-gradient(90deg, rgba(6, 15, 26, 0.12) 0%, rgba(6, 15, 26, 0.48) 78%, rgba(6, 15, 26, 0.74) 100%),
    url('../images/alien%20welcome%202.png') center center / cover no-repeat;
  background:
    linear-gradient(90deg, rgba(6, 15, 26, 0.12) 0%, rgba(6, 15, 26, 0.48) 78%, rgba(6, 15, 26, 0.74) 100%),
    image-set(
      url('../images/optimized/alien-welcome-2-mobile.webp') type('image/webp'),
      url('../images/alien%20welcome%202.png') type('image/png')
    ) center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
}

@media (min-width: 900px) {
  .login-page::before {
    background:
      linear-gradient(180deg, rgba(6, 15, 26, 0.5) 0%, rgba(6, 15, 26, 0.68) 100%),
      image-set(
        url('../images/optimized/alien-welcome-2-desktop.webp') type('image/webp'),
        url('../images/alien%20welcome%202.png') type('image/png')
      ) center center / cover no-repeat;
  }

  .account-profile-layout::before {
    background:
      linear-gradient(90deg, rgba(6, 15, 26, 0.12) 0%, rgba(6, 15, 26, 0.48) 78%, rgba(6, 15, 26, 0.74) 100%),
      image-set(
        url('../images/optimized/alien-welcome-2-desktop.webp') type('image/webp'),
        url('../images/alien%20welcome%202.png') type('image/png')
      ) center center / cover no-repeat;
  }
}

.account-page .account-profile-card {
  margin-top: 0;
  grid-column: 2;
  position: relative;
  z-index: 1;
  align-self: stretch;
}

.account-loading p {
  margin: 0;
  color: var(--text-muted);
}

.account-avatar-placeholder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.account-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0a1a2e;
  background: linear-gradient(135deg, #68d7ff 0%, #3b9dff 100%);
  overflow: hidden;
}

.account-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
}

.account-avatar-title {
  margin: 0;
  font-weight: 600;
}

.account-avatar-note {
  margin: 0.2rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.account-avatar-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.account-avatar-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.account-avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}

.account-avatar-option.is-selected {
  border-color: rgba(104, 215, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(104, 215, 255, 0.28);
  background: rgba(104, 215, 255, 0.12);
}

.account-avatar-credit {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.account-avatar-actions {
  margin-top: 0.6rem;
}

.account-divider {
  margin: 1.4rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-deletion-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 116, 116, 0.22);
  border-radius: calc(12px * var(--card-radius-scale));
  background: rgba(255, 85, 85, 0.06);
}

.account-deletion-panel p {
  margin-top: 0;
  color: var(--text-muted);
}

.account-deletion-confirm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.account-deletion-confirm input {
  width: auto;
  margin-top: 0.2rem;
}

.members-page {
  min-height: 100vh;
  padding: 1.25rem;
}

.members-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.members-sidebar,
.members-main {
  border-radius: calc(20px * var(--card-radius-scale));
  border: 1px solid rgba(90, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 21, 36, 0.94) 0%, rgba(11, 25, 42, 0.94) 100%);
  box-shadow: 0 16px 50px rgba(3, 10, 22, 0.42);
}

.members-sidebar {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.members-sidebar__brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.members-sidebar__kicker,
.members-main__kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
}

.members-sidebar__section-label {
  color: rgba(187, 207, 225, 0.8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-top: 0.25rem;
}

.members-sidebar__nav {
  display: grid;
  gap: 0.35rem;
}

.members-sidebar__nav a {
  display: block;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.members-sidebar__nav a:hover {
  color: var(--text);
  border-color: rgba(90, 212, 255, 0.2);
  background: rgba(90, 212, 255, 0.08);
}

.members-sidebar__nav a.is-active {
  color: #dff5ff;
  border-color: rgba(104, 215, 255, 0.58);
  background: rgba(104, 215, 255, 0.16);
}

.members-logout {
  margin-top: 0.5rem;
}

.members-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.members-main__header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.members-main__status {
  margin: 0;
  color: var(--text-muted);
}

.members-main__identity {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  text-align: right;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.members-main__identity-text {
  display: grid;
  gap: 0.2rem;
}

.members-main__identity strong {
  color: #dff5ff;
}

.members-main__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(104, 215, 255, 0.42);
  background: rgba(104, 215, 255, 0.16);
  color: #e8f9ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.members-main__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.member-side-buttons {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: grid;
  gap: 0.5rem;
  width: min(240px, calc(100vw - 2rem));
  margin: 0 auto 1rem max(1rem, calc((100vw - 1120px) / 2));
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 18, 31, 0.86);
  box-shadow: 0 16px 38px rgba(2, 8, 20, 0.28);
}

.member-side-buttons a {
  display: block;
  padding: 0.6rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(104, 215, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 25, 42, 0.94), rgba(9, 20, 34, 0.94));
  color: #dff5ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.member-side-buttons a:hover,
.member-side-buttons a:focus-visible {
  border-color: rgba(104, 215, 255, 0.64);
  background: rgba(104, 215, 255, 0.2);
}

.member-side-buttons a.is-active {
  border-color: rgba(104, 215, 255, 0.78);
  background: rgba(104, 215, 255, 0.22);
}

.members-visibility-notice {
  margin: 0;
  padding: 0.72rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(90, 212, 255, 0.08);
  color: #d6effb;
  font-size: 0.9rem;
}

.members-main__content {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.members-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 1rem;
  align-items: start;
}

.members-dashboard-main {
  display: grid;
  gap: 1rem;
}

.members-bio-card {
  justify-self: end;
  width: 100%;
  position: static !important;
}

.members-bio-card h3 {
  margin-top: 0;
}

.members-hero {
  border-radius: calc(18px * var(--card-radius-scale));
  overflow: hidden;
  border: 1px solid rgba(113, 218, 255, 0.3);
  background: rgba(6, 15, 28, 0.95);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.members-hero__copy {
  padding: clamp(1.25rem, 2vw, 2.4rem);
}

.members-briefing__meta,
.members-briefing__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.members-briefing__meta > span {
  color: #b9ccdc;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.members-briefing__meta > span:first-of-type {
  margin-left: auto;
}

.members-briefing__section-heading h3 {
  margin: 0.3rem 0 0.45rem;
  padding-bottom: 0.12em;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #e9fbff;
  background: linear-gradient(90deg, #ffffff 0%, #9fe9ff 58%, #ffe8a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(104, 215, 255, 0.14);
}

.members-briefing__status {
  border: 1px solid rgba(104, 215, 255, 0.42);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(104, 215, 255, 0.12);
  color: #d8f7ff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.members-briefing__status--planned {
  border-color: rgba(255, 232, 163, 0.36);
  background: rgba(255, 232, 163, 0.09);
  color: #fff0bd;
}

.members-briefing__lede {
  max-width: 74ch;
  margin: 0.85rem 0 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.members-update-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.members-update-list article {
  position: relative;
  padding: 1.15rem 0 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.members-update-list article::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 232, 163, 0.72));
  box-shadow: 0 0 14px rgba(104, 215, 255, 0.32);
}

.members-update-list h4,
.members-update-list p {
  margin: 0;
}

.members-update-list h4,
.members-widget-grid article h4,
.members-development-note h3 {
  color: #edfaff;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(104, 215, 255, 0.2);
}

.members-update-list p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.members-update-list a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.members-hero__kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.members-hero h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

.members-hero__welcome-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.members-hero__welcome-row h2 {
  margin: 0.35rem 0 0.4rem;
}

.members-hero__bio {
  margin: 0.35rem 0 0;
  max-width: 100%;
  color: #d6ecff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.members-hero__bio-wrap {
  display: grid;
  justify-items: end;
}

.members-hero__bio-toggle {
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  min-height: auto;
  font-size: 0.78rem;
}

.members-hero p {
  margin: 0;
  color: var(--text-muted);
}

.members-widgets-placeholder h3 {
  margin-top: 0;
}

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

.members-widget-grid article {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.members-widget-grid article h4 {
  margin: 0 0 0.4rem;
}

.members-widget-grid article p {
  margin: 0;
  color: var(--text-muted);
}

.members-development-note {
  border-color: rgba(255, 232, 163, 0.24);
  background: linear-gradient(180deg, rgba(18, 22, 12, 0.86), rgba(11, 16, 26, 0.96));
}

.members-development-note h3 {
  margin: 0.3rem 0 0;
}

.members-development-note p {
  margin: 0.75rem 0 0;
  color: #d8ecd8;
  line-height: 1.55;
}

.members-x-card {
  grid-column: 1 / -1;
}

.members-x-card__feed {
  margin-top: 0.9rem;
  min-height: 420px;
  overflow: hidden;
  border-radius: calc(12px * var(--card-radius-scale));
}

.members-x-card__feed.is-x-fallback-visible {
  min-height: 0;
}

.members-x-fallback {
  margin-top: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 360px);
  padding: 0.75rem 0.9rem;
  border-radius: calc(12px * var(--card-radius-scale));
}

.members-x-fallback[hidden] {
  display: none;
}

.members-x-fallback__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.members-x-fallback .x-timeline-fallback__body {
  padding: 0;
}

.members-x-fallback .x-timeline-fallback__title {
  margin: 0;
}

.members-x-fallback .x-timeline-fallback__cta {
  margin-top: 0.35rem;
}

.ideas-board {
  display: grid;
  gap: 1rem;
}

.ideas-board__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ideas-board__header h2 {
  margin: 0;
}

.ideas-board__header p {
  margin: 0.4rem 0 0;
}

.ideas-board__live {
  margin: 0;
}

.ideas-board__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ideas-board__categories .btn-ghost {
  border-color: rgba(90, 212, 255, 0.22);
}

.ideas-board__categories .btn-ghost.is-active {
  border-color: rgba(104, 215, 255, 0.62);
  background: rgba(104, 215, 255, 0.2);
}

.ideas-board__composer {
  display: grid;
  gap: 0.75rem;
}

.ideas-board__composer textarea {
  min-height: 130px;
}

.ideas-board__feed {
  display: grid;
  gap: 0.85rem;
}

.ideas-board__item p {
  margin: 0.6rem 0 0;
}

.ideas-board__tag {
  display: inline-flex;
  margin: 0.6rem 0 0;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(104, 215, 255, 0.42);
  background: rgba(104, 215, 255, 0.12);
  color: #dff5ff;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.member-public-profile {
  max-width: 820px;
  margin: 0 auto;
}

.member-public-profile__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.member-public-profile__head h2 {
  margin: 0;
}

.member-public-profile__meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.member-public-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(104, 215, 255, 0.45);
  background: rgba(104, 215, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #dff5ff;
  overflow: hidden;
}

.member-public-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
}

.member-public-profile__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.member-public-profile__section h3 {
  margin: 0;
}

.member-public-profile__section p {
  margin: 0.6rem 0 0;
  line-height: 1.6;
}

.members-form-panel {
  margin-top: 0;
}

.mission-panel h2 {
  margin-top: 0;
}

.mission-panel h3 {
  margin: 1.15rem 0 0.55rem;
}

.mission-panel p {
  margin: 0.55rem 0;
}

.mission-list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.48rem;
}

.mission-phase {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(104, 215, 255, 0.22);
  background: rgba(104, 215, 255, 0.06);
}

.mission-phase h3 {
  margin: 0;
}

.mission-phase h3 span {
  color: var(--accent);
  font-size: 0.88em;
  font-weight: 600;
}

.mission-phase__focus {
  margin-top: 0.85rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.77rem;
  color: var(--accent);
}

.mission-cta {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(122, 235, 184, 0.4);
  background: linear-gradient(180deg, rgba(16, 34, 28, 0.82), rgba(10, 25, 19, 0.88));
}

.mission-cta .btn {
  margin-top: 0.6rem;
}

.members-page .content-panel {
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(7, 15, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(1, 9, 22, 0.22);
  color: var(--text);
}

.members-page .members-bio-card.content-panel {
  position: static !important;
  top: auto;
  align-self: start;
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.9), rgba(7, 15, 27, 0.9));
}

.members-page .content-panel p,
.members-page .content-panel h2,
.members-page .content-panel h3,
.members-page .content-panel label {
  color: var(--text);
}

.members-complete-note {
  border-color: rgba(255, 232, 163, 0.25);
  background: linear-gradient(180deg, rgba(22, 19, 7, 0.74), rgba(12, 18, 30, 0.9));
}

.complete-profile-page .content-panel {
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(7, 15, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(1, 9, 22, 0.22);
  color: var(--text);
}

.complete-profile-page .content-panel p,
.complete-profile-page .content-panel h2,
.complete-profile-page .content-panel h3,
.complete-profile-page .content-panel label {
  color: var(--text);
}

.members-complete-note h2 {
  margin-top: 0;
}

.complete-profile-page .members-sidebar__nav a,
.complete-profile-page .members-sidebar__section-label,
.complete-profile-page .members-logout {
  opacity: 0.58;
  pointer-events: none;
}

body.page-join-mission {
  background:
    radial-gradient(circle at 20% 16%, rgba(90, 212, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 8%, rgba(138, 110, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #050816 0%, #071322 34%, #08111d 100%);
}

body.page-join-mission::before,
body.page-join-mission::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.page-join-mission::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0.8px, transparent 0.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0.6px, transparent 0.6px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 160px 160px, 260px 260px, 100% 100%, 100% 100%;
  background-position: 0 0, 80px 40px, 0 0, 0 0;
  opacity: 0.26;
  animation: mission-star-drift 54s linear infinite;
}

body.page-join-mission::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(90, 212, 255, 0.16), transparent 20%),
    radial-gradient(circle at 30% 48%, rgba(255, 255, 255, 0.07), transparent 26%),
    radial-gradient(circle at 72% 72%, rgba(100, 140, 255, 0.1), transparent 24%);
  opacity: 0.9;
  animation: mission-nebula-shift 32s ease-in-out infinite alternate;
}

body.page-join-mission .header,
body.page-join-mission .footer {
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(10px);
}

.mission-landing-page {
  position: relative;
  overflow: clip;
}

.mission-landing-page .section {
  padding: 0;
}

.mission-landing-page .section + .section {
  margin-top: 1.25rem;
}

.mission-landing-page .content-panel,
.mission-landing-page .feature-card,
.mission-landing-page .list-card,
.mission-landing-page .form-panel {
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.94), rgba(7, 13, 25, 0.96));
  border: 1px solid rgba(120, 214, 255, 0.16);
  box-shadow: 0 26px 60px rgba(0, 6, 18, 0.34);
  color: var(--text);
}

.mission-landing-page .content-panel p,
.mission-landing-page .content-panel h2,
.mission-landing-page .content-panel h3,
.mission-landing-page .content-panel label,
.mission-landing-page .content-panel span,
.mission-landing-page .content-panel li {
  color: var(--text);
}

.mission-section-eyebrow {
  margin: 0;
  color: rgba(150, 232, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mission-hero {
  min-height: calc(100svh - 6rem);
  display: grid;
  align-items: center;
  padding: 2rem 0 1rem;
}

.mission-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
}

.mission-hero__copy {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: clamp(1.4rem, 2.5vw, 3rem) 0;
  justify-items: flex-start;
  text-align: left;
  max-width: 36rem;
}

.mission-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.3vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.mission-hero__lede {
  max-width: 34rem;
  margin: 0;
  color: #d6ecff;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.72;
}

.mission-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.mission-hero__principles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0.2rem 0 0;
  justify-content: flex-start;
}

.mission-hero__principles li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(150, 232, 255, 0.18);
  background: rgba(90, 212, 255, 0.06);
  color: #dff7ff;
  font-size: 0.86rem;
}

.mission-hero__media {
  position: relative;
  width: min(100%, 38rem);
  margin: 0;
  justify-self: end;
  align-self: start;
  padding: clamp(0.75rem, 1.8vw, 1.2rem);
}

.mission-hero__media::before,
.mission-hero__media::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.mission-hero__media::before {
  inset: 7% 6% 12% 12%;
  border-radius: 44% 56% 58% 42% / 36% 42% 58% 64%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 211, 103, 0.16), rgba(90, 212, 255, 0.05) 45%, transparent 72%);
  filter: blur(10px);
  transform: rotate(-5deg);
}

.mission-hero__media::after {
  inset: 18% 0 0 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 12, 22, 0), rgba(6, 12, 22, 0.26) 62%, rgba(6, 12, 22, 0.7) 100%);
}

.mission-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28% 42% 22% 12% / 18% 28% 14% 10%;
  box-shadow: 0 28px 64px rgba(4, 10, 20, 0.42);
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.mission-hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: calc(28px * var(--card-radius-scale));
  padding: clamp(1.4rem, 2.3vw, 2rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(90, 212, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(8, 18, 30, 0.96), rgba(7, 14, 26, 0.98));
}

.mission-hero__panel::before,
.mission-hero__panel::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.mission-hero__panel::before {
  inset: 12% auto auto 22%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  border: 1px solid rgba(150, 232, 255, 0.2);
  box-shadow: 0 0 0 26px rgba(90, 212, 255, 0.03), 0 0 0 52px rgba(90, 212, 255, 0.02);
  animation: mission-orbit 24s linear infinite;
}

.mission-hero__panel::after {
  inset: auto 12% 14% auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(90, 212, 255, 0.15);
  animation: mission-shooting-star 28s linear infinite;
}

.mission-hero__panel h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.08;
}

.mission-hero__panel p {
  margin: 0;
  color: var(--text-muted);
}

.mission-hero__stats {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.mission-hero__stats div {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(150, 232, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.mission-hero__stats span,
.mission-goal__meta span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-hero__stats strong,
.mission-goal__meta strong {
  color: #eafaff;
  font-size: 1rem;
}

.mission-section-heading {
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.mission-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.mission-section-heading p {
  margin: 0;
  color: var(--text-muted);
}

.mission-roadmap {
  padding: 1rem 0 0;
}

.mission-roadmap__track {
  position: relative;
  height: 2px;
  margin: 0 0 1.25rem;
  background: linear-gradient(90deg, rgba(90, 212, 255, 0.14), rgba(90, 212, 255, 0.7), rgba(138, 110, 255, 0.18));
  border-radius: 999px;
  overflow: hidden;
}

.mission-roadmap__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-100%);
  animation: mission-track-sweep 6s linear infinite;
}

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

.mission-phase-card,
.mission-feature-card,
.mission-trust-card {
  border-radius: calc(24px * var(--card-radius-scale));
  border: 1px solid rgba(150, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(1, 9, 22, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.mission-phase-card:hover,
.mission-feature-card:hover,
.mission-trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(150, 232, 255, 0.34);
  box-shadow: 0 28px 50px rgba(1, 9, 22, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.mission-phase-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem;
}

.mission-phase-card__number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(90, 212, 255, 0.34), rgba(90, 212, 255, 0.12));
  border: 1px solid rgba(150, 232, 255, 0.28);
  color: #effcff;
  font-weight: 800;
}

.mission-phase-card__badge {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-phase-card h3,
.mission-feature-card h3,
.mission-trust-card h3,
.mission-donate__card h2 {
  margin: 0;
}

.mission-phase-card p,
.mission-feature-card p,
.mission-trust-card p,
.mission-donate__card p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.mission-benefits {
  padding-top: 1rem;
}

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

.mission-feature-card {
  padding: 1.35rem;
}

.mission-feature-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  background: rgba(90, 212, 255, 0.12);
  border: 1px solid rgba(150, 232, 255, 0.18);
  transform: translateZ(0);
  transition: transform 0.28s ease, background-color 0.28s ease;
}

.mission-feature-card:hover .mission-feature-card__icon {
  transform: translateY(-2px) scale(1.05);
  background: rgba(90, 212, 255, 0.18);
}

.mission-donate {
  padding-top: 1rem;
}

.mission-donation-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.mission-donation-section__legal {
  padding-top: 1rem;
  border-top: 1px solid rgba(150, 232, 255, 0.14);
  font-size: 0.92rem;
}

.mission-donate__card {
  position: relative;
  overflow: hidden;
  border-radius: calc(30px * var(--card-radius-scale));
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 12% 10%, rgba(90, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(138, 110, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 16, 30, 0.98), rgba(8, 14, 27, 0.98));
}

.mission-donate__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent 54%);
  opacity: 0.65;
  pointer-events: none;
}

.mission-goal {
  margin-top: 1.2rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(150, 232, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.mission-goal__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.mission-progress {
  height: 0.82rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.mission-progress span {
  display: block;
  height: 100%;
  width: var(--mission-progress, 44%);
  border-radius: inherit;
  background: linear-gradient(90deg, #5ad4ff, #89a9ff 55%, #d6f7ff 100%);
  box-shadow: 0 0 18px rgba(90, 212, 255, 0.4);
}

.mission-goal__note {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.mission-donate__form {
  margin-top: 1.25rem;
  width: 100%;
}

.mission-donate__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mission-preset {
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(150, 232, 255, 0.2);
  background: rgba(90, 212, 255, 0.08);
  color: #eaf9ff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mission-preset:hover,
.mission-preset:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(150, 232, 255, 0.4);
  background: rgba(90, 212, 255, 0.14);
  box-shadow: 0 12px 24px rgba(1, 9, 22, 0.18);
}

.mission-preset--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.mission-donate__controls {
  width: 100%;
  justify-content: space-between;
}

.mission-donate__button {
  position: relative;
  overflow: hidden;
  animation: mission-button-glow 3.4s ease-in-out infinite;
}

.mission-donate__button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  animation: mission-button-sheen 4.8s linear infinite;
}

.mission-trust {
  padding-top: 1rem;
}

.mission-trust__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
}

.mission-trust-card {
  padding: 1.1rem;
}

.mission-trust-card span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(150, 232, 255, 0.2);
  background: rgba(90, 212, 255, 0.08);
  color: #dff9ff;
  font-weight: 700;
}

.mission-cta--final {
  padding: 1.2rem 0 0;
}

.mission-cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: calc(30px * var(--card-radius-scale));
  border: 1px solid rgba(150, 232, 255, 0.16);
  background:
    radial-gradient(circle at 50% 8%, rgba(90, 212, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 82%, rgba(138, 110, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.98), rgba(8, 14, 26, 0.98));
  text-align: center;
}

.mission-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0.7px, transparent 0.7px);
  background-size: 120px 120px;
  opacity: 0.18;
  pointer-events: none;
}

.mission-cta__panel h2 {
  margin: 0.4rem auto 0;
  max-width: 12ch;
  font-size: clamp(2.3rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.mission-cta__panel p {
  max-width: 52rem;
  margin: 1rem auto 0;
  color: #d7e8f7;
  font-size: 1.05rem;
}

.mission-cta__button {
  margin-top: 1.4rem;
}

.mission-landing-page [data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mission-landing-page [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes mission-star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -24px, 0); }
}

@keyframes mission-nebula-shift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to { transform: translate3d(1.5%, -1.2%, 0) scale(1.04); }
}

@keyframes mission-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mission-shooting-star {
  0%, 86%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  90% {
    opacity: 1;
    transform: translate3d(-18rem, -8rem, 0) scale(1);
  }
  94% {
    opacity: 0;
    transform: translate3d(-32rem, -16rem, 0) scale(0.4);
  }
}

@keyframes mission-track-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@keyframes mission-button-glow {
  0%, 100% { box-shadow: 0 18px 34px rgba(18, 92, 163, 0.34), 0 0 0 rgba(90, 212, 255, 0); }
  50% { box-shadow: 0 18px 34px rgba(18, 92, 163, 0.48), 0 0 24px rgba(90, 212, 255, 0.24); }
}

@keyframes mission-button-sheen {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-join-mission::before,
  body.page-join-mission::after,
  .mission-hero__panel::before,
  .mission-hero__panel::after,
  .mission-roadmap__track::after,
  .mission-donate__button,
  .mission-donate__button::after,
  .login-signup-button,
  .mission-landing-page [data-reveal] {
    animation: none !important;
    transition: none !important;
  }

  .mission-landing-page [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .mission-hero__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mission-hero__copy {
    justify-items: center;
    text-align: center;
  }

  .mission-hero__lede {
    margin: 0 auto;
  }

  .mission-hero__actions,
  .mission-hero__principles {
    justify-content: center;
  }

  .mission-hero__media {
    width: min(100%, 30rem);
    justify-self: center;
    align-self: center;
    padding-top: 0;
  }
}

.member-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.6rem;
  max-width: min(92vw, 360px);
}

.member-toast {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0.8rem 0.95rem;
  border-radius: calc(12px * var(--card-radius-scale));
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 20, 34, 0.96);
  color: var(--text);
  font-size: 0.92rem;
}

.member-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.member-toast--success {
  border-color: rgba(122, 235, 184, 0.45);
}

.member-toast--error {
  border-color: rgba(255, 125, 125, 0.48);
}

@media (max-width: 720px) {
  .mission-roadmap__cards {
    grid-template-columns: 1fr;
  }

  .mission-phase-card__body {
    min-width: 0;
  }

  .register-layout,
  .account-profile-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .account-profile-layout::before {
    inset: 0;
    opacity: 0.22;
  }

  .account-profile-image-card img {
    max-height: 340px;
    object-fit: cover;
  }

  .account-avatar-placeholder {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .account-avatar-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-page .nav-action {
    width: 100%;
  }

  .login-page .account-auth-card {
    width: 100%;
    min-width: 0;
  }

  .login-membership-layout {
    grid-template-columns: 1fr;
  }

  .login-membership-summary {
    min-height: 0;
  }

  .login-membership-summary h2 {
    max-width: 18ch;
  }

  .login-page .section.page-section > .container {
    justify-content: stretch;
  }

  .login-signup-button {
    justify-self: start;
  }

  .login-signup-button--inline {
    margin-left: 0;
  }

  .login-page::before {
    opacity: 0.24;
    background-position: center top;
  }

  .members-page {
    padding: 0.85rem;
  }

  .member-side-buttons {
    position: static;
    transform: none;
    width: auto;
    margin: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .members-shell {
    grid-template-columns: 1fr;
  }

  .members-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .members-bio-card {
    position: static;
    justify-self: stretch;
  }

  .members-sidebar {
    grid-template-columns: 1fr;
  }

  .members-hero {
    grid-template-columns: 1fr;
  }

  .members-widget-grid {
    grid-template-columns: 1fr;
  }

  .mission-phase {
    padding: 0.85rem;
  }

  .members-main__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .members-main__identity {
    text-align: left;
  }

  .members-hero__welcome-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .members-hero__bio-wrap {
    justify-items: start;
  }
}

.privacy-box {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
}

.privacy-box input {
  width: 2rem;
  height: 2rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.stats-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(20px * var(--card-radius-scale));
  padding: 1.35rem;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--text);
}

.stat-card span {
  color: var(--text-muted);
}

.section-narrow {
  max-width: 770px;
}

.page-intro {
  margin-top: 0.5rem;
}

.page-intro p {
  margin: 1rem 0 0;
}

.page-header {
  display: block;
  position: relative;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 3.4rem);
  margin-right: 1rem;
}

.page-header .page-meta {
  color: var(--text-muted);
}

/* Case Metadata Header */
.case-metadata-header {
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.case-quick-facts {
  margin-bottom: 1rem;
  display: block;
}

.case-quick-facts p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.case-quick-facts strong {
  color: var(--text);
  font-weight: 600;
}

.case-ratings {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-top: none;
  border-bottom: none;
}

.rating-row {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.rating-label {
  color: var(--text-muted);
  font-weight: 500;
}

.rating-stars {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.1rem;
  margin-left: 0.5rem;
}

.case-status {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.case-status strong {
  color: var(--text);
  font-weight: 600;
}

.case-ratings-card {
  float: right;
  width: 280px;
  margin: 0 0 1.5rem 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: calc(16px * var(--card-radius-scale));
  border: 1px solid rgba(90, 212, 255, 0.2);
  background: rgba(90, 212, 255, 0.08);
  box-shadow: 0 8px 24px rgba(1, 9, 22, 0.18);
}

.case-ratings-card.case-ratings-card--bottom {
  float: none;
  clear: both;
  width: min(100%, 420px);
  margin: 1.75rem 0 0;
}

.case-ratings-card h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--text);
}

.case-ratings-card .rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-ratings-card .rating-row:last-child {
  border-bottom: none;
}

.case-ratings-card .rating-label {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.case-ratings-card .rating-stars {
  color: #ffd700;
  font-size: 0.95rem;
  letter-spacing: 0.08rem;
  margin: 0;
}

.case-witnesses-buttons {
  margin-top: 1.5rem;
  padding: 1rem 0;
  clear: both;
}

.case-witnesses-buttons h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.witnesses-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.witness-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: rgba(90, 212, 255, 0.12);
  border: 1px solid rgba(90, 212, 255, 0.3);
  border-radius: calc(8px * var(--card-radius-scale));
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.witness-btn:hover {
  background: rgba(90, 212, 255, 0.2);
  border-color: rgba(90, 212, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.block-divider {
  margin: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-subtle {
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.transparency-disclosure {
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.98), rgba(7, 15, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(20px * var(--card-radius-scale));
  box-shadow: 0 24px 48px rgba(1, 9, 22, 0.22);
  overflow: hidden;
}

.transparency-disclosure summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 1.2rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transparency-disclosure summary::marker {
  content: "";
}

.transparency-disclosure summary::-webkit-details-marker {
  display: none;
}

.transparency-disclosure summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.transparency-disclosure[open] summary::after {
  content: "-";
}

.transparency-content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem 1.25rem;
}

.transparency-content h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.transparency-content p,
.transparency-content li {
  color: var(--text-muted);
}

.transparency-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.transparency-content li + li {
  margin-top: 0.4rem;
}

.deep-dive-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.03);
  margin-top: 1rem;
  overflow: hidden;
}

.deep-dive-disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deep-dive-disclosure summary::marker {
  content: "";
}

.deep-dive-disclosure summary::-webkit-details-marker {
  display: none;
}

.deep-dive-disclosure summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.deep-dive-disclosure[open] summary::after {
  transform: rotate(-135deg);
}

.deep-dive-disclosure__content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem 1rem;
}

.deep-dive-disclosure__content > :first-child {
  margin-top: 0;
}

.timeline-section {
  padding-top: 1.5rem;
}

.timeline-section .content-panel {
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.98), rgba(5, 10, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(1, 8, 20, 0.32);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid rgba(90, 212, 255, 0.62);
  border-radius: calc(14px * var(--card-radius-scale));
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.timeline-year {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.timeline-link {
  color: #dff5ff;
  text-decoration: underline;
  text-decoration-color: rgba(90, 212, 255, 0.4);
  text-underline-offset: 0.22rem;
}

.timeline-link:hover,
.timeline-link:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(90, 212, 255, 0.85);
}

.timeline-item p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.briefing-feed {
  margin-top: 2rem;
}

.briefing-sections {
  margin-top: 1rem;
}

.briefing-section {
  padding: 1.2rem;
}

.briefing-section h3 {
  margin: 0 0 0.7rem;
}

.briefing-log-item {
  padding: 0.95rem 1rem;
  border-radius: calc(14px * var(--card-radius-scale));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.briefing-log-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.briefing-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.briefing-points {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.briefing-log {
  display: grid;
  gap: 0.85rem;
}

.briefing-log-item a,
.briefing-points a {
  color: var(--accent);
}

.footer {
  padding: 3rem 0 2rem;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(11rem, 1.05fr) minmax(10rem, 0.75fr) minmax(10rem, 0.9fr) auto;
  align-items: center;
}

.footer-inner > div:first-child {
  display: contents;
}

.footer-inner > div:first-child .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.footer-nav {
  display: grid;
  gap: 0.85rem;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.footer-nav a {
  color: var(--text-muted);
  display: inline-block;
  justify-self: start;
  width: max-content;
}

.footer-mission-link {
  color: var(--text-muted);
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: max-content;
}

.footer-mission-link:hover {
  color: var(--accent);
}

.footer-mission-logo {
  display: block;
  grid-column: 1;
  grid-row: 2;
  width: clamp(4.75rem, 9vw, 7.5rem);
  height: auto;
  margin-top: 0.8rem;
  opacity: 0.72;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

.footer-socials {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  grid-column: 4;
  grid-row: 1 / span 2;
}

.footer-socials__title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-socials__card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  justify-items: start;
  max-width: 16rem;
  padding: 0.75rem;
  border: 1px solid rgba(90, 212, 255, 0.22);
  border-radius: calc(12px * var(--card-radius-scale));
  background: rgba(11, 27, 45, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.footer-socials__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(90, 212, 255, 0.4);
  grid-row: span 2;
}

.footer-socials__handle {
  color: #d7f2ff;
  font-weight: 600;
  line-height: 1.2;
}

.footer-socials__button {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 212, 255, 0.45);
  background: rgba(90, 212, 255, 0.12);
  color: #d7f2ff;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.stripe-button {
  border: 1px solid rgba(123, 114, 255, 0.55);
  background: linear-gradient(135deg, #635bff 0%, #7a72ff 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(61, 51, 196, 0.24);
}

.stripe-button:hover,
.stripe-button:focus-visible {
  border-color: rgba(167, 161, 255, 0.8);
  background: linear-gradient(135deg, #726bff 0%, #8a84ff 100%);
  color: #ffffff;
  filter: saturate(1.05);
}

.footer-socials__button:hover,
.footer-socials__button:focus-visible {
  border-color: rgba(120, 226, 255, 0.72);
  background: rgba(90, 212, 255, 0.22);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-muted);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(90, 212, 255, 0.08);
}

.policy-meta p {
  margin: 0;
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.policy-list a {
  display: block;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(90, 212, 255, 0.25);
  border-radius: calc(12px * var(--card-radius-scale));
  background: rgba(11, 27, 45, 0.45);
  color: inherit;
  text-decoration: none;
}

.policy-list a:hover,
.policy-list a:focus-visible {
  border-color: rgba(120, 226, 255, 0.7);
  transform: translateY(-2px);
}

.policy-list h2 {
  margin-top: 0;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 0.75rem;
  border: 1px solid rgba(90, 212, 255, 0.22);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: var(--text);
  background: rgba(90, 212, 255, 0.1);
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner > div:first-child {
    display: grid;
  }

  .footer-inner > div:first-child .brand,
  .footer-mission-link,
  .footer-mission-logo,
  .footer-nav,
  .footer-socials {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

.visit-counter {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.back-to-top-saucer {
  position: fixed;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 16, 31, 0.75);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.24s ease;
  z-index: 12;
}

.back-to-top-saucer.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top-saucer:hover,
.back-to-top-saucer:focus-visible {
  background: rgba(11, 28, 46, 0.92);
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 720px) {
  .back-to-top-saucer {
    bottom: 1rem;
    width: 2.8rem;
    height: 2.8rem;
  }
}

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

  .hero-home-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(20rem, auto) auto;
  }

  .quote-deck {
    justify-content: stretch;
  }

  .quote-deck__card {
    width: min(100%, 620px);
  }

  .quote-deck {
    margin-top: 1rem;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header,
  .footer {
    padding: 1rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 9vw, 4.4rem);
  }

  .site-nav {
    gap: 0.85rem;
  }

  .feature-card,
  .list-card,
  .content-panel,
  .form-panel {
    padding: 1.5rem;
  }

  .home-donate-form {
    width: min(100%, 26rem);
    padding: 1.1rem 1rem 0.95rem;
  }

  .home-donate-form__controls {
    width: auto;
    flex-direction: column;
  }

  .home-donate-input-wrap {
    width: min(100%, 11rem);
  }

  .home-donate-button {
    width: min(100%, 18rem);
  }

  .home-poll-card {
    padding: 1.15rem;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
  }

  .quote-deck__card {
    padding: 0.65rem 0.8rem 0.75rem;
  }

  .quote-deck__content {
    padding: 0.15rem 0 0.15rem;
  }

  .quote-deck__quote {
    font-size: clamp(1.22rem, 1rem + 1vw, 1.9rem);
  }

  .quote-deck__controls {
    gap: 0.25rem;
    margin-top: 0.2rem;
  }

  .page-header {
    display: block;
  }

  .case-ratings-card {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quote-deck__card,
  .quote-deck__quote,
  .quote-deck__author,
  .quote-deck__role,
  .quote-deck__nav,
  .quote-deck__card::before {
    animation: none !important;
    transition: none !important;
  }

  .quote-deck__card {
    opacity: 1;
    transform: none;
  }

  .quote-deck__quote,
  .quote-deck__author,
  .quote-deck__role {
    opacity: 1;
    transform: none;
  }
}

/* Member Panel Styles */
.member-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.member-panel-overlay[hidden] {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.member-embedded-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background: rgba(15, 28, 47, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(20px * var(--card-radius-scale));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.member-embedded-panel[hidden] {
  display: none;
  animation: slideOut 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
}

.member-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.member-panel-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.member-panel-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
  color: var(--text);
  flex-shrink: 0;
}

.member-panel-close:hover {
  background: rgba(90, 212, 255, 0.15);
  border-color: rgba(90, 212, 255, 0.3);
  color: var(--accent);
}

.member-panel-close:active {
  background: rgba(90, 212, 255, 0.25);
}

.member-panel-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .member-embedded-panel {
    animation: none;
  }

  .member-embedded-panel[hidden] {
    animation: none;
  }
}

@media (max-width: 768px) {
  .member-embedded-panel {
    width: 95%;
    height: 90vh;
    max-width: 100%;
    border-radius: calc(18px * var(--card-radius-scale));
  }

  .member-panel-header {
    padding: 1.25rem 1.5rem;
  }

  .member-panel-header h2 {
    font-size: 1.1rem;
  }

  .member-panel-close {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Case Page Layout: Left Navigation + Right Content */
.case-deep-dive-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  min-height: 100vh;
}

.case-nav-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(15, 28, 47, 0.8);
  border: 1px solid rgba(90, 212, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.case-nav-sidebar::-webkit-scrollbar {
  width: 6px;
}

.case-nav-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.case-nav-sidebar::-webkit-scrollbar-thumb {
  background: rgba(90, 212, 255, 0.4);
  border-radius: 3px;
}

.case-nav-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(90, 212, 255, 0.6);
}

.case-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(90, 212, 255, 0.8);
  margin: 0 0 1.25rem 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(90, 212, 255, 0.15);
}

.case-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-nav-item {
  margin: 0;
  padding: 0;
}

.case-nav-link {
  display: block;
  padding: 0.85rem 1rem;
  background: rgba(90, 212, 255, 0.08);
  border: 1px solid rgba(90, 212, 255, 0.2);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-nav-link:hover {
  background: rgba(90, 212, 255, 0.15);
  color: var(--accent);
  border-color: rgba(90, 212, 255, 0.45);
  box-shadow: 0 4px 12px rgba(90, 212, 255, 0.1);
  transform: translateX(2px);
}

.case-nav-link:active {
  transform: translateX(2px) scale(0.98);
}

.case-nav-link.active {
  background: linear-gradient(135deg, rgba(90, 212, 255, 0.25), rgba(90, 212, 255, 0.15));
  color: var(--accent);
  border-color: rgba(90, 212, 255, 0.6);
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(90, 212, 255, 0.1), 0 4px 16px rgba(90, 212, 255, 0.15);
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.case-content-area {
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 28, 47, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(90, 212, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(90, 212, 255, 0.05);
}

.case-content-area::-webkit-scrollbar {
  width: 6px;
}

.case-content-area::-webkit-scrollbar-track {
  background: transparent;
}

.case-content-area::-webkit-scrollbar-thumb {
  background: rgba(90, 212, 255, 0.4);
  border-radius: 3px;
}

.case-content-area::-webkit-scrollbar-thumb:hover {
  background: rgba(90, 212, 255, 0.6);
}

.case-section {
  display: none;
}

.case-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.case-section h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--accent);
  border-bottom: 2px solid rgba(90, 212, 255, 0.3);
  padding-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.case-section h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.case-section p {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: var(--text);
}

.case-section strong {
  color: var(--accent);
  font-weight: 600;
}

.case-section ul,
.case-section ol {
  margin: 1rem 0;
  padding-left: 1.75rem;
}

.case-section li {
  margin: 0.6rem 0;
  line-height: 1.7;
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .case-deep-dive-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-nav-sidebar,
  .case-content-area {
    position: static;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .case-deep-dive-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-nav-sidebar {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .case-nav-title {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .case-nav-link {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }

  .case-nav-link.active {
    padding-left: 0.75rem;
    border-left-width: 2px;
  }

  .case-content-area {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .case-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .case-section h4 {
    font-size: 0.95rem;
  }

  .case-section ul,
  .case-section ol {
    padding-left: 1.5rem;
  }
}

/* Cloudflare powers Greg's upstream search, but its stock widget is never shown. */
chat-bubble-snippet {
  display: none !important;
}

.page-greg-home {
  background:
    radial-gradient(circle at 20% 12%, rgba(116, 203, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 84% 24%, rgba(255, 190, 112, 0.14), transparent 28rem),
    #050b12;
  color: #f3f8fb;
}

.page-greg-home .greg-home-visual {
  position: relative;
  width: 100%;
  overflow: visible;
}

.page-greg-home .greg-home-visual__scene {
  display: block;
  width: 100%;
  height: auto;
}

.page-greg-home .greg-home-saucer-popout {
  position: absolute;
  z-index: 3;
  top: 40.5%;
  left: 74%;
  width: 26%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 60%;
  animation: greg-home-saucer-float 4.6s ease-in-out infinite;
}

.page-greg-home .greg-home-saucer-popout:hover img,
.page-greg-home .greg-home-saucer-popout:focus-visible img {
  filter:
    drop-shadow(0 0 13px rgba(191, 240, 255, 0.95))
    drop-shadow(0 16px 18px rgba(0, 0, 0, 0.52));
}

.page-greg-home .greg-home-saucer-popout:focus-visible {
  outline: 2px solid rgba(196, 241, 255, 0.88);
  outline-offset: 5px;
  border-radius: 50%;
}

.page-greg-home .greg-home-saucer-popout::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 22% 8% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(88, 207, 255, 0.58) 0%, rgba(63, 160, 255, 0.25) 42%, transparent 72%);
  filter: blur(15px);
  opacity: 0.9;
  animation: greg-home-saucer-glow 2.8s ease-in-out infinite;
}

.page-greg-home .greg-home-saucer-popout img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 8px rgba(135, 224, 255, 0.75))
    drop-shadow(0 13px 15px rgba(0, 0, 0, 0.48));
}

.page-greg-home .greg-home-saucer-popout.is-saucer-departing {
  z-index: 8;
  cursor: default;
  pointer-events: none;
  animation: greg-home-saucer-departure 1.65s linear forwards;
}

.page-greg-home .greg-home-visual.is-saucer-departing::before {
  content: '';
  position: absolute;
  z-index: 7;
  top: 44%;
  right: 14%;
  width: 88%;
  height: clamp(4px, 0.7vw, 12px);
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, rgba(83, 127, 155, 0.08) 42%, rgba(168, 211, 225, 0.32) 76%, rgba(225, 241, 244, 0.48) 100%);
  box-shadow: 0 0 12px rgba(169, 215, 228, 0.28), 0 0 34px rgba(65, 116, 151, 0.24);
  transform: rotate(38deg) scaleX(0);
  transform-origin: right center;
  opacity: 0;
  animation: greg-home-saucer-light-zip 1.65s ease-in-out forwards;
}

.page-greg-home .greg-home-visual.is-saucer-departing::after {
  content: '';
  position: fixed;
  z-index: 1500;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 43%, rgba(180, 215, 225, 0.34) 0%, rgba(93, 133, 156, 0.2) 27%, rgba(22, 39, 57, 0.12) 55%, transparent 78%),
    rgba(2, 7, 14, 0.34);
  opacity: 0;
  animation: greg-home-saucer-screen-wash 1.65s ease-in-out forwards;
}

@keyframes greg-home-saucer-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes greg-home-saucer-glow {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes greg-home-saucer-departure {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  28% { transform: translate3d(0, -34%, 0) rotate(0deg) scale(1.03); }
  64% { transform: translate3d(-5%, -54%, 0) rotate(100deg) scale(1.03); }
  82% { transform: translate3d(-5%, -54%, 0) rotate(100deg) scale(1.03); }
  100% { transform: translate3d(-165vw, -110vh, 0) rotate(100deg) scale(0.08); }
}

@keyframes greg-home-saucer-light-zip {
  0%, 72% { opacity: 0; transform: rotate(38deg) scaleX(0); }
  82% { opacity: 0.18; transform: rotate(38deg) scaleX(0.12); }
  93% { opacity: 0.48; transform: rotate(38deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(38deg) scaleX(1.08); }
}

@keyframes greg-home-saucer-screen-wash {
  0%, 68% { opacity: 0; }
  80% { opacity: 0.08; }
  93% { opacity: 0.42; }
  100% { opacity: 0; }
}

.greg-home {
  background: transparent;
}

.greg-home-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  display: flex;
  align-items: center;
}

.greg-home-hero__image,
.greg-home-hero__shade {
  position: absolute;
  inset: 0;
}

.greg-home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.greg-home-hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 11, 18, 0.86) 0%, rgba(5, 11, 18, 0.56) 43%, rgba(5, 11, 18, 0.18) 76%),
    linear-gradient(180deg, rgba(5, 11, 18, 0.08) 0%, rgba(5, 11, 18, 0.78) 100%);
}

.greg-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.greg-home-hero h1 {
  margin: 0;
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.greg-home-hero p:not(.eyebrow) {
  max-width: 56ch;
  color: rgba(243, 248, 251, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.greg-home-hero__actions,
.greg-home-doorways__links,
.greg-console__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.greg-home-band {
  background: rgba(5, 11, 18, 0.96);
}

.greg-home-band--subtle {
  background: linear-gradient(180deg, rgba(8, 19, 30, 0.98), rgba(4, 9, 15, 0.98));
}

.greg-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
}

.greg-console,
.greg-home-note,
.greg-home-card {
  border: 1px solid rgba(145, 215, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 34, 49, 0.9), rgba(8, 18, 28, 0.88));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.greg-console,
.greg-home-note {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.greg-console h2,
.greg-home-note h2,
.greg-home-card h3,
.greg-home-doorways h2,
.page-greg-home .page-header h2 {
  color: #ffffff;
}

.greg-console__screen {
  min-height: 9rem;
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid rgba(132, 217, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(155, 226, 255, 0.1), rgba(40, 98, 127, 0.08)),
    rgba(3, 11, 18, 0.9);
  color: #d9f2ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
}

.page-greg-home .btn,
.page-greg-home .btn-secondary {
  border-radius: 8px;
}

.page-greg-home .btn-secondary {
  border-color: rgba(157, 223, 255, 0.34);
  color: #ecf8ff;
}

.page-greg-home .btn-secondary:hover,
.page-greg-home .btn-secondary:focus-visible {
  color: #06111c;
}

.greg-home-note p,
.greg-home-card p,
.greg-home-doorways p {
  color: rgba(231, 243, 250, 0.82);
  line-height: 1.65;
}

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

.greg-home-card {
  padding: 1.15rem;
}

.greg-home-card a {
  color: #9ddfff;
  font-weight: 700;
}

.greg-home-doorways {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
}

.page-greg-home[data-greg-mood="curious"] .greg-console {
  border-color: rgba(255, 211, 139, 0.42);
}

.page-greg-home[data-greg-mood="bright"] .greg-console {
  border-color: rgba(127, 232, 198, 0.42);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3), 0 0 32px rgba(127, 232, 198, 0.14);
}

@media (max-width: 820px) {
  .greg-home-hero {
    min-height: auto;
  }

  .greg-home-hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 11, 18, 0.52) 0%, rgba(5, 11, 18, 0.92) 70%),
      rgba(5, 11, 18, 0.35);
  }

  .greg-home-hero__content {
    padding-top: 11rem;
  }

  .greg-home-layout,
  .greg-home-card-grid,
  .greg-home-doorways {
    grid-template-columns: 1fr;
  }
}

.greg-ai-helper {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.greg-ai-launch {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.greg-ai-launch:hover,
.greg-ai-launch:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.greg-ai-greeting {
  position: relative;
  align-self: flex-end;
  margin-right: 1.4rem;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 63, 29, 0.16);
  background: #d9efff;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(8, 24, 15, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.greg-ai-greeting::after {
  content: '';
  position: absolute;
  right: 0.8rem;
  bottom: -0.34rem;
  width: 0.65rem;
  height: 0.65rem;
  background: #d9efff;
  border-right: 1px solid rgba(18, 63, 29, 0.16);
  border-bottom: 1px solid rgba(18, 63, 29, 0.16);
  transform: rotate(45deg);
}

.greg-ai-greeting.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

.greg-ai-launch--fallback {
  background: linear-gradient(180deg, #5ad4ff, #2da4cf);
  color: #042033;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.greg-ai-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.greg-ai-panel {
  width: min(270px, calc(100vw - 1.5rem));
  max-height: min(560px, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;
}

.greg-ai-panel[hidden] {
  display: none !important;
}

.greg-ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 0;
}

.greg-ai-panel-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
}

.greg-ai-close {
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

.greg-ai-close:hover,
.greg-ai-close:focus-visible {
  background: rgba(18, 63, 29, 0.12);
  color: #000000;
}

.greg-ai-messages {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  flex: 1;
}

.greg-ai-message {
  display: flex;
  animation: greg-ai-message-slide-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
  --greg-ai-message-enter-x: -0.95rem;
}

.greg-ai-message-bubble {
  margin: 0;
  padding: 0.52rem 0.7rem;
  border-radius: 14px;
  max-width: 92%;
  font-size: 0.84rem;
  line-height: 1.45;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcff 100%);
  color: #000000;
  border: 1px solid rgba(18, 63, 29, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(8, 24, 15, 0.12),
    0 0 0 1px rgba(114, 199, 235, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.greg-ai-message-bubble:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 26px rgba(8, 24, 15, 0.14),
    0 0 16px rgba(74, 175, 222, 0.18);
}

.greg-ai-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: #a7d8ef;
  color: #000000;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.45rem 0.62rem;
  text-decoration: none;
  border: 1px solid rgba(18, 63, 29, 0.18);
}

.greg-ai-nav-button:hover,
.greg-ai-nav-button:focus-visible {
  background: #8ecce9;
  color: #000000;
}

.greg-ai-nav-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.5rem;
}

.greg-ai-nav-button--choice {
  margin-top: 0;
  line-height: 1.2;
}

.greg-ai-message-assistant .greg-ai-message-bubble {
  margin-right: auto;
}

.greg-ai-message-user {
  justify-content: flex-end;
  --greg-ai-message-enter-x: 0.95rem;
}

.greg-ai-message-user .greg-ai-message-bubble {
  margin-left: auto;
}

.greg-ai-message.is-pending .greg-ai-message-bubble {
  opacity: 0.72;
  font-style: italic;
}

@keyframes greg-ai-message-slide-in {
  0% {
    opacity: 0;
    transform: translate3d(var(--greg-ai-message-enter-x), 0.45rem, 0) scale(0.985);
  }

  65% {
    opacity: 1;
    transform: translate3d(0, -0.06rem, 0) scale(1.002);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.greg-ai-form {
  padding: 0.75rem;
  border-top: 0;
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.greg-ai-input {
  flex: 1;
  min-height: 46px;
  max-height: 100px;
  resize: vertical;
  border: 1px solid rgba(18, 63, 29, 0.16);
  border-radius: 12px;
  padding: 0.5rem 0.62rem;
  background-color: #d9efff;
  background-image: linear-gradient(180deg, #e6f6ff 0%, #d7ecfb 100%);
  color: #000000;
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(25, 73, 98, 0.08),
    0 8px 16px rgba(13, 44, 60, 0.12),
    0 0 0 1px rgba(70, 171, 218, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  -webkit-text-fill-color: #000000;
}

.greg-ai-input:hover,
.greg-ai-input:focus,
.greg-ai-input:focus-visible,
.greg-ai-input:active {
  background-color: #d9efff;
  background-image: linear-gradient(180deg, #ebf9ff 0%, #dcf1ff 100%);
  color: #000000;
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(56, 148, 188, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 3px rgba(25, 73, 98, 0.08),
    0 12px 24px rgba(13, 44, 60, 0.14),
    0 0 18px rgba(81, 182, 228, 0.26);
  -webkit-text-fill-color: #000000;
}

.greg-ai-input:-webkit-autofill,
.greg-ai-input:-webkit-autofill:hover,
.greg-ai-input:-webkit-autofill:focus,
.greg-ai-input:-webkit-autofill:active {
  -webkit-box-shadow:
    0 0 0 1000px #d9efff inset,
    0 12px 24px rgba(13, 44, 60, 0.14),
    0 0 18px rgba(81, 182, 228, 0.26);
  -webkit-text-fill-color: #000000;
  caret-color: #000000;
}

.greg-ai-input::placeholder {
  color: #000000;
  opacity: 0.7;
}

.greg-ai-send {
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #bee8fb 0%, #9fd5ee 100%);
  color: #000000;
  font-weight: 700;
  padding: 0.56rem 0.8rem;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 2px rgba(22, 66, 89, 0.1),
    0 8px 16px rgba(11, 39, 53, 0.14),
    0 0 0 1px rgba(61, 159, 204, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.greg-ai-send:hover,
.greg-ai-send:focus-visible {
  background: linear-gradient(180deg, #c9efff 0%, #a7dff8 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 2px rgba(22, 66, 89, 0.1),
    0 12px 22px rgba(11, 39, 53, 0.16),
    0 0 18px rgba(81, 182, 228, 0.28);
}

.greg-ai-send:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 3px rgba(22, 66, 89, 0.14),
    0 5px 12px rgba(11, 39, 53, 0.12),
    0 0 12px rgba(81, 182, 228, 0.2);
}

.greg-ai-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Greg's home turns the standard corner helper into part of the room. */
.page-greg-home .greg-ai-helper--home {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1200 !important;
  display: block !important;
  pointer-events: none;
}

.page-greg-home .greg-ai-helper--home .greg-ai-launch {
  display: none !important;
}

.page-greg-home .greg-home-face-chat {
  position: absolute;
  z-index: 4;
  top: 33%;
  left: 27%;
  width: 11.5%;
  aspect-ratio: 0.82;
  appearance: none;
  border: 2px solid transparent;
  border-radius: 48% 48% 44% 44%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-greg-home .greg-home-face-chat:hover,
.page-greg-home .greg-home-face-chat:focus-visible {
  border-color: rgba(168, 231, 255, 0.42);
  background: radial-gradient(circle, rgba(127, 216, 255, 0.12), transparent 68%);
  box-shadow: 0 0 30px rgba(91, 196, 241, 0.25);
  outline: none;
}

.page-greg-home .greg-ai-helper--home.is-open .greg-home-face-chat {
  pointer-events: none;
}

.page-greg-home .greg-ai-helper--home .greg-ai-greeting {
  position: absolute;
  top: 24%;
  left: 30.5%;
  width: max-content;
  max-width: min(320px, 34vw);
  margin: 0;
  padding: 0.85rem 1.15rem;
  border: 2px solid rgba(18, 63, 29, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fdff 0%, #d9efff 100%);
  color: #06131b;
  font: inherit;
  font-size: clamp(0.92rem, 1.4vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 28px rgba(105, 198, 239, 0.2);
  transform: translate(-50%, -50%);
  animation: greg-home-welcome 2.8s ease-in-out infinite;
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-greg-home .greg-ai-helper--home .greg-ai-greeting::after {
  right: 18%;
  bottom: -0.55rem;
  width: 0.95rem;
  height: 0.95rem;
  background: #d9efff;
}

.page-greg-home .greg-ai-helper--home.is-open .greg-ai-greeting {
  opacity: 0;
  transform: translate(-50%, -45%);
  pointer-events: none;
  animation: none;
}

.page-greg-home .greg-ai-helper--home .greg-ai-panel {
  position: absolute;
  top: 3.5%;
  left: 2.5%;
  width: min(430px, 27vw);
  height: min(650px, 72vh);
  max-height: 72vh;
  pointer-events: auto;
  overflow: visible;
}

.page-greg-home .greg-ai-helper--home .greg-ai-panel-header {
  position: absolute;
  z-index: 2;
  top: 0.2rem;
  right: 0.2rem;
  padding: 0;
}

.page-greg-home .greg-ai-helper--home .greg-ai-close {
  background: rgba(217, 239, 255, 0.9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.page-greg-home .greg-ai-helper--home .greg-ai-messages {
  padding: 2.35rem 0.8rem 0.7rem;
  scrollbar-width: thin;
}

.page-greg-home .greg-ai-helper--home .greg-ai-message-bubble {
  position: relative;
  max-width: 88%;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(91, 181, 225, 0.14);
}

.page-greg-home .greg-ai-helper--home .greg-ai-message-assistant .greg-ai-message-bubble::after,
.page-greg-home .greg-ai-helper--home .greg-ai-message-user .greg-ai-message-bubble::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: inherit;
  transform: rotate(45deg);
}

.page-greg-home .greg-ai-helper--home .greg-ai-message-assistant .greg-ai-message-bubble::after {
  left: 1rem;
}

.page-greg-home .greg-ai-helper--home .greg-ai-message-user .greg-ai-message-bubble::after {
  right: 1rem;
}

.page-greg-home .greg-ai-helper--home .greg-ai-form {
  padding: 0.55rem 0.8rem 0.8rem;
}

@keyframes greg-home-welcome {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .page-greg-home .greg-ai-helper--home .greg-ai-panel {
    width: min(380px, 42vw);
  }
}

@media (max-width: 640px) {
  .greg-ai-helper {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .greg-ai-launch,
  .greg-ai-avatar {
    width: 54px;
    height: 54px;
  }

  .greg-ai-panel {
    width: min(260px, calc(100vw - 1rem));
    max-height: min(520px, calc(100vh - 6rem));
  }

  .page-greg-home .greg-ai-helper--home .greg-ai-greeting {
    top: 24%;
    left: 50%;
    max-width: calc(100vw - 2rem);
    font-size: 1rem;
  }

  .page-greg-home .greg-ai-helper--home .greg-ai-panel {
    position: fixed;
    top: 0.6rem;
    left: 0.5rem;
    width: calc(100vw - 1rem);
    height: min(590px, calc(100svh - 1.2rem));
    max-height: calc(100svh - 1.2rem);
    border-radius: 22px;
    background: rgba(4, 15, 24, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.companion-app-return {
  position: fixed;
  left: 50%;
  bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 0.2rem);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(calc(100vw - 1.5rem), 22rem);
  padding: 0.42rem;
  border: 1px solid rgba(143, 212, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.companion-app-return a {
  min-height: 2.6rem;
  flex: 1 1 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.companion-app-return a:first-child {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.companion-app-return__greg {
  border: 1px solid rgba(143, 212, 255, 0.42);
  background: linear-gradient(135deg, rgba(12, 115, 160, 0.94), rgba(16, 29, 46, 0.96));
}

.has-companion-app-return .greg-ai-helper {
  bottom: 5rem;
}

@media (max-width: 640px) {
  .has-companion-app-return .greg-ai-helper {
    bottom: 4.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-greg-home .greg-home-saucer-popout:not(.is-saucer-departing),
  .page-greg-home .greg-home-saucer-popout::before,
  .page-greg-home .greg-ai-helper--home .greg-ai-greeting,
  .greg-ai-message {
    animation: none;
    will-change: auto;
  }

  .page-greg-home .greg-home-saucer-popout.is-saucer-departing {
    animation: greg-home-saucer-departure-reduced 0.45s ease-out forwards;
  }

  .page-greg-home .greg-home-visual.is-saucer-departing::before {
    display: none;
  }

  .page-greg-home .greg-home-visual.is-saucer-departing::after {
    animation: greg-home-saucer-screen-wash-reduced 0.45s ease-out forwards;
  }
}

@keyframes greg-home-saucer-departure-reduced {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.94); }
}

@keyframes greg-home-saucer-screen-wash-reduced {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.18; }
}
