/* ==========================================================================
   CSS DESIGN SYSTEM: BESPOKE UI MASTER TOKENS & SHELL (SOLARIZED DARK STANDARD)
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Surfaces & Canvas (Solarized Dark Base) */
  --bg-base: #002b36;              /* Deep Solarized Teal-Navy Void */
  --bg-surface: #073642;           /* Card & Panel Surface */
  --bg-surface-elevated: #0b4352;  /* Elevated Interactive Elements */

  /* Borders & Focus Rings */
  --border-subtle: #125567;        /* Hairline Card Divider */
  --border-focus: #2aa198;         /* Quantum Cyan Focus Ring */

  /* High-Contrast Luminous Typography */
  --text-primary: #ffffff;         /* Headings & High-Contrast Titles */
  --text-secondary: #cbd5e1;       /* Body & Descriptions */
  --text-muted: #7ea0ab;           /* Micro-Labels & Metadata */

  /* Chroma Accents */
  --accent-primary: #2aa198;       /* Quantum Cyan */
  --accent-secondary: #38bdf8;     /* Ice Blue */
  --accent-glow: rgba(42, 161, 152, 0.22);
  --badge-bg: rgba(42, 161, 152, 0.12);
  --badge-text: #2aa198;
  --badge-border: rgba(42, 161, 152, 0.3);

  /* Geometry & Physics */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1320px;
  --card-shadow: 0 12px 30px rgba(0, 20, 26, 0.6);
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🌑 1. Titanium Carbon & Quartz */
html[data-theme="titanium"] {
  --bg-base: #09090b;
  --bg-surface: #121215;
  --bg-surface-elevated: #18181c;
  --border-subtle: #27272a;
  --border-focus: #52525b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-primary: #ffffff;
  --accent-secondary: #94a3b8;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-text: #e4e4e7;
  --badge-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ⚡ 2. Obsidian & Industrial Amber */
html[data-theme="obsidian"] {
  --bg-base: #090a0d;
  --bg-surface: #101218;
  --bg-surface-elevated: #171a22;
  --border-subtle: #20242f;
  --border-focus: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #f59e0b;
  --accent-secondary: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --badge-bg: rgba(245, 158, 11, 0.08);
  --badge-text: #fbbf24;
  --badge-border: rgba(245, 158, 11, 0.25);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* 🟣 3. Linear Precision & Electric Iris */
html[data-theme="linear"] {
  --bg-base: #08090a;
  --bg-surface: #0f1012;
  --bg-surface-elevated: #16181b;
  --border-subtle: #1f2128;
  --border-focus: #5e6ad2;
  --text-primary: #f7f8f8;
  --text-secondary: #8a8f98;
  --text-muted: #62666d;
  --accent-primary: #5e6ad2;
  --accent-secondary: #818cf8;
  --accent-glow: rgba(94, 106, 210, 0.18);
  --badge-bg: rgba(94, 106, 210, 0.08);
  --badge-text: #a5b4fc;
  --badge-border: rgba(94, 106, 210, 0.25);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* 🏛️ 4. Oxford Midnight & Champagne Brass */
html[data-theme="oxford"] {
  --bg-base: #080d1a;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162035;
  --border-subtle: #1e293b;
  --border-focus: #d4af37;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #d4af37;
  --accent-secondary: #fde047;
  --accent-glow: rgba(212, 175, 55, 0.16);
  --badge-bg: rgba(212, 175, 55, 0.08);
  --badge-text: #fde047;
  --badge-border: rgba(212, 175, 55, 0.25);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* 🪐 5. Solarized Dark & Quantum Cyan (Modern Luminous) */
html[data-theme="solarized"] {
  --bg-base: #002b36;
  --bg-surface: #073642;
  --bg-surface-elevated: #0b4352;
  --border-subtle: #125567;
  --border-focus: #2aa198;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #7ea0ab;
  --accent-primary: #2aa198;
  --accent-secondary: #38bdf8;
  --accent-glow: rgba(42, 161, 152, 0.22);
  --badge-bg: rgba(42, 161, 152, 0.12);
  --badge-text: #2aa198;
  --badge-border: rgba(42, 161, 152, 0.3);
  --card-shadow: 0 12px 30px rgba(0, 20, 26, 0.6);
}

/* ❄️ 6. Nordic Frost & Deep Glacier */
html[data-theme="nordic"] {
  --bg-base: #080e14;
  --bg-surface: #0f1822;
  --bg-surface-elevated: #152230;
  --border-subtle: #1c2c3e;
  --border-focus: #06b6d4;
  --text-primary: #f0f9ff;
  --text-secondary: #7dd3fc;
  --text-muted: #38bdf8;
  --accent-primary: #06b6d4;
  --accent-secondary: #38bdf8;
  --accent-glow: rgba(6, 182, 212, 0.18);
  --badge-bg: rgba(6, 182, 212, 0.08);
  --badge-text: #38bdf8;
  --badge-border: rgba(6, 182, 212, 0.25);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* 🔲 7. Cyber Monochrome & Swiss Bauhaus */
html[data-theme="monochrome"] {
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #141414;
  --border-subtle: #262626;
  --border-focus: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --accent-primary: #ffffff;
  --accent-secondary: #e4e4e7;
  --accent-glow: rgba(255, 255, 255, 0.2);
  --badge-bg: #18181b;
  --badge-text: #ffffff;
  --badge-border: #3f3f46;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* 📜 8. Paper & Ink Editorial */
html[data-theme="paper"] {
  --bg-base: #fbfbf9;
  --bg-surface: #f4f3ee;
  --bg-surface-elevated: #eae8df;
  --border-subtle: #dcd8ce;
  --border-focus: #c2410c;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --accent-primary: #c2410c;
  --accent-secondary: #1c1917;
  --accent-glow: rgba(194, 65, 12, 0.12);
  --badge-bg: rgba(194, 65, 12, 0.08);
  --badge-text: #9a3412;
  --badge-border: rgba(194, 65, 12, 0.2);
  --card-shadow: 0 4px 18px rgba(28, 25, 23, 0.06);
}

/* 🏛️ 9. Alabaster & Clean Slate */
html[data-theme="alabaster"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #2563eb;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-secondary: #0f172a;
  --accent-glow: rgba(37, 99, 235, 0.14);
  --badge-bg: rgba(37, 99, 235, 0.06);
  --badge-text: #1d4ed8;
  --badge-border: rgba(37, 99, 235, 0.2);
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* 🏛️ 10. Sandstone & Travertine Studio */
html[data-theme="sandstone"] {
  --bg-base: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f0ebe1;
  --border-subtle: #e7e3da;
  --border-focus: #9a3412;
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --accent-primary: #9a3412;
  --accent-secondary: #44403c;
  --accent-glow: rgba(154, 52, 18, 0.14);
  --badge-bg: rgba(154, 52, 18, 0.06);
  --badge-text: #9a3412;
  --badge-border: rgba(154, 52, 18, 0.2);
  --card-shadow: 0 4px 20px rgba(41, 37, 36, 0.06);
}

/* ==========================================================================
   THEME SWITCHER & PALETTE INSPECTOR COMPONENTS
   ========================================================================== */
.theme-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.theme-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 4px;
}

.theme-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 6px;
}

.theme-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.theme-btn.active {
  background: var(--bg-base);
  color: var(--text-primary);
  border-color: var(--border-focus);
  box-shadow: 0 0 10px var(--accent-glow);
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-titanium { background: #ffffff; }
.dot-obsidian { background: #f59e0b; }
.dot-linear { background: #5e6ad2; }
.dot-oxford { background: #d4af37; }
.dot-solarized { background: #2aa198; }
.dot-nordic { background: #06b6d4; }
.dot-monochrome { background: #e4e4e7; border: 1px solid #71717a; }
.dot-paper { background: #c2410c; }
.dot-alabaster { background: #2563eb; }
.dot-sandstone { background: #9a3412; }

.theme-banner {
  margin: 24px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.theme-meta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-type-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

.theme-meta-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 600px;
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatch-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.swatch-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.swatch-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

/* ==========================================================================
   MASTER TOPBAR & GLOBAL NAVIGATION
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.05em;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Navigation Pills */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 56px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.hero-name {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text-primary);
  word-break: break-word;
}

.hero-role {
  font-size: clamp(15px, 2.5vw, 21px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.hero-role strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  min-width: 260px;
  box-shadow: var(--card-shadow);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.stat-name {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   SECTION HEADINGS & STANDARDIZED PAGE LAYOUT SYSTEM
   ========================================================================== */
.app-page-wrapper {
  margin-top: 28px;
  margin-bottom: 64px;
}

.section-header {
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   STANDARDIZED SURFACES, CARDS & 2-COLUMN COMMAND LAYOUTS
   ========================================================================== */
.surface-card,
.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  position: relative;
}

.surface-card-header,
.panel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.surface-card-title,
.panel-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.command-layout-2col {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(460px, 1.15fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .command-layout-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   GLOBAL TACTILE FORM PRIMITIVES (Bespoke UI Pillar 4)
   ========================================================================== */
.app-field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.app-label,
.form-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
}

.app-input,
.app-textarea,
.app-select,
.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.app-input::placeholder,
.app-textarea::placeholder,
.form-field textarea::placeholder,
.form-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.app-input:hover,
.app-textarea:hover,
.app-select:hover,
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.app-input:focus,
.app-textarea:focus,
.app-select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.36);
}

/* ==========================================================================
   GLOBAL HIGH-DENSITY DATA TABLE STANDARD (Bespoke UI Pillar 1)
   Guarantees 100% viewport fit on desktop/laptop viewports without horizontal scroll
   ========================================================================== */
.app-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
  margin-bottom: 24px;
  position: relative;
}

.app-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  table-layout: auto;
}

.app-data-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.app-data-table th:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.app-data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
}

.app-data-table td.col-primary {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding-left: 16px;
}

.app-data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.app-data-table tbody tr:hover {
  background-color: var(--bg-surface-elevated);
}

.app-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   PROJECT CARDS (HIGH CRAFT & INFORMATION DENSE)
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-glow);
}

.project-card:active {
  transform: translateY(0);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-route-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.card-status-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-description {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
}

.telem-col {
  display: flex;
  flex-direction: column;
}

.telem-key {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.telem-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TECHNICAL TELEMETRY MATRIX
   ========================================================================== */
.stack-matrix {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  box-shadow: var(--card-shadow);
}

.stack-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.stack-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-item-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  font-weight: 600;
}

.stack-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SENTINEL VISUAL ARCHITECTURE TOPOLOGY TREE
   ========================================================================== */
.sentinel-topology {
  margin-top: 18px;
  width: 100%;
}

.topology-hub-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.topology-hub {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow), var(--card-shadow);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.topology-hub-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.topology-hub-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.topology-hub-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.topology-stem {
  width: 2px;
  height: 20px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

.topology-bus {
  width: 100%;
  display: flex;
  justify-content: center;
}

.topology-bus-line {
  width: 75%;
  height: 2px;
  background: var(--border-focus);
  box-shadow: 0 0 6px var(--accent-glow);
}

.topology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.topology-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-drop-line {
  width: 2px;
  height: 16px;
  background: var(--border-focus);
}

.pillar-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  width: 100%;
  height: 100%;
  transition: all var(--transition-fast);
}

.pillar-box:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.pillar-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.pillar-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.pillar-points li {
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.pillar-points li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent-secondary);
  font-weight: bold;
}

@media (max-width: 900px) {
  .topology-bus-line {
    display: none;
  }
  .pillar-drop-line {
    display: none;
  }
  .topology-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
}

/* ==========================================================================
   MASTER FOOTER
   ========================================================================== */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   RESPONSIVE VIEWPORT BREAKPOINTS (IPHONE / ANDROID / TABLET HARDENING)
   ========================================================================== */
@media (max-width: 860px) {
  .topbar-inner {
    padding: 10px 16px;
    gap: 10px;
    justify-content: space-between;
  }

  .brand {
    order: 1;
    gap: 8px;
  }

  .brand-domain {
    display: none; /* Hide '/ davisdelgado.com' on tablets/phones to preserve space */
  }

  .lang-switch {
    order: 2;
  }

  .nav-pills {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 4px;
    gap: 4px;
  }

  .nav-pills::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }

  .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 6px 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 28px;
    gap: 24px;
  }

  .hero-stats {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .topbar-inner {
    padding: 8px 14px;
  }

  .hero {
    padding: 28px 0 22px;
    gap: 18px;
  }

  .hero-stats {
    padding: 14px 16px;
  }

  .section-header {
    margin-top: 36px;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 17px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    padding: 20px 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
  }

  .telemetry-row {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 8px;
    padding: 8px 10px;
  }

  .telem-key {
    font-size: 9.5px;
  }

  .telem-val {
    font-size: 11.5px;
  }

  .stack-matrix {
    padding: 18px 14px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .theme-banner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .palette-swatches {
    width: 100%;
    justify-content: space-between;
  }

  .theme-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }

  .theme-btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  .topology-hub {
    padding: 12px 16px;
  }

  .topology-hub-title {
    font-size: 14px;
  }

  .pillar-box {
    padding: 12px 14px;
  }

  .footer {
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }
}

/* ==========================================================================
   RESUME BUILDER BESPOKE UI WORKSPACE (High-Craft ATS Studio)
   ========================================================================== */
.container-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

@media (max-width: 640px) {
  .container-wide {
    padding: 0 16px;
  }
}

.resume-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 1.15fr);
  gap: 32px;
  align-items: start;
  margin-top: 18px;
}

/* Mobile View Switcher (Hidden on Desktop) */
.resume-mobile-tabs {
  display: none;
}

@media (max-width: 920px) {
  .resume-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .resume-mobile-tabs {
    display: flex;
    align-items: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 4px;
    margin-bottom: 16px;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: var(--card-shadow);
  }

  .resume-tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .resume-tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .resume-pane-mobile-hidden {
    display: none !important;
  }
}

/* Editor Column & Sections */
.resume-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-header-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--card-shadow);
}

.resume-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Section Cards (Anti-Slop: Soft, Elevated & Purposeful) */
.resume-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
}

.resume-section-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-section-toggle-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.resume-section-card.is-collapsed {
  gap: 0;
  padding-bottom: 16px;
}

.resume-section-card.is-collapsed .resume-section-header {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-section-card.is-collapsed .resume-section-toggle-icon {
  transform: rotate(-90deg);
}

.resume-section-card.is-collapsed .resume-section-body {
  display: none;
}

.resume-section-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resume-section-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
}

.resume-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.resume-section-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: block;
}

/* Softened, Tactile Form Fields */
.resume-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .resume-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.resume-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.resume-input,
.resume-textarea,
.resume-select {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 9px 13px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  width: 100%;
}

.resume-input::placeholder,
.resume-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.resume-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.resume-input:hover,
.resume-textarea:hover,
.resume-select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.resume-input:focus,
.resume-textarea:focus,
.resume-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.36);
}

/* Item Cards (Experience & Education) */
.resume-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: border-color var(--transition-fast);
}

.resume-item-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.resume-item-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.resume-item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-icon {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-surface);
}

.btn-icon-danger:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-add-dashed {
  border: 1px dashed var(--border-focus);
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-add-dashed:hover {
  background: var(--accent-primary);
  color: var(--bg-base);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Bullets List */
.resume-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.resume-bullet-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-bullet-input {
  flex: 1;
}

/* Studio Drafting Board (Physical US Letter Easel) */
.resume-drafting-board {
  position: sticky;
  top: 76px;
  background: var(--bg-base);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 96px);
  overflow-y: auto;
  align-items: center;
}

@media (max-width: 920px) {
  .resume-drafting-board {
    position: static;
    height: auto;
    max-height: none;
    padding: 16px;
  }
}

.resume-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.resume-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}

.resume-zoom-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  border-radius: 3px;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

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

.resume-zoom-level {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-primary);
  min-width: 38px;
  text-align: center;
}

.resume-sheet-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

/* Physical ATS Paper Sheet (Standard US Letter 8.5 x 11 in) */
.resume-paper-page {
  background: #ffffff !important;
  color: #000000 !important;
  width: 100%;
  max-width: 612px;
  min-height: 792px;
  padding: 44px 54px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 10pt;
  line-height: 1.35;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

@media (max-width: 600px) {
  .resume-paper-page {
    padding: 24px 20px;
    font-size: 8.5pt;
  }
}

.resume-paper-page a {
  color: #000000 !important;
  text-decoration: underline;
}

.resume-download-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-primary-action {
  background: var(--accent-primary);
  color: var(--bg-base);
  border: 1px solid var(--border-focus);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px var(--accent-glow);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ==========================================================================
   CANONICAL WORKBENCH, TABS, PILLS & BADGES SYSTEM (Bespoke UI Core Standards)
   Guarantees zero browser unstyled defaults (no white button traps, no raw borders)
   ========================================================================== */

/* 1. Primitive Command Tabs & Segmented Selectors */
.primitive-selector,
.segmented-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .primitive-selector,
  .segmented-tab-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .primitive-selector,
  .segmented-tab-bar {
    grid-template-columns: 1fr;
  }
}

.primitive-btn,
.tab-primitive {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.primitive-btn .prim-desc,
.tab-primitive .prim-desc {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.primitive-btn:hover,
.tab-primitive:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.primitive-btn.active,
.tab-primitive.active {
  background: var(--badge-bg);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow), inset 0 1px rgba(255, 255, 255, 0.1);
}

.primitive-btn.active .prim-desc,
.tab-primitive.active .prim-desc {
  color: var(--text-secondary);
}

.prim-num {
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  font-size: 10.5px;
  font-weight: 800;
}

/* 2. Preset Pills & Micro-Action Bars */
.preset-pills,
.preset-pill-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-preset {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-preset:hover {
  background: var(--bg-surface-elevated);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* 3. Action Buttons & Workbench Controls */
.run-bench-btn,
.btn-execute {
  background: var(--accent-primary);
  color: var(--bg-base);
  border: 1px solid var(--border-focus);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.run-bench-btn:hover:not(:disabled),
.btn-execute:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.run-bench-btn:disabled,
.btn-execute:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 4. Telemetry Badges & Status Indicators */
.feature-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.badge-cyan {
  background: var(--badge-bg);
  color: var(--accent-primary);
  border: 1px solid var(--badge-border);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.sandbox-latency-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.view-toggle-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--badge-bg);
  color: var(--accent-primary);
  border: 1px solid var(--badge-border);
  font-weight: 700;
}

