/* ═══ §6 · SHARED · CONTENT PRIMITIVES ════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-lg);
  opacity: 0.3;
}
.empty-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  margin-bottom: var(--sp-lg);
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--glass-border-active); }
.search-input::placeholder { color: var(--text-dim); }

/* THE COLLAPSIBLE SECTION CHASSIS — Settings, Telemetry and Logs all build their dropdowns out
   of `details.settings-section > summary.settings-heading`. It carries a settings name for
   historical reasons and is used by three surfaces, so it lives here, not under §13. */
details.settings-section {
  margin-bottom: var(--sp-md);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: background 0.15s;
}
details.settings-section[open] {
  background: rgba(108, 248, 255, 0.025);
  border-color: rgba(108, 248, 255, 0.12);
}
details.settings-section > summary.settings-heading {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #cfe;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
details.settings-section > summary.settings-heading::-webkit-details-marker { display: none; }
details.settings-section > summary.settings-heading::after {
  content: '›';
  color: var(--text-dim);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
  margin-left: 8px;
}
details.settings-section[open] > summary.settings-heading::after {
  transform: rotate(90deg);
  color: var(--accent-cyan);
}
details.settings-section[open] > summary.settings-heading {
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(108, 248, 255, 0.1);
}
.settings-panel {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
details.settings-section > .settings-panel {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

/* label · value · dot. The label is RIGID at its own min-content and the value ABSORBS the
   squeeze — a long value must never push the label below the width of its own text. Measured
   at 390px when the label could shrink: "Organism" drew 63px of ink in a 56px box. */
.setting-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 10px;
  column-gap: 12px;
  align-items: center;
}
.setting-row > .setting-dot { grid-column: 3; }
.setting-row > .toggle-track,
.setting-row > .r-btnrow { justify-self: end; }
.setting-label {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: auto;
  overflow-wrap: normal;
  text-align: left;
}
.setting-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--accent-cyan);
}
.setting-dot { width: 10px; height: 10px; border-radius: 50%; }
.setting-dot.green { background: var(--accent-green); box-shadow: var(--glow-green); }
.setting-dot.red   { background: var(--accent-red);   box-shadow: var(--glow-red); }

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}
.toggle-track.on { background: rgba(0, 229, 255, 0.3); }
.toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toggle-track.on .toggle-thumb {
  transform: translateX(20px);
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.settings-btn {
  width: 100%;
  padding: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-btn:active { transform: scale(0.97); }
.settings-btn.danger {
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.08);
  border-color: rgba(255, 51, 102, 0.2);
}
.settings-footnote {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.settings-footnote strong { color: var(--text-primary); }

/* the one-shot pulse a stat box takes when a WS tick changes its value, so the change is SEEN */
@keyframes _liveUpdatePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.live-pulse {
  animation: _liveUpdatePulse 160ms ease-out 1;
  transform-origin: center;
  display: inline-block;
}

