/* Settings: Monzo connections and connected assistants. Colours come from the tokens in style.css. */

/* Monzo */
.monzo-card { display: flex; flex-direction: column; gap: 10px; }
.monzo-card .notice { margin: 0; }
.monzo-accounts { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.monzo-account { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.monzo-account:last-child { border-bottom: 0; }
.monzo-account.closed { opacity: 0.55; }
.monzo-account .amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.monzo-advanced { border-top: 1px solid var(--border); }
.monzo-advanced summary { padding-bottom: 0; }
.monzo-advanced .form { padding-top: 10px; }

/* Numbered how-to steps */
.connect-steps { margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.connect-steps.small { gap: 4px; }
.connect-steps li::marker { color: var(--muted); font-weight: 600; }

/* After Monzo's login: what to do next and how it's going */
.monzo-return { display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.monzo-return.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
.monzo-return p { margin: 0; }
.monzo-return .icon-btn { min-width: 32px; min-height: 32px; margin: -6px -8px -6px 0; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.progress-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.progress-steps li.done, .progress-steps li.current { color: var(--text); }
.progress-steps li.current > span:last-child { font-weight: 600; }
.progress-steps .block { font-weight: 400; margin-top: 2px; }
.step-mark {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; margin-top: -1px;
}
.done .step-mark { background: var(--accent); border-color: var(--accent); }
.done .step-mark::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.current .step-mark { border-color: var(--accent); }
.current .step-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: step-pulse 1.2s ease-in-out infinite; }
@keyframes step-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* Connected assistants */
.assistant-row { align-items: flex-start; }
.assistant-row .avatar { border-radius: 10px; margin-top: 2px; }
.assistant-row .btn { flex: none; }
.assistant-help { display: flex; flex-direction: column; gap: 12px; }
.assistant-help p { margin: 4px 0 0; }
.assistant-help .field-label { margin-bottom: -6px; }
.mcp-url { display: flex; align-items: center; gap: 8px; }
.mcp-url code { flex: 1; min-width: 0; font-size: 0.85rem; }
