.pub-widget {
  --pub-accent: #1f7a8c;
  --pub-published: #16a34a;
  --pub-drawer: #94a3b8;
  --pub-harm: #dc2626;
}

.pub-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pub-chart-wrapper {
  background: #ffffff;
  border: 1px solid var(--lca-widget-line, #d8dee4);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pub-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.pub-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--lca-widget-muted, #57606a);
}

.pub-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pub-dot-pub {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1e40af;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.pub-dot-drawer {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fef3c7;
  border: 1.5px dashed #d97706;
}

.pub-dot-null {
  width: 14px;
  height: 2px;
  background: #475569;
  border-radius: 1px;
}

.pub-dot-meta {
  width: 10px;
  height: 10px;
  background: #2563eb;
  border: 1px solid #1e40af;
  transform: rotate(45deg);
}

.pub-status-card {
  background: #ffffff;
  border: 1px solid var(--lca-widget-line, #d8dee4);
  border-left: 4px solid #1f7a8c;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  transition: all 0.2s ease;
}

.pub-status-card.truth {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.pub-status-card.partial {
  border-left-color: #ea580c;
  background: #fff7ed;
}

.pub-status-card.severe {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.pub-status-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.pub-status-desc {
  font-size: 0.86rem;
  color: #334155;
  margin: 0;
  line-height: 1.4;
}

.pub-control-card {
  padding: 1rem 1.1rem;
}

.pub-control-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.pub-control-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
}

.pub-control-sep {
  color: #94a3b8;
  font-weight: 600;
}

.pub-control-faded {
  color: #64748b;
  font-weight: 400;
  font-size: 0.9rem;
}

.pub-slider-track-container {
  position: relative;
  margin: 0.75rem 0 0.5rem;
}

.pub-floating-bubble {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  background: #1e40af;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
  transition: left 0.04s ease-out;
  z-index: 2;
}

.pub-floating-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #1e40af transparent transparent;
}

.pub-input-wrapper {
  position: relative;
  width: 100%;
}
