:root {
  --bg: #07090e;
  --panel: #10141d;
  --panel-hi: #151a25;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e9ecf4;
  --text-2: #b4bbcb;
  --muted: #8089a0;
  --faint: #5d657b;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --ring: 0 0 0 3px rgba(124, 92, 255, 0.3);
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 400 14px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 480px at 100% -4%, rgba(34, 211, 238, 0.1), transparent 60%);
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
svg { flex: none; }
.muted { color: var(--muted); }

/* ---------- shared bits ---------- */

.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.spinner.sm { width: 15px; height: 15px; }
@keyframes spin { to { transform: rotate(1turn); } }

.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark.lg { width: 54px; height: 54px; border-radius: 16px; }
.brand-mark.lg svg { width: 32px; height: 32px; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform 0.12s, box-shadow 0.2s, background-color 0.15s, border-color 0.15s, opacity 0.15s, filter 0.15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 14px 32px -12px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.primary.sent { background: linear-gradient(135deg, #10b981, #22d3ee); opacity: 1; }
.btn.block { width: 100%; height: 46px; font-size: 15px; }
.btn.ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text-2); }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn.danger { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.28); color: #fca5a5; }
.btn.danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.16); color: #fecaca; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.xs { height: 28px; padding: 0 10px; gap: 6px; font-size: 12px; border-radius: 8px; }
.btn.xs .ic { width: 14px; height: 14px; }
.btn .spinner { display: none; position: absolute; left: 50%; top: 50%; margin: -7.5px 0 0 -7.5px; }
.btn.loading .spinner { display: block; }
.btn.loading > :not(.spinner) { visibility: hidden; }

.input, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 11, 0.6);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus { border-color: rgba(124, 92, 255, 0.75); box-shadow: var(--ring); }
.input { height: 46px; padding: 0 14px; border-radius: 11px; font: 500 15px var(--font); }
.form-error { min-height: 20px; margin: 2px 0 10px; color: #ff9b9b; font-size: 13px; }
.form-error:empty { min-height: 0; margin: 0; }

.avatar {
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #434a60, #272c3a);
}
.avatar.owner { background: var(--grad); }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.xs { width: 28px; height: 28px; font-size: 11.5px; box-shadow: 0 0 0 2px var(--bg); }
.avatar.xs:not(.online) { opacity: 0.45; }
.avatar.online::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--bg);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-2);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.live { color: #a7f3d0; border-color: rgba(16, 185, 129, 0.32); background: rgba(16, 185, 129, 0.08); }
.pill.live .dot { background: var(--green); animation: ping 2s infinite; }
.pill.connecting { color: #fde68a; border-color: rgba(245, 158, 11, 0.32); background: rgba(245, 158, 11, 0.08); }
.pill.connecting .dot { background: var(--amber); animation: blink 1s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }
@keyframes blink { 50% { opacity: 0.3; } }

.count-badge {
  flex: none;
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2);
}

/* ---------- sign in ---------- */

.login {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px 16px;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 440px; height: 440px; background: #5b3dff; top: -140px; left: -100px; }
.o2 { width: 400px; height: 400px; background: #0891b2; bottom: -160px; right: -80px; animation-delay: -7s; }
.login-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
@keyframes drift { to { transform: translate(70px, 50px) scale(1.12); } }

.login-card {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 36px 32px 26px;
  border-radius: 22px;
  background: rgba(14, 18, 27, 0.74);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-card h1 { margin-top: 20px; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.login-card .lede { margin: 6px 0 26px; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 7px; top: 7px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.pw-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.login-card .btn.block { margin-top: 6px; }
.fineprint { margin-top: 18px; text-align: center; color: var(--faint); font-size: 12px; }
.shake { animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* ---------- dashboard ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 64px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(7, 9, 14, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b {
  font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.top-right { display: flex; align-items: center; gap: 14px; }
.team { display: flex; align-items: center; }
.team .avatar + .avatar { margin-left: -6px; }
.me { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.me-text { display: flex; flex-direction: column; line-height: 1.25; }
.me-text b { font-size: 13.5px; font-weight: 650; }
.me-text small { color: var(--muted); font-size: 11.5px; }

.dash { max-width: 1240px; margin: 0 auto; padding: 30px 28px 64px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.025em; }
.page-head p { margin-top: 4px; font-size: 14.5px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat {
  display: flex; flex-direction: column;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat-ic {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.13); color: #b9abff;
}
.stat-ic.cyan { background: rgba(34, 211, 238, 0.11); color: #67e8f9; }
.stat-ic.green { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.stat-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-value { margin-top: auto; padding-top: 4px; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 2px; color: var(--faint); font-size: 12.5px; }

.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.card {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel) 140px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.card-head p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.card-head code, .note code {
  padding: 1px 5px; border-radius: 5px;
  font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, 0.06);
}

/* compose */
.textarea-wrap { position: relative; }
.textarea {
  display: block;
  min-height: 100px; max-height: 260px; resize: none;
  padding: 14px 16px 30px; border-radius: 12px;
  font: 400 15px/1.55 var(--font);
}
.textarea::placeholder { color: var(--faint); }
.counter {
  position: absolute; right: 12px; bottom: 9px;
  font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; pointer-events: none;
}
.counter.near { color: var(--amber); }
.options { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 16px 0; }
.opt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.opt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.seg {
  position: relative;
  display: inline-flex; padding: 3px;
  border-radius: 11px;
  background: rgba(5, 7, 11, 0.55);
  border: 1px solid var(--line);
}
.seg::before {
  content: "";
  position: absolute; top: 3px; bottom: 3px; left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 8px;
  background: var(--panel-hi);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.7);
}
.seg.ready::before { transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1), width 0.28s cubic-bezier(0.3, 0.8, 0.3, 1); }
.seg button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; color: var(--muted);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color 0.15s;
}
.seg button:hover, .seg button[aria-checked="true"] { color: var(--text); }
.seg button:focus-visible { outline: none; box-shadow: var(--ring); }
.tone-dot { width: 8px; height: 8px; border-radius: 50%; }
.tone-dot.info { background: var(--grad); }
.tone-dot.success { background: linear-gradient(135deg, #10b981, #84cc16); }
.tone-dot.warning { background: linear-gradient(135deg, #f59e0b, #facc15); }
.tone-dot.urgent { background: linear-gradient(135deg, #ef4444, #f97316); }

.preview-wrap {
  position: relative;
  padding: 38px 16px 24px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.3px) 0 0 / 16px 16px,
    rgba(5, 7, 11, 0.35);
}
.preview-label {
  position: absolute; top: 11px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint);
}
.compose .form-error:not(:empty) { margin: 14px 0 0; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.hint { color: var(--faint); font-size: 12.5px; }
kbd {
  display: inline-block; padding: 1px 6px;
  border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px; color: var(--text-2);
}

/* history */
.history { list-style: none; margin: 0; padding: 0; }
.h-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.h-item:first-child { border-top: 0; padding-top: 2px; }
.h-item.new { animation: row-in 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } }
.h-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.h-from { font-size: 14px; font-weight: 650; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.chip.tone-info { background: rgba(124, 92, 255, 0.15); color: #c4b5fd; }
.chip.tone-success { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
.chip.tone-warning { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.chip.tone-urgent { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.h-time { color: var(--faint); font-size: 12.5px; }
.h-text { margin: 5px 0 9px; font-size: 14.5px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.h-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 12.5px; }
.h-meta .m { display: inline-flex; align-items: center; gap: 6px; }
.h-meta .m b { color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.h-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.h-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.h-status.live { color: #6ee7b7; }
.h-status.live::before { animation: ping 2s infinite; }
.h-status.done { color: var(--faint); }
.h-status.recalled { color: #fca5a5; }
.h-actions { display: flex; gap: 6px; align-items: flex-start; }

.empty { display: grid; justify-items: center; gap: 4px; padding: 26px 16px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.empty b { color: var(--text-2); font-size: 14px; font-weight: 650; }
.empty.sm { padding: 14px 8px 6px; }
.empty-ic {
  width: 44px; height: 44px; margin-bottom: 6px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.1); color: #b9abff;
}
.empty-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* snippet */
.code { position: relative; border-radius: 12px; background: #05070b; border: 1px solid var(--line-strong); }
.code pre {
  margin: 0; padding: 14px 16px 14px; padding-right: 92px;
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; word-break: break-all;
}
.code .copy { position: absolute; top: 9px; right: 9px; }
.code .copy.done { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
.t-tag { color: #f472b6; }
.t-attr { color: #93c5fd; }
.t-str { color: #86efac; }
.t-punc { color: #64748b; }
.checks { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; color: var(--text-2); font-size: 13px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.note {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}

/* live sites */
.sites { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.site { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 2px; }
.site-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.1); color: #67e8f9;
}
.site-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.site-bar { height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.site-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.4s cubic-bezier(0.3, 0.8, 0.3, 1); }
.site-count { font-size: 14px; font-variant-numeric: tabular-nums; }

/* flash message */
.flash {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 10px;
  background: #1a1f2c; border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.85);
  font-size: 13.5px;
  opacity: 0; transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.flash.show { opacity: 1; transform: translate(-50%, 0); }
.flash.error { border-color: rgba(239, 68, 68, 0.45); color: #fecaca; }

/* entrance after sign-in */
.app.enter .topbar, .app.enter .page-head, .app.enter .stats, .app.enter .cols { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.app.enter .page-head { animation-delay: 0.04s; }
.app.enter .stats { animation-delay: 0.08s; }
.app.enter .cols { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1020px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .team, .me-text { display: none; }
  .me { padding-left: 10px; gap: 8px; }
  .top-right { gap: 10px; }
  .dash { padding: 20px 16px 48px; }
  .page-head h1 { font-size: 22px; }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; }
  .preview-wrap { padding: 36px 10px 18px; }
  .stat-ic, .stat-sub { display: none; }
  .stat-top { font-size: 12px; }
  .stat-value { font-size: 26px; }
  .card { padding: 16px; }
  .options { gap: 14px; }
  .opt { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; justify-content: center; padding: 0 6px; }
  .hint { display: none; }
  .compose-foot .btn { width: 100%; }
  .h-item { grid-template-columns: auto minmax(0, 1fr); }
  .h-actions { grid-column: 2; }
}
@media (max-width: 420px) {
  .bn-first { display: none; }
  .pill .txt { display: none; }
  .pill { padding: 0 10px; }
  .login-card { padding: 30px 22px 22px; }
  .tone-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
