/* Beautiful chat surface, message actions, hold state, and per-device themes. */
.direct-chat-card{--chat-accent:#55c8ff;--chat-surface:#0d1727;--chat-surface-2:#0a1322;--chat-bubble:#ffffff08;--chat-out:#203866;--chat-border:var(--hf-line);background:linear-gradient(145deg,var(--chat-surface),var(--chat-surface-2))!important}.direct-chat-header{background:linear-gradient(110deg,color-mix(in srgb,var(--chat-accent) 12%,var(--chat-surface)),var(--chat-surface))!important;border-bottom-color:color-mix(in srgb,var(--chat-accent) 18%,var(--chat-border))!important}.direct-chat-notice{background:color-mix(in srgb,var(--chat-accent) 8%,transparent)!important;color:var(--hf-muted)!important}.direct-chat-messages{background:radial-gradient(circle at 86% 10%,color-mix(in srgb,var(--chat-accent) 10%,transparent),transparent 30%),var(--chat-surface-2)!important}.direct-chat-message{position:relative;transition:transform .18s ease,box-shadow .18s ease!important;background:var(--chat-bubble)!important;border-color:color-mix(in srgb,var(--chat-accent) 12%,var(--hf-line))!important}.direct-chat-message:hover{transform:translateY(-1px);box-shadow:0 12px 28px #0003!important}.direct-chat-message.outgoing{background:linear-gradient(145deg,color-mix(in srgb,var(--chat-out) 88%,var(--chat-accent)),var(--chat-out))!important;border-color:color-mix(in srgb,var(--chat-accent) 25%,transparent)!important}.direct-chat-message.is-deleted{background:transparent!important;border-style:dashed!important;color:var(--hf-muted)!important}.direct-chat-message.is-deleted p{font-style:italic!important;color:var(--hf-muted)!important}.direct-chat-message.is-on-hold{border-color:#f2b84b88!important}.direct-chat-message.is-on-hold time{color:#e9b85d!important}.halo-message-actions{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin-top:8px!important;opacity:0!important;transition:opacity .18s ease!important}.direct-chat-message:hover .halo-message-actions,.direct-chat-message:focus-within .halo-message-actions{opacity:1!important}.halo-message-actions button{min-height:24px!important;padding:4px 7px!important;border:1px solid var(--hf-line)!important;border-radius:8px!important;background:#ffffff08!important;color:var(--hf-muted)!important;font:700 8px/1 inherit!important;cursor:pointer!important}.halo-message-actions button:hover{border-color:var(--chat-accent)!important;color:var(--chat-accent)!important}.direct-chat-form{background:linear-gradient(180deg,color-mix(in srgb,var(--chat-surface) 92%,transparent),var(--chat-surface))!important;border-top-color:color-mix(in srgb,var(--chat-accent) 14%,var(--chat-border))!important}.halo-chat-theme-card{padding:22px!important;border:1px solid var(--hf-line)!important;border-radius:22px!important;background:linear-gradient(145deg,#101a2b,#0d1727)!important;color:var(--hf-ink)!important;box-shadow:0 16px 42px #0002!important}.halo-chat-theme-card h2{margin:4px 0 6px!important;color:var(--hf-ink)!important;font-size:18px!important}.halo-chat-theme-card>p:not(.overline){margin:0!important;color:var(--hf-muted)!important;font-size:10px!important}.halo-chat-theme-options{display:grid!important;gap:7px!important;margin-top:16px!important}.halo-chat-theme-option{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;padding:9px!important;border:1px solid var(--hf-line)!important;border-radius:13px!important;background:#ffffff06!important;color:var(--hf-ink)!important;text-align:left!important;cursor:pointer!important}.halo-chat-theme-option:hover,.halo-chat-theme-option.is-active{border-color:var(--hf-cyan)!important;background:#40d9ff10!important}.halo-chat-theme-option i{width:27px!important;height:27px!important;flex:0 0 27px!important;border-radius:9px!important;background:linear-gradient(135deg,var(--hf-blue),var(--hf-cyan))!important;box-shadow:inset 0 0 0 3px #ffffff22!important}.halo-chat-theme-option[data-theme="ice"] i{background:linear-gradient(135deg,#dff5ff,#6faeff)!important}.halo-chat-theme-option[data-theme="midnight"] i{background:linear-gradient(135deg,#090d1c,#283d77)!important}.halo-chat-theme-option[data-theme="rose"] i{background:linear-gradient(135deg,#ff9cbe,#886eff)!important}.halo-chat-theme-option[data-theme="mint"] i{background:linear-gradient(135deg,#66efc1,#2987b9)!important}.halo-chat-theme-option span{display:grid!important;gap:2px!important}.halo-chat-theme-option b{font-size:10px!important}.halo-chat-theme-option small{color:var(--hf-muted)!important;font-size:8px!important}
html[data-chat-theme="ice"] .direct-chat-card{--chat-accent:#3d9cff;--chat-surface:#f6fbff;--chat-surface-2:#edf6ff;--chat-bubble:#fff;--chat-out:#dcecff;--chat-border:#cfe0f2;color:#13243a!important}html[data-chat-theme="midnight"] .direct-chat-card{--chat-accent:#9185ff;--chat-surface:#080d1b;--chat-surface-2:#050914;--chat-bubble:#ffffff08;--chat-out:#25225b}html[data-chat-theme="rose"] .direct-chat-card{--chat-accent:#f08eb1;--chat-surface:#211422;--chat-surface-2:#160e1c;--chat-bubble:#ffffff0a;--chat-out:#572542}html[data-chat-theme="mint"] .direct-chat-card{--chat-accent:#63e6b0;--chat-surface:#0b1b1a;--chat-surface-2:#071312;--chat-bubble:#ffffff08;--chat-out:#164f4a}
html[data-theme="light"] .halo-chat-theme-card{border-color:#d8e2f0!important;background:linear-gradient(145deg,#fff,#f7faff)!important;box-shadow:0 14px 35px rgba(33,72,137,.08)!important}html[data-theme="light"] .halo-chat-theme-card h2,html[data-theme="light"] .halo-chat-theme-option{color:#14233a!important}html[data-theme="light"] .halo-chat-theme-card>p:not(.overline),html[data-theme="light"] .halo-chat-theme-option small{color:#71819a!important}html[data-theme="light"] .halo-chat-theme-option{border-color:#d8e2f0!important;background:#f7faff!important}html[data-theme="light"] .halo-chat-theme-option:hover,html[data-theme="light"] .halo-chat-theme-option.is-active{border-color:#1769ff!important;background:#edf4ff!important}html[data-theme="light"] html[data-chat-theme="ice"] .direct-chat-card,html[data-theme="light"] html[data-chat-theme="ice"] .direct-chat-messages{color:#14233a!important}
@media(max-width:700px){.halo-message-actions{opacity:1!important}.halo-chat-theme-card{margin-bottom:12px!important}.direct-chat-message{max-width:94%!important}}

.halo-chat-system-note{width:min(100%,520px);margin:0 auto 8px;padding:9px 12px;border:1px solid var(--hf-line);border-radius:11px;background:#ffffff06;color:var(--hf-muted);font-size:9px;line-height:1.45;text-align:center}.halo-chat-system-note.is-on-hold{border-color:#f2b84b66;background:#f2b84b0d;color:#e9b85d}
html[data-theme="light"] .halo-chat-system-note{border-color:#d8e2f0;background:#f7faff;color:#71819a}html[data-theme="light"] .halo-chat-system-note.is-on-hold{border-color:#edc56a;background:#fff8e7;color:#9b6c13}
