.topbar.ve-caseaid-header {
  --topbar-h: var(--cd-topbar-h);
  justify-content: space-between;
  padding-inline: var(--cd-gutter);
  background: rgb(255 255 255 / 96%);
}
.ve-caseaid-header .searchbox { display: none; }
.ve-caseaid-actions { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.ve-caseaid-time { display: flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; max-width: 480px; }
.ve-caseaid-time #quickTime { flex: none; min-height: 40px; white-space: nowrap; }
.ve-caseaid-time #quickTime[hidden], .ve-caseaid-time:not(:has(> :not([hidden]))) { display: none; }
.ve-caseaid-actions > * { flex-shrink: 0; }
.ve-caseaid-actions .cdchat-launch { cursor: pointer; }
.ve-caseaid-role {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: var(--cd-radius-pill);
  background: var(--cd-success-surface); color: var(--cd-success-ink); font-size: 12px; font-weight: 750;
}
.ve-caseaid-role::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cd-success); }
.ve-caseaid-actions [hidden] { display: none !important; }
.ve-caseaid-chat {
  max-width: none; max-height: none; margin: auto; padding: 0; border: 0; color: var(--cd-ink-strong);
  width: var(--cdchat-panel-w); height: var(--cdchat-panel-h); background: transparent;
}
.ve-caseaid-chat::backdrop { background: var(--cd-scrim); }
.ve-caseaid-chat .cdchat-panel { width: 100%; height: 100%; }
.ve-caseaid-chat .ve-caseaid-ai-panel { grid-template-columns: minmax(0, 1fr); }
.ve-caseaid-chat .cdchat-rail-title { flex: 1; }
.ve-caseaid-chat .cdchat-input { min-width: 0; }
.ve-caseaid-chat .cdchat-send { align-self: end; }
.ve-caseaid-chat [hidden] { display: none !important; }
.ve-caseaid-composer-tools, .ve-caseaid-chat [data-chat-mic] { display: contents; }
.ve-caseaid-ai-panel .cdchat-composer-files { display: none; }
.ve-caseaid-mobile-channel { display: none; }
.ve-caseaid-case-field { display: grid; gap: var(--cd-space-2); margin-bottom: var(--cd-space-3); }
.ve-caseaid-case-field select {
  width: 100%; min-height: var(--cd-control-h); border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-md); padding-inline: var(--cd-space-3); background: var(--cd-surface); color: inherit; font: inherit;
}
@media (max-width: 1180px) {
  .ve-caseaid-actions { gap: 8px; }
  .ve-caseaid-role, .ve-caseaid-signout { display: none; }
}
@media (max-width: 900px) {
  .ve-caseaid-mobile-channel { display: inline-flex; }
  .ve-caseaid-chat .cdchat-rail.is-open { position: absolute; left: 0; inset-block: 0; width: min(260px, 80%); z-index: 1; box-shadow: var(--cd-shadow-overlay); }
}
@media (max-width: 640px) {
  .topbar.ve-caseaid-header { gap: 6px; padding-inline: 8px; }
  .ve-caseaid-actions { gap: 5px; }
  .ve-caseaid-chat { width: 100vw; height: 100dvh; border-radius: 0; }
  .ve-caseaid-actions [data-caseaid-slot="refresh"] { display: none; }
}
