.runtime-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f8f8f6;
  color: #18212f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.runtime-card {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid rgba(36, 48, 71, .09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(43, 52, 74, .12);
}

.runtime-brand { margin: 0 0 8px; font-size: 28px; letter-spacing: .08em; }
.runtime-subtitle { margin: 0 0 22px; color: #687386; line-height: 1.55; }
.runtime-form { display: grid; gap: 14px; }
.runtime-field { display: grid; gap: 7px; font-size: 13px; color: #566176; }
.runtime-field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dce1ea;
  border-radius: 14px;
  background: #fff;
  color: #18212f;
  font: inherit;
}
.runtime-submit, .runtime-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.runtime-submit { background: linear-gradient(135deg, #96a8fe, #7d8ff8); color: #fff; }
.runtime-secondary { width: 100%; margin-top: 12px; background: #eef1f7; color: #3b465a; }
.runtime-submit:disabled { opacity: .55; cursor: wait; }
.runtime-error { min-height: 20px; margin: 0; color: #c23b4a; font-size: 13px; line-height: 1.45; }
.runtime-status { text-align: center; }
.runtime-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 3px solid #e8ebf2;
  border-top-color: #7d8ff8;
  border-radius: 50%;
  animation: runtime-spin .8s linear infinite;
}
@keyframes runtime-spin { to { transform: rotate(360deg); } }

/* Production renders the approved mobile application without its prototype shell. */
body {
  min-height: 100dvh;
  background: var(--brand-paper);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.prototype-layout {
  display: block;
  min-height: 100dvh;
}

.prototype-panel,
.stage-meta,
.mobile-prototype-button,
.role-drawer {
  display: none !important;
}

.stage {
  min-height: 100dvh;
  display: block;
  padding: 0;
}

.phone {
  width: min(100vw, 390px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone::before {
  display: none;
}

.app-scroll {
  padding-top: calc(12px + env(safe-area-inset-top));
}

.metric-card {
  min-height: 126px;
  padding: 18px 11px 14px;
}

.metric-card__value {
  font-size: 29px;
}

.metric-card__label {
  font-size: 12px;
}

.trend {
  font-size: 9px;
}

@media (max-width: 720px) {
  .app-brand__mark {
    display: grid;
  }
}
