/* SuperFine3D project page: one dark theme, one type family (Geist + Geist Mono), centred section heads,
   wide media with captions set outside the figure panels. */
:root {
  --bg: #07090e;
  --bg-2: #0d1017;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f2f3f5;
  --body: #c5c9d2;
  --muted: #8d95a5;
  --faint: #626a7a;
  --ours: #e2b65a;            /* accent: metallic gold */
  --ours-2: #f3dfa6;
  --grad: linear-gradient(100deg, #fbf0c9 0%, #e8c46e 42%, #b98a32 100%);
  --on-accent: #1c1405;
  --base: #7c8599;            /* baselines: neutral grey */
  --radius: 16px;
  --wrap: 1200px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, video { display: block; max-width: 100%; }
a { color: var(--ours-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
sup { font-size: 0.6em; line-height: 0; }
b, strong { color: var(--text); font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

/* ---------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 9, 14, 0.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-color: var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; gap: 28px; }
.brand { color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 450; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; color: #07090e; background: #f2f3f5; font-size: 13.5px; font-weight: 550;
  padding: 7px 14px; border-radius: 999px; transition: background .2s; }
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { text-decoration: none; background: #fff; }
span.nav-cta { color: var(--muted); background: transparent; border: 1px solid var(--line-2); cursor: default; }   /* public page: "Code soon" */

/* ---------- hero */
.hero { position: relative; padding: 118px 0 0; overflow: hidden; }
.hero-glow { position: absolute; left: 0; right: 0; top: 0; height: 820px; pointer-events: none;
  background: radial-gradient(1000px 520px at 50% -12%, rgba(226, 182, 90, .08), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 38px; }
.hero-copy { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ours); }
.eyebrow .dot { display: none; }
.title { font-weight: 600; font-size: clamp(56px, 8vw, 108px); line-height: .95; letter-spacing: -0.055em; margin: 18px 0 18px; color: var(--text); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .02em; }
.subtitle { font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; color: var(--muted); line-height: 1.5; letter-spacing: -0.01em; margin: 0 auto 30px; max-width: 34em; text-wrap: balance; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em;
  color: var(--text); background: transparent; border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; opacity: .9; }
.btn:hover { text-decoration: none; background: var(--panel-2); border-color: rgba(255, 255, 255, .28); }
.btn-primary { color: var(--on-accent); background: var(--grad); border-color: transparent; font-weight: 600; }
.btn-primary:hover { background: var(--grad); border-color: transparent; filter: brightness(1.08); }
.btn-ghost { color: var(--faint); cursor: default; }
.btn-ghost:hover { background: transparent; border-color: var(--line-2); }
.btn-ghost em { font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; background: var(--panel-2); }

/* stats: a quiet row of figures under the viewer */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.stat { padding: 4px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.045em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .5em; margin-left: 3px; color: var(--ours); letter-spacing: -0.01em; }
.stat .num sup { font-size: .42em; color: var(--ours); }
.stat .lbl { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 12px; }

/* ---------- sections */
.section { padding: 160px 0 0; }
.section-tight { padding-top: 150px; }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ours); margin-bottom: 16px; }
.section-head h2 { font-weight: 550; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -0.05em; color: var(--text); text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17.5px; line-height: 1.6; letter-spacing: -0.01em; margin: 0 auto; max-width: 700px; text-wrap: balance; }

.video-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8); background: #000; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; }

/* abstract and citation: centred heading over one text column */
.abs { max-width: 820px; margin: 0 auto; }
.abs h2 { margin: 0 0 30px; text-align: center; font-weight: 550; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.045em; color: var(--text); }
.abstract { font-size: 18px; line-height: 1.75; letter-spacing: -0.01em; color: var(--body); margin: 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.abstract b { color: var(--text); font-weight: 550; }

/* figures: light panels for the paper figures, captions outside on the dark page */
.figure { margin: 0 0 56px; }
.figure img { width: 100%; background: #fff; border-radius: 14px; padding: clamp(8px, 1.6vw, 20px); }
.figure figcaption { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 16px 0 0; max-width: 920px; text-wrap: pretty; }
.figure figcaption b { color: var(--text); font-weight: 550; }
.zoomable img { cursor: zoom-in; }

/* key ideas: four numbered columns, no boxes */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin: 8px 0 72px; }
.card { padding-top: 22px; border-top: 1px solid var(--line-2); }
.card-num { display: block; font-family: var(--mono); font-size: 12px; color: var(--ours); letter-spacing: .08em; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 550; letter-spacing: -0.025em; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.fig-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.fig-split > div { position: sticky; top: 88px; }   /* the shorter column stays in view next to the tall one */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.tile figcaption { padding: 14px 2px 0; color: var(--muted); font-size: 14.5px; }

/* ---------- table */
.table-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
th, td { padding: 15px 20px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 500; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); color: var(--body); }
td:not(:first-child) { font-family: var(--mono); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tr.ours td { background: rgba(226, 182, 90, .07); color: var(--text); }
tr.ours td:first-child { font-weight: 600; color: var(--ours); box-shadow: inset 2px 0 0 var(--ours); }
td b { color: var(--ours); font-weight: 600; }

/* highlights: three figures under the table */
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.pill { font-size: 15px; line-height: 1.5; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line-2); }
.pill b { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--text); margin-bottom: 12px; }

/* ---------- charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chart-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 26px 26px 16px; position: relative; }
.chart-card h3 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: -0.025em; color: var(--text); }
.chart-card .sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; }
.chart-card .big { position: absolute; top: 22px; right: 26px; text-align: right; }
.chart-card .big b { font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.045em; color: var(--ours); }
.chart-card .big span { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.chart-card .legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.axis text { fill: var(--faint); font-size: 11px; font-family: var(--mono); }
.axis line, .grid line { stroke: rgba(255,255,255,.06); }
.series path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.series circle { stroke: var(--bg-2); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; font-size: 12px; background: rgba(7, 9, 14, .94); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 3; }
.tip b { color: #fff; }
.e2e { margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 28px 30px; }
.e2e-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.e2e-head h3 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: -0.025em; color: var(--text); }
.e2e-head span { color: var(--faint); font-size: 13px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 110px; align-items: center; gap: 18px; margin: 14px 0; }
.bar-label { font-weight: 550; font-size: 15px; color: var(--text); }
.bar-label small { display: block; font-weight: 400; color: var(--faint); font-size: 12.5px; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar { height: 100%; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bar-base { background: #4a5163; }
.bar-ours { background: var(--grad); box-shadow: 0 0 16px rgba(226,182,90,.55); }
.bar-val { font-family: var(--mono); font-size: 13.5px; color: var(--muted); text-align: right; }
.ours-val { color: var(--ours); }
.e2e-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.e2e-foot b { color: var(--ours); font-weight: 600; }

/* ---------- bibtex, footer */
.bib { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.bib pre { margin: 0; padding: 26px 28px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--body); overflow-x: auto; }
.copy { position: absolute; top: 14px; right: 14px; font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); }
.copy:hover { background: rgba(255,255,255,.1); }
.footer { margin-top: 160px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--muted); }
.footer .muted { color: var(--faint); }

/* ---------- lightbox, reveal */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 6, 10, .94); display: none; align-items: center; justify-content: center; padding: 3vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }
.lightbox button { position: absolute; top: 18px; right: 22px; font-size: 34px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bar { transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive */
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .fig-split { grid-template-columns: 1fr; }
  .fig-split > div { position: static; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .hero { padding-top: 96px; }
  .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 18px; }
  .stat .num { font-size: 38px; }
  .section, .section-tight { padding-top: 104px; }
  .section-head { margin-bottom: 32px; }
  .section-head p, .abstract { font-size: 16.5px; }
  .abstract { text-align: left; }
  .cards, .pills { grid-template-columns: 1fr; gap: 28px; }
  .duo { grid-template-columns: 1fr; }
  .figure { margin-bottom: 40px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-val { text-align: left; }
  .footer { margin-top: 104px; }
}

/* ---------- hero 3D viewer */
.v3d { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: max(440px, calc(100vh - 370px)); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0f131c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); user-select: none; }
.v3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.v3d canvas:active { cursor: grabbing; }
.v3d:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; }
.v3d-top { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.v3d-objects { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.v3d-objects button, .v3d-compare button { font: inherit; font-size: 13px; font-weight: 600; color: #cfd6e4; background: rgba(10, 13, 20, .66); border: 1px solid var(--line-2);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px); transition: all .2s; }
.v3d-objects button.active { color: var(--on-accent); background: linear-gradient(135deg, var(--ours-2), var(--ours)); border-color: transparent; }
.v3d-full { pointer-events: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10, 13, 20, .66); color: #fff; cursor: pointer; display: grid; place-items: center; }
.v3d-full svg { width: 18px; height: 18px; }
.v3d-label { position: absolute; bottom: 14px; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 13, 20, .72); border: 1px solid var(--line-2); color: #fff; backdrop-filter: blur(8px); pointer-events: none; white-space: nowrap; }
.v3d-label:empty { display: none; }
.v3d-label small { color: var(--muted); margin-left: 6px; }
.v3d-label-a { right: 14px; }
.v3d.split .v3d-label-a { right: calc(50% + 14px); }
.v3d-label-a b { color: var(--ours-2); }
.v3d-label-b { right: 14px; }
.v3d-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.18); display: none; }
.v3d.split .v3d-divider { display: block; }
.v3d-input { position: absolute; left: 12px; bottom: 12px; width: 14%; padding: 0; font: inherit; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); cursor: pointer; transition: border-color .2s, transform .2s; }
.v3d-input:hover, .v3d-input:focus-visible { border-color: var(--ours); transform: translateY(-2px); }
.v3d-input img { display: block; }
.v3d-input-ab { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--ours-2), var(--ours)); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.v3d-input-ab svg { width: 15px; height: 15px; }
.v3d.split .v3d-input { width: 10%; }
.v3d-input img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v3d-input span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 600; text-align: center; color: #fff; padding: 3px 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.v3d-hot { position: absolute; inset: 0; pointer-events: none; }
.v3d-spot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: rgba(226, 182, 90, .92); color: var(--on-accent);
  font: 700 13px var(--sans); cursor: pointer; pointer-events: auto; box-shadow: 0 0 0 0 rgba(226,182,90,.6); animation: spot 2.2s infinite; }
.v3d-spot:hover { background: #fff; }
@keyframes spot { 0% { box-shadow: 0 0 0 0 rgba(226,182,90,.6); } 70% { box-shadow: 0 0 0 12px rgba(226,182,90,0); } 100% { box-shadow: 0 0 0 0 rgba(226,182,90,0); } }
.v3d-back { position: absolute; top: 56px; left: 12px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10,13,20,.72); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.v3d-status { position: absolute; top: 56px; right: 14px; font-size: 12px; color: var(--muted); pointer-events: none; text-align: right; }
.v3d.in-hot .v3d-status { color: var(--ours-2); }
.v3d-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; transition: opacity .3s; }
.v3d.loading .v3d-bar { opacity: 1; }
.v3d-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ours-2), var(--ours)); transition: width .2s; }
.v3d-compare { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; }
.v3d-compare span { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.v3d-compare button { background: var(--panel); }
.v3d-compare button.active { color: #fff; background: rgba(226, 182, 90, .2); border-color: rgba(226, 182, 90, .6); }
.v3d-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .v3d { aspect-ratio: 1; } .v3d-input { width: 26%; } .v3d.split .v3d-input { width: 14%; } .v3d-hint { display: none; } }
.v3d.in-hot .v3d-input { display: none; }
.v3d-status:not(:empty) { padding: 5px 11px; border-radius: 999px; background: rgba(10, 13, 20, .72); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.v3d-title { font-size: 13px; font-weight: 600; color: var(--on-accent); padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--ours-2), var(--ours)); }
/* input image | 3D slider: full-resolution render of the full mesh from the fitted input camera, same pixels as the photo crop */
.v3d-ab { position: absolute; inset: 0; background: #0f131c; overflow: hidden; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.v3d-ab[hidden] { display: none; }
.v3d-ab.pan { cursor: grab; }
.v3d-ab.panning { cursor: grabbing; }
.v3d-ab-layer { position: absolute; inset: 0; pointer-events: none; }
.v3d-ab-layer img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.v3d-ab-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 14px rgba(0,0,0,.45); cursor: ew-resize; outline: none; }
.v3d-ab-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(135deg, var(--ours-2), var(--ours)); border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: transform .15s; }
.v3d-ab-knob svg { width: 22px; height: 22px; }
.v3d-ab-line:hover .v3d-ab-knob, .v3d-ab-line:focus-visible .v3d-ab-knob, .v3d-ab.dragging .v3d-ab-knob { transform: translate(-50%, -50%) scale(1.1); }
.v3d-ab-line:focus-visible .v3d-ab-knob { outline: 2px solid #fff; outline-offset: 3px; }
.v3d-ab-tag { position: absolute; bottom: 14px; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 13, 20, .72); border: 1px solid var(--line-2); color: #fff; backdrop-filter: blur(8px); pointer-events: none; white-space: nowrap; transition: opacity .2s; }
.v3d-ab-tag b { color: var(--ours-2); }
.v3d-ab-tag small { color: var(--muted); margin-left: 6px; }
.v3d-ab-tag.compact small { display: none; }
.v3d.ab .v3d-hot, .v3d.ab .v3d-label, .v3d.ab .v3d-divider, .v3d.ab .v3d-input, .v3d.ab .v3d-back, .v3d.ab .v3d-status, .v3d.ab .v3d-bar { display: none; }
@media (max-width: 640px) { .v3d-ab-tag small { display: none; } .v3d-input-ab { width: 20px; height: 20px; top: 4px; right: 4px; } .v3d-input-ab svg { width: 13px; height: 13px; } }
