/* ==============================================================
   Herdr Plugins Survey Theme - Catppuccin Ink & Herdr.dev Tokens
   ============================================================== */

:root {
  --bg: #17171a;
  --panel: #1e1e22;
  --panel-hover: #26262b;
  --mass: #26262b;
  --ink: #eae8ee;
  --ink-soft: #cdccd2;
  --dim: #cdccd2;
  --faint: #b0afb6;
  --faint2: #908f96;
  --line: #26262b;
  --line2: #35353d;
  --line-strong: #454550;
  --spot: #cba6f7;
  --spot-ink: #17171a;
  --spot-glow: rgba(203, 166, 247, 0.15);
  
  --run: #5fae74;
  --wait: #d3a027;
  --idle: #5a615c;
  --done: #94e2d5;
  --danger: #c73e3e;
  
  --st-blocked: #c73e3e;
  --st-working: #b8860b;
  --st-idle: #2d9f52;
  --st-done: #94e2d5;

  --disp: "Archivo", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-lg: 10px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --gut: 28px;
  --nav-height: 58px;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Nav */
.hd-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem var(--gut);
  border-bottom: 1px solid var(--line);
  background: rgba(23, 23, 26, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hd-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--disp);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

.ram-icon {
  width: 1.6rem;
  height: 1.6rem;
  background: var(--spot);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.3;
  background: var(--spot-glow);
  color: var(--spot);
  border: 1px solid var(--spot);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  max-width: 170px;
}

@media (min-width: 1100px) {
  .nav-tag {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .hd-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem var(--gut);
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 2px;
    font-size: 0.82rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .hd-brand {
    font-size: 1.0rem;
    gap: 0.45rem;
  }
  .nav-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
  }
  .controls-bar {
    padding: 0.75rem 0.85rem;
  }
  .controls-bar.is-sticky {
    padding: 0.55rem 0.75rem;
  }
  .chips-toggle-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-link {
  color: var(--faint);
  transition: color 0.15s ease;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--line);
}

/* Main Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem var(--gut) 5rem;
}

/* Hero */
.hero {
  display: block;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  display: table;
  clear: both;
}

.hero-stats {
  float: right;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-left: 2rem;
  margin-bottom: 1.2rem;
}

.stat-box {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 95px;
}

.stat-box .num {
  font-family: var(--disp);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--spot);
  display: block;
  line-height: 1.15;
}

.stat-box .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  clear: both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.hero-badge:hover {
  background: var(--panel-hover);
  border-color: var(--spot);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(203, 166, 247, 0.15);
}

.hero-badge .badge-icon {
  font-size: 0.95rem;
}

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

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--spot);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: none;
}

.stat-box .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sticky Controls Bar & Collapsible Filters */
#controls-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
  visibility: hidden;
}

.controls-bar {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  position: sticky;
  top: var(--nav-height, 58px);
  z-index: 90;
  transition: background 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
}

.controls-bar.is-sticky {
  background: rgba(23, 23, 26, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 1px 0 var(--line);
  padding: 0.65rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border-color: rgba(203, 166, 247, 0.25);
}

.controls-main-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.chips-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  margin-left: auto;
}

.chips-toggle-btn:hover {
  background: var(--line);
  color: var(--ink);
  border-color: var(--line-strong);
}

.chips-toggle-btn.has-active {
  background: var(--spot-glow);
  color: var(--spot);
  border-color: var(--spot);
}

.chips-toggle-chevron {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.chips-toggle-btn.expanded .chips-toggle-chevron {
  transform: rotate(180deg);
}

.chips-active-badge {
  background: var(--spot);
  color: #111113;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Collapsible Filter Chips Wrapper */
.filter-chips-wrapper {
  width: 100%;
  max-height: 450px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.25s ease;
}

.filter-chips-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.65rem;
  margin-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.search-wrap {
  position: relative;
  flex: 1 1 18rem;
}

.search-wrap input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem 0.65rem 2.2rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-wrap input:focus {
  border-color: var(--spot);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint2);
  font-family: var(--mono);
}

.filter-select {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--spot);
}

.chip {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.chip:hover {
  border-color: var(--spot);
  color: var(--ink);
}

.chip.active {
  background: var(--spot);
  border-color: var(--spot);
  color: var(--bg);
  font-weight: 600;
}

/* Plugins Grid */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.25rem;
}

.plugin-card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  position: relative;
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: var(--spot);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.card-owner {
  color: var(--faint2);
  font-weight: 400;
}

.card-stars {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--wait);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(211, 160, 39, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(211, 160, 39, 0.25);
  flex-shrink: 0;
}

.card-desc {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.card-taxonomy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--spot);
}

.tax-broad {
  color: var(--spot);
  font-weight: 600;
}

.tax-sub {
  color: var(--faint);
  font-size: 0.72rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  background: var(--line);
  color: var(--faint);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.tag-badge.accent {
  background: var(--spot-glow);
  color: var(--spot);
  border: 1px solid rgba(203, 166, 247, 0.3);
}

.card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint2);
}

.card-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.card-metrics {
  display: flex;
  gap: 0.75rem;
}

/* Modal Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-drawer {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem var(--gut);
  border-bottom: 1px solid var(--line2);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.drawer-close {
  background: var(--mass);
  border: 1px solid var(--line2);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background: var(--line-strong);
}

.drawer-body {
  padding: 2rem var(--gut);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.detail-section h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--spot);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.code-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.code-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.code-box {
  background: #0d0d0f;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--spot);
  overflow-x: auto;
  user-select: all;
  margin-top: 0.5rem;
}

/* SQL Console View */
.sql-console {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sql-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sql-preset-btn {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  cursor: pointer;
  transition: all 0.12s ease;
}

.sql-preset-btn:hover {
  border-color: var(--spot);
  color: var(--spot);
}

.sql-input {
  width: 100%;
  height: 110px;
  background: #0d0d0f;
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #a6e3a1;
  font-family: var(--mono);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
}

.sql-input:focus {
  border-color: var(--spot);
}

.sql-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-run {
  background: var(--spot);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.btn-run:hover {
  opacity: 0.9;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  max-height: 480px;
}

.sql-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: left;
}

.sql-table th {
  background: var(--bg);
  color: var(--faint2);
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line2);
  position: sticky;
  top: 0;
}

.sql-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sql-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

/* Analytics View */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 1.5rem;
}

.analytics-card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.analytics-card h2 {
  font-family: var(--disp);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--spot);
  border-radius: 999px;
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-eyebrow {
    order: 1;
  }
  .hero h1 {
    order: 2;
    font-size: 2.1rem;
  }
  .hero p {
    order: 3;
  }
  .hero-stats {
    order: 4;
    float: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-left: 0;
    margin-top: 1.25rem;
    margin-bottom: 0;
  }
  .stat-box {
    min-width: 0;
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 580px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box .num {
    font-size: 1.4rem;
  }
  .hero-badges {
    flex-direction: column;
  }
}

/* Growth Timeline & ECharts Container */
.growth-controls {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.growth-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button-group {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.metric-btn, .scope-btn, .scale-btn {
  background: transparent;
  border: none;
  color: var(--faint2);
  font-family: var(--disp);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.metric-btn:hover, .scope-btn:hover, .scale-btn:hover {
  color: var(--ink);
  background: var(--line2);
}

.metric-btn.active, .scope-btn.active, .scale-btn.active {
  background: var(--spot);
  color: #111113;
  font-weight: 800;
}

.chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

.chart-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.chart-header-bar h2 {
  font-family: var(--disp);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rainbow-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff5e62, #ff9966, #ffdb58, #3ae374, #00d2d3, #54a0ff, #5f27cd);
  color: #000;
  font-weight: 700;
}

.chart-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
}

#echarts-growth-container {
  width: 100%;
  height: 580px;
}

/* Skip buttons & endpoint link styling */
.skip-btn {
  background: transparent;
  border: none;
  color: var(--faint2);
  font-family: var(--disp);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skip-btn:hover {
  color: var(--ink);
  background: var(--line2);
}

.skip-btn.active {
  background: var(--spot);
  color: #111113;
  font-weight: 800;
}

.endpoint-link {
  color: var(--spot);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.endpoint-link:hover {
  color: #fff;
  text-decoration: underline;
}

.endpoint-link span.ext-arrow {
  font-size: 0.7rem;
  color: var(--faint2);
}

#echarts-releases-container {
  width: 100%;
  height: 380px;
}

/* Wheel Zoom Checkbox Control */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint2);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.checkbox-label:hover {
  color: var(--ink);
  background: var(--line2);
  border-color: var(--line2);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--spot);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

/* ==============================================================
   Daily Reports Dispatch & Chronological Ledger Styles
   ============================================================== */

.reports-nav-sticky {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: rgba(23, 23, 26, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.reports-date-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reports-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint2);
}

.reports-feed {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Individual Day Dispatch Card */
.report-day-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-day-card:hover {
  border-color: var(--line2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.report-day-card.has-breakthroughs {
  border-color: rgba(250, 179, 135, 0.35);
}

/* Day Header */
.report-day-header {
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-date-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--disp);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.report-day-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--line2);
  color: var(--spot);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.report-badges-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiet-day-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint2);
  border: 1px solid var(--line);
}

.breakthrough-count-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(250, 179, 135, 0.15);
  color: #fab387;
  border: 1px solid rgba(250, 179, 135, 0.4);
  font-weight: 600;
}

/* Executive Summary Section */
.report-exec-card {
  padding: 1.5rem;
  background: rgba(203, 166, 247, 0.02);
  border-bottom: 1px solid var(--line);
}

.report-headline {
  font-family: var(--disp);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.report-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.report-chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.report-chip.spotlight {
  background: rgba(203, 166, 247, 0.12);
  border-color: rgba(203, 166, 247, 0.3);
  color: var(--spot);
  font-weight: 600;
}

.report-summary-text {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Breakthroughs Banner */
.report-breakthroughs-container {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line2);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.breakthrough-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.breakthrough-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(250, 179, 135, 0.15);
  border: 1px solid rgba(250, 179, 135, 0.35);
  color: #fab387;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Newspaper Long-Form Article Layout */
.report-newspaper-body {
  padding: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.report-newspaper-body h2,
.report-newspaper-body h3,
.report-newspaper-body h4 {
  font-family: var(--disp);
  color: var(--ink);
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.report-newspaper-body h2 {
  font-size: 1.4rem;
  color: #fff;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 0.4rem;
}

.report-newspaper-body h3 {
  font-size: 1.2rem;
  color: var(--spot);
}

.report-newspaper-body h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-top: 1.25rem;
}

.report-newspaper-body p {
  margin-bottom: 1rem;
}

.report-newspaper-body blockquote {
  border-left: 3px solid var(--spot);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.report-newspaper-body pre {
  background: #111114;
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  margin: 1rem 0;
}

.report-newspaper-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  color: var(--ink);
}

.report-newspaper-body a {
  color: var(--spot);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-newspaper-body a:hover {
  color: #fff;
}

.report-newspaper-body ul,
.report-newspaper-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.report-newspaper-body li {
  margin-bottom: 0.4rem;
}

/* Compact Plugin List Mode */
.report-compact-list {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compact-plugin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.compact-plugin-row:hover {
  background: var(--panel-hover);
  border-color: var(--line2);
}

.compact-plugin-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compact-plugin-name {
  font-family: var(--mono);
  font-weight: 600;
  color: #fff;
  font-size: 0.88rem;
}

.compact-plugin-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint2);
}

/* Loader */
.reports-loader {
  text-align: center;
  padding: 3rem 1rem;
}

.reports-loader-content {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--panel);
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.pulse-icon {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* Herdr Core Platform News Badges & Cards */
.badge-herdr-agent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a6e3a1;
  background: rgba(166, 227, 161, 0.12);
  border: 1px solid rgba(166, 227, 161, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.badge-herdr-release {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cba6f7;
  background: rgba(203, 166, 247, 0.12);
  border: 1px solid rgba(203, 166, 247, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.badge-herdr-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fab387;
  background: rgba(250, 179, 135, 0.12);
  border: 1px solid rgba(250, 179, 135, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.report-herdr-dispatch-card {
  background: linear-gradient(135deg, rgba(203, 166, 247, 0.08) 0%, rgba(137, 180, 250, 0.04) 100%);
  border: 1px solid rgba(203, 166, 247, 0.35);
  border-left: 4px solid #cba6f7;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin: 0.85rem 0;
  position: relative;
}

.report-herdr-dispatch-card.agent-detection {
  border-left-color: #a6e3a1;
  background: linear-gradient(135deg, rgba(166, 227, 161, 0.08) 0%, rgba(137, 220, 235, 0.04) 100%);
  border-color: rgba(166, 227, 161, 0.35);
}

.herdr-dispatch-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #cba6f7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.report-herdr-dispatch-card.agent-detection .herdr-dispatch-header {
  color: #a6e3a1;
}

.herdr-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6e3a1;
  box-shadow: 0 0 8px #a6e3a1;
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}

.herdr-event-type-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.65rem;
  margin-left: auto;
}

.herdr-dispatch-title {
  font-family: var(--disp);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0.25rem 0 0.35rem 0;
}

.herdr-dispatch-summary {
  font-size: 0.86rem;
  color: var(--dim);
  line-height: 1.5;
}

.herdr-dispatch-commit {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.herdr-dispatch-commit a {
  color: var(--spot);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.herdr-dispatch-commit a:hover {
  color: #fff;
}

/* ==============================================================
   Ecosystem Barometer HTML Table Styling
   ============================================================== */
.ecosystem-barometer-card {
  background: linear-gradient(180deg, #1b1b20 0%, #141417 100%);
  border: 1px solid rgba(203, 166, 247, 0.22);
  border-radius: var(--radius-md);
  margin: 1.25rem 0 1.5rem;
  max-width: 580px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 1px rgba(203, 166, 247, 0.2);
}

.barometer-header {
  background: rgba(203, 166, 247, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.barometer-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spot);
}

.barometer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0;
}

.barometer-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.barometer-table tr:last-child {
  border-bottom: none;
}

.barometer-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.barometer-label {
  padding: 0.65rem 1.1rem;
  color: var(--ink-soft);
  font-weight: 500;
  width: 56%;
  vertical-align: middle;
}

.barometer-value {
  padding: 0.65rem 1.1rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  vertical-align: middle;
}

.barometer-num {
  font-weight: 700;
}

.barometer-num.spot {
  color: var(--spot);
}

.barometer-num.star {
  color: #f9e2af;
}

.barometer-num.fork {
  color: var(--done);
}

.barometer-num.cap {
  color: #a6e3a1;
}

/* ==============================================================
   AI Architectural Code Survey (LLM Commentary) Card
   ============================================================== */
.plugin-llm-card {
  margin: 1.25rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(24, 24, 37, 0.95) 0%, rgba(17, 17, 27, 0.98) 100%);
  border: 1px solid rgba(137, 180, 250, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 1px rgba(137, 180, 250, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plugin-llm-card.llm-hidden {
  display: none !important;
}

.llm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  background: rgba(137, 180, 250, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.llm-badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #89b4fa;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.llm-model-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.llm-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.llm-section {
  border-left: 3px solid rgba(137, 180, 250, 0.4);
  padding-left: 0.85rem;
}

.llm-section h5 {
  margin: 0 0 0.45rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cdd6f4;
  text-transform: uppercase;
}

.llm-section p, .llm-section li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 0.5rem 0;
}

.llm-section code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  color: #a6e3a1;
}

.llm-section ul {
  margin: 0.35rem 0 0.5rem 1.2rem;
  padding: 0;
}

.llm-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(137, 180, 250, 0.3);
  background: rgba(137, 180, 250, 0.08);
  color: #cdd6f4;
  cursor: pointer;
  transition: all 0.15s ease;
}

.llm-toggle-btn:hover {
  background: rgba(137, 180, 250, 0.16);
  border-color: #89b4fa;
}

.llm-toggle-btn.active {
  background: rgba(137, 180, 250, 0.22);
  border-color: #89b4fa;
  color: #fff;
}

.llm-toggle-btn .toggle-status-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--faint2);
}

.llm-toggle-btn.active .toggle-status-badge {
  background: #89b4fa;
  color: #11111b;
  font-weight: 700;
}


