/* ===========================================
   Needs-attention rows: what is missing or waiting, one line and one action each.
   <div class="attn"><span class="micro">…</span>
     <div class="attn-row"><span class="attn-dot bad|wait|muted"></span>
       <div class="attn-text"><b>title</b><span>why it matters</span></div>
       <div class="attn-act">button(s) or .attn-done</div></div></div>
   .who-id: a person's platform account (icon + handle), linked.
   =========================================== */

.attn { container: attn / inline-size; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--fill-1); }
.attn-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; }
.attn-row + .attn-row { padding-top: 10px; border-top: 1px solid var(--hairline); }
.attn-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--label-3); }
.attn-dot.bad { background: var(--red); }
.attn-dot.wait { background: var(--accent); }
.attn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--label-2); }
.attn-text > b { font-size: 13px; font-weight: 600; color: var(--label-1); }
.attn-text strong { font-weight: 500; color: var(--label-1); }
.attn-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.attn-act form { margin: 0; }
.attn-act .btn { flex-shrink: 0; white-space: nowrap; }
.attn-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--label-3); white-space: nowrap; }

.who-id { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); white-space: nowrap; vertical-align: baseline; }
.who-id .platform-icon { width: 12px; height: 12px; flex-shrink: 0; }

.switch-offer { margin-bottom: var(--gap); text-align: left; }

/* In a narrow box (a phone, or a card like the login one) the action drops under its text. */
@container attn (max-width: 520px) {
    .attn-row { grid-template-columns: 8px minmax(0, 1fr); }
    .attn-act { grid-column: 2; margin-top: 4px; }
}
