/* Mockup 90 (Michael OK 2026-11-17): homepage chat alerts section #chat-alerts. Phones get a static storyboard (no timed demo). */
/* ===== Mockup 90: chat alerts section (#chat-alerts) — sits after #site-health, same .aid system ===== */
#chat-alerts .aid-rail{grid-template-columns:repeat(5,1fr);max-width:900px}
.ca-in{grid-template-columns:400px 1fr;height:620px}
.ca-set{border-right:1px solid #1d1d1d;padding:16px;display:flex;flex-direction:column;gap:12px;overflow:hidden;background:#0b0b0b}
.ca-h{display:flex;align-items:baseline;justify-content:space-between}.ca-h b{font-size:15px;color:#fff}.ca-h span{font-size:12px;color:#6b6b6b}
.ca-chan{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#111;border:1px solid #1d1d1d;transition:border-color .35s,background .35s,box-shadow .35s}
.ca-chan .tile{width:30px;height:30px;border-radius:9px;background:#fff;display:grid;place-items:center;flex:0 0 auto;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.ca-chan .tile svg{width:18px;height:18px}
.ca-chan .nm{flex:1;min-width:0}.ca-chan .nm b{display:block;font-size:13.5px;color:#e6e9ef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ca-chan .nm small{font-size:11.5px;color:#7a7a7a}
.ca-chan .on{font:600 10.5px 'Geist Mono',ui-monospace,monospace;letter-spacing:.08em;color:#4ADE80;display:flex;align-items:center;gap:5px}
.ca-chan .on:before{content:"";width:7px;height:7px;border-radius:50%;background:#4ADE80;box-shadow:0 0 0 3px rgba(74,222,128,.15)}
.ca-chan.hot{border-color:rgba(74,222,128,.55);background:#0f1a13;box-shadow:0 0 0 3px rgba(74,222,128,.1)}
.ca-add{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;border:1px dashed #2a2a2a;color:#8a8a8a;font-size:13px}
.ca-add i{font-style:normal;margin-left:auto;font:500 11px 'Geist Mono',ui-monospace,monospace;color:#555}
.ca-paste{display:none;padding:9px 12px;border-radius:12px;background:#0f0f0f;border:1px solid rgba(74,222,128,.45);font:500 11.5px 'Geist Mono',ui-monospace,monospace;color:#9aa3ad;white-space:nowrap;overflow:hidden}
.ca-paste.show{display:block}
.ca-lbl{font:600 10.5px 'Geist Mono',ui-monospace,monospace;letter-spacing:.12em;color:#6b6b6b;margin-top:2px}
.ca-ev{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ca-ev span{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;background:#111;border:1px solid #1d1d1d;font-size:12.5px;color:#cfd3da;transition:border-color .3s,background .3s}
.ca-ev span:before{content:"";width:26px;height:15px;border-radius:999px;background:#4ADE80;box-shadow:inset 11px 0 0 #4ADE80,inset -11px 0 0 0 #fff;flex:0 0 auto;
  background:linear-gradient(#4ADE80,#4ADE80);position:relative}
.ca-ev span{position:relative}
.ca-ev span:after{content:"";position:absolute;left:22px;top:50%;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;background:#06140b}
.ca-ev span.off{color:#7a7a7a}.ca-ev span.off:before{background:#2a2a2a}.ca-ev span.off:after{left:11px;background:#6b6b6b}
.ca-ev span.ping{border-color:rgba(74,222,128,.5);background:#0f1a13}
.ca-feed{margin-top:auto;padding:10px 12px;border-radius:12px;background:#0f0f0f;border:1px solid #1d1d1d;font:500 12px/1.7 'Geist Mono',ui-monospace,monospace;color:#8a8a8a;min-height:112px}
.ca-feed .t{color:#555;margin-bottom:2px;letter-spacing:.1em;font-size:10.5px}
.ca-feed div.l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:caIn .4s ease both}
.ca-feed .k{color:#8BE9B0}

/* chat window */
.ca-chat{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;position:relative;transition:background .4s}
.ca-tabs{display:flex;gap:6px;padding:12px 16px;border-bottom:1px solid #1d1d1d;align-items:center}
.ca-tabs button{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 6px;border-radius:999px;border:1px solid #262626;background:#111;color:#9aa3ad;font:600 13px Inter,sans-serif;cursor:pointer;transition:all .25s}
.ca-tabs button .tile{width:24px;height:24px;border-radius:7px;background:#fff;display:grid;place-items:center}.ca-tabs button .tile svg{width:15px;height:15px}
.ca-tabs button.on{color:#fff;border-color:rgba(74,222,128,.5);background:#0f1a13}
.ca-tabs small{margin-left:auto;font:500 11px 'Geist Mono',ui-monospace,monospace;color:#555}
.ca-ch{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--cl,#222)}
.ca-ch b{font-size:15px;color:#fff}.ca-ch span{font-size:12.5px;color:#8a8a8a}
.ca-msgs{flex:1;min-height:0;overflow:hidden;padding:14px 20px 18px;display:flex;flex-direction:column;justify-content:flex-end;gap:14px}
.ca-m{display:flex;gap:11px;animation:caIn .45s cubic-bezier(.2,.9,.3,1.1) both}
.ca-av{width:36px;height:36px;border-radius:8px;flex:0 0 auto;display:grid;place-items:center;background:#0B0F17;border:1px solid #232a36}
.ca-av svg{width:22px;height:22px}
.ca-body{min-width:0;flex:1}
.ca-who{display:flex;align-items:center;gap:7px;font-size:14px}.ca-who b{color:#fff}.ca-who em{font-style:normal;font-size:10px;font-weight:700;padding:1px 4px;border-radius:3px;background:#2c2d30;color:#ababad}.ca-who time{font-size:11.5px;color:#7a7a7a}
.ca-line{font-size:14.5px;color:#e8e8e8;margin-top:2px;line-height:1.45}
.ca-line .key{font-weight:700}
.ca-ft{font-size:12.5px;color:#a0a0a0;margin-top:3px}.ca-ft b{color:#e8e8e8}
.ca-q{margin-top:6px;padding-left:10px;border-left:3px solid #4a4a4a;color:#cfcfcf;font-size:13.5px}
.ca-ctx{font-size:12px;color:#8a8a8a;margin-top:4px}
.ca-btn{display:inline-flex;margin-top:8px;height:28px;align-items:center;padding:0 12px;border-radius:6px;border:1px solid #565656;font-size:12.5px;font-weight:700;color:#e8e8e8}
.ca-list{margin:6px 0 0;padding:0;list-style:none;font-size:13px;color:#d4d4d4;line-height:1.6}.ca-list li span{color:#E8A07A}
/* Slack dark */
.ca-chat[data-app=slack]{background:#1a1d21;--cl:#2c2d30}
/* Teams dark: Workflows + adaptive card */
.ca-chat[data-app=teams]{background:#1f1f1f;--cl:#2d2d2d}
.ca-chat[data-app=teams] .ca-av{border-radius:50%;background:#2b2b40;border-color:#3a3a55}
.ca-chat[data-app=teams] .ca-who em{background:none;padding:0;color:#adadad;font-weight:500;font-size:12px}
.ca-chat[data-app=teams] .card{margin-top:6px;border:1px solid #3d3d3d;border-radius:6px;background:#292929;padding:12px 14px;max-width:460px}
.ca-chat[data-app=teams] .card .pj{font-size:12px;font-weight:700;color:#adadad}
.ca-chat[data-app=teams] .ca-btn{border-radius:4px;border-color:#5c5c5c;background:#2f2f2f;width:100%;justify-content:center}
/* Google Chat dark: card v2 */
.ca-chat[data-app=gchat]{background:#202124;--cl:#3c4043}
.ca-chat[data-app=gchat] .ca-av{border-radius:50%}
.ca-chat[data-app=gchat] .ca-who em{background:#3c4043;color:#bdc1c6;border-radius:4px;padding:1px 5px;font-weight:600}
.ca-chat[data-app=gchat] .card{margin-top:6px;border:1px solid #3c4043;border-radius:12px;background:#2d2e31;padding:12px 16px;max-width:460px}
.ca-chat[data-app=gchat] .card .pj{font-size:14px;font-weight:600;color:#e8eaed}.ca-chat[data-app=gchat] .card .pj small{display:block;font-size:12px;font-weight:400;color:#9aa0a6}
.ca-chat[data-app=gchat] .card .ca-line{margin-top:10px}
.ca-chat[data-app=gchat] .ca-btn{border:0;color:#8ab4f8;padding:0;height:auto;margin-top:10px}
.ca-chat[data-app=slack] .card{display:contents}.ca-chat[data-app=slack] .card .pj{display:none}
.ca-hint{position:absolute;right:16px;bottom:14px;font:500 11px 'Geist Mono',ui-monospace,monospace;color:#555}
@keyframes caIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:860px){
 .ca-in{grid-template-columns:1fr;height:auto}
 .ca-set{border-right:0;border-bottom:1px solid #1d1d1d;order:2}
 .ca-chat{order:1;min-height:440px}
 .ca-ev{grid-template-columns:1fr 1fr}.ca-ev span{font-size:12px;padding:7px 8px}
 .ca-feed{display:none}.ca-add i{display:none}
 .ca-tabs{padding:10px 12px;gap:5px}.ca-tabs button{padding:0 10px 0 5px;font-size:12px;height:32px}.ca-tabs small{display:none}
 .ca-tabs button .lb-l{display:none}
 .ca-msgs{padding:12px 14px 16px;min-height:360px}.ca-chat{min-height:520px;max-height:560px}
 .ca-line{font-size:14px}
 .ca-hint{display:none}
 #chat-alerts .aid-rail li.on span{font-size:12.5px}
}

/* phone: static storyboard instead of the timed demo */
.ca-ph{display:none}
@media (max-width:860px){
 #chat-alerts .aid-rail,#chat-alerts .aid-frame{display:none}
 .ca-ph{display:flex;flex-direction:column;gap:14px;margin-top:28px}
 .ca-st{border-radius:18px;background:#0b0b0b;border:1px solid #1f1f1f;overflow:hidden}
 .ca-st-h{display:flex;gap:12px;align-items:flex-start;padding:16px 16px 12px}
 .ca-st-h b{flex:0 0 auto;font:600 11px 'Geist Mono',ui-monospace,monospace;letter-spacing:.12em;color:#4ADE80;padding:5px 8px;border-radius:8px;background:#0f1a13;border:1px solid rgba(74,222,128,.35)}
 .ca-st-h h3{margin:0;font-size:17px;color:#fff;letter-spacing:-.01em}.ca-st-h p{margin:3px 0 0;font-size:14px;color:#9aa3ad;line-height:1.45}
 .ca-st-b{padding:0 14px 14px;display:flex;flex-direction:column;gap:8px}
 .ca-st .ca-chan{padding:9px 10px}
 .ca-flow{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .ca-bcard{background:#1a1a1a;border:1px solid rgba(74,222,128,.55);box-shadow:0 0 0 3px rgba(74,222,128,.1);border-radius:12px;padding:11px 12px;font-size:14px;color:#e6e9ef}
 .ca-bcard .key{font:500 11px 'Geist Mono',ui-monospace,monospace;color:#6b6b6b}.ca-bcard .t{font-weight:600;margin:3px 0 8px}
 .ca-bcard .ok{display:inline-flex;gap:6px;align-items:center;padding:4px 10px;border-radius:999px;background:#4ADE80;color:#06140b;font-size:12px;font-weight:700}
 .ca-bcard small{display:block;margin-top:8px;font-size:12px;color:#8a8a8a}
 .ca-arrow{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;font:600 11px 'Geist Mono',ui-monospace,monospace;letter-spacing:.12em;color:#6b6b6b}
 .ca-arrow svg{color:#4ADE80}
 .ca-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:#111;border:1px solid #222;margin-bottom:8px}
 .ca-seg button{display:flex;align-items:center;justify-content:center;gap:6px;height:38px;border:0;border-radius:9px;background:none;color:#9aa3ad;font:600 13px Inter,sans-serif;cursor:pointer}
 .ca-seg button .tile{width:20px;height:20px;border-radius:6px;background:#fff;display:grid;place-items:center}.ca-seg button .tile svg{width:13px;height:13px}
 .ca-seg button.on{background:#1f1f1f;color:#fff;box-shadow:0 0 0 1px rgba(74,222,128,.45)}
 .ca-win.ca-chat{border-radius:12px;overflow:hidden;border:1px solid #262626;min-height:0;max-height:none}
 .ca-win .ca-ch{padding:10px 14px}.ca-win .ca-ch b{font-size:14px}
 .ca-win .ca-msgs{min-height:0;padding:12px 14px 14px;display:block}
 .ca-win .ca-m{animation:none}
}
@media (prefers-reduced-motion:reduce){.ca-m,.ca-feed div.l{animation:none}}
