/* OpenSkillEval — Warm Editorial Design System */

/* --- Fonts (loaded via HTML link tags) --- */

:root {
  --cream: #FAF7F2;
  --warm-dark: #2D2520;
  --warm-mid: #4A3F37;
  --white: #ffffff;
  --taupe: #8B7E74;
  --beige: #E8DED2;
  --coral: #C8715E;
  --amber: #D4956A;
  --charcoal: #3D3530;
  --fafafa: #F5F0E8;

  --bg: var(--cream);
  --surface: var(--white);
  --surface-hover: #F5F0E8;
  --border: #E2D9CD;
  --border-light: #EDE7DE;
  --text: var(--warm-dark);
  --text-secondary: #6B5F55;
  --text-muted: var(--taupe);

  --primary: var(--coral);
  --primary-light: rgba(200, 113, 94, 0.08);
  --success: #4A9E6F;
  --success-light: rgba(74, 158, 111, 0.08);
  --warning: #C89B3C;
  --warning-light: rgba(200, 155, 60, 0.08);
  --danger: #C85A4A;
  --danger-light: rgba(200, 90, 74, 0.08);

  --radius: 6px;
  --radius-sm: 3px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(45, 37, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 37, 32, 0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --container: min(1760px, 92vw);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { font-size: clamp(15px, 0.55vw + 0.55rem, 22px); scroll-behavior: smooth; }

@media (max-width: 600px) {
  html { font-size: 15px; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  zoom: 0.8;
}

a { cursor: pointer; }
button { cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-init {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
.reveal.reveal-init.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ambient Orbs --- */
.orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.orb--sage { background: #D4A574; }
.orb--blue { background: #C8715E; }
.orb--cyan { background: var(--amber); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.5s cubic-bezier(.4,0,.2,1),
              border-bottom 0.5s cubic-bezier(.4,0,.2,1),
              box-shadow 0.5s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  max-width: var(--container);
  margin: 0 auto;
  transition: height 0.5s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled .nav-inner {
  height: 56px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--warm-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: font-size 0.5s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled .nav-brand {
  font-size: 1.1rem;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--warm-dark); }
.nav-links a.active { color: var(--warm-dark); }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--warm-dark);
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 48px;
  overflow: hidden;
}
.hero-content {
  max-width: var(--container);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: left;
  background: linear-gradient(135deg, var(--warm-dark), var(--warm-mid), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  width: 100%;
  align-items: center;
}
.hero-split-left { display: flex; flex-direction: column; gap: 24px; }
.hero-split-right { display: flex; flex-direction: column; align-items: center; padding-top: 80px; gap: 48px; position: relative; }
.hero-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  font-weight: 600;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--warm-mid);
  font-weight: 400;
  line-height: 1.7;
  max-width: 640px;
}
.hero-stats {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat .value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--warm-dark);
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 0.6875rem;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  font-family: var(--font-body);
}
.btn--primary {
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius);
}
.btn--primary:hover { opacity: 0.85; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
}
.btn--outline:hover { border-color: var(--coral); }

/* --- Pill Nav CTA --- */
.pill-nav-cta {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border-radius: 999px;
  padding: 0;
  gap: 8px;
}
.pill-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-mid);
  cursor: pointer;
  font-family: var(--font-body);
  z-index: 1;
}
.pill-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: var(--coral);
  display: block;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.pill-label-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
  overflow: hidden;
  padding: 4px 0;
}
.pill-label {
  position: relative;
  display: inline-block;
  z-index: 2;
  will-change: transform;
}
.pill-label-hover {
  position: absolute;
  left: 0;
  top: 4px;
  z-index: 3;
  display: inline-block;
  width: 100%;
  text-align: center;
  color: var(--white);
  will-change: transform, opacity;
}

@media (max-width: 600px) {
  .pill-nav-cta {
    padding: 4px;
    gap: 3px;
  }
  .pill-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.6rem;
  }
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  font-size: 0.75rem; font-weight: 600;
  text-decoration: none; color: var(--coral);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s var(--ease);
  text-transform: uppercase; letter-spacing: 0.08em;
  background: transparent;
  font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--white); }

/* --- Sections --- */
.section { padding: 96px 0; }
.section--navy { background: #2c2019; color: var(--white); }
.section--light { background: var(--white); color: var(--warm-dark); }

/* Natural organic-blob print pattern for warm-light sections */
.section--printed {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 55% at 12% -5%,  rgba(212, 165, 116, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 22%,  rgba(200, 113, 94, 0.18)  0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 22% 78%,  rgba(168, 139, 250, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 95%,  rgba(212, 165, 116, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 38% 32% at 48% 50%,  rgba(252, 242, 226, 0.55) 0%, transparent 70%),
    var(--cream);
}
.section--printed > .container { position: relative; z-index: 1; }
.section--charcoal { background: var(--charcoal); color: var(--white); }

.section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--taupe);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 24px;
}
.section-title--sm {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.section-title--xs {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--taupe);
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 600px;
}

/* section light overrides */
.section--light .section-title { color: var(--warm-dark); }
.section--light .section-subtitle { color: var(--taupe); }

/* dark section overrides */
.section--navy .section-label,
.section--charcoal .section-label { color: var(--beige); }
.section--navy .section-subtitle,
.section--charcoal .section-subtitle { color: rgba(255,255,255,0.6); }
.section--navy .btn-secondary,
.section--charcoal .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.3); }
.section--navy .btn-secondary:hover,
.section--charcoal .btn-secondary:hover { border-color: var(--coral); color: var(--coral); }

/* --- CardSwap Showcase --- */
.showcase-wrapper {
  position: relative;
  width: clamp(300px, 32vw, 640px);
  aspect-ratio: 7 / 5;
  margin-bottom: 40px;
}
.showcase-stack {
  position: relative;
  width: 100%; height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
}
.showcase-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(183, 198, 194, 0.15);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}
.showcase-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.showcase-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23, 30, 25, 0.85) 0%, transparent 50%);
}
.showcase-card-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.showcase-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}
.showcase-card-score {
  font-size: 1.25rem;
}
.showcase-nav {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
  z-index: 10; position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.showcase-dot {
  width: 200px;
  padding: 8px 16px;
  border: 1px solid var(--warm-mid);
  background: transparent;
  color: var(--warm-mid);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  font-family: var(--font-body);
  white-space: nowrap;
  text-align: center;
}
.showcase-dot:hover { border-color: var(--coral); color: var(--coral); }
.showcase-dot.active {
  background: var(--coral); color: var(--white);
  border-color: var(--coral);
}

/* --- Featured Asymmetric Section --- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.featured-image {
  position: relative;
}
.featured-image img {
  width: 100%;
  filter: grayscale(1);
  border-radius: var(--radius);
  position: relative; z-index: 2;
}
.featured-image::before {
  content: '';
  position: absolute;
  width: 80%; height: 80%;
  background: rgba(213, 244, 249, 0.2);
  top: -48px; left: -48px;
  z-index: 1;
}
.featured-text .section-label { color: var(--coral); }
.featured-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 24px;
}
.featured-text p {
  color: var(--taupe);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}
.featured-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--coral);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: gap 0.3s var(--ease);
}
.featured-link:hover { gap: 16px; }
.featured-link svg { width: 16px; height: 16px; }

/* --- Capabilities --- */
.capabilities {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 80px;
}
.capabilities-list { list-style: none; }
.capabilities-list li {
  position: relative;
  padding: 16px 0 16px 56px;
  font-size: 0.9375rem;
  color: var(--warm-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}
.capabilities-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 40px; height: 1px;
  background: var(--coral);
  transition: width 0.4s var(--ease);
}
.capabilities-list li:hover { padding-left: 80px; }
.capabilities-list li:hover::before { width: 64px; }
.capabilities-big {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--warm-dark);
  max-width: 560px;
}
.capabilities-big em {
  font-style: normal;
  color: var(--taupe);
  font-weight: 600;
}
.capabilities-big .dim {
  font-weight: 600;
}
.capabilities-big .dim--tasks { color: #2a9d8f; }
.capabilities-big .dim--skills { color: #e76f51; }
.capabilities-big .dim--models { color: #457b9d; }

/* --- Testimonial / Quote --- */
.testimonial {
  position: relative;
  text-align: center;
  padding: 120px 48px;
  overflow: hidden;
}
.testimonial-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30rem;
  color: var(--warm-dark);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 2;
}
.testimonial-bio {
  display: flex; align-items: center; gap: 16px;
  justify-content: center;
  position: relative; z-index: 2;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--warm-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { color: var(--taupe); font-size: 0.75rem; }

/* --- How It Works Cards --- */
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 32px; text-align: left;
  transition: border-color 0.3s var(--ease);
}
.how-card:hover { border-color: var(--coral); }
.how-card .icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.how-card h3 {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.how-card p { font-size: 0.875rem; color: var(--taupe); font-weight: 300; line-height: 1.7; }

/* --- Skills Catalog --- */
.skills-catalog { display: flex; flex-direction: column; gap: 56px; }

.skill-task-group { display: flex; flex-direction: column; gap: 20px; }
.skill-task-header {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 30, 25, 0.1);
}
.skill-task-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.skill-task-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--warm-dark);
  text-transform: uppercase;
}
.skill-task-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--taupe);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  background: var(--white);
  border: 1px solid rgba(23, 30, 25, 0.08);
  border-radius: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.skill-card:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(23, 30, 25, 0.18);
}
.skill-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.skill-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.skill-card:hover .skill-card-cta,
.skill-card:focus-visible .skill-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Skill detail modal --- */
.skill-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.skill-modal[hidden] { display: none; }
.skill-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 30, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.skill-modal-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: min(85vh, 900px);
  background: var(--white);
  border: 1px solid rgba(23, 30, 25, 0.08);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.skill-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.75rem; line-height: 1;
  color: var(--taupe);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.skill-modal-close:hover { background: rgba(23, 30, 25, 0.06); color: var(--warm-dark); }
.skill-modal-header {
  padding: 32px 56px 20px 32px;
  border-bottom: 1px solid rgba(23, 30, 25, 0.08);
}
.skill-modal-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.skill-modal-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.skill-modal-task { flex: 1; }
.skill-modal-score {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--warm-dark);
}
.skill-modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--warm-dark);
  letter-spacing: -0.01em;
}
.skill-modal-body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--warm-dark);
}
.skill-modal-loading {
  text-align: center;
  color: var(--taupe);
  padding: 48px 0;
}

/* --- Markdown body (scoped to skill modal to override older .markdown-body rules) --- */
.skill-modal .markdown-body h1,
.skill-modal .markdown-body h2,
.skill-modal .markdown-body h3,
.skill-modal .markdown-body h4 {
  font-family: var(--font-display);
  color: var(--warm-dark);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 28px;
  margin-bottom: 12px;
}
.skill-modal .markdown-body h1:first-child,
.skill-modal .markdown-body h2:first-child { margin-top: 0; }
.skill-modal .markdown-body h1 { font-size: 1.5rem; }
.skill-modal .markdown-body h2 { font-size: 1.25rem; }
.skill-modal .markdown-body h3 { font-size: 1.0625rem; }
.skill-modal .markdown-body h4 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.skill-modal .markdown-body p { margin: 0 0 12px; font-size: 0.9375rem; }
.skill-modal .markdown-body ul,
.skill-modal .markdown-body ol { padding-left: 24px; margin: 0 0 16px; }
.skill-modal .markdown-body li { margin-bottom: 4px; }
.skill-modal .markdown-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.skill-modal .markdown-body strong { font-weight: 600; color: var(--warm-dark); }
.skill-modal .markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(23, 30, 25, 0.06);
  color: var(--warm-dark);
  padding: 2px 6px;
  border-radius: 3px;
}
.skill-modal .markdown-body pre {
  background: #1c1410;
  color: #f4ece2;
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.skill-modal .markdown-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}
.skill-modal .markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0 0 16px;
}
.skill-modal .markdown-body th,
.skill-modal .markdown-body td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(23, 30, 25, 0.08);
  text-align: left;
  vertical-align: top;
}
.skill-modal .markdown-body th {
  font-weight: 600;
  color: var(--warm-dark);
  background: rgba(23, 30, 25, 0.03);
}
.skill-modal .markdown-body blockquote {
  border-left: 3px solid var(--coral);
  padding: 4px 16px;
  margin: 0 0 16px;
  color: var(--taupe);
  font-style: italic;
}
.skill-modal .markdown-body hr {
  border: 0;
  border-top: 1px solid rgba(23, 30, 25, 0.1);
  margin: 24px 0;
}

@media (max-width: 600px) {
  .skill-modal-header { padding: 24px 48px 16px 24px; }
  .skill-modal-body { padding: 20px 24px 24px; }
  .skill-modal-title { font-size: 1.375rem; }
}
.skill-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skill-task-tag { flex: 1; }
.skill-score {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.skill-score-high { color: var(--success); }
.skill-score-mid  { color: var(--warning); }
.skill-score-low  { color: var(--danger); }

.skill-card-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--warm-dark);
  letter-spacing: -0.005em;
  word-break: break-word;
}
.skill-card-desc {
  font-size: 0.875rem;
  color: var(--taupe);
  font-weight: 300;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .skill-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .skill-card-grid { grid-template-columns: 1fr; }
  .skills-catalog { gap: 40px; }
}

/* --- Footer --- */
.footer {
  background: var(--warm-dark);
  color: var(--white);
  padding: 96px 0 48px;
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  text-transform: uppercase;
  line-height: 0.85;
}
.footer-cta a {
  color: var(--coral);
  font-size: clamp(0.95rem, 0.7vw + 0.55rem, 1.25rem);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-cta a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: clamp(0.875rem, 0.6vw + 0.55rem, 1.0625rem);
  color: var(--taupe);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--taupe);
  text-decoration: none;
  font-size: clamp(0.875rem, 0.6vw + 0.55rem, 1.0625rem);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--coral); }

/* --- Leaderboard Table --- */
.table-controls { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.table-controls .toggle {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s var(--ease); color: var(--taupe);
  font-family: var(--font-body);
}
.table-controls .toggle.active {
  background: var(--coral); color: var(--warm-dark); border-color: var(--coral);
}

/* --- About page --- */
.about-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
}
.about-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.about-h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--warm-dark);
  margin: 36px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-left: 18px;
}
.about-h2::before {
  content: ""; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}
.about-body p { margin: 0 0 14px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.about-list li:last-child { margin-bottom: 0; }
.about-list li::before {
  content: ""; position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 1px;
  background: var(--coral);
}
.about-list strong { color: var(--coral); font-weight: 700; }

/* --- Showcase hero header — inline minimal --- */
.showcase-hero {
  margin: 0 0 24px;
}
.showcase-hero-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.showcase-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--warm-dark);
  position: relative;
  padding-right: 22px;
  flex-shrink: 0;
}
.showcase-title::after {
  content: ""; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px;
  background: var(--border);
}
.showcase-subtitle {
  margin: 0;
  font-size: 0.92rem; line-height: 1.55;
  color: var(--text-secondary);
  flex: 1; min-width: 280px;
}

/* Filter bar — back to left-aligned, more compact for inline header */
.filter-bar {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 32px;
  padding: 6px;
  background: rgba(232, 222, 210, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}

.filter-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--coral);
  background: rgba(255, 255, 255, 0.55);
}
.filter-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(45, 37, 32, 0.04),
              0 6px 14px -8px rgba(45, 37, 32, 0.18);
  border-color: rgba(200, 113, 94, 0.18);
}
.filter-tab.active .filter-icon { color: var(--coral); }
.filter-tab.active .filter-count {
  background: var(--coral); color: #fff;
}
.filter-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}
.filter-tab:hover .filter-icon { color: var(--coral); }
.filter-label { letter-spacing: 0.005em; }
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; padding: 2px 8px;
  border-radius: 10px;
  background: rgba(139, 126, 116, 0.14);
  color: var(--text-muted);
  font-size: 0.7rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  margin-left: 2px;
}

@media (max-width: 700px) {
  .filter-bar { gap: 4px; padding: 5px; }
  .filter-tab { padding: 8px 10px; font-size: 0.76rem; }
  .filter-label { display: none; }
  .filter-tab:first-child .filter-label { display: inline; }
}

.leaderboard-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  color: var(--warm-dark);
}
.leaderboard-table th {
  font-size: 0.6875rem; font-weight: 600; color: var(--taupe);
  text-transform: uppercase; letter-spacing: 0.05em;
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
  white-space: nowrap;
}
.leaderboard-table th:hover { color: var(--coral); }
.leaderboard-table th .sort-arrow { font-size: 0.625rem; margin-left: 2px; }
.leaderboard-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem; vertical-align: middle;
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr:hover td { background: var(--surface-hover); }

.model-cell { display: flex; align-items: center; gap: 10px; }
.model-name { font-weight: 600; white-space: nowrap; }
.agent-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 10px; font-size: 0.6875rem; font-weight: 600;
  background: var(--primary-light); color: var(--coral);
  white-space: nowrap;
}
.agent-badge.claude { background: rgba(109, 40, 217, 0.10); color: #6d28d9; }
.agent-badge.codex  { background: rgba(4, 120, 87, 0.10);  color: #047857; }
.agent-badge.gemini { background: rgba(37, 99, 235, 0.10); color: #2563eb; }
.agent-badge.kimi   { background: rgba(220, 38, 38, 0.10); color: #dc2626; }

.score-cell { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-cell.high { color: var(--success); }
.score-cell.mid { color: var(--warning); }
.score-cell.low { color: var(--danger); }
.score-cell.na { color: var(--text-muted); font-weight: 400; }

.bar-cell { width: 160px; }
.bar-container {
  height: 20px; background: var(--border-light); border-radius: 3px;
  overflow: hidden; position: relative;
}
.bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.4s ease;
}

/* --- Skill Table --- */
.skill-table { width: 100%; border-collapse: collapse; }
.skill-table th {
  font-size: 0.6875rem; font-weight: 600; color: var(--taupe);
  text-transform: uppercase; letter-spacing: 0.05em;
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.skill-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.skill-name { font-weight: 600; font-family: var(--font-body); color: var(--text); }
.model-name { font-family: var(--font-body); color: var(--text); }
.baseline-badge {
  display: inline-block; padding: 1px 6px; border-radius: 8px;
  font-size: 0.6875rem; background: var(--warning-light); color: #fbbf24;
  margin-left: 6px; font-weight: 600;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: box-shadow 0.2s;
  text-decoration: none; color: var(--text);
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%; height: 180px; object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.gallery-item .gallery-info { padding: 12px; }
.gallery-item .gallery-model { font-size: 0.8125rem; font-weight: 600; }
.gallery-item .gallery-score { font-size: 0.8125rem; color: var(--taupe); }
.gallery-variants { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.variant-tag {
  display: inline-block; padding: 1px 7px;
  border-radius: 8px; font-size: 0.6875rem; font-weight: 500;
  background: var(--primary-light); color: var(--coral);
  white-space: nowrap;
}

/* --- Sample Gallery --- */
.sample-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.resample-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  color: var(--warm-mid); cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-body);
}
.resample-btn:hover { border-color: var(--coral); color: var(--coral); }
.resample-btn svg { width: 14px; height: 14px; }

.sample-gallery {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sample-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  animation: cardFadeIn 0.4s var(--ease) forwards;
}
/* Filter clicked: stop running staggered fade-in to avoid blank lag */
.sample-gallery.no-stagger .sample-card { animation: none !important; opacity: 1 !important; transform: none !important; }
.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral);
}
.sample-card .card-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
  background: var(--fafafa);
}
.sample-card .card-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 2.5rem; opacity: 0.4;
}
.sample-card .card-body {
  padding: 12px 14px;
}
.sample-card .card-title {
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sample-card .card-tags {
  display: flex; flex-direction: column; gap: 6px;
}
.sample-card .card-variants,
.sample-card .card-models {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.model-tag {
  display: inline-block; padding: 2px 8px; border-radius: 8px;
  font-size: 0.6875rem; font-weight: 500;
  background: rgba(91,141,184,0.12); color: #5B8DB8;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Case Detail --- */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin: 16px 0 12px;
  border-radius: 20px; font-size: 0.8125rem; font-weight: 500;
  color: var(--warm-mid); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.15s;
  position: relative; z-index: 2;
}
.back-btn:hover { color: var(--coral); border-color: var(--coral); }
.back-btn svg { width: 14px; height: 14px; }
.page-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.case-brief {
  color: var(--taupe); font-size: 0.9375rem;
  margin-bottom: 32px; max-width: 800px;
  font-weight: 300;
}

/* --- Task Details / Output Preview — premium card --- */
.task-details,
.output-preview-card {
  margin-bottom: 28px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(45, 37, 32, 0.02), 0 8px 24px -16px rgba(45, 37, 32, 0.08);
  overflow: hidden;
}
.output-preview-card { margin-top: 28px; }
.output-preview-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fbf8f3, var(--surface));
}
.output-preview-icon {
  width: 18px; height: 18px; color: var(--coral); flex-shrink: 0;
}
.output-preview-title {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
  margin: 0; letter-spacing: 0.01em;
}
.output-preview-body { padding: 20px; }
.output-preview-body .picker-wrapper { margin-top: 0; }
.task-details-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fbf8f3, var(--surface));
}
.task-details-icon {
  width: 18px; height: 18px; color: var(--coral); flex-shrink: 0;
}
.task-details-title {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
  margin: 0; letter-spacing: 0.01em;
}
.task-details-body {
  padding: 20px; font-size: 0.875rem; line-height: 1.65;
  color: var(--text-secondary);
}

/* Instruction block — always-visible markdown card */
.instruction-block {
  margin-bottom: 24px;
}
.instruction-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 12px;
}
.instruction-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(200, 113, 94, 0.18);
}
.instruction-rendered {
  padding: 22px 26px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  max-height: 520px; overflow-y: auto;
  font-size: 0.9rem; line-height: 1.75;
  color: var(--text);
}
.instruction-rendered::-webkit-scrollbar { width: 6px; }
.instruction-rendered::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 3px; }
.instruction-rendered .loading { color: var(--taupe); font-style: italic; padding: 0; text-align: left; margin: 0; }
.loading-error { color: var(--coral); font-size: 0.8rem; }

/* Aux-files block — reference materials */
.aux-files-block { margin-top: 4px; }
.aux-files-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}

/* Markdown body — refined typography */
.markdown-body { font-family: var(--font-sans, inherit); }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  margin: 18px 0 8px; color: var(--text); font-weight: 600; line-height: 1.3;
}
.markdown-body > *:first-child { margin-top: 0; }
.markdown-body h1 { font-size: 1.25rem; }
.markdown-body h2 { font-size: 1.0625rem; }
.markdown-body h3 { font-size: 0.95rem; }
.markdown-body h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--coral); }
.markdown-body p { margin: 0 0 12px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 12px; padding-left: 22px; }
.markdown-body li { margin-bottom: 4px; }
.markdown-body li::marker { color: var(--coral); }
.markdown-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body strong { color: var(--warm-dark); font-weight: 600; }
.markdown-body code {
  background: rgba(200, 113, 94, 0.08); color: var(--coral);
  padding: 1.5px 6px; border-radius: 4px; font-size: 0.85em;
  font-family: var(--font-mono); border: 1px solid rgba(200, 113, 94, 0.12);
}
.markdown-body pre {
  background: var(--warm-dark); color: #f0daa5;
  padding: 14px 16px; border-radius: 8px; overflow-x: auto; margin: 0 0 14px;
  font-size: 0.78rem; line-height: 1.55;
}
.markdown-body pre code {
  background: none; padding: 0; border: 0; color: inherit;
}
.markdown-body blockquote {
  margin: 0 0 12px; padding: 8px 16px;
  border-left: 3px solid var(--beige); color: var(--text-muted);
  background: var(--cream); border-radius: 0 6px 6px 0;
}
.markdown-body hr {
  border: 0; border-top: 1px dashed var(--border); margin: 18px 0;
}
.markdown-body table {
  border-collapse: collapse; margin: 0 0 14px; font-size: 0.82rem;
  width: 100%;
}
.markdown-body th, .markdown-body td {
  border: 1px solid var(--border); padding: 6px 10px;
}
.markdown-body th { background: var(--surface-hover); font-weight: 600; }
.markdown-body img {
  max-width: 100%; border-radius: 6px; margin: 8px 0;
}

/* Reference-material tab strip */
.input-files-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.input-files-header .input-files-tabs { margin-bottom: 0; }
.md-toggle-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text-secondary); font-size: 0.7rem;
  cursor: pointer; transition: all 0.15s; margin-left: auto;
}
.md-toggle-btn:hover { border-color: var(--coral); color: var(--coral); }
.md-toggle-btn.active { background: var(--coral); color: #fff; border-color: var(--coral); }

.task-files-heading {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  margin: 20px 0 10px; text-transform: uppercase; letter-spacing: 0.12em;
}
.input-files-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.input-file-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text-secondary);
  font-size: 0.78rem; font-family: var(--font-sans, inherit); font-weight: 500;
  cursor: pointer; transition: all 0.18s;
  position: relative;
}
.input-file-tab:hover {
  border-color: var(--coral); color: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(200, 113, 94, 0.4);
}
.input-file-tab.active {
  background: var(--warm-dark); color: #fff; border-color: var(--warm-dark);
  box-shadow: 0 4px 12px -6px rgba(45, 37, 32, 0.5);
}
.input-file-tab.active .file-ext { background: var(--coral); color: #fff; }
.input-file-tab .file-name { font-family: var(--font-mono); font-size: 0.76rem; }
.file-ext {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; padding: 2px 6px;
  border-radius: 4px; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-mono);
  background: var(--border-light); color: var(--text-secondary);
  transition: all 0.15s;
}
.file-ext--json { background: #fbf2c4; color: #8a6914; }
.file-ext--md   { background: #dae0b8; color: #5a6b2f; }
.file-ext--csv  { background: #e5c185; color: #7a5615; }
.file-ext--txt  { background: var(--border-light); color: var(--text-secondary); }

.input-file-body {
  display: none; padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  overflow: visible;
  font-size: 0.78rem; line-height: 1.7;
}
.input-file-body > .md-rendered {
  padding: 22px 26px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  max-height: 520px; overflow-y: auto;
  font-size: 0.9rem; line-height: 1.75;
  color: var(--text);
}
.input-file-body > .md-rendered::-webkit-scrollbar { width: 6px; }
.input-file-body > .md-rendered::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 3px; }
.input-file-body > .md-source,
.input-file-body > .code-block {
  margin: 0;
}
.file-loading {
  padding: 24px; text-align: center; color: var(--text-muted);
  font-style: italic; font-size: 0.85rem;
  background: var(--cream); border-radius: 10px;
}
.file-loading--error { color: var(--coral); font-style: normal; }

/* Code block — for raw text / fallback */
.code-block {
  background: var(--warm-dark); color: #f0daa5;
  padding: 16px 18px; border-radius: 10px;
  white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6;
  max-height: 460px; overflow-y: auto;
  margin: 0;
}
.code-block::-webkit-scrollbar { width: 8px; height: 8px; }
.code-block::-webkit-scrollbar-thumb { background: rgba(240, 218, 165, 0.25); border-radius: 4px; }

/* JSON Viewer — gutter + syntax highlighting */
.json-viewer {
  border-radius: 10px;
  background: #1f1812;
  border: 1px solid #2a2118;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.5);
}
.json-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: #2a2118;
  border-bottom: 1px solid rgba(240, 218, 165, 0.08);
}
.json-toolbar-label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #e5c185;
}
.json-copy-btn {
  padding: 4px 10px; font-size: 0.7rem; font-family: var(--font-mono);
  background: transparent; color: #f0daa5;
  border: 1px solid rgba(240, 218, 165, 0.25); border-radius: 4px;
  cursor: pointer; transition: all 0.15s;
}
.json-copy-btn:hover { background: rgba(240, 218, 165, 0.1); border-color: rgba(240, 218, 165, 0.5); }
.json-body {
  display: flex;
  max-height: 460px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.65;
}
.json-body::-webkit-scrollbar { width: 8px; height: 8px; }
.json-body::-webkit-scrollbar-thumb { background: rgba(240, 218, 165, 0.2); border-radius: 4px; }
.json-gutter {
  flex-shrink: 0;
  padding: 14px 12px 14px 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 218, 165, 0.3);
  white-space: pre;
  user-select: none;
  border-right: 1px solid rgba(240, 218, 165, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.json-code {
  flex: 1;
  margin: 0; padding: 14px 16px;
  color: #f0daa5;
  background: transparent;
  white-space: pre;
  overflow-x: auto;
}
.json-key   { color: #f0daa5; font-weight: 500; }
.json-str   { color: #dae0b8; }
.json-num   { color: #e5c185; }
.json-bool  { color: #cb6036; font-weight: 600; }
.json-null  { color: #8B7E74; font-style: italic; }

/* CSV table — polished editorial look */
.csv-table-wrap {
  overflow-x: auto; overflow-y: auto;
  max-height: 460px;
  border: 1px solid var(--border-light); border-radius: 10px;
  background: var(--surface);
}
.csv-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.csv-table-wrap::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 4px; }
.csv-table {
  border-collapse: separate; border-spacing: 0;
  font-size: 0.78rem; font-family: var(--font-mono);
  white-space: nowrap; width: 100%;
}
.csv-table th {
  background: var(--warm-dark); color: #f0daa5; padding: 10px 14px;
  text-align: left; font-weight: 600; position: sticky; top: 0; z-index: 1;
  font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  font-family: var(--font-sans, inherit);
  border-bottom: 1px solid rgba(240, 218, 165, 0.15);
}
.csv-table td {
  padding: 8px 14px; border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.csv-table tbody tr:nth-child(even) td { background: rgba(232, 222, 210, 0.18); }
.csv-table tbody tr:hover td { background: rgba(200, 113, 94, 0.08); }
.csv-table td:first-child, .csv-table th:first-child { padding-left: 18px; }
.task-images {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.task-image-item { text-align: center; }
.task-image-item img {
  height: 120px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; object-fit: cover;
}
.task-image-item .task-image-label {
  display: block; font-size: 0.6875rem; color: var(--taupe); margin-top: 4px;
}
.task-file-list { display: flex; gap: 8px; flex-wrap: wrap; }
.task-file-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--coral);
  font-size: 0.8125rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: all 0.15s;
}
.task-file-link:hover { border-color: var(--coral); }

/* Ref doc collapsible */
.ref-doc {
  margin-bottom: 8px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.ref-doc-toggle {
  padding: 8px 12px; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.ref-doc-toggle::after {
  content: "\25B6"; font-size: 0.5625rem; color: var(--taupe);
  margin-left: auto; transition: transform 0.2s;
}
.ref-doc[open] .ref-doc-toggle::after { transform: rotate(90deg); }
.ref-doc-toggle:hover { color: var(--coral); }
.ref-doc-content {
  max-height: 360px; overflow: auto; margin: 0;
  padding: 12px 14px; border-top: 1px solid var(--border-light);
  background: var(--bg); font-size: 0.75rem; line-height: 1.6;
  font-family: var(--font-mono); white-space: pre-wrap; word-break: break-word;
  color: var(--coral);
}
.ref-doc-content code { background: none; padding: 0; font-size: inherit; }

/* --- Thumb Grid (image tasks) --- */
.thumb-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.thumb-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.thumb-card:hover { box-shadow: var(--shadow-md); border-color: var(--coral); }
.thumb-img-wrap {
  width: 100%; height: 200px; overflow: hidden;
  background: var(--surface-hover);
}
.thumb-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  cursor: pointer; display: block;
}
.thumb-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
}
.thumb-model { font-size: 0.8125rem; font-weight: 600; }

/* --- Variant Tabs --- */
.variant-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.variant-tab {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.15s; text-align: left;
  position: relative;
}
.variant-tab:hover { border-color: var(--coral); }
.variant-tab.active {
  border-color: var(--coral); background: var(--primary-light);
}
.variant-tab-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.variant-tab.active .variant-tab-name { color: var(--coral); }
.variant-tab-meta { font-size: 0.75rem; color: var(--taupe); }

/* --- Carousel --- */
.carousel-wrapper { position: relative; }
.carousel-track {
  display: flex; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.carousel-slide {
  min-width: 100%; transition: transform 0.4s ease;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; font-size: 1.125rem; color: var(--text);
  transition: background 0.15s;
}
.carousel-btn:hover { background: var(--surface-hover); }
.carousel-btn.prev { left: -16px; }
.carousel-btn.next { right: -16px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel-dot.active { background: var(--coral); transform: scale(1.25); }
.carousel-counter {
  text-align: center; margin-top: 8px;
  font-size: 0.8125rem; color: var(--taupe);
}

.comparison-item {
  background: var(--surface); overflow: hidden;
}
.comparison-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.comparison-header .model-name { font-size: 0.875rem; font-weight: 600; }
.comparison-header .score {
  font-weight: 700; font-size: 0.875rem;
  padding: 2px 10px; border-radius: 10px;
}
.comparison-header .score.high { background: var(--success-light); color: var(--success); }
.comparison-header .score.mid { background: var(--warning-light); color: var(--warning); }
.comparison-header .score.low { background: var(--danger-light); color: var(--danger); }
.comparison-body img {
  width: 100%; display: block; cursor: pointer;
}
.comparison-body iframe {
  width: 100%; height: 500px; border: none;
}

/* --- Dual Panel Comparison --- */
.comparison-panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 768px) {
  .comparison-panels { grid-template-columns: 1fr; }
}
.comparison-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.panel-selectors {
  display: flex; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.panel-selectors select {
  flex: 1; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.8125rem; color: var(--text);
  font-family: var(--font-body); cursor: pointer;
}
.panel-selectors select:focus { border-color: var(--coral); outline: none; }
.panel-output {
  min-height: 300px; max-height: 75vh; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
  background: var(--surface-hover);
}
.panel-output img {
  width: 100%; display: block; cursor: pointer;
}
.panel-output iframe:not(.web-frame) {
  width: 100%; aspect-ratio: 4/3; border: none;
  min-height: 75vh;
}

/* Web-design preview — render at desktop 1440×900 and scale to fit */
.panel-output:has(.web-frame-shell) {
  min-height: auto; max-height: none; overflow: visible;
  display: block; background: var(--surface-hover);
  padding: 0;
}
.web-frame-shell {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(45, 37, 32, 0.3);
}
.web-frame-chrome {
  height: 32px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  background: linear-gradient(180deg, #ebe3d6, #ddd2bf);
  border-bottom: 1px solid var(--border);
}
.web-frame-chrome span {
  display: inline-block; width: 11px; height: 11px;
  border-radius: 50%;
}
.web-frame-chrome span:nth-child(1) { background: #e07a6a; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.1); }
.web-frame-chrome span:nth-child(2) { background: #e5c185; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.1); }
.web-frame-chrome span:nth-child(3) { background: #8aa454; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.1); }
.web-frame-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.panel-output .web-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: none;
  display: block;
}
.panel-output .no-artifact {
  padding: 48px 24px; text-align: center; color: var(--taupe); font-size: 0.875rem;
}
.panel-meta {
  display: flex; flex-wrap: wrap; gap: 28px 36px; padding: 18px 22px;
  border-top: 1px solid var(--border-light); font-size: 0.8125rem;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(232, 222, 210, 0.18));
}
.panel-meta .meta-item {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
  position: relative;
}
.panel-meta .meta-item:not(:first-child):not(.meta-item--traj):not(.meta-item--tokens)::before,
.panel-meta .meta-item--tokens::before {
  content: ""; position: absolute; left: -18px; top: 50%;
  width: 1px; height: 28px; background: var(--border-light);
  transform: translateY(-50%);
}
.panel-meta .meta-item--traj { margin-left: auto; flex-direction: row; align-items: center; gap: 4px; }
.panel-meta .meta-label {
  color: var(--text-muted); font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.panel-meta .meta-value {
  font-weight: 600; color: var(--text); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.panel-meta .meta-score { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.panel-meta .meta-score-denom { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }
.panel-meta .meta-value.high { color: #5a6b2f; }
.panel-meta .meta-value.mid { color: #cb6036; }
.panel-meta .meta-value.low { color: var(--coral); }

/* Tokens cluster — three sub-pills inside one meta-item */
.panel-meta .meta-tokens {
  display: inline-flex; align-items: baseline; gap: 12px;
}
.tok-part {
  display: inline-flex; align-items: baseline; gap: 4px;
}
.tok-num {
  font-weight: 700; color: var(--text); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.tok-tag {
  font-size: 0.66rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Evaluation breakdown panel */
.eval-panel {
  margin: 0; padding: 18px 18px 18px;
  border-top: 1px solid var(--border-light);
  background: #fcfaf6;
}
.eval-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.eval-panel-title {
  font-size: 0.7rem; font-weight: 700; color: var(--coral);
  text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; padding-left: 14px;
}
.eval-panel-title::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(200, 113, 94, 0.18);
}
.eval-judge {
  font-size: 0.7rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

.eval-rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.eval-dim {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.18s;
}
.eval-dim--clickable { cursor: pointer; }
.eval-dim--clickable:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(200, 113, 94, 0.3);
}
.eval-dim.active {
  border-color: var(--coral);
  background: #fbf2c4;
  box-shadow: 0 4px 12px -6px rgba(200, 113, 94, 0.4);
}
.eval-dim-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
.eval-dim-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  letter-spacing: 0.01em;
}
.eval-dim-score {
  font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.eval-dim-score.high { color: #5a6b2f; }
.eval-dim-score.mid { color: #cb6036; }
.eval-dim-score.low { color: var(--coral); }
.eval-dim-bar {
  height: 4px; background: var(--border-light);
  border-radius: 2px; overflow: hidden;
}
.eval-dim-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.4s ease;
}
.eval-dim-bar-fill.high { background: linear-gradient(90deg, #dae0b8, #b8cdab); }
.eval-dim-bar-fill.mid { background: linear-gradient(90deg, #f0daa5, #e5c185); }
.eval-dim-bar-fill.low { background: linear-gradient(90deg, #d68a58, var(--coral)); }
.eval-dim-extra {
  margin-top: 8px; font-size: 0.72rem; color: var(--text-muted);
}
.eval-dim-extra strong { color: var(--text); }

.eval-detail {
  margin-top: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  animation: evalDetailFadeIn 0.25s ease;
}
@keyframes evalDetailFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.eval-detail-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}
.eval-detail-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.eval-detail-score {
  font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.eval-detail-score.high { color: #5a6b2f; }
.eval-detail-score.mid { color: #cb6036; }
.eval-detail-score.low { color: var(--coral); }
.eval-detail-reason {
  margin: 0; font-size: 0.82rem; line-height: 1.7;
  color: var(--text-secondary);
}

.eval-perslide {
  display: grid; gap: 10px; margin-top: 12px;
}
.eval-perslide-item {
  padding: 10px 14px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.eval-perslide-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.eval-perslide-idx {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.eval-perslide-score {
  font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.eval-perslide-score.high { color: #5a6b2f; }
.eval-perslide-score.mid { color: #cb6036; }
.eval-perslide-score.low { color: var(--coral); }
.eval-perslide-reason {
  margin: 0; font-size: 0.78rem; line-height: 1.65;
  color: var(--text-secondary);
}

.eval-empty {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; margin: 0;
  border-top: 1px solid var(--border-light);
  background: rgba(232, 222, 210, 0.25);
  font-size: 0.78rem; color: var(--text-muted);
  font-style: italic;
}
.eval-empty svg { flex-shrink: 0; color: var(--taupe); }

/* Sub-rubric block (mobile/tablet) */
.eval-sub-block {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.eval-sub-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.eval-sub-label {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.eval-sub-score {
  font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.eval-sub-score.high { color: #5a6b2f; }
.eval-sub-score.mid { color: #cb6036; }
.eval-sub-score.low { color: var(--coral); }
.eval-sub-reason {
  margin: 0; font-size: 0.78rem; line-height: 1.65;
  color: var(--text-secondary);
}

/* Pass/fail checks list (navigation, interactions, data_display) */
.eval-checks {
  display: grid; gap: 8px; margin-top: 12px;
}
.eval-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  border-left: 3px solid var(--border);
}
.eval-check--pass { border-left-color: #8aa454; }
.eval-check--fail { border-left-color: var(--coral); background: rgba(200, 113, 94, 0.04); }
.eval-check--partial { border-left-color: #e5c185; }
.eval-check-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  background: var(--border-light); color: var(--text-secondary);
  margin-top: 1px;
}
.eval-check--pass .eval-check-icon { background: #b8cdab; color: #3a4d1f; }
.eval-check--fail .eval-check-icon { background: var(--coral); color: #fff; }
.eval-check--partial .eval-check-icon { background: #f0daa5; color: #7a5615; }
.eval-check-body { flex: 1; min-width: 0; }
.eval-check-title {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  font-family: var(--font-mono);
}
.eval-check-sub {
  margin-top: 2px; font-size: 0.74rem;
  color: var(--text-muted);
}
.eval-check-missing {
  margin-top: 4px; font-size: 0.74rem;
  color: var(--coral); font-weight: 500;
}
.eval-check-sub--muted {
  color: var(--text-muted); font-size: 0.72rem; margin-top: 2px;
}
.eval-check-title--claim {
  font-family: inherit; font-weight: 500;
  white-space: normal; line-height: 1.5;
}
.eval-check-num {
  display: inline-block;
  padding: 1px 7px; border-radius: 4px;
  background: var(--surface-hover);
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  color: var(--text);
}
.eval-check-num--expected { color: var(--text-secondary); }
.eval-check-arrow {
  font-size: 0.7rem; color: var(--text-muted);
  margin: 0 2px;
}
.eval-check-tag {
  display: inline-block; margin-left: 4px;
  padding: 1px 6px; border-radius: 4px;
  background: var(--border-light); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0.02em;
}
.eval-check-note {
  margin-top: 6px; font-size: 0.76rem; line-height: 1.55;
  color: var(--text-secondary);
}
.eval-evidence-label {
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-right: 4px;
}

/* Claim lists (data accuracy traceable/untraceable) */
.eval-claims {
  margin-top: 14px;
  padding: 14px 16px 16px;
  background: #fcfaf6;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.eval-claims--pass { border-left: 3px solid #8aa454; }
.eval-claims--fail { border-left: 3px solid var(--coral); background: rgba(200, 113, 94, 0.04); }
.eval-claims-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.eval-claims-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: 9px;
  background: var(--border-light); color: var(--text-secondary);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0;
}
.eval-claims--pass .eval-claims-count { background: #dae0b8; color: #5a6b2f; }
.eval-claims--fail .eval-claims-count { background: rgba(200, 113, 94, 0.18); color: var(--coral); }

.claim-cards {
  display: grid; gap: 8px;
}
.claim-card {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.claim-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.claim-data {
  flex: 1; min-width: 200px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  line-height: 1.45;
}
.claim-meta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.claim-tag {
  display: inline-block; padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.claim-tag--direct { background: #dae0b8; color: #3a4d1f; }
.claim-tag--derived { background: #f0daa5; color: #7a5615; }
.claim-tag--inferred,
.claim-tag--fabricated { background: rgba(200, 113, 94, 0.18); color: var(--coral); }
.claim-steps {
  display: inline-flex; align-items: center; gap: 4px;
}
.claim-steps-label {
  font-size: 0.62rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.claim-step {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px;
  border-radius: 4px;
  background: var(--warm-dark); color: #f0daa5;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
}
.claim-body {
  margin-top: 8px;
  font-size: 0.78rem; line-height: 1.65;
  color: var(--text-secondary);
}
.claim-card:has(.claim-data) .claim-body { padding-top: 0; }
.claim-card:not(:has(.claim-data)) .claim-body { margin-top: 0; }
.claim-more {
  margin-top: 4px;
  font-size: 0.74rem; font-style: italic;
  color: var(--text-muted); text-align: center;
}

/* Trajectory inline button */
.traj-inline-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--warm-dark); color: var(--white);
  border: none; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.traj-inline-btn:hover { background: var(--coral); transform: translateY(-1px); }
.traj-inline-btn svg { flex-shrink: 0; }

/* Preview split layout */
.preview-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  transition: grid-template-columns 0.4s cubic-bezier(.4,0,.2,1);
}
.preview-split.split-active {
  grid-template-columns: 1fr 380px;
  gap: 16px;
}
.preview-split-left {
  min-width: 0;
}
.preview-split.split-active .panel-output {
  max-height: none;
}
.preview-split.split-active .panel-output iframe {
  aspect-ratio: 4/3;
  min-height: 0;
}
.preview-split-right {
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
}
.preview-split-right.hidden { display: none; }

/* Trajectory inline panel */
.traj-inline-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--white);
  position: relative;
}
.traj-inline-close {
  position: absolute; top: 8px; right: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  color: var(--taupe); line-height: 1; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.traj-inline-close:hover { color: var(--warm-dark); border-color: var(--warm-dark); }
.traj-inline-body {
  flex: 1; overflow-y: auto; padding: 12px;
  font-size: 0.75rem;
}

/* Picker — segmented rail (editorial premium) */
.picker-wrapper {
  margin-bottom: 22px;
  display: grid;
  gap: 12px;
}
.picker-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
}
.picker-row-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted);
  text-align: right;
  padding-right: 14px;
  border-right: 1px solid var(--border-light);
  line-height: 1;
}
.picker-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px;
  background: rgba(232, 222, 210, 0.35);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.picker-pill {
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500; line-height: 1.2;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--text-secondary);
  font-family: var(--font-body);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.picker-pill:hover {
  color: var(--coral);
  background: rgba(255, 255, 255, 0.6);
}
.picker-pill.active {
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(200, 113, 94, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.picker-pill.active:hover {
  color: #fff;
  background: var(--coral);
}
.picker-pill.disabled,
.picker-pill:disabled {
  color: rgba(139, 126, 116, 0.4);
  cursor: not-allowed;
  text-decoration: line-through;
  background: transparent;
}
.picker-pill.disabled:hover,
.picker-pill:disabled:hover {
  background: transparent;
  color: rgba(139, 126, 116, 0.4);
}

/* Narrow layout — stack label above pills */
@media (max-width: 720px) {
  .picker-row { grid-template-columns: 1fr; gap: 6px; }
  .picker-row-label {
    text-align: left; padding-right: 0; border-right: 0;
    padding-left: 4px;
  }
}

/* --- Checklist --- */
.checklist-section { margin-top: 16px; }
.checklist-group { margin-bottom: 16px; }
.checklist-group-title {
  font-size: 0.8125rem; font-weight: 600; color: var(--coral);
  text-transform: capitalize; margin-bottom: 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--border-light);
}
.checklist-items { list-style: none; padding: 0; margin: 0; }
.checklist-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0; font-size: 0.8125rem; line-height: 1.5;
  color: var(--warm-mid); border-bottom: 1px solid var(--bg);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-id {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 0.6875rem;
  color: var(--taupe); background: var(--surface-hover);
  padding: 1px 6px; border-radius: 4px;
}

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.stat-card .stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-card .stat-label { font-size: 0.75rem; color: var(--taupe); text-transform: uppercase; }

/* --- Chart Container --- */
.chart-container { width: 100%; height: 400px; margin: 24px 0; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 4px; }
.lightbox.hidden { display: none; }

/* --- Loading --- */
.loading { color: var(--taupe); font-style: italic; padding: 40px 0; text-align: center; }

/* --- Score color util --- */
.score-high { color: var(--success); }
.score-mid { color: var(--warning); }
.score-low { color: var(--danger); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 80px; }
  .hero-split-right { display: flex; flex-direction: column; align-items: center; padding-top: 80px; gap: 32px; }
  .showcase-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .featured { gap: 48px; }
  .capabilities { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .navbar { padding: 0 24px; }
  .hero { padding: 100px 24px 48px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); white-space: normal; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .featured { grid-template-columns: 1fr; }
  .how-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px; gap: 16px;
  }
  .showcase-wrapper { width: 300px; aspect-ratio: 15 / 11; }
  .showcase-nav { max-width: 320px; }
  .showcase-dot { width: 150px; padding: 8px 10px; }
  .leaderboard-table { font-size: 0.8125rem; }
  .leaderboard-table th, .leaderboard-table td { padding: 8px 8px; }
  .bar-cell { display: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-cta h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .section-title { font-size: clamp(2rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stat .value { font-size: 1.25rem; }
  .container { padding: 0 16px; }
}

/* --- Score Charts Grid --- */
.score-charts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px;
}
.score-chart-panel {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 16px; overflow: hidden;
}
.score-chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.score-chart-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.score-chart-select {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500;
  color: var(--text); background: var(--fafafa);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 10px; cursor: pointer; max-width: 200px;
}
.score-chart-select:focus { outline: none; border-color: var(--primary); }
@media (max-width: 768px) {
  .score-charts-grid { grid-template-columns: 1fr; }
}

/* --- Trajectory Viewer --- */
.traj-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(45, 37, 32, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: traj-fadein 0.2s ease;
}
.traj-overlay.hidden { display: none; }
@keyframes traj-fadein { from { opacity: 0; } to { opacity: 1; } }

.traj-modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 900px; height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.traj-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.traj-modal-header-left { display: flex; align-items: center; gap: 12px; }
.traj-modal-header-right { display: flex; align-items: center; gap: 12px; }
.traj-filter-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
  user-select: none;
}
.traj-filter-toggle input { cursor: pointer; }
.traj-modal-title {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--text);
}
.traj-close-btn {
  background: none; border: none; font-size: 1.5rem; color: var(--text-muted);
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.traj-close-btn:hover { background: var(--surface-hover); color: var(--text); }

.traj-modal-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  scroll-behavior: smooth;
}

.traj-header-info { margin-bottom: 20px; }
.traj-agent-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.traj-info-chip {
  background: var(--fafafa); border: 1px solid var(--border-light);
  border-radius: 100px; padding: 4px 12px; font-size: 0.75rem; color: var(--text-secondary);
}

.traj-metrics { display: flex; flex-wrap: wrap; gap: 12px; }
.traj-metric {
  font-size: 0.75rem; color: var(--text-muted);
  background: var(--primary-light); border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.traj-timeline { display: flex; flex-direction: column; gap: 8px; }

.traj-step { display: flex; width: 100%; }

.traj-bubble {
  border-radius: var(--radius); padding: 12px 16px;
  border: 1px solid var(--border-light); width: 100%;
  border-left: 3px solid var(--border);
}
.traj-bubble--user {
  background: var(--primary-light); border-color: rgba(200, 113, 94, 0.2);
  border-left-color: var(--coral);
}
.traj-bubble--agent {
  background: var(--surface); border-color: var(--border);
  border-left-color: var(--charcoal);
}
.traj-bubble--system {
  background: var(--warning-light); border-color: rgba(200, 155, 60, 0.2);
  border-left-color: var(--warning);
}

.traj-bubble-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.traj-source-badge {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; letter-spacing: 0.03em;
}
.traj-source-badge--user { background: var(--coral); color: white; }
.traj-source-badge--agent { background: var(--charcoal); color: white; }
.traj-source-badge--system { background: var(--warning); color: white; }
.traj-timestamp { font-size: 0.6875rem; color: var(--text-muted); }
.traj-step-num { font-size: 0.6875rem; color: var(--taupe); margin-left: auto; }

.traj-message {
  font-size: 0.8125rem; line-height: 1.6; color: var(--text);
  word-break: break-word;
}

.traj-thinking { margin-top: 8px; }
.traj-thinking-toggle {
  font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
  padding: 4px 0; list-style: none;
}
.traj-thinking-toggle::-webkit-details-marker { display: none; }
.traj-thinking-toggle::before { content: "▶ "; font-size: 0.625rem; }
[open] > .traj-thinking-toggle::before { content: "▼ "; }
.traj-thinking-content {
  margin-top: 6px; padding: 8px 12px; border-radius: var(--radius);
  background: rgba(200, 155, 60, 0.06); border-left: 3px solid var(--warning);
  font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5;
  max-height: 200px; overflow-y: auto;
}

.traj-tool-call { margin-top: 8px; }
.traj-tool-details { }
.traj-tool-summary {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; cursor: pointer; padding: 4px 8px;
  background: var(--fafafa); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); list-style: none;
}
.traj-tool-summary::-webkit-details-marker { display: none; }
.traj-tool-icon { font-size: 0.8rem; }
.traj-tool-name { font-family: var(--font-mono); font-weight: 600; color: var(--primary); }
.traj-tool-inline-arg {
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted);
  margin-left: 8px; opacity: 0.7;
}
.traj-tool-args {
  margin-top: 6px; padding: 8px 12px; border-radius: var(--radius);
  background: var(--fafafa); border: 1px solid var(--border-light);
  font-size: 0.6875rem; line-height: 1.5; overflow-x: auto;
  max-height: 200px; overflow-y: auto;
}
.traj-tool-args code { font-family: var(--font-mono); color: var(--text-secondary); }

.traj-obs-details { margin-top: 6px; }
.traj-obs-summary {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; cursor: pointer; padding: 4px 8px;
  background: var(--success-light); border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 158, 111, 0.2); list-style: none;
}
.traj-obs-summary::-webkit-details-marker { display: none; }
.traj-obs-icon { font-size: 0.8rem; }
.traj-obs-content {
  margin-top: 6px; padding: 8px 12px; border-radius: var(--radius);
  background: var(--fafafa); border: 1px solid var(--border-light);
  font-size: 0.6875rem; line-height: 1.5; overflow-x: auto;
  max-height: 200px; overflow-y: auto;
}
.traj-obs-content code { font-family: var(--font-mono); color: var(--text-secondary); }

.traj-load-more-wrapper { text-align: center; padding: 16px 0; }
.traj-load-more-btn {
  background: var(--primary); color: white; border: none;
  padding: 8px 20px; border-radius: 100px; font-size: 0.8125rem;
  font-weight: 600; transition: opacity 0.15s;
}
.traj-load-more-btn:hover { opacity: 0.85; }

.traj-view-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--primary); color: var(--primary);
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem;
  font-weight: 600; transition: all 0.15s; cursor: pointer;
}
.traj-view-btn:hover { background: var(--primary); color: white; }

.traj-analysis {
  background: var(--fafafa); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px;
}
.traj-analysis-title {
  font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.traj-analysis-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.traj-stat-chip {
  font-size: 0.75rem; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 100px; padding: 3px 10px;
}
.traj-stat-chip--thinking { background: var(--warning-light); border-color: rgba(200, 155, 60, 0.3); }
.traj-stat-muted { color: var(--text-muted); font-size: 0.6875rem; }
.traj-tool-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.traj-tool-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 2px 8px; font-size: 0.6875rem;
}
.traj-tool-chip-name { font-family: var(--font-mono); color: var(--primary); }
.traj-tool-chip-count {
  background: var(--primary-light); color: var(--primary); font-weight: 600;
  border-radius: 100px; padding: 0 5px; font-size: 0.625rem;
}

.traj-msg-expand { }
.traj-msg-expand-toggle {
  font-size: 0.8125rem; line-height: 1.6; color: var(--text);
  cursor: pointer; list-style: none;
}
.traj-msg-expand-toggle::-webkit-details-marker { display: none; }
.traj-expand-hint { color: var(--primary); font-size: 0.6875rem; font-weight: 600; }
.traj-msg-full {
  margin-top: 8px; font-size: 0.8125rem; line-height: 1.6; color: var(--text);
  max-height: 400px; overflow-y: auto;
  padding: 8px 12px; background: var(--fafafa); border-radius: var(--radius);
}

.traj-truncated { color: var(--primary); font-style: italic; }

@media (max-width: 768px) {
  .traj-overlay { padding: 8px; }
  .traj-modal { height: 95vh; max-width: 100%; }
  .traj-modal-body { padding: 12px 16px; }
  .traj-step { max-width: 95%; }
}

/* --- Execution Details (partial reveal + expand) --- */
.exec-wrap {
  position: relative;
  overflow: hidden;
  max-height: 320px;
  transition: max-height 0.5s var(--ease);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.exec-wrap--open {
  max-height: 4000px;
}
.exec-scroll-inner {
  overflow-x: auto;
}
.exec-wrap .skill-table { margin: 0; }
.exec-wrap .skill-table tr {
  transition: background 0.15s;
}
.exec-wrap .skill-table tbody tr:hover {
  background: var(--surface-hover);
}
.exec-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--cream) 90%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}
.exec-wrap--open .exec-fade { opacity: 0; }
.exec-expand-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.exec-expand-btn:hover {
  color: var(--coral);
  border-color: var(--coral);
}

@media (max-width: 768px) {
  .exec-wrap { max-height: 260px; }
}
