/* Sign-in pages, styled after lollipay.cc's auth pages (same owner), in the Nightshift pastel pink palette.
   Layout: form column on the left (follows light/dark), always-dark showcase panel on the right (>= 1024px).
   --brand (#ffd1dc) fills primary buttons, always with dark --brand-fg text; --brand-text is the readable
   pink for links, focus rings and pink text (#b83a68 light: 5.5:1 on white / #ffb3c6 dark). */
:root {
  --bg: #fdf8fa; --fg: #2a1f26; --card: #ffffff; --muted: #f8ecf2; --muted-fg: #7d6b75;
  --border: #f0e2e9; --border-strong: #e6d0db; --input-bg: #ffffffcc;
  --ring: #b83a68; --brand: #ffd1dc; --brand-hover: #ffc4d3; --brand-fg: #5a1d36; --brand-text: #b83a68;
  --brand-mid: #f4a3bf; --brand-soft: #ffe8ee; --glow-btn: #f49ac1; --dot: #2a1f2614;
  --ok: #3d7a5c; --ok-soft: #e6f2ec; --bad: #b42318; --bad-soft: #fdecea;
  /* Every font in these stacks has precomposed Vietnamese letters (ầ ề ồ ữ ự ẫ ặ ỹ). Never add Georgia or
     ui-serif: Georgia lacks them, so the browser stacks marks separately ("đâ`u"), and its old-style "0"
     looks like "o". The fallbacks matter whenever Google Fonts is slow, blocked or offline. */
  --font-sans: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", "Noto Serif", Cambria, "Times New Roman", serif;
  --font-mono: "Geist Mono", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #110e11; --fg: #f3eaf0; --card: #18141a; --muted: #251e26; --muted-fg: #9b8c97;
  --border: #2c242d; --border-strong: #3b303c; --input-bg: #18141acc;
  --ring: #ffb3c6; --brand-hover: #ffdde6; --brand-text: #ffb3c6; --brand-mid: #f49ac1; --brand-soft: #3a1f2b;
  --dot: #ffffff12; --ok: #8fd1ad; --ok-soft: #17261e; --bad: #ff8a80; --bad-soft: #3a1b1b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 15px/1.6 var(--font-sans); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75;
        stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }  /* headings focused by script when a view changes */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- layout ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .shell { grid-template-columns: minmax(460px, 46%) 1fr; } }

.side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
        min-height: 100vh; padding: 20px; }
@media (min-width: 640px) { .side { padding: 28px 40px; } }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 0%, color-mix(in oklab, var(--brand-mid) 24%, transparent), transparent 70%); }
.side::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 65%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 65%); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.04em;
        color: var(--fg); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex: none; display: block; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.seg { display: inline-flex; height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden;
       background: color-mix(in oklab, var(--card) 70%, transparent); }
.seg button { border: 0; background: transparent; padding: 0 10px; cursor: pointer; color: var(--muted-fg);
              font: 500 11px/1 var(--font-mono); letter-spacing: .08em; transition: color .15s var(--ease), background-color .15s var(--ease); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; cursor: pointer;
            border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--card) 70%, transparent); color: var(--fg);
            transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--muted); }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

/* form column */
.main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0 24px; }
.stack { width: 100%; max-width: 380px; }
.title { display: flex; align-items: center; gap: 14px; }
.tile { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px;
        border: 1px solid var(--border); background: var(--card);
        box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 10px 30px -12px color-mix(in oklab, var(--brand-mid) 80%, transparent); }
.tile svg { width: 24px; height: 24px; color: var(--brand-mid); }
/* brand mark in the heading tile: the mark is its own pink tile, so drop the frame and keep the glow */
.tile.brandtile { border: 0; background: none; }
.tile.brandtile svg { width: 44px; height: 44px; display: block; }
.tile.ok svg.i, .tile.bad svg.i { width: 20px; height: 20px; }
.tile.ok { color: var(--ok); } .tile.ok svg.i { color: var(--ok); }
.tile.bad svg.i { color: var(--bad); }
h1 { font: 400 26px/1.25 var(--font-serif); letter-spacing: -.01em; margin: 0; }
@media (min-width: 480px) { h1 { font-size: 30px; } }
.lead { color: var(--muted-fg); font-size: 15px; line-height: 1.625; margin: 14px 0 28px; }

form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
label { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--fg); }
label .opt { color: var(--muted-fg); font-weight: 400; }
.label-row a { font-size: 13px; font-weight: 500; white-space: nowrap; }
.control { position: relative; }
.control > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-fg);
                  pointer-events: none; transition: color .15s var(--ease); }
.control:focus-within > .ico { color: var(--brand-text); }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 44px; padding: 0 12px 0 40px; border: 1px solid var(--border-strong); border-radius: 7px;
  background: var(--input-bg); color: var(--fg); font-size: 16px; letter-spacing: .01em;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
@media (min-width: 640px) { input[type="email"], input[type="password"], input[type="text"] { font-size: 14px; } }
input::placeholder { color: var(--muted-fg); opacity: .75; }
input:hover { border-color: color-mix(in oklab, var(--brand-text) 30%, var(--border-strong)); }
input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bad) 15%, transparent); }
input:read-only { opacity: .7; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center;
             border: 0; border-radius: 6px; background: transparent; color: var(--muted-fg); cursor: pointer;
             transition: color .15s var(--ease), background-color .15s var(--ease); }
.pw-toggle:hover { color: var(--fg); background: var(--muted); }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }
.hint { font-size: 12.5px; color: var(--muted-fg); margin: 0; }
.field-error { font-size: 12.5px; color: var(--bad); margin: 0; }
.field-error:empty { display: none; }
.field-error:not(:empty) + .hint { display: none; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--fg);
         cursor: pointer; user-select: none; letter-spacing: 0; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer;
               border: 1px solid var(--border-strong); border-radius: 4px; background: var(--input-bg);
               display: grid; place-items: center; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.check input::after { content: ""; width: 8px; height: 4px; border: solid var(--brand-fg); border-width: 0 0 2px 2px;
                      transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--brand); border-color: color-mix(in srgb, var(--brand) 60%, var(--brand-mid)); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:hover input { border-color: color-mix(in oklab, var(--brand-text) 40%, var(--border-strong)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; width: 100%; padding: 0 16px;
       border-radius: 7px; border: 1px solid transparent; font: 500 14px/1 var(--font-sans); letter-spacing: .01em;
       cursor: pointer; text-decoration: none; white-space: nowrap;
       transition: background-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-fg);
               border-color: color-mix(in srgb, var(--brand) 70%, var(--brand-mid));
               box-shadow: inset 0 1px 0 #ffffff59, 0 8px 20px -8px color-mix(in oklab, var(--glow-btn) 80%, transparent); }
.btn.primary:hover { background: var(--brand-hover);
                     box-shadow: inset 0 1px 0 #ffffff59, 0 12px 28px -8px color-mix(in oklab, var(--glow-btn) 90%, transparent); }
.btn.primary:focus-visible { outline: none; box-shadow: inset 0 1px 0 #ffffff59, 0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent); }
.btn.ghost { background: color-mix(in oklab, var(--card) 60%, transparent); border-color: var(--border-strong); color: var(--fg); }
.btn.ghost:hover { background: var(--muted); }
.btn .arrow { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn:disabled { cursor: default; opacity: .75; transform: none; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
           animation: spin .7s linear infinite; display: none; }
.btn.busy .spinner { display: block; }
.btn.busy .arrow { display: none; }

.alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 7px; margin: -10px 0 20px;
         background: var(--bad-soft); color: var(--bad); font-size: 13.5px; line-height: 1.45;
         border: 1px solid color-mix(in oklab, var(--bad) 25%, transparent); }
.alert svg { margin-top: 1px; }

.fine { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 0; font-size: 12.5px;
        color: var(--muted-fg); text-align: center; }
.fine svg { width: 14px; height: 14px; }
.switch { display: flex; flex-direction: column; gap: 12px; margin-top: 44px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-fg); font-size: 12.5px; white-space: nowrap; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border-strong); }

/* result views */
.state p { color: var(--muted-fg); margin: 14px 0 0; }
.state .note { font-size: 12.5px; margin-top: 16px; padding: 10px 12px; border-radius: 7px; border: 1px dashed var(--border-strong);
               background: color-mix(in oklab, var(--card) 60%, transparent); }
.state .btn { margin-top: 28px; }

/* entrance */
.enter > * { animation: rise .5s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .06s; }
.enter > *:nth-child(3) { animation-delay: .12s; }

/* ---------- showcase panel (always dark) ---------- */
.panel { display: none; }
@media (min-width: 1024px) {
  .panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
           min-height: 100vh; padding: 40px 48px 36px; background: #0d0a0d; color: #f6edf2;
           --p-muted: #b3a2ab; --p-card: rgba(23, 17, 22, .8); --p-line: rgba(255, 255, 255, .09); --p-pink: #ffb3c6; }
}
@media (min-width: 1280px) { .panel { padding: 48px 64px 40px; } }
/* tall enough screens: the panel stays in view while a longer form column scrolls */
@media (min-width: 1024px) and (min-height: 780px) { .panel { position: sticky; top: 0; align-self: start; height: 100vh; } }
.panel .grain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; pointer-events: none; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, #0d0a0de6 92%); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .18em;
           text-transform: uppercase; color: var(--p-pink); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.panel h2 { font: 400 32px/1.22 var(--font-serif); letter-spacing: -.01em; margin: 18px 0 0; max-width: 470px; }
@media (min-width: 1280px) { .panel h2 { font-size: 36px; } }
.panel .sub { color: var(--p-muted); font-size: 15px; line-height: 1.6; margin: 16px 0 0; max-width: 470px; }
.showcase { position: relative; flex: 1; display: flex; align-items: center; min-height: 340px; padding: 8px 64px 40px 0; }
.glass { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px;
         -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
         box-shadow: 0 1px 3px rgb(0 0 0 / .25), 0 30px 60px -24px rgb(0 0 0 / .7); }
.glass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
              border-bottom: 1px solid var(--p-line); font-size: 13px; font-weight: 600; }
.glass-head .meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--p-muted); white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.ping { position: relative; width: 8px; height: 8px; flex: none; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #6ee7a8; }
.ping::before { animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }

/* inbox (login / forgot / reset) */
.inbox { width: 100%; max-width: 460px; overflow: hidden; }
.inbox .rows { height: 264px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.inbox ul { list-style: none; margin: 0; padding: 0; animation: marquee-y 26s linear infinite; }
.inbox li { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--p-line); }
.ch { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px;
      background: rgba(255, 179, 198, .1); color: var(--p-pink); }
.ch svg { width: 15px; height: 15px; }
.inbox .q { min-width: 0; flex: 1; }
.inbox .q b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .q small { display: block; font-size: 11.5px; color: var(--p-muted); }
.inbox .t { text-align: right; font: 500 12px/1.3 var(--font-mono); color: #f6edf2; white-space: nowrap; }
.inbox .t small { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font: 500 11px/1.3 var(--font-sans); color: #8fd1ad; }
.inbox .t small svg { width: 11px; height: 11px; stroke-width: 2.2; }
.float { position: absolute; right: 0; bottom: 0; width: 276px; padding: 16px; background: rgba(28, 21, 27, .92); }
.float .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--p-muted); }
.pill { font: 600 11px/1 var(--font-sans); padding: 4px 9px; border-radius: 999px;
        background: rgba(255, 179, 198, .12); color: var(--p-pink); white-space: nowrap; }
.float .big { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.float .big b { font: 500 26px/1 var(--font-mono); letter-spacing: -.02em; }
.float .big svg { width: 120px; height: 36px; }
.chips { display: flex; gap: 6px; margin-top: 14px; }
.chips span { font: 500 11px/1 var(--font-sans); padding: 5px 9px; border: 1px solid var(--p-line); border-radius: 999px; color: var(--p-muted); }

/* register demo: setup steps, then a chat widget styled like the real one (app/static/widget.js, dark mode),
   then a toast in normal flow under the widget: nothing ever covers the chat. */
.showcase.demo { flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; padding: 4px 0 20px; min-height: 0;
                 width: 100%; max-width: 440px; }
.steps { display: flex; gap: 8px; }
.step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; white-space: nowrap;
        font-size: 12px; font-weight: 500; color: #e9dce3; background: rgba(255, 255, 255, .05); border: 1px solid var(--p-line); }
.step svg { width: 13px; height: 13px; stroke-width: 2.4; color: #8fd1ad; }
.step .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd1dc; box-shadow: 0 0 0 3px rgba(255, 209, 220, .22); }

.widget { --w-bg: #17171a; --w-bg2: #1f1f23; --w-line: #2b2b30; --w-muted: #9a9aa3; --w-bubble: #232327; --c: #ffd1dc; --on-c: #5a1d36;
          width: 100%; max-width: 380px; background: var(--w-bg); color: #ececee; border-radius: 20px; overflow: hidden;
          box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .07); }
.w-bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--w-line); }
.w-av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: block; }
.w-av svg { width: 30px; height: 30px; display: block; }
.w-who { flex: 1; min-width: 0; }
.w-who b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.w-who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--w-muted); line-height: 1.3; }
.w-live { width: 7px; height: 7px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 3px rgba(34, 168, 97, .25); flex: none; }
.w-x { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--w-muted); }
.w-msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; font-size: 13.5px; line-height: 1.45; }
.m { max-width: 86%; padding: 9px 13px; border-radius: 18px; overflow-wrap: anywhere; }
.m.me { align-self: flex-end; background: var(--c); color: var(--on-c); border-bottom-right-radius: 6px; }
.m.bot { background: var(--w-bubble); border-bottom-left-radius: 6px; }
.slot { display: grid; align-self: flex-start; max-width: 86%; }       /* typing dots and the answer share one spot: no jump */
.slot > * { grid-area: 1 / 1; align-self: start; justify-self: start; max-width: 100%; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-muted); opacity: .35; animation: wdot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.prod { align-self: flex-start; display: flex; align-items: center; gap: 10px; width: 86%; padding: 8px 8px 8px 8px;
        border: 1px solid var(--w-line); border-radius: 14px; background: var(--w-bg2); }
.thumb { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--on-c);
         background: linear-gradient(135deg, #ffe3ea, #ffd1dc 45%, #f4a3bf); }
.thumb svg { width: 22px; height: 22px; stroke-width: 1.6; }
.pinfo { flex: 1; min-width: 0; }
.pinfo b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo small { display: block; font-size: 12px; color: var(--w-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wchip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
         background: var(--c); color: var(--on-c); font-size: 12px; font-weight: 600; }
.wchip svg { width: 13px; height: 13px; stroke-width: 2.2; }

.toast { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px;
         background: rgba(28, 21, 27, .92); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.toast .okc { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 209, 173, .16); color: #8fd1ad; }
.toast .okc svg { width: 12px; height: 12px; stroke-width: 2.6; }
.toast small { color: var(--p-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* messages appear like in the real widget: fade + rise + tiny scale, eased */
.reveal { opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom left;
          transition: opacity .4s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1); }
.m.me.reveal, .toast.reveal { transform-origin: bottom right; }
.reveal.on { opacity: 1; transform: none; }
.reveal.gone { visibility: hidden; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--p-line); }
/* sans + lining, tabular figures so "0" can never read as the letter "o" */
.stats b { display: block; font: 600 26px/1.2 var(--font-sans); letter-spacing: -.03em; white-space: nowrap;
           font-variant-numeric: lining-nums tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--p-muted); }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ping { 75%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes marquee-y { to { transform: translateY(-50%); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes wdot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .enter > *, .inbox ul, .ping::before, .typing i { animation: none; }
  .spinner { animation-duration: 1.6s; }
  .reveal, input, .btn, .btn .arrow { transition: none; }
}
