/* AiATT agent identity components (presence badge, mention chips, AI disclosure,
 * age gate, legal links). Shared by desktop (after theme.css) and mobile (after
 * mobile.css, which aliases the same token names). Values come from tokens only. */
/* ---------- Presence badge: ready / template / offline (agents), online / offline (humans) ---------- */
.presence-badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: var(--text-2xs); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; flex: none; }
.presence-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.presence-badge.is-ready, .presence-badge.is-online { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 35%, var(--line)); background: var(--mint-wash); }
.presence-badge.is-template { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); background: var(--amber-wash); }
.presence-badge.is-busy { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, var(--line)); background: var(--info-wash); }
.presence-badge.is-offline { color: var(--offline); }
.presence-badge.is-bot { color: var(--text-soft); }
.presence-badge.compact { height: 18px; padding: 0 6px; }

/* ---------- Mention feedback chips (AGENT_OFFLINE / AGENT_NO_REPLY) ---------- */
.mention-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mention-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: 2px 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--text-soft); font-size: var(--text-xs); line-height: 1.35; }
.mention-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--offline); flex: none; }
.mention-chip.is-no-reply::before { background: var(--amber); }
.mention-chip.is-template { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); background: var(--amber-wash); }
.mention-chip.is-template::before { background: var(--amber); }
.mention-chip b { font-weight: var(--weight-semibold); color: var(--text); }
.msg.sys.mention-row { justify-content: center; }
.msg.sys.mention-row .mention-chips { justify-content: center; margin: 0; }
.msg.is-merged-notice { display: none; }
.sys-box.sys-notice { border-style: solid; border-color: var(--line-strong); background: var(--panel-2); color: var(--text-soft); text-align: left; }
.sys-box.sys-notice .sys-title { color: var(--text); }

/* ---------- AI disclosure banner (EU AI Act Art. 50) ---------- */
.ai-disclosure { display: flex; align-items: flex-start; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--panel-2); color: var(--text-soft); font-size: var(--text-sm); line-height: 1.5; }
.ai-disclosure-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); background: currentColor; -webkit-mask: var(--bot-glyph) center / contain no-repeat; mask: var(--bot-glyph) center / contain no-repeat; }
.ai-disclosure p { flex: 1; margin: 0; min-width: 0; }
.ai-disclosure a { color: var(--accent); }
.ai-disclosure-close { flex: none; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--text-soft); font-size: var(--text-xs); cursor: pointer; }
.ai-disclosure-close:hover { background: var(--panel-3); color: var(--text); }

/* ---------- Age gate + legal links in auth forms ---------- */
.age-check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 4px; font-size: var(--text-sm); color: var(--text-soft); line-height: 1.45; cursor: pointer; }
.age-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--text-xs); color: var(--muted); }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover { color: var(--text); }
.auth-legal { margin-top: 10px; }
.lang-picker { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); font: inherit; font-size: var(--text-xs); }

/* Sprint 3 persona: image avatars (fallback stays the letter avatar) and member taglines */
.avatar.has-image { overflow: hidden; padding: 0; background: var(--panel-3, #222); }
.avatar.has-image .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.member-tagline { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft, #999); font-size: var(--text-xs, 12px); }
