

/* ═══════════════════════════════════════════════════════════
   Obsidian bridge — Learning Lab candidate-rule panel
   ═══════════════════════════════════════════════════════════ */

.ob-empty {
  padding: 20px;
  border: 1px dashed var(--line-soft);
  border-radius: 10px;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-sink);
}

.ob-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  border-radius: 999px;
  vertical-align: 2px;
}

.ob-candidates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-cand {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s ease, background .18s ease;
}
.ob-cand:hover { border-color: var(--line-strong); }
.ob-cand-accepted {
  background: color-mix(in oklch, var(--success) 6%, var(--bg-raised));
  border-color: color-mix(in oklch, var(--success) 35%, var(--line));
}
.ob-cand-expanded { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); }

.ob-cand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.ob-cand-head-main { flex: 1; min-width: 0; }

.ob-cand-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-cand-check {
  color: var(--success);
  font-weight: 700;
}

.ob-cand-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-cand-count {
  color: var(--warn);
  font-weight: 600;
}
.ob-cand-dot { opacity: 0.4; }
.ob-cand-model {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
}

.ob-cand-chev {
  color: var(--ink-mute);
  font-size: 11px;
  flex-shrink: 0;
}

.ob-cand-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-cand-path {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  padding-top: 10px;
}

.ob-cand-rule {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  padding: 10px 12px;
  background: color-mix(in oklch, var(--accent) 6%, var(--bg-sink));
  border-left: 2px solid var(--accent);
  border-radius: 6px;
}

.ob-cand-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  white-space: pre-wrap;
  padding: 10px 12px;
  background: var(--bg-sink);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.ob-cand-editor {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  padding: 10px 12px;
  background: var(--bg-sink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 100%;
  resize: vertical;
}
.ob-cand-editor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}

.ob-cand-conds {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ob-cand-conds-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ob-cand-cond {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  padding: 5px 9px;
  background: var(--bg-sink);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  width: fit-content;
  max-width: 100%;
}

.ob-cand-evidence {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ob-cand-evidence-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.ob-cand-ev {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 11.5px;
  line-height: 1.4;
  border-top: 1px dotted var(--line-soft);
}
.ob-cand-ev:first-of-type { border-top: 0; }
.ob-cand-ev-time {
  color: var(--ink-mute);
  font-size: 10.5px;
}
.ob-cand-ev-ctx { color: var(--ink); }
.ob-cand-ev-corr {
  color: var(--warn);
  font-style: italic;
  grid-column: 2 / -1;
  font-size: 11px;
  margin-top: 2px;
}

.ob-cand-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.ob-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.ob-btn-primary {
  background: var(--accent);
  color: var(--accent-ink, #0c0a08);
  border-color: var(--accent);
}
.ob-btn-primary:hover {
  filter: brightness(1.08);
}
.ob-btn-ghost {
  background: transparent;
  color: var(--ink-mute);
  border-color: var(--line);
}
.ob-btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-sink);
}

.ob-cand-accepted-note {
  font-size: 12px;
  color: var(--success);
  padding: 8px 12px;
  background: color-mix(in oklch, var(--success) 10%, transparent);
  border-radius: 6px;
  line-height: 1.5;
}
.ob-cand-accepted-note b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
