/* Accounts: the workspace's grouped surfaces, restrained blue and quiet typography. */
.ac-workspace { display: grid; gap: 24px; min-width: 0; padding: 4px 0 24px; }
.ac-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.ac-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
.ac-heading p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ac-external { color: var(--accent); font-size: 13px; text-decoration: none; white-space: nowrap; padding-top: 3px; }
.ac-external:hover { text-decoration: underline; }
.ac-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-provider { background: var(--card); border-radius: var(--radius); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px; padding: 22px; align-items: start; }
.ac-platform { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; background: var(--fill-soft); }
.ac-platform img { width: 23px; height: 23px; }
.ac-provider-copy { display: grid; gap: 3px; }
.ac-provider-copy b { font-size: 16px; font-weight: 600; }
.ac-provider-copy small { font-size: 12px; color: var(--muted); }
.ac-count { font-size: 12px; color: var(--muted); margin-top: 10px; }
.ac-allowance { display: flex; align-items: center; gap: 12px; padding: 0 3px; font-size: 12px; flex-wrap: wrap; }
.ac-allowance b { font-weight: 600; } .ac-allowance > span, .ac-allowance small { color: var(--muted); }
.ac-allowance progress { width: 90px; height: 4px; appearance: none; border: 0; background: var(--fill); border-radius: 5px; accent-color: var(--accent); }
.ac-allowance progress::-webkit-progress-bar { background: var(--fill); border-radius: 5px; }
.ac-allowance progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
.ac-allowance small { margin-left: auto; font-size: 11px; }
.ac-connect { grid-column: 1/-1; justify-self: start; margin-top: 4px; color: var(--accent); background: var(--accent-soft); padding: 8px 16px; }
.ac-connect:disabled { opacity: .45; cursor: not-allowed; }
.ac-setup { display: flex; align-items: center; gap: 12px; padding: 0 3px; }
.ac-setup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.ac-setup > div { flex: 1; }
.ac-setup b { font-size: 13px; font-weight: 500; }
.ac-setup p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ac-quiet { background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ac-group { display: grid; gap: 14px; }
.ac-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; }
.ac-filters { flex: none; }
.ac-filters button { white-space: nowrap; font-size: 12px; }
.ac-search { min-width: 0; width: 150px; border: 0; border-radius: 9px; background: var(--fill-soft); padding: 8px 11px; font-size: 12px; }
.ac-account-list { background: var(--card); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.ac-empty { padding: 38px 24px 42px; text-align: center; }
.ac-empty-symbol { display: inline-grid; place-items: center; width: 46px; height: 46px; font-size: 27px; border-radius: 14px; background: var(--fill-soft); color: var(--muted); margin-bottom: 13px; }
.ac-empty h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.ac-empty p { max-width: 315px; margin: auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.ac-account + .ac-account { border-top: 1px solid var(--line); }
.ac-account-main { display: flex; align-items: center; gap: 14px; padding: 20px; }
.ac-account-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ac-account-copy > b { font-size: 14px; overflow-wrap: anywhere; }
.ac-account-copy > small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ac-status { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; margin-top: 4px; color: var(--muted); }
.ac-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.ac-status.good i { background: var(--ok); }
.ac-account-actions { display: flex; gap: 1px; align-items: center; }
.ac-account-actions .btn { padding: 7px 8px; }
.ac-danger-text { color: var(--muted); }
.ac-danger-text:hover { color: var(--danger); }
.ac-account-brand { padding: 0 20px 16px 76px; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.ac-account-brand select { min-width: 0; max-width: 220px; border: 0; border-radius: 8px; background: var(--fill-soft); padding: 6px 9px; font-size: 12px; }
.ac-foot, .ac-fine { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -8px 3px 0; }
.ac-loading { color: var(--muted); font-size: 13px; padding: 24px 4px; }
.ac-error { background: var(--card); border-radius: var(--radius); padding: 28px; font-size: 14px; }
.ac-error p { color: var(--muted); }
.ac-dialog { width: min(440px, calc(100% - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-pop); }
.ac-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.ac-dialog h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }
.ac-dialog p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.ac-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.ac-danger { background: var(--danger); color: #fff; }
.ac-brand-field { display: grid; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ac-brand-pick { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--fill-soft); color: var(--text); padding: 10px 12px; font-size: 14px; }
.ac-needs-brand { color: var(--warn); font-size: 11.5px; }
@media (max-width: 650px) {
  .ac-heading { gap: 12px; } .ac-heading h2 { font-size: 18px; }
  .ac-external { font-size: 11px; }
  .ac-providers { gap: 10px; } .ac-provider { padding: 16px; gap: 10px; }
  .ac-provider-copy b { font-size: 14px; } .ac-provider-copy small { font-size: 11px; }
  .ac-provider .ac-platform { width: 34px; height: 34px; border-radius: 10px; }
  .ac-tools { align-items: stretch; flex-direction: column; } .ac-search { width: 100%; }
  .ac-filters { align-self: start; max-width: 100%; overflow-x: auto; }
  .ac-account-main { flex-wrap: wrap; padding: 18px; }
  .ac-account-actions { flex: 1 1 100%; justify-content: flex-end; }
  .ac-account-brand { padding: 0 18px 16px; justify-content: space-between; }
  .ac-setup { align-items: start; flex-wrap: wrap; } .ac-setup-dot { margin-top: 6px; }
  .ac-setup > div { flex-basis: calc(100% - 24px); } .ac-setup button { margin-left: 14px; }
}
@media (max-width: 360px) { .ac-provider { grid-template-columns: minmax(0, 1fr); } .ac-provider .ac-platform { margin-bottom: 4px; } }
