.gprog-chat {
  --chat-message-bg: #dceade;
  --chat-wallpaper-overlay: rgba(220, 234, 222, .78);
  color: var(--ui-text);
}
.gprog-chat .gprog-chat-window { background-color: var(--chat-message-bg); background-size: 620px auto; border-radius: 24px; }
.gprog-chat-topbar { margin: 10px 10px 0; height: 54px; border-radius: 20px; background: var(--ui-surface); box-shadow: 0 2px 12px rgb(0 0 0 / .08); }
.gprog-chat-layout { padding: 10px; gap: 18px; }
.gprog-chat .gprog-chat-sidebar { padding: 12px; border: 0; border-radius: 20px; background: var(--ui-surface); box-shadow: 0 3px 16px rgb(0 0 0 / .12); }
.gprog-chat .gprog-chat-workspace { background: transparent; padding: 0; width: min(100%, 780px); justify-self: center; min-width: 0; }
.gprog-chat-conversation-header { padding-inline: 16px; background: var(--ui-surface); border-radius: 24px; box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
.gprog-chat .gprog-chat-conversation-header .text-\[24px\] { font-size: 18px; }
.gprog-chat-messages { background: transparent; border: 0; }
@media (max-width: 767px) {
  .gprog-chat .gprog-chat-window { border-radius: 0; }
  .gprog-chat-layout { padding: 8px; gap: 0; }
  .gprog-chat-topbar { margin-inline: 8px; }
}
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-quote {
  background-color: #263c52;
  border-left-color: #93c5fd;
  color: #e7ecf2;
}
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-quote:hover { background-color: #304b65; }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-quote .text-indigo-700 { color: #93c5fd; }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-quote .text-slate-700 { color: #e7ecf2; }
.gprog-chat .gprog-chat-quote:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row {
  background-color: var(--ui-surface);
  border-color: var(--ui-border);
  color: var(--ui-text);
}
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row:hover { background-color: var(--ui-subtle); }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row[data-active="true"] {
  background-color: #2b5278;
  box-shadow: none;
}
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row--blocked[data-active="true"] {
  background-color: #2b5278;
  box-shadow: none;
}
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row :is(.text-slate-800, .text-slate-700) { color: var(--ui-text); }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row .text-slate-500 { color: #b8c6d6; }
.gprog-chat-scroll-latest {
  background: #1764df;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / .25);
  cursor: pointer;
}
.gprog-chat-scroll-latest:not(:disabled):hover { background: #124eb1; filter: none; }
.gprog-chat-scroll-latest:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.gprog-chat-scroll-latest-badge { background: #fff; color: #124eb1; border: 1px solid #1764df; }
:root[data-ui-theme="dark"] .gprog-chat-scroll-latest { background: #93c5fd; color: #131c27; border-color: #191f25; }
:root[data-ui-theme="dark"] .gprog-chat-scroll-latest:not(:disabled):hover { background: #bfdbfe; filter: none; }
:root[data-ui-theme="dark"] .gprog-chat-scroll-latest-badge { background: #232b34; color: #e7ecf2; border-color: #93c5fd; }
:root[data-ui-theme="dark"] .gprog-chat {
  --chat-message-bg: #101417;
  --chat-wallpaper-overlay: rgba(16, 20, 23, .94);
}
.gprog-chat [class~="bg-white/92"] { background-color: var(--ui-surface); }
.gprog-chat :is([class*="border-slate-200"], [class*="border-white/70"]) { border-color: var(--ui-border); }
.gprog-chat .gprog-chat-list-row { border-top: 0; border-bottom: 0; border-radius: 8px; margin-block: 2px; }
.gprog-chat .gprog-chat-list-row[data-active="true"] { background-color: #1764df; color: #fff; }
.gprog-chat .gprog-chat-list-row[data-active="true"] :is(.text-slate-800, .text-slate-700, .text-slate-500, .text-slate-400) { color: #fff; }
:root[data-ui-theme="dark"] .gprog-chat .gprog-chat-list-row[data-active="true"] :is(.text-slate-800, .text-slate-700, .text-slate-500, .text-slate-400) { color: #fff; }
.gprog-chat .gprog-chat-list-row[data-active="true"] button:hover { color: #fff; background-color: rgb(255 255 255 / .12); filter: none; }
.gprog-chat-bubble { --chat-bubble: #fff; background: var(--chat-bubble); color: #17212b; border: 0; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .10); }
.gprog-chat-bubble[data-mine="true"] { --chat-bubble: #e3f2ff; border-radius: 16px 16px 4px 16px; }
.gprog-chat-bubble::before { content: ""; position: absolute; bottom: 0; left: -6px; width: 12px; height: 12px; background: var(--chat-bubble); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.gprog-chat-bubble[data-mine="true"]::before { left: auto; right: -6px; transform: scaleX(-1); }
.gprog-chat-message-text { color: inherit; overflow-wrap: anywhere; }
.gprog-chat-message-meta { color: #64748b; }
.gprog-chat-bubble[data-media="true"] { display: flex; flex-direction: column; width: 360px; min-width: 0; }
.gprog-chat-bubble[data-media="true"] .gprog-chat-attachments { order: 1; margin-top: 4px; }
.gprog-chat-bubble[data-media="true"] .gprog-chat-caption { order: 2; padding-top: 7px; }
.gprog-chat-bubble[data-media="true"] :is(.gprog-chat-message-meta, .gprog-chat-reactions) { order: 3; }
.gprog-chat-bubble[data-media="true"] .gprog-chat-photo-wrap { margin-inline: -14px; width: calc(100% + 28px); }
.gprog-chat-photo { border-radius: 14px; overflow: hidden; }
.gprog-chat-photo img { width: 100%; height: auto; }
:root[data-ui-theme="dark"] .gprog-chat-bubble { --chat-bubble: #1c2b38; color: #fff; box-shadow: none; }
:root[data-ui-theme="dark"] .gprog-chat-bubble[data-mine="true"] { --chat-bubble: #284761; }
:root[data-ui-theme="dark"] .gprog-chat-bubble .gprog-chat-message-meta { color: #b8c6d6; }
:root[data-ui-theme="dark"] .gprog-chat-bubble :is(.text-indigo-700, .text-emerald-700) { color: #93c5fd; }
.gprog-chat-composer { border-radius: 24px; box-shadow: 0 1px 3px rgb(0 0 0 / .08); background: var(--ui-surface); }
.gprog-chat-composer-tool { border: 0; border-radius: 50%; color: var(--ui-text); background: transparent; }
.gprog-chat-composer-tool:hover { background: var(--ui-subtle); }
.gprog-chat .gprog-chat-composer-input { border: 0; border-radius: 8px; background: transparent; color: var(--ui-text); }
.gprog-chat-send { border: 0; border-radius: 50%; background: #1764df; }
