/* Settings page - remove separator lines from setting items */
.claudian-settings .setting-item {
  border-top: none;
}

/* Settings section headings (via setHeading()) */
.claudian-settings .setting-item-heading {
  padding-top: 18px;
  margin-top: 12px;
  border-top: 1px solid var(--background-modifier-border);
}

.claudian-settings .setting-item-heading:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.claudian-settings .setting-item-heading .setting-item-name {
  font-size: var(--font-ui-medium);
  font-weight: var(--font-semibold);
  color: var(--text-normal);
}

/* Custom section descriptions - align with items */
.claudian-sp-settings-desc,
.claudian-mcp-settings-desc,
.claudian-plugin-settings-desc,
.claudian-approved-desc {
  padding: 0 12px;
}

/* Unified icon action buttons for settings */
.claudian-settings-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.claudian-settings-action-btn:hover {
  background: var(--background-modifier-hover);
  color: var(--text-normal);
}

.claudian-settings-action-btn svg {
  width: 14px;
  height: 14px;
}

.claudian-settings-delete-btn:hover {
  color: var(--text-error);
}

/* Hotkey grid - 3 columns */
.claudian-hotkey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
  padding: 4px 0;
}

.claudian-hotkey-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
}

.claudian-hotkey-item:hover {
  background: var(--background-modifier-hover);
}

.claudian-hotkey-name {
  flex: 1;
  color: var(--text-normal);
  font-size: var(--font-ui-small);
}

.claudian-hotkey-badge {
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
  background: var(--background-modifier-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-monospace);
}

/* Media folder input width */
.claudian-settings-media-input {
  width: 200px;
}

/* ── Shared settings panel layout (used by slash-settings + agent-settings) ── */

.claudian-sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
}

.claudian-sp-label {
  font-size: var(--font-ui-small);
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

.claudian-sp-header-actions {
  display: flex;
  gap: 4px;
}

.claudian-sp-empty-state {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--background-secondary);
  border-radius: 6px;
  margin-top: 8px;
}

.claudian-sp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.claudian-sp-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  background: var(--background-secondary);
  border-radius: 6px;
}

.claudian-sp-item:hover {
  background: var(--background-modifier-hover);
}

.claudian-sp-info {
  flex: 1;
  min-width: 0;
}

.claudian-sp-item-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.claudian-sp-item-name {
  font-weight: 600;
  font-family: var(--font-monospace);
  color: var(--text-normal);
}

.claudian-sp-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.claudian-sp-item-actions {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  flex-shrink: 0;
}

.claudian-sp-advanced-section {
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  padding: 0 12px;
  margin: 8px 0;
}

.claudian-sp-advanced-summary {
  cursor: pointer;
  padding: 8px 0;
  font-size: var(--font-ui-small);
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

.claudian-sp-advanced-section[open] .claudian-sp-advanced-summary {
  margin-bottom: 4px;
}

.claudian-sp-modal .modal-content {
  max-width: 600px;
  width: auto;
}

.claudian-sp-content-area {
  width: 100%;
  font-family: var(--font-monospace);
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  background: var(--background-primary);
  color: var(--text-normal);
  resize: vertical;
  margin-top: 8px;
}

.claudian-sp-content-area:focus {
  outline: none;
  border-color: var(--interactive-accent);
}

.claudian-sp-modal-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}
