/* ── Bots SPA — supplementary styles ───────────────────────────────────────── */

/* Side panel slide-in */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  min-width: 420px;
  max-width: 680px;
  height: 100vh;
  background: var(--bg-card-solid, var(--bg-card));
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side-panel.open {
  transform: translateX(0);
}
.side-panel__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 49;
}
.side-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.side-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.side-panel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.side-panel__close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.side-panel__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  flex-shrink: 0;
  overflow-x: auto;
}
.side-panel__tab {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.side-panel__tab:hover {
  color: var(--text-primary);
}
.side-panel__tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 500;
}
.side-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Bot card hover */
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.bot-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-color: var(--blue);
}
.bot-card.selected {
  border-color: var(--blue);
  background: var(--blue-bg);
}

/* Bot status badges */
.bot-status--active,
.bot-status--inactive,
.bot-status--error,
.bot-status--draft {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.bot-status--active   { background: var(--green-bg);  color: var(--green); }
.bot-status--inactive { background: var(--amber-bg);  color: var(--amber); }
.bot-status--error    { background: var(--red-bg);    color: var(--red); }
.bot-status--draft    { background: var(--border);    color: var(--text-muted); }

/* Create bot card */
.bot-card--create {
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  color: var(--text-muted);
  background: transparent;
}
.bot-card--create:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: none;
}

/* Prompt editor */
.prompt-editor {
  width: 100%;
  min-height: 300px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}
.prompt-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
  outline: none;
}

/* Panel section headers */
.panel-section-title,
.bot-section-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

/* Token count badge */
.token-count {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* Tool toggle */
.tool-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tool-toggle:last-child {
  border-bottom: none;
}
.tool-toggle__info {
  flex: 1;
}
.tool-toggle__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.tool-toggle__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Co-pilot bot section — nested under the Request Human Handover row */
.copilot-bot-section {
  margin: 2px 0 10px 16px;
  padding: 12px 14px;
  background: var(--bg-hover);
  border-left: 2px solid var(--accent, #8b5cf6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.copilot-bot-section__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.copilot-bot-section__select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.copilot-bot-section__select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
}
.copilot-bot-section__hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-switch__slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--blue-bg);
}
.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(16px);
  background: var(--blue);
}

/* Version timeline */
.version-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.version-item:last-child {
  border-bottom: none;
}
.version-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 5px;
  flex-shrink: 0;
}
.version-item__dot--active {
  background: var(--green);
}
.version-item__body {
  flex: 1;
  min-width: 0;
}
.version-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.version-item__number {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.version-item__summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.version-item__date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.version-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Test panel */
.test-output {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-primary);
  min-height: 100px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.modal-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Bot grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Responsive */
@media (max-width: 1100px) {
  .side-panel {
    width: 55%;
  }
  .bot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .side-panel {
    width: 100%;
    min-width: 0;
  }
  .bot-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Version Compare ────────────────────────────────────────────────────────── */

.compare-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.compare-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--purple-bg);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
}
.compare-panel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.compare-panel__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.compare-section {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.compare-section:last-child {
  border-bottom: none;
}
.compare-section__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.compare-diff {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}
.diff-line {
  display: flex;
  padding: 1px 6px;
  border-radius: 2px;
}
.diff-line--added {
  background: var(--green-bg);
  color: var(--green);
}
.diff-line--removed {
  background: var(--red-bg);
  color: var(--red);
}
.diff-line--same {
  color: var(--text-secondary);
}
.diff-line__marker {
  display: inline-block;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
}
.diff-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.diff-chip--added {
  background: var(--green-bg);
  color: var(--green);
}
.diff-chip--removed {
  background: var(--red-bg);
  color: var(--red);
}

/* ── Version Comments ───────────────────────────────────────────────────────── */

.version-comment-badge {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.version-comment-badge:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.version-comments {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.version-comment {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.version-comment:last-of-type {
  border-bottom: none;
}
.version-comment__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.version-comment__body {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: pre-wrap;
}
.version-comment__form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: flex-end;
}
.version-comment__input {
  flex: 1;
  background: var(--bg-input, rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 12px;
  resize: vertical;
  font-family: inherit;
}
.version-comment__input::placeholder {
  color: var(--text-muted);
}
.version-comment__submit {
  padding: 6px 14px;
  font-size: 12px;
  background: var(--purple, #8b5cf6);
  color: var(--text-always-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.version-comment__submit:hover {
  opacity: 0.9;
}

/* ── Skills tab styles ─────────────────────────────────────────────────── */

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.skill-card--active {
  border-color: var(--accent, #8b5cf6);
}
.skill-card__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.skill-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-card__fields {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.skill-editor {
  padding: 4px 0;
}
.skill-editor .field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.skill-editor .field-input,
.skill-editor .field-select,
.skill-editor textarea.field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.skill-editor textarea.field-input {
  resize: vertical;
  min-height: 60px;
  line-height: 1.4;
}
.skill-editor .skill-description-textarea {
  min-height: 110px;
}
.skill-editor .field-input:focus,
.skill-editor .field-select:focus {
  border-color: var(--blue);
}
.skill-editor .field-input--sm {
  padding: 6px 10px;
  font-size: 12px;
}
.skill-fields-section {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.skill-field-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
/* Symmetric layout: name + description share the row equally,
   type select is a fixed-width dropdown, req/× hug the right. */
.skill-field-row .field-input--sm {
  flex: 1 1 0;
  min-width: 0;
}
.skill-field-row .field-select {
  flex: 0 0 110px;
  min-width: 110px;
  max-width: 110px;
}
.skill-req-toggle {
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.skill-req-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
}
.skill-script-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  tab-size: 4;
}
.skill-script-textarea:focus {
  outline: none;
  border-color: var(--accent, #8b5cf6);
}
.skill-test-panel {
  margin-top: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 12px;
}
.skill-test-output {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: monospace;
  font-size: 11px;
  color: var(--success, #10b981);
  min-height: 80px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Small utility buttons used in skills */
.btn--small { font-size: 11px; padding: 4px 10px; }
.btn--outline {
  background: transparent;
  color: var(--accent, #8b5cf6);
  border: 1px solid var(--accent, #8b5cf6);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn--outline:hover { opacity: 0.8; }
.btn--success {
  background: var(--success, #10b981);
  color: var(--text-always-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-icon { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-muted); padding: 2px 6px; }
.btn-icon--danger:hover { color: var(--danger, #ef4444); }
.field-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 12px;
  min-width: 80px;
}
.field-input::placeholder {
  color: var(--text-muted);
}

/* ── Skills Library section ────────────────────────────────────────────────── */

.skills-library {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.skills-library__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.skills-library__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.skills-library__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .skills-library__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .skills-library__grid {
    grid-template-columns: 1fr;
  }
}

/* Library skill card (top-level, not in side panel) */
.skill-lib-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.skill-lib-card:hover {
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 0 0 1px var(--accent, #8b5cf6), 0 2px 8px var(--purple-bg);
}
.skill-lib-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.skill-lib-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-lib-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Context Loader badge */
.badge--context {
  background: var(--purple-bg);
  color: var(--accent, #8b5cf6);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Usage count */
.skill-lib-card__usage {
  font-size: 11px;
  color: var(--text-muted);
}

/* Create skill card (library) */
.skill-lib-card--create {
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  color: var(--text-muted);
  background: transparent;
}
.skill-lib-card--create:hover {
  border-color: var(--accent, #8b5cf6);
  color: var(--accent, #8b5cf6);
  box-shadow: none;
}

/* ── Side panel binding picker (run mode radios) ───────────────────────────── */

.run-mode-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}
.run-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.run-mode-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--accent, #8b5cf6);
}
.run-mode-option__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.run-mode-option__desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Skill editor modal (library) ──────────────────────────────────────────── */

.skill-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-editor-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 720px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.skills-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.skills-filter-search {
  flex: 0 0 260px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
.skills-filter-search::placeholder {
  color: var(--text-muted);
}
.skills-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.skills-filter-chips .chip {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.skills-filter-chips .chip:hover {
  border-color: var(--accent, #8b5cf6);
  color: var(--text-primary);
  background: var(--purple-bg);
}
.skills-filter-chips .chip.active {
  background: var(--accent, #8b5cf6);
  color: var(--text-always-white);
  border-color: var(--accent, #8b5cf6);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--purple-bg);
}
.skills-filter-chips .chip.active:hover {
  background: var(--accent, #8b5cf6);
  opacity: 0.9;
}
.skills-filter-clear {
  background: none;
  border: none;
  color: var(--accent, #8b5cf6);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}
.skill-card .skill-card-tags,
.skill-lib-card .skill-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.skill-card .skill-card-tag,
.skill-lib-card .skill-card-tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.skill-card .skill-card-tag.filter-active,
.skill-lib-card .skill-card-tag.filter-active {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  font-weight: 600;
}

/* Filter chips: active state overrides colour palette */
.skills-filter-chips .chip.active {
  background: var(--accent, #8b5cf6) !important;
  color: var(--text-always-white) !important;
  border-color: var(--accent, #8b5cf6) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px var(--purple-bg) !important;
}
.skills-filter-chips .chip.active::before {
  content: "✓";
  margin-right: 3px;
  font-weight: 700;
}
/* tag-chip-input / tag-chip / tag-chip-entry / tag-chip-suggestions
   styles have been moved to tag-filter.css (shared across pages). */

.skills-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Grounding disclosure */
.grounding-badge { display:inline-block; border-radius:12px; padding:2px 10px; font-size:12px; font-weight:600; border:1px solid var(--border); }
.grounding-badge--ok { background:var(--success-bg, rgba(16,185,129,.13)); color:var(--success, #10b981); border-color:var(--success, #10b981); }
.grounding-badge--warn { background:var(--bg-hover); color:var(--text-secondary); }
.grounding-badge--error { background:var(--bg-hover); color:var(--text-muted); }
.grounding-source { border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; margin-top:6px; }
.grounding-source__head { display:flex; justify-content:space-between; color:var(--text-primary); }
.grounding-source__score { color:var(--text-muted); font-size:12px; }
.grounding-source__bar { height:4px; background:var(--accent, #8b5cf6); border-radius:2px; margin:5px 0; }
.grounding-source__snippet { color:var(--text-secondary); font-style:italic; font-size:13px; }
.grounding-source__meta { color:var(--text-muted); font-size:11px; margin-top:3px; }
.grounding-inspector { margin-top:8px; }
.grounding-inspector__toggle { color:var(--text-secondary); cursor:pointer; font-size:12px; font-weight:600; }
.grounding-inspector__body { color:var(--text-secondary); font-size:12.5px; margin-top:4px; line-height:1.6; }
