    :root {
      --background: #f5f5f4;
      --ink: #1c1917;
      --mute: #78716c;
      --wash-sky: #cdd8f2;
      --wash-blush: #f0ddd4;
      --wash-sage: #d5ebe0;
      --wash-cream: #faf5ee;
      --glass: rgba(255, 255, 255, 0.42);
      --glass-strong: rgba(255, 255, 255, 0.82);
      --glass-border: rgba(255, 255, 255, 0.5);
      --glass-blur: 28px;
      --chip: rgba(255, 255, 255, 0.72);
    }

    * { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    html, body { margin: 0; padding: 0; }

    html, body {
      background: linear-gradient(
        168deg,
        color-mix(in oklab, var(--wash-sky) 42%, var(--background)) 0%,
        var(--background) 36%,
        color-mix(in oklab, var(--wash-blush) 36%, var(--background)) 70%,
        color-mix(in oklab, var(--wash-sage) 38%, var(--background)) 100%
      );
    }

    body {
      color: var(--ink);
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      min-height: 100vh;
      min-height: 100dvh;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -2;
      background:
        radial-gradient(
          ellipse 110% 85% at 50% -18%,
          color-mix(in oklab, var(--wash-sky) 54%, transparent),
          transparent 72%
        ),
        radial-gradient(
          ellipse 80% 65% at 98% 72%,
          color-mix(in oklab, var(--wash-blush) 46%, transparent),
          transparent 66%
        ),
        radial-gradient(
          ellipse 75% 58% at 2% 88%,
          color-mix(in oklab, var(--wash-sage) 44%, transparent),
          transparent 62%
        ),
        radial-gradient(
          ellipse 95% 75% at 42% 48%,
          color-mix(in oklab, var(--wash-cream) 32%, transparent),
          transparent 74%
        );
      pointer-events: none;
    }

    main {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding:
        max(48px, env(safe-area-inset-top, 0px))
        max(48px, env(safe-area-inset-right, 0px))
        max(40px, env(safe-area-inset-bottom, 0px))
        max(48px, env(safe-area-inset-left, 0px));
    }

    header,
    .stage,
    footer {
      width: min(36rem, 100%);
    }

    header,
    footer,
    .hint {
      text-align: center;
    }

    .mark {
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.01em;
      margin: 0;
    }

    .tag {
      margin: 8px 0 0;
      font-size: 12px;
      line-height: 1.45;
      color: var(--mute);
    }

    .hint {
      margin: 0 0 10px;
      font-size: 11px;
      letter-spacing: 0.04em;
      color: var(--mute);
    }

    .composer {
      min-height: 5.75rem;
      padding: 14px 16px 16px;
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      background: var(--glass);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(28, 25, 23, 0.05),
        0 16px 40px -24px rgba(28, 25, 23, 0.1);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
      backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    }

    .message {
      margin: 0;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 400;
    }

    .mention {
      display: inline;
      background: var(--chip);
      padding: 0.12em 0.42em;
      border-radius: 4px;
      font-weight: 500;
      margin-right: 0.4em;
    }

    .caret {
      display: inline-block;
      width: 0.52em;
      height: 1em;
      margin-left: 0.08em;
      background: var(--ink);
      vertical-align: -0.12em;
      animation: blink 1.05s steps(1, end) infinite;
    }

    @keyframes blink {
      50% { opacity: 0; }
    }

    footer {
      font-size: 11px;
      letter-spacing: 0.04em;
      color: var(--mute);
    }

    footer a {
      color: inherit;
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }

    .dot {
      margin: 0 0.55em;
    }

    @media (max-width: 640px) {
      main {
        padding:
          max(32px, env(safe-area-inset-top, 0px))
          max(24px, env(safe-area-inset-right, 0px))
          max(28px, env(safe-area-inset-bottom, 0px))
          max(24px, env(safe-area-inset-left, 0px));
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .caret { animation: none; }
    }
