/* src/home/styles.css */
:root {
  color: #fff4d8;
  background: #17191c;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    sans-serif;
  font-synthesis: none;
}
@property --px-bg { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --py-bg { syntax: "<length>"; inherits: false; initial-value: 0px; }
* {
  box-sizing: border-box;
}
button,
input {
  font: inherit;
  letter-spacing: 0;
}
button {
  color: inherit;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #17191c;
  -webkit-font-smoothing: antialiased;
}
.whys-icp-footer {
  position: fixed;
  z-index: 130;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 8px 16px 10px;
  text-align: center;
  color: rgba(255, 244, 216, .68);
  font-size: 12px;
  letter-spacing: 0;
  background: rgba(1, 6, 13, .84);
  backdrop-filter: blur(8px);
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffd577;
  outline-offset: 3px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8px 10px;
}
.cosmic-stage {
  container-type: inline-size;
  position: relative;
  width: min(calc(100vw - 20px), calc((100vh - 16px) * 1.83908));
  aspect-ratio: 1280 / 696;
  overflow: hidden;
  background: #020814;
  isolation: isolate;
}
.stage-bg,
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.stage-bg {
  z-index: -10;
  transform: translate3d(var(--px-bg, 0px), var(--py-bg, 0px), 0) scale(1.04);
  transform-origin: 50% 50%;
  animation: space-drift 30s ease-in-out infinite alternate;
  transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
@keyframes space-drift {
  from {
    transform: translate3d(calc(var(--px-bg, 0px) - .35%), calc(var(--py-bg, 0px) - .2%), 0) scale(1.04);
  }
  to {
    transform: translate3d(calc(var(--px-bg, 0px) + .35%), calc(var(--py-bg, 0px) + .25%), 0) scale(1.08);
  }
}
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.hero-layer--planet {
  z-index: 1;
}
.planet-orbiting {
  position: absolute;
  left: 62.7%;
  top: 12.9%;
  width: 12.5%;
  z-index: 2;
  translate: var(--px-planet, 0px) var(--py-planet, 0px);
  transform-origin: 50% 50%;
  animation: planet-spin 18s linear infinite;
  transition: translate 1s cubic-bezier(.22, .61, .36, 1);
}
@keyframes planet-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ring-system {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.orbit-ring {
  position: absolute;
  left: 28.9%;
  top: 30.2%;
  width: 43.4%;
  z-index: 2;
  transform: translate3d(var(--px-ring, 0px), var(--py-ring, 0px), 0);
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}
.hero-layer--mango {
  z-index: 3;
  animation: mango-float 6s ease-in-out infinite;
  transform-origin: 50% 56%;
  translate: var(--px-mango, 0px) var(--py-mango, 0px);
  transition: translate 1s cubic-bezier(.22, .61, .36, 1);
}
@keyframes mango-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1.1%) rotate(-0.35deg);
  }
}
.orbit-light {
  position: absolute;
  z-index: 4;
  left: 28.9%;
  top: 30.2%;
  width: 2.15cqw;
  height: 2.15cqw;
  object-fit: contain;
  offset-path: ellipse(43% 33% at 50% 50%);
  offset-distance: 0%;
  rotate: 0deg;
  animation: orbit-travel 11s linear infinite, orbit-light-spin 3.5s linear infinite;
  pointer-events: none;
}
.orbit-light--far {
  width: 1.35cqw;
  height: 1.35cqw;
  opacity: .72;
  animation-duration: 8s, 2.8s;
  animation-delay: -4s, -1.4s;
}
@keyframes orbit-travel {
  to {
    offset-distance: 100%;
  }
}
@keyframes orbit-light-spin {
  to {
    rotate: 360deg;
  }
}
.star-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.star-pulse {
  position: absolute;
  width: .35cqw;
  height: .35cqw;
  border-radius: 50%;
  background: #fff8d9;
  box-shadow: 0 0 .55cqw .1cqw rgba(255, 218, 130, .55);
  opacity: .2;
  animation: star-twinkle 4.8s ease-in-out infinite;
}
.star-pulse--1 {
  left: 25%;
  top: 16%;
  animation-delay: -.5s;
}
.star-pulse--2 {
  left: 68%;
  top: 13%;
  animation-delay: -2.1s;
}
.star-pulse--3 {
  left: 77%;
  top: 34%;
  animation-delay: -3.3s;
}
.star-pulse--4 {
  left: 34%;
  top: 47%;
  animation-delay: -1.4s;
}
.star-pulse--5 {
  left: 56%;
  top: 23%;
  animation-delay: -4s;
}
.star-pulse--6 {
  left: 84%;
  top: 67%;
  animation-delay: -2.8s;
}
.star-pulse--7 {
  left: 14%;
  top: 72%;
  animation-delay: -1.8s;
}
.star-pulse--8 {
  left: 61%;
  top: 76%;
  animation-delay: -3.7s;
}
.star-pulse--9 {
  left: 91%;
  top: 19%;
  animation-delay: -.9s;
}
@keyframes star-twinkle {
  0%, 100% {
    opacity: .12;
    transform: scale(.7);
  }
  45% {
    opacity: .8;
    transform: scale(1.5);
  }
  65% {
    opacity: .35;
    transform: scale(1);
  }
}
.topbar {
  position: absolute;
  inset: 1% 1.55% auto;
  height: 7%;
  z-index: 20;
  display: flex;
  align-items: center;
}
.topbar__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.brand {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  margin-left: 1.2cqw;
  padding: 0;
  font-size: 1.24cqw;
  font-weight: 800;
  color: #ffe4a5;
  cursor: pointer;
  white-space: nowrap;
}
.brand img {
  width: 2.15cqw;
  height: auto;
}
.desktop-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  margin: 0 auto;
}
.desktop-nav button {
  position: relative;
  min-width: 6.8cqw;
  padding: 0 1cqw;
  border: 0;
  background: transparent;
  font-size: 1.16cqw;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease;
}
.desktop-nav button:hover {
  color: #ffd476;
}
.desktop-nav button.is-active {
  color: #ffe0a0;
  background: rgba(245, 190, 85, .08);
  text-shadow: 0 0 1cqw rgba(255, 196, 77, .8);
}
.desktop-nav button.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 9%;
  height: .11cqw;
  background: #ffd170;
  box-shadow: 0 0 .8cqw #ffd170;
}
.profile-button,
.mobile-menu-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.profile-button {
  margin-right: 1cqw;
}
.profile-button svg {
  width: 1.5cqw;
}
.notification-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4cqw;
  height: 2.4cqw;
  margin-right: .2cqw;
  border: 0;
  background: transparent;
  color: #f1d18a;
  cursor: pointer;
}
.notification-button svg {
  width: 1.35cqw;
}
.notification-button span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #b84638;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.mobile-menu-button,
.mobile-nav {
  display: none;
}
.panel {
  position: absolute;
  color: #f7e2b6;
  z-index: 4;
}
.panel__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.panel--identity {
  left: 5.4%;
  top: 21.4%;
  width: 16.72%;
  height: 33.41%;
  padding: .92cqw 1.02cqw 1.35cqw;
}
.identity-card__top {
  display: flex;
  align-items: center;
  gap: .7cqw;
  height: 5.2cqw;
}
.avatar-lockup {
  position: relative;
  flex: 0 0 4.8cqw;
  width: 4.8cqw;
  height: 4.8cqw;
  overflow: hidden;
  border: .12cqw solid rgba(210, 174, 105, .92);
  border-radius: 50%;
  background: #101114;
  box-shadow: 0 0 .45cqw rgba(228, 184, 90, .3);
}
.avatar-disc,
.avatar-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.avatar-disc {
  z-index: 0;
}
.avatar-layer {
  z-index: 1;
}
.identity-card h2 {
  margin: 0 0 .4cqw;
  color: #ffe1a2;
  font-size: 1.28cqw;
}
.pending-badge {
  width: 4.25cqw;
  height: auto;
}
.identity-card > p {
  margin: .45cqw 0 .1cqw;
  font-size: .84cqw;
  font-weight: 700;
}
.identity-card > strong {
  display: block;
  color: #ffe0ad;
  font-size: 3.8cqw;
  line-height: 1;
  font-family: Georgia, serif;
}
.identity-card > span {
  display: block;
  margin-top: .7cqw;
  font-size: .86cqw;
  font-weight: 700;
}
.progress-track {
  height: .62cqw;
  margin-top: .72cqw;
  border: .14cqw solid rgba(0, 0, 0, .62);
  background: rgba(0, 0, 0, .4);
}
.progress-track i {
  display: block;
  width: 48%;
  height: 100%;
  background: #dcb54f;
}
.reveal-surface {
  opacity: .92;
  filter: saturate(.95) brightness(.94);
  transition:
    opacity .35s ease,
    filter .35s ease,
    transform .35s ease;
}
.reveal-surface:hover,
.reveal-surface:focus-within,
.info-cluster:hover .reveal-surface {
  opacity: 1;
  filter: saturate(1) brightness(1);
}
.reveal-surface:hover {
  transform: translateY(-.2%);
}
.info-cluster {
  position: static;
}
.panel--growth {
  left: 5.4%;
  top: 57.2%;
  width: 16.72%;
  height: 33.41%;
  padding: .9cqw 1.05cqw;
}
.growth-card > h2 {
  margin: 0 0 .75cqw;
  font-size: .83cqw;
  color: #f0d79e;
}
.growth-card__content {
  display: flex;
  gap: .75cqw;
}
.growth-meter {
  width: 3.15cqw;
  height: 8.6cqw;
  object-fit: fill;
}
.growth-card__content h3 {
  margin: .55cqw 0 .6cqw;
  font-size: 1.18cqw;
  color: #f7f2e8;
}
.growth-card__content p {
  margin: .48cqw 0;
  font-size: .82cqw;
  color: #b9b5b1;
}
.growth-card__content b {
  color: #e6c67e;
}
.condition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45cqw .7cqw;
  margin-top: .35cqw;
}
.condition-grid span,
.condition-grid button {
  height: 2.05cqw;
  border: .08cqw solid rgba(211, 168, 77, .55);
  border-radius: .62cqw;
  background: rgba(4, 14, 26, .75);
}
.condition-grid button {
  font-size: .8cqw;
  cursor: pointer;
}
.condition-grid button:hover {
  background: rgba(215, 169, 70, .16);
}
.days-counter {
  position: absolute;
  left: 40.6%;
  top: 53.4%;
  width: 18.4%;
  height: 12.9%;
  z-index: 5;
  text-align: center;
}
.days-counter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.days-counter p {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 1.68cqw;
  font-weight: 900;
}
.days-counter__value {
  position: absolute;
  top: 34%;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: .65cqw;
  transform: translateX(-50%);
  white-space: nowrap;
}
.days-counter strong {
  font-size: 3.35cqw;
  line-height: 1;
}
.days-counter span {
  font-size: 1.24cqw;
  font-weight: 900;
}
.announcements {
  position: absolute;
  left: 74.8%;
  top: 22.1%;
  width: 18.08%;
  height: 43.03%;
  z-index: 6;
  padding: 1.5cqw 1.2cqw;
}
.announcement-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.announcements h2 {
  margin: 0 0 1.55cqw 2cqw;
  font-size: 1.42cqw;
  color: transparent;
}
.announcements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.announcements li {
  display: flex;
  gap: .45cqw;
  align-items: baseline;
  height: 4.75cqw;
  border-bottom: .06cqw solid rgba(184, 132, 43, .12);
  overflow: hidden;
}
.announcements time {
  color: #b79554;
  font-size: .68cqw;
}
.announcements li button {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d5c9af;
  text-align: left;
  font-size: .77cqw;
  cursor: pointer;
}
.announcements li button:hover {
  color: #ffd782;
}
.more-button {
  position: absolute;
  left: 29%;
  bottom: 3.8%;
  width: 43.4%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.more-button img {
  display: block;
  width: 100%;
}
.mission-console {
  position: absolute;
  left: 25.7%;
  top: 76.8%;
  width: 50.9%;
  height: 21.05%;
  z-index: 8;
}
.mission-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.mission-summary {
  position: absolute;
  left: 1.35%;
  top: 7%;
  width: 27%;
}
.mission-summary > span {
  font-size: .77cqw;
  color: #e7ca84;
  font-weight: 800;
}
.mission-summary h2 {
  margin: .3cqw 0 0;
  font-size: 2.8cqw;
  line-height: 1;
  color: #f4f0e8;
}
.mission-summary p {
  margin: .25cqw 0 .35cqw;
  font-size: .72cqw;
  line-height: 1.3;
  color: #bbb9b3;
}
.mission-summary button {
  width: 10.35cqw;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mission-summary button img {
  display: block;
  width: 100%;
}
.mission-steps {
  position: absolute;
  left: 28.5%;
  right: 3%;
  top: 11%;
  bottom: 11%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75cqw;
}
.mission-steps button {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  min-width: 0;
}
.mission-steps img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mission-steps span,
.mission-steps b,
.mission-steps small {
  position: relative;
  display: block;
  z-index: 1;
}
.mission-steps span {
  margin-top: .45cqw;
  font-size: 1.1cqw;
}
.mission-steps b {
  margin-top: 3.18cqw;
  font-size: .86cqw;
}
.mission-steps small {
  margin-top: .18cqw;
  font-size: .69cqw;
}
.mission-steps .is-current {
  color: #ffd25e;
}
.mission-steps .is-current::after {
  content: "";
  position: absolute;
  inset: 3% 4%;
  border: 1px solid rgba(255, 210, 94, .7);
  border-radius: .55cqw;
  box-shadow: 0 0 1.2cqw rgba(255, 194, 63, .62), inset 0 0 1.2cqw rgba(255, 194, 63, .16);
  animation: mission-breathe 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mission-breathe {
  0%, 100% {
    opacity: .35;
    transform: scale(.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}
.mission-steps button:not(.is-current):not(.is-done) {
  color: #7b766e;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 6, 13, .78);
  backdrop-filter: blur(12px);
}
.modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(226, 183, 94, .48);
  border-radius: 8px;
  padding: 24px;
  background: rgba(5, 15, 27, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .65), inset 0 1px rgba(255, 255, 255, .07);
}
.modal--wide {
  width: min(850px, 100%);
}
.modal__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 183, 94, .18);
}
.modal__head span {
  color: #d9b462;
  font-size: 12px;
  font-weight: 800;
}
.modal__head h2 {
  margin: 5px 0 0;
  font-size: 26px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 183, 94, .3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover {
  background: rgba(226, 183, 94, .12);
}
.verify-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  padding-top: 24px;
}
.verify-steps h3 {
  margin: 0 0 18px;
  font-size: 16px;
}
.verify-steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.verify-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 40px;
}
.verify-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d9ac50;
  border-radius: 50%;
  color: #ffd680;
  font-weight: 800;
}
.verify-steps li b,
.verify-steps li span {
  display: block;
}
.verify-steps li span {
  margin-top: 5px;
  color: #9da7b0;
  font-size: 13px;
  line-height: 1.6;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: #d8c493;
  border: 1px solid rgba(226, 183, 94, .2);
  background: rgba(226, 183, 94, .06);
  font-size: 13px;
}
.upload-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.upload-area input {
  display: none;
}
.dropzone {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px dashed rgba(229, 190, 105, .5);
  border-radius: 6px;
  background: rgba(8, 22, 38, .66);
  color: #d8c18e;
  cursor: pointer;
}
.dropzone:hover {
  border-color: #ffd477;
  background: rgba(226, 183, 94, .08);
}
.dropzone img,
.dropzone video {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #020a14;
}
.dropzone strong {
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropzone span {
  color: #82909a;
  font-size: 12px;
}
.upload-error {
  margin: -4px 0 0;
  color: #ffb3a9;
  font-size: 12px;
}
.gold-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d8aa4e;
  border-radius: 4px;
  background:
    linear-gradient(
      100deg,
      #f7d78f,
      #b47a23);
  color: #191107;
  font-weight: 900;
  cursor: pointer;
}
.gold-button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .45;
}
.success-state,
.info-state {
  padding: 34px 8px 8px;
  text-align: center;
}
.success-state > svg,
.info-state > svg {
  width: 54px;
  height: 54px;
  color: #e8b850;
}
.success-state h3 {
  margin: 16px 0 8px;
  font-size: 21px;
}
.success-state p,
.info-state p {
  color: #a9b0b5;
  line-height: 1.75;
}
.success-state .gold-button,
.info-state .gold-button {
  width: 180px;
  margin-top: 12px;
}
.ocr-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px auto 4px;
  max-width: 510px;
  text-align: left;
}
.ocr-result-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(226, 183, 94, .18);
  background: rgba(226, 183, 94, .05);
}
.ocr-result-grid span {
  color: #8d9aa3;
  font-size: 11px;
}
.ocr-result-grid b {
  color: #f7dfad;
  font-size: 13px;
}
.ocr-result-grid__pass {
  color: #bde4ba !important;
}
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 14px;
}
.analysis-state {
  padding: 26px 4px 8px;
}
.analysis-state__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  height: 230px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 94, .4);
  background: #020a14;
}
.analysis-state__preview img,
.analysis-state__preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scan-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 10%;
  height: 2px;
  background: #ffd36b;
  box-shadow: 0 0 16px 4px rgba(255, 211, 107, .7);
  animation: scan-line 1.2s ease-in-out infinite alternate;
}
@keyframes scan-line {
  from {
    transform: translateY(0);
    opacity: .35;
  }
  to {
    transform: translateY(185px);
    opacity: 1;
  }
}
.analysis-state__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px auto 12px;
  width: min(430px, 100%);
}
.analysis-state__copy b {
  color: #ffe0a0;
  font-size: 16px;
}
.analysis-state__copy span {
  color: #929da5;
  font-size: 13px;
}
.analysis-progress {
  width: min(430px, 100%);
  height: 7px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
}
.analysis-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #b47a23,
      #ffe09a);
  transition: width .2s ease;
}
.analysis-meta {
  display: flex;
  justify-content: space-between;
  width: min(430px, 100%);
  margin: 8px auto 0;
  color: #7c8992;
  font-size: 11px;
}
.login-form {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}
.login-form label {
  display: grid;
  gap: 8px;
  color: #d7c495;
  font-size: 13px;
}
.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(226, 183, 94, .28);
  border-radius: 4px;
  padding: 0 13px;
  background: #07111e;
  color: #fff;
}
.text-button {
  border: 0;
  background: transparent;
  color: #d6b66f;
  cursor: pointer;
}
.identity-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.35cqw;
  padding: .18cqw .55cqw;
  border: .06cqw solid rgba(216, 170, 78, .48);
  border-radius: 999px;
  color: #d8b56e;
  font-size: .68cqw;
  font-weight: 800;
}
.identity-status--pending {
  color: #ffe09a;
  border-color: rgba(255, 211, 107, .7);
}
.identity-status--approved {
  color: #bde4ba;
  border-color: rgba(150, 220, 148, .64);
}
.review-status,
.group-access,
.locked-group-state,
.profile-center {
  padding: 30px 8px 10px;
  text-align: center;
}
.review-status__icon,
.locked-group-state > svg,
.group-access > svg {
  width: 54px;
  height: 54px;
  color: #e8b850;
}
.review-status__icon--pending {
  color: #ffd36b;
  animation: status-pulse 2s ease-in-out infinite;
}
.review-status__icon--approved {
  color: #bde4ba;
}
@keyframes status-pulse {
  50% {
    transform: rotate(-8deg) scale(1.06);
    filter: drop-shadow(0 0 12px rgba(255, 211, 107, .45));
  }
}
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid rgba(216, 170, 78, .48);
  border-radius: 999px;
  color: #d8b56e;
  font-size: 12px;
  font-weight: 800;
}
.status-chip--pending {
  color: #ffe09a;
  border-color: rgba(255, 211, 107, .7);
  background: rgba(255, 211, 107, .08);
}
.status-chip--approved {
  color: #bde4ba;
  border-color: rgba(150, 220, 148, .64);
  background: rgba(150, 220, 148, .08);
}
.review-status h3,
.group-access h3,
.locked-group-state h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}
.review-status > p,
.group-access > p,
.locked-group-state > p {
  max-width: 460px;
  margin: 0 auto 18px;
  color: #a9b0b5;
  line-height: 1.75;
}
.review-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 20px auto;
  text-align: left;
}
.review-facts > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(226, 183, 94, .18);
  background: rgba(226, 183, 94, .05);
}
.review-facts dt {
  color: #8d9aa3;
  font-size: 11px;
}
.review-facts dd {
  margin: 0;
  color: #f7dfad;
  font-size: 13px;
}
.review-status .gold-button,
.locked-group-state .gold-button {
  margin-top: 4px;
  padding: 0 18px;
}
.locked-group-state > svg {
  color: #c8a96a;
}
.group-qr-frame {
  display: grid;
  place-items: center;
  width: min(250px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(226, 183, 94, .44);
  background: #fffaf0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .32);
}
.group-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.qr-loading {
  color: #b47a23;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.group-access .status-chip {
  margin-top: 2px;
}
.group-backup-code {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(228, 190, 106, .28);
  background: rgba(2, 10, 18, .72);
  color: #f4d99a;
  font: 600 14px/1.4 Consolas, monospace;
  text-align: center;
  user-select: all;
}
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid rgba(226, 183, 94, .42);
  border-radius: 4px;
  background: rgba(226, 183, 94, .08);
  color: #efcf8b;
  cursor: pointer;
}
.secondary-button:hover {
  background: rgba(226, 183, 94, .16);
}
.group-access .secondary-button {
  margin-top: 4px;
}
.consent-update {
  display: grid;
  gap: 14px;
  padding-top: 22px;
}
.consent-update > svg {
  width: 44px;
  height: 44px;
  color: #e8b850;
}
.consent-update > p {
  margin: 0;
  color: #a9b0b5;
  line-height: 1.7;
}
.consent-update article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(226, 183, 94, .2);
  background: rgba(226, 183, 94, .05);
}
.consent-update article b {
  color: #f2d79a;
}
.consent-update article span {
  color: #99a4ac;
  font-size: 13px;
  line-height: 1.6;
}
.consent-update article a {
  justify-self: start;
  color: #d8b56e;
  font-size: 12px;
}
.consent-update .gold-button {
  width: 100%;
}
.group-redeem {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.group-redeem .gold-button {
  min-width: 190px;
  color: #191107;
  text-decoration: none;
}
.group-redeem small {
  color: #8d99a2;
}
.faq-list {
  display: grid;
  gap: 0;
  padding-top: 12px;
}
.faq-list article {
  padding: 18px 2px;
  border-bottom: 1px solid rgba(226, 183, 94, .15);
}
.faq-list h3 {
  margin: 0 0 8px;
  color: #eed39a;
  font-size: 16px;
}
.faq-list p {
  margin: 0;
  color: #a8b1b8;
  line-height: 1.8;
  white-space: pre-wrap;
}
.profile-center {
  padding-top: 18px;
  text-align: left;
}
.profile-center__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 183, 94, .18);
}
.profile-center__identity h3 {
  margin: 0 0 4px;
  color: #f7dfad;
  font-size: 20px;
}
.profile-center__identity p {
  margin: 0;
  color: #9da7b0;
  font-size: 13px;
}
.profile-center__avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(226, 183, 94, .5);
  border-radius: 50%;
  background: rgba(226, 183, 94, .1);
  color: #e8b850;
}
.profile-center__avatar svg {
  width: 25px;
}
.profile-center__identity .status-chip {
  margin: 0 0 0 auto;
}
.profile-center .review-facts {
  margin: 18px 0;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.profile-actions .gold-button {
  flex: 1;
  min-width: 150px;
}
.profile-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 4px;
}
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #01060d;
}
.auth-backdrop--entry {
  background: #01060d;
}
.auth-panel {
  container-type: size;
  position: relative;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #030c17;
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
}
.auth-panel--login {
  background-image: url(/assets/\767b\5f55\5e95\5c42-\6b22\8fce\8bed\5de6\4e0b.png);
}
.auth-panel--register {
  background-image: url(/assets/\6ce8\518c\80cc\666f.png);
}
.auth-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(230, 190, 110, .34);
  border-radius: 50%;
  background: rgba(2, 8, 16, .5);
  color: #f8d996;
  cursor: pointer;
}
.auth-close:hover {
  background: rgba(226, 183, 94, .15);
}
.auth-panel__form {
  position: absolute;
  top: 42%;
  right: 16%;
  width: clamp(260px, 20vw, 420px);
  max-width: none;
  color: #f6e0ae;
}
.auth-panel--register .auth-panel__form {
  top: 29%;
}
.auth-copy {
  margin-bottom: 0;
}
.auth-eyebrow {
  display: block;
  color: #eac887;
  font-size: clamp(10px, .8vw, 15px);
  font-weight: 800;
  letter-spacing: .08em;
}
.auth-copy h2 {
  margin: 10px 0 0;
  color: #f8dca4;
  font-size: clamp(22px, 2.3vw, 38px);
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(255, 205, 119, .16);
}
.auth-panel--login .auth-copy h2 {
  color: #98a0a8;
  font-size: clamp(16px, 1.3vw, 24px);
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(16px, 1.8cqh, 24px);
  border-bottom: 1px solid rgba(220, 179, 99, .2);
}
.auth-tabs button {
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #7d8790;
  cursor: pointer;
  font-size: clamp(13px, 1.05cqw, 18px);
}
.auth-tabs button.is-active {
  border-bottom-color: #e5b95f;
  color: #f0d296;
}
.auth-form {
  display: grid;
  min-width: 0;
  gap: clamp(10px, 1.45cqh, 18px);
}
.auth-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: clamp(48px, 5.8cqh, 70px);
  overflow: hidden;
  border: 1px solid rgba(182, 191, 199, .24);
  border-radius: 999px;
  background: rgba(18, 27, 37, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.auth-field:focus-within {
  border-color: rgba(230, 185, 91, .75);
  box-shadow: 0 0 0 3px rgba(230, 185, 91, .08), inset 0 1px rgba(255, 255, 255, .04);
}
.auth-field__icon {
  flex: 0 0 auto;
  width: clamp(20px, 1.7cqw, 28px);
  height: clamp(20px, 1.7cqw, 28px);
  margin-left: clamp(16px, 1.35cqw, 22px);
  color: #c6cbd0;
  opacity: .86;
  stroke-width: 1.8;
}
.auth-field input {
  min-width: 0;
  flex: 1;
  height: clamp(46px, 5.5cqh, 66px);
  border: 0;
  outline: 0;
  padding: 0 clamp(12px, 1.2cqw, 20px);
  background: transparent;
  color: #f6ead2;
  font-size: clamp(14px, 1.2cqw, 20px);
}
.auth-field input::placeholder {
  color: #7f8890;
}
.field-eye {
  display: grid;
  place-items: center;
  width: clamp(42px, 3.5cqw, 58px);
  height: clamp(42px, 5cqh, 58px);
  margin-right: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.field-eye svg {
  width: clamp(20px, 1.7cqw, 28px);
  height: clamp(20px, 1.7cqw, 28px);
  color: #aeb6bc;
  opacity: .82;
  stroke-width: 1.7;
}
.auth-code-row {
  display: grid;
  min-width: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: clamp(8px, .8cqw, 13px);
}
.code-button {
  min-width: 0;
  border: 1px solid rgba(229, 187, 93, .48);
  border-radius: 999px;
  background: rgba(71, 51, 28, .5);
  color: #f0ce8d;
  cursor: pointer;
  font-size: clamp(11px, .9cqw, 16px);
  font-weight: 800;
}
.code-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.auth-submit {
  width: 100%;
  min-height: clamp(52px, 6.2cqh, 74px);
  margin-top: 8px;
  border: 1px solid rgba(255, 226, 157, .8);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #f8d99d,
      #c88738);
  color: #1b130a;
  cursor: pointer;
  font-size: clamp(17px, 1.35cqw, 23px);
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(192, 127, 40, .18);
}
.auth-submit:hover {
  filter: brightness(1.07);
}
.auth-switch {
  margin: clamp(14px, 1.7cqh, 22px) 0 0;
  color: #9b9ea0;
  text-align: center;
  font-size: clamp(13px, 1.1cqw, 18px);
}
.auth-switch button {
  border: 0;
  padding: 0 0 0 5px;
  background: transparent;
  color: #e7c37d;
  cursor: pointer;
  font-weight: 800;
}
.auth-legal {
  margin: clamp(12px, 1.4cqh, 18px) 0 0;
  color: #737c83;
  text-align: center;
  font-size: clamp(10px, .75cqw, 14px);
  line-height: 1.7;
}
.auth-legal a,
.auth-consent a {
  color: #e7c37d;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #9ca5ac;
  font-size: 12px;
  line-height: 1.55;
}
.auth-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #d69c45;
}
.auth-forgot {
  justify-self: end;
  margin-top: -4px;
  border: 0;
  background: transparent;
  color: #d3b36d;
  cursor: pointer;
  font-size: 12px;
}
.auth-error {
  margin: -2px 6px 0;
  color: #ffb7a8;
  font-size: 12px;
}
.auth-notice {
  margin: -2px 6px 0;
  color: #bde4ba;
  font-size: 12px;
}
.auth-submit:disabled,
.gold-button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.toast-error {
  position: fixed;
  z-index: 260;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 133, 112, .48);
  background: #26131a;
  color: #ffd0c8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}
.toast-error button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.toast-error svg {
  width: 17px;
}
.auth-success {
  display: grid;
  justify-items: center;
  padding-top: 40px;
  text-align: center;
}
.auth-success > svg {
  width: 56px;
  height: 56px;
  color: #e8bd62;
}
.auth-success h2 {
  margin: 14px 0 8px;
  color: #f5d596;
  font-size: 30px;
}
.auth-success p {
  margin: 0 0 20px;
  color: #9da6ae;
  line-height: 1.7;
}
.legal-page {
  min-height: 100vh;
  padding: 48px 20px;
  background: #07111e;
  color: #edf0f2;
}
.legal-page article {
  width: min(820px, 100%);
  margin: 0 auto;
}
.legal-page article > a {
  color: #d9b462;
  text-decoration: none;
}
.legal-page article > span {
  display: block;
  margin-top: 48px;
  color: #8e7748;
  font-size: 11px;
  font-weight: 800;
}
.legal-page h1 {
  margin: 8px 0;
  color: #f2d89d;
  font-size: 38px;
}
.legal-page__meta {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(226, 183, 94, .2);
  color: #818d96;
}
.legal-page__content {
  padding: 26px 0;
  color: #cbd1d5;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.account-form {
  display: grid;
  gap: 14px;
  padding: 22px 6px 6px;
}
.account-form label {
  display: grid;
  gap: 7px;
  color: #aab3ba;
  font-size: 12px;
}
.account-form input,
.account-form textarea,
.account-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(182, 191, 199, .25);
  border-radius: 4px;
  padding: 9px 11px;
  background: #0a1726;
  color: #f1eadb;
  outline: 0;
  resize: vertical;
}
.consent-records {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 183, 94, .18);
}
.consent-records h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.consent-records p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 0;
  color: #8e99a2;
  font-size: 11px;
}
.consent-records p b {
  color: #d8bd7d;
}
.notification-list {
  display: grid;
  gap: 0;
  padding-top: 10px;
}
.notification-list article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(175, 187, 197, .12);
  opacity: .68;
}
.notification-list article.is-unread {
  opacity: 1;
  background: rgba(226, 183, 94, .045);
}
.notification-list article > svg {
  width: 20px;
  color: #d7b565;
}
.notification-list h3 {
  margin: 0 0 6px;
  color: #ead9b4;
  font-size: 15px;
}
.notification-list p {
  margin: 0 0 7px;
  color: #a6afb6;
  line-height: 1.6;
}
.notification-list time {
  color: #6f7c86;
  font-size: 10px;
}
.notification-list > .secondary-button {
  justify-self: end;
  margin-top: 14px;
}
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
}
.feedback-history {
  max-height: 530px;
  overflow: auto;
  padding: 22px 0 6px;
}
.feedback-history h3 {
  margin: 0 0 10px;
}
.feedback-history article {
  padding: 14px 0;
  border-bottom: 1px solid rgba(175, 187, 197, .12);
}
.feedback-history article > span {
  color: #d4b86f;
  font-size: 11px;
}
.feedback-history p {
  margin: 7px 0;
  color: #cbd1d5;
  line-height: 1.55;
}
.feedback-history time {
  color: #6f7c86;
  font-size: 10px;
}
.feedback-history b {
  display: block;
  margin-top: 9px;
  color: #bfe1c8;
  font-size: 12px;
}
.application-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
}
.application-history article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .02);
}
.application-history article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.application-history time,
.application-history small {
  color: #77848e;
  font-size: 10px;
}
.application-history h3 {
  overflow: hidden;
  margin: 14px 0 7px;
  color: #e6d8b9;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.application-history p {
  min-height: 38px;
  color: #96a1a9;
  line-height: 1.55;
}
.application-history a {
  color: #dfbd70;
  font-size: 12px;
}
.announcement-list {
  display: grid;
  padding-top: 12px;
}
.announcement-list > button {
  display: grid;
  grid-template-columns: 100px 1fr 24px;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  border: 0;
  border-bottom: 1px solid rgba(175, 187, 197, .12);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.announcement-list > button:hover {
  background: rgba(226, 183, 94, .05);
}
.announcement-list time {
  color: #b9954f;
  font-size: 11px;
}
.announcement-list h3 {
  margin: 0 0 7px;
  color: #e7d9b8;
}
.announcement-list p {
  overflow: hidden;
  margin: 0;
  color: #8e99a2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-list svg {
  color: #7a858e;
}
.announcement-detail {
  padding: 18px 4px;
}
.announcement-detail time {
  display: block;
  margin: 16px 0;
  color: #7a858e;
  font-size: 11px;
}
.announcement-detail p {
  color: #cbd1d5;
  line-height: 1.9;
  white-space: pre-wrap;
}
.empty-state {
  padding: 36px 12px;
  color: #77848e;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding: 0;
  }
  .cosmic-stage {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    overflow: visible;
    padding: 80px 16px 32px;
    background-image: linear-gradient(rgba(2, 8, 20, .1), rgba(2, 8, 20, .75)), url(/assets/\80cc\666f.png);
    background-size: auto 100vh;
    background-position: 55% top;
    background-attachment: fixed;
  }
  .stage-bg {
    display: none;
  }
  .topbar {
    position: fixed;
    inset: 0;
    height: 64px;
    padding: 0 14px;
    background: rgba(3, 12, 22, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(222, 181, 92, .2);
  }
  .topbar__plate {
    display: none;
  }
  .brand {
    margin: 0;
    gap: 8px;
    font-size: 16px;
  }
  .brand img {
    width: 28px;
  }
  .desktop-nav,
  .profile-button {
    display: none;
  }
  .notification-button {
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: 2px;
  }
  .notification-button svg {
    width: 20px;
  }
  .mobile-menu-button {
    display: grid;
    margin-left: 0;
    width: 40px;
    height: 40px;
  }
  .mobile-menu-button svg {
    width: 22px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 19;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    padding: 10px 16px 18px;
    background: rgba(3, 12, 22, .97);
    border-bottom: 1px solid rgba(222, 181, 92, .25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  }
  .mobile-nav button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
    text-align: left;
  }
  .mobile-nav svg {
    width: 17px;
  }
  .stage-bg {
    animation: none;
    transform: none;
  }
  .star-field {
    display: none;
  }
  .hero-orbit {
    order: 1;
    position: relative;
    inset: auto;
    width: calc(100% + 32px);
    height: min(76vw, 360px);
    margin: -16px -16px 0;
    overflow: hidden;
    perspective: 900px;
  }
  .hero-layer {
    width: 190%;
    height: auto;
    max-width: none;
    left: -47%;
    top: -7%;
  }
  .planet-orbiting {
    left: 61%;
    top: 7%;
    width: 38%;
    transform: none;
    transition: none;
  }
  .orbit-ring {
    left: -2%;
    top: 39%;
    width: 105%;
    transform: none;
    transition: none;
  }
  .info-cluster {
    display: contents;
  }
  .panel,
  .announcements,
  .mission-console,
  .days-counter {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }
  .days-counter {
    order: 2;
    height: 92px;
    margin: -24px 0 18px;
  }
  .days-counter p {
    top: 7px;
    font-size: 19px;
  }
  .days-counter__value {
    top: 33px;
    gap: 7px;
  }
  .days-counter strong {
    font-size: 39px;
  }
  .days-counter span {
    font-size: 15px;
  }
  .identity-card,
  .growth-card,
  .announcements,
  .mission-console {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid rgba(222, 181, 92, .42);
    border-radius: 8px;
    background: rgba(3, 13, 24, .88);
    box-shadow: inset 0 0 40px rgba(18, 34, 51, .65);
  }
  .reveal-surface,
  .reveal-surface:hover,
  .reveal-surface:focus-within {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .panel--identity {
    order: 3;
  }
  .panel--growth {
    order: 4;
  }
  .announcements {
    order: 5;
  }
  .mission-console {
    order: 6;
  }
  .panel__asset,
  .announcement-plate,
  .mission-plate {
    display: none;
  }
  .identity-card__top {
    height: auto;
    gap: 12px;
  }
  .avatar-lockup {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-width: 2px;
  }
  .identity-card h2 {
    font-size: 19px;
  }
  .pending-badge {
    width: 58px;
  }
  .identity-card > p {
    margin-top: 18px;
    font-size: 13px;
  }
  .identity-card > strong {
    font-size: 54px;
  }
  .identity-card > span {
    font-size: 13px;
  }
  .progress-track {
    height: 8px;
    margin-top: 10px;
    border-width: 2px;
  }
  .growth-card > h2 {
    font-size: 13px;
  }
  .growth-card__content {
    gap: 14px;
  }
  .growth-meter {
    width: 46px;
    height: 128px;
  }
  .growth-card__content h3 {
    font-size: 18px;
  }
  .growth-card__content p {
    font-size: 13px;
  }
  .condition-grid {
    gap: 8px 10px;
    margin-top: 12px;
  }
  .condition-grid span,
  .condition-grid button {
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
  }
  .announcements {
    min-height: 270px;
  }
  .announcements h2 {
    margin: 0 0 12px;
    color: #ffe0a0;
    font-size: 20px;
  }
  .announcements li {
    height: 52px;
    gap: 12px;
  }
  .announcements time {
    font-size: 11px;
  }
  .announcements li button {
    font-size: 13px;
  }
  .more-button {
    position: static;
    width: 108px;
    margin: 18px auto 0;
    display: block;
  }
  .mission-console {
    min-height: 480px;
    padding: 20px;
  }
  .mission-summary {
    position: static;
    width: 100%;
  }
  .mission-summary > span {
    font-size: 12px;
  }
  .mission-summary h2 {
    font-size: 40px;
  }
  .mission-summary p {
    font-size: 12px;
  }
  .mission-summary button {
    width: 136px;
  }
  .mission-steps {
    position: static;
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 8px;
    margin-top: 22px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .mission-steps button {
    height: 126px;
    min-width: 76px;
  }
  .mission-steps span {
    margin-top: 8px;
    font-size: 15px;
  }
  .mission-steps b {
    margin-top: 43px;
    font-size: 12px;
  }
  .mission-steps small {
    font-size: 10px;
  }
  .verify-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 20px;
  }
  .ocr-result-grid {
    grid-template-columns: 1fr;
  }
  .auth-backdrop {
    align-items: start;
    padding: 10px;
  }
  .auth-backdrop {
    padding: 0;
  }
  .auth-panel {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    aspect-ratio: auto;
    background-position: 28% center;
  }
  .auth-panel--login,
  .auth-panel--register {
    background-size: auto 100%;
  }
  .auth-panel__form,
  .auth-panel--register .auth-panel__form {
    top: auto;
    right: 7%;
    bottom: 6%;
    width: 86%;
    max-width: none;
  }
  .auth-panel__form::before {
    content: "";
    position: absolute;
    inset: -20px -12px -16px;
    z-index: -1;
    border: 1px solid rgba(230, 190, 109, .16);
    border-radius: 18px;
    background: rgba(3, 12, 22, .7);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .38);
  }
  .auth-copy {
    margin-bottom: 18px;
  }
  .auth-copy h2 {
    font-size: 25px;
  }
  .auth-panel--login .auth-copy h2 {
    font-size: 18px;
  }
  .auth-field {
    min-height: 48px;
  }
  .auth-field input {
    height: 46px;
  }
  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }
  .code-button {
    font-size: 11px;
  }
  .review-facts {
    grid-template-columns: 1fr;
  }
  .profile-center__identity {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-center__identity .status-chip {
    margin-left: 66px;
    margin-top: -4px;
  }
  .profile-actions {
    display: grid;
  }
  .profile-actions .gold-button,
  .profile-actions .secondary-button {
    width: 100%;
  }
  .profile-logout {
    margin-left: 0;
  }
  .feedback-layout,
  .application-history {
    grid-template-columns: 1fr;
  }
  .announcement-list > button {
    grid-template-columns: 72px 1fr 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.admin-shell,
.admin-login,
.admin-loading {
  min-height: 100vh;
  background: #07111e;
  color: #edf0f2;
}
.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.admin-loading svg {
  animation: spin 1s linear infinite;
}
.admin-login {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 20%,
      #14243a,
      #07111e 58%);
}
.admin-login form {
  display: grid;
  gap: 16px;
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid rgba(226, 183, 94, .35);
  border-radius: 8px;
  background: rgba(5, 15, 27, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}
.admin-login form > svg {
  width: 42px;
  height: 42px;
  color: #e5b95f;
}
.admin-login span,
.admin-header span,
.admin-drawer > span {
  color: #d6af5a;
  font-size: 11px;
  font-weight: 800;
}
.admin-login h1 {
  margin: -8px 0 6px;
  font-size: 27px;
}
.admin-login label,
.admin-invite label,
.admin-drawer label {
  display: grid;
  gap: 7px;
  color: #aab3ba;
  font-size: 12px;
}
.admin-login input,
.admin-invite input,
.admin-drawer input,
.admin-drawer textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(182, 191, 199, .25);
  border-radius: 4px;
  padding: 9px 11px;
  background: #0a1726;
  color: #f1eadb;
  outline: 0;
  resize: vertical;
}
.admin-error,
.admin-banner {
  color: #ffc1b5;
}
.admin-shell {
  padding: 22px 28px 42px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto 22px;
}
.admin-header h1 {
  margin: 4px 0 0;
  font-size: 25px;
}
.admin-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
.admin-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 183, 94, .3);
  border-radius: 4px;
  background: transparent;
  color: #e9c778;
  cursor: pointer;
}
.admin-header button svg {
  width: 18px;
}
.admin-banner {
  max-width: 1500px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 133, 112, .4);
  background: rgba(255, 99, 72, .08);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1500px;
  margin: 0 auto 18px;
}
.admin-stats article {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(175, 187, 197, .16);
  background: #0b1827;
}
.admin-stats svg {
  color: #d7b565;
}
.admin-stats span {
  color: #8f9aa3;
  font-size: 12px;
}
.admin-stats strong {
  font-size: 27px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
}
.admin-panel {
  border: 1px solid rgba(175, 187, 197, .16);
  background: #0b1827;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(175, 187, 197, .13);
}
.admin-tabs {
  display: flex;
  gap: 4px;
}
.admin-tabs button {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #89959e;
  cursor: pointer;
}
.admin-tabs button.is-active {
  background: rgba(226, 183, 94, .12);
  color: #efd18d;
}
.admin-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 260px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(175, 187, 197, .2);
}
.admin-toolbar label svg {
  width: 16px;
  color: #83909a;
}
.admin-toolbar input {
  flex: 1;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0eadc;
}
.admin-toolbar .icon-button {
  border-radius: 4px;
}
.admin-table__head,
.admin-table__row {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr .65fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.admin-table__head {
  color: #77848e;
  font-size: 11px;
  border-bottom: 1px solid rgba(175, 187, 197, .12);
}
.admin-table__row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(175, 187, 197, .1);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.admin-table__row:hover {
  background: rgba(226, 183, 94, .055);
}
.admin-table__row b,
.admin-table__row small {
  display: block;
}
.admin-table__row b {
  color: #e8e3d9;
  font-size: 13px;
}
.admin-table__row small {
  margin-top: 4px;
  color: #7f8b95;
  font-size: 11px;
  line-height: 1.45;
}
.admin-table__row > span:nth-child(3) {
  color: #a2abb2;
  font-size: 12px;
}
.admin-table__row .status-chip {
  justify-self: start;
  margin: 0;
}
.admin-empty {
  padding: 50px 20px;
  color: #7e8992;
  text-align: center;
}
.admin-side {
  min-width: 0;
}
.admin-side {
  display: grid;
  align-content: start;
  gap: 16px;
}
.admin-invite {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.admin-invite h2 {
  margin: 0 0 2px;
  font-size: 18px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 52px;
  padding: 9px 14px;
  color: #87939d;
  font-size: 12px;
}
.admin-pagination span {
  margin-right: auto;
}
.admin-pagination button {
  min-height: 32px;
  border: 1px solid rgba(226, 183, 94, .28);
  padding: 0 11px;
  background: transparent;
  color: #d9bb78;
  cursor: pointer;
}
.admin-pagination button:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.admin-audit {
  padding: 18px;
}
.admin-audit h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.admin-audit article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(175, 187, 197, .1);
}
.admin-audit article b {
  color: #e8e3d9;
  font-size: 12px;
}
.admin-audit article span {
  color: #d3b66e;
  font-size: 11px;
}
.admin-audit article time {
  grid-column: 1 / -1;
  color: #75828c;
  font-size: 10px;
}
.admin-audit > p {
  color: #7e8992;
  font-size: 12px;
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 4, 10, .68);
}
.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 28px;
  border-left: 1px solid rgba(226, 183, 94, .32);
  background: #081421;
  box-shadow: -30px 0 80px rgba(0, 0, 0, .42);
}
.admin-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 4px;
}
.admin-drawer h2 {
  margin: 7px 0 20px;
}
.admin-drawer dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-drawer dl div {
  padding: 12px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .02);
}
.admin-drawer dt {
  color: #7f8b95;
  font-size: 11px;
}
.admin-drawer dd {
  margin: 5px 0 0;
  color: #efd7a1;
}
.admin-evidence {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 18px 0;
  border: 1px dashed rgba(226, 183, 94, .4);
  background: rgba(226, 183, 94, .04);
  color: #e7c474;
  text-decoration: none;
}
.admin-drawer > label {
  margin-top: 14px;
}
.admin-review-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 18px;
}
.admin-review-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.admin-reject {
  border: 1px solid rgba(255, 124, 102, .52);
  background: rgba(255, 99, 72, .08);
  color: #ffb9ad;
}
.admin-primary-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1500px;
  margin: 0 auto 18px;
  border-bottom: 1px solid rgba(175, 187, 197, .14);
}
.admin-primary-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #89959e;
  cursor: pointer;
}
.admin-primary-tabs button svg {
  width: 17px;
}
.admin-primary-tabs button.is-active {
  border-bottom-color: #d8aa4e;
  color: #efd18d;
  background: rgba(226, 183, 94, .06);
}
.admin-banner--success {
  border-color: rgba(97, 196, 135, .4);
  background: rgba(68, 166, 108, .09);
  color: #b9ebca;
}
.admin-workspace,
.admin-split-workspace {
  max-width: 1500px;
  margin: 0 auto;
}
.admin-split-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.admin-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.admin-editor > label,
.admin-drawer > label {
  display: grid;
  gap: 7px;
  color: #aab3ba;
  font-size: 12px;
}
.admin-editor input,
.admin-editor textarea,
.admin-editor select,
.admin-drawer input,
.admin-drawer textarea,
.admin-drawer select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(182, 191, 199, .25);
  border-radius: 4px;
  padding: 9px 11px;
  background: #0a1726;
  color: #f1eadb;
  outline: 0;
  resize: vertical;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(175, 187, 197, .13);
}
.admin-editor > .admin-section-head {
  min-height: auto;
  margin: -18px -18px 0;
}
.admin-section-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.admin-section-head svg {
  width: 22px;
  color: #d7b565;
}
.admin-section-head span {
  color: #8b7a55;
  font-size: 10px;
  font-weight: 800;
}
.admin-section-head h2 {
  margin: 3px 0 0;
  font-size: 18px;
}
.admin-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(226, 183, 94, .28);
  border-radius: 4px;
  background: transparent;
  color: #d9bb78;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}
.admin-tool-button svg {
  width: 15px;
}
.admin-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.admin-list-grid > button,
.admin-list-grid > article {
  position: relative;
  min-width: 0;
  min-height: 156px;
  border: 0;
  border-right: 1px solid rgba(175, 187, 197, .1);
  border-bottom: 1px solid rgba(175, 187, 197, .1);
  padding: 18px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.admin-list-grid > button {
  cursor: pointer;
}
.admin-list-grid > button:hover {
  background: rgba(226, 183, 94, .05);
}
.admin-list-grid h3 {
  margin: 16px 0 8px;
  color: #ede8dc;
  font-size: 15px;
}
.admin-list-grid p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: #98a3ab;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.admin-list-grid small {
  display: block;
  color: #6f7c86;
}
.admin-list-grid b {
  display: block;
  margin-top: 9px;
  color: #cfb778;
  font-size: 11px;
  font-weight: 600;
}
.admin-list-grid article > div {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.admin-list-grid article > div button {
  min-height: 30px;
  border: 1px solid rgba(226, 183, 94, .28);
  padding: 0 10px;
  background: transparent;
  color: #d9bb78;
  cursor: pointer;
}
.admin-list-grid .admin-empty {
  grid-column: 1 / -1;
}
.admin-list-grid--users > button {
  min-height: 136px;
}
.admin-expiry-warning {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #ffbd7b;
  font-size: 11px;
}
.admin-drawer select {
  appearance: auto;
}
.admin-drawer-submit {
  width: 100%;
  margin-top: 18px;
}
.admin-feedback-content {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .02);
}
.admin-feedback-content b {
  color: #e1bd69;
}
.admin-feedback-content p {
  color: #d7dce0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.admin-feedback-content small {
  color: #7f8b95;
}
.admin-health {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.admin-health div {
  padding: 12px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .02);
}
.admin-health dt {
  color: #7f8b95;
  font-size: 11px;
}
.admin-health dd {
  margin: 5px 0 0;
  color: #efd7a1;
}
.admin-audit--full {
  padding-top: 0;
}
.admin-alert-list {
  display: grid;
}
.admin-alert-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(175, 187, 197, .1);
}
.admin-alert-list article.is-unread {
  background: rgba(226, 183, 94, .055);
}
.admin-alert-list article > svg {
  width: 20px;
  color: #d7b565;
}
.admin-alert-list h3 {
  margin: 0 0 6px;
  color: #ede8dc;
  font-size: 14px;
}
.admin-alert-list p {
  margin: 0 0 7px;
  color: #98a3ab;
  line-height: 1.6;
}
.admin-alert-list time {
  color: #6f7c86;
  font-size: 11px;
}
.admin-content-editor {
  display: grid;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px;
}
.admin-content-editor > .admin-section-head {
  margin: -18px -18px 0;
}
.admin-content-editor label {
  display: grid;
  gap: 7px;
  color: #aab3ba;
  font-size: 12px;
}
.admin-content-editor input,
.admin-content-editor textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(182, 191, 199, .25);
  border-radius: 4px;
  padding: 9px 11px;
  background: #0a1726;
  color: #f1eadb;
  outline: 0;
  resize: vertical;
}
.admin-content-editor > .admin-form-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-content-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .018);
}
.admin-content-section > .admin-section-head {
  margin: -18px -18px 0;
}
.admin-check {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}
.admin-check input {
  width: 18px;
  min-height: 18px;
  accent-color: #d8aa4e;
}
.admin-faq-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) 38px;
  align-items: end;
  gap: 12px;
}
.admin-faq-row .icon-button {
  border-radius: 4px;
  color: #d9bb78;
}
.admin-grant-summary {
  margin: 0 0 16px;
  color: #98a3ab;
  line-height: 1.7;
}
.admin-grant-list {
  display: grid;
  gap: 10px;
}
.admin-grant-list > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid rgba(175, 187, 197, .14);
  background: rgba(255, 255, 255, .02);
}
.admin-grant-list article > div:first-child {
  display: grid;
  gap: 4px;
}
.admin-grant-list b {
  color: #ede8dc;
}
.admin-grant-list span,
.admin-grant-list small {
  color: #8f9aa3;
  font-size: 11px;
}
.admin-grant-list .status-chip {
  align-self: start;
  margin: 0;
}
.admin-grant-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-grant-actions button {
  min-height: 30px;
  border: 1px solid rgba(226, 183, 94, .28);
  padding: 0 10px;
  background: transparent;
  color: #d9bb78;
  cursor: pointer;
}
@media (max-width: 900px) {
  .admin-shell {
    padding: 16px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .admin-toolbar label {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .admin-table__head {
    display: none;
  }
  .admin-table__row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-table__row > span:nth-child(3) {
    display: none;
  }
  .admin-split-workspace {
    grid-template-columns: 1fr;
  }
  .admin-list-grid {
    grid-template-columns: 1fr;
  }
  .admin-primary-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .admin-primary-tabs button {
    flex: 0 0 auto;
  }
  .admin-tool-button {
    white-space: nowrap;
  }
  .admin-content-editor > .admin-form-row,
  .admin-faq-row {
    grid-template-columns: 1fr;
  }
  .admin-faq-row .icon-button {
    justify-self: end;
  }
}

/* src/home/reveal-overrides.css */
@media (hover: hover) and (pointer: fine) {
  .reveal-surface {
    opacity: 0.45;
    filter: saturate(0.62) brightness(0.68);
    transition:
      opacity 0.45s ease,
      filter 0.45s ease,
      transform 0.45s ease;
  }
  .reveal-surface:hover,
  .reveal-surface:focus-within,
  .info-cluster:hover .reveal-surface,
  .info-cluster:focus-within .reveal-surface {
    opacity: 1;
    filter: saturate(1) brightness(1);
  }
}
.cosmic-stage.is-dinner-open > .info-cluster,
.cosmic-stage.is-dinner-open > .hero-orbit,
.cosmic-stage.is-dinner-open > .days-counter,
.cosmic-stage.is-dinner-open > .announcements,
.cosmic-stage.is-dinner-open > .mission-console {
  display: none;
}
.dinner-inline-shell {
  position: absolute;
  z-index: 14;
  inset: 8.4% 0.55% 0.7%;
  overflow: hidden;
  border: 1px solid rgba(201, 158, 79, 0.2);
  background: #020811;
}
.dinner-inline-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020811;
}
.auth-backdrop,
.auth-backdrop--entry {
  width: 100%;
  min-width: 320px;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
}
.auth-panel,
.auth-panel--login,
.auth-panel--register {
  width: 100%;
  min-width: 320px;
  height: 100dvh;
  min-height: 100svh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.auth-panel__form {
  z-index: 4;
  right: clamp(7%, 16vw, 16%);
  width: clamp(300px, 20vw, 420px);
}
.auth-signature-motion {
  position: absolute;
  z-index: 2;
  top: 5.2%;
  right: 5.2%;
  width: min(39vw, 745px);
  aspect-ratio: 745 / 335;
  pointer-events: none;
}
.auth-signature-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 187, 91, 0.34));
  clip-path: inset(0 100% 0 0);
  animation: auth-signature-reveal 1.45s cubic-bezier(0.22, 0.72, 0.16, 1) 0.16s forwards, auth-signature-glow 5.4s ease-in-out 1.7s infinite;
}
.auth-signature-spark {
  position: absolute;
  display: block;
  width: clamp(22px, 2.2vw, 42px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(247, 190, 91, 0.8));
}
.auth-signature-spark--1 {
  top: 26%;
  left: 2%;
  animation: auth-spark-one 5.6s ease-in-out 1.1s infinite;
}
.auth-signature-spark--2 {
  top: 14%;
  left: 42%;
  animation: auth-spark-two 6.4s ease-in-out 2.2s infinite;
}
.auth-signature-spark--3 {
  top: 58%;
  left: 28%;
  animation: auth-spark-three 5.9s ease-in-out 3s infinite;
}
.auth-signature-spark--4 {
  top: 47%;
  left: 72%;
  animation: auth-spark-four 6.8s ease-in-out 0.5s infinite;
}
body.entry-ceremony-active {
  overflow: hidden;
}
.entry-ceremony {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow: hidden;
  background: #180a0b;
  color: #f4d49a;
  isolation: isolate;
  animation: entry-ceremony-exit 9s ease both;
}
.entry-ceremony__bloom {
  position: absolute;
  z-index: 0;
  inset: -3%;
  display: block;
  width: 106%;
  height: 106%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.12) contrast(1.06) brightness(0.82);
  transform-origin: center 48%;
  animation: entry-bloom-arrive 9s cubic-bezier(0.22, 0.7, 0.18, 1) both;
}
.entry-ceremony__seal {
  position: absolute;
  z-index: 3;
  top: clamp(24px, 6vh, 70px);
  left: 50%;
  width: 48px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 8px 24px rgba(255, 192, 86, 0.42));
  transform: translateX(-50%);
  animation: entry-seal-arrive 1.1s ease 0.7s forwards;
}
.entry-ceremony__lights {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.entry-ceremony__light {
  position: absolute;
  display: block;
  width: clamp(62px, 6vw, 126px);
  height: auto;
  opacity: 0;
  filter: saturate(1.2) drop-shadow(0 0 28px rgba(255, 195, 91, 0.92));
  mix-blend-mode: screen;
}
.entry-ceremony__light--1 {
  top: 23%;
  left: 9%;
  animation: entry-light-one 6.4s ease-in-out 0.8s both;
}
.entry-ceremony__light--2 {
  top: 67%;
  left: 18%;
  animation: entry-light-two 6.8s ease-in-out 0.2s both;
}
.entry-ceremony__light--3 {
  top: 31%;
  right: 12%;
  animation: entry-light-three 6.2s ease-in-out 1.2s both;
}
.entry-ceremony__light--4 {
  right: 25%;
  bottom: 16%;
  animation: entry-light-four 6.5s ease-in-out 0.5s both;
}
.entry-ceremony__light--5 {
  top: 11%;
  left: 32%;
  animation: entry-light-three 7.2s ease-in-out -1.3s both;
}
.entry-ceremony__light--6 {
  top: 48%;
  left: 5%;
  animation: entry-light-four 7.5s ease-in-out 1.4s both;
}
.entry-ceremony__light--7 {
  top: 18%;
  right: 5%;
  animation: entry-light-two 7.1s ease-in-out 0.9s both;
}
.entry-ceremony__light--8 {
  right: 8%;
  bottom: 8%;
  animation: entry-light-one 7.8s ease-in-out -0.4s both;
}
.entry-ceremony__signature-lockup {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(760px, 74vw);
  justify-items: center;
  transform: translate(-50%, -40%);
}
.entry-ceremony__halo {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: block;
  width: min(980px, 94vw);
  height: auto;
  opacity: 0;
  filter: saturate(1.15) brightness(1.2) drop-shadow(0 0 30px rgba(255, 185, 71, 0.52));
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.72) rotate(-8deg);
  animation: entry-halo-arrive 5.8s ease 2.2s forwards;
}
.entry-ceremony__signature {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: saturate(1.38) contrast(1.18) brightness(1.12) drop-shadow(0 10px 32px rgba(255, 190, 79, 0.62));
  animation: entry-signature-write 3.6s cubic-bezier(0.2, 0.72, 0.18, 1) 3.05s forwards;
}
.entry-ceremony__signature-lockup p {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  color: #ffe0a3;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(53, 17, 7, 0.92);
  opacity: 0;
  animation: entry-caption-arrive 1.2s ease 6.25s forwards;
}
.entry-ceremony__skip {
  position: absolute;
  z-index: 6;
  top: 24px;
  right: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 220, 154, 0.42);
  border-radius: 50%;
  background: rgba(27, 9, 10, 0.48);
  color: #ffe0a3;
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  animation: entry-caption-arrive 0.8s ease 1s forwards;
}
.entry-ceremony__skip:hover,
.entry-ceremony__skip:focus-visible {
  border-color: rgba(130, 86, 26, 0.54);
  outline: 2px solid rgba(198, 141, 56, 0.28);
  outline-offset: 3px;
}
.entry-ceremony__skip svg {
  width: 20px;
  height: 20px;
}
@keyframes auth-signature-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes auth-signature-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(245, 187, 91, 0.22));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(255, 211, 129, 0.62));
  }
}
@keyframes auth-spark-one {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  34%, 58% {
    opacity: 0.92;
  }
  72% {
    opacity: 0;
    transform: translate3d(360px, -24px, 0);
  }
}
@keyframes auth-spark-two {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-42px, 20px, 0);
  }
  32%, 55% {
    opacity: 0.72;
  }
  74% {
    opacity: 0;
    transform: translate3d(220px, 88px, 0);
  }
}
@keyframes auth-spark-three {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  29%, 52% {
    opacity: 0.82;
  }
  76% {
    opacity: 0;
    transform: translate3d(260px, -42px, 0);
  }
}
@keyframes auth-spark-four {
  0%, 100% {
    opacity: 0;
    transform: translate3d(18px, 16px, 0);
  }
  35%, 61% {
    opacity: 0.68;
  }
  79% {
    opacity: 0;
    transform: translate3d(-170px, -74px, 0);
  }
}
@keyframes entry-bloom-arrive {
  0% {
    opacity: 0;
    transform: scale(1.16);
  }
  8% {
    opacity: 1;
  }
  54% {
    opacity: 1;
    transform: scale(1);
  }
  82% {
    opacity: 0.7;
    transform: scale(1.025);
  }
  100% {
    opacity: 0.28;
    transform: scale(1.04);
  }
}
@keyframes entry-halo-arrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(-8deg);
  }
  34% {
    opacity: 0.78;
  }
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(1.06) rotate(10deg);
  }
}
@keyframes entry-seal-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 0.82;
    transform: translate(-50%, 0);
  }
}
@keyframes entry-signature-write {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes entry-caption-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes entry-light-one {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-10vw, 11vh, 0);
  }
  28%, 54% {
    opacity: 0.82;
  }
  78% {
    opacity: 0;
    transform: translate3d(52vw, -8vh, 0);
  }
}
@keyframes entry-light-two {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-8vw, 4vh, 0);
  }
  30%, 56% {
    opacity: 0.64;
  }
  82% {
    opacity: 0;
    transform: translate3d(46vw, -32vh, 0);
  }
}
@keyframes entry-light-three {
  0%, 100% {
    opacity: 0;
    transform: translate3d(8vw, -4vh, 0);
  }
  26%, 52% {
    opacity: 0.7;
  }
  80% {
    opacity: 0;
    transform: translate3d(-48vw, 18vh, 0);
  }
}
@keyframes entry-light-four {
  0%, 100% {
    opacity: 0;
    transform: translate3d(9vw, 10vh, 0);
  }
  33%, 58% {
    opacity: 0.72;
  }
  84% {
    opacity: 0;
    transform: translate3d(-34vw, -34vh, 0);
  }
}
@keyframes entry-ceremony-exit {
  0%, 92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .auth-backdrop,
  .auth-backdrop--entry {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .auth-panel,
  .auth-panel--login,
  .auth-panel--register {
    height: auto;
    min-height: max(100svh, 760px);
    overflow: visible;
    background-position: 31% center;
    background-size: auto 100%;
  }
  .auth-panel__form,
  .auth-panel--register .auth-panel__form {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    max-width: 460px;
    margin: clamp(360px, 47svh, 480px) auto 28px;
  }
  .auth-signature-motion {
    display: none;
  }
  .entry-ceremony__signature-lockup {
    width: min(680px, 88vw);
    transform: translate(-50%, -34%);
  }
  .entry-ceremony__halo {
    width: 118vw;
  }
  .entry-ceremony__seal {
    width: 42px;
  }
  .entry-ceremony__skip {
    top: 16px;
    right: 16px;
  }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .auth-panel,
  .auth-panel--login,
  .auth-panel--register {
    background-position: center center;
    background-size: cover;
  }
  .auth-panel__form,
  .auth-panel--register .auth-panel__form {
    right: 6%;
    width: min(360px, 34vw);
  }
}
@media (min-width: 761px) and (max-height: 700px) {
  .auth-backdrop {
    overflow-y: auto;
  }
  .auth-panel,
  .auth-panel--login,
  .auth-panel--register {
    height: 720px;
    min-height: 720px;
    background-position: center top;
    background-size: 100% auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-signature-overlay,
  .auth-signature-spark,
  .entry-ceremony,
  .entry-ceremony__bloom,
  .entry-ceremony__seal,
  .entry-ceremony__halo,
  .entry-ceremony__light,
  .entry-ceremony__signature,
  .entry-ceremony__signature-lockup p,
  .entry-ceremony__skip {
    animation: none;
  }
  .auth-signature-overlay,
  .entry-ceremony__seal,
  .entry-ceremony__halo,
  .entry-ceremony__signature,
  .entry-ceremony__signature-lockup p,
  .entry-ceremony__skip {
    opacity: 1;
    clip-path: none;
  }
  .entry-ceremony__bloom {
    opacity: 0.72;
  }
}
.condition-grid span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 0.4cqw;
  color: #d9c592;
  font-size: clamp(8px, 0.72cqw, 12px);
  line-height: 1.25;
  text-align: center;
}
.condition-grid span:nth-child(2) {
  color: #efcf82;
  border-color: rgba(224, 179, 82, 0.72);
  background: rgba(142, 102, 34, 0.14);
}
.companion-day-help {
  display: block;
  color: #7f8d98;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .condition-grid span {
    padding: 0 8px;
    font-size: 11px;
  }
}

/* src/home/evidence-gallery.css */
.evidence-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 280px);
  max-height: 170px;
  margin: 0 auto 12px;
  overflow: auto;
}
.evidence-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 183, 94, .34);
  border-radius: 4px;
  object-fit: cover;
  background: #07111e;
}
.evidence-preview-grid--scan {
  width: 100%;
  max-width: none;
  max-height: 260px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(226, 183, 94, .22);
  background: #030b14;
}
.evidence-preview-grid--scan img {
  aspect-ratio: 4 / 3;
}
.admin-evidence-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.admin-evidence-gallery > a {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 94, .4);
  background: #e2b75e0a;
  color: #e7c474;
  text-decoration: none;
}
.admin-evidence-gallery img,
.admin-evidence-gallery video {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #030b14;
}
.admin-evidence-gallery > a > span {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  font-size: 12px;
}
.admin-evidence-gallery > a > span small {
  overflow: hidden;
  color: #89959e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.application-evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .admin-evidence-gallery {
    grid-template-columns: 1fr;
  }
}

/* src/home/cosmic-memories.css */
body.cosmic-layer-open {
  overflow: hidden;
}
.memory-constellation {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
}
.memory-constellation__nodes {
  position: absolute;
  inset: 0;
}
.memory-constellation__node {
  position: absolute;
  display: grid;
  width: clamp(22px, 2.35cqw, 36px);
  height: clamp(22px, 2.35cqw, 36px);
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition:
    filter 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}
.memory-constellation__node img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: circle(35% at 50% 50%);
}
.memory-constellation__node.is-unlocked {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0 12px rgba(246, 188, 81, 0.9));
  animation: memory-star-breathe 4.8s ease-in-out infinite;
}
.memory-constellation__node.is-locked {
  opacity: 0.28;
  filter: grayscale(1) brightness(0.74);
}
.memory-constellation__node:hover,
.memory-constellation__node:focus-visible {
  opacity: 1;
  outline: 1px solid rgba(248, 210, 130, 0.75);
  outline-offset: 4px;
  transform: translate(-50%, -50%) scale(1.22);
}
.memory-constellation__node--1 {
  top: 38%;
  left: 36.5%;
}
.memory-constellation__node--2 {
  top: 28%;
  left: 42%;
}
.memory-constellation__node--3 {
  top: 23%;
  left: 50.5%;
}
.memory-constellation__node--4 {
  top: 29%;
  left: 59%;
}
.memory-constellation__node--5 {
  top: 41%;
  left: 64%;
}
.memory-constellation__node--6 {
  top: 51.5%;
  left: 68%;
}
.memory-constellation__node.is-secret {
  width: clamp(30px, 3.8cqw, 58px);
  height: clamp(30px, 3.8cqw, 58px);
  filter: saturate(1.15) brightness(1.08) drop-shadow(0 0 18px rgba(247, 191, 90, 0.76));
  animation: memory-secret-orbit 5.4s ease-in-out infinite;
}
.memory-constellation__node.is-secret img {
  clip-path: none;
}
.memory-constellation__line {
  position: absolute;
  display: block;
  height: 0;
  border-top: 1px solid rgba(223, 179, 92, 0.36);
  box-shadow: 0 0 6px rgba(223, 179, 92, 0.24);
  opacity: 0.8;
  transform-origin: 0 50%;
}
.memory-constellation__line--1 {
  top: 38%;
  left: 36.5%;
  width: 7.7%;
  transform: rotate(-43deg);
}
.memory-constellation__line--2 {
  top: 28%;
  left: 42%;
  width: 9.1%;
  transform: rotate(-17deg);
}
.memory-constellation__line--3 {
  top: 23%;
  left: 50.5%;
  width: 9.2%;
  transform: rotate(21deg);
}
.memory-constellation__line--4 {
  top: 29%;
  left: 59%;
  width: 7.2%;
  transform: rotate(52deg);
}
.memory-constellation__line--5 {
  top: 41%;
  left: 64%;
  width: 6.3%;
  transform: rotate(51deg);
}
.memory-constellation__summary {
  position: absolute;
  top: 66.2%;
  left: 50%;
  display: flex;
  align-items: stretch;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: auto;
}
.memory-constellation__overview,
.memory-constellation__event {
  min-height: 38px;
  border: 1px solid rgba(218, 174, 86, 0.32);
  border-radius: 4px;
  background: rgba(3, 12, 22, 0.82);
  color: #e7c777;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.memory-constellation__overview {
  display: grid;
  grid-template-columns: 25px auto;
  grid-template-rows: 18px 14px;
  align-items: center;
  min-width: 148px;
  padding: 4px 11px 4px 8px;
  text-align: left;
}
.memory-constellation__overview img {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.memory-constellation__overview span {
  color: #f5dc9e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.memory-constellation__overview small {
  color: #8f9ba3;
  font-size: 9px;
  white-space: nowrap;
}
.memory-constellation__event {
  padding: 0 12px;
  color: #a89569;
  font-size: 10px;
  white-space: nowrap;
}
.memory-constellation__event.is-available {
  border-color: rgba(250, 202, 105, 0.62);
  color: #ffe0a0;
  box-shadow: inset 0 0 18px rgba(226, 175, 72, 0.12), 0 0 18px rgba(226, 175, 72, 0.12);
  animation: memory-event-breathe 3.6s ease-in-out infinite;
}
.memory-constellation__overview:hover,
.memory-constellation__overview:focus-visible,
.memory-constellation__event:hover,
.memory-constellation__event:focus-visible {
  border-color: rgba(248, 206, 119, 0.76);
  outline: 0;
  background: rgba(9, 25, 39, 0.94);
  color: #ffe2a7;
}
.mango-easter-trigger {
  position: absolute;
  z-index: 10;
  top: 30%;
  left: 42%;
  width: 16%;
  height: 29%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.mango-easter-trigger:focus {
  outline: 0;
}
.memory-dialog,
.celestial-memory {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.memory-dialog[hidden],
.celestial-memory[hidden] {
  display: none;
}
.memory-dialog.is-visible,
.celestial-memory.is-visible {
  opacity: 1;
}
.memory-dialog {
  z-index: 380;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 4, 10, 0.78);
  backdrop-filter: blur(10px);
}
.memory-dialog__panel {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  min-height: 356px;
  justify-items: center;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(229, 185, 95, 0.42);
  border-radius: 8px;
  padding: 48px 42px 38px;
  background: #06111d;
  color: #ecdfc2;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64), inset 0 0 54px rgba(211, 164, 72, 0.07);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.26s ease;
}
.memory-dialog.is-visible .memory-dialog__panel {
  transform: translateY(0) scale(1);
}
.memory-dialog__close,
.celestial-memory__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(236, 196, 114, 0.42);
  border-radius: 50%;
  background: rgba(3, 10, 18, 0.62);
  color: #f1d493;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.memory-dialog__close {
  position: absolute !important;
  top: 14px;
  right: 14px;
}
.memory-dialog__star {
  width: 58px;
  height: 58px;
  object-fit: contain;
  clip-path: circle(35% at 50% 50%);
  filter: saturate(1.25) drop-shadow(0 0 20px rgba(247, 193, 90, 0.8));
}
.memory-dialog__eyebrow,
.celestial-memory__eyebrow {
  margin-top: 12px;
  color: #9b8456;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.memory-dialog h2 {
  margin: 10px 0 4px;
  color: #f2d595;
  font-size: 24px;
  letter-spacing: 0;
}
.memory-dialog__time {
  color: #8e9aa3;
  font-size: 11px;
}
.memory-dialog__copy {
  max-width: 320px;
  margin: 18px 0 22px;
  color: #b8c0c5;
  font-size: 13px;
  line-height: 1.8;
}
.memory-dialog__celestial {
  min-height: 40px;
  border: 1px solid rgba(226, 181, 91, 0.52);
  border-radius: 4px;
  padding: 0 20px;
  background: rgba(216, 162, 61, 0.13);
  color: #f1cf84;
  font-size: 12px;
  cursor: pointer;
}
.memory-dialog__celestial:hover,
.memory-dialog__celestial:focus-visible,
.memory-dialog__close:hover,
.memory-dialog__close:focus-visible,
.celestial-memory__close:hover,
.celestial-memory__close:focus-visible {
  border-color: #f0c873;
  outline: 2px solid rgba(238, 193, 98, 0.22);
  outline-offset: 3px;
}
.celestial-memory {
  z-index: 420;
  overflow: hidden;
  background: #020712;
  color: #f7db9d;
  isolation: isolate;
}
.celestial-memory__background {
  position: absolute;
  z-index: 0;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.24) brightness(0.66) contrast(1.08);
  animation: celestial-background-drift 14s ease-in-out infinite alternate;
}
.celestial-memory__orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(980px, 92vw);
  height: auto;
  opacity: 0.56;
  filter: saturate(1.25) brightness(1.16) drop-shadow(0 0 28px rgba(235, 175, 67, 0.45));
  transform: translate(-50%, -50%) rotate(-10deg) scale(0.72);
  animation: celestial-orbit-arrive 7s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}
.celestial-memory__planet {
  position: absolute;
  z-index: 2;
  top: 13%;
  right: 10%;
  width: clamp(88px, 12vw, 210px);
  height: auto;
  opacity: 0;
  filter: saturate(1.18) drop-shadow(0 0 32px rgba(235, 178, 75, 0.56));
  animation: celestial-planet-arrive 1.8s ease 0.5s forwards, celestial-planet-float 7s ease-in-out 2.3s infinite;
}
.celestial-memory__lights {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.celestial-memory__light {
  position: absolute;
  display: block;
  width: clamp(54px, 6vw, 118px);
  height: auto;
  opacity: 0;
  filter: saturate(1.28) brightness(1.12) drop-shadow(0 0 24px rgba(255, 199, 93, 0.82));
  mix-blend-mode: screen;
  clip-path: circle(35% at 50% 50%);
}
.celestial-memory__light--1 {
  top: 18%;
  left: 4%;
  animation: celestial-light-east 5.4s ease-in-out 0.3s infinite;
}
.celestial-memory__light--2 {
  top: 62%;
  left: 10%;
  animation: celestial-light-east 6.2s ease-in-out 1.5s infinite;
}
.celestial-memory__light--3 {
  top: 35%;
  right: 5%;
  animation: celestial-light-west 5.8s ease-in-out 0.9s infinite;
}
.celestial-memory__light--4 {
  right: 22%;
  bottom: 7%;
  animation: celestial-light-west 6.8s ease-in-out 2.1s infinite;
}
.celestial-memory__light--5 {
  top: 8%;
  left: 32%;
  animation: celestial-light-sweep 7.1s ease-in-out 0.2s infinite;
}
.celestial-memory__light--6 {
  bottom: 13%;
  left: 38%;
  animation: celestial-light-sweep 6.4s ease-in-out 1.8s infinite;
}
.celestial-memory__light--7 {
  top: 22%;
  right: 29%;
  animation: celestial-light-west 7.6s ease-in-out 3s infinite;
}
.celestial-memory__content {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(760px, 86vw);
  justify-items: center;
  text-align: center;
  transform: translate(-50%, -46%);
}
.celestial-memory__eyebrow {
  color: #d4ae62;
  font-size: 10px;
  opacity: 0;
  animation: celestial-copy-arrive 1s ease 0.7s forwards;
}
.celestial-memory h2 {
  margin: 16px 0 10px;
  color: #ffe0a0;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.86), 0 0 34px rgba(240, 182, 73, 0.42);
  opacity: 0;
  animation: celestial-title-arrive 1.4s cubic-bezier(0.22, 0.7, 0.18, 1) 0.9s forwards;
}
.celestial-memory__copy {
  max-width: 650px;
  margin: 0;
  color: #d0d2cf;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.8;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  animation: celestial-copy-arrive 1.1s ease 1.65s forwards;
}
.celestial-memory__signature {
  display: block;
  width: min(520px, 72vw);
  height: auto;
  margin-top: 30px;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: saturate(1.3) brightness(1.08) drop-shadow(0 8px 26px rgba(239, 181, 75, 0.52));
  animation: celestial-signature-write 2.8s cubic-bezier(0.2, 0.72, 0.18, 1) 2.1s forwards;
}
.celestial-memory__close {
  position: absolute;
  z-index: 7;
  top: 22px;
  right: 22px;
}
.mango-secret {
  position: absolute;
  z-index: 14;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mango-secret__orbit {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: mango-secret-orbit 5.4s cubic-bezier(0.2, 0.72, 0.18, 1) both;
}
.mango-secret__planet {
  position: absolute;
  display: block;
  width: 30%;
  height: auto;
  filter: saturate(1.2) drop-shadow(0 0 18px rgba(245, 188, 82, 0.72));
}
.mango-secret__planet--1 {
  top: -2%;
  left: 44%;
}
.mango-secret__planet--2 {
  right: 2%;
  bottom: 17%;
}
.mango-secret__planet--3 {
  bottom: 9%;
  left: 5%;
}
.mango-secret__message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  min-width: 210px;
  justify-items: start;
  border: 1px solid rgba(224, 180, 91, 0.4);
  border-radius: 4px;
  padding: 13px 16px;
  background: rgba(3, 12, 22, 0.9);
  color: #f1d28b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44), inset 0 0 24px rgba(224, 180, 91, 0.08);
  backdrop-filter: blur(12px);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.88);
  opacity: 0;
  transform: translateY(12px);
  animation: mango-secret-message 4.6s ease 0.7s both;
}
.mango-secret__message span {
  color: #b99a5c;
  font-size: 9px;
}
.mango-secret__message strong {
  margin-top: 5px;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-size: clamp(15px, 1.5cqw, 22px);
  font-weight: 600;
  white-space: nowrap;
}
.cosmic-stage.is-dinner-open > .memory-constellation,
.cosmic-stage.is-dinner-open > .mango-easter-trigger {
  display: none;
}
@keyframes memory-star-breathe {
  0%, 100% {
    filter: saturate(1.1) brightness(1) drop-shadow(0 0 8px rgba(246, 188, 81, 0.6));
  }
  50% {
    filter: saturate(1.3) brightness(1.22) drop-shadow(0 0 18px rgba(255, 207, 112, 0.96));
  }
}
@keyframes memory-event-breathe {
  0%, 100% {
    box-shadow: inset 0 0 18px rgba(226, 175, 72, 0.08), 0 0 12px rgba(226, 175, 72, 0.06);
  }
  50% {
    box-shadow: inset 0 0 22px rgba(226, 175, 72, 0.2), 0 0 24px rgba(226, 175, 72, 0.2);
  }
}
@keyframes memory-secret-orbit {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) rotate(-3deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-7px) rotate(3deg);
  }
}
@keyframes celestial-background-drift {
  from {
    transform: scale(1.02) translate3d(-0.8%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0.8%, -0.8%, 0);
  }
}
@keyframes celestial-orbit-arrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-18deg) scale(0.62);
  }
  35% {
    opacity: 0.72;
  }
  100% {
    opacity: 0.44;
    transform: translate(-50%, -50%) rotate(8deg) scale(1.1);
  }
}
@keyframes celestial-planet-arrive {
  from {
    opacity: 0;
    transform: translate3d(30px, -18px, 0) scale(0.82);
  }
  to {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes celestial-planet-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(-12px, 10px, 0) rotate(3deg);
  }
}
@keyframes celestial-light-east {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-12vw, 10vh, 0) scale(0.72);
  }
  25%, 48% {
    opacity: 0.88;
  }
  76% {
    opacity: 0;
    transform: translate3d(66vw, -16vh, 0) scale(1.08);
  }
}
@keyframes celestial-light-west {
  0%, 100% {
    opacity: 0;
    transform: translate3d(13vw, -7vh, 0) scale(0.78);
  }
  28%, 52% {
    opacity: 0.76;
  }
  80% {
    opacity: 0;
    transform: translate3d(-62vw, 24vh, 0) scale(1.06);
  }
}
@keyframes celestial-light-sweep {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-24vw, -20vh, 0) scale(0.68);
  }
  30%, 56% {
    opacity: 0.66;
  }
  82% {
    opacity: 0;
    transform: translate3d(38vw, 42vh, 0) scale(1.18);
  }
}
@keyframes celestial-title-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes celestial-copy-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes celestial-signature-write {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes mango-secret-orbit {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-42deg) scale(0.34);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(282deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(330deg) scale(1.08);
  }
}
@keyframes mango-secret-message {
  0%, 100% {
    opacity: 0;
    transform: translateY(12px);
  }
  20%, 74% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .memory-constellation {
    top: 64px;
    right: 0;
    bottom: auto;
    left: 0;
    height: min(76vw, 360px);
  }
  .memory-constellation__node {
    width: 28px;
    height: 28px;
  }
  .memory-constellation__node--1 {
    top: 49%;
    left: 18%;
  }
  .memory-constellation__node--2 {
    top: 31%;
    left: 30%;
  }
  .memory-constellation__node--3 {
    top: 22%;
    left: 49%;
  }
  .memory-constellation__node--4 {
    top: 32%;
    left: 68%;
  }
  .memory-constellation__node--5 {
    top: 51%;
    left: 80%;
  }
  .memory-constellation__node--6 {
    top: 68%;
    left: 71%;
  }
  .memory-constellation__line--1 {
    top: 49%;
    left: 18%;
    width: 19%;
    transform: rotate(-39deg);
  }
  .memory-constellation__line--2 {
    top: 31%;
    left: 30%;
    width: 20%;
    transform: rotate(-14deg);
  }
  .memory-constellation__line--3 {
    top: 22%;
    left: 49%;
    width: 21%;
    transform: rotate(16deg);
  }
  .memory-constellation__line--4 {
    top: 32%;
    left: 68%;
    width: 19%;
    transform: rotate(40deg);
  }
  .memory-constellation__line--5 {
    top: 68%;
    left: 71%;
    width: 17%;
    transform: rotate(-55deg);
  }
  .memory-constellation__summary {
    top: auto;
    bottom: 36px;
    gap: 4px;
  }
  .memory-constellation__overview {
    min-width: 136px;
  }
  .memory-constellation__event {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mango-easter-trigger {
    z-index: 10;
    top: 94px;
    left: 30%;
    width: 40%;
    height: 205px;
  }
  .memory-dialog {
    padding: 14px;
  }
  .memory-dialog__panel {
    min-height: 330px;
    padding: 44px 26px 30px;
  }
  .memory-dialog h2 {
    font-size: 21px;
  }
  .celestial-memory__content {
    transform: translate(-50%, -44%);
  }
  .celestial-memory__planet {
    top: 10%;
    right: -2%;
  }
  .celestial-memory__orbit {
    width: 125vw;
  }
  .celestial-memory__signature {
    margin-top: 24px;
  }
  .mango-secret__orbit {
    top: 210px;
    width: 68%;
  }
  .mango-secret__message {
    right: 16px;
    bottom: 18px;
    left: 16px;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .memory-constellation__node,
  .memory-constellation__event,
  .celestial-memory__background,
  .celestial-memory__orbit,
  .celestial-memory__planet,
  .celestial-memory__light,
  .celestial-memory__eyebrow,
  .celestial-memory h2,
  .celestial-memory__copy,
  .celestial-memory__signature,
  .mango-secret__orbit,
  .mango-secret__message {
    animation: none;
  }
  .celestial-memory__orbit,
  .celestial-memory__planet,
  .celestial-memory__eyebrow,
  .celestial-memory h2,
  .celestial-memory__copy,
  .celestial-memory__signature {
    opacity: 1;
    clip-path: none;
  }
}

/* src/home/cosmic-companion.css */
body.companion-layer-open {
  overflow: hidden;
}
.cosmic-stage .stage-bg,
.cosmic-stage .hero-layer--mango,
.cosmic-stage .orbit-ring,
.cosmic-stage .planet-orbiting,
.cosmic-stage .star-field {
  transition:
    filter 1.4s ease,
    opacity 1.4s ease,
    translate 0.55s cubic-bezier(0.22, 0.7, 0.18, 1),
    transform 0.55s cubic-bezier(0.22, 0.7, 0.18, 1);
}
.cosmic-stage .hero-layer--mango,
.cosmic-stage .orbit-ring {
  --sky-filter: brightness(1) saturate(1);
  --mood-filter: brightness(1) saturate(1);
  filter: var(--sky-filter) var(--mood-filter);
}
.cosmic-stage[data-sky=morning] .stage-bg {
  filter: brightness(1.08) saturate(0.9) sepia(0.08);
}
.cosmic-stage[data-sky=morning] .hero-layer--mango,
.cosmic-stage[data-sky=morning] .orbit-ring {
  --sky-filter: brightness(1.06) saturate(0.94);
}
.cosmic-stage[data-sky=dusk] .stage-bg {
  filter: brightness(0.79) saturate(1.15) sepia(0.12) hue-rotate(-8deg);
}
.cosmic-stage[data-sky=dusk] .hero-layer--mango,
.cosmic-stage[data-sky=dusk] .orbit-ring {
  --sky-filter: brightness(0.92) saturate(1.12) sepia(0.08);
}
.cosmic-stage[data-sky=night] .stage-bg {
  filter: brightness(0.6) saturate(0.88) contrast(1.12);
}
.cosmic-stage[data-sky=night] .hero-layer--mango,
.cosmic-stage[data-sky=night] .orbit-ring {
  --sky-filter: brightness(0.82) saturate(0.92) drop-shadow(0 0 16px rgba(220, 174, 83, 0.2));
}
.cosmic-stage[data-sky=night] .planet-orbiting {
  filter: brightness(0.82) saturate(0.92) drop-shadow(0 0 16px rgba(220, 174, 83, 0.2));
}
.cosmic-stage[data-sky=night] .star-field {
  opacity: 1;
  filter: brightness(1.22);
}
.cosmic-stage[data-mood=bright] .hero-layer--mango {
  --mood-filter: brightness(1.08) saturate(1.14) drop-shadow(0 0 22px rgba(232, 184, 79, 0.36));
}
.cosmic-stage[data-mood=calm] .hero-layer--mango,
.cosmic-stage[data-mood=calm] .orbit-ring {
  --mood-filter: brightness(0.98) saturate(0.82) hue-rotate(18deg) drop-shadow(0 0 18px rgba(117, 200, 194, 0.24));
}
.cosmic-stage[data-mood=brave] .hero-layer--mango,
.cosmic-stage[data-mood=brave] .orbit-ring {
  --mood-filter: brightness(1.02) saturate(1.12) hue-rotate(-10deg) drop-shadow(0 0 20px rgba(231, 121, 104, 0.24));
}
.cosmic-stage[data-mood=miss] .hero-layer--mango,
.cosmic-stage[data-mood=miss] .orbit-ring {
  --mood-filter: brightness(0.94) saturate(0.82) hue-rotate(29deg) drop-shadow(0 0 22px rgba(170, 145, 214, 0.28));
}
.cosmic-stage[data-mood=healing] .hero-layer--mango,
.cosmic-stage[data-mood=healing] .orbit-ring {
  --mood-filter: brightness(1) saturate(0.86) hue-rotate(46deg) drop-shadow(0 0 20px rgba(120, 185, 139, 0.25));
}
.memory-constellation__summary {
  align-items: stretch;
}
.companion-tool {
  display: grid;
  grid-template-columns: 22px auto;
  grid-template-rows: 18px 13px;
  align-items: center;
  min-width: 104px;
  min-height: 38px;
  border: 1px solid rgba(218, 174, 86, 0.32);
  border-radius: 4px;
  padding: 3px 10px 3px 8px;
  background: rgba(3, 12, 22, 0.82);
  color: #e7c777;
  backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.companion-tool:hover,
.companion-tool:focus-visible {
  border-color: rgba(248, 206, 119, 0.76);
  outline: 0;
  background: rgba(9, 25, 39, 0.94);
  color: #ffe2a7;
}
.companion-tool img,
.companion-tool__mood-dot {
  grid-row: 1 / 3;
  display: block;
  width: 20px;
  height: 20px;
}
.companion-tool img {
  object-fit: contain;
}
.companion-tool__mood-dot {
  border: 2px solid rgba(255, 228, 173, 0.44);
  border-radius: 50%;
  background: var(--mood-current, #9a8354);
  box-shadow: 0 0 12px color-mix(in srgb, var(--mood-current, #9a8354) 56%, transparent);
}
.companion-tool span {
  color: #f5dc9e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.companion-tool small {
  color: #8f9ba3;
  font-size: 8px;
  white-space: nowrap;
}
.companion-sky-chip {
  position: absolute;
  z-index: 8;
  top: 10.6%;
  left: 50%;
  display: block;
  color: rgba(211, 190, 145, 0.58);
  font-size: clamp(8px, 0.72cqw, 10px);
  pointer-events: none;
  transform: translateX(-50%);
}
.companion-layer {
  position: fixed;
  z-index: 390;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 18px;
  background: rgba(0, 4, 10, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.companion-layer[hidden] {
  display: none;
}
.companion-layer.is-visible {
  opacity: 1;
}
.companion-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(236, 196, 114, 0.42);
  border-radius: 50%;
  background: rgba(3, 10, 18, 0.7);
  color: #f1d493;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.companion-close:hover,
.companion-close:focus-visible {
  border-color: #f0c873;
  outline: 2px solid rgba(238, 193, 98, 0.22);
  outline-offset: 3px;
}
.companion-eyebrow {
  color: #9b8456;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.companion-primary {
  min-height: 42px;
  border: 1px solid rgba(226, 181, 91, 0.58);
  border-radius: 4px;
  padding: 0 20px;
  background: rgba(216, 162, 61, 0.14);
  color: #f3d38f;
  font-size: 12px;
  cursor: pointer;
}
.companion-primary:hover,
.companion-primary:focus-visible {
  border-color: #f0c873;
  outline: 2px solid rgba(238, 193, 98, 0.2);
  outline-offset: 2px;
}
.companion-primary:disabled {
  cursor: wait;
  opacity: 0.55;
}
.companion-status {
  min-height: 18px;
  margin: 0;
  color: #d9b96f;
  font-size: 10px;
  line-height: 1.6;
}
.mood-layer__panel {
  position: relative;
  display: grid;
  width: min(570px, 100%);
  justify-items: center;
  border: 1px solid rgba(228, 183, 91, 0.42);
  border-radius: 8px;
  padding: 44px 42px 38px;
  background: #06111d;
  color: #ecdfc2;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.66), inset 0 0 62px rgba(211, 164, 72, 0.07);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s ease;
}
.mood-layer.is-visible .mood-layer__panel {
  transform: translateY(0) scale(1);
}
.mood-layer__logo {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(232, 184, 79, 0.42));
}
.mood-layer h2 {
  margin: 10px 0 8px;
  color: #f2d595;
  font-size: 24px;
  letter-spacing: 0;
}
.mood-layer__copy {
  margin: 0;
  color: #98a4ac;
  font-size: 12px;
  line-height: 1.7;
}
.mood-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 28px 0 22px;
}
.mood-choice {
  display: grid;
  min-height: 86px;
  justify-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(180, 190, 198, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb7bd;
  cursor: pointer;
}
.mood-choice:hover,
.mood-choice:focus-visible,
.mood-choice.is-selected {
  border-color: rgba(234, 196, 116, 0.62);
  outline: 0;
  background: rgba(226, 183, 94, 0.08);
  color: #f0d79f;
}
.mood-choice__swatch {
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--mood-swatch);
  box-shadow: 0 0 18px color-mix(in srgb, var(--mood-swatch) 50%, transparent);
}
.mood-choice span {
  font-size: 11px;
}
.mood-note {
  display: grid;
  width: 100%;
  gap: 8px;
  color: #a8b1b7;
  font-size: 11px;
  text-align: left;
}
.mood-note textarea,
.archive-form input,
.archive-form textarea {
  width: 100%;
  border: 1px solid rgba(180, 190, 198, 0.2);
  border-radius: 4px;
  padding: 11px 12px;
  background: #081522;
  color: #eee7d9;
  font: inherit;
  line-height: 1.6;
  outline: 0;
  resize: vertical;
}
.mood-note textarea:focus,
.archive-form input:focus,
.archive-form textarea:focus {
  border-color: rgba(231, 190, 104, 0.62);
  box-shadow: 0 0 0 2px rgba(226, 183, 94, 0.08);
}
.mood-layer .companion-status {
  width: 100%;
  margin: 12px 0;
  text-align: left;
}
.archive-layer {
  z-index: 395;
}
.archive-layer__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(228, 183, 91, 0.38);
  border-radius: 8px;
  background: #050f1b;
  color: #e9e2d5;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7), inset 0 0 72px rgba(211, 164, 72, 0.06);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.24s ease;
}
.archive-layer.is-visible .archive-layer__panel {
  transform: translateY(0) scale(1);
}
.archive-layer__orbit {
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -8%;
  display: block;
  width: 62%;
  height: auto;
  opacity: 0.12;
  filter: saturate(1.18) drop-shadow(0 0 20px rgba(232, 184, 79, 0.25));
  pointer-events: none;
}
.archive-layer__header,
.archive-layer__content {
  position: relative;
  z-index: 1;
}
.archive-layer__header {
  min-height: 118px;
  border-bottom: 1px solid rgba(178, 188, 196, 0.14);
  padding: 30px 42px 22px;
}
.archive-layer__header h2 {
  margin: 7px 0 4px;
  color: #f2d595;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-size: 30px;
  letter-spacing: 0;
}
.archive-layer__header p {
  margin: 0;
  color: #8e9aa3;
  font-size: 11px;
}
.archive-layer__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 520px;
}
.archive-layer__timeline-area {
  min-width: 0;
  border-right: 1px solid rgba(178, 188, 196, 0.13);
  padding: 20px 28px 26px 34px;
}
.archive-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(178, 188, 196, 0.13);
}
.archive-tabs button {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 14px;
  background: transparent;
  color: #7f8b94;
  font-size: 11px;
  cursor: pointer;
}
.archive-tabs button.is-active,
.archive-tabs button:hover,
.archive-tabs button:focus-visible {
  border-bottom-color: #d7ae5c;
  outline: 0;
  color: #efd394;
}
.archive-timeline {
  display: grid;
  align-content: start;
  max-height: 432px;
  overflow: auto;
  padding: 18px 8px 18px 0;
  scrollbar-color: rgba(213, 172, 87, 0.38) transparent;
}
.archive-memory {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.archive-memory__marker {
  position: relative;
  min-height: 112px;
}
.archive-memory__marker::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 229, 178, 0.34);
  border-radius: 50%;
  background: var(--memory-color, #d7b565);
  box-shadow: 0 0 12px color-mix(in srgb, var(--memory-color, #d7b565) 52%, transparent);
}
.archive-memory__marker::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 11px;
  border-left: 1px solid rgba(209, 173, 99, 0.24);
}
.archive-memory:last-child .archive-memory__marker::after {
  display: none;
}
.archive-memory__body {
  position: relative;
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid rgba(177, 188, 197, 0.14);
  border-radius: 6px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.025);
}
.archive-memory__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.archive-memory__meta time,
.archive-memory__meta span {
  color: #88764f;
  font-size: 9px;
}
.archive-memory__meta span {
  border: 1px solid rgba(215, 174, 92, 0.25);
  border-radius: 3px;
  padding: 2px 6px;
}
.archive-memory h3 {
  margin: 8px 0 5px;
  color: #e9d8b2;
  font-size: 14px;
  letter-spacing: 0;
}
.archive-memory p {
  margin: 0;
  color: #9da7ad;
  font-size: 11px;
  line-height: 1.65;
}
.archive-memory__remove {
  position: absolute;
  right: 14px;
  bottom: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7d8890;
  font-size: 9px;
  cursor: pointer;
}
.archive-memory__remove.is-confirming {
  color: #e6a18f;
}
.archive-empty {
  padding: 70px 20px;
  color: #74818b;
  text-align: center;
}
.archive-form {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 26px;
}
.archive-form h3 {
  margin: 0;
  color: #ead39e;
  font-size: 18px;
}
.archive-form > p:not(.companion-status) {
  margin: -6px 0 4px;
  color: #7f8b94;
  font-size: 10px;
}
.archive-form label {
  display: grid;
  gap: 7px;
  color: #9ca6ad;
  font-size: 10px;
}
.archive-form input,
.archive-form textarea {
  font-size: 11px;
}
.orbit-pointer-trail {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orbit-pointer-trail__light {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: clamp(28px, 2.6cqw, 42px);
  height: auto;
  opacity: 0;
  clip-path: circle(35% at 50% 50%);
  filter: saturate(1.2) brightness(1.08) drop-shadow(0 0 13px rgba(247, 194, 90, 0.78));
  mix-blend-mode: screen;
  transition: transform 0.12s ease-out, opacity 0.2s ease;
}
.orbit-pointer-trail.is-active .orbit-pointer-trail__light--1 {
  opacity: 0.78;
}
.orbit-pointer-trail.is-active .orbit-pointer-trail__light--2 {
  opacity: 0.44;
}
.orbit-pointer-trail.is-active .orbit-pointer-trail__light--3 {
  opacity: 0.26;
}
.orbit-pointer-trail.is-active .orbit-pointer-trail__light--4 {
  opacity: 0.14;
}
.orbit-pointer-trail.is-active .orbit-pointer-trail__light--5 {
  opacity: 0.06;
}
.cosmic-stage.is-dinner-open > .companion-sky-chip,
.cosmic-stage.is-dinner-open > .orbit-pointer-trail {
  display: none;
}
@media (max-width: 760px) {
  .mango-easter-trigger {
    z-index: 8;
  }
  .memory-constellation__summary {
    right: auto;
    bottom: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(286px, calc(100% - 36px));
    gap: 4px;
  }
  .memory-constellation__overview,
  .memory-constellation__event,
  .companion-tool {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .companion-tool {
    min-height: 38px;
  }
  .companion-sky-chip {
    position: fixed;
    z-index: 18;
    top: 46px;
    left: 50%;
    font-size: 8px;
  }
  .cosmic-stage.is-touch-drifting .hero-layer--mango,
  .cosmic-stage.is-touch-settling .hero-layer--mango {
    translate: var(--touch-x, 0px) var(--touch-y, 0px);
  }
  .cosmic-stage.is-touch-drifting .orbit-ring,
  .cosmic-stage.is-touch-settling .orbit-ring {
    transform: translate3d(var(--touch-ring-x, 0px), var(--touch-ring-y, 0px), 0);
  }
  .cosmic-stage.is-touch-drifting .planet-orbiting,
  .cosmic-stage.is-touch-settling .planet-orbiting {
    translate: calc(var(--touch-x, 0px) * -0.72) calc(var(--touch-y, 0px) * -0.55);
  }
  .cosmic-stage.is-touch-drifting .memory-constellation__nodes,
  .cosmic-stage.is-touch-settling .memory-constellation__nodes {
    transform: translate3d(calc(var(--touch-x, 0px) * 0.34), calc(var(--touch-y, 0px) * 0.28), 0);
    transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.18, 1);
  }
  .orbit-pointer-trail {
    display: none;
  }
  .mood-layer__panel {
    padding: 42px 20px 28px;
  }
  .mood-layer h2 {
    max-width: 290px;
    font-size: 20px;
  }
  .mood-choices {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 5px;
  }
  .mood-choice {
    min-height: 76px;
  }
  .mood-choice__swatch {
    width: 25px;
    height: 25px;
  }
  .archive-layer {
    align-items: start;
    padding: 0;
  }
  .archive-layer__panel {
    width: 100%;
    max-height: none;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .archive-layer__header {
    min-height: 126px;
    padding: 28px 56px 20px 20px;
  }
  .archive-layer__header h2 {
    font-size: 25px;
  }
  .archive-layer__content {
    grid-template-columns: 1fr;
  }
  .archive-layer__timeline-area {
    border-right: 0;
    border-bottom: 1px solid rgba(178, 188, 196, 0.13);
    padding: 16px;
  }
  .archive-tabs {
    overflow-x: auto;
  }
  .archive-tabs button {
    flex: 1 0 auto;
  }
  .archive-timeline {
    max-height: 390px;
  }
  .archive-form {
    padding: 22px 18px 36px;
  }
  .archive-layer__orbit {
    top: 0;
    right: 0;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic-stage .stage-bg,
  .cosmic-stage .hero-layer--mango,
  .cosmic-stage .orbit-ring,
  .cosmic-stage .planet-orbiting,
  .cosmic-stage .star-field,
  .orbit-pointer-trail__light,
  .companion-layer,
  .mood-layer__panel,
  .archive-layer__panel {
    transition: none;
  }
  .orbit-pointer-trail {
    display: none;
  }
}

/* src/main.css */
.account-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(207, 170, 99, .38);
  border-radius: 6px;
  background: rgba(4, 13, 23, .9);
  color: #ddc38f;
  text-decoration: none;
  font:
    12px "Microsoft YaHei",
    system-ui,
    sans-serif;
  letter-spacing: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}
.account-launcher:hover,
.account-launcher:focus-visible {
  color: #ffe5a9;
  border-color: rgba(225, 187, 110, .7);
  outline: none;
}
.account-launcher svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 760px) {
  .account-launcher {
    right: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }
  .account-launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
