/* ==========================================================================
   SHARRIF FAJAR - INTERACTIVE PORTFOLIO DESIGN SYSTEM
   Edge AI & Semantic Engineering Lab Aesthetics
   Anti-Slop Strict Compliance (WCAG AA Contrast, No Slop, Intentional Craft)
   ========================================================================== */

:root {
  /* Dark Theme Default Tokens (Laboratory Dark) */
  --bg-base: #080b11;
  --bg-surface: #0f1420;
  --bg-surface-elevated: #161f30;
  --bg-card: #131a29;
  --bg-card-hover: #192338;
  --bg-subtle: #0c1018;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(16, 185, 129, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  --accent-cyan: #06b6d4;
  --accent-cyan-subtle: rgba(6, 182, 212, 0.12);
  --accent-purple: #8b5cf6;
  --accent-purple-subtle: rgba(139, 92, 246, 0.12);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

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

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* Light Theme Tokens (Crisp Engineering Paper) */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f5f9;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-accent: rgba(5, 150, 105, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-emerald: #059669;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.1);
  --accent-cyan: #0284c7;
  --accent-cyan-subtle: rgba(2, 132, 199, 0.1);
  --accent-purple: #7c3aed;
  --accent-purple-subtle: rgba(124, 58, 237, 0.1);
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Background Atmospheric Elements */
.bg-grid-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.bg-glow-2 {
  bottom: 10%;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
}

/* Layout Containers */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-wrapper {
  padding: 5.5rem 0;
  position: relative;
}

.section-wrapper.bg-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Header Typography */
.section-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.section-eyebrow {
  margin-bottom: 0.75rem;
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.9);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-glyph {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  line-height: 1.2;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.telemetry-pill:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background-color: var(--bg-surface-elevated);
}

.telemetry-tag {
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.telemetry-sep {
  color: var(--text-muted);
  font-size: 0.5rem;
  opacity: 0.7;
}

.telemetry-time {
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulse-glow 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
}

.nav-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
}

.nav-link.active {
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-strong);
}

.btn-tooltip {
  display: none;
}

.cta-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cta-header-btn:hover {
  border-color: var(--border-accent);
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION & LIVE OSCILLOSCOPE
   ========================================================================== */

.hero-section {
  padding: 4.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--accent-emerald);
}

.gradient-text-alt {
  color: var(--accent-cyan);
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 600px;
}

.research-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.pillar-icon {
  font-size: 0.875rem;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.pillar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-detail {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #042f1e;
  border: 1px solid var(--accent-emerald);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Oscilloscope Card in Hero */
.hero-telemetry-panel {
  position: relative;
}

.telemetry-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card-header-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-header-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.live-indicator {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  animation: pulse-glow 1s infinite alternate;
}

.oscilloscope-wrapper {
  position: relative;
  background-color: #03070d;
  height: 220px;
  width: 100%;
}

[data-theme="light"] .oscilloscope-wrapper {
  background-color: #0a111e;
}

#oscilloscope-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-overlay-stats {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.stat-badge {
  background-color: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  display: flex;
  gap: 0.25rem;
}

.stat-label {
  color: #94a3b8;
}

.stat-value {
  color: #38bdf8;
  font-weight: 700;
}

.scope-controls {
  padding: 0.875rem 1rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scope-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.scope-mode-btn {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scope-mode-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.scope-mode-btn.active {
  background-color: var(--accent-emerald-subtle);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.scope-slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 140px;
  display: flex;
  justify-content: space-between;
}

.custom-range {
  flex: 1;
  height: 6px;
  accent-color: var(--accent-emerald);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.card-footer-info {
  padding: 0.625rem 1rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.375rem;
  line-height: 1.4;
}

/* ==========================================================================
   FEATURED PROJECT WORKBENCH CARDS
   ========================================================================== */

.projects-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-workbench-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.project-workbench-card:hover {
  border-color: var(--border-accent);
}

.workbench-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.workbench-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-category-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.tag-purple {
  background-color: var(--accent-purple-subtle);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-cyan {
  background-color: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-emerald {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-version-tag, .project-license-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.workbench-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.workbench-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.workbench-title a:hover {
  color: var(--accent-emerald);
}

.workbench-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.workbench-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Scientific Honesty Callout Box */
.scientific-honesty-box {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
}

.honesty-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.honesty-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Technical Specs Table */
.tech-specs-table-wrapper {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tech-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.tech-specs-table th {
  width: 32%;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: top;
}

.tech-specs-table td {
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-specs-table tr:last-child th,
.tech-specs-table tr:last-child td {
  border-bottom: none;
}

/* Tech Pills */
.tech-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Workbench Actions */
.workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-card-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  padding: 0.625rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-card-primary:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-card-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.625rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-secondary:hover {
  background-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

/* Preview Containers */
.preview-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.badge-status-ok {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  border: 1px solid var(--border-accent);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

.badge-status-accent {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* Pipeline Diagram Flow */
.pipeline-diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
}

.step-box {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.step-box.highlight-box {
  border-color: var(--accent-purple);
  background-color: var(--accent-purple-subtle);
}

.step-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-detail {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1;
}

.preview-footer-quote {
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

/* RAM Chart */
.ram-bar-container {
  display: flex;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
}

.ram-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0 4px;
  white-space: nowrap;
}

.seg-model { background-color: #3b82f6; }
.seg-vectordb { background-color: #ec4899; }
.seg-app { background-color: #10b981; }
.seg-headroom { background-color: #64748b; }

.ram-legend-grid {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-model { background-color: #3b82f6; }
.dot-vectordb { background-color: #ec4899; }
.dot-app { background-color: #10b981; }
.dot-headroom { background-color: #64748b; }

.preview-footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.note-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* ESP Topology Diagram */
.esp-topology-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.topo-node {
  text-align: center;
  padding: 0.375rem;
}

.topo-icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.125rem;
}

.topo-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.topo-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: block;
}

.topo-wire {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent-emerald);
}

.edge-metrics-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.metric-mini-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric-m-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: block;
}

.metric-m-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: block;
}

/* ==========================================================================
   INTERACTIVE LAB & SIMULATION WORKBENCH
   ========================================================================== */

.lab-tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.lab-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.lab-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.lab-tab-btn.active {
  background-color: var(--accent-emerald-subtle);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.lab-tab-pane {
  display: none;
}

.lab-tab-pane.active {
  display: block;
}

.lab-workbench-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.workbench-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bar-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

/* Agent Simulator Layout */
.agent-sim-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 440px;
}

.agent-step-list {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.agent-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.agent-step-item:hover {
  background-color: var(--bg-surface-elevated);
}

.agent-step-item.active {
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent-purple);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  background-color: var(--accent-purple-subtle);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.step-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.agent-output-viewer {
  display: flex;
  flex-direction: column;
  background-color: #06090e;
  overflow: hidden;
}

[data-theme="light"] .agent-output-viewer {
  background-color: #0d131f;
}

.viewer-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.625rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viewer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.active-agent-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exec-time-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

.btn-copy-code {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  color: var(--text-primary);
  border-color: var(--accent-emerald);
}

.code-container {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 340px;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.validator-compliance-badge {
  background-color: rgba(16, 185, 129, 0.08);
  border-top: 1px solid var(--border-accent);
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  font-weight: 700;
}

/* TinyML Pane Layout */
.tinyml-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.col-heading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.control-field {
  margin-bottom: 1.25rem;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.val-display {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
}

.custom-select {
  width: 100%;
  min-height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-run-inference {
  width: 100%;
  min-height: 48px;
  background-color: var(--accent-emerald);
  color: #042f1e;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all var(--transition-fast);
}

.btn-run-inference:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* Inference Verdict Box */
.inference-verdict-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.verdict-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verdict-status-icon.fault {
  background-color: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

.verdict-details {
  display: flex;
  flex-direction: column;
}

.verdict-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.verdict-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--accent-emerald);
  letter-spacing: 0.02em;
}

.verdict-text.fault {
  color: var(--accent-rose);
}

.verdict-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Prob Bars */
.prob-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.prob-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.prob-val {
  font-family: var(--font-mono);
}

.prob-track {
  height: 8px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.prob-fill {
  height: 100%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-normal { background-color: var(--accent-emerald); }
.fill-fault { background-color: var(--accent-rose); }

/* HW Benchmark Strip */
.hw-benchmark-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

.bench-item {
  text-align: center;
}

.b-lbl {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: block;
}

.b-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

/* LocalLM Studio Pane */
.rag-sim-layout {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rag-query-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.query-preset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.preset-btn.active {
  background-color: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.rag-execution-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.timeline-step {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  gap: 0.625rem;
}

.timeline-step.passed {
  border-color: var(--border-accent);
}

.step-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  display: flex;
  flex-direction: column;
}

.step-desc strong {
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.step-desc span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.rag-response-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.resp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resp-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-zero-hallucination {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
}

.resp-body {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.citation-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  cursor: help;
}

.table-evidence-box {
  margin-top: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.evidence-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.evidence-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.evidence-mini-table th, .evidence-mini-table td {
  padding: 0.375rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.evidence-mini-table th {
  color: var(--text-secondary);
}

.evidence-mini-table tr.highlight-row {
  background-color: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   TECHNICAL RADAR & ROADMAP
   ========================================================================== */

.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.skill-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.cat-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.skill-badge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.skill-name {
  font-weight: 500;
  color: var(--text-primary);
}

.skill-tag-level {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* Roadmap Timeline */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.roadmap-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.roadmap-item.active .roadmap-badge {
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  border-color: var(--accent-emerald);
}

.roadmap-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.roadmap-item.active .roadmap-card {
  border-color: var(--border-accent);
}

.roadmap-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.375rem;
}

.roadmap-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.roadmap-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-done, .tag-current, .tag-future {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.tag-done {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.tag-current {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.tag-future {
  background-color: var(--bg-surface);
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE MINI-CLI TERMINAL
   ========================================================================== */

.terminal-window {
  background-color: #06090e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .terminal-window {
  background-color: #0b1220;
}

.terminal-header {
  background-color: #0c121e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  flex: 1;
}

.terminal-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #64748b;
}

.terminal-hint code {
  color: #10b981;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.terminal-line {
  margin-bottom: 0.375rem;
}

.prompt-sys {
  color: #38bdf8;
  font-weight: 700;
  margin-right: 0.375rem;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  background-color: #090e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  min-height: 48px;
}

.prompt-symbol {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #10b981;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  outline: none;
  min-height: 36px;
}

.terminal-submit-btn {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.terminal-submit-btn:hover {
  background-color: #334155;
  color: #ffffff;
}

/* ==========================================================================
   CONTACT & SOCIAL LINKS
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-strong);
}

.contact-icon {
  font-size: 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-contact-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-subtle);
  border: 1px solid var(--border-accent);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-contact-action:hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  min-height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-emerald);
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-rose);
  margin-top: 0.25rem;
}

.btn-submit-message {
  width: 100%;
  min-height: 48px;
  background-color: var(--accent-emerald);
  color: #042f1e;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit-message:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.form-alert {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.form-alert.success {
  background-color: var(--accent-emerald-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-emerald);
}

.form-alert.error {
  background-color: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

/* ==========================================================================
   FOOTER & TOASTS
   ========================================================================== */

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-motto {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-center {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-slide-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FLAWLESS MOBILE LAYOUT)
   ========================================================================== */

/* Prevent any accidental horizontal overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workbench-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .agent-sim-layout {
    grid-template-columns: 1fr;
  }

  .agent-step-list {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .agent-step-item {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
    min-width: 200px;
    flex-shrink: 0;
  }

  .agent-step-item.active {
    border-left: none;
    border-bottom: 3px solid var(--accent-purple);
  }

  .rag-execution-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation Menu Drawer */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(8, 11, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .site-nav.open {
    display: block;
    animation: menu-slide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes menu-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .telemetry-pill {
    display: none;
  }

  /* Typography & Hero adjustments */
  .hero-heading {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
    line-height: 1.15;
  }

  .academic-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    max-width: 100%;
  }

  .research-pillars {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .pillar-card {
    padding: 1rem;
  }

  /* Interactive Lab Tabs on Mobile */
  .lab-tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    scrollbar-width: thin;
  }

  .lab-tab-btn {
    flex-shrink: 0;
    min-width: fit-content;
    white-space: nowrap;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .tinyml-sim-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .roadmap-badge {
    text-align: left;
    font-size: 0.875rem;
  }

  .rag-execution-timeline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .query-preset-btns {
    flex-direction: column;
  }

  .preset-btn {
    width: 100%;
    text-align: left;
  }

  .hw-benchmark-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Terminal Input Row on Mobile */
  .terminal-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .terminal-input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 0.625rem 0.75rem;
  }

  .terminal-submit-btn {
    width: 100%;
    min-height: 44px;
  }

  /* Form Elements on Mobile */
  .form-input, .form-textarea, .custom-select {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 44px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-right {
    flex-direction: column;
    width: 100%;
  }

  .btn-schema-pill, .back-to-top-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-wrapper {
    padding: 3rem 0;
  }

  .scope-btn-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-mode-btn {
    min-height: 44px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .project-workbench-card {
    padding: 1.25rem;
  }

  .workbench-title {
    font-size: 1.25rem;
  }

  .tech-specs-table th,
  .tech-specs-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }

  .workbench-actions {
    flex-direction: column;
  }

  .btn-card-primary,
  .btn-card-secondary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .schema-modal-box {
    max-height: 92vh;
    margin: 0.5rem;
  }

  .schema-modal-header,
  .schema-modal-footer {
    padding: 0.75rem 1rem;
  }

  .schema-modal-footer {
    flex-direction: column;
  }

  .btn-modal-action {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   EASTER EGG: MATRIX GRAVITY COLLAPSE (10-SECOND SURPRISE EFFECT)
   ========================================================================== */

/* Screen Earthquake Shaking */
body.screen-shaking {
  animation: screen-earthquake 0.12s infinite ease-in-out;
}

@keyframes screen-earthquake {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-4px, 3px) rotate(-0.6deg); }
  40% { transform: translate(4px, -3px) rotate(0.6deg); }
  60% { transform: translate(-3px, -4px) rotate(-0.4deg); }
  80% { transform: translate(3px, 4px) rotate(0.4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Structural Crumbling & Gravity Collapse */
body.matrix-collapse-active {
  perspective: 1400px;
  overflow-x: hidden;
}

body.matrix-collapse-active .site-header,
body.matrix-collapse-active .hero-content,
body.matrix-collapse-active .hero-telemetry-panel,
body.matrix-collapse-active .project-workbench-card,
body.matrix-collapse-active .lab-workbench-box,
body.matrix-collapse-active .skill-category-card,
body.matrix-collapse-active .roadmap-item,
body.matrix-collapse-active .terminal-window,
body.matrix-collapse-active .contact-card,
body.matrix-collapse-active .form-wrapper,
body.matrix-collapse-active .site-footer {
  transition: transform 1.2s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 1s ease;
}

/* Randomized tumbling transforms for collapsed state */
body.matrix-collapse-active .site-header {
  transform: translateY(220px) rotate(8deg) translateZ(-80px) !important;
}

body.matrix-collapse-active .hero-content {
  transform: translateY(480px) rotate(-14deg) translateX(-40px) !important;
}

body.matrix-collapse-active .hero-telemetry-panel {
  transform: translateY(580px) rotate(18deg) translateX(60px) !important;
}

body.matrix-collapse-active .project-workbench-card:nth-child(1) {
  transform: translateY(650px) rotate(-16deg) scale(0.92) !important;
}

body.matrix-collapse-active .project-workbench-card:nth-child(2) {
  transform: translateY(720px) rotate(14deg) scale(0.88) !important;
}

body.matrix-collapse-active .project-workbench-card:nth-child(3) {
  transform: translateY(800px) rotate(-12deg) scale(0.9) !important;
}

body.matrix-collapse-active .lab-workbench-box {
  transform: translateY(750px) rotate(22deg) translateX(-50px) !important;
}

body.matrix-collapse-active .skill-category-card:nth-child(odd) {
  transform: translateY(600px) rotate(-25deg) !important;
}

body.matrix-collapse-active .skill-category-card:nth-child(even) {
  transform: translateY(680px) rotate(20deg) !important;
}

body.matrix-collapse-active .roadmap-item {
  transform: translateY(700px) rotate(-15deg) !important;
}

body.matrix-collapse-active .terminal-window {
  transform: translateY(500px) rotate(12deg) scale(0.95) !important;
}

body.matrix-collapse-active .contact-card {
  transform: translateY(620px) rotate(-18deg) !important;
}

body.matrix-collapse-active .form-wrapper {
  transform: translateY(680px) rotate(16deg) !important;
}

body.matrix-collapse-active .site-footer {
  transform: translateY(400px) rotate(-6deg) !important;
}

/* Smooth Restoration Transition */
body.matrix-reconstructing .site-header,
body.matrix-reconstructing .hero-content,
body.matrix-reconstructing .hero-telemetry-panel,
body.matrix-reconstructing .project-workbench-card,
body.matrix-reconstructing .lab-workbench-box,
body.matrix-reconstructing .skill-category-card,
body.matrix-reconstructing .roadmap-item,
body.matrix-reconstructing .terminal-window,
body.matrix-reconstructing .contact-card,
body.matrix-reconstructing .form-wrapper,
body.matrix-reconstructing .site-footer {
  transform: translateY(0) rotate(0) scale(1) translateZ(0) !important;
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

/* Floating Collapse HUD Banner */
.collapse-hud-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background-color: rgba(15, 23, 42, 0.95);
  border: 2px solid #ef4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-lg);
  padding: 1rem 1.75rem;
  color: #ffffff;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
  animation: hud-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.collapse-hud-banner.reconstructed {
  border-color: #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.45);
}

.hud-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapse-hud-banner.reconstructed .hud-title {
  color: #34d399;
}

.hud-timer {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.collapse-hud-banner.reconstructed .hud-timer {
  font-size: 1rem;
  color: #10b981;
}

.hud-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

@keyframes hud-bounce {
  0% { transform: translate(-50%, -60px) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* ==========================================================================
   SCHEMA.ORG LINKED DATA MODAL INSPECTOR
   ========================================================================== */

.btn-schema-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  background-color: var(--accent-purple-subtle);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-schema-pill:hover {
  background-color: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-1px);
}

.schema-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  border: none;
  background-color: rgba(3, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.schema-modal[open] {
  display: flex;
}

.schema-modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.schema-modal-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schema-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  font-size: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-close:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.schema-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  background-color: #05080e;
}

[data-theme="light"] .schema-modal-body {
  background-color: #0d131f;
}

.schema-graph-summary {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.schema-code-viewer {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #38bdf8;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.schema-modal-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-modal-action {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  min-height: 40px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-action.primary {
  background-color: var(--accent-emerald);
  color: #042f1e;
  border: 1px solid var(--accent-emerald);
}

.btn-modal-action.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-modal-action.outline {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-modal-action.outline:hover {
  color: var(--text-primary);
  border-color: var(--accent-purple);
}


