* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% -12%, rgba(217, 70, 239, 0.10), transparent 34%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.app-root { min-height: 100vh; min-height: 100dvh; }
.app-frame {
  width: min(100%, var(--content-max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--app-top), var(--app-bottom));
}
.app-frame::after { content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; background: rgba(0,0,0,var(--ui-dim)); transition: background 180ms ease; }
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--safe-top) 18px calc(92px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}
.screen.public-screen { padding-bottom: calc(28px + var(--safe-bottom)); }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.eyebrow { margin: 0; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(30px, 8vw, 38px); line-height: 1.03; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
h3 { margin-bottom: 4px; font-size: 16px; line-height: 1.2; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid rgba(217,70,239,.9); outline-offset: 3px; }
@media (min-width: 620px) {
  body { padding: 24px 0; }
  .app-frame { min-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 38px; box-shadow: var(--shadow-app); }
  .screen { min-height: calc(100dvh - 48px); }
}
