@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root, [data-theme=dark] {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #111117;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #c9c9d1;
  --muted: #8a8a96;
  --a: #8b6cff;
  --b: #38c8ff;
  --accent: #9d86ff;
  --grad: linear-gradient(135deg, var(--a), var(--b));
  --primary-bg: #f4f4f6;
  --primary-fg: #0a0a0d;
  --good: #3ddc97;
  --warn: #f5b942;
  --bad: #ff6b7a;
  --viewport: #0b0b10;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(157, 134, 255, .35), 0 10px 40px -10px rgba(139, 108, 255, .45);
  --mesh-base: 150,150,168;
  --mesh-kept: 56,200,255;
  --mesh-opened: 245,185,66;
  --mesh-dropped: 255,107,122;
  --mesh-scan: 157,134,255;
  --hero-a: #8b6cff;
  --hero-b: #38c8ff;
  --grain-opacity: .05;
  color-scheme: dark;
}
[data-theme=light] {
  --bg: #fafafa;
  --bg-2: #f3f3f6;
  --surface: rgba(10, 10, 20, .025);
  --surface-2: rgba(10, 10, 20, .05);
  --surface-solid: #ffffff;
  --line: rgba(10, 10, 20, .09);
  --line-2: rgba(10, 10, 20, .16);
  --text: #0c0c10;
  --text-2: #33333d;
  --muted: #6b6b78;
  --a: #6d4dff;
  --b: #0ea5e9;
  --accent: #6d4dff;
  --primary-bg: #0c0c10;
  --primary-fg: #ffffff;
  --good: #12a36a;
  --warn: #b7791f;
  --bad: #e03e52;
  --viewport: #f1f1f5;
  --shadow: 0 1px 2px rgba(10, 10, 30, .04), 0 18px 40px -22px rgba(20, 20, 60, .18);
  --glow: 0 0 0 1px rgba(109, 77, 255, .35), 0 10px 30px -12px rgba(109, 77, 255, .35);
  --mesh-base: 120,120,138;
  --mesh-kept: 14,165,233;
  --mesh-opened: 214,150,30;
  --mesh-dropped: 224,62,82;
  --mesh-scan: 109,77,255;
  --hero-a: #6d4dff;
  --hero-b: #0ea5e9;
  --grain-opacity: .03;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}
input, select, textarea, pre, code { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
code, pre { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: .86em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--a) 40%, transparent); }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- shell */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 20;
  display: flex; flex-direction: column; padding: 18px 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.02rem; letter-spacing: -.02em; padding: 4px 8px 18px; }
.brand svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 14px rgba(139, 108, 255, .45)); }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 16px 10px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.nav a, .nav .soon, .nav-btn {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .93rem; transition: background .15s, color .15s;
  border: 0; background: none; font-family: inherit; cursor: pointer; width: 100%; text-align: left;
}
.nav a svg, .nav .soon svg, .nav-btn svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover, .nav-btn:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav a.active svg { color: var(--accent); opacity: 1; }
.nav .soon { color: var(--muted); cursor: default; }
.tag { margin-left: auto; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag.new { background: var(--grad); color: #fff; border-color: transparent; }
.page-head .tag { margin-left: 10px; vertical-align: middle; font-size: .66rem; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--muted); padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; line-height: 1.45; }
.privacy svg { width: 16px; height: 16px; flex: none; color: var(--good); margin-top: 1px; }
.version { margin: 4px 10px 0; font-size: .72rem; color: var(--muted); }

.mobilebar { display: none; }
.nav-scrim { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

.main { margin-left: 256px; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 36px 40px 60px; }
#page-home { padding-top: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .92rem; letter-spacing: -.01em; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .15s cubic-bezier(.2, .8, .2, 1), background .15s, box-shadow .2s, opacity .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.btn.accent { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.btn.accent:hover:not(:disabled) { box-shadow: 0 0 0 1px rgba(157, 134, 255, .5), 0 14px 44px -10px rgba(139, 108, 255, .7); }
.btn.glass { background: var(--surface); backdrop-filter: blur(10px); }
.btn.glass:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.big { padding: 13px 24px; font-size: .98rem; }
.btn.small { padding: 7px 14px; font-size: .84rem; }
.btn.block { width: 100%; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: .8rem; cursor: pointer; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.bento .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(2) { transition-delay: .05s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .19s; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--accent) 22%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- home */
.hero { position: relative; margin: 0 -40px; padding: 110px 40px 70px; overflow: hidden; text-align: center; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%); opacity: .8; }
.hero-glow { position: absolute; z-index: -2; left: 50%; top: -120px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 38%, transparent), transparent), radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--b) 26%, transparent), transparent); filter: blur(30px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-46%) translateY(30px) scale(1.08); } }
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); text-decoration: none; font-size: .84rem; color: var(--text-2); transition: border-color .2s; }
.eyebrow:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.eyebrow b { background: var(--grad); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow svg { width: 14px; height: 14px; }
.display { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 26px 0 20px; background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.display .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--text-2); max-width: 620px; margin: 0 auto; text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.stats-strip { list-style: none; padding: 0; margin: 0 0 90px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.stats-strip li { padding: 22px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.stats-strip li:first-child { border-left: 0; }
.stats-strip b { font-size: 1.4rem; font-weight: 650; letter-spacing: -.03em; }
.stats-strip span { color: var(--muted); font-size: .85rem; }

.section-head { margin: 0 0 26px; }
.kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 650; margin: 0; max-width: 20em; text-wrap: balance; }

.bento { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-bottom: 90px; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
a.tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow), 0 30px 60px -30px color-mix(in srgb, var(--a) 60%, transparent); }
.tile-lg { grid-row: span 2; }
.tile-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; }
.tile-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile-kicker svg { width: 16px; height: 16px; color: var(--accent); }
.tile h3 { margin: 0; font-size: 1.35rem; font-weight: 650; }
.tile p { margin: 0; color: var(--text-2); font-size: .93rem; }
.tile-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.tile-link svg { width: 15px; height: 15px; transition: transform .2s; }
a.tile:hover .tile-link svg { transform: translateX(3px); }
.tile-soon { background: repeating-linear-gradient(135deg, transparent 0 10px, var(--surface) 10px 11px); }
.tile-art { position: relative; margin: 10px 10px 0; border-radius: 16px; background: var(--viewport); border: 1px solid var(--line); overflow: hidden; }
.art-convert { flex: 1; min-height: 240px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 20px; background: radial-gradient(400px 200px at 30% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent), var(--viewport); }
.mini-steps { display: flex; gap: 10px; }
.mini-steps span { width: 34px; height: 6px; border-radius: 3px; background: var(--line-2); }
.mini-steps .d { background: var(--grad); }
.mini-steps .on { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.mini-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 62%; background: var(--grad); border-radius: inherit; animation: fill 3.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes fill { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.mini-files { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-files span { font-family: ui-monospace, Consolas, monospace; font-size: .74rem; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.art-uv { height: 170px; display: grid; place-items: center; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px, var(--viewport); }
.art-uv svg { width: 82%; height: auto; filter: drop-shadow(0 0 10px rgba(56, 200, 255, .25)); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 90px; }
.feature { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { margin: 14px 0 6px; font-size: 1.08rem; font-weight: 650; }
.feature p { margin: 0; color: var(--text-2); font-size: .92rem; }
.f-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--a) 16%, transparent); border: 1px solid color-mix(in srgb, var(--a) 30%, transparent); color: var(--accent); }
.f-icon svg { width: 20px; height: 20px; }

.faq { display: grid; gap: 10px; margin-bottom: 60px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--text-2); }
.foot { border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- tool pages */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--text-2); max-width: 44em; }

.howto { border-radius: 18px; padding: 4px 22px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--a) 30%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--a) 9%, transparent), color-mix(in srgb, var(--b) 5%, transparent)); }
.howto summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 650; display: flex; align-items: center; gap: 9px; color: var(--accent); }
.howto summary::-webkit-details-marker { display: none; }
.howto summary svg { width: 18px; height: 18px; }
.howto summary::after { content: "Show"; margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--muted); }
.howto[open] summary::after { content: "Hide"; }
.howto ol { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .92rem; }
.howto li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; margin-top: 1px; }
.howto b { color: var(--text); }

.drop {
  position: relative; text-align: center; padding: 50px 24px 40px; margin-bottom: 20px; outline: none;
  border-radius: 22px; background: var(--surface); isolation: isolate;
  border: 1px dashed var(--line-2); transition: background .2s, border-color .2s;
}
.drop::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--a), var(--b), transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; z-index: -1; }
.drop:hover::before, .drop.over::before, .drop:focus-visible::before { opacity: 1; animation: orbit 3s linear infinite; }
.drop.over { background: color-mix(in srgb, var(--a) 8%, var(--surface)); border-color: transparent; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --angle: 360deg; } }
.drop-art { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.drop-art svg { width: 28px; height: 28px; }
.drop h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 650; }
.drop p { margin: 0; font-size: .9rem; }
.drop-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.drop-busy { position: absolute; inset: 0; border-radius: inherit; display: flex; align-items: center; justify-content: center; gap: 12px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); font-weight: 600; padding: 16px; z-index: 2; }
.drop.compact { padding: 16px 20px; display: flex; align-items: center; gap: 16px; text-align: left; flex-wrap: wrap; }
.drop.compact .drop-art { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.drop.compact .drop-art svg { width: 20px; height: 20px; }
.drop.compact h2 { font-size: .98rem; margin: 0; flex: 1; }
.drop.compact p { display: none; }
.drop.compact .drop-actions { margin: 0; }
.drop.compact .btn { padding: 7px 14px; font-size: .84rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.25rem; font-weight: 650; }
.panel-head p { margin: 4px 0 0; font-size: .9rem; }
.panel-actions { display: flex; gap: 8px; }
.notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.notes li { font-size: .87rem; padding: 9px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); color: var(--text-2); }
.notes li.warn { border-left-color: var(--warn); }
.notes li.bad { border-left-color: var(--bad); }
.notes li.good { border-left-color: var(--good); }

.table-wrap { overflow-x: auto; margin: 16px -4px 0; }
.vehicles { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vehicles th { text-align: left; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: 8px; border-bottom: 1px solid var(--line); }
.vehicles td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vehicles tr:last-child td { border-bottom: 0; }
.vehicles .c-check { width: 36px; }
.vehicles .c-size { width: 90px; text-align: right; white-space: nowrap; }
.vehicles td.c-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.vehicles .src { color: var(--muted); font-size: .82rem; word-break: break-all; }
input[type=text], select { font: inherit; font-size: .9rem; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.vehicles input[type=text] { font-family: ui-monospace, Consolas, monospace; width: 100%; min-width: 150px; max-width: 260px; }
input[type=text]:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; }
.vehicles input.invalid { border-color: var(--bad); }
.vehicles .tag { margin-left: 8px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 44px; height: 30px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.advanced label { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .9rem; }

.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 16px 0 12px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s; box-shadow: 0 0 20px var(--a); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.kept { background: rgb(var(--mesh-kept)); }
.sw.opened { background: rgb(var(--mesh-opened)); }
.sw.dropped { background: rgb(var(--mesh-dropped)); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .3s, box-shadow .3s; }
.card[data-state=running] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 50px -25px color-mix(in srgb, var(--a) 70%, transparent); }
.card[data-state=error] { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-name { min-width: 0; display: flex; flex-direction: column; }
.card-name b { font-family: ui-monospace, Consolas, monospace; font-size: .98rem; overflow-wrap: anywhere; }
.card-name .source { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; font-size: .72rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.card[data-state=running] .badge { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card[data-state=done] .badge { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.card[data-state=error] .badge { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.card-body { display: flex; flex-direction: column; gap: 10px; }
.viewport { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--a) 10%, transparent), transparent 70%), var(--viewport); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.viewport canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.viewport canvas:active { cursor: grabbing; }
.viewport .atlas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #16161a; }
.viewport .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.card:not([data-state=queued]) .placeholder { display: none; }
.card[data-state=queued] .placeholder .spinner { animation-play-state: paused; opacity: .4; }
.card[data-state=error] .viewport:not(.has-mesh)::after { content: "Not converted"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.view-toggle { position: absolute; right: 8px; bottom: 8px; display: flex; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.view-toggle button { font: inherit; font-size: .72rem; font-weight: 650; border: 0; background: transparent; color: var(--muted); padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.view-toggle button.on { background: var(--primary-bg); color: var(--primary-fg); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; font-size: .77rem; }
.stages li { display: flex; align-items: center; gap: 7px; color: var(--muted); padding: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; box-sizing: border-box; }
.stages li.active { color: var(--text); font-weight: 600; }
.stages li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.stages li.done { color: var(--text-2); }
.stages li.done::before { background: var(--accent); border-color: var(--accent); }
.card[data-state=error] .stages li.active::before { animation: none; border-color: var(--bad); background: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats:empty { display: none; }
.stats div { padding: 6px 10px; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stats dt { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; font-size: .9rem; overflow-wrap: anywhere; }
.error { margin: 0; font-size: .86rem; color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); border-radius: 12px; padding: 9px 12px; overflow-wrap: anywhere; }
.log summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.log pre { margin: 8px 0 0; max-height: 180px; overflow: auto; background: var(--viewport); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .72rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-foot { display: flex; justify-content: flex-end; }

.dock { position: sticky; bottom: 0; z-index: 5; padding: 0 0 18px; pointer-events: none; }
.dock-inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface-solid) 82%, transparent); backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); flex-wrap: wrap; }
.dock-text { display: flex; flex-direction: column; min-width: 0; }
.dock-text b { font-size: 1.02rem; }
.dock-text span { font-size: .86rem; }

/* ---------------------------------------------------------------- UV workspace */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: .84rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--primary-bg); color: var(--primary-fg); border-color: transparent; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ws-main { margin: 0; padding: 16px; }
.ws-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-name { display: flex; flex-direction: column; min-width: 0; }
.ws-name b { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; }
.ws-name span { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
#uv-layout-hint { margin: 10px 0 12px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented button { position: relative; font: inherit; font-size: .82rem; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.segmented button:hover:not(:disabled) { color: var(--text); }
.segmented button.on, .segmented button.on:hover:not(:disabled) { background: var(--primary-bg); color: var(--primary-fg); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.segmented button:disabled { opacity: .45; cursor: default; }
.segmented button.loading::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; border: 2px solid var(--muted); border-top-color: transparent; animation: spin .8s linear infinite; vertical-align: -1px; }
.stage { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: grab; touch-action: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--text) 5%, transparent) 0 25%, transparent 0 50%) 0 0 / 18px 18px, var(--viewport); }
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-status { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface-solid) 85%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; max-width: calc(100% - 24px); }
.stage-status .spinner { width: 14px; height: 14px; border-width: 2px; }
.stage-status.error { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.stage-reset { position: absolute; right: 12px; top: 12px; backdrop-filter: blur(10px); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: .74rem; color: var(--muted); pointer-events: none; }
.uv-info { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 2px 0; }
.uv-info div { display: flex; gap: 8px; align-items: baseline; }
.uv-info dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.uv-info dd { margin: 0; font-weight: 650; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ws-side { margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.ws-side h3 { margin: 6px 0 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.ws-side h3:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-2); font-weight: 500; }
.field output { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.field:has(input[type=color]) { flex-direction: row; justify-content: space-between; align-items: center; }
.check { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.parts { display: flex; flex-direction: column; gap: 2px; max-height: 190px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.part { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-family: ui-monospace, Consolas, monospace; color: var(--text-2); }
.part:hover { background: var(--surface-2); }
.part .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.part span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part small { color: var(--muted); font-size: .72rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .ws-grid { grid-template-columns: 1fr; }
  .ws-side { position: static; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); background: var(--bg); }
  body.nav-open .sidebar { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .4); }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .45); }
  .nav a.active::before { display: none; }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 10; align-items: center; justify-content: space-between; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .mobilebar .brand { padding: 0; }
  .main { margin-left: 0; }
  .page { padding: 24px 16px 50px; }
  .hero { margin: 0 -16px; padding: 70px 16px 50px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 60px; }
  .stats-strip li:nth-child(3) { border-left: 0; }
  .stats-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento, .features { grid-template-columns: 1fr; margin-bottom: 60px; }
  .tile-lg { grid-row: auto; }
}
@media (max-width: 640px) {
  .panel { padding: 16px; border-radius: 18px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .vehicles .src-col { display: none; }
  .dock-inner .btn { width: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
