.direct-chat-card{display:grid;min-height:610px;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden}.direct-chat-header{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.direct-chat-header>button{display:none}.direct-chat-header h2{margin:0 0 4px}.direct-chat-header p{display:flex;align-items:center;gap:7px;margin:0;color:#7f8ca4;font-size:9px}.direct-chat-presence{width:7px;height:7px;border-radius:50%;background:#667086}.direct-chat-presence.online{background:var(--green);box-shadow:0 0 13px rgba(101,230,167,.65)}.direct-chat-actions button{min-height:39px;padding:8px 12px;border:1px solid rgba(90,168,255,.18);border-radius:11px;background:rgba(90,168,255,.08);color:#baddff;cursor:pointer}.direct-chat-notice{padding:9px 18px;border-bottom:1px solid rgba(255,255,255,.05);background:rgba(101,230,167,.035);color:#83a995;font-size:8px;text-align:center}.direct-chat-messages{display:flex;min-height:0;flex-direction:column;gap:9px;overflow:auto;padding:22px}.direct-chat-empty{display:grid;min-height:100%;place-content:center;justify-items:center;color:#78859c;text-align:center}.direct-chat-empty>span{display:grid;width:56px;height:56px;margin-bottom:13px;place-items:center;border:1px solid rgba(107,151,255,.18);border-radius:18px;background:rgba(90,119,232,.08);color:#a9c8ff;font-size:22px}.direct-chat-empty h3{margin:0 0 5px;color:#cdd5e6}.direct-chat-empty p{max-width:300px;margin:0;font-size:9px}.direct-chat-message{width:fit-content;max-width:min(78%,520px);padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:15px 15px 15px 5px;background:rgba(255,255,255,.045);box-shadow:0 8px 20px rgba(0,0,0,.12)}.direct-chat-message.outgoing{align-self:flex-end;border-color:rgba(89,155,255,.18);border-radius:15px 15px 5px 15px;background:linear-gradient(145deg,rgba(92,101,232,.23),rgba(45,125,200,.13))}.direct-chat-message p{margin:0;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.direct-chat-message .translated{margin-top:7px;padding-top:7px;border-top:1px solid rgba(255,255,255,.08);color:#a8c9ff}.direct-chat-message time{display:block;margin-top:5px;color:#6f7c94;font-size:7px;text-align:right}.direct-chat-form{display:grid;gap:9px;padding:13px 16px 16px;border-top:1px solid var(--line);background:rgba(5,9,18,.24)}.direct-chat-translate{display:none!important;visibility:hidden!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;position:absolute!important;opacity:0!important}.direct-chat-form>div{display:grid;grid-template-columns:1fr auto;gap:8px}.direct-chat-form input[type=text],#direct-chat-input{min-width:0;min-height:45px;padding:10px 13px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(2,6,15,.38);color:white;outline:0}.direct-chat-form input:focus{border-color:rgba(98,156,255,.32);box-shadow:0 0 0 3px rgba(80,130,255,.06)}.direct-chat-form button{width:45px;border:1px solid rgba(100,157,255,.2);border-radius:12px;background:linear-gradient(145deg,#7468ef,#438fe8);color:white;cursor:pointer}.direct-chat-form button:disabled,.direct-chat-form input:disabled{cursor:not-allowed;opacity:.48}.social-dashboard-grid.direct-chat-open{grid-template-columns:310px minmax(0,1fr)}.social-dashboard-grid.direct-chat-open>.social-side-stack{display:none}.social-dashboard-grid.direct-chat-open .social-contacts-card{padding:17px}.social-dashboard-grid.direct-chat-open .social-contact{grid-template-columns:43px minmax(0,1fr)}.social-dashboard-grid.direct-chat-open .social-contact-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr auto}.social-dashboard-grid.direct-chat-open .social-contact-message,.social-dashboard-grid.direct-chat-open .social-contact-call{display:block}.social-contact-message{padding:7px 11px;border:1px solid rgba(101,230,167,.16);background:rgba(101,230,167,.07);color:#b6ead2}.social-contact-actions{flex-wrap:wrap}.social-contact-message,.social-contact-call{min-height:36px;border-radius:10px;cursor:pointer;font-size:9px;font-weight:750}@media(max-width:900px){.social-dashboard-grid.direct-chat-open{grid-template-columns:260px minmax(0,1fr)}.direct-chat-card{min-height:570px}}@media(max-width:680px){.social-dashboard-grid.direct-chat-open{display:block}.social-dashboard-grid.direct-chat-open>.social-contacts-card{display:none}.direct-chat-card{min-height:calc(100vh - 190px);border-radius:20px}.direct-chat-header{grid-template-columns:auto auto minmax(0,1fr) auto;padding:13px}.direct-chat-header>button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.04);color:white}.direct-chat-header .social-contact-avatar{width:40px;height:40px}.direct-chat-actions span{display:none}.direct-chat-messages{padding:16px}.direct-chat-message{max-width:86%}}

/* HALO_MOBILE_HISTORY_CALLS_V1 */
.halo-nav-unread,.halo-contact-unread{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ff496d;color:#fff;font-style:normal;font-size:10px;font-weight:800;box-shadow:0 3px 12px rgba(255,73,109,.35)}.halo-nav-unread{position:absolute;top:7px;right:7px}.social-nav-button{position:relative}.halo-contact-unread{position:absolute;top:8px;left:42px}.social-contact{position:relative}.halo-notification-card h3{margin:5px 0 7px}.halo-notification-card p:not(.overline){color:var(--muted,#8f98ae);font-size:13px;line-height:1.5}.halo-notification-card button{width:100%;margin-top:10px}.halo-direct-call-layer{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(4,7,15,.72);backdrop-filter:blur(16px)}.halo-direct-call-layer[hidden]{display:none}.halo-direct-call-card{width:min(380px,100%);padding:30px;border:1px solid rgba(255,255,255,.15);border-radius:28px;background:linear-gradient(145deg,rgba(26,30,48,.98),rgba(10,13,25,.98));box-shadow:0 30px 90px rgba(0,0,0,.5);text-align:center}.halo-call-pulse{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 19px;border-radius:26px;background:linear-gradient(135deg,#7164ff,#31c5d0);color:#fff;font-size:34px;animation:halo-call-pulse 1.5s ease-in-out infinite}.halo-direct-call-card h2{margin:7px 0}.halo-direct-call-card>p:not(.overline){color:var(--muted,#9da5b8)}.halo-direct-call-card>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.halo-direct-call-card button{min-height:46px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-weight:700;cursor:pointer}.halo-direct-call-card button.is-primary{border:0;background:linear-gradient(135deg,#635bff,#35c0cc)}@keyframes halo-call-pulse{50%{transform:scale(1.07);box-shadow:0 0 0 13px rgba(99,91,255,.11)}}

.direct-chat-actions{display:flex;gap:6px}.direct-chat-actions button{padding:8px 10px}.audio-only-call #video-stage{grid-template-columns:1fr}.audio-only-call #local-card{display:none}.audio-only-call #remote-card{min-height:430px}.audio-only-call #remote-placeholder strong::after{content:" · audio"}.audio-only-call #effects-button,.audio-only-call #camera-button{display:none}@media(max-width:680px){.direct-chat-actions{gap:4px}.direct-chat-actions button{width:34px!important;padding:6px!important}.direct-chat-actions button span{display:none}}
.audio-only-call #local-card{display:none}.audio-only-call #remote-card{min-height:430px}.audio-only-call #effects-button,.audio-only-call #camera-button{display:none}
/* Ledger-backed coin receipts use fixed geometry; text receipt/status changes cannot shift them. */
#direct-chat-messages .halo-coin-receipt{display:flex;align-items:center;gap:16px;width:min(300px,calc(100% - 20px));min-height:126px;box-sizing:border-box;padding:18px;border:1px solid #bda46066;border-radius:22px;background:linear-gradient(135deg,#243936,#192e35);box-shadow:0 8px 24px #07191f22;color:#edf7f5;position:relative;overflow:hidden}
#direct-chat-messages .halo-coin-receipt.incoming{align-self:flex-start}#direct-chat-messages .halo-coin-receipt.outgoing{align-self:flex-end}
.halo-coin-emblem{width:64px;height:64px;position:relative;flex:0 0 64px;perspective:220px}.halo-coin-emblem svg{width:64px;height:64px;filter:drop-shadow(0 5px 7px #090f1666)}.halo-coin-emblem circle:first-child{fill:#dfb760;stroke:#ffe5a0;stroke-width:2}.halo-coin-emblem circle:nth-child(2){fill:#a87d35;stroke:#f6d98c;stroke-width:1.5}.halo-coin-emblem path{fill:#ffe4a2;stroke:#ffedae;stroke-width:1}.halo-coin-emblem i{position:absolute;width:4px;height:4px;transform:rotate(45deg);background:#ffe6a5;left:4px;top:6px}.halo-coin-emblem i:nth-of-type(2){left:57px;top:17px}.halo-coin-emblem i:nth-of-type(3){left:12px;top:58px}
.halo-coin-receipt-copy{display:grid;gap:5px;min-width:0}.halo-coin-receipt-copy small{font-size:11px;font-weight:600;letter-spacing:.4px;line-height:1.4}.halo-coin-receipt-copy strong{font-size:27px;line-height:1.2;color:#ffe1a0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.halo-coin-receipt-copy span{font-size:11px;opacity:.7}.halo-coin-receipt-copy time{font-size:10px;line-height:1.4;opacity:.7;white-space:normal}
.halo-coin-arrive{animation:halo-coin-enter .45s ease-out both}.halo-coin-arrive .halo-coin-emblem svg{animation:halo-coin-turn 1.1s ease-out both}.halo-coin-arrive .halo-coin-emblem i{animation:halo-coin-spark .8s ease-out 2}.halo-coin-older{align-self:center;min-height:44px;padding:8px 16px;margin:8px;border-radius:999px;border:1px solid #9bbab866;background:#a6c9c51a;color:inherit;font-size:13px;cursor:pointer}
:root[data-theme=light] #direct-chat-messages .halo-coin-receipt{background:linear-gradient(135deg,#fff5d9,#e7f2ee);color:#24443e;border-color:#d9bd7a;box-shadow:0 8px 24px #31533c12}:root[data-theme=light] .halo-coin-receipt-copy strong{color:#946c20}
@keyframes halo-coin-enter{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}@keyframes halo-coin-turn{0%{transform:rotateY(-180deg) scale(.8)}65%{transform:rotateY(12deg) scale(1.06)}100%{transform:rotateY(0) scale(1)}}@keyframes halo-coin-spark{0%,100%{opacity:.35;scale:.8}50%{opacity:1;scale:1.4}}
@media(max-width:420px){#direct-chat-messages .halo-coin-receipt{gap:12px;padding:16px;min-height:122px}.halo-coin-receipt-copy strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.halo-coin-arrive,.halo-coin-arrive .halo-coin-emblem svg,.halo-coin-arrive .halo-coin-emblem i{animation:none}}
