.workbench-ai-mode {
  --ai-ink: #0f172a;
  --ai-text: #334155;
  --ai-muted: #738199;
  --ai-line: #dbe7f6;
  --ai-blue: #2f7cff;
  --ai-blue-deep: #1f3b66;
  --ai-purple: #7c5cff;
  --ai-cyan: #15b8c8;
  --ai-amber: #f59e0b;
  --ai-theme-rgb: var(--theme-primary-rgb, 58, 124, 165);

  position: relative;
  min-height: 100%;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: safe center;
  padding: clamp(24px, 4vh, 56px) 36px;
  color: var(--ai-ink);
  background:
    radial-gradient(circle at 17% 4%, rgba(var(--ai-theme-rgb), 0.13), transparent 42%),
    radial-gradient(circle at 88% 96%, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.84) 55%, rgba(255, 247, 237, 0.86)),
    var(--bg);
  isolation: isolate;
}

.workbench-ai-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--ai-theme-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(var(--ai-theme-rgb), 0.04) 1px, transparent 1px),
    radial-gradient(circle at 74% 24%, rgba(var(--ai-theme-rgb), 0.1), transparent 30%),
    radial-gradient(circle at 94% 72%, rgba(251, 191, 36, 0.14), transparent 28%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  opacity: 0.74;
}

.workbench-ai-mode.has-conversation {
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 88% 96%, rgba(245, 158, 11, 0.16), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(var(--ai-theme-rgb), 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.94));
}

.workbench-ai-mode.has-conversation::after {
  opacity: 0.58;
  filter: saturate(0.92);
}

.workbench-ai-mode,
.workbench-ai-mode * {
  box-sizing: border-box;
}

.workbench-ai-mode :where(button, textarea) {
  font: inherit;
}

.workbench-ai-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 26px;
}

.workbench-ai-orb {
  width: clamp(118px, 8vw, 132px);
  height: clamp(118px, 8vw, 132px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(47, 124, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.84)),
    linear-gradient(135deg, rgba(21, 184, 200, 0.14), rgba(124, 92, 255, 0.1));
  color: var(--ai-blue);
  box-shadow:
    0 24px 50px rgba(47, 124, 255, 0.18),
    0 0 0 8px rgba(47, 124, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  animation: workbenchAiControlIn 520ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 80ms;
}

.workbench-ai-orb__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.workbench-ai-copy {
  display: grid;
  gap: 8px;
  text-align: center;
  animation: workbenchAiControlIn 520ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 160ms;
}

.workbench-ai-copy h2 {
  margin: 0;
  color: var(--ai-ink);
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.workbench-ai-copy p {
  margin: 0;
  color: var(--ai-muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 650;
}

.workbench-ai-file-input {
  display: none;
}

.workbench-ai-composer {
  width: min(980px, 100%);
  min-height: 154px;
  display: grid;
  grid-template-rows: minmax(80px, 1fr) auto;
  gap: 14px;
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(211, 224, 242, 0.74);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 247, 0.94));
  box-shadow:
    0 18px 60px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: workbenchAiControlIn 540ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 250ms;
}

.workbench-ai-composer-field {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workbench-ai-composer textarea {
  width: 100%;
  min-height: 80px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 540;
  animation: workbenchAiControlIn 460ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 310ms;
}

.workbench-ai-composer textarea::placeholder {
  color: #a7b2c5;
}

.workbench-ai-composer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workbench-ai-tool-buttons {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.workbench-ai-composer-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.workbench-ai-model-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease;
}

.workbench-ai-model-selector:hover {
  color: #0f172a;
}

.workbench-ai-icon-btn,
.workbench-ai-send-btn,
.workbench-ai-action,
.workbench-ai-file-card__remove {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    box-shadow 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    border-color 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    background 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    color 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.workbench-ai-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
  animation: workbenchAiControlIn 440ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 360ms;
}

.workbench-ai-icon-btn + .workbench-ai-icon-btn {
  animation-delay: 400ms;
}

.workbench-ai-icon-btn:hover {
  color: var(--ai-blue-deep);
  background: rgba(47, 124, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.workbench-ai-icon-btn.active {
  color: #175cd3;
  background: rgba(47, 124, 255, 0.11);
}

.workbench-ai-send-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: #94a3b8;
  font-size: 18px;
  box-shadow: none;
  animation: workbenchAiControlIn 440ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 450ms;
}

.workbench-ai-send-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.workbench-ai-send-btn:not(:disabled) {
  background:
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 54%, #0891b2 100%);
  color: #ffffff;
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.workbench-ai-send-btn:not(:disabled):hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, #1e40af 0%, #1d4ed8 54%, #0e7490 100%);
}

.workbench-ai-action:hover,
.workbench-ai-file-card__remove:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 124, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.workbench-ai-date-anchor {
  position: relative;
  display: inline-flex;
}

.workbench-ai-date-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(47, 124, 255, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
}

.workbench-ai-date-chip button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.workbench-ai-date-chip button:hover {
  background: rgba(47, 124, 255, 0.12);
}

.workbench-ai-date-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: 276px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: workbenchAiPopoverIn 180ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

.workbench-ai-date-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.62);
}

.workbench-ai-date-tabs button,
.workbench-ai-date-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.workbench-ai-date-tabs button {
  min-height: 34px;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 820;
}

.workbench-ai-date-tabs button.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.workbench-ai-date-range {
  display: grid;
  gap: 10px;
}

.workbench-ai-date-field {
  display: grid;
  gap: 6px;
}

.workbench-ai-date-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.workbench-ai-date-field input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
}

.workbench-ai-date-field input:focus {
  outline: 0;
  border-color: rgba(47, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.12);
}

.workbench-ai-date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.workbench-ai-date-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 820;
}

.workbench-ai-date-actions .ghost {
  background: transparent;
  color: #64748b;
}

.workbench-ai-date-actions .primary {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.2);
}

.workbench-ai-date-actions .primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.workbench-ai-file-strip {
  width: min(980px, 100%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  color: var(--ai-muted);
  font-size: 13px;
  font-weight: 700;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) transparent;
  animation: workbenchAiControlIn 480ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 340ms;
}

.workbench-ai-file-strip::-webkit-scrollbar {
  height: 8px;
}

.workbench-ai-file-strip::-webkit-scrollbar-track {
  background: transparent;
}

.workbench-ai-file-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.64);
}

.workbench-ai-file-card {
  flex: 0 0 312px;
  min-width: 238px;
  max-width: 312px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.workbench-ai-file-card:hover,
.workbench-ai-file-card:focus-visible {
  border-color: rgba(47, 124, 255, 0.42);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.09),
    0 0 0 3px rgba(47, 124, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.workbench-ai-file-card__icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: #111827;
  color: #ff6b6b;
  font-size: 24px;
  line-height: 1;
}

.workbench-ai-file-card__icon.type-image {
  color: #38bdf8;
}

.workbench-ai-file-card__icon.type-spreadsheet {
  color: #34d399;
}

.workbench-ai-file-card__icon.type-document {
  color: #93c5fd;
}

.workbench-ai-file-card__icon.type-archive,
.workbench-ai-file-card__icon.type-file {
  color: #c4b5fd;
}

.workbench-ai-file-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workbench-ai-file-card__body strong,
.workbench-ai-file-card__body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-ai-file-card__body strong {
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.workbench-ai-file-card__body small {
  color: #7b8799;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.workbench-ai-file-card__ocr {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.workbench-ai-file-card__ocr i {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.workbench-ai-file-card__ocr span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-ai-file-card__ocr.is-recognizing i {
  animation: workbenchAiOcrSpin 840ms linear infinite;
}

.workbench-ai-file-card__ocr.is-recognized {
  color: #047857;
}

.workbench-ai-file-card__ocr.is-failed {
  color: #dc2626;
}

@keyframes workbenchAiOcrSpin {
  to {
    transform: rotate(360deg);
  }
}

.workbench-ai-file-card__remove {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 18px;
  line-height: 1;
}

.workbench-ai-file-card__remove:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.workbench-ai-quick-start-section {
  width: min(980px, 100%);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.workbench-ai-quick-start-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 16px 12px;
  text-align: left;
}

.workbench-ai-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 0;
}

.workbench-ai-action {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  white-space: normal;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: workbenchAiControlIn 480ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
  animation-delay: 370ms;
}

.action-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.action-icon-wrapper i {
  color: var(--ai-blue);
  font-size: 18px;
}

.workbench-ai-action:nth-child(2) {
  animation-delay: 420ms;
}

.workbench-ai-action:nth-child(3) {
  animation-delay: 470ms;
}

.workbench-ai-action:nth-child(4) {
  animation-delay: 520ms;
}

.workbench-ai-action:nth-child(2) .action-icon-wrapper i {
  color: var(--ai-amber);
}

.workbench-ai-action:nth-child(3) .action-icon-wrapper i {
  color: var(--ai-amber);
}

.workbench-ai-action:nth-child(4) .action-icon-wrapper i {
  color: var(--ai-amber);
}

.action-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.action-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.action-text p {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.workbench-ai-panel-swap-enter-active,
.workbench-ai-panel-swap-leave-active {
  transition:
    opacity 220ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 220ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.workbench-ai-panel-swap-enter-from,
.workbench-ai-panel-swap-leave-to {
  opacity: 0;
  transform: translateY(10px) scale(0.992);
}

.workbench-ai-conversation {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(24px, 4vh, 42px) clamp(28px, 8vw, 132px) 26px;
  overflow: hidden;
}

.workbench-ai-conversation-actions {
  position: absolute;
  top: clamp(18px, 3vh, 30px);
  right: clamp(22px, 6vw, 96px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.workbench-ai-conversation-actions button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.workbench-ai-conversation-actions button:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.055);
  transform: translateY(-1px);
}

.workbench-ai-conversation-actions button.danger:hover {
  color: #b42318;
  background: rgba(220, 38, 38, 0.08);
}

.workbench-ai-conversation-actions button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  background: transparent;
}

.workbench-ai-thread {
  width: min(960px, 100%);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  overflow-y: auto;
  padding: 64px 4px 42px;
  scroll-padding-bottom: 42px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.workbench-ai-thread > :first-child {
  margin-top: auto;
}

.workbench-ai-thread::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.workbench-ai-empty-thread {
  flex: 0 0 auto;
  width: min(720px, 100%);
  justify-self: center;
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ai-muted);
  text-align: center;
}

.workbench-ai-empty-thread strong {
  color: var(--ai-ink);
  font-size: 18px;
  font-weight: 820;
}

.workbench-ai-empty-thread p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.workbench-ai-message {
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  gap: 10px;
  animation: workbenchAiControlIn 360ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
}

.workbench-ai-message.is-user {
  justify-items: end;
}

.workbench-ai-user-bubble {
  max-width: min(680px, 82%);
  padding: 12px 16px;
  border-radius: 18px 18px 5px;
  background:
    linear-gradient(135deg, rgba(var(--ai-theme-rgb), 0.96), rgba(29, 78, 216, 0.9));
  color: #fff;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.6;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.workbench-ai-answer-card {
  width: 100%;
  padding: 34px 36px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.96));
  color: #111827;
  box-shadow: none;
  backdrop-filter: none;
}

.workbench-ai-answer-card.pending {
  color: var(--ai-muted);
}

.workbench-ai-thinking-panel {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid rgba(191, 219, 254, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.82), rgba(248, 250, 252, 0.66));
  overflow: hidden;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.workbench-ai-thinking-panel.is-expanded {
  padding: 14px 44px 14px 16px;
}

.workbench-ai-thinking-panel.is-collapsed {
  padding: 0;
}

.workbench-ai-thinking-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #1e3a8a;
  cursor: pointer;
  transition:
    background 180ms ease;
}

.workbench-ai-thinking-toggle:hover {
  background: rgba(255, 255, 255, 0.36);
}

.workbench-ai-thinking-expanded {
  position: relative;
  min-width: 0;
}

.workbench-ai-thinking-collapse-btn {
  position: absolute;
  top: -4px;
  right: -34px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.workbench-ai-thinking-collapse-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1e3a8a;
}

.workbench-ai-thinking-toggle-left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workbench-ai-thinking-toggle strong {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 860;
  line-height: 1.35;
}

.workbench-ai-thinking-toggle small {
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.workbench-ai-thinking-toggle > i {
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.workbench-ai-thinking-list {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.workbench-ai-thinking-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  color: #64748b;
}

.workbench-ai-thinking-dot {
  justify-self: center;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.16);
}

.workbench-ai-thinking-item.is-running .workbench-ai-thinking-dot {
  animation: workbenchAiPulse 1400ms ease-in-out infinite;
}

.workbench-ai-thinking-toggle .workbench-ai-thinking-dot {
  flex: 0 0 auto;
  margin-top: 0;
}

.workbench-ai-thinking-dot.running {
  animation: workbenchAiPulse 1400ms ease-in-out infinite;
}

.workbench-ai-thinking-item.is-failed .workbench-ai-thinking-dot {
  background: #f97316;
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
}

.workbench-ai-thinking-item strong {
  display: block;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.workbench-ai-thinking-item p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.55;
}

.workbench-ai-ocr-detail-panel {
  display: grid;
  gap: 12px;
  margin: -8px 0 22px;
  border: 1px solid rgba(191, 219, 254, 0.52);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
}

.workbench-ai-ocr-detail-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border: 0;
  background: transparent;
  color: #1e3a8a;
  cursor: pointer;
}

.workbench-ai-ocr-detail-toggle:hover {
  background: rgba(239, 246, 255, 0.78);
}

.workbench-ai-ocr-detail-toggle-left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workbench-ai-ocr-detail-toggle strong {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 860;
  line-height: 1.35;
}

.workbench-ai-ocr-detail-toggle small {
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.workbench-ai-ocr-detail-toggle > i {
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.workbench-ai-ocr-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.13);
}

.workbench-ai-ocr-detail-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.workbench-ai-ocr-document {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.workbench-ai-ocr-document__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.workbench-ai-ocr-document__head strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-ai-ocr-document__head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
}

.workbench-ai-ocr-document__summary {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.55;
}

.workbench-ai-ocr-document__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.workbench-ai-ocr-document__field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.workbench-ai-ocr-document__field span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.workbench-ai-ocr-document__field strong {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.workbench-ai-pending-line {
  color: #64748b;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.7;
}

.workbench-ai-answer-markdown {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.workbench-ai-answer-markdown :deep(*) {
  letter-spacing: 0;
}

.workbench-ai-answer-markdown :deep(.ai-html-flow) {
  display: grid;
  gap: 16px;
}

.workbench-ai-answer-markdown :deep(h1),
.workbench-ai-answer-markdown :deep(h2),
.workbench-ai-answer-markdown :deep(h3),
.workbench-ai-answer-markdown :deep(h4) {
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.35;
}

.workbench-ai-answer-markdown :deep(h3) {
  font-size: 21px;
}

.workbench-ai-answer-markdown :deep(p) {
  margin: 0;
}

.workbench-ai-answer-markdown :deep(p + p) {
  margin-top: 18px;
}

.workbench-ai-answer-markdown :deep(ul),
.workbench-ai-answer-markdown :deep(ol) {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 24px;
}

.workbench-ai-answer-markdown :deep(li) {
  padding-left: 4px;
}

.workbench-ai-answer-markdown :deep(li::marker) {
  color: #64748b;
  font-weight: 600;
}

.workbench-ai-answer-markdown :deep(strong) {
  color: #0f172a;
  font-weight: 600;
}

.workbench-ai-answer-markdown :deep(hr) {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.workbench-ai-answer-markdown :deep(blockquote) {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.workbench-ai-answer-markdown :deep(.ai-html-callout) {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.workbench-ai-answer-markdown :deep(.ai-html-focus-grid) {
  display: grid;
  gap: 0;
  margin: 2px 0 18px;
  padding-left: 20px;
  border-left: 3px solid #cbd5e1;
}

.workbench-ai-answer-markdown :deep(.ai-html-focus-card) {
  padding: 8px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workbench-ai-answer-markdown :deep(.ai-html-focus-card + .ai-html-focus-card) {
  border-top: 1px solid #e2e8f0;
}

.workbench-ai-answer-markdown :deep(.ai-html-focus-label) {
  display: block;
  margin-bottom: 4px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.workbench-ai-answer-markdown :deep(.ai-html-focus-card p) {
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.workbench-ai-answer-markdown :deep(.ai-html-steps),
.workbench-ai-answer-markdown :deep(.ai-html-list) {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workbench-ai-answer-markdown :deep(.ai-html-steps li) {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workbench-ai-answer-markdown :deep(.ai-html-step-index) {
  width: 34px;
  min-height: 28px;
  display: grid;
  align-items: start;
  justify-items: start;
  padding-top: 1px;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.workbench-ai-answer-markdown :deep(.ai-html-step-copy) {
  display: grid;
  gap: 5px;
}

.workbench-ai-answer-markdown :deep(.ai-html-step-copy > strong) {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
}

.workbench-ai-answer-markdown :deep(.ai-html-step-copy > p) {
  color: #475569;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.72;
}

.workbench-ai-answer-markdown :deep(.ai-html-list:not(.ai-html-steps)) {
  padding-left: 18px;
  list-style: disc;
}

.workbench-ai-answer-markdown :deep(.ai-html-list--ordered) {
  padding-left: 22px;
  list-style: decimal;
}

.workbench-ai-answer-markdown :deep(.ai-document-query-summary) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 0;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: #334155;
}

.workbench-ai-answer-markdown :deep(.ai-document-query-summary__label) {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.workbench-ai-answer-markdown :deep(.ai-document-query-summary__scope) {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 860;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.workbench-ai-answer-markdown :deep(.ai-document-query-summary__count) {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.workbench-ai-answer-markdown :deep(.ai-document-query-summary__count strong) {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
}

.workbench-ai-answer-markdown :deep(.ai-document-command-guidance) {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.82);
  color: #78350f;
}

.workbench-ai-answer-markdown :deep(.ai-document-command-guidance__title) {
  color: #92400e;
  font-size: 14px;
  font-weight: 860;
  line-height: 1.35;
}

.workbench-ai-answer-markdown :deep(.ai-document-command-guidance__body) {
  color: #78350f;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.6;
}

.workbench-ai-answer-markdown :deep(.ai-document-card-list) {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.workbench-ai-answer-markdown :deep(.ai-document-card) {
  --ai-document-card-head-bg: rgba(241, 245, 249, 0.5);
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow:
    0 1px 2px 0 rgba(15, 23, 42, 0.05);
  color: #334155;
  animation: workbenchDocumentCardReveal 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.workbench-ai-answer-markdown :deep(.ai-document-card:hover) {
  border-color: #cbd5e1;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 2px 4px -2px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.workbench-ai-answer-markdown :deep(.ai-document-card:nth-child(2)) {
  animation-delay: 40ms;
}

.workbench-ai-answer-markdown :deep(.ai-document-card:nth-child(3)) {
  animation-delay: 80ms;
}

.workbench-ai-answer-markdown :deep(.ai-document-card:nth-child(4)) {
  animation-delay: 120ms;
}

/* 状态语义色：头部浅底色和状态文字随单据状态变化 */
.workbench-ai-answer-markdown :deep(.ai-document-card__head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 18px;
  background: var(--ai-document-card-head-bg);
  border-bottom: 1px solid #f1f5f9;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__status) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-success .ai-document-card__head) {
  background: rgba(240, 253, 250, 0.6);
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-warning .ai-document-card__head) {
  background: rgba(254, 243, 199, 0.6);
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-danger .ai-document-card__head) {
  background: rgba(254, 226, 226, 0.6);
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-pending .ai-document-card__status) {
  color: #2563eb;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-success .ai-document-card__status) {
  color: #0f766e;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-warning .ai-document-card__status) {
  color: #b45309;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-danger .ai-document-card__status) {
  color: #b91c1c;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__body) {
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 15px 18px 18px;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__reason) {
  display: -webkit-box;
  min-width: 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-success .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-warning .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card.is-danger .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card--application) {
  --ai-document-card-head-bg: rgba(239, 246, 255, 0.5);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--application .ai-document-card__head) {
  background: var(--ai-document-card-head-bg);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--application .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card--reimbursement) {
  --ai-document-card-head-bg: rgba(240, 253, 250, 0.5);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--reimbursement .ai-document-card__head) {
  background: var(--ai-document-card-head-bg);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--reimbursement .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card--approval-task) {
  --ai-document-card-head-bg: rgba(254, 243, 199, 0.5);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--approval-task .ai-document-card__head) {
  background: var(--ai-document-card-head-bg);
}

.workbench-ai-answer-markdown :deep(.ai-document-card--approval-task .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-document-card--approval-task .ai-document-card__status) {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__summary),
.workbench-ai-answer-markdown :deep(.ai-document-card__details) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__summary) {
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__details) {
  padding-top: 1px;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field) {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field--action) {
  align-items: center;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field--wide) {
  align-items: flex-start;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__label) {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__value) {
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__amount) {
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__number) {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association-card) {
  background-image: none;
  background-color: #ffffff;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association-card .ai-document-card__head) {
  background: rgba(241, 245, 249, 0.5);
}

.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card) {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}

.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__head) {
  background: rgba(239, 246, 255, 0.5);
}

.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__reason) {
  color: #1e293b;
}

.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__status) {
  color: #2563eb;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association__details) {
  gap: 14px 26px;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association__details .ai-document-card__field--wide) {
  grid-column: 1 / -1;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association__muted) {
  color: #64748b;
  font-weight: 680;
}

.workbench-ai-answer-markdown :deep(.ai-attachment-association__note) {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(203, 213, 225, 0.68);
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__action) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__action:hover) {
  background: transparent;
  color: #1d4ed8;
  text-decoration: underline;
}

.workbench-ai-answer-markdown :deep(.markdown-table-wrap),
.workbench-ai-answer-markdown :deep(.ai-html-table-wrap) {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.workbench-ai-answer-markdown :deep(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.workbench-ai-answer-markdown :deep(th),
.workbench-ai-answer-markdown :deep(td) {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.workbench-ai-answer-markdown :deep(th) {
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
  font-weight: 850;
}

.workbench-ai-answer-markdown :deep(.ai-html-action-link.is-disabled) {
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(100, 116, 139, 0.14);
  color: #64748b;
  box-shadow: none;
}

.workbench-ai-answer-markdown :deep(.ai-html-image-frame) {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.74);
}

.workbench-ai-answer-markdown :deep(.ai-html-image),
.workbench-ai-answer-markdown :deep(.ai-html-inline-image) {
  max-width: 100%;
  height: auto;
  display: block;
}

.workbench-ai-answer-markdown :deep(.ai-html-image) {
  width: 100%;
  object-fit: contain;
}

.workbench-ai-answer-markdown :deep(.ai-html-inline-image) {
  max-height: 220px;
  margin: 8px 0;
  border-radius: 12px;
}

.workbench-ai-answer-markdown :deep(.ai-html-image-caption) {
  display: block;
  padding: 8px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.workbench-ai-answer-markdown :deep(.markdown-action-link),
.workbench-ai-answer-markdown :deep(.ai-html-action-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.workbench-ai-answer-markdown :deep(.markdown-action-link:hover),
.workbench-ai-answer-markdown :deep(.ai-html-action-link:hover) {
  background: rgba(37, 99, 235, 0.16);
  color: #1e40af;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field--action .ai-document-card__action) {
  min-height: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 820;
  box-shadow: none;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field--action .ai-document-card__action:hover) {
  background: transparent;
  color: #1e40af;
  text-decoration: underline;
  transform: none;
}

.workbench-ai-answer-markdown :deep(.ai-document-card__field--action .ai-document-card__action.is-disabled) {
  background: transparent;
  color: #64748b;
}

@keyframes workbenchDocumentCardReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme-mode="enterprise"] .workbench-ai-mode {
  --ai-ink: #111827;
  --ai-text: #334155;
  --ai-muted: #64748b;
  --ai-line: #d8dee8;
  --ai-blue: #475569;
  --ai-blue-deep: #334155;
  --ai-purple: #64748b;
  --ai-cyan: #64748b;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 56%, #f8fafc 100%),
    var(--bg);
}

[data-theme-mode="enterprise"] .workbench-ai-mode::after {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.36;
  filter: none;
}

[data-theme-mode="enterprise"] .workbench-ai-mode.has-conversation {
  background: #f8fafc;
}

[data-theme-mode="enterprise"] .workbench-ai-mode.has-conversation::after {
  opacity: 0.22;
}

[data-theme-mode="enterprise"] .workbench-ai-orb {
  width: clamp(96px, 7vw, 112px);
  height: clamp(96px, 7vw, 112px);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #475569;
  box-shadow: none;
}

[data-theme-mode="enterprise"] .workbench-ai-composer,
[data-theme-mode="enterprise"] .workbench-ai-composer--inline {
  border-color: #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme-mode="enterprise"] .workbench-ai-icon-btn:hover,
[data-theme-mode="enterprise"] .workbench-ai-icon-btn.active {
  color: #334155;
  background: #f1f5f9;
}

[data-theme-mode="enterprise"] .workbench-ai-send-btn {
  background: #334155;
  box-shadow: none;
}

[data-theme-mode="enterprise"] .workbench-ai-send-btn:hover:not(:disabled) {
  background: #1f2937;
  box-shadow: none;
}

[data-theme-mode="enterprise"] .workbench-ai-message {
  animation-duration: 220ms;
}

[data-theme-mode="enterprise"] .workbench-ai-user-bubble {
  border-radius: 8px 8px 3px;
  background: #334155;
  box-shadow: none;
}

[data-theme-mode="enterprise"] .workbench-ai-answer-card {
  border-color: #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme-mode="enterprise"] .workbench-ai-thinking-panel {
  border-color: #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

[data-theme-mode="enterprise"] .workbench-ai-thinking-toggle {
  border-radius: 8px;
  color: #334155;
}

[data-theme-mode="enterprise"] .workbench-ai-thinking-toggle:hover {
  background: #ffffff;
}

[data-theme-mode="enterprise"] .workbench-ai-thinking-toggle strong,
[data-theme-mode="enterprise"] .workbench-ai-thinking-item strong {
  color: #334155;
}

[data-theme-mode="enterprise"] .workbench-ai-thinking-dot {
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.12);
}

[data-theme-mode="enterprise"] .workbench-ai-suggested-actions button {
  border-color: #d8dee8;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
}

[data-theme-mode="enterprise"] .workbench-ai-suggested-actions button:hover:not(:disabled) {
  background: #f8fafc;
}

[data-theme-mode="intelligent"] .workbench-ai-mode {
  --ai-blue: #5f6f9f;
  --ai-blue-deep: #465275;
  --ai-purple: #6d6a9f;
  --ai-cyan: #477c9e;
  background:
    radial-gradient(circle at 16% 0%, rgba(95, 111, 159, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    var(--bg);
}

[data-theme-mode="intelligent"] .workbench-ai-mode.has-conversation {
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 111, 159, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

[data-theme-mode="intelligent"] .workbench-ai-composer,
[data-theme-mode="intelligent"] .workbench-ai-composer--inline,
[data-theme-mode="intelligent"] .workbench-ai-answer-card {
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .workbench-ai-answer-markdown :deep(.ai-document-card) {
    animation: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .workbench-ai-answer-markdown :deep(.ai-document-card) {
    padding: 0;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__head) {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__body) {
    padding: 14px;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__details) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__summary) {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 12px;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__field) {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .workbench-ai-answer-markdown :deep(.ai-document-card__number) {
    text-align: left;
  }
}

.workbench-ai-application-preview {
  min-width: 0;
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.structured-card-reveal-enter-active,
.structured-card-reveal-leave-active {
  transition:
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.structured-card-reveal-enter-from,
.structured-card-reveal-leave-to {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
}

.structured-card-reveal-enter-to,
.structured-card-reveal-leave-from {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.application-preview-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #ffffff;
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  color: #334155;
  font-size: 15px;
}

.application-preview-row {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 48px;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
}

.structured-card-reveal-enter-active .application-preview-row {
  animation: workbenchApplicationRowReveal 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.structured-card-reveal-enter-active .application-preview-row:nth-child(2) {
  animation-delay: 35ms;
}

.structured-card-reveal-enter-active .application-preview-row:nth-child(3) {
  animation-delay: 70ms;
}

.structured-card-reveal-enter-active .application-preview-row:nth-child(4) {
  animation-delay: 105ms;
}

.structured-card-reveal-enter-active .application-preview-row:nth-child(5) {
  animation-delay: 140ms;
}

.structured-card-reveal-enter-active .application-preview-row:nth-child(n + 6) {
  animation-delay: 165ms;
}

.application-preview-row:first-child {
  border-top: 0;
}

.application-preview-row.head {
  min-height: 42px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(248, 250, 252, 0.98));
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.application-preview-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
}

.application-preview-label {
  border-right: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(248, 250, 252, 0.72);
  color: #475569;
  font-weight: 820;
}

.application-preview-value {
  position: relative;
  color: #0f172a;
  font-weight: 700;
}

.application-preview-row.editable {
  cursor: pointer;
}

.application-preview-row.is-disabled {
  cursor: wait;
}

.application-preview-row.is-disabled .application-preview-label,
.application-preview-row.is-disabled .application-preview-value {
  background: rgba(248, 250, 252, 0.84);
  color: #64748b;
}

.application-preview-row.editable:hover,
.application-preview-row.editable:hover .application-preview-label,
.application-preview-row.editable:hover .application-preview-value {
  background: rgba(239, 246, 255, 0.58);
}

.application-preview-row.is-disabled:hover,
.application-preview-row.is-disabled:hover .application-preview-label,
.application-preview-row.is-disabled:hover .application-preview-value {
  background: rgba(248, 250, 252, 0.84);
}

.application-preview-row.editable:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: -2px;
}

.application-preview-row.highlight .application-preview-label {
  background: rgba(219, 234, 254, 0.76);
  color: #1d4ed8;
}

.application-preview-row.highlight .application-preview-value {
  background: rgba(219, 234, 254, 0.44);
  color: #1e40af;
  font-weight: 850;
}

.application-preview-row.missing {
  background: rgba(37, 99, 235, 0.035);
  box-shadow: inset 3px 0 0 rgba(37, 99, 235, 0.5);
}

.application-preview-row.missing .application-preview-label {
  background: rgba(219, 234, 254, 0.78);
  color: #1d4ed8;
  font-weight: 900;
}

.application-preview-row.missing .application-preview-value {
  background: rgba(239, 246, 255, 0.74);
  font-weight: 850;
}

.application-preview-text {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.48;
}

.application-preview-input {
  width: min(100%, 420px);
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.46);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 720;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.application-preview-date-input {
  width: min(100%, 188px);
  color-scheme: light;
}

.application-preview-input--time,
.application-preview-input--time_return {
  width: min(100%, 188px);
}

.application-preview-input--location {
  width: min(100%, 220px);
}

.application-preview-input--reason {
  width: min(100%, 680px);
}

.application-preview-input--days {
  width: min(100%, 150px);
}

.application-preview-input--transportMode {
  width: min(100%, 240px);
}

.application-preview-select {
  width: min(100%, 240px);
  cursor: pointer;
}

.application-preview-edit-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.application-preview-edit-btn i {
  font-size: 15px;
}

.application-preview-row:hover .application-preview-edit-btn,
.application-preview-edit-btn:focus-visible {
  opacity: 1;
}

.application-preview-edit-btn:hover,
.application-preview-edit-btn:focus-visible {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(219, 234, 254, 0.98);
  transform: translateY(-1px);
}

.application-preview-edit-btn:disabled {
  cursor: wait;
  opacity: 0.46;
  transform: none;
}

.application-preview-footer {
  color: #334155;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.78;
}

.application-preview-footer.workbench-ai-answer-markdown {
  margin-top: 0;
}

.application-preview-footer-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  padding: 2px 0 0;
  color: #334155;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.75;
}

.application-preview-missing-prefix,
.application-preview-missing-suffix {
  color: #334155;
  font-weight: 850;
}

.application-preview-missing-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.application-preview-missing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.application-preview-missing-separator {
  color: #1d4ed8;
  font-weight: 820;
}

@keyframes workbenchApplicationRowReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workbench-ai-suggested-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.workbench-ai-suggested-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.76);
  color: #1d4ed8;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.workbench-ai-suggested-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #eff6ff;
}

.workbench-ai-suggested-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.workbench-ai-message-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  color: rgba(100, 116, 139, 0.72);
}

.workbench-ai-message-actions button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.workbench-ai-message-actions button:hover {
  color: var(--ai-blue-deep);
  background: rgba(15, 23, 42, 0.045);
  transform: translateY(-1px);
}

.workbench-ai-message-time {
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  font-weight: 650;
  padding: 0 6px;
  white-space: nowrap;
  margin-left: auto;
}

.workbench-ai-message.is-user .workbench-ai-message-actions {
  justify-self: end;
}

.workbench-ai-message.is-user .workbench-ai-message-time {
  margin-left: 0;
}

.workbench-ai-conversation-bottom {
  position: relative;
  z-index: 6;
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  justify-self: center;
  padding-top: 10px;
}

.workbench-ai-conversation-bottom::before {
  display: none;
}

.workbench-ai-composer--inline {
  width: 100%;
  min-height: 126px;
  grid-template-rows: minmax(54px, 1fr) auto;
  margin: 0;
  padding: 20px 24px;
  border-color: rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: none;
  animation: workbenchAiControlIn 360ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
}

.workbench-ai-composer--inline textarea {
  min-height: 54px;
  font-size: 16px;
}

.workbench-ai-file-strip.inline {
  justify-content: flex-start;
  animation-delay: 0ms;
}

.workbench-ai-disclaimer {
  margin: 0;
  color: rgba(100, 116, 139, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.workbench-ai-thinking-collapse-enter-active,
.workbench-ai-thinking-collapse-leave-active {
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.workbench-ai-thinking-collapse-enter-from,
.workbench-ai-thinking-collapse-leave-to {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.workbench-ai-thinking-collapse-enter-to,
.workbench-ai-thinking-collapse-leave-from {
  max-height: 460px;
  opacity: 1;
  transform: translateY(0);
}

.workbench-ai-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.workbench-ai-confirm-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 247, 0.96));
  color: #0f172a;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.workbench-ai-confirm-dialog h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 860;
  line-height: 1.35;
}

.workbench-ai-confirm-dialog p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.7;
}

.workbench-ai-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.workbench-ai-confirm-actions button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.workbench-ai-confirm-actions .ghost {
  background: rgba(241, 245, 249, 0.9);
  color: #475569;
}

.workbench-ai-confirm-actions .danger {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.2);
}

.workbench-ai-confirm-actions .primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.workbench-ai-confirm-fade-enter-active,
.workbench-ai-confirm-fade-leave-active {
  transition: opacity 180ms ease;
}

.workbench-ai-confirm-fade-enter-active .workbench-ai-confirm-dialog,
.workbench-ai-confirm-fade-leave-active .workbench-ai-confirm-dialog {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.workbench-ai-confirm-fade-enter-from,
.workbench-ai-confirm-fade-leave-to {
  opacity: 0;
}

.workbench-ai-confirm-fade-enter-from .workbench-ai-confirm-dialog,
.workbench-ai-confirm-fade-leave-to .workbench-ai-confirm-dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

@keyframes workbenchAiControlIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes workbenchAiPopoverIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes workbenchAiPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .workbench-ai-mode {
    padding: 34px 20px 34px;
  }

  .workbench-ai-mode::after {
    opacity: 0.58;
  }

  .workbench-ai-shell {
    gap: 18px;
    padding-top: 18px;
  }

  .workbench-ai-copy h2 {
    font-size: 28px;
  }

  .workbench-ai-composer {
    min-height: 168px;
    padding: 24px 24px 20px;
    border-radius: 22px;
  }

  .workbench-ai-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .workbench-ai-conversation {
    padding: 24px 22px 22px;
  }

  .workbench-ai-answer-card {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .workbench-ai-mode {
    padding: 24px 14px 28px;
  }

  .workbench-ai-orb {
    width: 88px;
    height: 88px;
  }

  .workbench-ai-orb__image {
    width: 100%;
    height: 100%;
  }

  .workbench-ai-copy h2 {
    font-size: 24px;
  }

  .workbench-ai-copy p {
    font-size: 14px;
  }

  .workbench-ai-composer {
    min-height: 158px;
    padding: 20px 16px 16px;
  }

  .workbench-ai-composer textarea {
    font-size: 16px;
  }

  .workbench-ai-composer-toolbar {
    gap: 10px;
  }

  .workbench-ai-tool-buttons {
    gap: 8px;
  }

  .workbench-ai-icon-btn {
    width: 40px;
    height: 40px;
  }

  .workbench-ai-send-btn {
    width: 40px;
    height: 40px;
  }

  .workbench-ai-count {
    font-size: 13px;
  }

  .workbench-ai-file-card {
    flex-basis: min(286px, calc(100vw - 48px));
    max-width: min(286px, calc(100vw - 48px));
  }

  .workbench-ai-action-row {
    grid-template-columns: 1fr;
  }

  .workbench-ai-conversation {
    padding: 18px 12px 16px;
  }

  .workbench-ai-thread {
    padding-bottom: 18px;
  }

  .workbench-ai-answer-card {
    padding: 20px;
    border-radius: 16px;
  }

  .workbench-ai-answer-card p {
    font-size: 15px;
  }

  .workbench-ai-user-bubble {
    max-width: 92%;
  }

  .workbench-ai-composer--inline {
    min-height: 120px;
    padding: 18px 16px;
  }

  .workbench-ai-date-popover {
    width: min(276px, calc(100vw - 36px));
  }

}

@media (prefers-reduced-motion: reduce) {
  .workbench-ai-orb,
  .workbench-ai-copy,
  .workbench-ai-composer,
  .workbench-ai-composer textarea,
  .workbench-ai-icon-btn,
  .workbench-ai-send-btn,
  .workbench-ai-file-strip,
  .workbench-ai-action,
  .workbench-ai-message,
  .workbench-ai-composer--inline,
  .workbench-ai-date-popover,
  .workbench-ai-thinking-dot {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .workbench-ai-panel-swap-enter-active,
  .workbench-ai-panel-swap-leave-active,
  .workbench-ai-thinking-collapse-enter-active,
  .workbench-ai-thinking-collapse-leave-active,
  .structured-card-reveal-enter-active,
  .structured-card-reveal-leave-active,
  .workbench-ai-confirm-fade-enter-active,
  .workbench-ai-confirm-fade-leave-active,
  .workbench-ai-confirm-fade-enter-active .workbench-ai-confirm-dialog,
  .workbench-ai-confirm-fade-leave-active .workbench-ai-confirm-dialog {
    transition: none;
  }

  .structured-card-reveal-enter-active .application-preview-row {
    animation: none;
  }
}
