/* The sign-up card (src/pages/signup.ts) and the people and access pieces in settings, on top of portal.css's card. */
.pt-card.su-wide { max-width: 640px; min-width: 0; }
.su-form fieldset { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.su-form legend { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; padding: 0; }
.su-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); resize: vertical; }
.su-label { margin: 8px 0 0; font-weight: 600; }
.su-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.su-check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); font-weight: 400; cursor: pointer; }
.su-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.su-rows { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.su-row { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.su-state { font-size: 14px; color: var(--ink-soft); }
.su-state-ok { color: var(--accent-deep); }
.su-state-bad { color: var(--danger); }

/* "Give our experts access to your accounts" on the brand page (src/pages/access-panel.ts). */
.su-acc { background: var(--ink); color: var(--card); border-radius: 16px; padding: 24px; margin: 24px 0; }
.su-acc h2 { font-family: var(--font-display); font-size: 24px; margin: 0; color: var(--card); }
.su-acc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.su-acc-count { margin: 0; color: #d8d4ca; }
.su-acc-bar { height: 6px; background: rgb(255 255 255 / 18%); border-radius: 999px; margin: 12px 0 20px; overflow: hidden; }
.su-acc-bar span { display: block; height: 100%; background: #8fd3b0; }
.su-acc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* The four account cards go four abreast or two by two, never three and one: sized by the space they sit in. */
:has(> .su-acc-cards) { container-type: inline-size; }
@container (min-width: 860px) { .su-acc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 460px) { .su-acc-cards { grid-template-columns: 1fr; } }
/* Only WhatsApp left: the phone ask (src/pages/phone-ask.ts) is the box's content, so it drops its own box. */
.su-acc .nt-ask { background: none; padding: 0; margin: 0; border-radius: 0; }
.su-acc .nt-ask h2 { font-size: 26px; }
@media (max-width: 680px) { .su-acc .nt-ask h2 { font-size: 22px; } }
/* An account card: the logo and the name on one line, then everything else full width beneath. */
.su-acc-card { background: var(--card); color: var(--ink); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: center; column-gap: 10px; row-gap: 6px; }
.su-acc-card > :not(.su-acc-logo):not(.su-acc-text) { grid-column: 1 / -1; }
.su-acc-logo { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.su-acc-logo svg { width: 20px; height: 20px; }
.su-acc-text { display: contents; }
.su-acc-text h3 { grid-column: 2; margin: 0; font-size: 17px; }
.su-acc-text > :not(h3) { grid-column: 1 / -1; }
.su-acc-text p { margin: 0; font-size: 14px; color: var(--ink-soft); }
/* A done card's state (Connected, Not used, Verified) in the done colour, not the line's grey. */
.su-acc-text p.su-state-ok { color: var(--accent-deep); font-weight: 600; }
.su-acc-do { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }

/* The footer under a sign-up or onboarding card sits under the card, not against the window's edge. */
.pt-auth > .pt-foot { max-width: 420px; margin: 0 auto 32px; padding: 0 16px; justify-content: center; }
.pt-auth:has(.su-wide) > .pt-foot { max-width: 640px; }
.su-row > p { margin: 0; }

/* The Klaviyo pasted-key form (src/pages/connect-step.ts): on the connect step, the brand page's setup box and
   Connections settings. */
.sf-conn-steps { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.sf-conn-steps b { color: var(--ink); font-weight: 600; }
.sf-conn-key { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.sf-conn-key label { font-size: 14px; font-weight: 600; color: var(--pt-muted); }
.sf-conn-inline { display: flex; gap: 8px; }
.sf-conn-inline input { flex: 1; min-width: 0; }
.sf-conn-inline .pt-btn { flex: none; }
.sf-conn-mono { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 14px; }
.sf-conn-key input[aria-invalid="true"] { border-color: var(--pt-broken); box-shadow: 0 0 0 3px var(--pt-broken-soft); }
.sf-conn-key .sf-field-error { font-size: 13px; line-height: 1.4; color: var(--pt-broken); }
