  /* ── Settings Panel ── */
  .settings-panel { padding: 20px; overflow-y: auto; }
  .settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .settings-header h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
  .settings-header button { font-size: 18px; line-height: 1; padding: 2px 8px; }
  .settings-section { margin-bottom: 24px; }
  .settings-section h3 {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
  }
  .settings-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .config-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--surface);
  }
  .config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .config-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
  }
  .config-actions {
    display: flex;
    gap: 6px;
  }
  .config-action-btn {
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .config-action-btn:hover { border-color: var(--accent); color: var(--accent); }
  .config-delete-btn:hover { border-color: var(--red); color: var(--red); }
  .config-field {
    display: flex;
    gap: 8px;
    margin: 4px 0;
    align-items: center;
    font-size: 12px;
  }
  .config-field label {
    min-width: 60px;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .config-field input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    outline: none;
  }
  .config-field input:focus { border-color: var(--accent); }
  .config-yaml-display {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin: 0;
    white-space: pre-wrap;
    overflow-x: auto;
  }
  .config-yaml-editor {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    width: 100%;
    min-height: 120px;
    resize: vertical;
    outline: none;
  }
  .config-yaml-editor:focus { border-color: var(--accent); }
  .config-details summary {
    font-size: 11px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 0;
  }
  .config-details summary:hover { color: var(--accent); }
  .config-name-input {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    outline: none;
    margin-bottom: 6px;
  }
  .config-name-input:focus { border-color: var(--accent); }
  .config-edit-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-end;
  }
  .settings-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .settings-btn:hover { border-color: var(--accent); color: var(--accent); }
  .settings-btn-save {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .settings-btn-save:hover { opacity: 0.9; color: #fff; }
  .settings-btn-new { margin-top: 4px; }
  .config-btn-row { display: flex; gap: 8px; margin-top: 4px; }
  .pref-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .pref-row + .pref-row { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
  .pref-label {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 80px;
  }
  .pref-option { cursor: pointer; color: var(--text); }
  .pref-row input[type="radio"],
  .pref-row input[type="checkbox"] {
    accent-color: var(--accent);
  }

  @media (max-width: 768px) {
    .settings-panel { padding: 14px 10px; }
    .config-yaml-editor { min-height: 100px; font-size: 11px; }
    .config-yaml-display { font-size: 11px; }
    .pref-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  }
