/* Original chat reference (12): compact header, composer and information drawer. */
.mirad-ref-header-shell{flex-shrink:0;min-width:0;background:rgba(11,13,24,.95);border-bottom:1px solid rgba(255,255,255,.08)}
.mirad-ref-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px;padding:0 20px;min-width:0}
.mirad-ref-header-left,.mirad-ref-identity{display:flex;align-items:center;min-width:0;gap:10px}
.mirad-ref-header-left{flex:1}
.mirad-ref-identity{gap:12px;flex:1;text-align:left;background:none;border:0;padding:0;cursor:pointer}
.mirad-ref-identity .mirad-ref-header-avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;background:#14172a;border:1px solid rgba(255,255,255,.1);border-radius:16px}
.mirad-ref-identity:hover .mirad-ref-header-avatar{border-color:rgba(244,63,94,.4)!important}
.mirad-ref-identity-text{min-width:0;flex:1}
.mirad-ref-identity-title{display:flex;align-items:center;gap:6px;min-width:0}
.mirad-ref-identity-title h2{font-family:inherit;font-size:15px;line-height:1.4;font-weight:600;color:#fff;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mirad-ref-identity:hover h2{color:#fecdd3}
.mirad-ref-status{display:flex;align-items:center;gap:6px;color:#a1a1aa;font-size:12px;line-height:1.5;min-width:0;overflow:hidden;white-space:nowrap}
.mirad-ref-status>span{flex-shrink:0}
.mirad-ref-status .mirad-ref-course-name{overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.mirad-ref-status-online{color:#34d399}
.mirad-ref-status-pin{color:#a1a1aa}
.mirad-ref-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.mirad-ref-header-action{display:flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 10px;border-radius:12px;background:#121526;border:1px solid rgba(255,255,255,.08);color:#a1a1aa;font:500 12px/1 inherit;cursor:pointer;white-space:nowrap}
.mirad-ref-header-action:hover{background:#1a1e34;color:#fff}
.mirad-ref-header-action.active{background:rgba(225,29,72,.2);border-color:rgba(244,63,94,.5);color:#fda4af}
.mirad-ref-header-action.info-active{background:#e11d48;border-color:#f43f5e;color:white}
.mirad-ref-back{background:none;border:0;color:#a1a1aa;padding:6px;border-radius:12px;flex-shrink:0}
.mirad-ref-history-search{display:flex;align-items:center;gap:10px;padding:10px 20px;background:#0e1120;border-top:1px solid rgba(255,255,255,.08);color:#71717a}
.mirad-ref-history-search input{min-width:0;flex:1;height:34px;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#15192d;color:#fff;padding:6px 10px;font-size:12px;font-family:inherit;outline:none}
.mirad-ref-history-search input:focus{border-color:#f43f5e}
.mirad-ref-history-search button{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:none;border:0;color:#a1a1aa;cursor:pointer;flex-shrink:0}
.mirad-ref-history-search button:hover{background:rgba(255,255,255,.08);color:#fff}
.mirad-ref-topics-row{padding:6px 20px;border-top:1px solid rgba(255,255,255,.06);background:#090b15}
.mirad-ref-composer>div>button,.mirad-ref-composer>button[data-chat-mic],.mirad-ref-composer>button[data-chat-send]{width:36px!important;height:36px!important;flex:0 0 36px!important;padding:0!important;border-radius:12px!important;display:grid!important;place-items:center}
.mirad-ref-composer>button[data-chat-mic]{background:transparent!important;color:#a1a1aa!important}
.mirad-ref-composer>button[data-chat-mic]:hover:not(:disabled){color:#fb7185!important;background:rgba(255,255,255,.08)!important}
.mirad-ref-composer>button[data-chat-send]:disabled{background:rgba(255,255,255,.08)!important;color:#71717a!important}
.mirad-ref-drawer.mirad-v2-chat-info{width:min(360px,100%)!important;max-width:100%!important;background:#0b0d18!important;border-left:1px solid rgba(255,255,255,.08)!important;box-shadow:-12px 0 32px rgba(0,0,0,.35)!important;z-index:40!important;backdrop-filter:none!important}
.mirad-ref-drawer-head{height:60px!important;padding:0 16px!important;border-color:rgba(255,255,255,.08)!important}
.mirad-ref-drawer-title{font:600 14px/1.4 inherit;color:#fff}
.mirad-ref-drawer-head button{background:transparent!important;border:0!important;border-radius:8px!important}
.mirad-ref-drawer-tabs{display:flex;align-items:center;gap:4px;padding:8px;overflow-x:auto;scrollbar-width:none;flex-shrink:0;background:#090b14;border-bottom:1px solid rgba(255,255,255,.08)}
.mirad-ref-drawer-tabs::-webkit-scrollbar{display:none}
.mirad-ref-drawer-tabs button{white-space:nowrap;flex-shrink:0;padding:6px 10px!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important}
.mirad-ref-drawer-content{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}
.mirad-ref-drawer-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mirad-ref-photo{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#121526;display:grid;place-items:center;color:#71717a;cursor:pointer}
.mirad-ref-photo:hover{border-color:rgba(244,63,94,.6)}
.mirad-ref-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.mirad-ref-photo:hover img{transform:scale(1.05)}
.mirad-ref-drawer-file{display:flex;align-items:center;gap:10px;width:100%;min-width:0;background:#121526;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:10px;text-align:left;color:#a1a1aa;cursor:pointer}
.mirad-ref-drawer-file:hover{border-color:rgba(244,63,94,.4);color:#fff}
.mirad-ref-file-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.06);flex-shrink:0}
.mirad-ref-file-label{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:12px;color:#fff}
.mirad-ref-file-label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mirad-ref-file-label small{font-size:11px;color:#a1a1aa}
.mirad-ref-drawer-empty{padding:48px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#71717a;font-size:12px;text-align:center}
.mirad-ref-drawer-empty svg{opacity:.5}
.mirad-ref-drawer .font-mono:not([class*="tabular-nums"]){font-family:inherit!important}
@media(max-width:767px){.mirad-ref-header-row{padding:0 12px;gap:8px}.mirad-ref-header-left{gap:4px}.mirad-ref-identity{gap:8px}.mirad-ref-identity-title h2{font-size:14px}.mirad-ref-history-search,.mirad-ref-topics-row{padding:8px 12px}.mirad-ref-status-pin{display:none}.mirad-ref-composer{gap:2px!important}.mirad-ref-composer>div>button,.mirad-ref-composer>button[data-chat-mic],.mirad-ref-composer>button[data-chat-send]{width:34px!important;height:34px!important;flex-basis:34px!important}}
@media(prefers-reduced-motion:reduce){.mirad-ref-drawer,.mirad-ref-photo img{animation:none!important;transition:none!important}}
