:root {
  --pico-font-size: 90%;
}

@media (max-width: 768px) {
  :root {
    --pico-font-size: 82%;
  }
}

input[type="range"] {
  touch-action: none;
  height: 44px;
  cursor: pointer;
}

.version-tag {
  font-size: 0.75rem;
  background: #0284c7;
  color: #f0f9ff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.version-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  background-color: var(--pico-muted-border-color);
  color: var(--pico-color);
}

.badge.safe {
  background-color: #166534;
  color: #dcfce7;
}

.badge.warn {
  background-color: #991b1b;
  color: #fee2e2;
}

.badge.active {
  background-color: #0369a1;
  color: #e0f2fe;
}

.mode-badge {
  cursor: pointer;
  user-select: none;
  background-color: #1e293b;
  border: 1px solid #334155;
}

.disclaimer-banner {
  background-color: #78350f;
  color: #fef3c7;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  text-align: center;
}

.section-title-group {
  margin-bottom: 0.75rem;
}

.section-title-group h6 {
  margin-bottom: 0;
  color: #f8fafc;
}

.sub-label {
  font-size: 0.72rem;
  color: var(--pico-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-divider {
  margin: 1.25rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}

.btn-grid {
  margin-top: 0.75rem;
}

.visualizer-card {
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.canvas-container {
  position: relative;
  width: 100%;
}

#canvas-spec {
  width: 100%;
  height: 180px;
  background-color: #0a0f1d;
  border-radius: 4px;
  display: block;
}

.canvas-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--pico-muted-color);
  margin-top: 0.25rem;
}

.diag-text {
  font-size: 0.8rem;
  font-family: monospace;
  color: #38bdf8;
}

.muted-text {
  color: var(--pico-muted-color);
  font-size: 0.75rem;
}

.changelog-modal-card {
  max-width: 650px;
  width: 95%;
}

.changelog-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.changelog-entry {
  border-bottom: 1px solid var(--pico-muted-border-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-entry h6 {
  margin-bottom: 0.4rem;
  color: #38bdf8;
}

.changelog-entry ul {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
