    :root {
      --virus-red: #EE003A;
      --toxic-cyan: #00F0D0;
      --glitch-teal: #009E8C;
      --error-magenta: #C00059;
      --terminal-gray: #3A3A42;
      --void-black: #050508;
      --noise-green-black: #0A1310;
      --crt-white: #E4E4E4;
      --glitch-cyan-lite: #8BFFF2;
      --error-red-lite: #FF4A64;
      font-family: "Courier New", monospace;
    }

  /* Use border-box everywhere to make width calculations include padding/border */
  * , *::before, *::after { box-sizing: border-box; }

    .content {
      padding: 20px;
      padding-left: 25px;
    }

    body {
      background: var(--void-black);
      margin: 0;
      color: var(--crt-white);
      letter-spacing: 0.03em;
    }

    .scanlines {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 2px,
        transparent 3px
      );
      z-index: 999;
    }

    header {
      padding: 20px;
      border-bottom: 4px solid var(--virus-red);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      color: var(--virus-red);
      font-size: 28px;
      text-transform: uppercase;
      padding: 4px 8px;
      border: 2px solid var(--virus-red);
    }

    nav a {
      color: var(--toxic-cyan);
      margin-left: 20px;
      text-decoration: none;
      font-size: 14px;
      border-bottom: 1px solid transparent;
    }
    nav a:hover {
      border-bottom: 1px solid var(--toxic-cyan);
    }

    .hero {
      padding: 80px 20px;
      border-bottom: 4px solid var(--virus-red);
      background: var(--noise-green-black);
      text-align: center;
    }

    .hero h1 {
      font-size: 42px;
      color: var(--virus-red);
      text-shadow: 0 0 12px var(--virus-red);
      margin-bottom: 20px;
    }

    .hero p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 16px;
      color: var(--glitch-cyan-lite);
    }

    .section {
      padding: 40px 20px;
    }

    .sections {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      border-top: 4px solid var(--virus-red);
    }

    .panel {
      padding: 40px;
      border: 2px solid var(--terminal-gray);
      border-right: none;
      position: relative;
      overflow: hidden;
      transition: transform 180ms ease, box-shadow 180ms ease;
      will-change: transform;
    }

/* Ensure panels used as anchors behave like blocks and don't show default link styles */
.panel[href] {
  display: block;
  color: inherit;
  text-decoration: none;
}

    .panel:nth-child(odd) {
      background: #0C0F12;
    }

    .panel:nth-child(even) {
      background: #0E1418;
    }

/* Decorative hover graphic for panels */
.panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% -30% 60%;
  background: radial-gradient(closest-side at 10% 20%, rgba(0,240,208,0.06), transparent 10%),
              linear-gradient(135deg, rgba(238,0,58,0.03), rgba(0,158,140,0.02));
  transform: rotate(-6deg) scale(1.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  mix-blend-mode: screen;
}
.panel::after {
  /* subtle top-right accent line */
  content: "";
  position: absolute;
  top: 12px; right: -40px;
  width: 140px; height: 140px;
  background: conic-gradient(from 200deg at 50% 50%, rgba(0,240,208,0.06), transparent 40%);
  opacity: 0;
  transform: rotate(8deg) scale(0.9);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.panel:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,0.6), 0 6px 20px rgba(238,0,58,0.02);
  /* slight warm border hint without changing core palette */
  border-color: rgba(238,0,58,0.02);
}
.panel:hover::before {
  /* expand sheen to cover the full panel on hover, keep colors subtle */
  inset: -6% -5% -6% -5%;
  background: linear-gradient(90deg, rgba(238,0,58,0.06), rgba(238,0,58,0.04) 35%, rgba(0,158,140,0.01) 80%);
  opacity: 1;
  transform: none;
}
.panel:hover::after {
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 4px 8px rgba(238,0,58,0.04));
}

/* Neutralize old-school hyperlink appearance inside panels */
.panel a, .panel a:link, .panel a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}
.panel a:hover, .panel a:active {
  color: var(--glitch-cyan-lite);
  text-decoration: none;
}
.panel a:focus {
  outline: 2px solid rgba(0,240,208,0.14);
  outline-offset: 2px;
}

    h2{
      color: var(--toxic-cyan);
      font-size: 28px;
      margin-bottom: 20px;
      border-bottom: 2px dashed #333;
    }

    .panel h2 {
      color: var(--toxic-cyan);
      font-size: 22px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

        .panel .h2 a{
      color: var(--toxic-cyan);
      font-size: 14px;
      border-bottom: 1px solid transparent;
      text-decoration: none;
    }

        .panel .h2 a:hover {
      border-bottom: 1px solid var(--toxic-cyan);
    }

    h3{
      color: var(--error-magenta);
      font-size: 18px;
      margin-bottom: 8px;
    }

    h4{
      color: var(--glitch-cyan-lite);
      font-size: 16px;
      margin-bottom: 6px;
      font-weight: 600;
    }

    .panel p {
      color: var(--crt-white);
      font-size: 14px;
    }

/* Leading <strong> labels: small rounded badge to emphasize categories across pages 🔖 */
/* Applies to paragraphs that begin with a <strong> (e.g., "<p><strong>Agility:</strong> ...</p>") */
strong {
  display: inline-block; /* keeps it inline with text */
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0C0F12, #0E1113);
  color: var(--toxic-cyan);
  border: 2px solid rgba(255,255,255,0.04);
  border-left: 6px solid rgba(0,240,208,0.06);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin-right: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* Hover/focus accessibility */
strong:hover, p > strong:focus {
  border-color: rgba(238,0,58,0.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 18px rgba(0,240,208,0.06);
}

/* Slightly smaller badge on narrow screens */
@media (max-width: 600px) {
  strong:first-child { padding: 5px 8px; font-size: 12px; border-radius: 6px; }
}

    /* Distro buttons — reuse panel behavior but full-width and slightly different accents */
    .distros {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 16px;
    }

    .panel.distro {
      display: block;
      width: 100%;
      box-sizing: border-box;
      padding: 28px 36px;
      border-left: 6px solid rgba(0,240,208,0.06);
    }

    .panel.distro:nth-child(odd) {
      background: linear-gradient(180deg, #091012, #0b1114);
    }
    .panel.distro:nth-child(even) {
      background: linear-gradient(180deg, #0b0f11, #101416);
    }

    .panel.distro::before {
      inset: -10% -5% -10% 70%;
      background: radial-gradient(closest-side at 15% 30%, rgba(0,240,208,0.04), transparent 18%),
                  linear-gradient(135deg, rgba(238,0,58,0.02), rgba(0,158,140,0.01));
      transform: rotate(-4deg) scale(1.02);
    }
    .panel.distro::after {
      top: 8px;  right: -20px; 
      width: 110px; height: 110px;
      background: conic-gradient(from 220deg at 50% 50%, rgba(238,0,58,0.04), transparent 25%);
    }

    /* Distro hover: extend red sheen across whole button and intensify color */
    .panel.distro:hover {
      transform: translateY(-8px) scale(1.01);
      box-shadow: 0 24px 60px rgba(238,0,58,0.06), 0 12px 28px rgba(0,0,0,0.6);
      border-left-color: var(--virus-red);
    }
    .panel.distro:hover::before {
      /* expand the sheen to cover full width and make the red portion stronger */
      inset: -6% -5% -6% -5%;
      background: linear-gradient(90deg, rgba(238,0,58,0.14), rgba(238,0,58,0.10) 35%, rgba(0,158,140,0.02) 80%);
      opacity: 1;
      transform: none;
    }
    .panel.distro:hover::after {
      opacity: 1;
      transform: none;
      filter: drop-shadow(0 6px 10px rgba(238,0,58,0.08));
    }

    .panel.distro h2 { font-size: 18px; margin-bottom: 6px; }
    .panel.distro p { font-size: 13px; color: #dfeff0; }

    .tab {
      font-size: 42px;
    }

    .tabcontent {
      display: none;
      padding: 0px 40px;
    }

    .tab button.active {
      border: 5px solid var(--error-magenta);
      background-color: var(--terminal-gray);
    }
    /* Class page card (distinct, easy-to-read layout) */
    .class-card {
      background: linear-gradient(180deg, rgba(9,12,14,0.6), rgba(6,8,10,0.55));
      border: 2px solid var(--terminal-gray);
      padding: 28px;
      margin: 18px 0;
      box-shadow: 0 12px 40px rgba(0,0,0,0.6);
      position: relative;
      border-left: 6px solid rgba(238,0,58,0.04);
    }
    .class-header h2 { color: var(--virus-red); font-size: 26px; margin: 0 0 8px 0; }
    .class-header .lead { color: var(--glitch-cyan-lite); margin-bottom: 12px; max-width: 80ch; }
    .class-summary { display:flex; gap:10px; margin-bottom: 12px; flex-wrap:wrap; }
    .chip { background: rgba(255,255,255,0.02); padding:6px 10px; border-radius:6px; border:1px solid rgba(255,255,255,0.02); font-size:13px; color:var(--glitch-cyan-lite); }

    /* Left/Right class navigation buttons */
    .class-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 56px; height: 56px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: rgba(10,12,14,0.8);
      border: 2px solid rgba(255,255,255,0.03);
      color: var(--toxic-cyan);
      text-decoration: none;
      transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
      z-index: 10;
    }
    .class-nav.left { left: -28px; }
    .class-nav.right { right: -28px; }
    .class-nav svg { width: 18px; height: 18px; stroke: currentColor; }
    .class-nav:hover {
      transform: translateY(-50%) scale(1.06);
      background: rgba(238,0,58,0.06);
      color: var(--virus-red);
      border-color: rgba(238,0,58,0.06);
    }

    /* Tabs above the class card */
    .class-tabs {
      display:flex; align-items:center; gap:12px; margin:18px 0; position:relative;
    }
    .class-tabs .tab {
      background: transparent; border: none; color: var(--glitch-cyan-lite); padding:8px 12px; font-size:14px; cursor:pointer; border-bottom:2px solid transparent;
    }
    .class-tabs .tab.active, .class-tabs .tab[aria-selected="true"] {
      color: var(--virus-red);
      border-bottom-color: var(--virus-red);
      font-weight:700;
    }
    .tab-panels { margin-top: 8px; }
    .tab-panel { padding-top: 8px; }

    /* Small arrows for switching tabs */
    .tab-arrow {
      margin-left: auto; /* push to right */
      width:44px; height:36px; display:flex; align-items:center; justify-content:center; gap:6px; background:transparent; border:2px solid rgba(255,255,255,0.02); color:var(--toxic-cyan); border-radius:6px; cursor:pointer; transition: transform 120ms ease, background 120ms ease, color 120ms ease;
    }
    .tab-arrow svg { width:14px; height:14px; stroke: currentColor; }
    .tab-arrow:hover { transform:scale(1.05); background: rgba(238,0,58,0.04); color: var(--virus-red); border-color: rgba(238,0,58,0.06); }

    @media (max-width:900px) {
      .class-tabs { gap:8px; }
      .tab-arrow { width:36px; height:36px; }
    }

    /* Advancement table (levels 1-10) */
    .advancement { margin-top: 18px; background: linear-gradient(180deg, rgba(8,10,12,0.45), rgba(7,9,11,0.42)); border: 1px solid rgba(255,255,255,0.03); padding: 16px; border-left: 6px solid rgba(238,0,58,0.04); border-radius:8px; }
    .advancement h3 { margin:0 0 8px 0; color:var(--virus-red); }
    .adv-lead { color:var(--glitch-cyan-lite); margin:0 0 12px 0; font-size:13px; }

    .adv-grid { display:grid; grid-template-columns: repeat(10, 1fr); gap:8px; }
    .adv-level { background:#0B0D0E; border:1px solid rgba(255,255,255,0.03); padding:8px; border-radius:6px; text-align:center; font-size:13px; }
    .adv-level .lvl-num { font-weight:700; color:var(--virus-red); font-size:16px; margin-bottom:6px; }
    .adv-level .lvl-blurb { color:var(--crt-white); font-size:12px; }

    @media (max-width: 1100px) { .adv-grid { grid-template-columns: repeat(5, 1fr); } }
    @media (max-width: 700px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } .adv-level .lvl-num { font-size:14px;} }
    @media (max-width: 420px) { .adv-grid { grid-template-columns: 1fr; } }
    footer {
      padding: 20px;
      border-top: 4px solid var(--virus-red);
      text-align: center;
      font-size: 12px;
      color: var(--glitch-teal);
    }

/* Table of Contents (right-side) */
.toc-container {
  position: fixed;
  right: 24px;
  top: 140px;
  width: 220px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  background: rgba(10,12,14,0.9);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px;
  z-index: 1000;
  border-left: 4px solid var(--virus-red);
}
.toc-container h4 {
  margin: 0 0 8px 0;
  color: var(--toxic-cyan);
  font-size: 14px;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 6px 0; }
.toc-list a { color: var(--glitch-cyan-lite); text-decoration: none; font-size: 13px; }
.toc-list a:hover { text-decoration: underline; }
.toc-list a.active { color: var(--virus-red); font-weight: bold; }

/* Re-usable "Go back" button (styled like a small panel link) */
.toc-go-back {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  text-align: center;
  background: linear-gradient(180deg, #0C0F12, #0E1418);
  border: 2px solid var(--terminal-gray);
  color: var(--toxic-cyan);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
  box-shadow: none;
}
.toc-go-back:focus { outline: 2px solid rgba(0,240,208,0.12); outline-offset: 2px; }
.toc-go-back:hover, .toc-go-back:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  color: var(--virus-red);
  background: linear-gradient(180deg, #0E1113, #121416);
  border-left-color: var(--virus-red);
}

/* When fixed (positioned under the TOC), ensure it remains on top and uses box-sizing */
.toc-go-back.fixed { z-index: 1300; box-sizing: border-box; margin-top: 0; }

/* Keep the default (inside-TOC) styles intact: they are block-level and fit the TOC column */
.toc-container .toc-go-back { display:block; }

/* Page-level previous/next navigation — boxy, larger, animated */
.page-nav { display:flex; gap:18px; align-items:stretch; margin-top:28px; }
.page-nav a { flex: 1 1 48%; display:flex; align-items:center; justify-content:center; padding:28px 22px; border-radius:6px; text-decoration:none; color: var(--toxic-cyan); background-image: radial-gradient(closest-side at 10% 20%, rgba(0,240,208,0.04), transparent 12%), linear-gradient(180deg, #0B0D0E, #0E1113); background-repeat: no-repeat, repeat; background-position: 10% 20%, 0 0; background-size: 40% 60%, cover; border: 3px solid rgba(255,255,255,0.04); font-weight:800; font-size:16px; letter-spacing:0.6px; text-transform:uppercase; transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms, border-color 220ms, background-size 260ms ease; position:relative; overflow:hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.45); }
.page-nav a:focus { outline: 2px solid rgba(0,240,208,0.14); outline-offset: 3px; }

/* Prev/Next accents and layout */
.page-nav a.prev { justify-content:flex-start; padding-left:28px; border-left-width:8px; border-left-style:solid; border-left-color: rgba(0,240,208,0.08); }
.page-nav a.next { justify-content:flex-end; padding-right:28px; border-right-width:8px; border-right-style:solid; border-right-color: rgba(238,0,58,0.04); }

/* Inline arrows tied to text so they move together */
.page-nav a.prev::before { content: '◀'; display:inline-block; margin-right:12px; font-size:18px; transform: translateX(0); transition: transform 160ms ease; vertical-align:middle; color: currentColor; }
.page-nav a.next::after { content: '▶'; display:inline-block; margin-left:12px; font-size:18px; transform: translateX(0); transition: transform 160ms ease; vertical-align:middle; color: currentColor; }

/* Hover: simple lift + cyber glow */
.page-nav a:hover, .page-nav a:focus { transform: translateY(-6px); transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms, background 220ms, border-color 220ms; box-shadow: 0 30px 60px rgba(0,0,0,0.6); color: var(--virus-red); background-image: radial-gradient(closest-side at 10% 20%, rgba(0,240,208,0.06), transparent 18%), linear-gradient(180deg, #0E1113, #121416); background-size: 60% 80%, cover; }
.page-nav a.prev:hover, .page-nav a.prev:focus { box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 28px rgba(0,240,208,0.12); border-color: rgba(0,240,208,0.12); }
.page-nav a.next:hover, .page-nav a.next:focus { box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 28px rgba(238,0,58,0.10); border-color: rgba(238,0,58,0.06); }
.page-nav a:hover::before, .page-nav a:focus::before { /* noop kept for compatibility */ }

/* Arrow nudge on hover for subtle motion */
.page-nav a.prev:hover::before { transform: translateX(-4px); }
.page-nav a.next:hover::after { transform: translateX(4px); }

/* Stacked / full-width on small screens */
@media (max-width: 900px) {
  .page-nav { flex-direction: column; align-items:stretch; gap:12px; }
  .page-nav a { flex: 1 1 auto; width:100%; padding:20px 18px; text-align:center; }
}


/* Responsive: hide TOC on small screens and show a small toggle */
@media (max-width: 900px) {
  .toc-container { display: none; }
}

/* Prevent main content from flowing under the TOC on larger screens */
@media (min-width: 901px) {
  main.container { margin-right: 300px; }
}

/* COMP card grid */
.comp-grid {
  display: grid;
  /* compact card width: auto-fit columns up to 240px; center the grid on wide screens */
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  justify-content: center;
  justify-items: center;
  gap: 16px;
  margin-top: 18px;
}
.comp-card {
  background: #0B0D0E;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 14px;
  border-left: 4px solid var(--glitch-teal);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, border-left-color 0.15s ease;
}
.comp-card:hover { transform: translateY(-6px); border-left-color: var(--toxic-cyan); }
.comp-card h3 { margin: 0 0 8px 0; color: var(--virus-red); font-size: 18px; }
.comp-card p { margin: 0 0 10px 0; font-size: 13px; color: var(--crt-white); }
.comp-features { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--glitch-cyan-lite); }
.comp-features li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,0.02); }
.comp-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.02); color: var(--toxic-cyan); font-size: 12px; }



  /* Small chip data card (compact, placeable) */
  .chip-ref { color: var(--toxic-cyan); text-decoration: underline; cursor: pointer; }
  .chip-card {
    display: inline-block; /* so it can be placed inline or in lists */
    max-width: 360px;
    background: #0B0D0E;
    border: 1px solid rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-left: 4px solid var(--glitch-teal);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    font-size: 13px;
    margin-left: 8px;
    vertical-align: middle;
  }
  .chip-card h4 { margin:0 0 6px 0; color:var(--virus-red); font-size:15px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
  .chip-card .chip-badge { font-size:11px; padding:3px 6px; }
  .chip-card .chip-type { color:var(--glitch-cyan-lite); font-size:12px; margin-bottom:6px; }  .chip-card .weapon-info { display:flex; flex-wrap:wrap; gap:6px 8px; margin-bottom:6px; }
  .chip-card .weapon-info .weapon-attr { background: linear-gradient(180deg, #0C0F12, #0E1113); color:var(--glitch-cyan-lite); font-size:12px; padding:4px 8px; border-radius:6px; border:1px solid rgba(255,255,255,0.02); white-space:nowrap; font-weight:700; }  .chip-card .chip-desc { color:var(--crt-white); margin:0; }

  /* Optional smaller, popover style (use data-mode="popover") */
  .chip-card.popover {
    display:block; position:absolute; z-index:200; width:300px; margin-left:0; box-shadow:0 12px 40px rgba(0,0,0,0.75);
  }

/* Responsive comp-grid column fallbacks */
@media (max-width: 1200px) {
  .comp-grid { grid-template-columns: repeat(3, 240px); }
}
@media (max-width: 900px) {
  .comp-grid { grid-template-columns: repeat(2, 220px); }
  .toc-container { display: none; }
  main.container { margin-right: 0; }
}
@media (max-width: 480px) {
  .comp-grid { grid-template-columns: 1fr; }
}

/* Corporation entry styles (Antiqua example) */
.corp-entry {
  margin: 18px 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(6,8,10,0.45), rgba(8,10,12,0.4));
  border-left: 6px solid var(--glitch-teal);
  border-radius: 8px;
}
.corp-header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.corp-header h3 { margin:0; color:var(--virus-red); font-size:18px; }
.corp-quote { font-style:italic; color:var(--error-red-lite); font-size:13px; opacity:0.95; }
.corp-body { display:flex; gap:20px; margin-top:12px; align-items:flex-start; }
.corp-content { flex:1; min-width:0; }
.corp-content p { margin:8px 0; }
.corp-meta { flex:0 0 260px; width:260px; text-align:right; background: rgba(255,255,255,0.02); padding:10px; border-radius:6px; border:1px solid rgba(255,255,255,0.02); color:var(--glitch-cyan-lite); font-size:13px; }
.corp-meta p { margin:8px 0; }
.corp-meta p strong {color:#C00059}

@media (max-width: 900px) {
  .corp-body { flex-direction:column; }
  .corp-meta { width:100%; text-align:left; flex: none; }
  .corp-header { flex-direction:column; align-items:flex-start; }
}

/* Chips Table Styles */
.chips-container {
  margin-top: 24px;
}

/* Controls styled to match hero block: stacked rows */
#chips-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--noise-green-black);
  border-top: 4px solid var(--virus-red);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.02);
  border-radius: 6px;
}

#chips-controls > * { width: 100%; }

.chips-search { flex: 1; min-width: 0; max-width: 100%; }
.chips-search-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(10,12,14,0.92);
  border: 1px solid rgba(140,255,242,0.12);
  color: var(--crt-white);
  font-size: 14px;
  border-radius: 6px;
}
.chips-search-input { box-sizing: border-box; }
.chips-search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,240,208,0.06); border-color: var(--toxic-cyan); }

.chips-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-item { min-width: 140px; }
.chips-filter-select { width: 160px; padding: 8px 8px; border-radius: 6px; background: rgba(8,10,12,0.9); color: var(--crt-white); border: 1px solid rgba(255,255,255,0.04); }
.chips-filter-select[multiple] { min-height: 86px; padding: 6px; }
.chips-filters-clear { margin-left: 6px; background: transparent; border: 1px solid rgba(255,255,255,0.04); color: var(--glitch-cyan-lite); padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.chips-filters-clear:hover { border-color: var(--toxic-cyan); color: var(--toxic-cyan); }

.chips-column-selector { display:flex; gap:10px; align-items:center; }
.chips-column-selector label { font-size:13px; color:var(--glitch-cyan-lite); }
.chips-column-selector input[type="checkbox"] { accent-color: var(--toxic-cyan); }

#chip-count { font-size: 13px; color: rgba(139,255,242,0.85); margin-top:6px; text-align: right; }

.chips-table-wrapper { background: rgba(5,6,8,0.6); border-radius:8px; padding:8px; box-shadow: 0 8px 30px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.03); max-height: 560px; overflow: auto; }
.chips-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.chips-table thead th { padding: 12px 14px; text-align:left; color:var(--crt-white); font-weight:700; background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.12)); border-bottom: 2px solid rgba(255,255,255,0.03); }
.chips-table th.sortable-header { color: var(--glitch-cyan-lite); }
.chips-table th .sort-indicator { margin-left:6px; color: var(--virus-red); }

.chips-table tbody tr { transition: background 140ms ease; border-bottom: 1px solid rgba(255,255,255,0.03); }
.chips-table tbody tr:hover { background: linear-gradient(90deg, rgba(0,240,208,0.02), rgba(238,0,58,0.01)); }

.chips-table td { padding: 10px 12px; color: var(--crt-white); vertical-align: top; }
.chip-source-badge { display:inline-block; padding:4px 8px; border-radius:999px; background: rgba(255,255,255,0.03); color: var(--toxic-cyan); font-size:12px; }
.chip-tag-badge { display:inline-block; margin:0 6px 6px 0; padding:4px 8px; border-radius:6px; font-size:11px; }

/* Responsive */
@media (max-width: 1100px) { .chips-table { min-width: 700px; } }
@media (max-width: 900px) {
  #chips-controls { flex-direction: column; }
  .chips-filter-select { width: 100%; }
  .chips-table { min-width: 640px; font-size:12px; }
}

.chips-pager { display:flex; gap:12px; align-items:center; justify-content:center; padding:8px 6px; }
.chips-pager button { background: transparent; color: var(--glitch-cyan-lite); border: 1px solid rgba(255,255,255,0.04); padding:6px 8px; border-radius:6px; cursor:pointer; }
.chips-pager button:disabled { opacity: 0.35; cursor: default; }
.chips-pageinfo { color: var(--glitch-cyan-lite); font-size: 13px; }

/* Table wrapper for overflow on small screens */
#chips-table-result { overflow-x: auto; }

/* Dev Log styles */
.devlog {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8,10,12,0.6), rgba(10,12,14,0.55));
  border-left: 6px solid var(--virus-red);
  border-radius: 8px;
}
.devlog h2 { margin: 0 0 8px 0; color: var(--toxic-cyan); font-size: 18px; }
.devlog p { color: rgba(139,255,242,0.7); margin: 0 0 12px 0; font-size: 13px; }