.compact-chat body {
  min-width: 280px;
  height: 100dvh;
  overflow: hidden;
}
.compact-chat .app-shell {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.compact-chat .sidebar,
.compact-chat .mobile-app-bar,
.compact-chat .mobile-account-drawer,
.compact-chat .mobile-drawer-backdrop,
.compact-chat .conversation-controls,
.compact-chat #dictateButton {
  display: none !important;
}
.compact-header {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}
.compact-brand-row, .compact-model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.compact-product-logo { width: 104px; height: 36px; object-fit: contain; }
.compact-udd-logo { width: 68px; height: 32px; object-fit: contain; }
.compact-header-spacer { flex: 1; }
.compact-account { position: relative; }
.compact-account summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.compact-account summary::-webkit-details-marker { display: none; }
.compact-account-menu { position: absolute; top: 42px; right: 0; z-index: 20; width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; }
.compact-account-menu p { margin: 0 0 12px; font-weight: 500; overflow-wrap: anywhere; }
.compact-account-menu label { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.compact-account-menu input { accent-color: var(--primary-500); }
.compact-account-menu button { background: none; border: 0; color: var(--ink); padding: 10px 0; font: inherit; cursor: pointer; }
.compact-brand-row .ds-icon-button { flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; }
.compact-model-row { align-items: flex-end; }
.compact-model-row label { display: grid; gap: 5px; min-width: 0; flex: 1; font-size: 12px; font-weight: 500; color: var(--ink); }
.compact-model-row select { width: 100%; height: 40px; padding: 6px 26px 6px 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.compact-model-row select:disabled { opacity: 1; color: var(--ink); cursor: default; }
.compact-model-row button { flex: 0 0 auto; height: 40px; min-height: 40px; padding: 8px 10px; font-size: 13px; gap: 5px; }
.compact-header .inline-svg-icon { width: 18px; height: 18px; fill: none; }
#compactSaveStatus { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-error); }
.compact-chat .workspace { grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; }
.compact-chat .conversation-shell { width: 100%; height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.compact-chat .conversation-header { padding: 12px 16px; min-height: 0; }
.compact-chat .conversation-title { font-size: 14px; line-height: 1.4; }
.compact-chat .conversation-subtitle { font-size: 11px; }
.compact-chat .messages { padding: 12px 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.compact-chat .message { max-width: 100%; min-width: 0; }
.compact-chat .message-bubble { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.compact-chat .composer-shell { padding: 10px 12px 12px; position: static; }
.compact-chat .composer { width: 100%; min-width: 0; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
.compact-chat .composer .attach-button, .compact-chat .composer .send-button { min-width: 36px; width: 36px; height: 40px; padding: 6px; }
.compact-chat .send-button span { display: none; }
.compact-chat #messageInput { min-width: 0; }
.compact-chat .composer-disclaimer { font-size: 10px; line-height: 1.4; }
.compact-chat .blank-workspace-illustration { width: 150px; max-height: 160px; }
.compact-chat .login-background,
.compact-chat .login-logo-motion,
.compact-chat .login-copyright { display: none; }
.compact-chat .login-screen { min-height: 100dvh; height: 100dvh; padding: 24px; background: var(--panel); }
.compact-chat .login-layout { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0; min-height: 100%; }
.compact-chat .login-brand-panel { position: static; width: 100%; height: auto; min-height: 0; padding: 0; }
.compact-chat .login-brand-lockup { position: static; width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.compact-chat #loginTitle { position: static; clip: auto; clip-path: none; width: auto; height: auto; margin: 0; color: var(--ink); font-size: 26px; }
.compact-chat .login-udd-lockup { position: static; width: 104px; height: auto; }
.compact-chat .login-logo { width: 104px; height: auto; filter: none; }
.compact-chat .login-form { width: 100%; max-width: 360px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.compact-chat .login-help { font-size: 13px; line-height: 1.6; color: var(--ink); }
.compact-chat dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.compact-chat .loading-logo { aspect-ratio: 1; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .compact-chat *, .compact-chat *::before, .compact-chat *::after { scroll-behavior: auto !important; }
}
