/* ════════════════════════════════════════════════════════════════════════
   nisi_core/status/ui_dom.css — DOM UI styles for the Press-Status primitives.

   Visual language mirrors ui_qt.py + ai_status_widget.py: 10px dot, hex
   palette, calm chrome (no flashing, no bright reds — rule #35).
   ════════════════════════════════════════════════════════════════════════ */


/* ─── Pill — the ambient header indicator ─────────────────────────────── */

.nisi-status__pill {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s;
}

.nisi-status__pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.nisi-status__pill:focus-visible {
  outline: 2px solid #3565b5;
  outline-offset: 2px;
}

.nisi-status__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7d8590;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.nisi-status__label {
  color: #cdd5e0;
}


/* ─── Dialog — the deep-check panel ───────────────────────────────────── */

.nisi-status__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.nisi-status__dialog {
  background: var(--card-bg, #1a1d23);
  color: var(--fg, #e6e8eb);
  border: 1px solid var(--border, #2c3138);
  border-radius: 12px;
  padding: 20px;
  min-width: 320px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  font: inherit;
}

.nisi-status__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.nisi-status__intro {
  margin: 0 0 12px;
  color: var(--fg-muted, #8a929b);
  font-size: 0.9rem;
}

.nisi-status__run-btn {
  appearance: none;
  border: 1px solid var(--accent, #3565b5);
  background: var(--accent, #3565b5);
  color: var(--accent-fg, #ffffff);
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 12px;
}

.nisi-status__run-btn:hover { filter: brightness(1.1); }

.nisi-status__run-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.nisi-status__summary {
  margin: 0 0 12px;
  color: var(--fg-muted, #8a929b);
  font-size: 0.85rem;
  min-height: 1.2em;
}


/* ─── Rows ────────────────────────────────────────────────────────────── */

.nisi-status__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.nisi-status__row {
  padding: 6px 0;
}

.nisi-status__row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nisi-status__row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}

.nisi-status__row-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.nisi-status__row-latency {
  font-size: 11px;
  color: var(--fg-muted, #8a929b);
  cursor: help;
}

.nisi-status__reveal-btn {
  appearance: none;
  border: 1px solid var(--border, #2c3138);
  background: transparent;
  color: var(--fg, #e6e8eb);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nisi-status__reveal-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nisi-status__row-message {
  margin: 4px 0 0 18px;
  font-size: 12px;
  color: var(--fg, #cdd5e0);
}

.nisi-status__row-technical {
  margin: 4px 0 0 18px;
  font-size: 11px;
  color: var(--fg-muted, #8a929b);
  font-family: ui-monospace, "Consolas", "Menlo", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 8px 10px;
}

.nisi-status__row-next-step {
  appearance: none;
  margin: 4px 0 0 18px;
  border: none;
  background: transparent;
  color: var(--accent, #3565b5);
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── Footer (Leg-2 awareness + buttons) ──────────────────────────────── */

.nisi-status__sep {
  border: none;
  border-top: 1px solid var(--border, #2c3138);
  margin: 12px 0;
}

.nisi-status__footer-copy {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--fg-muted, #8a929b);
}

.nisi-status__button-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nisi-status__send-btn,
.nisi-status__close-btn {
  appearance: none;
  border: 1px solid var(--border, #2c3138);
  background: var(--bg-elevated, #15191f);
  color: var(--fg, #e6e8eb);
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nisi-status__send-btn:hover,
.nisi-status__close-btn:hover {
  border-color: var(--accent, #3565b5);
}

.nisi-status__send-btn {
  border-color: var(--accent, #3565b5);
}
