:root {
  --accent: oklch(0.50 0.17 262);
  --accent-soft: oklch(0.50 0.17 262 / 0.10);
  --accent-line: oklch(0.50 0.17 262 / 0.22);
  --accent-dim: oklch(0.50 0.17 262 / 0.55);
  --accent-ink: oklch(0.99 0 0);
  --tool: oklch(0.6 0.15 55);
  --tool-deep: oklch(0.52 0.14 50);
  --tool-soft: oklch(0.68 0.15 55 / 0.12);
  --tool-line: oklch(0.68 0.15 55 / 0.28);
  --font-display: "Space Grotesk", sans-serif;
  --bg: oklch(0.992 0.001 280);
  --bg-2: oklch(0.972 0.003 280);
  --surface: oklch(1 0 0);
  --ink: oklch(0.22 0.018 280);
  --ink-2: oklch(0.46 0.016 280);
  --ink-3: oklch(0.63 0.012 280);
  --line: oklch(0.915 0.005 280);
  --line-2: oklch(0.95 0.004 280);
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 40, .06), 0 1px 1px rgba(20, 18, 40, .04);
  --shadow-md: 0 18px 40px -24px rgba(28, 24, 60, .28), 0 2px 8px rgba(28, 24, 60, .05);
  --shadow-lg: 0 40px 80px -36px rgba(28, 24, 60, .4), 0 4px 14px rgba(28, 24, 60, .06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden
}

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

a:hover {
  color: var(--accent)
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08
}

.mono {
  font-family: var(--font-mono)
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm)
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px var(--accent-dim);
  color: var(--accent-ink)
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line)
}

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink-3);
  color: var(--ink)
}

.btn-quiet {
  background: transparent;
  color: var(--ink-2);
  padding: 11px 6px
}

.btn-quiet:hover {
  color: var(--ink)
}

.btn .arrow {
  transition: transform .18s ease
}

.btn:hover .arrow {
  transform: translateX(3px)
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13.5px;
  border-radius: 8px
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(0.992 0.001 280 / 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line-2)
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 62px
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em
}

.logo .mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px var(--accent-line)
}

.logo .mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: oklch(1 0 0 / 0.92)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s, background .15s;
  padding: 7px 12px;
  border-radius: 8px
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-2)
}

.nav-links a.on {
  color: var(--accent)
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto
}

.nav-toggle {
  display: none;
  margin-left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px
}

.mobile-menu {
  display: none
}

@media (max-width:900px) {
  .nav-links {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .nav-cta .btn-quiet {
    display: none
  }

  .mobile-menu {
    display: block;
    position: sticky;
    top: 62px;
    z-index: 55;
    background: oklch(0.992 0.001 280 / 0.96);
    backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-md)
  }

  .mobile-menu[hidden] {
    display: none
  }

  .mobile-menu a {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    color: var(--ink-2);
    padding: 12px 8px;
    border-radius: 9px
  }

  .mobile-menu a:hover {
    background: var(--bg-2);
    color: var(--ink)
  }

  .mobile-menu .mm-cta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line)
  }

  .mobile-menu .mm-cta .btn {
    justify-content: center;
    width: 100%;
    padding: 13px;
    font-size: 15px
  }

  body.menu-open {
    overflow: hidden
  }
}

.hero {
  padding: 60px 0 20px;
  position: relative
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(680px 400px at 50% -12%, var(--tool-soft), transparent 68%)
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto
}

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  margin-bottom: 22px
}

.crumbs a:hover {
  color: var(--tool-deep)
}

.crumbs i {
  font-size: 9px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm)
}

.pill .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--tool-deep);
  background: var(--tool-soft);
  padding: 3px 8px;
  border-radius: 100px
}

h1.hero-title {
  font-size: clamp(36px, 5.4vw, 60px);
  margin: 22px 0 0;
  font-weight: 600;
  letter-spacing: -0.038em
}

h1.hero-title .g {
  background: linear-gradient(120deg, var(--tool), var(--tool-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--ink-2);
  margin: 20px auto 0;
  max-width: 580px;
  text-wrap: pretty
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px
}

.hero-chips span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px
}

.tool {
  padding: 34px 0 10px;
  position: relative;
  z-index: 2
}

.card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden
}

.card-body {
  padding: 30px
}

@media (max-width:560px) {
  .card-body {
    padding: 20px
  }
}

.drop {
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s
}

.drop:hover {
  border-color: var(--tool-line);
  background: var(--tool-soft)
}

.drop.drag {
  border-color: var(--tool);
  background: var(--tool-soft);
  transform: scale(1.005)
}

.drop-ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(150deg, var(--tool), var(--tool-deep));
  box-shadow: 0 14px 30px -14px var(--tool-line)
}

.drop h3 {
  font-size: 19px
}

.drop p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 7px
}

.drop .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  background: var(--tool-deep);
  padding: 11px 20px;
  border-radius: 11px
}

.drop .formats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 16px;
  letter-spacing: .02em
}

.err {
  margin-top: 16px;
  font-size: 13px;
  color: oklch(0.55 0.2 25);
  background: oklch(0.95 0.04 25);
  border: 1px solid oklch(0.85 0.08 25);
  border-radius: 10px;
  padding: 11px 14px;
  text-wrap: pretty
}

.filebar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-2)
}

.filebar .fic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--tool-deep);
  background: var(--tool-soft);
  font-size: 16px
}

.filebar .fmeta {
  min-width: 0;
  flex: 1
}

.filebar .fname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.filebar .fsub {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-top: 2px
}

.filebar .fclose {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s
}

.filebar .fclose:hover {
  color: var(--ink);
  border-color: var(--ink-3)
}

.srcplayer {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-2)
}

.srcplayer .srclabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px
}

.srcplayer .srclabel i {
  color: var(--tool-deep)
}

.srcplayer audio {
  width: 100%;
  display: block
}

.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 70px;
  margin: 20px 2px
}

.wave i {
  flex: 1;
  background: var(--tool-line);
  border-radius: 2px;
  min-height: 3px;
  transition: background .3s
}

.wave.done i {
  background: var(--tool)
}

.wavewrap {
  position: relative;
  margin: 20px 2px
}

.wavewrap .wave {
  margin: 0
}

.wavesel {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--tool-soft);
  border-left: 2px solid var(--tool-deep);
  border-right: 2px solid var(--tool-deep);
  pointer-events: none
}

.decoding {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 24px;
  color: var(--ink-2);
  font-size: 14px
}

.spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--tool-line);
  border-top-color: var(--tool-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.opts {
  display: grid;
  gap: 18px;
  margin-top: 22px
}

.opt-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center
}

@media (max-width:560px) {
  .opt-row {
    grid-template-columns: 1fr;
    gap: 8px
  }
}

.opt-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink)
}

.opt-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px
}

.seg button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 15px;
  cursor: pointer;
  transition: all .14s
}

.seg button:hover {
  border-color: var(--tool-line);
  color: var(--ink)
}

.seg button.on {
  background: var(--tool-deep);
  border-color: var(--tool-deep);
  color: #fff
}

.rng {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  outline: none
}

.rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tool-deep);
  cursor: pointer;
  box-shadow: var(--shadow-sm)
}

.rng::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--tool-deep);
  cursor: pointer
}

.rngval {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none
}

.toggle input {
  position: absolute;
  opacity: 0
}

.toggle .track {
  width: 42px;
  height: 24px;
  border-radius: 100px;
  background: var(--line);
  position: relative;
  transition: background .16s;
  flex: none
}

.toggle .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .16s
}

.toggle input:checked+.track {
  background: var(--tool-deep)
}

.toggle input:checked+.track::after {
  transform: translateX(18px)
}

.toggle .tx {
  font-size: 13.5px;
  color: var(--ink-2)
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px
}

.stat .sl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.stat .sv {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-top: 4px;
  color: var(--ink)
}

.stat .sv.pos {
  color: var(--tool-deep)
}

.convert-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

.btn-convert {
  background: linear-gradient(120deg, var(--tool), var(--tool-deep));
  color: #fff;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 13px;
  box-shadow: 0 12px 28px -12px var(--tool-line)
}

.btn-convert:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -12px var(--tool-line);
  color: #fff
}

.btn-convert:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.prog {
  flex: 1;
  min-width: 160px
}

.prog .bar {
  height: 8px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden
}

.prog .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tool), var(--tool-deep));
  border-radius: 100px;
  transition: width .2s
}

.prog .lab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px
}

.result {
  margin-top: 4px;
  border: 1px solid var(--tool-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--tool-soft), transparent);
  padding: 22px
}

.result .rhead {
  display: flex;
  align-items: center;
  gap: 11px
}

.result .rcheck {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tool-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none
}

.result .rtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px
}

.result .rsub {
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  margin-top: 2px
}

.result audio {
  width: 100%;
  margin: 16px 0 4px
}

.result .ract {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  justify-content: center;
  text-align: center
}

.privacy-note i {
  color: var(--tool-deep);
  margin-top: 1px
}

.mlist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px
}

.mitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface)
}

.mitem .mn {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tool-deep);
  background: var(--tool-soft)
}

.mitem .mmeta {
  min-width: 0;
  flex: 1
}

.mitem .mname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mitem .msub {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-top: 1px
}

.mitem .mbtns {
  display: flex;
  gap: 4px;
  flex: none
}

.mitem .mbtns button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: all .14s
}

.mitem .mbtns button:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--ink-3)
}

.mitem .mbtns button:disabled {
  opacity: .35;
  cursor: not-allowed
}

.mitem.err {
  border-color: oklch(0.85 0.08 25);
  background: oklch(0.98 0.02 25)
}

.maddbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--tool-deep);
  background: var(--tool-soft);
  border: 1px dashed var(--tool-line);
  border-radius: 11px;
  padding: 11px 18px;
  cursor: pointer;
  transition: all .15s
}

.maddbtn:hover {
  background: var(--surface)
}

.stage {
  position: relative;
  background: #0d0d11;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  min-height: 220px
}

.stage canvas {
  max-width: 100%;
  max-height: 440px;
  display: block
}

.vplayer {
  margin-top: 16px
}

.vplayer .stage {
  margin-top: 0;
  border-radius: 13px 13px 0 0;
  border-bottom: none
}

.vctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
  background: var(--bg-2)
}

.vctrl .vplay,
.vctrl .vmute {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--tool-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: border-color .15s
}

.vctrl .vplay:hover,
.vctrl .vmute:hover {
  border-color: var(--tool-line)
}

.vctrl .vmute {
  margin-left: auto;
  color: var(--ink-3)
}

.vctrl .vtime {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  flex: none;
  min-width: 34px
}

.vctrl .vseek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  outline: none;
  cursor: pointer
}

.vctrl .vseek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tool-deep);
  cursor: pointer;
  box-shadow: var(--shadow-sm)
}

.vctrl .vseek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--tool-deep);
  cursor: pointer
}

/* Before & After maker */
.ba-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.ba-slot {
  position: relative;
  border: 2px dashed var(--tool-line);
  border-radius: 14px;
  background: var(--bg-2);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-2);
  cursor: pointer;
  padding: 18px;
  transition: border-color .15s, background .15s;
  overflow: hidden
}

.ba-slot:hover,
.ba-slot.drag {
  border-color: var(--tool);
  background: var(--tool-soft)
}

.ba-slot .drop-ic {
  font-size: 24px;
  color: var(--tool-deep);
  opacity: .75
}

.ba-slot p {
  font-size: 14px;
  line-height: 1.35
}

.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font: 600 11px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tool-deep);
  background: var(--surface);
  border: 1px solid var(--tool-line);
  padding: 3px 9px;
  border-radius: 100px;
  z-index: 2
}

.ba-slot.filled {
  border-style: solid;
  border-color: var(--line);
  padding: 0;
  background: #0d0d11;
  min-height: 190px
}

.ba-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 230px;
  display: block
}

.ba-slot-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(10, 10, 15, .82), transparent);
  color: #fff
}

.ba-slot-meta .nm {
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block
}

.ba-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(12, 12, 17, .6);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3
}

.ba-x:hover {
  background: rgba(12, 12, 17, .85)
}

.ba-swap {
  margin-top: 14px
}

.ba-stage {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.ba-canvas {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  touch-action: none;
  background: #0d0d11;
  max-width: 100%;
  cursor: move
}

.ba-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px
}

.ba-dims,
.ba-labels {
  display: flex;
  align-items: center;
  gap: 8px
}

.ba-num,
.ba-txt {
  font: 500 14px var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px
}

.ba-num {
  width: 88px
}

.ba-num:focus,
.ba-txt:focus {
  outline: none;
  border-color: var(--tool);
  box-shadow: 0 0 0 3px var(--tool-soft)
}

.ba-txt {
  width: 100%
}

.ba-labels {
  width: 100%
}

.ba-times {
  color: var(--ink-3);
  font-weight: 600
}

.seg .sw {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line)
}

/* Metadata reader */
.meta-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface)
}

.meta-block+.meta-block {
  margin-top: 2px
}

.meta-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font: 600 13px var(--font-display);
  color: var(--ink);
  letter-spacing: .01em
}

.meta-h i {
  color: var(--tool-deep)
}

.meta-rows {
  padding: 4px 0
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  font-size: 13.5px
}

.meta-row .mk {
  color: var(--ink-2);
  flex: none
}

.meta-row .mv {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  word-break: break-word
}

.meta-row.warn {
  background: oklch(0.62 0.2 12 / 0.06)
}

.meta-row.warn .mk {
  color: var(--tool-deep);
  font-weight: 600
}

/* color swatches + picker */
.colorset {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap
}

.cswatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: transform .1s, border-color .1s
}

.cswatch:hover {
  transform: scale(1.08)
}

.cswatch.on {
  border-color: var(--tool);
  box-shadow: 0 0 0 3px var(--tool-soft)
}

.cpick {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 2px dashed var(--line);
  overflow: hidden
}

.cpick.on {
  border-style: solid;
  border-color: var(--tool);
  box-shadow: 0 0 0 3px var(--tool-soft);
  color: #fff
}

.cpick i {
  font-size: 12px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff
}

.cpick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0
}

/* Collage maker */
.cm-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center
}

.cm-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d11;
  flex: none
}

.cm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cm-i {
  position: absolute;
  top: 5px;
  left: 5px;
  font: 600 11px var(--font-mono);
  color: #fff;
  background: rgba(12, 12, 17, .6);
  border-radius: 5px;
  padding: 1px 6px
}

.cm-ops {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: linear-gradient(to top, rgba(10, 10, 15, .8), transparent);
  opacity: 0;
  transition: opacity .12s
}

.cm-thumb:hover .cm-ops {
  opacity: 1
}

.cm-op {
  flex: 1;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 10px
}

.cm-op:hover {
  background: #fff
}

.cm-op.cm-del {
  background: rgba(244, 63, 94, .92);
  color: #fff
}

.cm-add {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  border: 2px dashed var(--tool-line);
  background: var(--bg-2);
  color: var(--tool-deep);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  font: 600 12px var(--font-body)
}

.cm-add:hover {
  border-color: var(--tool);
  background: var(--tool-soft)
}

.cm-add i {
  font-size: 16px
}

.recstage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 10px
}

.rectime {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em
}

.reccanvas {
  width: 100%;
  height: 88px;
  display: block
}

.recbtn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(150deg, #E5484D, #c0343b);
  box-shadow: 0 14px 32px -10px rgba(229, 72, 77, .6);
  transition: transform .15s
}

.recbtn:hover {
  transform: scale(1.05)
}

.recbtn.stopping {
  background: linear-gradient(150deg, var(--tool), var(--tool-deep));
  box-shadow: 0 14px 32px -10px var(--tool-line);
  font-size: 22px
}

.recctrls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center
}

.recpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: #E5484D
}

.recpill.paused {
  color: var(--ink-3)
}

.recpill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: recpulse 1s infinite
}

.recpill.paused .dot {
  animation: none
}

@keyframes recpulse {
  50% {
    opacity: .25
  }
}

.rechint {
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
  max-width: 420px;
  text-wrap: pretty
}

.cliplist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px
}

.cliphd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px
}

.clip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface)
}

.clip .cplay {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tool-deep);
  font-size: 14px
}

.clip .cmeta {
  flex: 1;
  min-width: 0
}

.clip .cname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.clip .csub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px
}

.clip .cbtns {
  display: flex;
  gap: 6px;
  flex: none
}

.clip .cbtns a,
.clip .cbtns button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all .14s;
  text-decoration: none
}

.clip .cbtns a:hover,
.clip .cbtns button:hover {
  color: var(--ink);
  border-color: var(--ink-3)
}

.swatches {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap
}

.swatches button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform .12s, border-color .12s
}

.swatches button.on {
  border-color: var(--ink);
  transform: scale(1.08)
}

.videoresult video {
  width: 100%;
  max-height: 460px;
  border-radius: 12px;
  display: block;
  background: #000;
  margin: 14px 0 4px
}

.blocked {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: oklch(0.97 0.03 70);
  border: 1px solid oklch(0.88 0.06 70);
  font-size: 13px;
  color: oklch(0.45 0.09 60);
  line-height: 1.55
}

.blocked b {
  color: oklch(0.38 0.1 55)
}

.blocked ol {
  margin: 8px 0 0 18px;
  padding: 0
}

.blocked li {
  margin: 3px 0
}

.imgstage {
  background: #0d0d11;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 20px;
  overflow: hidden
}

.imgstage img,
.imgstage canvas {
  max-width: 100%;
  max-height: 420px;
  display: block;
  border-radius: 4px
}

.imgresult .rimg {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  display: block;
  margin: 14px auto 4px;
  background: repeating-conic-gradient(#e9e9ee 0% 25%, #fff 0% 50%) 50% / 20px 20px
}

.numrow {
  display: flex;
  align-items: center;
  gap: 10px
}

.numrow input[type=number] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  outline: none
}

.numrow input[type=number]:focus {
  border-color: var(--tool-line);
  box-shadow: 0 0 0 3px var(--tool-soft)
}

.numrow .x {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 14px
}

.lockbtn {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .14s
}

.lockbtn.on {
  color: var(--tool-deep);
  border-color: var(--tool-line);
  background: var(--tool-soft)
}

.cropbox {
  position: relative;
  display: inline-block;
  line-height: 0;
  touch-action: none;
  user-select: none;
  max-width: 100%
}

.cropbox img {
  max-width: 100%;
  max-height: 420px;
  display: block;
  -webkit-user-drag: none
}

.croprect {
  position: absolute;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 9999px rgba(10, 10, 14, .6);
  box-sizing: border-box;
  cursor: move;
  touch-action: none
}

.crophandle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid var(--tool-deep);
  box-sizing: border-box;
  touch-action: none
}

.notebanner {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--tool-soft);
  border: 1px solid var(--tool-line);
  font-size: 12.5px;
  color: var(--tool-deep);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45
}

.metaform {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  margin-top: 20px
}

@media (max-width:600px) {
  .metaform {
    grid-template-columns: 1fr
  }
}

.cover .cimg {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3)
}

@media (max-width:600px) {
  .cover .cimg {
    width: 100%;
    height: auto;
    aspect-ratio: 1
  }
}

.cover .cbtns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap
}

.fieldgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start
}

.fieldgrid .full {
  grid-column: 1 / -1
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s
}

.field input:focus,
.field textarea:focus {
  border-color: var(--tool-line);
  box-shadow: 0 0 0 3px var(--tool-soft)
}

.field input:disabled,
.field textarea:disabled {
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: not-allowed
}

.sec {
  padding: 60px 0
}

.sec-narrow {
  max-width: 780px;
  margin: 0 auto
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tool-deep)
}

h2.sh {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-top: 12px;
  letter-spacing: -0.03em
}

.sh-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 620px;
  text-wrap: pretty
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px
}

@media (max-width:720px) {
  .steps {
    grid-template-columns: 1fr
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm)
}

.step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tool-deep);
  background: var(--tool-soft);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700
}

.step h3 {
  font-size: 17px;
  margin-top: 15px
}

.step p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 8px;
  text-wrap: pretty
}

.feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px
}

@media (max-width:640px) {
  .feats {
    grid-template-columns: 1fr
  }
}

.feat {
  display: flex;
  gap: 15px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm)
}

.feat .fi {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--tool-deep);
  background: var(--tool-soft)
}

.feat h3 {
  font-size: 16px
}

.feat p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 6px;
  text-wrap: pretty
}

.prose {
  color: var(--ink-2)
}

.prose h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 30px 0 10px
}

.prose p {
  font-size: 15.5px;
  margin-top: 12px;
  line-height: 1.65;
  text-wrap: pretty
}

.prose strong {
  color: var(--ink);
  font-weight: 600
}

.faq {
  max-width: 780px;
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.qa {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm)
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.qa summary::-webkit-details-marker {
  display: none
}

.qa summary i {
  color: var(--tool-deep);
  transition: transform .2s;
  flex: none
}

.qa[open] summary i {
  transform: rotate(45deg)
}

.qa .a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  text-wrap: pretty
}

.rel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 34px
}

.rcard {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s
}

.rcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tool-line);
  color: var(--ink)
}

.rcard .ri {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--tool-deep);
  background: var(--tool-soft)
}

.rcard .rn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px
}

.rcard .rd {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px
}

.cta {
  margin: 30px auto 0;
  max-width: var(--maxw)
}

.cta-inner {
  background: linear-gradient(130deg, var(--ink), oklch(0.3 0.05 285));
  border-radius: 22px;
  padding: 46px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% -10%, var(--tool-soft), transparent 70%)
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 32px);
  position: relative
}

.cta-inner p {
  color: oklch(0.85 0.02 285);
  margin: 12px auto 0;
  max-width: 480px;
  position: relative
}

.cta-inner .btn {
  margin-top: 24px;
  position: relative
}

.ft {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 48px 0 30px;
  background: var(--bg-2)
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px
}

.ft-brand p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 260px
}

.ft-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 12px
}

.ft-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color .15s
}

.ft-col a:hover {
  color: var(--accent)
}

.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  flex-wrap: wrap
}

.ft-bottom .legal {
  display: flex;
  gap: 16px
}

@media (max-width:820px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:480px) {
  .ft-grid {
    grid-template-columns: 1fr
  }
}

.palpreview {
  position: relative
}

.palpreview img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  display: block
}

.palstripe {
  display: flex;
  width: 100%;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px
}

.palstripe div {
  flex: 1
}

.swatchlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px
}

.swatchrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .14s, background .14s
}

.swatchrow:hover {
  border-color: var(--tool-line);
  background: var(--bg-2)
}

.swatchrow .chip {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, .08)
}

.swatchrow .shex {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em
}

.swatchrow .sshare {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3)
}

.swatchrow .scopy {
  color: var(--ink-3);
  font-size: 13px;
  width: 20px;
  text-align: center
}

.metagrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px
}

@media (max-width:560px) {
  .metagrid {
    grid-template-columns: 1fr
  }
}

.metarow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface)
}

.metarow .mk {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.metarow .mv {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-word
}

.gpsrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  background: var(--tool-soft)
}

.gpsrow .mk {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3)
}

.gpsrow .mv {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  margin-top: 2px
}

.gpsrow a {
  margin-left: auto;
  flex: none
}

/* accessibility */
:focus-visible {
  outline: 2px solid #5b6ee1;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* embedded inside Mokivo Studio (?embed=1) */
.embed header.nav, .embed .mobile-menu, .embed .hero, .embed .ft, .embed .sec, .embed section.cta, .embed .cta.wrap { display: none !important; }
.embed body, .embed { background: transparent; }
.embed .tool { padding-top: 12px; }
.embed section:not(.tool) { display: none !important; }

/* where a tool runs */
.mk-badge { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font-mono, monospace); padding: 4px 8px; border-radius: 100px; }
.mk-badge.local { color: #176a3c; background: #e6f6ec; border: 1px solid #bfe5cc; }
.mk-badge.cloud { color: #7a4a00; background: #fff3dc; border: 1px solid #f2d9a6; }

/* pages that build their own UI inside #conv: give the blocks room to breathe */
.card-body.stack > div { display: flex; flex-direction: column; gap: 20px; }
.card-body.stack .opts { gap: 16px; }
.card-body.stack .fieldgrid { margin: 0; }
.card-body.stack .field .rngval { margin-top: 6px; }

/* notice for tools that download an AI model */
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px auto 0; max-width: 820px; padding: 12px 14px; border: 1px solid #f2d9a6; background: #fff8e8; color: #5b4300; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.ai-note i { margin-top: 2px; flex: none; }
@media (prefers-color-scheme: dark) { .ai-note { background: #2a2314; border-color: #5b4a1d; color: #f0d9a0; } }

/* Subtitle editor (video-subtitles) */
.sb-ed { margin: 28px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sb-head h3 { font: 600 16px var(--font-display); margin: 0; }
.sb-meta { font-size: 13px; color: var(--ink-3); }
.sb-meta:empty { display: none; }
.sb-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: -4px 0 14px; }
.sb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sb-bar .btn { margin: 0; }
.sb-bar .btn-convert { padding: 8px 16px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.sb-grp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-left: auto; }
.sb-tl { position: relative; width: 100%; box-sizing: border-box; height: 44px; margin: 14px 0 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; touch-action: none; cursor: pointer; }
.ba-stage .ba-hint { margin-top: 10px; }
.sb-ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; z-index: 3; }
.sb-blk { position: absolute; top: 6px; bottom: 6px; min-width: 6px; display: flex; align-items: center; background: var(--tool-soft); border: 1px solid var(--tool-line); border-radius: 5px; cursor: grab; font-size: 11px; color: var(--ink); overflow: hidden; z-index: 1; }
.sb-blk.on { background: var(--tool); border-color: var(--tool-deep); color: #fff; z-index: 2; }
.sb-blk .tx { flex: 1; min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.sb-blk .hl, .sb-blk .hr { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.sb-blk .hl { left: 0; } .sb-blk .hr { right: 0; }
.sb-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; max-height: 460px; overflow-y: auto; padding: 2px; }
.sb-empty { padding: 22px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.sb-row { display: grid; grid-template-columns: 22px 176px 1fr 34px; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.sb-row.on { border-color: var(--tool); box-shadow: 0 0 0 3px var(--tool-soft); }
.sb-row.live { border-color: var(--tool-line); background: var(--tool-soft); }
.sb-blk.live:not(.on) { background: var(--tool-line); border-color: var(--tool); }
.sb-n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 9px; }
.sb-tm { display: flex; flex-direction: column; gap: 8px; }
.sb-t { display: flex; gap: 6px; }
.sb-in { width: 100%; min-width: 0; height: 34px; box-sizing: border-box; font: 13px var(--font-mono); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.sb-now, .sb-del, .sb-add { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 8px; cursor: pointer; width: 34px; height: 34px; flex: none; }
.sb-act { display: flex; flex-direction: column; gap: 6px; }
.sb-now:disabled { opacity: .4; cursor: default; }
.sb-now:hover:not(:disabled), .sb-del:hover, .sb-add:hover { color: var(--ink); border-color: var(--ink-3); }
.sb-tx { width: 100%; min-height: 76px; resize: vertical; font: 14px/1.45 var(--font-body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
.sb-ed + .opts { margin-top: 28px; }
@media (max-width: 640px) { .sb-grp { margin-left: 0; } .sb-row { grid-template-columns: 22px 1fr 34px; } .sb-tx { grid-column: 2 / 4; } .sb-act { grid-row: 1; grid-column: 3; } }
.sb-opts { gap: 12px; margin-top: 22px; }
.sb-size > div:last-child { display: flex; align-items: center; gap: 12px; max-width: 380px; }
.sb-size .rng { flex: 1; min-width: 0; }
.sb-size .rngval { margin: 0 !important; min-width: 34px; }

/* Merge Clips */
.mc-list { display: flex; flex-direction: column; gap: 10px; }
.mc-clip { display: grid; grid-template-columns: 18px 26px 84px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mc-clip.drag { opacity: .45; }
.mc-clip.over { border-color: var(--tool); box-shadow: 0 0 0 3px var(--tool-soft); }
.mc-grip { color: var(--ink-3); cursor: grab; text-align: center; font-size: 13px; }
.mc-n { width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 600 12px var(--font-display); display: flex; align-items: center; justify-content: center; }
.mc-th { width: 84px; height: 52px; border-radius: 8px; overflow: hidden; background: #0D0D11; display: flex; align-items: center; justify-content: center; }
.mc-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-info { min-width: 0; }
.mc-name { font: 600 14px var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-meta { font: 12px var(--font-mono); color: var(--ink-3); margin-top: 3px; }
.mc-dur { font: 600 13px var(--font-mono); color: var(--ink-2); padding: 0 4px; }
.mc-act { display: flex; gap: 6px; }
.mc-act .btn:disabled { opacity: .35; }
.mc-cap { display: flex; justify-content: space-between; margin: 18px 2px 6px; font: 12px var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.mc-bar { display: flex; gap: 3px; height: 30px; border-radius: 8px; overflow: hidden; }
.mc-seg { display: flex; align-items: center; justify-content: center; min-width: 22px; color: #fff; font: 600 12px var(--font-display); }
.mc-add { margin-top: 16px; }
@media (max-width: 640px) { .mc-clip { grid-template-columns: 26px 64px 1fr auto; } .mc-grip, .mc-dur { display: none; } .mc-th { width: 64px; height: 44px; } .mc-act { grid-column: 2 / 5; } }
