/* Piloto automático: passo a passo para ligar (/autopilot/start) e preferências (Configurações). */
.ap-wizard { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ap-step { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.ap-step.is-next { border-color: var(--orange-line); box-shadow: 0 0 0 3px var(--orange-soft); }
.ap-step.is-done { background: var(--surface-3); }
.ap-step-head { display: flex; gap: 14px; align-items: flex-start; }
.ap-step-head h3 { margin: 2px 0 2px; font-size: 18px; letter-spacing: -.02em; }
.ap-step-head p { margin: 0; font-size: 14px; }
.ap-step .step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--ink-2); }
.ap-step.is-next .step-n { background: var(--ink); color: #fff; }
.ap-step.is-done .step-n { background: var(--ok); color: #fff; }
.ap-accounts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-accounts li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ap-accounts li div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ap-accounts strong { font-size: 14px; }
.ap-accounts small { font-size: 12px; }
.ap-accounts .conn-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.ap-connect { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-step > .btn, .ap-step > .link-arrow { align-self: flex-start; }

/* escolhas em cartões */
.ap-form { display: flex; flex-direction: column; gap: 18px; }
.ap-form .field > label { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.ap-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ap-choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-choice { position: relative; display: block; cursor: pointer; }
.ap-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ap-choice > span { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 100%; transition: border-color .12s, background .12s, box-shadow .12s; }
.ap-choice > span strong { font-size: 15px; letter-spacing: -.01em; }
.ap-choices-4 .ap-choice > span strong { font: 700 24px/1 var(--font-display); letter-spacing: -.04em; }
.ap-choice > span small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ap-choice:hover > span { border-color: var(--line-strong); }
.ap-choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--orange-soft); }
.ap-choice input:checked + span small { color: rgba(255,255,255,.72); }
.ap-choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.ap-choice.is-off > span { opacity: .55; }
.ap-choice.is-off { cursor: not-allowed; }
.ap-form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.ap-form-foot p { margin: 0; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 999px; }

/* configurações */
.ap-settings { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ap-settings > .ap-form { grid-column: 1; }
.ap-settings > .ap-how { grid-column: 2; grid-row: 1 / span 2; }
.ap-state { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.ap-state.is-on { border-color: var(--ok-line); background: linear-gradient(135deg, #fff 0%, var(--ok-soft) 100%); }
.ap-state.is-off .dash-pilot-badge { color: var(--muted); }
.ap-state h3 { margin: 8px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.ap-state p { margin: 0; font-size: 14px; }
.ap-how-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.ap-how-list li { font-size: 13.5px; }
.ap-how-list strong { display: block; }
.ap-how-list span { color: var(--muted); }

@media (max-width: 960px) {
    .ap-settings { grid-template-columns: 1fr; }
    .ap-settings > .ap-how { grid-column: 1; grid-row: auto; }
    .ap-choices-3, .ap-choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-state { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .ap-choices-2 { grid-template-columns: 1fr; } }
