/* Phi-Entropy Veto Slider — Office 2026 light */

.phi {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, #e1dfdd);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text, #1f1f1f);
}

.phi-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: var(--text, #1f1f1f);
}

.phi-sub {
  font-size: 0.875rem;
  color: var(--text-muted, #605e5c);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.phi-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.phi-status::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.phi-status-allowed {
  background: var(--success-bg, #dff6dd);
  color: var(--success, #107c10);
  border-color: rgba(16,124,16,0.25);
}

.phi-status-vetoed {
  background: var(--critical-bg, #fde7e9);
  color: var(--critical, #d13438);
  border-color: rgba(209,52,56,0.25);
}

.phi-viz {
  width: 100%;
  height: 56px;
  margin-bottom: 1rem;
  display: block;
}

.phi-readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.phi-readout {
  background: var(--bg-subtle, #f3f2f1);
  border: 1px solid var(--border, #e1dfdd);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
}

.phi-readout-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #605e5c);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.phi-readout-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #1f1f1f);
  font-variant-numeric: tabular-nums;
}

.phi-readout-value.headroom-low {
  color: var(--warning, #986f00);
}

.phi-readout-value.headroom-zero {
  color: var(--critical, #d13438);
}

.phi-slider-wrap {
  margin: 0.5rem 0 0.75rem;
}

.phi-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--success, #107c10) 0%,
    var(--success, #107c10) 50%,
    var(--warning, #986f00) 61.8%,
    var(--critical, #d13438) 100%
  );
  outline: none;
  cursor: pointer;
}

.phi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  border: 2px solid var(--accent, #0078d4);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  transition: transform 0.1s;
}

.phi-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.phi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  border: 2px solid var(--accent, #0078d4);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.phi-explanation {
  font-size: 0.8125rem;
  color: var(--text-muted, #605e5c);
  line-height: 1.55;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e1dfdd);
  margin-top: 0.5rem;
}

.phi-explanation code {
  background: var(--bg-subtle, #f3f2f1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent-deep, #1a3a5c);
}
