/* ==========================================================================
   Zenith — design system
   ========================================================================== */

:root, [data-theme="dark"] {
  --accent: #2a2ae3;            /* Horizon-style indigo */
  --accent-2: #4747ff;
  --accent-soft: rgba(42, 42, 227, 0.18);
  --accent-line: rgba(71, 71, 255, 0.45);
  --sun: #4747ff;
  --accent-grad: linear-gradient(160deg, #3535f0, #2a2ae3);

  --bg: #0a0a0d;
  --bg-2: #0e0e13;
  --surface: #141419;
  --surface-2: #1b1b22;
  --surface-3: #25252e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f3f3f7;
  --text-2: #a4a4b4;
  --text-3: #6a6a7a;
  --ink: #2a2ae3;               /* primary buttons: indigo */
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --success: #3ddc97;
  --danger: #e5484d;
  --warning: #f5b84a;
  --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 30px 60px -30px rgba(0,0,0,0.8);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px -18px rgba(0,0,0,0.7);
  --glow: 0 0 0 1px var(--accent-line), 0 30px 80px -30px rgba(42, 42, 227, 0.6);
  --glass: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1120px;
  --nav-h: 68px;
  color-scheme: dark;
}

[data-theme="light"] {
  --accent: #2a2ae3;
  --accent-2: #4747ff;
  --accent-soft: rgba(42, 42, 227, 0.1);
  --accent-line: rgba(42, 42, 227, 0.35);
  --bg: #f7f7fb;
  --bg-2: #efeff6;
  --surface: #ffffff;
  --surface-2: #f2f2f8;
  --surface-3: #e5e5f0;
  --line: rgba(10, 10, 30, 0.08);
  --line-2: rgba(10, 10, 30, 0.16);
  --text: #0e0e1a;
  --text-2: #51516a;
  --text-3: #8b8ba3;
  --ink: #2a2ae3;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --success: #15803d;
  --danger: #dc2626;
  --warning: #b45309;
  --shadow: 0 1px 2px rgba(10,10,30,0.04), 0 24px 48px -24px rgba(10,10,30,0.25);
  --shadow-sm: 0 1px 2px rgba(10,10,30,0.05), 0 8px 24px -16px rgba(10,10,30,0.2);
  --glow: 0 0 0 1px var(--accent-line), 0 24px 60px -30px rgba(42,42,227,0.35);
  --glass: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--text);
  background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.04em; line-height: 1.04; font-weight: 520; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
small, .muted { color: var(--text-2); }
.dim { color: var(--text-3); }
code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); padding: 0.15em 0.45em; border-radius: 6px; border: 1px solid var(--line); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(34, 211, 238, 0.3); }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container.narrow { --container: 760px; }
.container.wide { --container: 1320px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit;
  font-weight: 560; font-size: 0.95rem; cursor: pointer; white-space: nowrap; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; text-decoration: none; user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 30px -14px rgba(42,42,227,0.9); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--accent); font-weight: 700; }
.btn-white:hover { background: #ededff; color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.3); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 122, 0.2); color: var(--danger); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-block { width: 100%; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.88rem; font-weight: 560; color: var(--text-2); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: 0.82rem; color: var(--text-3); margin-top: 6px; }
.field .error { font-size: 0.82rem; color: var(--danger); margin-top: 6px; }
.input, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"] {
  width: 100%; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus, select:focus, textarea:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.input.is-invalid, input.is-invalid { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
input[type="color"] { width: 44px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text); font-weight: 480; cursor: pointer; margin: 0; }
.check input { flex: none; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; color: var(--text); font-weight: 480; font-size: 0.92rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background 0.15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { background: #06111a; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Cards / surfaces ---------- */
.card { background: var(--glass), var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card.pad-lg { padding: 32px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h3 { margin: 0; }
.card-head p { margin: 4px 0 0; color: var(--text-2); font-size: 0.9rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge-success { background: rgba(56, 201, 155, 0.12); border-color: rgba(56, 201, 155, 0.3); color: var(--success); }
.badge-danger { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.3); color: var(--danger); }
.badge-warning { background: rgba(245, 199, 106, 0.14); border-color: rgba(245, 199, 106, 0.35); color: var(--warning); }
.badge-sun { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.pill-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.pill-tabs a, .pill-tabs button { height: 34px; padding: 0 16px; border-radius: var(--pill); border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 0.88rem; font-weight: 560; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill-tabs .active { background: var(--accent); color: #fff; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; font-size: 0.92rem; }
.alert .icon { margin-top: 2px; }
.alert-success { border-color: rgba(56, 201, 155, 0.35); background: rgba(56, 201, 155, 0.08); color: var(--success); }
.alert-error { border-color: rgba(255, 107, 122, 0.35); background: rgba(255, 107, 122, 0.08); color: var(--danger); }
.alert-info { border-color: rgba(79, 124, 255, 0.35); background: rgba(79, 124, 255, 0.08); color: var(--text); }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; animation: toast-in 0.22s ease; max-width: 380px; }
.toast-success { border-color: rgba(56, 201, 155, 0.5); }
.toast-error { border-color: rgba(255, 107, 122, 0.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 600; color: var(--text-2); font-size: 0.8rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
[data-theme="light"] .table tbody tr:hover td { background: rgba(15, 20, 32, 0.025); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 6, 14, 0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 900; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); width: 100%; max-width: 520px; padding: 28px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; animation: toast-in 0.18s ease; }
.modal.wide { max-width: 760px; }
.modal h3 { margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Dropdown menu */
.menu { position: absolute; z-index: 50; min-width: 200px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; }
.menu.open { display: block; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu .danger { color: var(--danger); }
.menu hr { margin: 6px 0; }

/* Progress */
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.2s ease; }

/* Utilities */
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.88rem; } .text-xs { font-size: 0.78rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--mono); }
.hide { display: none !important; }
.gradient-text { color: var(--text); }
.tabular { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Public site
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #fb923c, #e11d48); display: grid; place-items: center; color: #fff; }
.brand-mark .icon { width: 20px; height: 20px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 520; font-size: 0.93rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-ghost.hide-sm { display: none; }
}

/* Sky hero */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: 80px; z-index: -1; border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-2) 55%, transparent), color-mix(in srgb, var(--accent) 25%, transparent) 60%, transparent 75%); filter: blur(40px); opacity: 0.55; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.18rem; color: var(--text-2); max-width: 32em; margin-bottom: 30px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hero-note .icon { width: 1em; height: 1em; color: var(--success); }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0 50px; } }

/* Live dropzone — the memorable element */
.drop {
  position: relative; border-radius: var(--r-xl); padding: 28px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px;
  background: var(--glass), color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(42,42,227,0.06), 0 40px 80px -40px rgba(42,42,227,0.35), var(--shadow); transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
.drop.over { border-color: var(--accent); box-shadow: var(--glow); transform: scale(1.01); }
.drop .orb { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-grad); display: grid; place-items: center; color: #fff; margin-bottom: 6px; box-shadow: 0 14px 40px -12px rgba(42,42,227,0.9); }
.drop .orb .icon { width: 28px; height: 28px; }
.drop h3 { margin: 0; font-size: 1.25rem; }
.drop p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.drop .types { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.drop-idle, .drop-busy, .drop-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop .result { width: 100%; text-align: left; }
.drop .result .thumb { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.drop-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: 0.8rem; font-weight: 560; pointer-events: none; }
.drop-float .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.drop-float.a { top: -16px; left: -22px; }
.drop-float.b { right: -18px; top: 26%; }
.drop-float.c { bottom: -14px; left: 12%; }
@media (max-width: 520px) { .drop-float { display: none; } }

/* Sections */
.section { padding: 76px 0; }
.section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-row p { color: var(--text-2); font-size: 1.03rem; }
.feature-row ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.feature-row li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.95rem; }
.feature-row li .icon { color: var(--success); margin-top: 3px; width: 1em; height: 1em; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } .feature-row.flip > :first-child { order: 0; } }

.demo { background: var(--glass), var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }

/* Chat-style embed preview (Discord-like; always dark so it reads as a chat app) */
.chat { display: grid; gap: 14px; background: #1a1a1e; border-radius: 12px; padding: 18px; color: #f2f3f5; }
.chat .msg { display: flex; gap: 12px; }
.chat .avatar { width: 40px; height: 40px; border-radius: 50%; background: #3a3a44; flex: none; }
.chat .avatar.b { background: #5865f2; }
.chat .who { font-weight: 600; font-size: 0.95rem; display: flex; gap: 8px; align-items: baseline; color: #f2f3f5; }
.chat .who small { color: #949ba4; font-weight: 400; font-size: 0.75rem; }
.chat .text { color: #dbdee1; font-size: 0.95rem; }
.chat .text.link { color: #00a8fc; word-break: break-all; }
.embed-card { margin-top: 8px; border-left: 4px solid #e5484d; background: #2b2d31; border-radius: 4px; padding: 12px 16px 14px; max-width: 432px; display: grid; gap: 8px; }
.embed-card .author { font-weight: 600; font-size: 0.875rem; color: #f2f3f5; }
.embed-card .ttl { font-weight: 600; color: #00a8fc; font-size: 1rem; line-height: 1.3; word-break: break-word; }
.embed-card .desc { font-size: 0.875rem; color: #dbdee1; }
.embed-card .desc:empty { display: none; }
.embed-card .img { height: 180px; border-radius: 4px; background: #1e1f22; display: grid; place-items: center; color: #6d6f78; position: relative; overflow: hidden; }
.embed-card .embed-footer { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: #dbdee1; margin-top: 2px; }
.embed-card .embed-footer img { width: 20px; height: 20px; border-radius: 50%; }
.embed-card .site { display: none; }

/* Encryption demo */
.cipher { font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: var(--text-3); word-break: break-all; max-height: 150px; overflow: hidden; position: relative; }
.cipher::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, var(--surface)); }
.lock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.lock-row .state { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.file-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9rem; }
.file-pill .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.file-pill .ic { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--r-lg); background: var(--glass), var(--surface); border: 1px solid var(--line); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app { padding: 22px; border-radius: var(--r-lg); background: var(--glass), var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.app .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.app .ic .icon { width: 24px; height: 24px; }
.app h3 { font-size: 1rem; margin: 6px 0 0; }
.app p { color: var(--text-2); font-size: 0.88rem; margin: 0; flex: 1; }
@media (max-width: 900px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .apps { grid-template-columns: 1fr; } }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 0.93rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.compare th.us { color: var(--accent); background: var(--accent-soft); }
.compare td.us { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.compare .yes { color: var(--success); } .compare .no { color: var(--text-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.plan { position: relative; background: var(--glass), var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 30px 80px -40px rgba(42,42,227,0.7); }
.plan .ribbon { position: absolute; top: -12px; left: 30px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price .amt { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.plan .price .per { color: var(--text-3); font-size: 0.9rem; }
.plan .price .was { color: var(--text-3); text-decoration: line-through; font-size: 0.9rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--success); width: 1em; height: 1em; margin-top: 4px; }
.plan .cta { margin-top: auto; }
.billing-toggle { display: flex; justify-content: center; margin-bottom: 30px; gap: 12px; align-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: var(--r-lg); background: var(--glass), var(--surface); border: 1px solid var(--line); }
.stat .n { color: var(--text); }
.stat .n { font-size: 2rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.stat .l { color: var(--text-2); font-size: 0.86rem; margin-top: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 36px; margin-top: 40px; color: var(--text-2); font-size: 0.9rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: var(--text); font-size: 0.86rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.83rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page-head { padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 40em; }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
.docs-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 0.92rem; }
.docs-nav a:hover, .docs-nav a.active { background: var(--surface); color: var(--text); }
@media (max-width: 800px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; display: flex; flex-wrap: wrap; } }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: var(--bg-2); border-right: 1px solid var(--line); }
.auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14em; }
.auth-side p { color: var(--text-2); max-width: 30em; }
.auth-side .quote { font-size: 0.9rem; color: var(--text-3); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 28px; }
.auth-card .foot { margin-top: 24px; font-size: 0.9rem; color: var(--text-2); text-align: center; }
.auth-card .foot a { color: var(--accent); font-weight: 560; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.side .brand { padding: 6px 10px 18px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--pill); color: var(--text-2); font-weight: 520; font-size: 0.93rem; }
.side nav a:hover { background: var(--surface); color: var(--text); }
.side nav a.active { background: var(--accent-soft); color: var(--text); }
.side nav a.active .icon { color: var(--accent); }
.side .group { margin: 14px 12px 4px; font-size: 0.72rem; font-weight: 600; color: var(--text-3); }
.side .bottom { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }
.usage { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; color: var(--text-2); }
.usage .progress { margin: 8px 0; }
.usage strong { color: var(--text); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.me:hover { background: var(--surface); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: grid; place-items: center; font-weight: 650; font-size: 0.85rem; flex: none; }
.main { padding: 26px 32px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.4rem; margin: 0; letter-spacing: -0.025em; }
.topbar .spacer { flex: 1; }
.search { position: relative; width: min(280px, 100%); }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { padding-left: 38px; height: 40px; }
.side-toggle { display: none; }
.side-backdrop { display: none; }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 300; transform: translateX(-100%); transition: transform 0.2s ease; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .side-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 290; }
  .side-toggle { display: inline-flex; }
  .main { padding: 18px 16px 60px; }
}

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-2); flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { width: 1em; height: 1em; color: var(--text-3); }
.crumbs .cur { color: var(--text); font-weight: 560; }

/* Folder chips */
.folders { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.folder-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 520; }
.folder-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.folder-chip .icon { color: var(--accent); }
.folder-chip .n { color: var(--text-3); font-weight: 400; font-size: 0.82rem; }
.folder-chip.drop-target { border-color: var(--accent); background: var(--accent-soft); }

/* File grid */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; cursor: pointer; user-select: none; }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.tile.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile .prev { aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; color: var(--text-3); position: relative; overflow: hidden; }
.tile .prev img { width: 100%; height: 100%; object-fit: cover; }
.tile .prev .icon { width: 36px; height: 36px; }
.tile .prev .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.72rem; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tile .prev .lock { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 7px; padding: 4px; display: grid; }
.tile .prev .lock .icon { width: 14px; height: 14px; }
.tile .meta { padding: 10px 12px 11px; }
.tile .name { font-size: 0.88rem; font-weight: 560; }
.tile .sub { font-size: 0.76rem; color: var(--text-3); margin-top: 2px; display: flex; gap: 6px; }
.tile .sel { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.6); display: grid; place-items: center; opacity: 0; transition: opacity 0.12s; color: #fff; }
.tile:hover .sel, .tile.selected .sel, .files-grid.selecting .sel { opacity: 1; }
.tile.selected .sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile .sel .icon { width: 14px; height: 14px; }
.tile .more { position: absolute; right: 8px; bottom: 44px; opacity: 0; transition: opacity 0.12s; }
.tile:hover .more { opacity: 1; }
.tile.dragging { opacity: 0.5; }

.files-list .row { display: grid; grid-template-columns: 44px 1fr 110px 90px 130px 40px; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; cursor: pointer; }
.files-list .row:hover { background: var(--surface); }
.files-list .row.selected { background: var(--accent-soft); }
.files-list .thumb { width: 44px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.files-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .files-list .row { grid-template-columns: 44px 1fr 40px; } .files-list .row .hide-sm { display: none; } }

.empty { text-align: center; padding: 70px 20px; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--r-xl); }
.empty .icon { width: 44px; height: 44px; color: var(--text-3); margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin-bottom: 18px; }

.bulkbar { position: sticky; bottom: 20px; margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.9rem; width: fit-content; margin-inline: auto; z-index: 20; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; font-size: 0.9rem; color: var(--text-2); }

/* Upload queue */
.queue { display: grid; gap: 10px; margin-top: 20px; }
.qitem { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; }
.qitem .thumb { width: 44px; height: 44px; border-radius: 9px; background: var(--bg); object-fit: cover; display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.qitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qitem .progress { margin-top: 6px; height: 5px; }
.qitem .status { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }
.qitem.done .status { color: var(--success); }
.qitem.error .status { color: var(--danger); }
.qitem .link { display: flex; gap: 6px; }
.upload-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }

/* Detail drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5,6,14,0.55); z-index: 400; display: none; }
.drawer-backdrop.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); z-index: 410; transform: translateX(100%); transition: transform 0.22s ease; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.drawer.open { transform: none; }
.drawer .preview { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; min-height: 180px; max-height: 300px; color: var(--text-3); }
.drawer .preview img, .drawer .preview video { width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
.drawer .kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 0.88rem; }
.drawer .kv dt { color: var(--text-3); }
.drawer .kv dd { margin: 0; color: var(--text); word-break: break-all; }
.drawer .linkbox { display: flex; gap: 8px; }
.drawer .linkbox input { font-family: var(--mono); font-size: 0.82rem; }
.drawer .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 210px 1fr; gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 0.9rem; font-weight: 520; display: flex; gap: 10px; align-items: center; }
.settings-nav a:hover, .settings-nav a.active { background: var(--surface); color: var(--text); }
.settings-section { margin-bottom: 28px; }
.settings-section h2 { font-size: 1.15rem; margin-bottom: 4px; }
.settings-section > p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 16px; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.key-row:last-child { border-bottom: 0; }
.key-row code { font-size: 0.8rem; }
.secret { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--success) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qr svg { width: 180px; height: 180px; display: block; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; flex-wrap: wrap; } }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi .n { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.kpi .l { font-size: 0.82rem; color: var(--text-2); margin-top: 4px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.spark span { flex: 1; background: var(--accent); opacity: 0.85; border-radius: 2px 2px 0 0; min-height: 2px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-size: 0.9rem; font-weight: 520; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--text); border-bottom-color: var(--accent-2); }

/* ==========================================================================
   Public view pages
   ========================================================================== */
.view-wrap { width: min(1200px, 100% - 32px); margin: 24px auto 60px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.view-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); min-height: 420px; display: grid; place-items: center; overflow: hidden; position: relative; }
.view-stage img { max-width: 100%; height: auto; max-height: 82vh; object-fit: contain; cursor: zoom-in; }
.view-stage img.zoomed { max-height: none; cursor: zoom-out; }
.view-stage video, .view-stage audio { width: 100%; max-height: 82vh; background: #000; }
.view-stage audio { padding: 40px; background: transparent; }
.view-stage iframe { width: 100%; height: 82vh; border: 0; background: #fff; }
.view-stage pre { width: 100%; max-height: 82vh; margin: 0; border: 0; border-radius: 0; font-size: 0.85rem; }
.view-stage .generic { text-align: center; padding: 60px 20px; color: var(--text-2); }
.view-stage .generic .icon { width: 64px; height: 64px; color: var(--text-3); margin: 0 auto 16px; }
.view-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 16px); }
.view-side h1 { font-size: 1.15rem; word-break: break-word; letter-spacing: -0.01em; margin: 0; }
.view-side .kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 0.86rem; }
.view-side .kv dt { color: var(--text-3); } .view-side .kv dd { margin: 0; }
.view-side .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 860px) { .view-wrap { grid-template-columns: 1fr; } .view-side { position: static; } }
.paste-view pre { margin: 0; border-radius: 0; border: 0; padding: 0; }
.paste-view .ln { display: grid; grid-template-columns: auto 1fr; }
.paste-view .ln .nums { padding: 18px 12px; text-align: right; color: var(--text-3); user-select: none; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }
.paste-view .ln code { padding: 18px; display: block; white-space: pre; overflow-x: auto; }

/* Install */
.install { max-width: 720px; margin: 40px auto; padding: 0 20px; }
.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.steps span.done { background: var(--accent); }
.req { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.req:last-child { border-bottom: 0; }
.req .ok { color: var(--success); } .req .bad { color: var(--danger); } .req .opt { color: var(--text-3); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--text); font-weight: 480; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; }
.choice strong { display: block; font-weight: 600; margin-bottom: 2px; }
.choice small { color: var(--text-2); }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }

/* Error page */
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err .code { font-size: 6rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--accent); }

/* theme toggle icons */
.i-moon { display: none; }
[data-theme="light"] .i-moon { display: inline-block; }
[data-theme="light"] .i-sun { display: none; }

/* ==========================================================================
   Homepage — product-first layout
   ========================================================================== */
.hero-plain { padding: 80px 0 40px; }
.hero-plain .container { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero-plain h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero-plain .lead { max-width: 36em; }
.drop-compact { min-height: 300px; }
.shot-section { padding: 24px 0 70px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 0 0 1px rgba(42,42,227,0.08), 0 60px 120px -50px rgba(42,42,227,0.55), var(--shadow); }
.shot img { width: 100%; height: auto; display: block; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.shot-bar em { font-style: normal; margin-left: 14px; font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); background: var(--bg); padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); }
.shot-caption { max-width: 62ch; margin: 22px auto 0; text-align: center; color: var(--text-2); font-size: 0.95rem; }
.shot-sm { box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.two-col h2 { margin-bottom: 10px; }
.plainlist { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.plainlist dt { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.plainlist dd { margin: 0; color: var(--text-2); font-size: 0.94rem; line-height: 1.55; }
.apps-row h2 { margin-bottom: 26px; }
.apps-plain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.apps-plain h3 { font-size: 1rem; margin-bottom: 6px; }
.apps-plain p { color: var(--text-2); font-size: 0.92rem; }
.apps-plain a { color: var(--accent); font-weight: 560; font-size: 0.92rem; }
.plans-inline { max-width: none; margin: 0; grid-template-columns: 1fr 1fr; }
.plans-inline .plan { padding: 24px; gap: 14px; }
.plans-inline .price .amt { font-size: 1.6rem; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--text-2); }
ul.plain li::before { content: "— "; color: var(--text-3); }
.faq-list details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 10px 0 0; color: var(--text-2); font-size: 0.94rem; max-width: 60ch; }
.faq { padding-bottom: 90px; }
@media (max-width: 920px) {
  .hero-plain .container { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .plainlist { grid-template-columns: 1fr; }
  .apps-plain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .apps-plain, .plans-inline { grid-template-columns: 1fr; } }

/* Public file page extras */
.btn-report { background: var(--danger); border-color: var(--danger); color: #fff; height: 46px; padding: 0 26px; font-weight: 600; }
.btn-report:hover { background: #d93f44; color: #fff; }
.signup-banner { background: var(--accent); color: #fff; padding: 30px 0; margin-top: 10px; }
.signup-banner .container { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.signup-banner p { margin: 0; font-size: 1.05rem; }
.signup-banner .btn { background: #fff; border-color: #fff; color: var(--accent); font-weight: 700; }
.signup-banner .btn:hover { background: #eef0ff; color: var(--accent); }
@media (max-width: 600px) { .signup-banner .container { flex-direction: column; } }
@media (max-width: 860px) { .view-stage { min-height: 200px; } }

/* Horizon-style homepage */
.hero-center { text-align: center; padding: 110px 0 30px; }
.hero-center .container { display: block; }
.hero-center h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 18px; }
.hero-center .lead { margin: 0 auto 28px; max-width: 42em; font-size: 1.2rem; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-note { justify-content: center; margin-top: 14px; }
.hero-shot { margin: 56px auto 0; max-width: 1040px; }
.features.three { grid-template-columns: repeat(3, 1fr); }
.features .feature h3 { font-size: 1.1rem; }
.upload-anim { display: grid; gap: 10px; }
.upload-anim .qitem { animation: slide-in 0.5s ease both; }
.upload-anim .qitem:nth-child(2) { animation-delay: 0.25s; }
.upload-anim .qitem:nth-child(3) { animation-delay: 0.5s; }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.player-mock { aspect-ratio: 16 / 9; border-radius: 14px; background: radial-gradient(420px 220px at 70% 30%, var(--accent-soft), transparent 70%), #0d0d14; position: relative; display: grid; place-items: center; border: 1px solid var(--line); }
.player-mock .play { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #111; box-shadow: var(--shadow); }
.player-mock .bar { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.player-mock .progress { height: 4px; background: rgba(255,255,255,0.25); } .player-mock .progress span { background: #fff; }
.embed-card .img { position: relative; }
.embed-card .play-badge { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; }
.embed-card .play-badge .icon { width: 22px; height: 22px; }
.apps-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apps-tiles div { aspect-ratio: 1; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-content: center; justify-items: center; gap: 8px; font-size: 0.85rem; font-weight: 560; position: relative; }
.apps-tiles .icon { width: 28px; height: 28px; color: var(--accent-2); }
.apps-tiles small { position: absolute; top: 8px; right: 8px; font-size: 0.65rem; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.stats.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; text-align: center; }
.stats.two .n { font-size: 2.6rem; }
@media (max-width: 900px) { .features.three { grid-template-columns: 1fr; } .apps-tiles { grid-template-columns: repeat(2, 1fr); } .stats.two { grid-template-columns: 1fr; } }

/* ==========================================================================
   Landing page motion (1.1.1)
   Hidden-until-revealed states only apply when JS is running (html.js).
   ========================================================================== */
.hero-center::after { display: none; }
.hero .blob { position: absolute; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55; will-change: transform, border-radius; }
.hero .blob.b1 { width: 560px; height: 560px; right: -140px; top: 40px; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent-2) 70%, transparent), color-mix(in srgb, var(--accent) 35%, transparent) 60%, transparent 75%); animation: blob-morph 18s ease-in-out infinite, blob-drift-a 26s ease-in-out infinite; }
.hero .blob.b2 { width: 440px; height: 440px; left: -160px; top: 260px; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, #8b5cf6 55%, transparent), color-mix(in srgb, var(--accent) 25%, transparent) 60%, transparent 75%); opacity: .4; animation: blob-morph 22s ease-in-out infinite reverse, blob-drift-b 30s ease-in-out infinite; }
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; }
  33% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; }
  66% { border-radius: 35% 65% 55% 45% / 40% 55% 45% 60%; }
}
@keyframes blob-drift-a { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-90px, 60px) rotate(40deg); } }
@keyframes blob-drift-b { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(110px, -50px) rotate(-30deg); } }

.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(.45em); filter: blur(8px); animation: word-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 60ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.js .fade-in { opacity: 0; transform: translateY(14px); animation: fade-up .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.hero-shot-wrap { perspective: 1400px; }
.hero-shot { --tilt: 16deg; --sc: .93; transform: rotateX(var(--tilt)) scale(var(--sc)); transform-origin: 50% 0; will-change: transform; transition: transform .12s linear; }
.hero-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out 1.4s infinite; }
.hero-shot { position: relative; }
@keyframes sheen { 0% { background-position: 120% 0; } 35%, 100% { background-position: -120% 0; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feature-row .reveal + .reveal { transition-delay: .12s; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }

/* Pointer spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); }
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: var(--accent-line); }
.feature.spot { transition: border-color .2s, transform .25s; }
.feature.spot:hover .ic { transform: translateY(-2px) rotate(-6deg); }
.feature .ic { transition: transform .3s cubic-bezier(.2,.7,.2,1); }

/* Upload demo */
.upload-anim .qitem { animation: none; transition: border-color .3s, box-shadow .3s, transform .3s; }
.upload-anim .qitem.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.upload-anim .qitem.done { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.upload-anim .thumb-img { background-size: cover; background-position: center; }
.upload-anim .done-badge { opacity: 0; transform: scale(.6); transition: opacity .25s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.upload-anim .qitem.done .done-badge { opacity: 1; transform: none; }
.upload-anim .status { font-variant-numeric: tabular-nums; }
.copied-pill { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); opacity: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 560; box-shadow: var(--shadow); transition: opacity .3s, transform .45s cubic-bezier(.3,1.5,.5,1); white-space: nowrap; pointer-events: none; }
.copied-pill .icon { width: 15px; height: 15px; }
.copied-pill span { font-family: var(--mono); font-size: .78rem; }
.copied-pill.show { opacity: 1; transform: translate(-50%, 0); }
#upload-demo { padding-bottom: 46px; }

/* Video player demo: a little night-drive scene */
.player-mock { overflow: hidden; }
.player-mock .footage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.player-mock.playing .footage { opacity: 1; }
.footage .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0b2e 0%, #1c1660 45%, #4a2a8a 70%, #ff7a59 100%); }
.footage .lights { position: absolute; inset: 0; }
.footage .lights span { position: absolute; width: 140px; height: 140px; border-radius: 50%; filter: blur(30px); opacity: .5; animation: bokeh 9s ease-in-out infinite; }
.footage .lights span:nth-child(1) { left: 10%; top: 10%; background: #4747ff; }
.footage .lights span:nth-child(2) { left: 55%; top: 5%; background: #ff5fa2; animation-delay: -3s; }
.footage .lights span:nth-child(3) { left: 75%; top: 30%; background: #ffb347; animation-delay: -6s; }
@keyframes bokeh { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 20px) scale(1.25); } }
.footage .city { position: absolute; left: 0; bottom: 18%; height: 55%; display: flex; width: 200%; }
.footage .city .strip { display: flex; align-items: flex-end; gap: 3px; width: 50%; height: 100%; padding-right: 3px; }
.footage .city i { display: block; flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0; background: #120f35; }
.footage .city.far { height: 45%; animation: pan 40s linear infinite; }
.footage .city.far i { background: #241d63; }
.footage .city.near { animation: pan 18s linear infinite; }
.footage .city i.lit { background-image: radial-gradient(circle, rgba(255,214,140,.9) 1px, transparent 1.6px); background-size: 7px 9px; background-position: 2px 4px; }
.player-mock:not(.playing) .footage .city, .player-mock:not(.playing) .footage .road::after { animation-play-state: paused; }
@keyframes pan { to { transform: translateX(-50%); } }
.footage .road { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: #07061a; overflow: hidden; }
.footage .road::after { content: ""; position: absolute; left: 0; width: 200%; top: 45%; height: 3px; background: repeating-linear-gradient(90deg, #ffd88a 0 26px, transparent 26px 60px); animation: pan 1.6s linear infinite; }
.player-mock .play { position: relative; z-index: 2; transition: opacity .35s, transform .35s cubic-bezier(.3,1.5,.5,1); }
.player-mock .play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ping 2s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes ping { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.player-mock.pressed .play { transform: scale(.88); }
.player-mock.playing .play { opacity: 0; transform: scale(1.4); pointer-events: none; }
.player-mock .bar { z-index: 2; }
.player-mock .progress { position: relative; }
.player-mock .progress span { position: relative; z-index: 1; width: 0; }
.player-mock .progress .buffer { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.35); border-radius: 4px; }

/* Encryption */
#cipher-demo .file-pill .ic { transition: color .3s, background .3s; }
#cipher-demo.is-locked .file-pill .ic { color: var(--accent-2); }
#cipher-demo .state .icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
#cipher-demo:not(.is-locked) .state .icon { transform: rotate(-18deg) translateY(-1px); }
#cipher-demo.is-locked .cipher { text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent); }

/* Discord conversation */
.chat-live { min-height: 470px; align-content: start; }
.js .chat-live .msg { opacity: 0; transform: translateY(10px); max-height: 0; overflow: hidden; transition: opacity .4s, transform .4s cubic-bezier(.2,.7,.2,1), max-height .5s ease; }
.js .chat-live .msg.show { opacity: 1; transform: none; max-height: 600px; }
.js .chat-live .m1 .embed-card { opacity: 0; transform: translateY(6px) scale(.98); transform-origin: 0 0; max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1), max-height .55s ease, margin .4s, padding .4s; }
.js .chat-live .m1.embed-in .embed-card { opacity: 1; transform: none; max-height: 520px; margin-top: 8px; padding-top: 12px; padding-bottom: 14px; }
.chat-live .typing { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #b5bac1; height: 20px; opacity: 0; transition: opacity .25s; }
.chat-live .typing.show { opacity: 1; }
.chat-live .typing b { color: #f2f3f5; font-weight: 600; }
.chat-live .dots { display: inline-flex; gap: 3px; margin-right: 2px; }
.chat-live .dots i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: dot 1.2s ease-in-out infinite; }
.chat-live .dots i:nth-child(2) { animation-delay: .15s; }
.chat-live .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-live .typing { order: 99; }

/* Apps tiles */
.apps-tiles div { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); transition: border-color .3s, box-shadow .3s, background .3s; overflow: hidden; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.apps-tiles div.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), 0 18px 40px -20px rgba(42,42,227,.6); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.apps-tiles div .icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.apps-tiles div.active > .icon { transform: translateY(-4px) scale(1.08); }
.apps-tiles .sent { position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 12px); opacity: 0; font-style: normal; font-size: .68rem; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 3px; transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1); white-space: nowrap; }
.apps-tiles .sent .icon { width: 12px; height: 12px; color: var(--success); }
.apps-tiles div.active .sent { opacity: 1; transform: translate(-50%, 0); }

/* Code typewriter */
.code-type { min-height: 132px; white-space: pre-wrap; word-break: break-all; font-size: .84rem; }
.code-type code { white-space: pre-wrap; }
.code-type .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -.2em; background: var(--accent-2); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Comparison rows */
.js .pop-rows tr { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.js .pop-rows.in tr { opacity: 1; transform: none; }
.pop-rows tr:nth-child(1) { transition-delay: .05s; } .pop-rows tr:nth-child(2) { transition-delay: .12s; } .pop-rows tr:nth-child(3) { transition-delay: .19s; } .pop-rows tr:nth-child(4) { transition-delay: .26s; } .pop-rows tr:nth-child(5) { transition-delay: .33s; } .pop-rows tr:nth-child(6) { transition-delay: .4s; } .pop-rows tr:nth-child(7) { transition-delay: .47s; }
.pop-rows td.us.yes .icon { transition: transform .4s cubic-bezier(.3,1.8,.5,1) .5s; }
.js .pop-rows:not(.in) td.us.yes .icon { transform: scale(0); }

/* Pricing */
.plan.spot { transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .3s; }
.plan.spot:hover { transform: translateY(-4px); }
.plan.featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent-2) 82%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.plan .amt { display: inline-block; }
.plan .amt.flip { animation: flip .32s ease; }
@keyframes flip { 0% { transform: none; opacity: 1; } 49% { transform: translateY(-10px); opacity: 0; } 51% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > *, .js .fade-in, .js .hero-title .w, .js .pop-rows tr { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero .blob, .apps-tiles div, .plan.featured::after, .hero-shot::after { animation: none !important; }
  .hero-shot { transform: none; }
}
.footage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(4,4,16,.8)); pointer-events: none; }
.footage .road::after { top: 22%; }
.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); }
.thumb-fallback .icon { width: 40%; height: 40%; max-width: 32px; max-height: 32px; }

/* End-to-end encrypted share page */
.e2e-stage { width: 100%; min-height: 420px; display: grid; place-items: center; }
.e2e-state { text-align: center; padding: 40px 24px; max-width: 560px; }
.e2e-state h2 { font-size: 1.2rem; margin: 14px 0 6px; }
.e2e-state[data-state="done"] { max-width: none; width: 100%; padding: 0; display: grid; place-items: center; }
.e2e-state[data-state="done"] img { max-width: 100%; height: auto; max-height: 82vh; object-fit: contain; cursor: zoom-in; }
.e2e-state[data-state="done"] img.zoomed { max-height: none; cursor: zoom-out; }
.e2e-state[data-state="done"] video { width: 100%; max-height: 82vh; background: #000; display: block; }
.e2e-state[data-state="done"] audio { margin: 48px auto; }
.e2e-state[data-state="done"] iframe { width: 100%; height: 82vh; border: 0; background: #fff; }
.e2e-state[data-state="done"] pre { width: 100%; margin: 0; border: 0; border-radius: 0; max-height: 82vh; }
.e2e-lock { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: var(--accent-grad); box-shadow: 0 18px 40px -16px rgba(42,42,227,.7); position: relative; }
.e2e-lock .icon { width: 28px; height: 28px; }
.e2e-lock::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid var(--accent-line); animation: ping 2.2s cubic-bezier(.2,.7,.2,1) infinite; }
.e2e-lock.is-error { background: var(--danger); box-shadow: none; }
.e2e-lock.is-error::after, .e2e-lock.is-open::after { display: none; }
.e2e-lock.is-open { background: var(--success); }
.enc-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .86rem; color: var(--text-2); }
.enc-note a { color: var(--accent-2); font-weight: 560; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* ===== Homepage: end-to-end encryption "vault" ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 14px; }
.eyebrow .icon { width: 15px; height: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-2); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.vault { position: relative; max-width: 1060px; margin: 44px auto 0; padding: 34px 26px 26px 70px; }
.vault::before { content: ""; position: absolute; inset: 10% -4% -6% 30%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent); filter: blur(30px); opacity: .7; }
.vault-win { display: grid; grid-template-columns: 210px 1fr; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(42,42,227,.06), 0 50px 110px -50px rgba(42,42,227,.55), var(--shadow); }
.vault-side { padding: 18px 14px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; font-size: .86rem; color: var(--text-2); }
.vs-brand { display: flex; align-items: center; gap: 9px; margin: 2px 6px 14px; color: var(--text); font-size: .98rem; }
.vs-brand img { width: 24px; height: 24px; border-radius: 7px; }
.vs-new { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 10px; color: var(--text); font-weight: 560; }
.vs-new .icon, .vs-item .icon { width: 16px; height: 16px; }
.vs-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; }
.vs-item.on { background: var(--surface-2); color: var(--text); font-weight: 560; }
.vs-item.sub { padding-left: 30px; }
.vs-item .dot { width: 12px; height: 9px; border-radius: 2px; }
.dot.amber { background: #f5a623; }
.vault-main { padding: 16px 20px 20px; min-width: 0; }
.vault-search { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-3); font-size: .86rem; margin-bottom: 16px; max-width: 460px; }
.vault-search .icon { width: 16px; height: 16px; }
.vault-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.vtile { position: relative; aspect-ratio: 1 / .86; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.vt-face { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; transition: clip-path .9s cubic-bezier(.65,0,.35,1), opacity .4s; clip-path: inset(0 0 0 0); }
.vt-art { display: grid; place-items: center; position: relative; overflow: hidden; }
.vt-name { border-top: 1px solid var(--line); padding: 7px 8px; text-align: center; font-size: .74rem; font-family: var(--mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glyph { width: 30px; height: 38px; border-radius: 4px; position: relative; clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.glyph::after { content: ""; position: absolute; left: 7px; right: 7px; top: 16px; height: 12px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.9) 0 2px, transparent 2px 5px); border-radius: 1px; }
.glyph::before { content: ""; position: absolute; right: 0; top: 0; width: 32%; height: 26%; background: rgba(255,255,255,.45); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.k-pdf .glyph { background: #e5484d; } .k-doc .glyph { background: #2f8cff; } .k-sheet .glyph { background: #22b573; } .k-video .glyph { background: #8b5cf6; }
.k-sheet .glyph::after { background: linear-gradient(90deg, transparent 45%, rgba(255,255,255,.9) 45% 55%, transparent 55%), linear-gradient(180deg, transparent 45%, rgba(255,255,255,.9) 45% 55%, transparent 55%); }
.k-video .glyph::after { left: 11px; right: auto; top: 17px; width: 0; height: 0; background: none; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.k-folder .glyph { width: 46px; height: 34px; border-radius: 5px; background: #f5a623; clip-path: polygon(0 12%, 38% 12%, 46% 0, 100% 0, 100% 100%, 0 100%); }
.k-folder .glyph::before, .k-folder .glyph::after { display: none; }
.k-img .vt-art .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2b1f6e 0%, #6a3fd6 55%, #f0a3d1 100%); }
.k-img .vt-art .m1, .k-img .vt-art .m2 { position: absolute; left: -10%; right: -10%; bottom: 0; }
.k-img .vt-art .m1 { height: 62%; background: #3b2a8f; clip-path: polygon(0 100%, 0 60%, 18% 30%, 34% 55%, 52% 12%, 70% 46%, 86% 22%, 100% 50%, 100% 100%); opacity: .85; }
.k-img .vt-art .m2 { height: 42%; background: #1f1757; clip-path: polygon(0 100%, 0 45%, 22% 70%, 40% 30%, 60% 62%, 78% 38%, 100% 66%, 100% 100%); }

.vt-cipher { position: absolute; inset: 0; padding: 8px 9px; font-family: var(--mono); font-size: 9.5px; line-height: 1.32; letter-spacing: .14em; word-break: break-all; color: color-mix(in srgb, var(--accent-2) 55%, var(--text-3)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface-2) 70%); clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65,0,.35,1); overflow: hidden; }
.vt-cipher b { color: var(--accent-2); font-weight: 700; }
.vt-cipher i { font-style: normal; color: #d946ef; font-weight: 700; }
.vtile.enc .vt-cipher { clip-path: inset(0 0 0 0); }
.vtile.enc .vt-face { clip-path: inset(0 0 0 100%); }
.vtile.enc { border-color: var(--accent-line); }
.vtile::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: -2px; background: linear-gradient(180deg, transparent, var(--accent-2), transparent); box-shadow: 0 0 14px var(--accent-2); opacity: 0; }
.vtile.sweep::after { animation: sweep .9s cubic-bezier(.65,0,.35,1); }
@keyframes sweep { 0% { left: 0; opacity: 1; } 100% { left: 100%; opacity: 0; } }

.vault-pill { position: absolute; top: 4px; right: 12%; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(42,42,227,.6); animation: float 6s ease-in-out infinite; }
.vault-pill .shield { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent-grad); }
.vault-pill .shield .icon { width: 17px; height: 17px; }

.vault-lock { position: absolute; left: 0; bottom: 12%; z-index: 3; width: 118px; height: 118px; border-radius: 30px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -24px rgba(42,42,227,.65); display: grid; place-items: center; animation: float 7s ease-in-out -2s infinite; }
.vault-lock .shackle { position: absolute; left: 50%; top: 20px; width: 40px; height: 40px; margin-left: -20px; border: 9px solid #8f86ff; border-bottom: 0; border-radius: 22px 22px 0 0; transform-origin: 85% 100%; animation: shackle 5s ease-in-out infinite; }
.vault-lock .body { position: absolute; left: 50%; top: 50px; width: 64px; height: 50px; margin-left: -32px; border-radius: 12px; background: linear-gradient(160deg, #6d5cff, var(--accent)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); display: grid; place-items: center; }
.vault-lock .body i { width: 14px; height: 20px; border-radius: 7px 7px 4px 4px; background: #fff; position: relative; }
.vault-lock .body i::after { content: ""; position: absolute; left: 5px; top: 6px; width: 4px; height: 8px; border-radius: 2px; background: var(--accent); }
@keyframes shackle { 0%, 40%, 100% { transform: translateY(0); } 50%, 70% { transform: translateY(-10px) rotate(-14deg); } }

.vault-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1060px; margin: 30px auto 0; }
.vault-points > div { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass), var(--surface); }
.vault-points .icon { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 10px; }
.vault-points h3 { font-size: 1rem; margin-bottom: 6px; }
.vault-points p { margin: 0; font-size: .9rem; color: var(--text-2); }

@media (max-width: 900px) {
  .vault { padding: 30px 0 20px; }
  .vault-win { grid-template-columns: 1fr; }
  .vault-side { display: none; }
  .vault-grid { grid-template-columns: repeat(3, 1fr); }
  .vault-grid .vtile:nth-child(n+10) { display: none; }
  .vault-pill { right: 10px; top: 0; font-size: .85rem; padding: 8px 14px 8px 10px; }
  .vault-lock { width: 84px; height: 84px; border-radius: 22px; left: -6px; bottom: -14px; transform: scale(.8); }
  .vault-points { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .vault-lock { display: none; }
  .vault-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vault-grid .vtile:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vault-pill, .vault-lock, .vault-lock .shackle { animation: none !important; }
}

/* Embed settings */
.embed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.style-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.style-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.style-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.style-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.style-opt strong { display: block; color: var(--text); }
.style-opt small { color: var(--text-2); font-size: .84rem; }
.embed-toggles { display: grid; gap: 12px; margin: 4px 0 18px; }
#embeds .chat { border-radius: 14px; }
@media (max-width: 900px) { .embed-layout { grid-template-columns: 1fr; } }
.style-opt em.badge { font-style: normal; }

/* ===== Homepage: "only the link can open it" journey ===== */
.journey { position: relative; max-width: 1060px; margin: 36px auto 0; padding-top: 78px; }
.journey::before { content: ""; position: absolute; inset: 30% 10% -10% 10%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent); filter: blur(34px); }
.jr-keyline { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; }
.jr-keyline svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jr-keyline path { stroke: var(--accent-line); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.journey.p-key .jr-keyline path { stroke: var(--accent-2); animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.jr-arc-label { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: .78rem; color: var(--text-3); white-space: nowrap; background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.jr-key { position: absolute; left: 0; top: 0; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; font: 600 .78rem var(--mono); color: #fff; background: var(--accent-grad); box-shadow: 0 10px 26px -8px rgba(42,42,227,.8); transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; }
.jr-key .icon { width: 14px; height: 14px; }
.journey.p-key .jr-key, .journey.p-open .jr-key { opacity: 1; }

.jr-row { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: center; }
.jr-card { background: var(--glass), var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px; box-shadow: 0 30px 70px -40px rgba(42,42,227,.55), var(--shadow-sm); transition: border-color .4s, box-shadow .4s; }
.jr-head { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--text-2); margin: 2px 4px 10px; }
.jr-head .icon { width: 14px; height: 14px; }
.jr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.jr-dot.g { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.jr-photo, .jr-blob { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.ph { position: absolute; inset: 0; background: linear-gradient(180deg, #1d1450 0%, #5b2fb8 45%, #f08a5d 82%, #ffc27a 100%); }
.ph .sun { position: absolute; left: 58%; top: 46%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe6a8, #ffb35c 60%, transparent 62%); filter: blur(.3px); }
.ph .m1, .ph .m2 { position: absolute; left: -5%; right: -5%; bottom: 0; }
.ph .m1 { height: 58%; background: #3a2690; clip-path: polygon(0 100%, 0 52%, 14% 30%, 28% 50%, 46% 10%, 62% 44%, 78% 20%, 100% 48%, 100% 100%); }
.ph .m2 { height: 36%; background: #160f45; clip-path: polygon(0 100%, 0 40%, 20% 66%, 38% 28%, 58% 60%, 76% 34%, 100% 62%, 100% 100%); }
.jr-scramble, .jr-cipher { position: absolute; inset: 0; padding: 9px 10px; font: 600 10px/1.34 var(--mono); letter-spacing: .14em; word-break: break-all; overflow: hidden; color: color-mix(in srgb, var(--accent-2) 60%, var(--text-3)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2) 75%); }
.jr-scramble b, .jr-cipher b { color: var(--accent-2); } .jr-scramble i, .jr-cipher i { font-style: normal; color: #d946ef; }
.jr-scramble { transition: clip-path 1s cubic-bezier(.65,0,.35,1); }
.jr-you .jr-scramble { clip-path: inset(0 100% 0 0); }
.journey.p-enc .jr-you .jr-scramble { clip-path: inset(0 0 0 0); }
.jr-them .jr-scramble { clip-path: inset(0 0 0 0); }
.journey.p-open .jr-them .jr-scramble { clip-path: inset(0 0 0 100%); }
.jr-photo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: -2px; background: linear-gradient(180deg, transparent, #fff, transparent); box-shadow: 0 0 16px var(--accent-2); opacity: 0; }
.journey.p-enc .jr-you .jr-photo::after, .journey.p-open .jr-them .jr-photo::after { animation: sweep 1s cubic-bezier(.65,0,.35,1); }
.jr-cipher { opacity: .35; transition: opacity .6s; }
.journey.p-stored .jr-cipher { opacity: 1; }
.jr-nokey { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line-2); white-space: nowrap; }
.jr-nokey .icon { width: 13px; height: 13px; color: var(--accent-2); }
.jr-url { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; padding: 6px 9px; border-radius: 9px; background: var(--surface-2); font: 500 .72rem var(--mono); color: var(--text-2); white-space: nowrap; overflow: hidden; }
.jr-url .icon { width: 12px; height: 12px; color: var(--success); flex: none; }
.jr-url span { overflow: hidden; text-overflow: ellipsis; }
.jr-url em { font-style: normal; color: var(--accent-2); border-radius: 5px; padding: 1px 4px; transition: background .4s, color .4s; }
.journey.p-open .jr-url em { background: var(--accent); color: #fff; }
.jr-cap { display: flex; justify-content: space-between; gap: 8px; margin: 10px 4px 2px; font-size: .78rem; }
.jr-cap b { font: 600 .78rem var(--mono); color: var(--text); white-space: nowrap; }
.jr-cap span { color: var(--text-3); text-align: right; }
.journey.p-enc .jr-you, .journey.p-stored .jr-server, .journey.p-open .jr-them { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), 0 30px 70px -40px rgba(42,42,227,.7); }
.jr-pipe { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.jr-pipe i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); opacity: 0; }
.journey.p-up .p1 i, .journey.p-down .p2 i { animation: packet 1.1s cubic-bezier(.4,0,.2,1) infinite; }
.jr-pipe i:nth-child(2) { animation-delay: .25s !important; } .jr-pipe i:nth-child(3) { animation-delay: .5s !important; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

@media (max-width: 860px) {
  .journey { padding-top: 0; }
  .jr-keyline { display: none; }
  .jr-row { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin: 0 auto; }
  .jr-pipe { width: 2px; height: 34px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .jr-pipe i { left: -3px; top: 0; }
  @keyframes packet { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .jr-keyline path { animation: none !important; }
}
.jr-you .jr-url .icon { color: var(--accent-2); }
.jr-url.is-none { color: var(--text-3); }
.jr-url.is-none .icon { color: var(--danger); }
.journey.p-enc .jr-you .jr-url em { background: var(--accent); color: #fff; }
.journey.p-open .jr-key { opacity: 0; }
.journey { padding-top: 56px; }
.jr-keyline { height: 40px; }
.jr-arc-label { top: 6px; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--accent-line); padding: 5px 12px; font-size: .8rem; color: var(--text-2); }
.jr-arc-label .icon { width: 14px; height: 14px; color: var(--accent-2); }
.journey.p-key .jr-arc-label { border-style: solid; border-color: var(--accent-2); color: var(--text); }
.jr-key { transition: opacity .25s; }
@media (max-width: 860px) { .jr-key { display: none; } .jr-keyline { display: block; position: static; height: auto; margin-bottom: 14px; text-align: center; } .jr-arc-label { position: static; transform: none; white-space: normal; } }

/* ===== Dashboard: encryption UI ===== */
.enc-chip { gap: 7px; }
.enc-chip .enc-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-3); color: var(--text-3); transition: background .2s, color .2s; }
.enc-chip .enc-ic .icon { width: 13px; height: 13px; }
.enc-chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.enc-chip.on .enc-ic { background: var(--accent-grad); color: #fff; }

.enc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.enc-opt { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
.enc-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.enc-opt strong { display: block; color: var(--text); }
.enc-opt small { color: var(--text-2); font-size: .84rem; line-height: 1.4; }
.enc-opt-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.enc-opt-ic .icon { width: 19px; height: 19px; }
.enc-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.enc-opt.is-e2e:has(input:checked) { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.enc-opt.is-e2e:has(input:checked) .enc-opt-ic { background: var(--accent-grad); color: #fff; }
@media (max-width: 760px) { .enc-choice { grid-template-columns: 1fr; } }

.tile.is-e2e .prev { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg)), var(--bg) 75%); color: var(--accent-2); }
.tile.is-e2e .prev::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 7px), repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 9px); -webkit-mask: radial-gradient(circle at 50% 45%, transparent 22%, #000 70%); mask: radial-gradient(circle at 50% 45%, transparent 22%, #000 70%); }
.e2e-art { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--accent-line); }
.e2e-art .icon { width: 26px !important; height: 26px !important; }
.e2e-badge { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent-grad); }
.e2e-badge .icon { width: 11px !important; height: 11px !important; }

.enc-panel { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 80%); display: grid; gap: 10px; }
.enc-panel-head { display: flex; gap: 12px; align-items: center; }
.enc-panel .enc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); flex: none; }
.enc-panel .enc-ic .icon { width: 18px; height: 18px; }
.enc-panel.locked { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--warning) 10%, transparent), transparent 80%); }
.enc-panel.locked .enc-ic { background: var(--warning); color: #1a1205; }
.setup-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 16px 0 8px; }
.setup-kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.setup-kv dt, .setup-kv dd { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line); }
.setup-kv dt:first-of-type, .setup-kv dt:first-of-type + dd { border-top: 0; }
.setup-kv dt { color: var(--text-2); background: var(--surface-2); }
.setup-kv dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.setup-kv dd code { word-break: break-all; }
.setup-kv dd .btn-icon { margin-left: auto; }
@media (max-width: 600px) { .setup-kv { grid-template-columns: 1fr; } .setup-kv dt { border-top: 1px solid var(--line); } }
.copy-val { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 4px 3px 0; border: 0; background: none; color: inherit; font: inherit; cursor: copy; text-align: left; border-radius: 7px; }
.copy-val code { word-break: break-all; transition: background .15s, border-color .15s; }
.copy-val:hover code { background: var(--accent-soft); border-color: var(--accent-line); }
.copy-val .cv-ic { display: grid; place-items: center; color: var(--text-3); opacity: 0; transition: opacity .15s; }
.copy-val .cv-ic .icon { width: 14px; height: 14px; }
.copy-val:hover .cv-ic, .copy-val:focus-visible .cv-ic { opacity: 1; }
.copy-val.copied .cv-ic { opacity: 1; color: var(--success); }
.copy-val.is-secret code { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.copy-val.sm { padding: 0; }

/* "Uploaded to [logo]" badge */
.uploaded-to { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: .9rem; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.uploaded-to:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text-2); transform: translateY(-1px); }
.uploaded-to img { height: 22px; width: auto; display: block; }
.ut-brand { display: inline-flex; align-items: center; gap: 7px; }
.ut-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 4px 12px -4px rgba(225,29,72,.6); }
.ut-brand .brand-mark .icon { width: 15px; height: 15px; }
.ut-brand strong { color: var(--text); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }

/* Clipo logo lockup (inline SVG: sunset ribbon tile + letters in the text color) */
.wordmark { display: block; height: 32px; width: auto; overflow: visible; }
.side .brand .wordmark { height: 30px; }
.ut-brand .wordmark { height: 24px; color: var(--text); }

/* ========== Landing: "Upload to share" stack ========== */
.ustack-demo { padding: 26px 22px 18px; }
.ustack { position: relative; height: 280px; }
.ustack .uc { --d: 0; position: absolute; left: 0; right: 0; bottom: 6px; z-index: calc(10 - var(--d)); transform: translateY(calc(var(--d) * -54px)) scale(calc(1 - var(--d) * .045)); opacity: calc(1 - var(--d) * .24); filter: brightness(calc(1 - var(--d) * .16)); transition: transform .65s cubic-bezier(.2,.85,.25,1), opacity .5s, filter .5s; }
.ustack .uc.enter { transform: translateY(46px) scale(.9); opacity: 0; filter: blur(8px); transition: none; }
.uc { --k: #7c6cff; }
.uc[data-kind="image"] { --k: #f59e0b; } .uc[data-kind="video"] { --k: #8b5cf6; } .uc[data-kind="pdf"] { --k: #ef4444; }
.uc[data-kind="zip"] { --k: #22c55e; } .uc[data-kind="design"] { --k: #06b6d4; }
.uc .aura { position: absolute; left: 12%; right: 12%; top: 25%; bottom: -14%; border-radius: 50%; background: var(--k); filter: blur(30px); opacity: 0; transition: opacity .7s; z-index: -1; pointer-events: none; }
.ustack .uc:last-child .aura { opacity: .45; }
.uc-in { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -14px rgba(0,0,0,.55); }
.uc .ring { width: 28px; height: 28px; flex: none; overflow: visible; }
.uc .ring circle { fill: none; stroke-width: 2; }
.uc .ring .trk { stroke: var(--line-2); }
.uc .ring .arc { stroke: var(--text); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.uc .ring .fillc { fill: var(--text); stroke: none; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.uc .ring .chk { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease .18s; }
.uc.up .ring { animation: ew-spin 1.4s linear infinite; }
.uc.done .ring .arc { stroke-dashoffset: 0 !important; }
.uc.done .ring .fillc { transform: scale(1); }
.uc.done .ring .chk { stroke-dashoffset: 0; }
.uc-txt { flex: 1; min-width: 0; }
.uc .nm { font-weight: 560; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc .meta { font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.uc-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; color: var(--text-2); white-space: nowrap; opacity: 0; transform: translateX(14px); filter: blur(4px); transition: opacity .45s, transform .5s cubic-bezier(.3,1.4,.5,1), filter .45s; }
.uc-link .icon { width: 13px; height: 13px; color: var(--accent-2); }
.uc.done .uc-link { opacity: 1; transform: none; filter: none; }
.ustack-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .78rem; color: var(--text-3); }
.ustack-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ustack-foot .icon { width: 14px; height: 14px; }
@keyframes ew-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .uc-link span { display: none; } .uc-link { padding: 6px; } }

/* ========== Landing: "Works everywhere" ========== */
.everywhere { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: stretch; }
.ew-tabs { display: flex; flex-direction: column; gap: 6px; }
.ew-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.ew-tab:hover { background: var(--surface); color: var(--text); }
.ew-tab.active { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.ew-tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ew-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ew-ic .icon { width: 18px; height: 18px; }
.ew-tab.active .ew-ic { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); transform: scale(1.06); }
.ew-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ew-t b { font-size: .95rem; font-weight: 600; }
.ew-t b small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .62rem; font-weight: 600; color: var(--text-3); vertical-align: 2px; }
.ew-t > span { font-size: .8rem; color: var(--text-3); }
.ew-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--line); opacity: 0; transition: opacity .25s; overflow: hidden; }
.ew-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent-2); transform: scaleX(0); transform-origin: left; }
.ew-tab.active .ew-bar { opacity: 1; }
.ew-tab.run .ew-bar::after { animation: ew-fill var(--ew-dur, 6s) linear forwards; }
.everywhere.hold .ew-tab.run .ew-bar::after { animation-play-state: paused; }
@keyframes ew-fill { to { transform: scaleX(1); } }

.ew-stage { position: relative; min-height: 440px; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(110% 80% at 85% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(225,29,72,.10), transparent 60%), var(--surface); }
.ew-scene { position: absolute; inset: 0 0 52px; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transform: scale(.98); filter: blur(6px); transition: opacity .45s, transform .45s, filter .45s, visibility 0s .45s; }
.ew-scene.active { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .45s, transform .45s, filter .45s; }
.ew-cta { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); font-size: .88rem; }
.ew-cta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 560; }
.ew-cta .icon { width: 15px; height: 15px; }
.ew-stage .bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ew-stage .bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent-2); }
.ew-stage .toast-pill { position: absolute; left: 50%; top: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .8rem; font-weight: 560; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -12px); }
.ew-stage .toast-pill .icon { width: 14px; height: 14px; color: var(--success); }
.ew-scene.play .toast-pill { animation: ew-toast 6s both; }
@keyframes ew-toast { 0%, 64% { opacity: 0; transform: translate(-50%, -12px); } 70%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes ew-pop { 0%, 60% { opacity: 0; transform: scale(.7); } 66%, 100% { opacity: 1; transform: none; } }

/* Web */
.ew-stage .win { width: min(460px, 100%); border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.win-bar, .term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.win-bar > i, .term-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win-bar > i:nth-child(2), .term-bar > i:nth-child(2) { background: #febc2e; }
.win-bar > i:nth-child(3), .term-bar > i:nth-child(3) { background: #28c840; }
.win-bar .url { flex: 1; margin-left: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: var(--surface); font-size: .74rem; color: var(--text-3); }
.win-bar .url .icon { width: 11px; height: 11px; }
.win-body { position: relative; height: 236px; padding: 18px; }
.ew-stage .dz { height: 130px; border: 1.5px dashed var(--line-2); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 3px; font-size: .78rem; color: var(--text-3); }
.ew-stage .dz b { color: var(--text-2); font-size: .9rem; }
.ew-stage .dz .icon { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 4px; }
.ew-scene.play .dz { animation: ew-dz 6s both; }
@keyframes ew-dz { 0%, 14% { border-color: var(--line-2); background: transparent; transform: none; } 18%, 30% { border-color: var(--accent-2); background: var(--accent-soft); transform: scale(1.02); } 36%, 100% { border-color: var(--line-2); background: transparent; transform: none; } }
.ew-stage .fly { position: absolute; left: 55%; top: 8px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .74rem; box-shadow: var(--shadow); opacity: 0; }
.fly-img, .web-row .thumb { width: 28px; height: 28px; border-radius: 6px; flex: none; background: linear-gradient(160deg, #60a5fa 0 45%, #fbbf24 46% 60%, #f97316 61%); }
.ew-scene.play .fly { animation: ew-fly 6s both; }
@keyframes ew-fly { 0% { opacity: 0; transform: translate(120px, -30px) rotate(8deg); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(-90px, 64px) rotate(-3deg); } 30%, 100% { opacity: 0; transform: translate(-90px, 74px) scale(.6); } }
.ew-stage .cursor { position: absolute; left: 55%; top: 8px; z-index: 4; width: 20px; height: 20px; fill: var(--text); stroke: var(--bg); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; margin: 22px 0 0 40px; }
.ew-scene.play .cursor { animation: ew-cur 6s both; }
@keyframes ew-cur { 0% { opacity: 0; transform: translate(120px, -30px); } 6% { opacity: 1; } 22% { transform: translate(-90px, 64px); } 30% { opacity: 1; transform: translate(-90px, 64px) scale(.9); } 40%, 100% { opacity: 0; transform: translate(-60px, 90px); } }
.web-row { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; opacity: 0; }
.web-row > div { flex: 1; min-width: 0; }
.ew-stage .chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: .68rem; white-space: nowrap; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); opacity: 0; }
.ew-stage .chip .icon { width: 12px; height: 12px; }
.ew-scene.play .web-row { animation: ew-row 6s both; }
.ew-scene.play .web-row .bar span { animation: ew-bar 6s both; }
.ew-scene.play .web-row .chip { animation: ew-pop 6s both; }
@keyframes ew-row { 0%, 28% { opacity: 0; transform: translateY(10px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes ew-bar { 0%, 34% { width: 0; } 58%, 100% { width: 100%; } }

/* Mac + Dropshare desktop */
.ew-stage .desk { position: relative; width: min(520px, 100%); height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: radial-gradient(80% 90% at 15% 10%, #fb923c, transparent 55%), radial-gradient(90% 90% at 95% 95%, #7c3aed, transparent 60%), #2e1065; color: #fff; }
.menubar { position: relative; z-index: 5; height: 26px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: rgba(20,16,40,.42); backdrop-filter: blur(10px); font-size: .72rem; }
.menubar .icon { width: 13px; height: 13px; }
.menubar .mb-sp { flex: 1; }
.menubar .mb-app { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; transition: background .3s; }
.menubar .mb-app.on { background: rgba(255,255,255,.22); }
.ew-scene.play .menubar .mb-app:not(.on) { animation: ew-mb 6s both; }
@keyframes ew-mb { 0%, 52% { background: transparent; } 56%, 70% { background: rgba(255,255,255,.28); } 76%, 100% { background: transparent; } }
.keys { position: absolute; left: 50%; top: 50%; z-index: 6; display: flex; gap: 8px; transform: translate(-50%, -50%); opacity: 0; }
.keys kbd { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(12px); box-shadow: 0 4px 0 rgba(0,0,0,.25); font: 600 1.1rem var(--font); color: #fff; }
.ew-scene.play .keys { animation: ew-keys 6s both; }
@keyframes ew-keys { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } 5%, 17% { opacity: 1; transform: translate(-50%, -50%); } 23%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); } }
.desk-win { position: absolute; left: 12%; top: 22%; width: 62%; height: 60%; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.94); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.dw-bar { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: #ececf1; }
.dw-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4dc; }
.dw-body { display: grid; gap: 7px; padding: 12px; }
.dw-body > span { height: 7px; border-radius: 4px; background: #dcdce6; }
.dw-body > .short { width: 60%; }
.dw-body .chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 6px; }
.dw-body .chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#fb923c, #e11d48); }
.dw-body .chart i:nth-child(1) { height: 40%; } .dw-body .chart i:nth-child(2) { height: 72%; } .dw-body .chart i:nth-child(3) { height: 55%; } .dw-body .chart i:nth-child(4) { height: 92%; } .dw-body .chart i:nth-child(5) { height: 64%; }
.ew-stage .marquee { position: absolute; left: 20%; top: 32%; z-index: 4; width: 0; height: 0; border: 1.5px dashed #fff; background: rgba(255,255,255,.1); opacity: 0; }
.ew-stage .marquee.sx { left: 42%; top: 40%; }
.marquee .dims { position: absolute; right: -2px; bottom: -22px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff; font: .64rem var(--mono); white-space: nowrap; }
.ew-scene.play .marquee { animation: ew-marq 6s both; }
@keyframes ew-marq { 0%, 20% { opacity: 0; width: 0; height: 0; } 22% { opacity: 1; width: 0; height: 0; } 40%, 46% { opacity: 1; width: 52%; height: 44%; } 50%, 100% { opacity: 0; width: 52%; height: 44%; } }
.ew-stage .flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.ew-scene.play .flash { animation: ew-flash 6s both; }
@keyframes ew-flash { 0%, 46% { opacity: 0; } 48% { opacity: .55; } 56%, 100% { opacity: 0; } }
.notif { position: absolute; right: 12px; top: 36px; z-index: 6; width: 280px; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(36,32,52,.74); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); opacity: 0; transform: translateX(30px); }
.notif > div { flex: 1; min-width: 0; }
.notif b { display: block; font-size: .75rem; }
.notif span { display: block; font-size: .7rem; color: rgba(255,255,255,.75); }
.notif code { font-size: .66rem; color: #fdba74; }
.n-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, #e11d48); }
.n-ic .icon { width: 18px; height: 18px; color: #fff; }
.n-th { flex: none; width: 42px; height: 30px; border-radius: 5px; background: linear-gradient(#ececf1 0 22%, #fff 22%); border: 1px solid rgba(255,255,255,.4); }
.ew-scene.play .notif { animation: ew-notif 6s both; }
@keyframes ew-notif { 0%, 55% { opacity: 0; transform: translateX(30px); } 62%, 100% { opacity: 1; transform: none; } }
.drop-panel { position: absolute; right: 14px; top: 34px; z-index: 4; width: 292px; max-width: calc(100% - 28px); padding: 10px; border-radius: 12px; background: rgba(30,26,46,.84); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); opacity: 0; transform: translateY(-8px); }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 8px; font-size: .72rem; }
.dp-head span { font-size: .6rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-item { display: flex; align-items: center; gap: 9px; padding: 7px; border-radius: 8px; font-size: .72rem; }
.dp-item > div { flex: 1; min-width: 0; }
.dp-item code { display: block; font-size: .62rem; color: #fdba74; }
.dp-item.new { background: rgba(255,255,255,.08); }
.dp-item .bar { margin: 5px 0 3px; background: rgba(255,255,255,.15); }
.dp-th { flex: none; width: 30px; height: 30px; border-radius: 6px; }
.dp-th.t1 { background: linear-gradient(135deg, #a78bfa, #f472b6); } .dp-th.t2 { background: linear-gradient(135deg, #94a3b8, #e2e8f0); } .dp-th.t3 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.dp-ok { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #3ddc97; opacity: 0; }
.dp-ok .icon { width: 12px; height: 12px; color: #06281a; }
.dp-item.new code { opacity: 0; }
.ew-scene.play .drop-panel { animation: ew-panel 6s both; }
.ew-scene.play .dp-item.new { animation: ew-new2 6s both; }
.ew-scene.play .dp-item.new .bar span { animation: ew-bar2 6s both; }
.ew-scene.play .dp-item.new code, .ew-scene.play .dp-ok { animation: ew-pop 6s both; }
@keyframes ew-panel { 0%, 4% { opacity: 0; transform: translateY(-8px); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes ew-new2 { 0%, 14% { opacity: 0; transform: translateY(-8px); } 20%, 100% { opacity: 1; transform: none; } }
@keyframes ew-bar2 { 0%, 20% { width: 0; } 56%, 100% { width: 100%; } }
.desk .toast-pill { top: auto; bottom: 16px; }

/* iPhone */
.ew-stage .phone { position: relative; width: 180px; height: 352px; border-radius: 34px; background: #000; border: 6px solid #2a2a33; box-shadow: var(--shadow), 0 0 0 1px var(--line-2); overflow: hidden; }
.island { position: absolute; top: 8px; left: 50%; z-index: 5; width: 70px; height: 22px; border-radius: 999px; background: #000; display: grid; place-items: center; overflow: hidden; transform: translateX(-50%); }
.island span { display: flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 600; color: #fff; white-space: nowrap; opacity: 0; }
.island .icon { width: 11px; height: 11px; color: #3ddc97; }
.ew-scene.play .island { animation: ew-island 6s both; }
.ew-scene.play .island span { animation: ew-islandtxt 6s both; }
@keyframes ew-island { 0%, 68% { width: 70px; height: 22px; } 74%, 93% { width: 128px; height: 28px; } 100% { width: 70px; height: 22px; } }
@keyframes ew-islandtxt { 0%, 73% { opacity: 0; } 78%, 91% { opacity: 1; } 96%, 100% { opacity: 0; } }
.ph-photo { position: absolute; inset: 0; background: radial-gradient(40% 22% at 70% 24%, #fef3c7, transparent 70%), linear-gradient(180deg, #60a5fa 0%, #93c5fd 46%, #38bdf8 47%, #0ea5e9 60%, #fcd34d 61%, #f59e0b 100%); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 62%; padding: 8px 10px; border-radius: 18px 18px 0 0; background: rgba(28,28,34,.93); backdrop-filter: blur(20px); color: #fff; transform: translateY(105%); }
.sh-grab { width: 34px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255,255,255,.3); }
.sh-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sheet .sa { display: grid; justify-items: center; gap: 4px; font-size: .5rem; color: rgba(255,255,255,.8); }
.sheet .sa i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.sheet .sa i .icon { width: 17px; height: 17px; color: #fff; }
.sheet .a1 i { background: #22c55e; } .sheet .a2 i { background: #3b82f6; } .sheet .a3 i { background: #eab308; }
.sheet .me i { background: linear-gradient(135deg, #fb923c, #e11d48); }
.sh-list { display: grid; gap: 1px; margin-top: 12px; border-radius: 10px; overflow: hidden; }
.sh-list span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,.07); font-size: .62rem; }
.sh-list .icon { width: 12px; height: 12px; }
.ew-stage .tap { position: absolute; z-index: 4; left: 85px; top: 153px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.25); opacity: 0; }
.ew-scene.play .sheet { animation: ew-sheet 6s both; }
.ew-scene.play .tap { animation: ew-tap 6s both; }
.ew-scene.play .sheet .sa.me i { animation: ew-press 6s both; }
@keyframes ew-sheet { 0%, 8% { transform: translateY(105%); } 18%, 52% { transform: none; } 62%, 100% { transform: translateY(105%); } }
@keyframes ew-tap { 0%, 37% { opacity: 0; transform: scale(.6); } 42% { opacity: .9; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes ew-press { 0%, 39% { transform: none; } 43% { transform: scale(.86); } 49%, 100% { transform: none; } }

/* ShareX */
.wdesk { position: relative; width: min(520px, 100%); height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: radial-gradient(90% 80% at 30% 20%, #0ea5e9, transparent 60%), radial-gradient(80% 80% at 90% 90%, #1d4ed8, transparent 60%), #0b1e3f; color: #ddd; }
.wwin { position: absolute; left: 7%; top: 8%; width: 74%; height: 66%; overflow: hidden; border-radius: 8px; background: #202020; border: 1px solid #3a3a3a; font-size: .68rem; box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); }
.ww-bar { display: flex; justify-content: space-between; padding: 6px 10px; background: #2b2b2b; font-size: .66rem; }
.ww-ctl { color: #aaa; }
.ww-body { display: grid; grid-template-columns: 32% 1fr; height: calc(100% - 26px); }
.ww-side { display: grid; align-content: start; gap: 2px; padding: 8px 6px; background: #1a1a1a; }
.ww-side span { padding: 5px 8px; border-radius: 5px; color: #aaa; }
.ww-side .on { background: #2f3b52; color: #fff; }
.ww-list { display: grid; align-content: start; gap: 4px; padding: 8px; min-width: 0; }
.ww-list span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 5px; background: #262626; white-space: nowrap; overflow: hidden; }
.ww-list em { font-style: normal; font-family: var(--mono); font-size: .62rem; color: #60a5fa; overflow: hidden; text-overflow: ellipsis; }
.ww-list .new { opacity: 0; }
.ew-scene.play .ww-list .new { animation: ew-new 6s both; }
@keyframes ew-new { 0%, 52% { opacity: 0; transform: translateY(-6px); background: #262626; } 58%, 80% { opacity: 1; transform: none; background: #1e3a5f; } 100% { opacity: 1; transform: none; background: #262626; } }
.wtoast { position: absolute; right: 10px; bottom: 40px; z-index: 6; width: 232px; max-width: calc(100% - 20px); display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: #2b2b2b; border: 1px solid #3a3a3a; font-size: .7rem; color: #eee; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); opacity: 0; transform: translateY(14px); }
.wtoast span { font-family: var(--mono); font-size: .66rem; color: #60a5fa; }
.wtoast small { font-size: .62rem; color: #aaa; }
.ew-scene.play .wtoast { animation: ew-notif2 6s both; }
@keyframes ew-notif2 { 0%, 55% { opacity: 0; transform: translateY(14px); } 62%, 100% { opacity: 1; transform: none; } }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: rgba(20,20,24,.86); backdrop-filter: blur(10px); font-size: .66rem; }
.taskbar .icon { width: 15px; height: 15px; color: #60a5fa; }
.taskbar .tb-sp { flex: 1; }

/* API */
.ew-stage .term { width: min(540px, 100%); overflow: hidden; border-radius: 12px; background: #0d0d12; border: 1px solid var(--line-2); box-shadow: var(--shadow); color: #e5e5ea; }
.term-bar { background: #17171f; border-color: rgba(255,255,255,.06); }
.term-bar span { margin: 0 auto; font-size: .68rem; color: #888; transform: translateX(-20px); }
.term pre { margin: 0; padding: 16px; min-height: 236px; font: .74rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.term .p { color: #3ddc97; } .term .k { color: #93c5fd; } .term .s { color: #fdba74; } .term .n { color: #c4b5fd; }
.term .caret { display: inline-block; width: 7px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #e5e5ea; animation: caret 1s steps(1) infinite; }
.term .out { display: block; opacity: 0; }
.ew-scene.play .term .out { animation: ew-out 6s both; }
@keyframes ew-out { 0%, 48% { opacity: 0; transform: translateY(4px); } 54%, 100% { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .everywhere { grid-template-columns: 1fr; }
  .ew-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; }
  .ew-tabs::-webkit-scrollbar { display: none; }
  .ew-tab { flex: none; padding: 8px 12px 10px; gap: 8px; }
  .ew-t > span { display: none; }
  .ew-ic { width: 28px; height: 28px; border-radius: 8px; }
  .ew-ic .icon { width: 15px; height: 15px; }
  .ew-stage { min-height: 410px; }
  .ew-stage .desk, .wdesk { height: 290px; }
}
.ustack-demo .copied-pill { top: 14px; bottom: auto; transform: translate(-50%, -14px); z-index: 20; }
.ustack-demo .copied-pill.show { transform: translate(-50%, 0); }
.ustack-demo .copied-pill .icon { color: var(--success); }
[data-theme="light"] .ustack .uc:not(.enter) { filter: none; }
[data-theme="light"] .uc-in { box-shadow: 0 10px 26px -14px rgba(10,10,30,.25); }

/* Plan-gated settings (Embeds) */
.plan-gate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-2); }
.plan-gate > div { flex: 1; min-width: 220px; }
.plan-gate strong { display: block; margin-bottom: 2px; }
.plan-gate p { margin: 0; font-size: .86rem; color: var(--text-2); }
.plan-gate .pg-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.plan-gate .pg-ic .icon { width: 19px; height: 19px; }
.embed-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.embed-fields[disabled] .style-opt.locked { opacity: .6; cursor: not-allowed; }
.style-opt.locked .badge .icon { width: 12px; height: 12px; }
.nav-pro { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .66rem; font-weight: 600; color: var(--text-3); }
.nav-pro .icon { width: 10px !important; height: 10px !important; }
