@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
:root {
  --bg: #0f0f13;
  --surface: #18181f;
  --surface2: #22222c;
  --border: #2e2e3e;
  --accent: #6e56f8;
  --accent-h: #7c68f9;
  --pink: #f7548a;
  --teal: #3dffd0;
  --text: #eeeef5;
  --muted: #7878a0;
  --dim: #44445a;
  --success: #3ddc84;
  --danger: #ff5f5f;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── APP SHELL (hidden until launched) ── */
#app-shell {
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── LANDING PAGE ── */
#landing {
  display: block;
}
#landing.hide {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .nav-logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.site-nav .nav-logo span {
  color: var(--text);
}
.site-nav .nav-links {
  display: flex;
  gap: 24px;
}
.site-nav .nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: 0.15s;
}
.site-nav .nav-links a:hover {
  color: var(--text);
}
.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.site-nav .nav-cta:hover {
  background: var(--accent-h);
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, #13103a 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(110, 86, 248, 0.15);
  border: 1px solid rgba(110, 86, 248, 0.3);
  color: var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  max-width: 780px;
  margin-inline: auto;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.hero-btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
}
.hero-btn-secondary {
  background: none;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.hero-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-preview {
  margin: 52px auto 0;
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.hero-preview-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.hero-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--dim);
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

/* AD SLOT */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 0 auto;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
  width: 100%;
}
.ad-wrap {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}
.ad-label {
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  margin-bottom: 6px;
}

/* FEATURES */
.section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: 0.2s;
}
.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feat-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* HOW IT WORKS */
.steps-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step {
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* USE CASES */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.uc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.uc-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uc-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-q:hover {
  background: var(--surface2);
}
.faq-q .arr {
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .arr {
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  display: block;
}

/* STATS STRIP */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.stat-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* FOOTER */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 40px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 9px;
  transition: 0.15s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
}
.footer-logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.footer-logo span {
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 50;
}
.logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo b {
  color: var(--text);
}
.vsep {
  width: 1px;
  height: 26px;
  background: var(--border);
  flex-shrink: 0;
}
.header-tabs {
  display: flex;
  gap: 2px;
}
.htab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: none;
  font-family: inherit;
  transition: 0.15s;
}
.htab:hover {
  background: var(--surface2);
  color: var(--text);
}
.htab.on {
  background: var(--accent);
  color: #fff;
}
.hright {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
}
.btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.btn-ghost {
  background: none;
  color: var(--muted);
}
.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
}
.page-ctrl {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.page-ctrl.show {
  display: flex;
}
.pcbtn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: 0.15s;
}
.pcbtn:hover {
  color: var(--text);
  border-color: var(--accent);
}
#page-ind {
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  min-width: 48px;
  text-align: center;
}

.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 200px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.sb-sect {
  padding: 10px;
}
.sb-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 7px;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.tbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border: 1.5px solid transparent;
  transition: 0.15s;
  font-family: inherit;
}
.tbtn svg {
  width: 17px;
  height: 17px;
}
.tbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tbtn.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110, 86, 248, 0.12);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 10px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.slabel {
  font-size: 11px;
  color: var(--muted);
  width: 46px;
  flex-shrink: 0;
}
.swatches {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.sw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.15s;
  flex-shrink: 0;
}
.sw:hover {
  transform: scale(1.18);
}
.sw.on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
input[type="color"] {
  border: none;
  background: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.val {
  font-size: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  min-width: 26px;
}
select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  flex: 1;
}
select:focus {
  border-color: var(--accent);
}
.thumbs {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.thumbs::-webkit-scrollbar {
  width: 4px;
}
.thumbs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.thumb {
  position: relative;
  margin-bottom: 6px;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.thumb:hover {
  border-color: var(--pink);
}
.thumb.on {
  border-color: var(--accent);
}
.thumb canvas {
  width: 100%;
  display: block;
}
.tnum {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
}

.center {
  flex: 1;
  overflow: auto;
  background: #080810;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  position: relative;
}
.center::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.center::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.page-wrap {
  position: relative;
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  display: none;
  margin-bottom: 20px;
}
.page-wrap.show {
  display: block;
}
#pdf-canvas {
  display: block;
}
#ov-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.drop-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  width: 100%;
}
.drop-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 44px 40px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  width: 100%;
}
.drop-box:hover,
.drop-box.drag-over {
  border-color: var(--accent);
  background: rgba(110, 86, 248, 0.05);
}
.drop-box svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
  opacity: 0.7;
}
.drop-box h3 {
  font-size: 16px;
  font-weight: 600;
}
.drop-box p {
  font-size: 12px;
  color: var(--muted);
}

.rpanel {
  width: 210px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
}
.rpanel::-webkit-scrollbar {
  width: 4px;
}
.rpanel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.rp-sect {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.rp-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--dim);
  margin-bottom: 10px;
}
.anno-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  border: 1px solid transparent;
  transition: 0.12s;
}
.anno-item:hover {
  background: var(--surface2);
}
.anno-item.on {
  background: rgba(110, 86, 248, 0.1);
  border-color: var(--accent);
}
.anno-lbl {
  flex: 1;
  color: var(--muted);
}
.adel {
  opacity: 0;
  cursor: pointer;
  color: var(--danger);
  background: none;
  border: none;
  font-size: 13px;
  transition: 0.15s;
  padding: 0 1px;
  line-height: 1;
}
.anno-item:hover .adel {
  opacity: 1;
}
.no-anno {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  padding: 10px 0;
}
.doc-info {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.doc-info b {
  color: var(--text);
  font-weight: 500;
}
.act-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  width: 100%;
  font-family: inherit;
  transition: 0.15s;
  text-align: left;
}
.act-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.act-btn svg {
  width: 12px;
  height: 12px;
}

.zoom-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.zbtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.15s;
  line-height: 1;
}
.zbtn:hover {
  background: var(--surface2);
  color: var(--text);
}
#zoom-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  min-width: 42px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  z-index: 999;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(3px);
}
.overlay.hide {
  display: none;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  width: 460px;
  max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.modal h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
}
.modal .sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mlabel {
  font-size: 11px;
  color: var(--muted);
  width: 56px;
  flex-shrink: 0;
}
.minput {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
}
.minput:focus {
  outline: none;
  border-color: var(--accent);
}
.mactions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 16px;
}
#sig-canvas {
  width: 100%;
  height: 180px;
  background: #fff;
  border-radius: 8px;
  cursor: crosshair;
  display: block;
  touch-action: none;
}
textarea.minput {
  resize: vertical;
  min-height: 70px;
}
.shape-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sopt {
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  background: var(--surface2);
  border: 2px solid transparent;
  transition: 0.15s;
  font-family: inherit;
  color: var(--text);
}
.sopt:hover {
  border-color: var(--accent);
}
.sopt.on {
  border-color: var(--accent);
  background: rgba(110, 86, 248, 0.15);
}
.merge-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.mfile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: var(--surface2);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.mfile svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
.mfile span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.split-opts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.spl-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 7px;
  cursor: pointer;
  background: var(--surface2);
  border: 2px solid transparent;
  transition: 0.15s;
  font-size: 12px;
}
.spl-opt:hover {
  border-color: var(--accent);
}
.spl-opt.on {
  border-color: var(--accent);
  background: rgba(110, 86, 248, 0.1);
}
.spl-opt input {
  accent-color: var(--accent);
  cursor: pointer;
}
#split-range-row {
  display: none;
  margin-top: 10px;
}
