:root {
  color-scheme: dark;
  --ink-950: #071116;
  --ink-900: #0b171d;
  --ink-850: #101d24;
  --ink-800: #16262d;
  --ink-700: #20343a;
  --fog-100: #f0f4ee;
  --fog-300: #c8d5cf;
  --fog-500: #8fa6a2;
  --teal-300: #7ed1c3;
  --teal-500: #3c9f94;
  --gold-300: #f0c77c;
  --gold-500: #c88c3e;
  --rose-400: #cb786f;
  --violet-400: #9782be;
  --danger: #e18278;
  --line: rgba(174, 205, 196, 0.13);
  --surface: rgba(14, 29, 35, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink-950);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -18%, rgba(63, 134, 122, 0.23), transparent 38rem),
    radial-gradient(circle at 110% 18%, rgba(201, 139, 60, 0.11), transparent 24rem),
    var(--ink-950);
  color: var(--fog-100);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--fog-300);
  opacity: 0.2;
  box-shadow:
    16vw 8vh 0 rgba(240, 199, 124, 0.55),
    44vw 16vh 0 rgba(126, 209, 195, 0.45),
    77vw 11vh 0 rgba(240, 244, 238, 0.5),
    90vw 38vh 0 rgba(240, 199, 124, 0.45),
    11vw 56vh 0 rgba(126, 209, 195, 0.35),
    64vw 67vh 0 rgba(240, 244, 238, 0.38),
    35vw 82vh 0 rgba(151, 130, 190, 0.5);
}

.ambient span:nth-child(2) {
  transform: translate(5vw, 23vh);
}

.ambient span:nth-child(3) {
  transform: translate(-9vw, 51vh);
}

#app {
  position: relative;
  z-index: 1;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  padding: max(1.1rem, env(safe-area-inset-top)) 1.15rem calc(7.25rem + var(--safe-bottom));
}

.app-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  margin: 0 auto;
  max-width: 34rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark,
.boot-mark {
  position: relative;
  width: 2.65rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(126, 209, 195, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(126, 209, 195, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.boot-mark::before,
.boot-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(126, 209, 195, 0.32);
  border-radius: 50%;
  inset: 0.35rem;
}

.brand-mark::after,
.boot-mark::after {
  inset: 0.8rem;
  background: var(--gold-300);
  border: none;
  box-shadow: 0 0 18px rgba(240, 199, 124, 0.72);
}

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

.brand-name {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 720;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand-tagline {
  margin: 0.15rem 0 0;
  color: var(--fog-500);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.field-presence {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(174, 205, 196, 0.1);
  border-radius: 2rem;
  background: rgba(7, 17, 22, 0.42);
  color: var(--fog-500);
}

.field-presence > span {
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(143, 166, 162, 0.46);
  box-shadow: 0 0 0 0 rgba(240, 199, 124, 0);
}

.field-presence small {
  font-size: 0.52rem;
  font-weight: 720;
  letter-spacing: 0.09em;
}

.field-presence.is-lit {
  border-color: rgba(240, 199, 124, 0.22);
  color: var(--gold-300);
}

.field-presence.is-lit > span {
  background: #ffe2a2;
  box-shadow: 0 0 14px rgba(240, 199, 124, 0.72);
  animation: room-status-breathe 2.4s ease-in-out infinite;
}

.main-view {
  max-width: 34rem;
  margin: 2rem auto 0;
  animation: view-in 380ms ease both;
}

.view-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.view-intro h1 {
  max-width: 18ch;
  margin: 0.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 11vw, 4.35rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.view-intro .intro-note {
  max-width: 12rem;
  margin: 0 0 0.3rem;
  color: var(--fog-500);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.eyebrow {
  margin: 0;
  color: var(--gold-300);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 0.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-item {
  padding: 0.85rem 0.65rem 0.8rem;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.status-item span {
  display: block;
  margin-top: 0.18rem;
  color: var(--fog-500);
  font-size: 0.64rem;
  line-height: 1.2;
}

.radar-wrap {
  position: relative;
  width: min(94vw, 33rem);
  aspect-ratio: 1;
  margin: 0.5rem auto 0;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
}

.radar {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(126, 209, 195, 0.15);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(126, 209, 195, 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(126, 209, 195, 0.08) 50%, transparent 50.2%),
    radial-gradient(circle, transparent 22%, rgba(126, 209, 195, 0.12) 22.3%, transparent 22.7% 43%, rgba(126, 209, 195, 0.11) 43.3%, transparent 43.7% 65%, rgba(126, 209, 195, 0.1) 65.3%, transparent 65.7%);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 10deg, transparent 0deg 310deg, rgba(126, 209, 195, 0.02) 330deg, rgba(126, 209, 195, 0.2) 358deg, transparent 360deg);
  animation: sweep 11s linear infinite;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 48%;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(240, 199, 124, 0.25), 0 0 22px rgba(240, 199, 124, 0.65);
  animation: own-signal 3s ease-out infinite;
}

.radar-label {
  position: absolute;
  color: rgba(200, 213, 207, 0.42);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radar-label.north { top: 1.2rem; left: 50%; transform: translateX(-50%); }
.radar-label.range { right: 0.4rem; bottom: 27%; }

.signal-node {
  --node-color: var(--teal-300);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4.15rem;
  height: 4.15rem;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(13, 31, 37, 0.9);
  cursor: pointer;
  animation: signal-float 5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.signal-node::before,
.signal-node::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--node-color) 42%, transparent);
  border-radius: 50%;
  inset: -0.2rem;
  opacity: 0;
  animation: node-wave 3.4s ease-out infinite;
  animation-delay: var(--delay);
}

.signal-node::after {
  animation-delay: calc(var(--delay) + 1.7s);
}

.signal-core {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-color) 55%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--node-color) 32%, transparent), transparent 52%),
    var(--ink-850);
  box-shadow: 0 0 20px color-mix(in srgb, var(--node-color) 18%, transparent);
}

.signal-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(0.75);
  transform: scale(1.15);
}

.signal-core span {
  font-size: 1.35rem;
  filter: blur(1.5px);
}

.signal-node em {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  width: max-content;
  max-width: 7.8rem;
  transform: translateX(-50%);
  color: var(--fog-300);
  font-size: 0.63rem;
  font-style: normal;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 8px var(--ink-950);
}

.signal-node[data-strength="warm"] { --node-color: var(--gold-300); }
.signal-node[data-strength="violet"] { --node-color: var(--violet-400); }
.signal-node[data-strength="rose"] { --node-color: var(--rose-400); }

.radar-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.6rem 0 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fog-500);
  font-size: 0.72rem;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal-300);
  cursor: pointer;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.8rem 0 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.section-head small {
  color: var(--fog-500);
}

.signal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.signal-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mini-orb {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(126, 209, 195, 0.28);
  border-radius: 50%;
  background: rgba(126, 209, 195, 0.08);
}

.signal-row strong,
.signal-row small {
  display: block;
}

.signal-row strong {
  font-size: 0.84rem;
  font-weight: 620;
}

.signal-row small {
  margin-top: 0.2rem;
  color: var(--fog-500);
  font-size: 0.68rem;
}

.signal-row .arrow {
  color: var(--gold-300);
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0.75rem;
  bottom: calc(0.7rem + var(--safe-bottom));
  left: 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 32rem;
  margin: auto;
  padding: 0.42rem;
  border: 1px solid rgba(174, 205, 196, 0.14);
  border-radius: 1.2rem;
  background: rgba(9, 21, 26, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.nav-button {
  display: grid;
  min-width: 0;
  min-height: 3.75rem;
  place-items: center;
  align-content: center;
  gap: 0.22rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--fog-500);
  cursor: pointer;
}

.nav-button .nav-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.send-wave-mark {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.05rem;
  color: currentColor;
}

.send-wave-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0.28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  transform: translateX(-50%);
}

.send-wave-mark i {
  position: absolute;
  bottom: 0.08rem;
  left: 50%;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.send-wave-mark i:nth-child(1) {
  width: 0.72rem;
  height: 0.48rem;
  opacity: 0.95;
}

.send-wave-mark i:nth-child(2) {
  width: 1.12rem;
  height: 0.76rem;
  opacity: 0.68;
}

.send-wave-mark i:nth-child(3) {
  width: 1.5rem;
  height: 1.02rem;
  opacity: 0.42;
}

.nav-button[data-view="compose"].active .send-wave-mark {
  color: var(--gold-300);
  filter: drop-shadow(0 0 7px rgba(240, 199, 124, 0.42));
}

.nav-button .nav-label {
  font-size: 0.6rem;
}

.nav-button.active {
  background: rgba(126, 209, 195, 0.1);
  color: var(--fog-100);
}

.nav-button.room-nav {
  position: relative;
  z-index: 2;
}

.nav-button.room-nav .nav-icon {
  position: relative;
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  margin-top: -1rem;
  place-items: center;
  border: 1px solid rgba(174, 205, 196, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(126, 209, 195, 0.06), transparent 48%),
    #071116;
  color: rgba(200, 213, 207, 0.45);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.42), inset 0 0 20px rgba(126, 209, 195, 0.04);
  transition: color 420ms ease, border-color 420ms ease, box-shadow 420ms ease, background 420ms ease;
}

.nav-button.room-nav .room-nav-light {
  position: absolute;
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1e2a2d;
  transition: inherit;
}

.nav-button.room-nav.is-lit .nav-icon {
  border-color: rgba(240, 199, 124, 0.64);
  background:
    radial-gradient(circle, rgba(255, 226, 162, 0.24), rgba(200, 140, 62, 0.05) 46%, transparent 68%),
    #0b171d;
  color: var(--gold-300);
  box-shadow:
    0 0 18px rgba(240, 199, 124, 0.32),
    0 0 42px rgba(203, 120, 111, 0.12),
    inset 0 0 24px rgba(240, 199, 124, 0.12);
}

.nav-button.room-nav.is-lit .room-nav-light {
  background: #ffe2a2;
  box-shadow: 0 0 12px #f0c77c, 0 0 25px rgba(240, 199, 124, 0.72);
  animation: room-status-breathe 2.4s ease-in-out infinite;
}

.nav-button.room-nav.active {
  background: transparent;
  color: var(--fog-100);
}

.connection-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(240, 199, 124, 0.2);
  background: rgba(24, 38, 42, 0.72);
}

.connection-card::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(240, 199, 124, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 1.7rem rgba(240, 199, 124, 0.03), 0 0 0 3.4rem rgba(240, 199, 124, 0.025);
}

.connection-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.connection-copy h2 {
  margin: 0 0 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.connection-copy p {
  margin: 0;
  color: var(--fog-500);
  font-size: 0.75rem;
}

.mission {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission p {
  margin: 0.45rem 0 0;
  color: var(--fog-300);
  line-height: 1.5;
}

.empty-state {
  padding: 3rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state .empty-orbits {
  position: relative;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(126, 209, 195, 0.2);
  border-radius: 50%;
}

.empty-state .empty-orbits::before,
.empty-state .empty-orbits::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 199, 124, 0.18);
  border-radius: 50%;
  inset: 1.2rem;
}

.empty-state .empty-orbits::after {
  inset: 2.8rem;
  border: 0;
  background: var(--gold-300);
  box-shadow: 0 0 18px rgba(240, 199, 124, 0.55);
}

.empty-state h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.empty-state p {
  max-width: 28rem;
  margin: 0.7rem auto 0;
  color: var(--fog-500);
  line-height: 1.6;
}

.broadcast-card {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.broadcast-card blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  line-height: 1.3;
}

.broadcast-card footer {
  margin-top: 0.85rem;
  color: var(--fog-500);
  font-size: 0.72rem;
}

.signal-transmitter {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 196, 0.13);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 4%, rgba(126, 209, 195, 0.09), transparent 17rem),
    linear-gradient(180deg, rgba(14, 31, 36, 0.84), rgba(7, 18, 22, 0.94));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
}

.send-wave-stage {
  position: relative;
  width: min(12rem, 52vw);
  aspect-ratio: 2 / 1;
  margin: 1.25rem auto 0.3rem;
}

.send-wave-core {
  position: absolute;
  z-index: 2;
  bottom: 18%;
  left: 50%;
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe0a0;
  box-shadow: 0 0 12px rgba(240, 199, 124, 0.78), 0 0 30px rgba(240, 199, 124, 0.28);
  transform: translateX(-50%);
}

.send-wave-ring {
  position: absolute;
  bottom: 18%;
  left: 50%;
  border: 1px solid rgba(126, 209, 195, 0.4);
  border-bottom-color: transparent;
  border-radius: 50% 50% 46% 46%;
  transform: translate(-50%, 50%);
  animation: send-wave-breathe 2.8s ease-out infinite;
}

.send-wave-ring.ring-one {
  width: 3.4rem;
  aspect-ratio: 1;
}

.send-wave-ring.ring-two {
  width: 6.4rem;
  aspect-ratio: 1;
  opacity: 0.64;
  animation-delay: -0.9s;
}

.send-wave-ring.ring-three {
  width: 9.4rem;
  aspect-ratio: 1;
  opacity: 0.34;
  animation-delay: -1.8s;
}

.send-wave-stage > i {
  position: absolute;
  z-index: 3;
  bottom: 11%;
  left: 50%;
  width: 1px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-300), rgba(240, 199, 124, 0.08));
  box-shadow: 0 0 6px rgba(240, 199, 124, 0.28);
}

.send-wave-stage > i:nth-of-type(1) { height: 0.55rem; transform: translateX(-2.4rem); }
.send-wave-stage > i:nth-of-type(2) { height: 1rem; transform: translateX(-1.25rem); }
.send-wave-stage > i:nth-of-type(3) { height: 1.45rem; transform: translateX(0); }
.send-wave-stage > i:nth-of-type(4) { height: 0.85rem; transform: translateX(1.25rem); }
.send-wave-stage > i:nth-of-type(5) { height: 0.48rem; transform: translateX(2.4rem); }

.transmitter-copy {
  max-width: 25rem;
  margin: 0 auto;
  padding: 0.4rem 1.1rem 1rem;
  text-align: center;
}

.transmitter-copy p:last-child {
  margin: 0.45rem 0 0;
  color: var(--fog-500);
  font-size: 0.7rem;
  line-height: 1.55;
}

.inline-signal-form {
  padding: 1rem;
  border-top: 1px solid rgba(174, 205, 196, 0.1);
  background: rgba(4, 13, 17, 0.42);
}

.inline-signal-form .field textarea {
  min-height: 7rem;
  background: rgba(2, 10, 13, 0.7);
}

.send-signal-action {
  position: relative;
  overflow: hidden;
}

.send-signal-action::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-16deg);
  transition: left 520ms ease;
}

.send-signal-action:hover::after,
.send-signal-action:focus-visible::after {
  left: 115%;
}

.current-broadcast {
  margin-top: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.current-broadcast header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.current-broadcast header small {
  color: var(--fog-500);
  font-size: 0.58rem;
}

.current-broadcast blockquote {
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.current-broadcast > p {
  margin: 0.7rem 0 0;
  color: var(--fog-500);
  font-size: 0.62rem;
  line-height: 1.5;
}

@keyframes send-wave-breathe {
  0% { opacity: 0; transform: translate(-50%, 50%) scale(0.68); }
  32% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-50%, 50%) scale(1.08); }
}

.primary-action,
.secondary-action,
.danger-action {
  display: flex;
  width: 100%;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
}

.primary-action {
  background: var(--gold-300);
  color: #1e1a12;
  font-weight: 720;
}

.primary-action small {
  color: rgba(30, 26, 18, 0.65);
  font-weight: 600;
}

.secondary-action {
  border-color: rgba(126, 209, 195, 0.28);
  background: rgba(126, 209, 195, 0.07);
  color: var(--teal-300);
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: saturate(0.45);
}

.danger-action {
  border-color: rgba(225, 130, 120, 0.24);
  background: rgba(225, 130, 120, 0.06);
  color: var(--danger);
}

.profile-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.gender-male,
.gender-resonance-card[data-gender-choice="male"] {
  --gender-color: #6daef7;
  --gender-color-soft: #b9dcff;
  --gender-glow: rgba(70, 148, 240, 0.34);
}

.gender-female,
.gender-resonance-card[data-gender-choice="female"] {
  --gender-color: #ef8db7;
  --gender-color-soft: #ffd0e0;
  --gender-glow: rgba(239, 108, 166, 0.32);
}

.gender-open,
.gender-resonance-card[data-gender-choice="open"] {
  --gender-color: #a786ff;
  --gender-color-soft: #66d9ca;
  --gender-glow: rgba(134, 111, 245, 0.34);
}

.profile-media-card {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 1.7rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 0.8rem;
  background: rgba(8, 22, 27, 0.66);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.profile-cover {
  position: relative;
  aspect-ratio: 9 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 25%, rgba(126, 209, 195, 0.11), transparent 28%),
    repeating-radial-gradient(circle at 25% 120%, transparent 0 2.5rem, rgba(126, 209, 195, 0.045) 2.55rem 2.6rem),
    var(--ink-850);
}

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

.profile-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(8, 22, 27, 0.62));
  pointer-events: none;
}

.profile-cover-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--fog-500);
  text-align: center;
}

.profile-cover-empty span {
  width: 3.4rem;
  aspect-ratio: 1;
  margin: 0 auto 0.45rem;
  border: 1px solid rgba(126, 209, 195, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(126, 209, 195, 0.025), 0 0 0 2.8rem rgba(126, 209, 195, 0.018);
}

.profile-cover-empty small {
  font-size: 0.58rem;
}

.profile-media-edit {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(240, 199, 124, 0.34);
  border-radius: 0.4rem;
  background: rgba(8, 22, 27, 0.78);
  color: var(--gold-300);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.profile-media-edit span {
  font-size: 0.58rem;
  font-weight: 720;
}

.profile-media-edit small {
  color: var(--fog-500);
  font-size: 0.48rem;
}

.profile-avatar-ring {
  position: relative;
  z-index: 3;
  display: grid;
  width: 6.5rem;
  aspect-ratio: 1;
  place-items: center;
  margin: -3.45rem 0 0 1rem;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gender-color), var(--gender-color-soft), var(--gender-color));
  box-shadow: 0 0 0 5px rgba(8, 22, 27, 0.9), 0 0 30px var(--gender-glow);
}

.profile-avatar {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gender-glow), transparent 55%), var(--ink-850);
  color: var(--gender-color-soft);
  font-size: 1.65rem;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-edit {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(240, 199, 124, 0.5);
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gold-300);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(8, 22, 27, 0.82);
}

.profile-media-copy {
  min-height: 4.9rem;
  margin-top: -2.75rem;
  padding: 0 1rem 1.2rem 8.35rem;
}

.profile-media-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.profile-media-copy p {
  margin: 0.25rem 0 0;
  color: var(--fog-500);
  font-size: 0.7rem;
  line-height: 1.4;
}

.profile-orb-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.profile-orb {
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(240, 199, 124, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(240, 199, 124, 0.21), transparent 54%), var(--ink-850);
  font-size: 1.55rem;
  box-shadow: 0 0 32px rgba(240, 199, 124, 0.1);
}

.profile-gender-symbol {
  position: absolute;
  right: -0.35rem;
  bottom: -0.2rem;
  display: grid;
  width: 1.85rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gender-color, var(--gold-300));
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gender-color-soft, var(--gold-300));
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(8, 22, 27, 0.86), 0 0 18px var(--gender-glow, rgba(240, 199, 124, 0.26));
}

.profile-identity h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.profile-identity p {
  margin: 0.25rem 0 0;
  color: var(--fog-500);
  font-size: 0.75rem;
}

.profile-gender {
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--gender-color, var(--gold-300)) 34%, transparent);
  border-radius: 0.35rem;
  background: rgba(240, 199, 124, 0.055);
  color: var(--gender-color-soft, var(--gold-300));
  font-size: 0.68rem;
}

.profile-gender small {
  color: var(--fog-500);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.frequency-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.frequency {
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(126, 209, 195, 0.18);
  border-radius: 2rem;
  color: var(--fog-300);
  font-size: 0.72rem;
}

.settings-list {
  border-top: 1px solid var(--line);
}

.settings-row {
  display: flex;
  width: 100%;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fog-300);
  text-align: left;
  cursor: pointer;
}

.settings-row small {
  color: var(--fog-500);
}

.sheet {
  width: min(100%, 34rem);
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 1.5rem 1.5rem 0 0;
  background: transparent;
  color: var(--fog-100);
}

.sheet::backdrop {
  background: rgba(2, 8, 11, 0.75);
  backdrop-filter: blur(8px);
}

.sheet[open] {
  animation: sheet-up 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-panel {
  max-height: 92dvh;
  overflow-y: auto;
  padding: 1.25rem 1.2rem calc(1.4rem + var(--safe-bottom));
  border: 1px solid rgba(174, 205, 196, 0.15);
  border-bottom: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 85% 0, rgba(200, 140, 62, 0.12), transparent 17rem),
    #0e1d23;
  box-shadow: var(--shadow);
}

.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.sheet-head h2 {
  margin: 0.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.icon-button {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fog-300);
  font-size: 1.35rem;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.field > span,
.signal-types legend {
  color: var(--fog-300);
  font-size: 0.75rem;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(174, 205, 196, 0.17);
  border-radius: 0.65rem;
  background: rgba(4, 14, 18, 0.5);
  color: var(--fog-100);
}

.field input {
  min-height: 3.15rem;
  padding: 0 0.85rem;
}

.field textarea {
  resize: vertical;
  padding: 0.85rem;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #647a77;
}

.field small {
  color: var(--fog-500);
  font-size: 0.65rem;
  text-align: right;
}

.signal-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.signal-types legend {
  width: 100%;
  margin-bottom: 0.35rem;
}

.signal-types input {
  position: absolute;
  opacity: 0;
}

.signal-types span {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(174, 205, 196, 0.15);
  border-radius: 2rem;
  color: var(--fog-500);
  font-size: 0.7rem;
  cursor: pointer;
}

.signal-types input:checked + span {
  border-color: rgba(240, 199, 124, 0.4);
  background: rgba(240, 199, 124, 0.09);
  color: var(--gold-300);
}

.signal-detail-hero {
  position: relative;
  display: grid;
  min-height: 11rem;
  place-items: center;
  overflow: hidden;
  margin: -0.1rem 0 1.2rem;
  border: 1px solid rgba(126, 209, 195, 0.12);
  background: rgba(7, 18, 22, 0.5);
}

.signal-detail-hero.has-cover {
  min-height: 13rem;
  align-items: end;
  justify-items: start;
  padding: 0 0 0.85rem 1rem;
}

.signal-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-detail-hero.has-cover::before,
.signal-detail-hero.has-cover::after {
  display: none;
}

.signal-detail-hero.has-cover > .signal-cover-image + .detail-avatar-ring::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 50%;
  background: rgba(8, 22, 27, 0.36);
  filter: blur(12px);
}

.detail-avatar-ring {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gender-color), var(--gender-color-soft), var(--gender-color));
  box-shadow: 0 0 0 5px rgba(8, 22, 27, 0.82), 0 0 26px var(--gender-glow);
}

.detail-orb {
  display: grid;
  width: 6.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(240, 199, 124, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(240, 199, 124, 0.22), transparent 56%), var(--ink-850);
  font-size: 2rem;
  filter: blur(2px);
  box-shadow: 0 0 50px rgba(240, 199, 124, 0.12);
  overflow: hidden;
}

.detail-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gender-symbol {
  position: absolute;
  z-index: 2;
  right: -0.45rem;
  bottom: -0.25rem;
  display: grid;
  width: 2.3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gender-color);
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gender-color-soft);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px rgba(8, 22, 27, 0.78), 0 0 24px var(--gender-glow);
}

.signal-detail-hero::before,
.signal-detail-hero::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(126, 209, 195, 0.12);
  border-radius: 50%;
}

.signal-detail-hero::after {
  width: 14rem;
  height: 14rem;
}

.signal-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  color: var(--fog-500);
  font-size: 0.69rem;
}

.signal-gender {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid rgba(240, 199, 124, 0.48);
  background: linear-gradient(90deg, rgba(240, 199, 124, 0.075), transparent);
}

.signal-gender small {
  color: var(--fog-500);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
}

.signal-gender span {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.life-quote {
  margin: 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.detail-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.safety-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.safety-actions button {
  border: 0;
  background: transparent;
  color: var(--fog-500);
  font-size: 0.68rem;
  cursor: pointer;
}

.quiet-copy {
  margin: -0.35rem 0 1.2rem;
  color: var(--fog-500);
  font-size: 0.78rem;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  min-height: 2.8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--fog-500);
  cursor: pointer;
}

.auth-tab.active {
  border-bottom-color: var(--gold-300);
  color: var(--fog-100);
}

.auth-panel[data-mode="login"] .register-only {
  display: none;
}

.frequency-picker {
  margin-top: 0.25rem;
}

.onboarding-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink-950);
  color: var(--fog-100);
}

.onboarding-dialog::backdrop {
  background: var(--ink-950);
}

.onboarding-dialog[open] {
  animation: calibration-in 380ms ease both;
}

.calibration-shell {
  position: relative;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(1.4rem, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(73, 145, 132, 0.2), transparent 32rem),
    radial-gradient(circle at 95% 82%, rgba(200, 140, 62, 0.12), transparent 23rem),
    var(--ink-950);
}

.calibration-shell::before {
  content: "";
  position: fixed;
  top: 17%;
  right: -10rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(126, 209, 195, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(126, 209, 195, 0.025),
    0 0 0 8rem rgba(126, 209, 195, 0.018);
  pointer-events: none;
}

.calibration-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto 1.2rem;
}

.calibration-head .icon-button {
  justify-self: start;
}

.calibration-head > .text-button {
  justify-self: end;
  font-size: 0.72rem;
}

.calibration-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--fog-300);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.calibration-brand .brand-mark {
  width: 1.65rem;
}

.calibration-progress {
  position: relative;
  width: min(100%, 32rem);
  height: 2px;
  margin: 0 auto 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.calibration-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--gold-300);
  box-shadow: 0 0 14px rgba(240, 199, 124, 0.45);
  transition: width 350ms ease;
}

.step-count {
  width: min(100%, 32rem);
  margin: 0 auto;
  color: var(--fog-500);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.calibration-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 32rem);
  min-height: calc(100dvh - 8rem);
  margin: 0 auto;
  align-items: center;
  padding: 1.4rem 0 3rem;
}

.calibration-stage.wide {
  width: min(100%, 48rem);
  align-items: start;
}

.calibration-form {
  width: 100%;
  animation: view-in 380ms ease both;
}

.calibration-form h2,
.calibration-complete h2 {
  max-width: 13ch;
  margin: 0.55rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 11vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.calibration-copy {
  max-width: 36rem;
  margin: 0 0 1.65rem;
  color: var(--fog-500);
  font-size: 0.86rem;
  line-height: 1.6;
}

.calibration-input {
  display: grid;
  gap: 0.48rem;
  margin-bottom: 1rem;
}

.calibration-input > span,
.depth-label {
  color: var(--fog-300);
  font-size: 0.72rem;
  font-weight: 650;
}

.calibration-input input,
.calibration-input textarea,
.calibration-input select,
.visibility-control select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(174, 205, 196, 0.22);
  border-radius: 0;
  background: rgba(8, 22, 27, 0.42);
  color: var(--fog-100);
}

.calibration-input input,
.calibration-input select {
  min-height: 3.45rem;
  padding: 0 0.85rem;
}

.calibration-input textarea {
  resize: vertical;
  padding: 0.85rem;
  line-height: 1.55;
}

.calibration-input small {
  color: var(--fog-500);
  font-size: 0.65rem;
  line-height: 1.4;
}

.calibration-input input::placeholder,
.calibration-input textarea::placeholder {
  color: #5e7772;
}

.consent-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0;
  color: var(--fog-300);
  font-size: 0.75rem;
}

.consent-line input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold-300);
}

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

.birth-calibration {
  margin: 1.5rem 0 0.7rem;
  padding: 1.35rem 0 1.1rem;
  border-top: 1px solid rgba(174, 205, 196, 0.12);
  border-bottom: 1px solid rgba(174, 205, 196, 0.12);
}

.birth-calibration-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.birth-calibration-head .eyebrow {
  margin-bottom: 0.35rem;
}

.birth-calibration-head h3 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.05;
}

.birth-year-output {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 14vw, 4.2rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-shadow: 0 0 26px rgba(240, 199, 124, 0.2);
}

.year-timeline {
  display: block;
  margin: 1.35rem 0 0;
}

.year-timeline input {
  width: 100%;
  height: 1.8rem;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.year-timeline input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(174, 205, 196, 0.18) 9.5% 10%),
    linear-gradient(90deg, rgba(126, 209, 195, 0.22), rgba(240, 199, 124, 0.68));
}

.year-timeline input::-webkit-slider-thumb {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.51rem;
  appearance: none;
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 4px rgba(240, 199, 124, 0.12), 0 0 18px rgba(240, 199, 124, 0.42);
}

.year-timeline input::-moz-range-track {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, rgba(126, 209, 195, 0.22), rgba(240, 199, 124, 0.68));
}

.year-timeline input::-moz-range-thumb {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 4px rgba(240, 199, 124, 0.12), 0 0 18px rgba(240, 199, 124, 0.42);
}

.timeline-edge {
  display: flex;
  justify-content: space-between;
  margin-top: -0.25rem;
  color: var(--fog-500);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-response {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border-left: 2px solid rgba(126, 209, 195, 0.36);
  background: linear-gradient(90deg, rgba(126, 209, 195, 0.07), transparent);
}

.generation-badge {
  width: max-content;
  color: var(--teal-300);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.time-response strong {
  color: var(--fog-300);
  font-size: 0.76rem;
  font-weight: 620;
}

.time-response p {
  margin: 0.2rem 0 0;
  color: var(--fog-500);
  font-size: 0.69rem;
  line-height: 1.5;
}

.time-response p span {
  color: var(--gold-300);
}

.month-calibration {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.month-orbit {
  position: relative;
  width: min(19rem, 88vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(126, 209, 195, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(240, 199, 124, 0.08) 0 20%, transparent 21% 49%, rgba(126, 209, 195, 0.025) 50% 51%, transparent 52%),
    repeating-radial-gradient(circle, transparent 0 2.9rem, rgba(126, 209, 195, 0.035) 3rem 3.05rem);
  box-shadow: inset 0 0 40px rgba(126, 209, 195, 0.025);
}

.zodiac-orbit {
  width: min(20rem, 92vw);
}

.month-orbit::before,
.month-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 209, 195, 0.08), transparent);
  transform: translate(-50%, -50%);
}

.month-orbit::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.month-node {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(174, 205, 196, 0.17);
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--fog-500);
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-8.1rem);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.zodiac-node {
  top: var(--y);
  left: var(--x);
  width: 18%;
  height: 18%;
  overflow: hidden;
  border: 1px solid rgba(240, 199, 124, 0.3);
  background: rgba(8, 22, 27, 0.36);
  box-shadow: inset 0 0 12px rgba(240, 199, 124, 0.035);
  transform: translate(-50%, -50%);
}

.zodiac-node img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.month-node span {
  font-size: 0.56rem;
  font-weight: 720;
  transform: rotate(calc(-1 * var(--angle)));
}

.zodiac-node:hover,
.zodiac-node:focus-visible {
  border-color: rgba(240, 199, 124, 0.76);
  background: rgba(240, 199, 124, 0.055);
  outline: none;
}

.zodiac-node:hover img,
.zodiac-node:focus-visible img,
.zodiac-node.selected img {
  filter: brightness(1.1) saturate(1.08);
  transform: scale(1.04);
}

.month-node:hover,
.month-node:focus-visible {
  border-color: rgba(126, 209, 195, 0.55);
  color: var(--fog-100);
}

.month-node.selected {
  border-color: var(--gold-300);
  background: var(--gold-300);
  color: #1e1a12;
  box-shadow: 0 0 0 5px rgba(240, 199, 124, 0.1), 0 0 22px rgba(240, 199, 124, 0.3);
}

.month-node.zodiac-node.selected {
  border-color: var(--gold-300);
  background: rgba(240, 199, 124, 0.08);
  color: var(--gold-300);
  box-shadow: 0 0 0 4px rgba(240, 199, 124, 0.1), 0 0 24px rgba(240, 199, 124, 0.42);
}

.month-orbit-core {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 8.4rem;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid rgba(240, 199, 124, 0.18);
  border-radius: 50%;
  background: rgba(8, 22, 27, 0.82);
  text-align: center;
  transform: translate(-50%, -50%);
}

.month-orbit-core small {
  color: var(--fog-500);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
}

.month-orbit-core b {
  margin-top: 0.22rem;
  color: var(--gold-300);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.month-orbit-core strong {
  margin: 0.12rem 0 0.16rem;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.month-orbit-core span {
  color: var(--fog-500);
  font-size: 0.56rem;
}

.zodiac-calibration {
  padding: 0.9rem;
  border: 1px solid rgba(174, 205, 196, 0.1);
  background: rgba(12, 29, 35, 0.34);
}

.zodiac-calibration > p {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.zodiac-calibration > p span,
.zodiac-calibration > p small {
  display: block;
}

.zodiac-calibration > p span {
  color: var(--fog-300);
  font-size: 0.7rem;
  font-weight: 700;
}

.zodiac-calibration > p small {
  max-width: 15rem;
  color: var(--fog-500);
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: right;
}

.zodiac-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.zodiac-choice {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 0.55rem;
  background: transparent;
  color: var(--fog-500);
  cursor: pointer;
}

.zodiac-choice span {
  font-size: 1.25rem;
}

.zodiac-choice strong {
  font-size: 0.66rem;
}

.zodiac-choice.selected {
  border-color: rgba(240, 199, 124, 0.44);
  background: rgba(240, 199, 124, 0.08);
  color: var(--gold-300);
}

.birth-privacy {
  margin: 0.8rem 0 0;
  color: var(--fog-500);
  font-size: 0.6rem;
  line-height: 1.45;
  text-align: center;
}

.gender-calibration {
  margin-top: 1.6rem;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(174, 205, 196, 0.12);
}

.gender-calibration-head .eyebrow {
  margin-bottom: 0.45rem;
}

.gender-calibration-head h3 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.05;
}

.gender-calibration-head > p:last-child {
  max-width: 30rem;
  margin: 0.65rem 0 0;
  color: var(--fog-500);
  font-size: 0.7rem;
  line-height: 1.55;
}

.gender-resonance-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.gender-resonance-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr) 2.8rem;
  min-height: 6.25rem;
  overflow: hidden;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.55rem 0.55rem 0.35rem;
  border: 1px solid rgba(174, 205, 196, 0.14);
  border-radius: 0.6rem;
  background:
    linear-gradient(100deg, rgba(126, 209, 195, 0.045), transparent 44%),
    rgba(8, 22, 27, 0.56);
  color: var(--fog-300);
  text-align: left;
  cursor: pointer;
  transition: min-height 300ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.gender-resonance-card:hover,
.gender-resonance-card:focus-visible {
  border-color: rgba(240, 199, 124, 0.48);
  outline: none;
  transform: translateY(-1px);
}

.gender-resonance-card.selected {
  min-height: 8.25rem;
  border-color: rgba(240, 199, 124, 0.75);
  background:
    radial-gradient(circle at 14% 35%, rgba(240, 199, 124, 0.12), transparent 36%),
    linear-gradient(100deg, rgba(126, 209, 195, 0.07), transparent 54%),
    rgba(8, 22, 27, 0.76);
  box-shadow: 0 0 0 4px rgba(240, 199, 124, 0.055), 0 0 28px rgba(240, 199, 124, 0.12);
}

.gender-portrait {
  position: relative;
  display: grid;
  width: 5.3rem;
  height: 5.3rem;
  align-self: start;
  place-items: end center;
  overflow: visible;
  background: transparent;
}

.gender-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.9) brightness(0.93);
  pointer-events: none;
  transition: filter 240ms ease, transform 300ms ease;
}

.gender-symbol {
  display: grid;
  width: 2.55rem;
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--gender-color) 52%, transparent);
  border-radius: 50%;
  background: rgba(8, 22, 27, 0.7);
  color: var(--gender-color-soft);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 0 16px var(--gender-glow);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 300ms ease;
}

.gender-resonance-card.selected .gender-symbol {
  border-color: var(--gender-color);
  background: color-mix(in srgb, var(--gender-color) 12%, rgba(8, 22, 27, 0.8));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gender-color) 8%, transparent), 0 0 22px var(--gender-glow);
  transform: rotate(6deg) scale(1.08);
}

.gender-resonance-card.selected .gender-portrait img {
  filter: saturate(1.05) brightness(1.08);
  transform: scale(1.06);
}

.gender-card-copy {
  display: grid;
  gap: 0.25rem;
}

.gender-card-copy small {
  color: var(--teal-300);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.gender-card-copy strong {
  color: var(--fog-100);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.gender-card-copy > span {
  color: var(--fog-500);
  font-size: 0.62rem;
  line-height: 1.45;
}

.gender-card-detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  margin-top: -0.8rem;
  padding-left: 0.55rem;
  border-left: 1px solid transparent;
  color: transparent;
  font-size: 0.61rem;
  line-height: 1.5;
  transition: max-height 300ms ease, margin 300ms ease, color 220ms ease, border-color 220ms ease;
}

.gender-resonance-card.selected .gender-card-detail {
  max-height: 3rem;
  margin-top: 0;
  border-left-color: rgba(240, 199, 124, 0.4);
  color: var(--fog-300);
}

.gender-echo-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), var(--teal-300), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms ease 80ms;
}

.gender-resonance-card.selected .gender-echo-line {
  transform: scaleX(1);
}

.gender-response {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 0.9rem;
  border-left: 2px solid transparent;
  opacity: 0;
  transition: max-height 320ms ease, margin 320ms ease, padding 320ms ease, opacity 220ms ease, border-color 220ms ease;
}

.gender-response.is-visible {
  max-height: 8rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-left-color: rgba(126, 209, 195, 0.5);
  background: linear-gradient(90deg, rgba(126, 209, 195, 0.07), transparent);
  opacity: 1;
}

.gender-response small {
  color: var(--teal-300);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.gender-response p {
  margin: 0.35rem 0 0;
  color: var(--fog-300);
  font-size: 0.66rem;
  line-height: 1.55;
}

.open-spectrum-label {
  display: grid;
  max-height: 0;
  overflow: hidden;
  gap: 0.4rem;
  margin: 0;
  opacity: 0;
  transition: max-height 320ms ease, margin 320ms ease, opacity 220ms ease;
}

.open-spectrum-label.is-visible {
  max-height: 9rem;
  margin-top: 1rem;
  opacity: 1;
}

.open-spectrum-label > span {
  color: var(--fog-300);
  font-size: 0.7rem;
  font-weight: 650;
}

.open-spectrum-label input {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(240, 199, 124, 0.25);
  border-radius: 0.45rem;
  background: rgba(8, 22, 27, 0.7);
  color: var(--fog-100);
}

.open-spectrum-label small,
.gender-visibility-note {
  color: var(--fog-500);
  font-size: 0.56rem;
  line-height: 1.45;
}

.gender-visibility-note {
  margin: 0.9rem 0 0;
  text-align: center;
}

.calibration-next {
  margin-top: 1.4rem;
}

.demo-notice {
  margin: 1rem 0 0;
  color: var(--fog-500);
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: center;
}

.signal-name-input input {
  min-height: 4.3rem;
  padding-left: 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.signal-preview {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-preview small,
.signal-preview strong {
  display: block;
}

.signal-preview small {
  color: var(--fog-500);
  font-size: 0.65rem;
}

.signal-preview strong {
  margin-top: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.frequency-counters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.frequency-counters span {
  min-width: 6.5rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid rgba(174, 205, 196, 0.15);
  color: var(--fog-500);
  font-size: 0.7rem;
}

.frequency-counters span.complete {
  border-left-color: var(--gold-300);
  color: var(--gold-300);
}

.frequency-counters strong {
  display: block;
  color: var(--fog-100);
  font-size: 0.95rem;
}

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

.frequency-choice {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 0.65rem;
  background: rgba(12, 29, 35, 0.45);
  color: var(--fog-300);
  text-align: left;
  cursor: pointer;
}

.frequency-choice span {
  min-width: 0;
  font-size: 0.72rem;
}

.frequency-choice small {
  color: var(--fog-500);
  font-size: 0.58rem;
}

.frequency-choice.primary {
  border-color: rgba(240, 199, 124, 0.48);
  background: rgba(240, 199, 124, 0.1);
  color: var(--gold-300);
}

.frequency-choice.secondary {
  border-color: rgba(126, 209, 195, 0.36);
  background: rgba(126, 209, 195, 0.07);
  color: var(--teal-300);
}

.sensitive-field {
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sensitive-field summary {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fog-300);
  font-size: 0.72rem;
  cursor: pointer;
}

.sensitive-field summary span {
  color: var(--gold-300);
  font-size: 0.6rem;
}

.sensitive-field > p {
  margin: 0 0 0.8rem;
  color: var(--fog-500);
  font-size: 0.68rem;
  line-height: 1.5;
}

.sensitive-field .frequency-grid {
  padding-bottom: 0.8rem;
}

.reception-grid {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.reception-option input {
  position: absolute;
  opacity: 0;
}

.reception-option span {
  display: grid;
  min-height: 3.75rem;
  align-content: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 0.65rem;
  background: rgba(12, 29, 35, 0.4);
  cursor: pointer;
}

.reception-option strong,
.reception-option small {
  display: block;
}

.reception-option strong {
  font-size: 0.8rem;
}

.reception-option small {
  margin-top: 0.22rem;
  color: var(--fog-500);
  font-size: 0.65rem;
}

.reception-option input:checked + span {
  border-color: rgba(240, 199, 124, 0.46);
  background: rgba(240, 199, 124, 0.09);
}

.reception-option input:checked + span strong {
  color: var(--gold-300);
}

.prompt-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.prompt-row::-webkit-scrollbar {
  display: none;
}

.prompt-row button {
  flex: 0 0 auto;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(126, 209, 195, 0.18);
  border-radius: 2rem;
  background: transparent;
  color: var(--teal-300);
  font-size: 0.65rem;
  cursor: pointer;
}

.calibration-complete {
  width: 100%;
  text-align: center;
  animation: view-in 480ms ease both;
}

.calibration-complete h2 {
  max-width: none;
}

.calibration-complete > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  color: var(--fog-500);
  line-height: 1.6;
}

.activation-orbit {
  position: relative;
  width: 10rem;
  aspect-ratio: 1;
  margin: 0 auto 1.7rem;
  border: 1px solid rgba(126, 209, 195, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(126, 209, 195, 0.025), 0 0 0 4rem rgba(126, 209, 195, 0.015);
}

.activation-orbit::before,
.activation-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 199, 124, 0.2);
  border-radius: 50%;
  inset: 1.7rem;
}

.activation-orbit::after {
  inset: 4.25rem;
  border: 0;
  background: var(--gold-300);
  box-shadow: 0 0 25px rgba(240, 199, 124, 0.75);
  animation: own-signal 2.8s ease-out infinite;
}

.activation-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.activation-summary span {
  padding: 0.8rem 0.4rem;
  border-right: 1px solid var(--line);
  color: var(--fog-500);
  font-size: 0.6rem;
}

.activation-summary span:last-child {
  border-right: 0;
}

.activation-summary strong {
  display: block;
  overflow: hidden;
  margin-bottom: 0.2rem;
  color: var(--fog-100);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deepen-now {
  margin-top: 1.1rem;
}

.depth-panel {
  padding-bottom: calc(2rem + var(--safe-bottom));
}

.depth-section {
  border-top: 1px solid var(--line);
}

.depth-section:last-of-type {
  border-bottom: 1px solid var(--line);
}

.depth-section summary {
  display: grid;
  grid-template-columns: 2rem 1fr;
  min-height: 4.4rem;
  align-items: center;
  cursor: pointer;
}

.depth-section summary > span {
  color: var(--gold-300);
  font-size: 0.6rem;
}

.depth-section summary strong,
.depth-section summary small {
  grid-column: 2;
}

.depth-section summary strong {
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.depth-section summary small {
  align-self: start;
  margin-top: 0.15rem;
  color: var(--fog-500);
  font-size: 0.62rem;
}

.depth-section-body {
  padding: 0.4rem 0 1.4rem 2rem;
}

.profile-field-block {
  display: contents;
}

.profile-field-block[hidden] {
  display: none;
}

.profile-field-block.is-sensitive .visibility-control {
  border-color: rgba(240, 199, 124, 0.18);
}

.profile-depth-preview {
  margin-bottom: 1.2rem;
}

.profile-depth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-depth-item {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(174, 205, 196, 0.11);
  border-radius: 0.72rem;
  background: rgba(8, 22, 24, 0.58);
}

.profile-depth-item.is-sensitive {
  border-color: rgba(240, 199, 124, 0.16);
}

.profile-depth-item small,
.profile-depth-item span {
  color: var(--fog-500);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-depth-item p {
  margin: 0.3rem 0 0.45rem;
  color: var(--fog-200);
  font-size: 0.67rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-depth-item span {
  color: var(--teal-300);
}

.profile-depth-empty {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed rgba(174, 205, 196, 0.12);
  border-radius: 0.72rem;
  color: var(--fog-500);
  font-size: 0.62rem;
  line-height: 1.55;
}

.depth-label {
  margin: 0.4rem 0 0.7rem;
}

.depth-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.depth-choice-grid input {
  position: absolute;
  opacity: 0;
}

.depth-choice-grid span {
  display: inline-block;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(174, 205, 196, 0.14);
  border-radius: 2rem;
  color: var(--fog-500);
  font-size: 0.67rem;
  cursor: pointer;
}

.depth-choice-grid input:checked + span {
  border-color: rgba(126, 209, 195, 0.38);
  background: rgba(126, 209, 195, 0.08);
  color: var(--teal-300);
}

.visibility-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.2rem 0 1.1rem;
}

.visibility-control > span {
  color: var(--fog-500);
  font-size: 0.62rem;
}

.visibility-control select {
  width: auto;
  min-height: 2.35rem;
  padding: 0 0.45rem;
  color: var(--gold-300);
  font-size: 0.62rem;
}

.depth-save {
  position: sticky;
  bottom: calc(0.7rem + var(--safe-bottom));
  z-index: 2;
  margin-top: 1.2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.toast-region {
  position: fixed;
  z-index: 30;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  left: 1rem;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  max-width: 28rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(240, 199, 124, 0.25);
  border-radius: 0.75rem;
  background: rgba(14, 29, 35, 0.96);
  color: var(--fog-100);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  animation: toast-in 250ms ease both;
}

.boot-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
}

.boot-screen .boot-mark {
  width: 4.5rem;
  animation: own-signal 2.4s ease-out infinite;
}

.boot-screen p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 720;
  letter-spacing: 0.25em;
}

.boot-screen small {
  color: var(--fog-500);
}

.noscript {
  position: relative;
  z-index: 5;
  max-width: 35rem;
  margin: 20vh auto;
  padding: 2rem;
}

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

@keyframes own-signal {
  0% { box-shadow: 0 0 0 0 rgba(240, 199, 124, 0.25), 0 0 22px rgba(240, 199, 124, 0.65); }
  75%, 100% { box-shadow: 0 0 0 2.2rem rgba(240, 199, 124, 0), 0 0 22px rgba(240, 199, 124, 0.4); }
}

@keyframes node-wave {
  0% { transform: scale(0.75); opacity: 0; }
  25% { opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes signal-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -0.28rem; }
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(0.5rem); }
}

@keyframes sheet-up {
  from { transform: translateY(20%); opacity: 0; }
}

@keyframes toast-in {
  from { transform: translateY(-0.5rem); opacity: 0; }
}

.media-editor-dialog {
  width: min(100%, 42rem);
  max-width: none;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fog-100);
}

.media-editor-dialog::backdrop {
  background: rgba(2, 8, 10, 0.82);
  backdrop-filter: blur(9px);
}

.media-editor-panel {
  min-height: 100dvh;
  padding: max(1.1rem, env(safe-area-inset-top)) 1rem max(1.3rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 90% 8%, rgba(126, 209, 195, 0.08), transparent 30%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}

.media-editor-panel .sheet-head h2 {
  font-size: 1.65rem;
}

.media-editor-copy {
  margin: 0 0 1rem;
  color: var(--fog-500);
  font-size: 0.76rem;
  line-height: 1.55;
}

.media-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  padding: 0.25rem;
  border: 1px solid rgba(174, 205, 196, 0.1);
  border-radius: 0.55rem;
  background: rgba(8, 22, 27, 0.6);
}

.media-kind-tabs button {
  padding: 0.65rem 0.5rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--fog-500);
  font-size: 0.68rem;
  cursor: pointer;
}

.media-kind-tabs button.active {
  background: rgba(240, 199, 124, 0.1);
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(240, 199, 124, 0.24);
}

.media-file-picker {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(126, 209, 195, 0.28);
  border-radius: 0.55rem;
  background: rgba(126, 209, 195, 0.035);
  cursor: pointer;
}

.media-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.media-file-picker span {
  color: var(--teal-300);
  font-size: 0.72rem;
  font-weight: 700;
}

.media-file-picker small {
  color: var(--fog-500);
  font-size: 0.55rem;
}

.media-crop-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(240, 199, 124, 0.24);
  background: #08161b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  touch-action: none;
  user-select: none;
}

.media-crop-shell.background {
  aspect-ratio: 9 / 4;
  border-radius: 0.6rem;
}

.media-crop-shell.avatar {
  width: min(100%, 23rem);
  aspect-ratio: 1;
  border-radius: 50%;
}

.media-crop-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.media-crop-shell canvas:active {
  cursor: grabbing;
}

.media-crop-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 199, 124, 0.3);
  pointer-events: none;
}

.media-crop-shell.avatar::after {
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(8, 22, 27, 0.32);
}

.media-crop-hint {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(8, 22, 27, 0.72);
  color: var(--fog-300);
  font-size: 0.48rem;
  pointer-events: none;
}

.media-zoom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0.9rem 0;
  color: var(--fog-300);
  font-size: 0.62rem;
}

.media-zoom input {
  width: 100%;
  accent-color: var(--gold-300);
}

.media-zoom small {
  width: 2.6rem;
  color: var(--gold-300);
  text-align: right;
}

.media-format-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.9rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid rgba(126, 209, 195, 0.42);
  background: linear-gradient(90deg, rgba(126, 209, 195, 0.06), transparent);
}

.media-format-note span {
  flex: 0 0 auto;
  color: var(--teal-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.media-format-note p {
  margin: 0;
  color: var(--fog-500);
  font-size: 0.57rem;
  line-height: 1.45;
}

.signal-discovery {
  margin-top: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-discovery small,
.echo-common small {
  color: var(--teal-300);
  font-size: 0.56rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.signal-discovery p,
.echo-common p {
  margin: 0.35rem 0 0;
  color: var(--fog-300);
  font-size: 0.72rem;
  line-height: 1.5;
}

.echo-stack {
  display: grid;
  gap: 0.8rem;
}

.echo-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(174, 205, 196, 0.14);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(126, 209, 195, 0.055), transparent 36%),
    rgba(12, 27, 33, 0.76);
}

.echo-card.is-mutual {
  border-color: rgba(240, 199, 124, 0.25);
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 199, 124, 0.09), transparent 36%),
    rgba(16, 30, 35, 0.82);
}

.echo-card-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.echo-card-signal h2 {
  margin: 0.18rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.echo-card-signal small {
  display: block;
  margin-top: 0.15rem;
  color: var(--fog-500);
  font-size: 0.65rem;
}

.echo-state-light {
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(143, 166, 162, 0.36);
}

.echo-card.is-mutual .echo-state-light {
  background: var(--gold-300);
  box-shadow: 0 0 14px rgba(240, 199, 124, 0.62);
}

.echo-common {
  margin: 0.85rem 0;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(174, 205, 196, 0.09);
  border-bottom: 1px solid rgba(174, 205, 196, 0.09);
}

.echo-card-actions {
  display: grid;
  gap: 0.55rem;
}

.quiet-action {
  min-height: 2.45rem;
  border: 0;
  background: transparent;
  color: var(--fog-500);
  font-size: 0.64rem;
  cursor: pointer;
}

.waiting-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fog-500);
  font-size: 0.66rem;
}

.waiting-line span {
  width: 1.8rem;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--teal-300), transparent);
  animation: waiting-signal 2.2s ease-in-out infinite;
}

.waiting-line p {
  margin: 0;
}

.room-shell {
  isolation: isolate;
}

.room-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(126, 209, 195, 0.035), transparent 34rem),
    rgba(2, 7, 10, 0.74);
  pointer-events: none;
  transition: background 900ms ease;
}

.room-shell-lit::before {
  background:
    radial-gradient(circle at 50% 34%, rgba(240, 199, 124, 0.11), transparent 28rem),
    radial-gradient(circle at 24% 58%, rgba(203, 120, 111, 0.055), transparent 22rem),
    rgba(3, 10, 13, 0.56);
}

.funkraum-view {
  --room-glow: rgba(240, 199, 124, 0);
  max-width: 38rem;
}

.funkraum-view.is-lit {
  --room-glow: rgba(240, 199, 124, 0.24);
}

.funkraum-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.funkraum-head h1 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.funkraum-head > div > p:last-child {
  margin: 0.35rem 0 0;
  color: var(--fog-500);
  font-size: 0.7rem;
}

.room-live-state {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.55rem;
  color: rgba(143, 166, 162, 0.55);
}

.room-live-state > span {
  width: 0.58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #253236;
}

.room-live-state small {
  font-size: 0.49rem;
  font-weight: 720;
  letter-spacing: 0.09em;
}

.room-live-state.light-live {
  color: var(--gold-300);
}

.room-live-state.light-live > span {
  background: #ffe2a2;
  box-shadow: 0 0 14px rgba(240, 199, 124, 0.76);
}

.room-live-state.both-live {
  color: var(--teal-300);
}

.room-live-state.both-live > span {
  background: #a9efe2;
  box-shadow: 0 0 16px rgba(126, 209, 195, 0.76);
  animation: room-status-breathe 2.4s ease-in-out infinite;
}

.funkraum-place {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 196, 0.1);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(27, 39, 43, 0.62), rgba(5, 13, 17, 0.96) 50%),
    #061014;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 800ms ease, box-shadow 800ms ease, background 800ms ease;
}

.is-lit .funkraum-place {
  border-color: rgba(240, 199, 124, 0.2);
  background:
    radial-gradient(circle at 50% 12%, rgba(240, 199, 124, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(35, 43, 43, 0.78), rgba(7, 16, 20, 0.98) 56%),
    #071116;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 48px var(--room-glow), inset 0 1px rgba(255, 255, 255, 0.04);
}

.room-ambient-glow {
  position: absolute;
  top: -10rem;
  left: 50%;
  width: 23rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--room-glow), transparent 67%);
  transform: translateX(-50%);
  filter: blur(16px);
  pointer-events: none;
  transition: background 900ms ease;
}

.crt-console {
  position: relative;
  padding: 0.82rem 0.82rem 0;
}

.crt-glass {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(126, 209, 195, 0.1);
  border-radius: 1.45rem 1.45rem 1rem 1rem / 1.15rem 1.15rem 0.85rem 0.85rem;
  background:
    radial-gradient(ellipse at center, rgba(25, 52, 53, 0.52), rgba(3, 11, 14, 0.98) 72%),
    #030a0d;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.78), inset 0 0 18px rgba(126, 209, 195, 0.035);
  transition: background 900ms ease, border-color 900ms ease, box-shadow 900ms ease;
}

.is-lit .crt-glass {
  border-color: rgba(240, 199, 124, 0.18);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(44, 68, 64, 0.72), rgba(7, 19, 22, 0.97) 72%),
    #071116;
  box-shadow: inset 0 0 58px rgba(0, 0, 0, 0.58), inset 0 0 28px rgba(240, 199, 124, 0.055), 0 0 24px rgba(240, 199, 124, 0.055);
}

.crt-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(5, 12, 15, 0.16) 4px);
  opacity: 0.35;
  pointer-events: none;
}

.crt-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 22% 76%, rgba(240, 199, 124, 0.025));
  pointer-events: none;
}

.crt-soft-noise {
  position: absolute;
  inset: -35%;
  z-index: 1;
  opacity: 0.04;
  background:
    repeating-radial-gradient(circle at 28% 48%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 68% 32%, rgba(126, 209, 195, 0.24) 0 1px, transparent 1px 7px);
  animation: crt-drift 8s steps(7) infinite;
  pointer-events: none;
}

.crt-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: 1.2rem;
  transition: opacity 850ms ease, filter 850ms ease;
}

.is-dark .crt-content {
  opacity: 0.24;
  filter: saturate(0.55) brightness(0.65) blur(0.18px);
}

.crt-channel {
  margin: 0;
  color: var(--teal-300);
  font-size: 0.53rem;
  font-weight: 720;
  letter-spacing: 0.16em;
}

.standing-message {
  display: grid;
  flex: 1;
  align-content: center;
  padding: 1rem 0.3rem;
}

.standing-message small {
  color: rgba(200, 213, 207, 0.56);
  font-size: 0.5rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.standing-message blockquote {
  margin: 0.6rem 0 0;
  color: #e6ede6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(126, 209, 195, 0.12);
}

.standing-message.from-them blockquote {
  color: #f3dfbc;
  text-shadow: 0 0 20px rgba(240, 199, 124, 0.13);
}

.standing-message time {
  margin-top: 0.65rem;
  color: rgba(143, 166, 162, 0.58);
  font-size: 0.55rem;
}

.room-system-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.7rem;
  border-top: 1px solid rgba(174, 205, 196, 0.08);
}

.room-system-line span {
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(240, 199, 124, 0.48);
}

.room-system-line p {
  margin: 0;
  color: rgba(200, 213, 207, 0.68);
  font-size: 0.58rem;
}

.room-desk {
  position: relative;
  z-index: 2;
  margin-top: -0.15rem;
  padding: 0.9rem;
  border-top: 1px solid rgba(174, 205, 196, 0.1);
  background:
    linear-gradient(180deg, rgba(25, 37, 40, 0.94), rgba(8, 18, 22, 0.98)),
    #0a171c;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.22);
}

.room-desk-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.room-desk-status p {
  margin: 0;
  color: var(--fog-500);
  font-size: 0.62rem;
}

.room-sound-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 2rem;
  background: rgba(5, 14, 18, 0.45);
  color: var(--fog-500);
  font-size: 0.53rem;
  cursor: pointer;
}

.room-sound-toggle.active {
  border-color: rgba(126, 209, 195, 0.3);
  color: var(--teal-300);
}

.room-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.light-switch,
.echo-impulse {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 4.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: end;
  column-gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(174, 205, 196, 0.12);
  border-radius: 0.8rem;
  background: rgba(5, 14, 18, 0.48);
  text-align: left;
  cursor: pointer;
}

.light-switch > span,
.echo-impulse > span {
  grid-row: 1 / 3;
  align-self: center;
}

.light-switch strong,
.echo-impulse strong {
  align-self: end;
  font-size: 0.68rem;
}

.light-switch small,
.echo-impulse small {
  align-self: start;
  overflow: hidden;
  color: var(--fog-500);
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.light-bulb {
  width: 1.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(174, 205, 196, 0.25);
  border-radius: 50% 50% 42% 42%;
  background: #111e22;
  box-shadow: inset 0 -0.2rem rgba(0, 0, 0, 0.18);
}

.light-switch.active {
  border-color: rgba(240, 199, 124, 0.32);
  background: rgba(240, 199, 124, 0.055);
}

.light-switch.active .light-bulb {
  border-color: #ffe2a2;
  background: #f5d28d;
  box-shadow: 0 0 12px rgba(240, 199, 124, 0.65), 0 0 28px rgba(240, 199, 124, 0.26);
}

.echo-impulse > span {
  color: var(--teal-300);
  font-size: 1.4rem;
  text-shadow: 0 0 12px rgba(126, 209, 195, 0.28);
}

.room-message-form {
  margin-top: 0.75rem;
}

.room-message-form label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--fog-500);
  font-size: 0.55rem;
  line-height: 1.45;
}

.room-message-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}

.room-message-form textarea {
  width: 100%;
  min-height: 3.7rem;
  resize: none;
  padding: 0.72rem;
  border: 1px solid rgba(174, 205, 196, 0.13);
  border-radius: 0.72rem;
  background: rgba(2, 10, 13, 0.72);
  color: var(--fog-100);
  font-size: 0.73rem;
  line-height: 1.45;
}

.room-message-form textarea::placeholder {
  color: rgba(143, 166, 162, 0.45);
}

.room-message-form button {
  display: grid;
  min-width: 4.4rem;
  place-items: center;
  align-content: center;
  gap: 0.18rem;
  padding: 0.55rem;
  border: 1px solid rgba(240, 199, 124, 0.32);
  border-radius: 0.72rem;
  background: rgba(240, 199, 124, 0.1);
  color: var(--gold-300);
  cursor: pointer;
}

.room-message-form button span {
  max-width: 3.5rem;
  font-size: 0.54rem;
  line-height: 1.1;
  text-align: center;
}

.room-message-form button i {
  font-style: normal;
}

.room-message-form textarea:disabled,
.room-message-form button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.room-footnote {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem 0;
  color: var(--fog-500);
  font-size: 0.55rem;
}

.room-footnote span {
  color: var(--teal-300);
}

.room-footnote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.room-safety-panel {
  margin-top: 0.9rem;
  border: 1px solid rgba(174, 205, 196, 0.1);
  border-radius: 0.8rem;
  background: rgba(2, 10, 13, 0.34);
  color: var(--fog-500);
}

.room-safety-panel summary {
  padding: 0.76rem 0.85rem;
  color: var(--fog-400);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.room-safety-body {
  display: grid;
  gap: 0.62rem;
  padding: 0 0.85rem 0.85rem;
}

.room-safety-body > p {
  margin: 0;
  font-size: 0.59rem;
  line-height: 1.55;
}

.room-safety-body label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.57rem;
}

.room-safety-body select,
.room-safety-action,
.room-block-confirm button,
.room-release-confirm button {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(174, 205, 196, 0.14);
  border-radius: 0.62rem;
  background: rgba(8, 22, 24, 0.82);
  color: var(--fog-200);
  font: inherit;
}

.room-safety-body select {
  padding: 0 0.65rem;
}

.room-safety-action,
.room-block-confirm button,
.room-release-confirm button {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.room-safety-action.danger,
.room-block-confirm button:first-of-type {
  border-color: rgba(225, 130, 120, 0.28);
  color: var(--danger);
}

.room-block-confirm,
.room-release-confirm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(225, 130, 120, 0.18);
  border-radius: 0.68rem;
  background: rgba(74, 24, 23, 0.16);
}

.room-block-confirm p,
.room-release-confirm p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--fog-300);
  font-size: 0.6rem;
  line-height: 1.45;
}

.dark-room-empty {
  padding-top: 1.2rem;
}

.dark-room-door {
  position: relative;
  width: 7.5rem;
  height: 10rem;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(174, 205, 196, 0.11);
  border-radius: 4rem 4rem 0.7rem 0.7rem;
  background: radial-gradient(circle at 50% 26%, rgba(126, 209, 195, 0.04), transparent 50%), #040c0f;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.68), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.dark-room-door span {
  position: absolute;
  top: 52%;
  right: 1rem;
  width: 0.32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(240, 199, 124, 0.25);
}

@keyframes waiting-signal {
  0%, 100% { opacity: 0.25; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes room-status-breathe {
  0%, 100% { transform: scale(0.9); opacity: 0.72; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes crt-drift {
  0% { transform: translate3d(-2%, -1%, 0); }
  35% { transform: translate3d(2%, 1%, 0); }
  70% { transform: translate3d(-1%, 2%, 0); }
  100% { transform: translate3d(1%, -2%, 0); }
}

[hidden] {
  display: none !important;
}

@media (min-width: 620px) {
  .app-shell {
    padding-top: 1.65rem;
  }

  .sheet {
    margin-right: auto;
    margin-left: auto;
  }

  .view-intro h1 {
    font-size: 4.2rem;
  }

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

  .media-editor-dialog {
    max-height: calc(100dvh - 2rem);
    border: 1px solid rgba(174, 205, 196, 0.13);
    border-radius: 0.8rem;
  }

  .media-editor-panel {
    min-height: auto;
    padding: 1.3rem;
  }
}

@media (min-width: 880px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0 calc(50% - 19rem);
    z-index: 0;
    border-right: 1px solid rgba(174, 205, 196, 0.05);
    border-left: 1px solid rgba(174, 205, 196, 0.05);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
