/*
 * pilot-settings.css — Settings hub subpages for the three pilot namespaces
 * (Sales Style / Sales Pilot / Success Pilot), rendered by js/pilot-settings.js.
 * Design uniformity: central app-shell.css tokens ONLY (var(--token)); the sole
 * literal is #fff for text/knob on an accent fill. No hardcoded palette.
 */

.ps-page { max-width: 760px; margin: 0 auto; padding: 8px 0 80px; }
.ps-loading { padding: 56px 20px; text-align: center; color: var(--text-3); font-size: 14px; }

.ps-head { margin-bottom: 18px; }
.ps-head h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 24px;
  letter-spacing: -0.01em; color: var(--text); margin: 0 0 6px;
}
.ps-head p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; max-width: 60ch; }

.ps-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 1px 2px rgba(21, 23, 43, 0.04);
}

.ps-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--border-soft);
}
.ps-row:first-child { border-top: 0; }
.ps-row-block { display: block; }
.ps-row-body { flex: 1; min-width: 0; }
.ps-row-label { font-weight: 600; font-size: 14px; color: var(--text); }
.ps-row-help { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.ps-row-block .ps-row-body { margin-bottom: 8px; }

.ps-control { flex: none; display: flex; align-items: center; gap: 8px; }
.ps-control-block { display: block; }
.ps-suffix { font-size: 13px; color: var(--text-3); }

/* Inputs */
.ps-input, .ps-select, .ps-textarea {
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface);
  padding: 8px 11px; box-sizing: border-box;
}
.ps-input:focus, .ps-select:focus, .ps-textarea:focus { outline: none; border-color: var(--accent); }
.ps-input-num { width: 96px; }
.ps-input-text { width: 100%; }
.ps-select { cursor: pointer; }
.ps-textarea { width: 100%; line-height: 1.5; resize: vertical; min-height: 72px; }

/* Toggle switch */
.ps-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.ps-switch input { opacity: 0; width: 0; height: 0; }
.ps-switch-slider {
  position: absolute; cursor: pointer; inset: 0; background: var(--border-strong);
  border-radius: 24px; transition: background 0.2s;
}
.ps-switch-slider::before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(21, 23, 43, 0.25);
}
.ps-switch input:checked + .ps-switch-slider { background: var(--accent); }
.ps-switch input:checked + .ps-switch-slider::before { transform: translateX(18px); }

/* Saved / error flash */
.ps-flash {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius);
  opacity: 0; transition: opacity 0.15s; white-space: nowrap;
}
.ps-flash.show { opacity: 1; }
.ps-flash-ok { background: var(--good-soft); color: var(--good); }
.ps-flash-err { background: var(--danger-soft); color: var(--danger); }
.ps-row-block .ps-flash { display: inline-block; margin-top: 6px; }
