:root {
  --bg: #f7f8fc;
  --bg2: #ffffff;
  --bg3: #eef0f6;
  --border: #d6dae8;
  --text: #111827;
  --text2: #4b5680;
  --text3: #9099b8;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent3: #dc2626;
  --tag-bg: #eff2fb;
  --card-bg: #ffffff;
  --nav-bg: rgba(247,248,252,0.92);
}
[data-theme="dark"] {
  --bg: #0c0e14;
  --bg2: #131620;
  --bg3: #1a1e2e;
  --border: #252a3a;
  --text: #e4e8f0;
  --text2: #8892b0;
  --text3: #4a5270;
  --accent: #60a5fa;
  --accent2: #a78bfa;
  --accent3: #f87171;
  --tag-bg: #1a2234;
  --card-bg: #131620;
  --nav-bg: rgba(12,14,20,0.92);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
strong { font-weight: 600; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); opacity: 1; }
.theme-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-eyebrow::before { content: '> '; }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text2);
  margin-bottom: 1rem;
  font-weight: 300;
  max-width: 600px;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.accent { border-color: var(--accent); color: var(--accent); background: rgba(37,99,235,0.07); }
.tag.violet { border-color: var(--accent2); color: var(--accent2); background: rgba(124,58,237,0.07); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text2); color: var(--text); }
.btn-rainbow {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c, #fda085);
  background-size: 300% 300%;
  color: #ffffff;
  border: none;
  animation: rainbowShift 4s ease infinite;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-weight: 700;
}
.btn-rainbow:hover { opacity: 1; transform: translateY(-2px); filter: brightness(1.1); }
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* PROFILE PHOTO */
.profile-photo-wrap {
  margin-bottom: 1.2rem;
  position: relative;
}
.profile-photo-wrap img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}
.profile-photo-placeholder {
  display: none;
  width: 100%;
  height: 120px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--text3);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}
.hero-deco {
  position: absolute;
  top: 20%;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-stats {
  display: flex; gap: 3rem; margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: left; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

/* SECTION */
section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-label::before { content: '// '; }
h2.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
  line-height: 1.1;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { color: var(--text2); margin-bottom: 1.2rem; line-height: 1.8; }
.about-text p strong { color: var(--text); }
.about-text .highlight {
  display: inline-block;
  background: rgba(37,99,235,0.06);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.5rem;
}
.about-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text2);
}
.ico { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.ico svg { display:block; }
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.info-key { font-size: 0.72rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; }
.info-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* RESEARCH */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.research-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.research-card.vlm::before { background: var(--accent); }
.research-card.vla::before { background: var(--accent2); }
.research-card.edge::before { background: var(--accent3); }
.research-card.survey::before { background: #f0a500; }
.research-card:hover { border-color: var(--text3); transform: translateY(-2px); }
.research-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.research-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.research-card .sub {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.8rem;
}
.research-card.vla .sub { color: var(--accent2); }
.research-card.edge .sub { color: var(--accent3); }
.research-card.survey .sub { color: #f0a500; }
.research-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.7; }
.research-card .models { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.model-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 4px;
  padding: 2px 8px;
}

/* PUBLICATIONS */
.pub-list { display: flex; flex-direction: column; gap: 1.2rem; }
.pub-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.2s;
}
.pub-card:hover { border-color: var(--text3); }
.pub-status {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.pub-status.published { background: rgba(37,99,235,0.1); color: var(--accent); border: 1px solid rgba(37,99,235,0.25); }
.pub-status.accepted { background: rgba(124,106,255,0.12); color: var(--accent2); border: 1px solid rgba(124,106,255,0.3); }
.pub-status.review { background: rgba(240,165,0,0.12); color: #f0a500; border: 1px solid rgba(240,165,0,0.3); }
.pub-status.submitted { background: rgba(255,107,107,0.12); color: var(--accent3); border: 1px solid rgba(255,107,107,0.3); }
.pub-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.pub-authors { font-size: 0.82rem; color: var(--text2); margin-bottom: 0.3rem; }
.pub-authors strong { color: var(--accent); }
.pub-venue { font-size: 0.78rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; }
.pub-year {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--tag-bg);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(37,99,235,0.2);
}
.pub-links { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.pub-link {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  transition: all 0.2s;
}
.pub-link:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* TECH STACK */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stack-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
}
.stack-group h4 {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-item {
  font-size: 0.78rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
}

/* CERTIFICATIONS */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--text3); }
.cert-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.cert-title { font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 0.2rem; line-height: 1.4; }
.cert-issuer { font-size: 0.78rem; color: var(--accent); font-family: 'JetBrains Mono', monospace; margin-bottom: 0.2rem; }
.cert-year { font-size: 0.72rem; color: var(--text3); }
.cert-link { font-size: 0.72rem; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; margin-top: 0.5rem; display: inline-block; transition: all 0.2s; font-family: 'JetBrains Mono', monospace; }
.cert-link:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* PROJECTS */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.proj-card:hover { border-color: var(--text3); transform: translateY(-1px); }
.proj-card h4 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.proj-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.6; margin-bottom: 0.8rem; }
.proj-link { font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; transition: all 0.2s; }
.proj-link:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.footer-name span { color: var(--accent); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a {
  color: var(--text2);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-copy { font-size: 0.78rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; }

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeInUp 0.6s ease both; }
.hero > *:nth-child(1) { animation-delay: 0.1s; }
.hero > *:nth-child(2) { animation-delay: 0.2s; }
.hero > *:nth-child(3) { animation-delay: 0.3s; }
.hero > *:nth-child(4) { animation-delay: 0.4s; }
.hero > *:nth-child(5) { animation-delay: 0.5s; }
.hero > *:nth-child(6) { animation-delay: 0.6s; }
.cursor::after {
  content: '|';
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* MOBILE */
@media (max-width: 768px) {
  .about-grid, .research-grid, .stack-grid, .cert-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .pub-card { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .nav-links .desktop-only { display: none; }
}
/* PI0 SECTION */
.pi0-shell {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* The full-width robot lineup */
.pi0-lineup {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 100%);
  padding: 1rem 1.5rem 0;
  gap: 0.4rem;
  align-items: flex-end;
  position: relative;
}

.pi0-robot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  will-change: transform;
  z-index: 1;
  transition: filter 0.35s ease;
}

/* Coloured glow disc behind each robot */
.pi0-robot-glow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.55) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

[data-theme="dark"] .pi0-robot-glow {
  background: radial-gradient(ellipse at center, rgba(96,165,250,0.6) 0%, transparent 72%);
}

.pi0-robot-card img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
  transition: filter 0.35s ease;
  position: relative;
  z-index: 1;
}

.pi0-robot-name-tag {
  font-size: 0.58rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  padding: 7px 4px 12px;
  text-align: center;
  transition: color 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Bottom info bar */
.pi0-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pi0-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pi0-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: blink 2s ease infinite;
}

.pi0-bar-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.25s;
}

.pi0-bar-sep {
  color: var(--text3);
  font-size: 0.8rem;
}

.pi0-bar-type {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  transition: color 0.25s;
}

.pi0-bar-idx-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text3);
  margin-left: 4px;
}

.pi0-bar-idx-wrap span:first-child {
  color: var(--accent);
  font-weight: 600;
}

.pi0-bar-total { color: var(--border); }

.pi0-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pi0-task {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--text2);
}
.pi0-task svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pi0-lineup {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.8rem 1rem 0;
  }
  .pi0-lineup .pi0-robot-card:nth-child(n+5) { display: none; }
  .pi0-info-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .pi0-lineup {
    grid-template-columns: repeat(3, 1fr);
  }
  .pi0-lineup .pi0-robot-card:nth-child(n+4) { display: none; }
}

/* VLM VISUALIZATION */
.vlm-shell {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.vlm-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.vlm-mtab {
  padding: 10px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vlm-mtab:hover { color: var(--text2); }
.vlm-mtab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--card-bg); }

.vlm-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}
.vlm-left {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vlm-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vlm-canvas-label {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
}
.vlm-legend-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text3);
}
.vlm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.vlm-canvas-wrap {
  width: 360px;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.vlm-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.vlm-slider-area {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.vlm-slider-row {
  display: flex;
  gap: 0.6rem;
}
.vlm-stat-chip {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.vlm-stat-chip.vlm-stat-accent {
  border-color: var(--accent);
  background: rgba(37,99,235,0.07);
}
[data-theme="dark"] .vlm-stat-chip.vlm-stat-accent { background: rgba(96,165,250,0.08); }
.vlm-stat-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.vlm-stat-chip.vlm-stat-accent .vlm-stat-val { color: var(--accent); }
.vlm-stat-lbl {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  margin-top: 3px;
  display: block;
}
.vlm-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.vlm-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
  transition: transform 0.1s;
}
.vlm-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.vlm-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.vlm-preset {
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}
.vlm-preset:hover, .vlm-preset.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37,99,235,0.07);
}
[data-theme="dark"] .vlm-preset:hover,
[data-theme="dark"] .vlm-preset.active { background: rgba(96,165,250,0.08); }

/* Right panel */
.vlm-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.vlm-arch { }
.vlm-arch-title {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.vlm-arch-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vlm-arch-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  min-width: 80px;
  transition: border-color 0.2s;
}
.vlm-arch-box.vlm-arch-highlight {
  border-color: var(--accent);
  background: rgba(37,99,235,0.07);
}
[data-theme="dark"] .vlm-arch-box.vlm-arch-highlight { background: rgba(96,165,250,0.08); }
.vlm-arch-icon { color: var(--text2); margin-bottom: 4px; display: flex; justify-content: center; }
.vlm-arch-highlight .vlm-arch-icon { color: var(--accent); }
.vlm-arch-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.vlm-arch-highlight .vlm-arch-name { color: var(--accent); }
.vlm-arch-sub { font-size: 0.65rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.vlm-arch-arr { color: var(--text3); font-size: 0.9rem; flex-shrink: 0; }

/* Benchmark bars */
.vlm-bench-title {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.vlm-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vlm-bar-name {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.vlm-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.vlm-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.vlm-bar-fill.vlm-bar-warn { background: #f0a500; }
.vlm-bar-fill.vlm-bar-danger { background: var(--accent3); }
.vlm-bar-pct {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  width: 38px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .vlm-body { grid-template-columns: 1fr; }
  .vlm-left { border-right: none; border-bottom: 1px solid var(--border); }
  .vlm-canvas-wrap { width: 100%; height: auto; aspect-ratio: 1; }
}
