/* Sources tab — installed widget data sources */
.sources-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sources-tab-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.widget-sources-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.widget-source-item {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.widget-source-item:first-child {
  border-top: none;
  padding-top: 0;
}

.widget-source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.widget-source-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.widget-source-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-source-status-connected {
  color: var(--green);
  background: rgba(61, 214, 140, 0.12);
}

.widget-source-status-waiting {
  color: var(--yellow);
  background: rgba(245, 197, 66, 0.12);
}

.widget-source-status-not_configured,
.widget-source-status-disabled {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
}

.widget-source-description {
  margin: 0 0 6px;
}

.widget-source-detail {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
}

.widget-source-widgets {
  margin: 0 0 8px;
}

.widget-source-actions {
  margin-top: 8px;
}

#tab-sources {
  padding: 12px 16px calc(var(--tab-height) + 16px);
}

#tab-sources .card {
  margin: 0;
}

.mino-skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.llm-settings-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.llm-settings-form .mino-field-label {
  margin-top: 4px;
}

.llm-settings-form .mino-field-label:first-child {
  margin-top: 0;
}

.llm-settings-actions {
  margin-top: 4px;
}

.people-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.people-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-row-role {
  width: auto;
  flex: none;
}

.people-invite-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.people-invite-form .mino-field-label {
  margin-top: 4px;
}

.people-invite-form .mino-field-label:first-child {
  margin-top: 0;
}

.mino-skill-item {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.mino-skill-item:first-child {
  border-top: none;
  padding-top: 0;
}

.mino-skill-header {
  margin-bottom: 6px;
}

.mino-skill-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.mino-skill-summary {
  margin: 0 0 8px;
}

.mino-skill-summary summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
}

.mino-skill-summary-body {
  margin: 6px 0 0;
}

.mino-skill-actions {
  margin-top: 4px;
}

.mino-skill-modal .mino-skill-detail-body {
  max-height: min(60vh, 520px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 12px;
}
