:root {
  --background: #f7f6f4;
  --foreground: #111111;
  --charcoal: #242424;
  --muted: #777777;
  --panel: #ecebe7;
  --border: #dadad4;
  --pitch-green: #2e7d32;
  --deep-green: #1b5e20;
  --field-green: #5b7f4b;
  --field-shadow: #3f6335;
  --soft-field-green: #8fa67a;
  --pale-pitch-line: #dde8d6;
  --pale-motif-green: #c9d8c0;
  --warm-light: #f2ede6;
  --stadium-glow: #efe6d0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgb(239 230 208 / 28%), transparent 34%),
    var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px;
  isolation: isolate;
}

.app::before,
.app::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: 0;
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  opacity: .48;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.app::before {
  top: 78px;
  height: 230px;
  background-image: url("data:image/svg+xml,%3Csvg width='390' height='230' viewBox='0 0 390 230' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9D8C0' stroke-width='1.5' opacity='.72'%3E%3Cpath d='M22 0v64m346-64v64M22 64h76m194 0h76M98 64v56m194-56v56M98 120H0m292 0h98'/%3E%3Ccircle cx='195' cy='64' r='42'/%3E%3Ccircle cx='195' cy='64' r='3' fill='%23C9D8C0' stroke='none'/%3E%3Cpath d='M0 8c15 0 28-4 39-8m351 8c-15 0-28-4-39-8' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}

.app::after {
  bottom: 0;
  height: 198px;
  background-image: url("data:image/svg+xml,%3Csvg width='390' height='198' viewBox='0 0 390 198' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9D8C0' stroke-width='1.5' opacity='.66'%3E%3Cpath d='M0 132h118V82h154v50h118M118 132v66m154-66v66M154 198v-28h82v28'/%3E%3Cpath d='M20 190v-78m350 78v-78'/%3E%3Cpath fill='%238FA67A' stroke='none' d='M20 112l18 9-18 9zM370 112l-18 9 18 9z' opacity='.85'/%3E%3Ccircle cx='195' cy='82' r='36' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
}

.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--charcoal);
}

.logo svg,
.status-heart svg,
.heart-button svg,
.hero-heart svg {
  image-rendering: pixelated;
}

.hero-heart {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.hero-heart::before,
.heart-button::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgb(201 216 192 / 56%);
  border-radius: 50%;
  transform: scale(1.16);
}

.hero-heart::after,
.heart-button::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid rgb(201 216 192 / 42%);
  border-radius: 50%;
  transform: scale(1.18);
}

.hero-heart svg,
.heart-button svg {
  position: relative;
  z-index: 1;
}

.screen {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
}

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title {
  margin: 36px 0 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 46px;
  letter-spacing: 0;
  font-weight: 400;
}

.onboarding-title {
  max-width: 360px;
  margin: 34px 0 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 700;
}

.claim {
  margin: 24px 0 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
}

.copy {
  max-width: 350px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgb(38 38 38 / 72%);
}

.quiet-copy {
  max-width: 350px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgb(38 38 38 / 64%);
}

.helper-copy {
  max-width: 300px;
  margin: 16px auto 0;
  color: rgb(38 38 38 / 46%);
  font-size: 13px;
  line-height: 1.55;
}

.choice-stack {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 34px;
}

.choice-subline {
  margin: -2px 0 8px;
  color: rgb(38 38 38 / 48%);
  font-size: 13px;
}

.text-link {
  border: 0;
  background: transparent;
  color: rgb(38 38 38 / 66%);
  padding: 12px 8px;
  min-height: 44px;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.app-footer {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 14px 0 4px;
  color: rgb(38 38 38 / 42%);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.app-footer a {
  color: rgb(38 38 38 / 58%);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-footer span {
  color: rgb(38 38 38 / 38%);
}

.anti {
  margin: 28px 0 0;
  padding: 14px 0;
  width: 100%;
  border-top: 1px dashed rgb(143 166 122 / 55%);
  border-bottom: 1px dashed rgb(143 166 122 / 55%);
  color: rgb(38 38 38 / 76%);
  font-size: 16px;
}

.button {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--pitch-green), var(--deep-green));
  color: var(--background);
  padding: 18px 28px;
  width: 100%;
  min-height: 58px;
  font-weight: 600;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 14px 35px rgb(27 94 32 / 12%);
}

.secondary-button {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgb(247 246 244 / 78%);
  color: var(--deep-green);
  padding: 15px;
  min-height: 56px;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
}

.button-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 32px;
}

.button-row .active {
  border-color: var(--pitch-green);
  background: var(--pitch-green);
  color: var(--background);
}

.price,
.teaser,
.label,
.muted {
  color: var(--muted);
}

.price {
  margin-top: 18px;
  font-size: 14px;
}

.pricing-mini {
  width: min(360px, calc(100vw - 44px));
  margin: 22px auto 0;
  display: grid;
  gap: 8px;
}

.pricing-mini article {
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 38%);
  padding: 12px;
  text-align: left;
}

.pricing-mini strong,
.pricing-mini span {
  display: block;
}

.pricing-mini strong {
  font-size: 14px;
}

.pricing-mini span,
.pricing-mini p {
  color: rgb(38 38 38 / 62%);
  font-size: 12px;
}

.pricing-mini p {
  margin: 6px 0 10px;
  line-height: 1.45;
}

.teaser {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.6;
}

.panel {
  margin-top: 24px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(247 246 244 / 68%);
  padding: 24px;
  box-shadow: 0 16px 46px rgb(36 36 36 / 4%);
}

.ritual-panel {
  display: grid;
  gap: 20px;
}

.ritual-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--soft-field-green);
}

.ritual-divider::before,
.ritual-divider::after {
  content: "";
  border-top: 1px dashed rgb(143 166 122 / 62%);
}

.code {
  margin: 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 42px;
  line-height: 1.15;
}

.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgb(247 246 244 / 72%);
  padding: 18px 16px;
  color: var(--foreground);
  outline: none;
}

.code-input {
  margin-top: 12px;
  text-align: center;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 33px;
}

.back {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgb(247 246 244 / 72%);
  color: var(--foreground);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.heart-screen {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  padding-bottom: 96px;
}

.heart-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.heart-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease;
}

.heart-button.is-limited {
  opacity: .38;
  filter: grayscale(.18);
  cursor: default;
}

.heart-button:active {
  transform: scale(0.97);
}

.heart-button.pulse {
  animation: heart-pulse 2.8s ease-in-out infinite;
}

.micro {
  min-height: 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 16px;
}

.notice {
  width: min(82vw, 320px);
  margin-top: 20px;
  border: 1px solid rgb(143 166 122 / 42%);
  border-radius: 8px;
  background: rgb(247 246 244 / 72%);
  padding: 14px 18px;
  font-size: 20px;
  line-height: 1.42;
  color: rgb(38 38 38 / 78%);
  box-shadow: 0 10px 40px rgb(38 38 38 / 4%);
}

.sharing-card {
  width: min(86vw, 340px);
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(247 246 244 / 74%);
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 36px rgb(38 38 38 / 4%);
}

.sharing-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.sharing-card p {
  margin: 10px 0 0;
  color: rgb(38 38 38 / 62%);
  font-size: 13px;
  line-height: 1.55;
}

.sharing-card .secondary-button {
  width: 100%;
  margin-top: 14px;
  min-height: 46px;
}

.sharing-detail {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.sharing-detail strong {
  display: block;
  font-size: 14px;
}

.error-copy {
  max-width: 320px;
  margin: 14px auto 0;
  color: rgb(27 94 32 / 86%);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.privacy-note {
  max-width: 340px;
  margin: 12px auto 0;
  color: rgb(38 38 38 / 58%);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.beta-note {
  max-width: 330px;
  margin: 14px auto 0;
  color: rgb(38 38 38 / 52%);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.legal-note {
  max-width: 340px;
  margin: 4px auto 0;
  color: rgb(38 38 38 / 42%);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.install-nudge {
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(420px, calc(100vw - 32px));
  min-width: min(320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(247 246 244 / 98%);
  box-shadow:
    0 22px 48px rgb(38 38 38 / 18%),
    0 0 0 9999px rgb(28 36 26 / 22%);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  padding: 22px 22px 20px;
}

.install-link,
.install-later,
.install-close,
.code-actions button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.install-nudge-copy {
  padding-right: 42px;
}

.install-nudge-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 15px;
  line-height: 1.3;
}

.install-nudge-text,
.install-nudge-hint {
  margin: 0;
  color: rgb(38 38 38 / 66%);
  font-size: 13px;
  line-height: 1.5;
}

.install-nudge-hint {
  margin-top: 10px;
  color: rgb(38 38 38 / 54%);
  font-size: 12px;
}

.install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-link {
  display: flex;
  min-height: 48px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(91 127 75 / 18%);
  border-radius: 999px;
  background: rgb(91 127 75 / 10%);
  font-family: "Space Mono", monospace;
  font-size: 13px;
  cursor: pointer;
}

.install-later {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgb(38 38 38 / 12%);
  background: rgb(255 255 255 / 72%);
  color: rgb(38 38 38 / 62%);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  cursor: pointer;
}

.install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(38 38 38 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  color: rgb(38 38 38 / 72%);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.install-close:active {
  transform: scale(.96);
}

.install-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .install-nudge {
    padding: 20px 18px 18px;
  }

  .install-actions {
    grid-template-columns: 1fr;
  }

  .install-nudge-title {
    font-size: 14px;
  }
}

.code-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 0;
}

.code-actions button + button::before {
  content: "?";
  margin-right: 10px;
  color: rgb(38 38 38 / 34%);
}

.code-actions button {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--pitch-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pair-code {
  position: fixed;
  left: max(22px, calc((100vw - 430px) / 2 + 22px));
  bottom: 18px;
  z-index: 30;
  max-width: 168px;
  border: 1px solid transparent;
  background: transparent;
  color: rgb(178 178 177 / 72%);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
}

.pair-code:hover {
  border-color: var(--border);
  background: rgb(247 246 244 / 82%);
  color: var(--foreground);
}

.code-share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(17 18 15 / 42%);
  backdrop-filter: blur(8px);
}

.code-share-popup {
  position: relative;
  width: min(100%, 390px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(247 246 244 / 98%);
  color: var(--foreground);
  padding: 26px 22px 22px;
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
  text-align: center;
}

.code-share-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.code-share-value {
  margin: 8px auto 14px;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.code-share-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 14px;
}

.connection-status {
  position: fixed;
  right: max(22px, calc((100vw - 430px) / 2 + 22px));
  bottom: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(178 178 177 / 76%);
  font-size: 13px;
}

.connection-status span {
  max-width: 128px;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.status-heart {
  position: relative;
  width: 40px;
  height: 40px;
}

.status-heart svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  transform: translate(-50%, -50%);
}

.status-heart .fill-pixels {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  transform: translate(-50%, -50%);
}

.status-heart.arrived .base {
  animation: heart-pulse-soft 3.4s ease-in-out infinite;
}

.status-heart.corridor-morphing-calm .status-fill-pixel {
  filter: blur(.7px);
}

.status-heart.corridor-breathing-light .status-fill-pixel {
  filter: drop-shadow(0 0 4px rgb(46 125 50 / 35%));
}

.status-heart.corridor-minimal-pulse .status-fill-pixel {
  opacity: .72;
}

.status-heart.arrival-pixel-fill.arrived .base {
  animation-duration: 1.1s;
}

.status-heart.arrival-quiet-glow.arrived .base {
  filter: drop-shadow(0 0 12px rgb(46 125 50 / 35%));
}

.status-ball {
  position: relative;
  width: 44px;
  height: 44px;
}

.status-ball-asset {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.status-ball.arrived .status-ball-asset {
  animation: heart-pulse-soft 3.4s ease-in-out infinite;
}

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

.signal-rain i {
  position: absolute;
  display: block;
  image-rendering: pixelated;
}

.signal-rain.corridor-morphing-calm i {
  border-radius: 999px;
  filter: blur(1px);
  transform: scaleX(1.6);
}

.signal-rain.corridor-breathing-light i {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 18px rgb(46 125 50 / 24%);
}

.signal-rain.corridor-minimal-pulse i {
  width: 4px;
  height: 4px;
  opacity: .42;
}

.p1 { right: max(68px, calc((100vw - 430px) / 2 + 68px)); top: 7vh; width: 10px; height: 10px; background: rgb(46 125 50 / 78%); animation: signal-fall-one max(7s, calc(var(--travel-duration, 12s) * 0.92)) ease-in-out infinite; }
.p2 { right: max(100px, calc((100vw - 430px) / 2 + 100px)); top: 12vh; width: 8px; height: 8px; background: rgb(91 127 75 / 76%); animation: signal-fall-two max(8s, calc(var(--travel-duration, 12s) * 1.02)) ease-in-out infinite 1.4s; }
.p3 { right: max(48px, calc((100vw - 430px) / 2 + 48px)); top: 18vh; width: 8px; height: 8px; background: rgb(46 125 50 / 78%); animation: signal-fall-three max(8s, calc(var(--travel-duration, 12s) * 0.96)) ease-in-out infinite 2.5s; }
.p4 { right: max(120px, calc((100vw - 430px) / 2 + 120px)); top: 24vh; width: 10px; height: 10px; background: rgb(27 94 32 / 70%); animation: signal-fall-four max(9s, calc(var(--travel-duration, 12s) * 1.12)) ease-in-out infinite 3.4s; }
.p5 { right: max(80px, calc((100vw - 430px) / 2 + 80px)); top: 4vh; width: 8px; height: 8px; background: rgb(143 166 122 / 76%); animation: signal-fall-five max(8s, calc(var(--travel-duration, 12s) * 0.98)) ease-in-out infinite 0.6s; }
.p6 { right: max(140px, calc((100vw - 430px) / 2 + 140px)); top: 28vh; width: 8px; height: 8px; background: rgb(27 94 32 / 68%); animation: signal-fall-six max(10s, calc(var(--travel-duration, 12s) * 1.18)) ease-in-out infinite 4s; }
.p7 { right: max(32px, calc((100vw - 430px) / 2 + 32px)); top: 34vh; width: 8px; height: 8px; background: rgb(46 125 50 / 72%); animation: signal-fall-seven max(9s, calc(var(--travel-duration, 12s) * 1.06)) ease-in-out infinite 5s; }
.p8 { right: max(112px, calc((100vw - 430px) / 2 + 112px)); top: 40vh; width: 8px; height: 8px; background: rgb(91 127 75 / 68%); animation: signal-fall-eight max(10s, calc(var(--travel-duration, 12s) * 1.22)) ease-in-out infinite 6s; }

.push {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(247 246 244 / 78%);
  padding: 16px;
}

.push p {
  margin: 0;
  color: rgb(38 38 38 / 78%);
  font-size: 16px;
}

.push-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 70px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-screen {
  min-height: calc(100dvh - 40px);
  padding-bottom: 36px;
}

.admin-header,
.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-title-row {
  margin-top: 54px;
}

.admin-title-row h1 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 500;
}

.admin-version {
  color: var(--muted);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.admin-header-actions,
.admin-project-switch,
.admin-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-project-badge {
  display: block;
  margin-top: 6px;
  color: var(--deep-green);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-menu {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-top: 22px;
  padding: 10px 0;
  background: rgb(247 247 243 / 92%);
  backdrop-filter: blur(10px);
}

.admin-button,
.admin-chip,
.admin-quiet,
.admin-danger,
.admin-link {
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 62%);
  color: var(--foreground);
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
}

.admin-input {
  min-width: 0;
  border: 1px solid var(--border);
  background: rgb(245 245 244 / 80%);
  color: var(--foreground);
  padding: 10px;
  font: inherit;
}

.admin-subhead {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.admin-button {
  background: var(--deep-green);
  color: var(--background);
  min-width: 116px;
}

.admin-panel,
.admin-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 52%);
  padding: 16px;
}

.admin-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.admin-card {
  display: grid;
  gap: 14px;
}

.admin-card-main p {
  margin: 6px 0 0;
}

.admin-code {
  margin: 0;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  color: var(--foreground);
}

.admin-speed,
.admin-links,
.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-metrics span {
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 42%);
  padding: 10px;
  color: rgb(38 38 38 / 58%);
  font-size: 11px;
}

.admin-metrics strong {
  display: block;
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.2;
}

.admin-chip.active {
  background: var(--pitch-green);
  color: var(--background);
}

.admin-link.active {
  border-color: var(--deep-green);
  color: var(--deep-green);
  font-weight: 700;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-login-card {
  width: min(460px, 100%);
  margin: 72px auto 0;
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 52%);
  padding: 22px;
}

.admin-login-card h1 {
  margin: 6px 0 10px;
  font-size: 30px;
}

.admin-login-card .admin-input,
.admin-login-card .admin-button {
  width: 100%;
  margin-top: 12px;
}

.admin-status-card {
  border: 1px solid var(--border);
  background: rgb(231 231 230 / 46%);
  padding: 14px;
}

.admin-status-card strong,
.admin-status-card span {
  display: block;
}

.admin-status-card strong {
  margin: 4px 0 10px;
  font-size: 20px;
}

.admin-status-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-status-card.grün {
  border-color: rgb(27 94 32 / 28%);
}

.admin-status-card.gelb {
  border-color: rgb(159 116 0 / 32%);
}

.admin-status-card.rot {
  border-color: rgb(150 30 30 / 38%);
}

.admin-link {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-danger {
  border-color: rgb(27 94 32 / 45%);
  color: var(--deep-green);
}

.admin-error {
  margin-top: 18px;
  border: 1px solid rgb(27 94 32 / 45%);
  color: var(--deep-green);
  padding: 12px;
}

@media (max-width: 720px) {
  .admin-header,
  .admin-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header-actions {
    align-items: flex-start;
  }

  .admin-speed,
  .admin-links,
  .admin-actions {
    grid-template-columns: 1fr;
  }
}

body.admin-page {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-page .app {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

body.admin-page .app::before,
body.admin-page .app::after {
  display: none;
}

body.admin-page .admin-screen {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 32px 56px;
}

body.admin-page .admin-header,
body.admin-page .admin-title-row {
  flex-wrap: wrap;
  width: 100%;
}

body.admin-page .admin-title-row {
  margin-top: 28px;
}

body.admin-page .admin-title-row,
body.admin-page .admin-page-heading,
body.admin-page .admin-panel,
body.admin-page .admin-list,
body.admin-page .admin-dashboard {
  align-self: stretch;
}

body.admin-page .admin-page-heading {
  display: grid;
  gap: 6px;
  margin: 22px 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
}

body.admin-page .admin-page-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

body.admin-page .admin-title-row h1,
body.admin-page .admin-login-card h1 {
  overflow-wrap: anywhere;
}

body.admin-page .admin-header-actions,
body.admin-page .admin-project-switch,
body.admin-page .admin-menu,
body.admin-page .admin-links,
body.admin-page .admin-actions {
  max-width: 100%;
}

body.admin-page .admin-menu {
  align-items: stretch;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
}

body.admin-page .admin-menu .admin-chip {
  border: 0;
  border-radius: 0;
  min-width: max-content;
  background: transparent;
  color: var(--muted);
}

body.admin-page .admin-menu .admin-chip:first-child {
  border-radius: 14px 0 0 14px;
}

body.admin-page .admin-menu .admin-chip:last-child {
  border-radius: 0 14px 14px 0;
}

body.admin-page .admin-menu .admin-chip.active,
body.admin-page .admin-menu .admin-chip[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

body.admin-page .admin-dashboard,
body.admin-page .admin-list {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

body.admin-page .admin-speed,
body.admin-page .admin-links,
body.admin-page .admin-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

body.admin-page .admin-panel,
body.admin-page .admin-card,
body.admin-page .admin-status-card,
body.admin-page .admin-error,
body.admin-page .admin-empty,
body.admin-page .admin-note,
body.admin-page .admin-code,
body.admin-page .admin-metrics span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.admin-page .admin-section-card {
  margin-top: 18px;
}

body.admin-page .admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

body.admin-page .admin-section-head h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

body.admin-page .admin-campaign-panel {
  margin-top: 22px;
}

body.admin-page .admin-empty,
body.admin-page .admin-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
}

body.admin-page .admin-note {
  border-style: solid;
  background: rgba(255,255,255,0.82);
}

body.admin-page .admin-button,
body.admin-page .admin-chip,
body.admin-page .admin-quiet,
body.admin-page .admin-danger,
body.admin-page .admin-link,
body.admin-page .admin-input {
  max-width: 100%;
  min-height: 44px;
}

body.admin-page .admin-link {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body.admin-page .admin-input {
  width: 100%;
}

body.admin-page .admin-login-card {
  margin-top: 48px;
}

body.admin-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 720px) {
  body.admin-page .admin-screen {
    padding: 16px 16px 40px;
  }

  body.admin-page .admin-title-row {
    margin-top: 22px;
  }

  body.admin-page .admin-section-head {
    flex-direction: column;
  }

  body.admin-page .admin-button,
  body.admin-page .admin-chip,
  body.admin-page .admin-quiet,
  body.admin-page .admin-danger,
  body.admin-page .admin-link {
    justify-content: center;
    text-align: center;
  }

  body.admin-page .admin-login-card {
    margin-top: 32px;
    padding: 20px;
  }
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.96; }
}

@keyframes heart-pulse-soft {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.86; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes subtle-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.blink {
  animation: subtle-blink 0.4s ease-in-out 2;
}

@keyframes status-pixel-fill {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.status-fill-pixel {
  opacity: 0;
  animation: status-pixel-fill 0.2s steps(1, end) forwards;
}

.fill-delay-1 { animation-delay: 0.7s; }
.fill-delay-2 { animation-delay: 1.6s; }
.fill-delay-3 { animation-delay: 2.5s; }
.fill-delay-4 { animation-delay: 3.4s; }
.fill-delay-5 { animation-delay: 4.3s; }
.fill-delay-6 { animation-delay: 5.2s; }
.fill-delay-7 { animation-delay: 6.1s; }
.fill-delay-8 { animation-delay: 7s; }
.fill-delay-9 { animation-delay: 7.9s; }
.fill-delay-10 { animation-delay: 8.8s; }
.fill-delay-11 { animation-delay: 9.7s; }
.fill-delay-12 { animation-delay: 10.6s; }

@keyframes signal-fall-one {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.98; }
  88% { transform: translate3d(-22px, 78vh, 0); opacity: 0.9; }
  100% { transform: translate3d(-24px, 84vh, 0); opacity: 0; }
}

@keyframes signal-fall-two {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  16% { opacity: 0.92; }
  88% { transform: translate3d(16px, 74vh, 0); opacity: 0.82; }
  100% { transform: translate3d(18px, 80vh, 0); opacity: 0; }
}

@keyframes signal-fall-three {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  14% { opacity: 0.96; }
  86% { transform: translate3d(-8px, 68vh, 0); opacity: 0.84; }
  100% { transform: translate3d(-10px, 74vh, 0); opacity: 0; }
}

@keyframes signal-fall-four {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: 0.9; }
  88% { transform: translate3d(10px, 62vh, 0); opacity: 0.74; }
  100% { transform: translate3d(12px, 68vh, 0); opacity: 0; }
}

@keyframes signal-fall-five {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  14% { opacity: 0.96; }
  86% { transform: translate3d(-32px, 82vh, 0); opacity: 0.82; }
  100% { transform: translate3d(-34px, 88vh, 0); opacity: 0; }
}

@keyframes signal-fall-six {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  22% { opacity: 0.88; }
  88% { transform: translate3d(18px, 54vh, 0); opacity: 0.7; }
  100% { transform: translate3d(20px, 60vh, 0); opacity: 0; }
}

@keyframes signal-fall-seven {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: 0.9; }
  86% { transform: translate3d(-20px, 48vh, 0); opacity: 0.68; }
  100% { transform: translate3d(-24px, 54vh, 0); opacity: 0; }
}

@keyframes signal-fall-eight {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: 0.82; }
  86% { transform: translate3d(28px, 38vh, 0); opacity: 0.58; }
  100% { transform: translate3d(30px, 44vh, 0); opacity: 0; }
}
