
#neuroChatMessageHistorySection{color-scheme:light;--gmh-bg:#fff;--gmh-ink:#194564;--gmh-muted:#69859b;--gmh-line:#d4e5f3;--gmh-blue:#187bd5;--gmh-light:#eff7ff;--gmh-green:#078464;--gmh-amber:#9b6905;--gmh-red:#b54334;font:14px/1.45 Arial,Helvetica,sans-serif;color:var(--gmh-ink);width:100%;box-sizing:border-box}
#neuroChatMessageHistorySection *{box-sizing:border-box}#neuroChatMessageHistorySection [hidden]{display:none!important}
#neuroChatMessageHistorySection .gmh-panel{background:var(--gmh-bg);border:1px solid var(--gmh-line);border-radius:16px;overflow:hidden}
#neuroChatMessageHistorySection .gmh-heading{display:flex;align-items:center;gap:10px;padding:15px 18px;background:#f4f9fe;border-bottom:1px solid var(--gmh-line)}
#neuroChatMessageHistorySection h2{font-size:16px;line-height:1.4;margin:0;font-weight:600}#neuroChatMessageHistorySection .gmh-step{border-radius:7px;background:#e3f1ff;color:var(--gmh-blue);padding:4px 7px;font-weight:600}
#neuroChatMessageHistorySection .gmh-heading-icon{display:grid;place-items:center;width:30px;height:30px;color:#fff;background:#1597ac;border-radius:9px;font-size:18px}
#neuroChatMessageHistorySection .gmh-demo{margin-left:auto;font-size:12px;color:var(--gmh-muted)}
#neuroChatMessageHistorySection .gmh-content{padding:16px;display:flex;flex-direction:column;gap:12px}
#neuroChatMessageHistorySection .gmh-controls{display:grid;grid-template-columns:1.15fr 1fr;gap:12px}
#neuroChatMessageHistorySection label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--gmh-muted);min-width:0}
#neuroChatMessageHistorySection button,#neuroChatMessageHistorySection select{font:inherit;color:var(--gmh-ink);background:#fff;border:1px solid #c5dff5;border-radius:8px;min-height:36px;max-width:100%}
#neuroChatMessageHistorySection select{width:100%;padding:7px 30px 7px 10px;font-size:13px}
#neuroChatMessageHistorySection button{padding:7px 11px;transition:background .15s,border-color .15s;display:inline-flex;justify-content:center;align-items:center;gap:6px}
#neuroChatMessageHistorySection button:hover:not(:disabled){background:#eaf5ff;border-color:#83bdf1}#neuroChatMessageHistorySection button:active:not(:disabled){background:#d9edff}#neuroChatMessageHistorySection button:disabled{opacity:.55;cursor:default}
#neuroChatMessageHistorySection button:focus-visible,#neuroChatMessageHistorySection select:focus-visible,#neuroChatMessageHistorySection summary:focus-visible{outline:2px solid #248ee6;outline-offset:2px}
#neuroChatMessageHistorySection .gmh-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#neuroChatMessageHistorySection .gmh-actions button{font-size:13px}
#neuroChatMessageHistorySection .gmh-load-note{font-size:12px;color:var(--gmh-muted)}
#neuroChatMessageHistorySection .gmh-flag{display:inline-block;width:18px;height:12px;flex:none;border-radius:2px;background:linear-gradient(to bottom,#fff 0 33.33%,#2465be 33.33% 66.66%,#d44948 66.66% 100%);box-shadow:0 0 0 1px #cad5e0}
#neuroChatMessageHistorySection .gmh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#neuroChatMessageHistorySection .gmh-stat{justify-content:flex-start;padding:9px 10px;gap:7px;font-size:12px;background:#f9fcff;white-space:nowrap}
#neuroChatMessageHistorySection .gmh-stat strong{margin-left:auto;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
#neuroChatMessageHistorySection .gmh-stat[aria-pressed=true]{background:#e5f2ff;border-color:#64aaf0;box-shadow:inset 0 0 0 1px #64aaf0}
#neuroChatMessageHistorySection .gmh-status-icon{font-size:15px;line-height:1}.gmh-status-icon[data-status=sent]{color:#078464}.gmh-status-icon[data-status=waiting]{color:#91711a}.gmh-status-icon[data-status=error]{color:#b54334}.gmh-status-icon[data-status=stopped]{color:#748499}
#neuroChatMessageHistorySection .gmh-list-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--gmh-muted)}#neuroChatMessageHistorySection .gmh-plain{border-color:transparent;background:transparent;min-height:28px;padding:3px 6px;font-size:12px}
#neuroChatMessageHistorySection .gmh-plain[aria-pressed=true]{color:#096cbf;background:#eef7ff}#neuroChatMessageHistorySection .gmh-zone{margin-left:auto;white-space:nowrap}
#neuroChatMessageHistorySection .gmh-list{display:flex;flex-direction:column;gap:12px;max-height:650px;overflow:auto;padding-right:6px;scrollbar-color:#a8c4db #f2f8fd;scrollbar-width:thin;overscroll-behavior:contain}
#neuroChatMessageHistorySection .gmh-item{border:1px solid var(--gmh-line);border-radius:12px;background:#fff;overflow:hidden;flex:none}
#neuroChatMessageHistorySection .gmh-group{display:flex;align-items:center;gap:9px;padding:10px 12px;background:#f5faff;border-bottom:1px solid #e5eff7}
#neuroChatMessageHistorySection .gmh-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;font-size:12px;font-weight:600;color:#215f8d;background:#d9edff}
#neuroChatMessageHistorySection .gmh-avatar[data-tone=teal]{color:#16766d;background:#d9f0e9}#neuroChatMessageHistorySection .gmh-avatar[data-tone=purple]{color:#7053a0;background:#eee6fa}#neuroChatMessageHistorySection .gmh-avatar[data-tone=rose]{color:#9a5675;background:#f8e3ed}#neuroChatMessageHistorySection .gmh-avatar[data-tone=gold]{color:#926d22;background:#fff0c9}
#neuroChatMessageHistorySection .gmh-identity{min-width:0;overflow-wrap:anywhere}#neuroChatMessageHistorySection .gmh-name{font-size:13px;font-weight:600}#neuroChatMessageHistorySection .gmh-handle{font-size:12px;color:var(--gmh-muted)}
#neuroChatMessageHistorySection .gmh-group time{font-size:12px;color:var(--gmh-muted);margin-left:auto;white-space:nowrap}
#neuroChatMessageHistorySection .gmh-messages{padding:12px;display:flex;flex-direction:column;gap:10px}
#neuroChatMessageHistorySection .gmh-message{display:flex;gap:8px;align-items:flex-start;min-width:0}#neuroChatMessageHistorySection .gmh-message .gmh-avatar{width:29px;height:29px;font-size:11px;margin-top:1px}
#neuroChatMessageHistorySection .gmh-message-content{flex:1;min-width:0}#neuroChatMessageHistorySection .gmh-message-head{display:flex;align-items:baseline;gap:7px;margin-bottom:4px;flex-wrap:wrap}
#neuroChatMessageHistorySection .gmh-message-head time{font-size:11px;color:var(--gmh-muted);margin-left:auto;white-space:nowrap}#neuroChatMessageHistorySection .gmh-label{font-size:11px;color:var(--gmh-muted)}
#neuroChatMessageHistorySection .gmh-bubble{background:#f3f5f8;border-radius:4px 11px 11px 11px;padding:9px 11px;font-size:13px;color:#244a65;overflow-wrap:anywhere;white-space:pre-wrap}
#neuroChatMessageHistorySection .gmh-outgoing .gmh-bubble{background:#e9f4ff;border:1px solid #d0e6fb;border-radius:11px 4px 11px 11px}
#neuroChatMessageHistorySection .gmh-link-line{font-size:11px;color:#60829f;margin-left:37px;display:flex;align-items:center;gap:5px}
#neuroChatMessageHistorySection .gmh-status-line{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:12px;color:var(--gmh-green)}
#neuroChatMessageHistorySection .gmh-status-line[data-status=waiting]{color:#8d6d15}#neuroChatMessageHistorySection .gmh-status-line[data-status=error]{color:var(--gmh-red)}#neuroChatMessageHistorySection .gmh-status-line[data-status=stopped]{color:#667b8e}
#neuroChatMessageHistorySection .gmh-await{padding:9px 11px;background:#fff9eb;border-radius:8px;font-size:13px;color:#81651d}
#neuroChatMessageHistorySection .gmh-error{padding:9px 11px;background:#fff3f0;border-radius:8px;font-size:13px;color:#a03c31}
#neuroChatMessageHistorySection .gmh-stopped{padding:9px 11px;background:#f3f5f8;border-radius:8px;font-size:13px;color:#60788c}
#neuroChatMessageHistorySection .gmh-unavailable{font-size:12px;color:#7b7f87;background:#f6f7f8;border:1px dashed #cdd8e1;border-radius:8px;padding:9px 11px}
#neuroChatMessageHistorySection .gmh-original{margin-top:4px;font-size:11px;color:var(--gmh-muted)}#neuroChatMessageHistorySection .gmh-original p{margin:5px 0 0;white-space:pre-wrap;color:#526d83;font-size:12px}#neuroChatMessageHistorySection summary{cursor:default;width:fit-content}
#neuroChatMessageHistorySection .gmh-translation-error{color:#91711a;font-size:11px;margin-top:5px}
#neuroChatMessageHistorySection .gmh-details{padding:8px 12px;border-top:1px solid #edf2f7;font-size:12px;color:var(--gmh-muted)}#neuroChatMessageHistorySection .gmh-details summary{color:#477a9f}
#neuroChatMessageHistorySection .gmh-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;padding-top:8px;font-size:12px}#neuroChatMessageHistorySection .gmh-detail-grid strong{font-weight:400;color:var(--gmh-ink);display:block}
#neuroChatMessageHistorySection .gmh-empty{text-align:center;padding:40px 12px;background:#f7fbff;border-radius:10px;color:var(--gmh-muted)}
@media(max-width:560px){#neuroChatMessageHistorySection .gmh-content{padding:12px}#neuroChatMessageHistorySection .gmh-controls{grid-template-columns:1fr}#neuroChatMessageHistorySection .gmh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#neuroChatMessageHistorySection .gmh-heading{padding:13px 12px}#neuroChatMessageHistorySection .gmh-group{flex-wrap:wrap}#neuroChatMessageHistorySection .gmh-group time{font-size:11px}#neuroChatMessageHistorySection .gmh-detail-grid{grid-template-columns:1fr}#neuroChatMessageHistorySection .gmh-message-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 5px}#neuroChatMessageHistorySection .gmh-message-head .gmh-name{grid-column:1;grid-row:1}#neuroChatMessageHistorySection .gmh-message-head .gmh-handle{grid-column:1 / -1;grid-row:2}#neuroChatMessageHistorySection .gmh-message-head time{grid-column:2;grid-row:1}#neuroChatMessageHistorySection .gmh-zone{display:none}#neuroChatMessageHistorySection .gmh-list{max-height:620px}#neuroChatMessageHistorySection .gmh-actions button{flex:1 1 190px}#neuroChatMessageHistorySection .gmh-load-note{width:100%}}
@media(pointer:coarse){#neuroChatMessageHistorySection button,#neuroChatMessageHistorySection select{min-height:44px}#neuroChatMessageHistorySection .gmh-details summary{padding:6px 0}#neuroChatMessageHistorySection .gmh-original summary{padding:5px 0}}
@media(prefers-reduced-motion:reduce){#neuroChatMessageHistorySection button{transition:none}}

#neuroChatMessageHistorySection{padding:0;overflow:hidden}
#neuroChatMessageHistorySection .gmh-heading{margin:0;justify-content:flex-start;flex-wrap:wrap;padding:12px 16px}
#neuroChatMessageHistorySection .gmh-heading h3{font-size:16px;line-height:1.4;margin:0}
#neuroChatMessageHistorySection .neuro-chat-operational-heading{flex:1;min-width:160px}
#neuroChatMessageHistorySection .neuro-step{background:#e3f1ff;color:#187bd5;border-radius:7px;padding:4px 7px}
#neuroChatMessageHistorySection .neuro-chat-operational-icon{display:none}
#neuroChatMessageHistorySection .neuro-special-toggle{padding:5px;min-width:30px;min-height:30px}
#neuroChatMessageHistorySection .neuro-special-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
#neuroChatMessageHistorySection .gmh-content{margin:0;padding:16px;gap:12px}
#neuroChatMessageHistorySection .gmh-content>div{margin-top:0;margin-bottom:0}
#neuroChatMessageHistorySection .gmh-content button{width:auto;margin:0;box-shadow:none}
#neuroChatMessageHistorySection .gmh-controls label{margin:0}
#neuroChatMessageHistorySection .gmh-avatar{position:relative;overflow:hidden;margin:0}
#neuroChatMessageHistorySection .gmh-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#neuroChatMessageHistorySection .gmh-item{padding:0;box-shadow:none;display:block}
#neuroChatMessageHistorySection .gmh-item header{display:flex;flex-wrap:nowrap}
#neuroChatMessageHistorySection .gmh-group .gmh-identity{flex:1}
#neuroChatMessageHistorySection .gmh-details{font-size:12px;color:var(--gmh-muted);border-top:1px solid var(--gmh-line);padding-top:8px}
#neuroChatMessageHistorySection .gmh-details summary{cursor:pointer}
#neuroChatMessageHistorySection .gmh-details p{margin:7px 0}
#neuroChatMessageHistorySection .gm-presence-history{margin:0 12px 10px}
#neuroChatMessageHistorySection .gmh-stats{margin:0}
@media(max-width:600px){#neuroChatMessageHistorySection .gmh-group{flex-wrap:wrap}#neuroChatMessageHistorySection .gmh-group time{white-space:normal}#neuroChatMessageHistorySection .gmh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Override the module's broad blue-button rule only inside message history. */
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button {
  color:var(--gmh-ink);background:#fff;border:1px solid #c5dff5;box-shadow:none;transform:none;
}
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button:hover:not(:disabled) {
  background:#eaf5ff;border-color:#83bdf1;color:var(--gmh-ink);box-shadow:none;
}
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button:active:not(:disabled) {
  background:#d9edff;transform:none;
}
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button[data-history-status][aria-pressed=true] {
  background:#187bd5;border-color:#187bd5;color:#fff;
}
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button[data-history-status][aria-pressed=true]:hover {
  background:#126bbd;
}
#neuroChatMessageHistorySection button[data-history-status][aria-pressed=true] .gmh-status-icon {color:inherit}
body :is(#neurodialogsWorkspace,#genericModuleWorkspace) #neuroChatMessageHistorySection button:disabled {
  background:#f5f8fb;color:#7c94a8;border-color:#dce7ef;opacity:1;box-shadow:none;
}
#neuroChatMessageHistorySection .gmh-details .gm-presence-history {margin:8px 0 0}

/* Compact conversations: identities and messages first, diagnostics on demand. */
#neuroChatMessageHistorySection .gmh-list{gap:8px}
#neuroChatMessageHistorySection .gmh-item{position:relative}
#neuroChatMessageHistorySection .gmh-group{padding:7px 44px 7px 10px;gap:8px;text-align:left;justify-content:flex-start}
#neuroChatMessageHistorySection .gmh-group .gmh-identity{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
#neuroChatMessageHistorySection .gmh-group .gmh-avatar{width:28px;height:28px}
#neuroChatMessageHistorySection .gmh-messages{padding:8px 10px;gap:7px}
#neuroChatMessageHistorySection .gmh-message-head{display:flex;gap:3px 7px;margin-bottom:3px;align-items:baseline;flex-wrap:wrap;font-size:13px}
#neuroChatMessageHistorySection .gmh-message-head .gmh-handle{overflow-wrap:anywhere}
#neuroChatMessageHistorySection .gmh-bubble{padding:6px 9px}
#neuroChatMessageHistorySection .gmh-unavailable,#neuroChatMessageHistorySection .gmh-await,#neuroChatMessageHistorySection .gmh-error,#neuroChatMessageHistorySection .gmh-stopped{padding:6px 9px}
#neuroChatMessageHistorySection .gmh-translation-note{font-size:10px;color:var(--gmh-muted);border-bottom:1px dotted #aec5d5;cursor:help}
#neuroChatMessageHistorySection .gmh-reply-meta{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap}
#neuroChatMessageHistorySection .gmh-details{padding:0;border:0;margin:0}
#neuroChatMessageHistorySection .gmh-details>summary{position:absolute;right:7px;top:7px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:0;list-style:none;border-radius:6px;font-size:17px;color:#60829f}
#neuroChatMessageHistorySection .gmh-details>summary::-webkit-details-marker{display:none}
#neuroChatMessageHistorySection .gmh-details>summary:hover,#neuroChatMessageHistorySection .gmh-details[open]>summary{background:#e3f1ff;color:#187bd5}
#neuroChatMessageHistorySection .gmh-details[open]{padding:8px 10px;border-top:1px solid var(--gmh-line);background:#f8fbfe}
#neuroChatMessageHistorySection .gmh-details[open] p{margin:0 0 5px}
@media(max-width:600px){#neuroChatMessageHistorySection .gmh-group{flex-wrap:wrap}#neuroChatMessageHistorySection .gmh-group .gmh-identity{display:block}#neuroChatMessageHistorySection .gmh-group>time{font-size:10px}#neuroChatMessageHistorySection .gmh-reply-meta{gap:4px}#neuroChatMessageHistorySection .gmh-message-head time{font-size:10px}}
