/* HighHub — one stylesheet for every page. Light and dark follow the system. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.95a493061f.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.e310b55a7f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-tint: #ecebf0;
  --surface: #ffffff;
  --surface-2: #f0eff4;
  --ink: #131316;
  --ink-2: #3b3b44;
  --mute: #6c6c78;
  --line: #e2e1e8;
  --line-2: #d3d2db;
  --accent: #ff4d1f;
  --accent-2: #ff7a45;
  --accent-ink: #ffffff;
  --accent-soft: #ffe9e1;
  --ok: #138a52;
  --ok-soft: #e1f5ea;
  --bad: #c42b1c;
  --bad-soft: #fde7e4;
  --wave: #c9c7d3;
  --shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 8px 24px rgba(19, 19, 22, 0.06);
  --shadow-lg: 0 2px 4px rgba(19, 19, 22, 0.04), 0 24px 60px rgba(19, 19, 22, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d10;
    --bg-tint: #141418;
    --surface: #17171c;
    --surface-2: #1f1f26;
    --ink: #f4f3f7;
    --ink-2: #cfcdd8;
    --mute: #9796a3;
    --line: #2a2a33;
    --line-2: #373742;
    --accent: #ff6233;
    --accent-2: #ff8a57;
    --accent-ink: #ffffff;
    --accent-soft: #3a1b10;
    --ok: #3ccf86;
    --ok-soft: #10301f;
    --bad: #ff7b6b;
    --bad-soft: #3a1714;
    --wave: #3d3c48;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Header ─────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }

.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.top .btn { padding: 10px 18px; font-size: 15px; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.top.is-open .menu-btn span { background: transparent; }
.top.is-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.top.is-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .top-in { gap: 12px; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .nav { display: none; }
  .top .top-cta { margin-left: auto; }
  .top.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 8px 16px 18px;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .top.is-open .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, opacity 0.15s;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }

.lead { margin: 22px 0 0; max-width: 34em; font-size: 19px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 15px; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }

/* The player card in the hero: a picture of the trimmer, not a live control. */
.stage { position: relative; }
.player {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.player-head { display: flex; align-items: center; gap: 12px; }
.file-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.file-ico svg { width: 22px; height: 22px; }
.file-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.file-meta { color: var(--mute); font-size: 13px; font-weight: 600; }
.player-head .chip { margin-left: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
}

.wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 132px;
  margin: 22px 0 16px;
  padding: 0 4px;
  border-radius: 16px;
  background: var(--bg-tint);
  overflow: hidden;
}
.wave span { flex: 1; height: var(--h); min-height: 4px; border-radius: 3px; background: var(--wave); }
.wave span.on { background: var(--accent); }
.wave-sel {
  position: absolute; top: 0; bottom: 0; left: 30%; width: 38%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent);
  pointer-events: none;
}
.wave-sel::before, .wave-sel::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 34px; margin-top: -17px;
  border-radius: 6px; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.wave-sel::before { left: -6px; }
.wave-sel::after { right: -6px; }
.wave-head {
  position: absolute; top: 10px; bottom: 10px; left: 47%; width: 2px; border-radius: 2px; background: var(--ink);
  animation: head 6s linear infinite;
}
@keyframes head { from { left: 30.5%; } to { left: 67.5%; } }
@media (prefers-reduced-motion: reduce) { .wave-head { animation: none; } }

.player-foot { display: flex; align-items: center; gap: 12px; }
.play {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
}
.play svg { width: 18px; height: 18px; }
.times { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.times b { color: var(--ink); font-weight: 600; }
.player-foot .btn { margin-left: auto; padding: 10px 16px; font-size: 14px; box-shadow: none; }

.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
}
.float small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.float .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.float .dot svg { width: 18px; height: 18px; }
.float-a { left: -28px; bottom: -26px; }
.float-a .dot { background: var(--ok-soft); color: var(--ok); }
.float-b { right: -18px; top: -24px; }
.float-b .dot { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .float-a { left: 8px; }
  .float-b { right: 8px; }
}
@media (max-width: 440px) {
  .top .top-cta { display: none; }
  .menu-btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .float-b { display: none; }
  .player { padding: 16px; border-radius: 22px; }
  .wave { height: 104px; gap: 2px; }
  .player-foot .btn { display: none; }
  .float { font-size: 13px; padding: 8px 12px; }
  .float-a { bottom: -30px; }
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin: 16px 0 0; color: var(--ink-2); font-size: 18px; }
.kicker {
  display: block; margin-bottom: 14px;
  color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* ── Tool cards ─────────────────────────────────────────── */

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.tool:hover { transform: translateY(-3px); background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-2); }
.tool-ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent);
}
.tool-ico svg { width: 26px; height: 26px; }
.tool p { margin: 10px 0 24px; color: var(--ink-2); font-size: 16px; }
.tool .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.tool .more svg { width: 18px; height: 18px; transition: transform 0.2s; }
.tool:hover .more svg { transform: translateX(3px); }
.tool .chip { position: absolute; top: 28px; right: 28px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* ── Panels (forms, tools) ──────────────────────────────── */

.panel {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
@media (max-width: 640px) { .panel { padding: 20px; border-radius: 22px; } }

.dl { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.dl-copy p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ok); }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; gap: 32px; } }

.field { display: block; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 16px;
  transition: box-shadow 0.15s;
}
.input::placeholder { color: var(--mute); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.row .btn { flex: 1 1 auto; }

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.seg span svg { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hint { margin: 14px 0 0; font-size: 14px; color: var(--mute); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.note.is-ok { background: var(--ok-soft); color: var(--ok); }
.note.is-bad { background: var(--bad-soft); color: var(--bad); }

.progress { height: 6px; margin-top: 14px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 0.2s; }
.progress.is-busy i { width: 35%; animation: busy 1.1s ease-in-out infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* ── Steps ──────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 18px;
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent);
}
.steps p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── Values ─────────────────────────────────────────────── */

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value { display: flex; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.value .tool-ico { flex: none; margin: 0; width: 48px; height: 48px; }
.value p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* ── Footer ─────────────────────────────────────────────── */

.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.foot p { margin: 14px 0 0; max-width: 26em; color: var(--mute); font-size: 15px; }
.foot h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.foot ul a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--mute); font-size: 14px;
}
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── Tool pages ─────────────────────────────────────────── */

.page-head { padding: 56px 0 32px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head .lead { margin-top: 16px; }
.page-body { padding-bottom: 88px; }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 260px;
  padding: 32px 20px;
  border-radius: 22px;
  border: 2px dashed var(--line-2);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .tool-ico { margin: 0 0 8px; }
.drop strong { font-size: 18px; }
.drop small { color: var(--mute); font-size: 14px; }

.file-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.file-bar .file-name { word-break: break-all; }
.file-bar .link-btn { margin-left: auto; }

.editor { position: relative; height: 168px; touch-action: none; user-select: none; -webkit-user-select: none; }
.editor-clip { position: absolute; inset: 0; border-radius: 16px; background: var(--bg-tint); overflow: hidden; }
.editor canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sel { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 12%, transparent); cursor: grab; }
.sel:active { cursor: grabbing; }
.handle {
  position: absolute; top: 0; bottom: 0; width: 24px; margin-left: -12px; cursor: ew-resize; touch-action: none;
}
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 11px; width: 2px; background: var(--accent); }
.handle::after {
  content: ""; position: absolute; top: 50%; left: 7px; width: 10px; height: 38px; margin-top: -19px;
  border-radius: 6px; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.playhead { position: absolute; top: 8px; bottom: 8px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); pointer-events: none; }

.ruler { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--mute); }

.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.stat label, .stat dt { display: block; font-size: 13px; font-weight: 700; color: var(--mute); }
.stat input {
  width: 100%; margin-top: 4px; padding: 0; border: 0; background: none;
  font-family: var(--mono); font-size: 20px; font-weight: 600;
}
.stat input:focus { outline: none; color: var(--accent); }
.stat output, .stat dd { display: block; margin: 4px 0 0; font-family: var(--mono); font-size: 20px; font-weight: 600; }
@media (max-width: 560px) { .controls { grid-template-columns: 1fr 1fr; } .controls .stat:last-child { grid-column: 1 / -1; } }

.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 560px) { .actions .btn { flex: 1 1 100%; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts .stat dd { font-size: 17px; word-break: break-word; }
.facts .wide { grid-column: span 2; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts .wide { grid-column: 1 / -1; } }

.preview { margin-top: 20px; border-radius: 16px; overflow: hidden; background: #000; }
.preview video { display: block; width: 100%; max-height: 420px; }
.preview audio { display: block; width: 100%; }
.preview.is-audio { background: none; }

.aside { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aside .value { background: var(--surface); }
@media (max-width: 900px) { .aside { grid-template-columns: 1fr; } }

/* ── Documents ──────────────────────────────────────────── */

.doc { max-width: 760px; padding-bottom: 96px; }
.doc h2 { margin: 44px 0 14px; font-size: 24px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc .updated { color: var(--mute); font-size: 15px; }

/* ── 404 ────────────────────────────────────────────────── */

.lost { display: grid; place-items: center; text-align: center; padding: 96px 0 120px; }
.lost .code { font-size: clamp(96px, 20vw, 180px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--accent); }
.lost p { color: var(--ink-2); font-size: 18px; margin: 16px 0 28px; }

/* Drag and drop only makes sense with a mouse. */
.on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .on-mouse { display: none; }
  .on-touch { display: inline; }
}
