/**
 * Credence Master Zero-Build Design System (credence-ui.css)
 * 
 * Provides unified design tokens, typography, glassmorphism, responsive navigation headers,
 * code blocks, alert banners, and footers across:
 * - credence.run (Landing & Install CDN)
 * - docs.credence.run (Documentation Portal)
 * - blog.credence.run (Sovereign Editorial Blog)
 * - credence.report (Zero-Build Cryptographic Report Viewer)
 */

:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: #12192b;
  --bg-code: #030712;
  --bg-glass: rgba(18, 25, 43, 0.75);
  
  /* Text Tokens */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Brand & Accent Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #60a5fa;
  --accent-green: #4ade80;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #c084fc;
  
  /* Borders & Dividers */
  --border: #1e293b;
  --border-subtle: #0f172a;
  --border-focus: #38bdf8;
  --border-glass: rgba(56, 189, 248, 0.15);
  
  /* Sizing & Geometry */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --container-max: 1440px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* Shadows & Glows */
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Master Header & Navigation */
.credence-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.credence-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.credence-nav .brand img.brand-logo {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

.credence-nav .brand span.badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
}

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

.credence-nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.credence-nav .nav-links a:hover,
.credence-nav .nav-links a.active {
  color: var(--accent-cyan);
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Typography & Hero Headings */
h1.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 680px;
  margin: 0.35rem auto 0;
  text-wrap: balance;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

/* Code Blocks & Terminal Windows */
.terminal-card {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.terminal-header {
  background: #0f172a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
}

.terminal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.command { color: var(--accent-cyan); font-weight: 600; }

.copy-btn {
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* Feature & Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Universal Workstation Data Tables */
table.dci-table,
table.rfc-table,
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem 0;
  font-size: 0.85rem;
}

table.dci-table th,
table.rfc-table th,
table.data-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  color: var(--text-dim, #94a3b8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border, #1e293b);
  background: rgba(15, 23, 42, 0.5);
}

table.dci-table td,
table.rfc-table td,
table.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text, #f8fafc);
  vertical-align: middle;
}

table.dci-table tbody tr:hover,
table.rfc-table tbody tr:hover,
table.data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.03);
}

/* Unified Cross-Domain Ecosystem Footer */
footer.credence-footer,
footer.footer {
  padding: 2.25rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(180deg, #090e1a 0%, #040711 100%);
  color: var(--text-muted, #94a3b8);
  font-size: 0.88rem;
  margin-top: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: var(--container-max, 1440px);
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

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

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.15rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul,
.footer-col ul.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent-cyan, #38bdf8);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim, #64748b);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  h1.hero-title { font-size: 2.25rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .credence-nav .nav-links { gap: 1rem; font-size: 0.85rem; }
}

/* ==============================================================================
 * WORKSTATION ARCHITECTURE & TUI EMULATION EXTENSIONS
 * ============================================================================== */

.workstation-container {
  max-width: var(--container-max, 1440px);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 921px) {
  html:has(.workstation-container),
  body:has(.workstation-container) {
    height: 100vh;
    overflow: hidden;
  }

  body:has(.workstation-container) {
    display: flex;
    flex-direction: column;
  }

  .credence-nav {
    flex-shrink: 0;
  }

  .workstation-container {
    flex: 1;
    min-height: 0;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    padding: 0.4rem 1.25rem 0.5rem;
    overflow: hidden;
  }

  .workstation-masthead,
  .workstation-header {
    flex-shrink: 0;
    margin-bottom: 0.35rem;
    padding: 0.4rem 1rem;
  }

  .deck-frame {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .deck-shell {
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
  }

  .deck-rail {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .deck-stage {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem 1.25rem;
  }

  body:has(.workstation-container) .credence-footer {
    display: none;
  }
}

/* Workstation Top Telemetry Ribbon */
.workstation-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ribbon-left, .ribbon-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ribbon-pill.ready { color: var(--accent-green); border-color: rgba(74, 222, 128, 0.3); }
.ribbon-pill.operator-active { color: var(--accent-cyan); border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1); cursor: pointer; }
.ribbon-pill.operator-locked { color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); cursor: pointer; }

/* ==============================================================================
 * UNIFIED SPACE-EFFICIENT WORKSTATION MASTHEAD & COMMAND DECK
 * ============================================================================== */

/* Compact Workstation Masthead / Header */
.workstation-masthead,
.workstation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(13, 18, 31, 0.85) 0%, rgba(7, 9, 14, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.masthead-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}

.masthead-emblem {
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.masthead-titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.masthead-row-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.masthead-title,
.workstation-header .hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.masthead-tag,
.workstation-header .badge-pill {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.masthead-desc,
.workstation-header .hero-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
  max-width: 680px;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Connected Workstation Deck Frame (Unifies Toolbar & Dashboard) */
.deck-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  margin-top: 0.25rem;
}

.deck-frame .workstation-ribbon {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  background: #090e1a;
  padding: 0.45rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.deck-frame .deck-shell {
  border: none;
  border-radius: 0;
  margin-top: 0;
  box-shadow: none;
}

/* Epistemic Lens Stepper Buttons */
.lens-stepper-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lens-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.lens-stepper-btn.active-lens {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.deck-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 600px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  margin-top: 0.35rem;
}

@media (max-width: 920px) {
  .deck-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Left Vertical Command Rail */
.deck-rail {
  background: #0b1120;
  border-right: 1px solid var(--border);
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 920px) {
  .deck-rail {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.65rem;
    white-space: nowrap;
    gap: 0.5rem;
  }
}

.deck-rail-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.5rem 0.35rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 920px) {
  .deck-rail-header { display: none; }
}

/* Optional Ecosystem Stations Class (kept for graceful backwards-compat) */
.deck-rail-global {
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 920px) {
  .deck-rail-global {
    flex-direction: row;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.25rem;
  }
}

.deck-domain-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.deck-domain-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.deck-domain-link.active-domain {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
  font-weight: 700;
  border-color: rgba(56, 189, 248, 0.35);
}

.deck-domain-link.active-domain .domain-name {
  color: var(--accent-cyan);
}

/* Middle Section for Local Workspaces (View Switcher) */
.deck-rail-local {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

@media (max-width: 920px) {
  .deck-rail-local {
    flex-direction: row;
  }
}

/* Universal High-Visibility Info Modal Button */
.info-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  color: var(--accent-cyan, #38bdf8);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-btn:hover {
  border-color: #38bdf8;
  color: #fff;
  background: rgba(56, 189, 248, 0.35);
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* 3-Tier Epistemic Pyramid Modal Sections */
.modal-pyramid-tier {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0.85rem;
  background: var(--bg-card);
}

.modal-tier-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.modal-tier-1 .modal-tier-header { color: var(--accent-cyan); }
.modal-tier-2 .modal-tier-header { color: var(--accent-amber); }
.modal-tier-3 .modal-tier-header { color: var(--accent-purple); }

.invariant-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.invariant-link-badge:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

/* Pinned Sources Rail Widget */
.pinned-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.pinned-source-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.pinned-source-item a.pinned-link {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}

.pinned-source-item .btn-unpin {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.2rem;
  line-height: 1;
  border-radius: 3px;
}

.pinned-source-item .btn-unpin:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

.deck-rail-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

@media (max-width: 920px) {
  .deck-rail-divider { display: none; }
}

/* Bottom Pinned Admin Footer in Command Rail */
.deck-rail-admin-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 920px) {
  .deck-rail-admin-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0.5rem;
    flex-direction: row;
  }
}

.deck-admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.deck-admin-link:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.deck-admin-link.active-admin {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.deck-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.deck-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.deck-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.deck-nav-item .nav-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-nav-item.active .nav-badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Main Deck Stage */
.deck-stage {
  padding: 1.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Uniform Deck Module / Card Containers */
.deck-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* Backward-compatible Workstation Tabs Navigation Bar */
.workstation-nav-bar {
  display: none;
}

.workstation-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.workstation-tab-btn:hover {
  background: #1e293b;
  color: #fff;
  border-color: #475569;
}

.workstation-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.workstation-tab-btn .tab-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
}

/* Workstation Content Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.15s ease;
}

.tab-panel.active {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from { opacity: 0.7; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Split Workspace (TUI Tab 1 Emulation) */
.split-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
  min-height: 560px;
}

@media (max-width: 960px) {
  .split-workspace {
    grid-template-columns: 1fr;
  }
}

.workspace-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.workspace-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Interactive Data Tables & Rankings */
.ws-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.ws-table th {
  background: #0f172a;
  color: var(--accent-cyan);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ws-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
}

.ws-table td.wrap-cell {
  white-space: normal;
}

.ws-table tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

/* Interactive Tree View (Taxonomies & Subjects) */
.tree-container {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tree-node {
  margin-bottom: 0.5rem;
}

.tree-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tree-node-header:hover {
  border-color: var(--accent-cyan);
  background: #1e293b;
}

.tree-children {
  margin-left: 1.25rem;
  margin-top: 0.4rem;
  padding-left: 0.65rem;
  border-left: 2px dashed #334155;
  display: none;
}

.tree-node.expanded > .tree-children {
  display: block;
}

/* Admin Command Deck & Cockpit Grid */
.admin-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

.admin-card-header h3 {
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Operator Modal Dialog */
.operator-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.operator-modal-backdrop.active {
  display: flex;
}

.operator-modal {
  background: #0d121f;
  border: 1px solid #38bdf8;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  animation: modalScale 0.15s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.operator-modal-header {
  background: #0f172a;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.operator-modal-body {
  padding: 1.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: #030712;
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.btn-primary {
  background: #0284c7;
  color: #fff;
  border: 1px solid #38bdf8;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #f87171;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #1e293b;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary:hover {
  color: #fff;
  border-color: #475569;
}

/* Symmetrical Standardized Action Button */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
}

/* Progressive Disclosure Forensic Expander (<details>) */
.forensic-expander {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.forensic-expander[open] {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.forensic-expander summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  outline: none;
}

.forensic-expander summary:hover {
  color: #fff;
}

.forensic-expander-content {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Epistemic Hierarchy & Zoom Controls */
.epistemic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb-node {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.breadcrumb-node:hover {
  color: var(--accent-cyan);
}

.breadcrumb-node.current {
  color: #fff;
  cursor: default;
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.zoom-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zoom-nav-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.zoom-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.zoom-btn.active {
  background: var(--accent-cyan);
  color: #030712;
  font-weight: 700;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.dossier-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.dossier-articles-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.dossier-articles-table th,
.dossier-articles-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.dossier-articles-table th {
  background: var(--bg-secondary);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.dossier-articles-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Terminal HUD Scanline Mode (.tui-mode) */
body.tui-mode {
  font-family: var(--font-mono) !important;
  background-color: #030712 !important;
  color: #4ade80 !important;
}

body.tui-mode .card,
body.tui-mode .workstation-ribbon,
body.tui-mode .workspace-sidebar,
body.tui-mode .workspace-main,
body.tui-mode .admin-card {
  border-color: #22c55e !important;
  background: #020817 !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15) !important;
}

body.tui-mode .workstation-tab-btn.active {
  background: #15803d !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
}



/* Tabbed 3-Tier Epistemic Modal Styling */
.modal-lens-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.modal-lens-tab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.65rem;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-lens-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.modal-lens-tab.active-lens-1 {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.modal-lens-tab.active-lens-2 {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.modal-lens-tab.active-lens-3 {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
}

.modal-lens-panel {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-lens-panel.active {
  display: flex;
}

.modal-enhance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.modal-enhance-btn-focus {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
}

.modal-enhance-btn-focus:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.modal-enhance-btn-deep {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--accent-purple);
}

.modal-enhance-btn-deep:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-1px);
}

.modal-article-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.75rem 0.85rem;
  border-radius: 4px;
}

/* Expandable Taxonomy Rule Cards */
.rule-expandable-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  transition: all 0.15s ease;
}

.rule-expandable-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.rule-full-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

/* Browse Sub-view Switcher */
.subview-switcher {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-secondary);
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  width: fit-content;
}

.subview-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subview-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.subview-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

/* Sleek Workstation Universal Custom Scrollbars */
*,
html,
body,
.tab-panel,
.tab-panel.active,
#tab-search,
#tab-browse,
#tab-dci,
#tab-sifter,
.deck-stage,
.deck-rail,
.ws-scroll-pane,
.ws-table-container,
#search-results-list,
#pinned-sources-container,
#sifter-stream-feed,
#sifter-stream-container,
.log-terminal-body,
.info-modal-body,
.discovery-drawer-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.tab-panel::-webkit-scrollbar,
.tab-panel.active::-webkit-scrollbar,
#tab-search::-webkit-scrollbar,
#tab-browse::-webkit-scrollbar,
#tab-dci::-webkit-scrollbar,
#tab-sifter::-webkit-scrollbar,
.deck-stage::-webkit-scrollbar,
.deck-rail::-webkit-scrollbar,
.ws-scroll-pane::-webkit-scrollbar,
.ws-table-container::-webkit-scrollbar,
#search-results-list::-webkit-scrollbar,
#pinned-sources-container::-webkit-scrollbar,
#sifter-stream-feed::-webkit-scrollbar,
#sifter-stream-container::-webkit-scrollbar,
.log-terminal-body::-webkit-scrollbar,
.info-modal-body::-webkit-scrollbar,
.discovery-drawer-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.tab-panel::-webkit-scrollbar-track,
.tab-panel.active::-webkit-scrollbar-track,
#tab-search::-webkit-scrollbar-track,
#tab-browse::-webkit-scrollbar-track,
#tab-dci::-webkit-scrollbar-track,
#tab-sifter::-webkit-scrollbar-track,
.deck-stage::-webkit-scrollbar-track,
.deck-rail::-webkit-scrollbar-track,
.ws-scroll-pane::-webkit-scrollbar-track,
.ws-table-container::-webkit-scrollbar-track,
#search-results-list::-webkit-scrollbar-track,
#pinned-sources-container::-webkit-scrollbar-track,
#sifter-stream-feed::-webkit-scrollbar-track,
#sifter-stream-container::-webkit-scrollbar-track,
.log-terminal-body::-webkit-scrollbar-track,
.info-modal-body::-webkit-scrollbar-track,
.discovery-drawer-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.tab-panel::-webkit-scrollbar-thumb,
.tab-panel.active::-webkit-scrollbar-thumb,
#tab-search::-webkit-scrollbar-thumb,
#tab-browse::-webkit-scrollbar-thumb,
#tab-dci::-webkit-scrollbar-thumb,
#tab-sifter::-webkit-scrollbar-thumb,
.deck-stage::-webkit-scrollbar-thumb,
.deck-rail::-webkit-scrollbar-thumb,
.ws-scroll-pane::-webkit-scrollbar-thumb,
.ws-table-container::-webkit-scrollbar-thumb,
#search-results-list::-webkit-scrollbar-thumb,
#pinned-sources-container::-webkit-scrollbar-thumb,
#sifter-stream-feed::-webkit-scrollbar-thumb,
#sifter-stream-container::-webkit-scrollbar-thumb,
.log-terminal-body::-webkit-scrollbar-thumb,
.info-modal-body::-webkit-scrollbar-thumb,
.discovery-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.tab-panel::-webkit-scrollbar-thumb:hover,
.tab-panel.active::-webkit-scrollbar-thumb:hover,
#tab-search::-webkit-scrollbar-thumb:hover,
#tab-browse::-webkit-scrollbar-thumb:hover,
#tab-dci::-webkit-scrollbar-thumb:hover,
#tab-sifter::-webkit-scrollbar-thumb:hover,
.deck-stage::-webkit-scrollbar-thumb:hover,
.deck-rail::-webkit-scrollbar-thumb:hover,
.ws-scroll-pane::-webkit-scrollbar-thumb:hover,
.ws-table-container::-webkit-scrollbar-thumb:hover,
#search-results-list::-webkit-scrollbar-thumb:hover,
#pinned-sources-container::-webkit-scrollbar-thumb:hover,
#sifter-stream-feed::-webkit-scrollbar-thumb:hover,
#sifter-stream-container::-webkit-scrollbar-thumb:hover,
.log-terminal-body::-webkit-scrollbar-thumb:hover,
.info-modal-body::-webkit-scrollbar-thumb:hover,
.discovery-drawer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

.ws-table-container table thead th {
  position: sticky;
  top: 0;
  background: #111b2e;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}
