/* ============================================
   Bouncer Design System
   Bootstrap 5.3 Dark Theme + Custom Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #0D1017;
  --bg-secondary: #131620;
  --bg-tertiary: #1A1E2E;
  --bg-card: #151925;
  --color-primary: #22D3EE;
  --color-primary-hover: #06B6D4;
  --color-primary-dim: rgba(34, 211, 238, 0.15);
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-danger: #EF4444;
  --color-success: #22C55E;
  --color-warning: #EAB308;
  --color-info: #3B82F6;
  --neutral-50: #F8FAFC;
  --neutral-100: #F1F5F9;
  --neutral-300: #B0B8C9;
  --neutral-500: #6B7A90;
  --neutral-600: #4A5568;
  --neutral-700: #2D3548;
  --neutral-800: #1E2433;
  --neutral-900: #151A26;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow-primary: 0 0 20px rgba(34, 211, 238, 0.12), 0 0 40px rgba(34, 211, 238, 0.06);
  --gradient-hero: radial-gradient(ellipse 90% 60% at 50% -5%, rgba(34, 211, 238, 0.15) 0%, rgba(99, 102, 241, 0.08) 35%, transparent 65%);
  --gradient-card: linear-gradient(170deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  --gradient-threat: linear-gradient(90deg, #EF4444 0%, #F97316 100%);
}

/* --- Bootstrap Dark Theme Overrides --- */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg-primary);
  --bs-body-color: var(--neutral-300);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--neutral-700);
  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--color-primary-hover);
  --bs-emphasis-color: var(--neutral-50);
}

/* --- Base Styles --- */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--neutral-100);
  line-height: 1.3;
}

code, pre, .font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

/* --- Layout --- */
.section { padding: 4.5rem 0; }
@media (min-width: 992px) { .section { padding: 6.5rem 0; } }

.container-narrow {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 576px) { .container-narrow { padding: 0 1.5rem; } }
@media (min-width: 992px) { .container-narrow { padding: 0 2rem; } }

/* --- Max-width Utilities --- */
.max-w-sm { max-width: 32rem; }
.max-w-md { max-width: 42rem; }
.max-w-lg { max-width: 56rem; }

/* --- Responsive Typography --- */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neutral-50);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.5rem; } }

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--neutral-50);
}
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-50);
}
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }

.text-lg { font-size: 1.125rem; line-height: 1.75; }

/* --- Hero Checklist --- */
.hero-checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
  margin-top: 0.25em;
  line-height: 1;
  /* transform: translateY(-2px); */
}

/* --- Navbar --- */
.navbar-bouncer {
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--neutral-800);
  padding: 0;
  min-height: 4rem;
}

.navbar-bouncer .navbar-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.75rem 1rem;
}
@media (min-width: 576px) {
  .navbar-bouncer .navbar-shell {
    padding: 0 1.5rem;
  }
}
@media (min-width: 992px) {
  .navbar-bouncer .navbar-shell {
    padding: 0 2rem;
  }
}

.navbar-bouncer .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral-50);
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0.75rem 0;
}
.navbar-bouncer .navbar-brand:hover { color: var(--neutral-50); }
.navbar-bouncer .navbar-brand .dot { color: var(--color-primary); }

.navbar-bouncer .nav-link {
  color: var(--neutral-300);
  font-size: 0.875rem;
  font-family: var(--font-body);
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.navbar-bouncer .nav-link:hover,
.navbar-bouncer .nav-link:focus { color: #fff; }

.navbar-bouncer .navbar-toggler {
  border: none;
  color: var(--neutral-300);
  padding: 0.25rem;
}
.navbar-bouncer .navbar-toggler:focus { box-shadow: none; }

.navbar-bouncer .navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  width: 100%;
  border-top: 1px solid var(--neutral-800);
  padding: 1rem 0;
}
@media (min-width: 992px) {
  .navbar-bouncer .navbar-shell {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .navbar-bouncer .navbar-toggler {
    display: none;
  }
  .navbar-bouncer .navbar-collapse {
    flex-basis: auto;
    flex-grow: 0;
    width: auto;
    border-top: none;
    padding: 0;
  }
  .navbar-bouncer .navbar-collapse .navbar-nav {
    margin: 0;
    flex-wrap: nowrap;
  }
}

/* --- Navbar Dropdown --- */
.navbar-bouncer .dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.1);
  min-width: 10rem;
  margin-top: 0.5rem;
}
.navbar-bouncer .dropdown-item {
  color: var(--neutral-300);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar-bouncer .dropdown-item:hover,
.navbar-bouncer .dropdown-item:focus {
  background-color: var(--bg-card);
  color: #fff;
}

/* --- Buttons --- */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top:1.75em;
  padding: 0.7rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #06B6D4 100%);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  border: none;
  box-shadow: var(--shadow-glow-primary);
  min-height: 44px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.btn-cyber:hover {
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25), 0 0 48px rgba(34, 211, 238, 0.1);
  filter: brightness(1.05);
}
.btn-cyber.w-100 { width: 100%; }
.btn-cyber-sm { padding: 0.45rem 1.1rem; font-size: 0.8125rem; min-height: 36px; border-radius: 999px; margin-top: 0; }

/* --- Cards --- */
.card-dark {
  background: var(--gradient-card);
  border: 1px solid var(--neutral-700);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card-dark:hover::before { opacity: 1; }
a.card-dark:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.card-dark.card-dashed { border-style: dashed; }
.card-dark.card-highlight { border-color: rgba(34, 211, 238, 0.3); overflow: visible; }

/* --- Terminal --- */
.terminal {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--neutral-700);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--neutral-700);
  background: rgba(0, 0, 0, 0.15);
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background-color: var(--color-danger); }
.terminal-dot.yellow { background-color: var(--color-warning); }
.terminal-dot.green { background-color: var(--color-success); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 576px) { .terminal-body { padding: 1rem 1.25rem; font-size: 0.875rem; } }

.terminal-body .line {
  opacity: 1;
  white-space: pre-wrap;
  word-break: break-word;
  animation: line-reveal 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}
.terminal-body .line.prompt { color: var(--color-primary); }
.terminal-body .line.warning-text { color: var(--color-accent); }
.terminal-body .line.danger-text { color: var(--color-danger); font-weight: 600; }
.terminal-body .line.success-text { color: var(--color-success); }
.terminal-body .line.muted { color: var(--neutral-500); }

/* --- Demo Page --- */
.demo-toggle-group {
  display: inline-flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  overflow: hidden;
}
.demo-toggle {
  background: none;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neutral-400);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.demo-toggle:hover { color: var(--neutral-100); }
.demo-toggle.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-primary);
}
.demo-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neutral-200);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  height: 100%;
}
.demo-select:focus { outline: 1px solid var(--color-primary); }
.demo-terminal-box { min-height: 340px; }
.demo-output { min-height: 280px; }
.demo-example {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.demo-example:hover { border-color: var(--neutral-500); }
.demo-example.active {
  border-color: var(--color-primary);
  background: rgba(34, 211, 238, 0.05);
}
.demo-example-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--neutral-100);
  margin-bottom: 0.125rem;
}
.demo-example-desc {
  font-size: 0.8125rem;
  color: var(--neutral-400);
  margin-bottom: 0.375rem;
}

/* --- Badges --- */
.badge-bouncer {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1.5;
}
.badge-primary-outline { background: rgba(34,211,238,0.1); color: var(--color-primary); border: 1px solid rgba(34,211,238,0.2); }
.badge-primary-solid { background: var(--color-primary); color: var(--bg-primary); font-weight: 700; }
.badge-warning-solid { background: var(--color-warning); color: var(--bg-primary); font-weight: 700; }
.badge-danger-solid { background: var(--color-danger); color: #fff; font-weight: 700; }
.badge-success-solid { background: var(--color-success); color: var(--bg-primary); font-weight: 700; }

/* --- Inline Code --- */
.code-inline {
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  border: 1px solid var(--neutral-700);
}

.code-muted {
  background-color: var(--bg-tertiary);
  color: var(--neutral-300);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  border: 1px solid var(--neutral-700);
}

/* --- Install Command --- */
.install-cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 36rem);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: left;
  background-color: var(--bg-tertiary);
  color: var(--neutral-100);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--neutral-700);
  box-shadow: var(--shadow-glow-primary);
  user-select: all;
}
.install-cmd .install-cmd-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.install-cmd .prompt-char { color: var(--color-primary); }
.install-cmd .copy-btn {
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  border-radius: 4px;
  flex: 0 0 auto;
  align-self: flex-end;
  transition: color 0.15s ease;
}
.install-cmd .copy-btn:hover { color: var(--color-primary); }
.install-cmd-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; display: flex; align-items: center; }
.install-cmd-sm .copy-btn { margin-left: auto; }
.install-cmd-full .install-cmd { width: 100%; }
@media (max-width: 575.98px) {
  .install-cmd {
    padding: 0.875rem 1rem;
    align-items: flex-start;
  }
}

/* --- Stat Counter --- */
.stat-counter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

/* --- Step Circle --- */
.step-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.06);
}

/* --- Price Amount --- */
.price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--neutral-50);
}

/* --- Recommended Badge Position --- */
.card-recommended-badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
}

/* --- Link Defaults ---
   Bootstrap's base `a {}` rule sets only typography, not color, so unclassed
   links inherit whatever color the parent uses. Opt every link into the
   brand cyan by default; element-specific overrides (.breadcrumb-nav a,
   .footer-bouncer a, .docs-sidebar a) still win via specificity. */
a {
  color: var(--color-primary);
}
a:hover {
  color: var(--color-primary-hover);
}

/* --- Color Utilities --- */
.text-cyan { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-neutral-50 { color: var(--neutral-50); }
.text-neutral-100 { color: var(--neutral-100); }
.text-neutral-300 { color: var(--neutral-300); }
.text-neutral-500 { color: var(--neutral-500); }
.text-neutral-700 { color: var(--neutral-700); }
.text-danger { color: var(--color-danger) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }

/* --- Background Utilities --- */
.bg-dark-secondary { background-color: var(--bg-secondary); }
.bg-dark-tertiary { background-color: var(--bg-tertiary); }
.bg-gradient-hero { background: var(--gradient-hero); }

/* --- Alternating Sections for Depth --- */
.section + .section:nth-child(even) { background-color: var(--bg-secondary); }

/* --- Border Utilities --- */
.border-neutral-700 { border-color: var(--neutral-700) !important; }
.border-neutral-800 { border-color: var(--neutral-800) !important; }

/* --- Text Gradient --- */
.text-gradient-threat {
  background: var(--gradient-threat);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Cloud Feature (dimmed) --- */
.pro-feature,
.cloud-feature-muted { opacity: 0.6; }

/* --- Divider --- */
.divider { border-top: 1px solid var(--neutral-700); }

/* --- Footer --- */
.footer-bouncer {
  border-top: 1px solid var(--neutral-700);
  padding: 2rem 0;
  background-color: var(--bg-secondary);
}
.footer-bouncer .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral-50);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.footer-bouncer .navbar-brand:hover { color: var(--neutral-50); }
.footer-bouncer .navbar-brand .dot { color: var(--color-primary); }
.footer-bouncer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-100);
  margin-bottom: 0.75rem;
}
.footer-bouncer a {
  color: var(--neutral-500);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bouncer a:hover { color: var(--neutral-300); }

/* --- Docs Sidebar --- */
.docs-sidebar { margin-bottom: 0.5rem; margin-top: -0.5rem; }
.docs-sidebar .sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.docs-sidebar-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.docs-sidebar h3 {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}
.docs-sidebar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.docs-sidebar-links li { margin: 0; }
.docs-sidebar a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--neutral-700);
  color: var(--neutral-300);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.docs-sidebar a:hover { color: #fff; background-color: var(--bg-tertiary); border-color: var(--neutral-600); }
@media (min-width: 992px) {
  .docs-sidebar { margin-bottom: 0; margin-top: 0; }
  .docs-sidebar .sidebar-inner {
    position: sticky;
    top: 5rem;
    gap: 1.5rem;
  }
  .docs-sidebar-section {
    display: block;
  }
  .docs-sidebar h3 {
    margin-bottom: 0.75rem;
  }
  .docs-sidebar-links {
    display: block;
  }
  .docs-sidebar-links li + li { margin-top: 0.25rem; }
  .docs-sidebar a {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: none;
  }
}

/* --- Tables --- */
.table-bouncer { color: var(--neutral-300); }
.table-bouncer thead th { color: var(--neutral-500); font-weight: 400; border-bottom-color: var(--neutral-700); }
.table-bouncer td, .table-bouncer th { border-color: var(--neutral-800); }

/* --- Check Lists --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--neutral-300);
}
.check-list .check { color: var(--color-success); margin-top: 0.125rem; flex-shrink: 0; }
.check-list .cross { color: var(--neutral-500); margin-top: 0.125rem; flex-shrink: 0; }
.check-list .star { color: var(--color-primary); margin-top: 0.125rem; flex-shrink: 0; }

/* --- Audits --- */
.audits-page .container-narrow,
.audit-page .container-narrow {
  max-width: 1060px;
}

.breadcrumb-nav {
  font-size: 0.82rem;
  color: var(--neutral-600);
}
.breadcrumb-nav a {
  color: var(--neutral-500);
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  color: var(--neutral-300);
}
.breadcrumb-nav span {
  color: var(--neutral-600);
  margin: 0 0.35rem;
}

.pkg-header {
  padding: 2.5rem 0 1.5rem;
}
.pkg-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}
.pkg-desc {
  font-size: 0.95rem;
  color: var(--neutral-500);
  margin: 0.25rem 0 0;
}
.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
}
.pkg-meta strong {
  color: var(--neutral-100);
}
.audit-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--neutral-500);
}
.audit-meta-line a { color: var(--color-primary); }

.audit-facts-card {
  margin-top: 1.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(15, 23, 42, 0.96)),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.audit-facts-card .section-label {
  margin-bottom: 0.9rem;
}
.audit-facts-table {
  width: 100%;
  border-collapse: collapse;
}
.audit-facts-table th,
.audit-facts-table td {
  padding: 0.62rem 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.audit-facts-table tr:last-child th,
.audit-facts-table tr:last-child td {
  border-bottom: none;
}
.audit-facts-table th {
  width: 118px;
  padding-right: 1.25rem;
  color: var(--neutral-500);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.audit-facts-table td {
  color: var(--neutral-100);
  font-size: 0.92rem;
}
.audit-fact-value,
.audit-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.audit-fact-value {
  color: var(--neutral-50);
}
.audit-time {
  color: var(--neutral-50);
}
.audit-lag-value {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.audit-lag-pending {
  background: rgba(107, 122, 144, 0.12);
  border-color: rgba(107, 122, 144, 0.18);
  color: var(--neutral-300);
}

.badge-risk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-allow {
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
}
.badge-warn {
  background: rgba(234, 179, 8, 0.12);
  color: var(--color-warning);
}
.badge-block {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
}
.badge-pending {
  background: rgba(107, 122, 144, 0.1);
  color: var(--neutral-500);
}
.badge-age-warn {
  background: rgba(234, 179, 8, 0.12);
  color: var(--color-warning);
  text-transform: none;
  letter-spacing: 0;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.risk-dot-allow {
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.risk-dot-warn {
  background: var(--color-warning);
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}
.risk-dot-block {
  background: var(--color-danger);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  animation: pulse-danger-dot 2s infinite;
}
.risk-dot-pending {
  background: var(--neutral-600);
}
.risk-dot-loading {
  background: var(--neutral-600);
  animation: pulse-loading-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-loading-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes pulse-danger-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.72); }
}

.rec-banner {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.rec-allow {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.rec-warn {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.2);
}
.rec-pending {
  background: rgba(107, 122, 144, 0.08);
  border: 1px solid rgba(107, 122, 144, 0.2);
}
.rec-block {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.rec-banner p {
  margin: 0;
  font-size: 0.92rem;
}
.audit-version-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.audit-version-date {
  font-size: 0.82rem;
  color: var(--neutral-500);
}
.audit-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.audit-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.audit-section-header {
  font-size: 0.85rem;
  color: var(--neutral-400);
  margin-bottom: 0.75rem;
}
.audit-age-warn {
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.18);
}
.audit-age-warning p {
  margin: 0;
  font-size: 0.9rem;
}

.audit-summary-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.audit-summary-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--neutral-300);
}

.audit-positive-tag {
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.audit-positive-tag p {
  margin: 0;
  font-size: 0.9rem;
}

.audit-card-section {
  background: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.audit-card-allow {
  border-color: rgba(34, 197, 94, 0.15);
}
.audit-card-warn {
  border-color: rgba(234, 179, 8, 0.2);
}
.audit-card-block {
  border-color: rgba(239, 68, 68, 0.25);
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-500);
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.evidence-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--neutral-700);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neutral-500);
}
.evidence-code {
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: var(--neutral-300);
}
.evidence-code-block {
  color: var(--color-danger);
}
.evidence-code-warn {
  color: var(--color-warning);
}
.evidence-explanation {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--neutral-700);
  font-size: 0.84rem;
  color: var(--neutral-300);
}

.pkg-tabs {
  border-bottom: 1px solid var(--neutral-700);
  margin-bottom: 1.75rem;
}
.pkg-tabs .nav-link {
  color: var(--neutral-500);
  border: none;
  padding: 0.55rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
}
.pkg-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  background: none;
}
.pkg-tabs .nav-link:hover {
  color: var(--neutral-100);
}

.audit-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.audit-version-meta h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.audit-version-meta span {
  color: var(--neutral-600);
  font-size: 0.82rem;
}
.version-list {
  padding: 0;
  overflow: hidden;
}
.version-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--neutral-700);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.version-item:last-child {
  border-bottom: none;
}
a.version-item:hover {
  background: var(--bg-tertiary);
}
.version-item .ver {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--neutral-100);
  min-width: 80px;
}
.version-item .ver-summary {
  font-size: 0.82rem;
  color: var(--neutral-500);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.version-item .ver-date {
  font-size: 0.75rem;
  color: var(--neutral-600);
}

/* Audit split layout: version sidebar + main content */
.audit-split { display: flex; gap: 0; }
.version-sidebar {
  width: 160px;
  min-width: 160px;
  border-right: 1px solid var(--neutral-700);
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.version-sidebar-list {
  overflow-y: auto;
  max-height: 360px;
}
.version-scroll-hint {
  display: none;
  text-align: center;
  padding: 0.25rem 0;
  color: var(--neutral-500);
  font-size: 0.7rem;
  border-top: 1px solid var(--neutral-700);
  cursor: pointer;
}
.version-scroll-hint::after {
  content: "\25BE  more";
}
.version-scroll-hint.visible {
  display: block;
}
.version-sidebar-label {
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.version-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--neutral-400);
  text-decoration: none;
  transition: background 0.1s;
}
.version-sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--neutral-200); }
.version-sidebar-item.active { background: rgba(99, 102, 241, 0.1); color: var(--color-primary); }
.version-sidebar-ver { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-sidebar-date { font-size: 0.68rem; color: var(--neutral-600); white-space: nowrap; }
.audit-main { flex: 1; min-width: 0; padding-left: 1.25rem; }
@media (max-width: 768px) {
  .audit-split { flex-direction: column; }
  .version-sidebar { width: 100%; min-width: 0; max-height: none; border-right: none; border-bottom: 1px solid var(--neutral-700); display: block; }
  .version-sidebar-list { display: flex; overflow-x: auto; flex-wrap: nowrap; overflow-y: visible; max-height: none; }
  .version-scroll-hint { display: none !important; }
  .version-sidebar-label { display: none; }
  .version-sidebar-item { white-space: nowrap; padding: 0.4rem 0.6rem; }
  .version-sidebar-date { display: none; }
  .audit-main { padding-left: 0; padding-top: 1rem; }
}

/* Diff viewer - side by side */
.diff-main-header {
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--neutral-400);
  margin-bottom: 0.75rem;
}
.diff-viewer { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5; }
.diff-file { border: 1px solid var(--neutral-700); border-radius: 6px; margin-bottom: 0.75rem; overflow: hidden; }
.diff-file-header {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--neutral-700);
  color: var(--neutral-300);
  user-select: none;
  cursor: pointer;
}
.diff-file-header::before { content: "\25BE "; color: var(--neutral-600); }
.diff-file-header.collapsed::before { content: "\25B8 "; }
.diff-file-header.diff-file-added { color: var(--color-success); }
.diff-file-header.diff-file-deleted { color: var(--color-danger); }
.diff-file-header.diff-file-modified { color: var(--color-primary); }
.diff-sides { display: flex; overflow-x: auto; }
.diff-side { flex: 1; min-width: 0; overflow-x: auto; }
.diff-side + .diff-side { border-left: 1px solid var(--neutral-700); }
.diff-side-label {
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  color: var(--neutral-600);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--neutral-700);
}
.diff-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.diff-table td {
  padding: 0 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-line-add td { background: rgba(34, 197, 94, 0.08); color: var(--color-success); }
.diff-line-del td { background: rgba(239, 68, 68, 0.08); color: var(--color-danger); }
.diff-line-empty td { color: var(--neutral-700); }
.diff-line-ctx td { color: var(--neutral-500); }
.diff-show-more {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin: 0;
  border: none;
  border-top: 1px solid var(--neutral-700);
  background: var(--bg-card);
  color: var(--color-primary);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}
.diff-show-more:hover { background: var(--neutral-800); }

.dep-tree-shell {
  background: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 10px;
  position: relative;
  padding: 1.5rem;
}
.dep-tree-root-wrap {
  display: flex;
  justify-content: center;
}
.dep-tree-root {
  min-width: 220px;
  max-width: 100%;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dep-tree-root-title {
  color: var(--neutral-50);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}
.dep-tree-root-meta {
  margin-top: 0.25rem;
  color: var(--neutral-500);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.dep-tree-trunk {
  width: 1px;
  height: 1.2rem;
  margin: 0 auto;
  background: rgba(148, 163, 184, 0.28);
}
.dep-tree-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.2rem;
}
.dep-tree-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}
.dep-tree-node {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-700);
  background: rgba(15, 23, 42, 0.68);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.dep-tree-node::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  width: 1px;
  height: 1.2rem;
  background: rgba(148, 163, 184, 0.2);
  transform: translateX(-50%);
}
.dep-tree-node:hover {
  transform: translateY(-1px);
  background: rgba(18, 28, 45, 0.92);
}
.dep-tree-node-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dep-tree-name {
  color: var(--neutral-50);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-word;
}
.dep-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: var(--neutral-500);
  font-size: 0.7rem;
}
.dep-tree-meta span {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.02);
}
.dep-tree-node-allow {
  border-color: rgba(34, 197, 94, 0.22);
}
.dep-tree-node-warn {
  border-color: rgba(234, 179, 8, 0.22);
}
.dep-tree-node-block {
  border-color: rgba(239, 68, 68, 0.28);
}
.dep-tree-node-pending {
  border-color: rgba(148, 163, 184, 0.16);
}
.dep-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 1rem;
}
.dep-list-compact li {
  padding: 0.3rem 0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  break-inside: avoid;
}
.dep-list-compact .dep-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neutral-100);
}
.dep-type-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.dep-type-runtime {
  background: rgba(34, 211, 238, 0.08);
  color: var(--color-primary);
}
.dep-type-optional,
.dep-type-dev {
  background: rgba(167, 139, 250, 0.08);
  color: #a78bfa;
}

/* --- Nav Search --- */
.nav-search-item {
  position: relative;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 999px;
  height: 32px;
  transition: width 0.2s ease, border-color 0.2s;
  overflow: hidden;
  width: 32px;
}
.nav-search.expanded {
  width: 240px;
  border-color: var(--color-primary);
}
.nav-search-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--neutral-400);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-search-btn:hover { color: #fff; }
.nav-search.expanded .nav-search-btn { color: var(--color-primary); }
.nav-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--neutral-100);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 0 0.4rem 0 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-search.expanded .nav-search-input { opacity: 1; }
.nav-search-input::placeholder { color: var(--neutral-600); }
.nav-search-input:focus-visible { outline: none; }
.audit-spinner {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid var(--neutral-700);
  border-top-color: var(--neutral-300);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.search-spinner {
  flex-shrink: 0;
  color: var(--neutral-500);
  margin-right: 0.5rem;
  animation: spin 0.7s linear infinite;
}
.search-spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  margin-top: 6px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.nav-search-results.active { display: block; }
.nav-search-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--neutral-100);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.1s;
}
.nav-search-result:hover,
.nav-search-result.active {
  background: rgba(34, 211, 238, 0.08);
}
.nav-search-result .search-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--neutral-500);
}
.nav-search-empty {
  padding: 0.65rem 0.75rem;
  color: var(--neutral-500);
  font-size: 0.84rem;
}

.audit-index-list {
  display: grid;
  gap: 1rem;
}
.audit-index-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--neutral-700);
  border-radius: 12px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.audit-index-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.22);
  background: linear-gradient(180deg, rgba(21, 25, 37, 1), rgba(26, 30, 46, 0.95));
}
.audit-index-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.audit-index-card .audit-summary-line {
  color: var(--neutral-100);
  margin: 0.8rem 0 0.9rem;
  font-size: 0.95rem;
}
.audit-index-card .audit-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--neutral-500);
}
.audit-index-card .audit-index-meta span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.5);
}

.audit-note-list {
  margin: 0;
  padding: 0;
}
.audit-note-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--neutral-700);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.audit-note-item:last-child {
  border-bottom: none;
}
.audit-note-bullet {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

@media (max-width: 767px) {
  .pkg-name {
    font-size: 1.8rem;
  }
  .audit-facts-card {
    padding: 1rem;
  }
  .audit-facts-table,
  .audit-facts-table tbody,
  .audit-facts-table tr,
  .audit-facts-table th,
  .audit-facts-table td {
    display: block;
    width: 100%;
  }
  .audit-facts-table th {
    padding-bottom: 0.2rem;
    border-bottom: none;
  }
  .audit-facts-table td {
    padding-top: 0;
  }
  .audit-facts-table tr {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }
  .audit-facts-table tr:last-child {
    border-bottom: none;
  }
  .dep-tree-root {
    min-width: 0;
    width: 100%;
  }
  .dep-tree-grid::before {
    left: 1rem;
    right: 1rem;
  }
  .dep-list-compact {
    column-count: 1;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Animations --- */
@keyframes line-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.12); }
  50% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.24); }
}

.animate-fade-in-up { animation: fade-in-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .terminal-body .line { opacity: 1; animation: none; }
  .animate-fade-in-up { animation: none; opacity: 1; transform: none; }
  .animate-pulse-glow { animation: none; }
}
