.ws-ai-chat {
  border: 1px solid var(--ws-color-line);
  border-radius: 16px;
  background: var(--ws-color-surface);
  padding: 24px;
  min-width: 0;
}
.ws-chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ws-chat-header h3 {
  margin: 0;
  font: var(--ws-type-title);
}
.ws-chat-header p {
  margin: 5px 0 0;
  color: var(--ws-color-muted);
  font: var(--ws-type-body);
}
.ws-chat-brand,
.ws-chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  background: var(--ws-color-mint);
  color: var(--ws-color-action);
  border-radius: 10px;
  width: 44px;
  height: 44px;
}
.ws-chat-brand svg {
  width: 24px;
  height: 24px;
}
.ws-chat-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.ws-chat-modes .ws-chat-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--ws-control-height);
  padding: 8px 12px;
  border: 1px solid var(--ws-color-line);
  border-radius: 8px;
  background: var(--ws-color-surface);
  font: var(--ws-type-control);
  color: var(--ws-color-muted);
}
.ws-chat-modes .is-selected {
  background: var(--ws-color-mint);
  color: var(--ws-color-action-hover);
  border-color: var(--ws-color-action);
}
.ws-chat-modes .ws-chat-mode:disabled {
  opacity: 1;
  cursor: default;
}
.ws-chat-mode svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.ws-chat-mode > span {
  font: var(--ws-type-small);
  background: var(--ws-color-sunk);
  border: 1px solid var(--ws-color-line);
  padding: 1px 6px;
  border-radius: 4px;
}
.ws-chat-mode-note,
.ws-chat-note {
  color: var(--ws-color-muted);
  font: var(--ws-type-small);
  margin: 10px 0 0;
}
.ws-chat-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  margin: 0;
  max-height: 400px;
  overflow: auto;
  list-style: none;
}
.ws-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.ws-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.ws-chat-avatar svg {
  width: 16px;
  height: 16px;
}
.ws-chat-message > div {
  padding: 12px 16px;
  background: var(--ws-color-sunk);
  border-radius: 0 12px 12px;
  max-width: 85%;
  min-width: 0;
}
.ws-chat-message strong {
  font: var(--ws-type-label);
}
.ws-chat-message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: var(--ws-type-body);
}
.ws-chat-message--user {
  flex-direction: row-reverse;
}
.ws-chat-message--user > div {
  background: var(--ws-color-mint);
  border-radius: 12px 0 12px 12px;
}
.ws-chat-message--user .ws-chat-avatar {
  background: var(--ws-color-sunk);
  color: var(--ws-color-muted);
}
.ws-chat-message-files {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.ws-chat-message-files li {
  display: flex;
  gap: 6px;
  align-items: center;
  font: var(--ws-type-small);
}
.ws-chat-message-files svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.ws-chat-message-files span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.ws-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.ws-chat-suggestions .ws-button {
  border-radius: 20px;
  font: var(--ws-type-small);
}
.ws-chat-composer {
  padding: 16px;
  border: 1px solid var(--ws-color-control);
  border-radius: 12px;
  background: var(--ws-color-surface);
}
.ws-chat-composer:focus-within {
  border-color: var(--ws-color-action);
}
.ws-chat-composer textarea {
  width: 100%;
  min-height: 90px;
  max-height: 240px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: var(--ws-type-body);
  color: var(--ws-color-ink);
  resize: vertical;
}
.ws-chat-composer:has(textarea:focus-visible) {
  outline: var(--ws-focus);
  outline-offset: 2px;
}
.ws-chat-composer textarea:focus-visible {
  outline: none;
}
.ws-chat-compose-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--ws-color-line);
  padding-top: 12px;
  margin-top: 12px;
}
.ws-chat-compose-footer > p {
  font: var(--ws-type-small);
  color: var(--ws-color-muted);
  margin: 0;
  flex: 1 1 230px;
}
.ws-file-field--compact {
  margin-top: 12px;
}
.ws-file-field--compact > label,
.ws-file-field--compact .ws-file-symbol,
.ws-file-field--compact .ws-file-dropzone > strong,
.ws-file-field--compact .ws-file-dropzone > p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ws-file-field--compact .ws-file-dropzone {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  gap: 8px;
  padding: 8px;
  background: var(--ws-color-sunk);
  border: 1px dashed var(--ws-color-line);
}
.ws-file-field--compact .ws-file-dropzone.is-dragging {
  background: var(--ws-color-mint);
  border-color: var(--ws-color-action);
}
.ws-file-field--compact .ws-file-limits {
  max-width: 320px;
}
.ws-file-field--compact .ws-file-browse {
  padding: 8px 10px;
}
.ws-chat-recording,
.ws-chat-audio-review {
  border: 1px solid var(--ws-color-line);
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font: var(--ws-type-body);
}
.ws-chat-recording {
  color: var(--ws-color-danger);
  background: var(--ws-color-danger-bg);
}
.ws-chat-recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ws-color-danger);
}
.ws-chat-audio-review {
  background: var(--ws-color-sunk);
}
.ws-chat-audio-review strong {
  font: var(--ws-type-label);
}
.ws-chat-audio-review p {
  margin: 4px 0 0;
  color: var(--ws-color-muted);
  font: var(--ws-type-small);
}
.ws-chat-audio-review audio {
  width: 100%;
  max-width: 100%;
}
.ws-ai-chat [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .ws-ai-chat {
    padding: 16px;
  }
  .ws-chat-header {
    align-items: flex-start;
  }
  .ws-chat-header h3 {
    font: var(--ws-type-heading);
  }
  .ws-chat-brand {
    width: 36px;
    height: 36px;
  }
  .ws-chat-brand svg {
    width: 20px;
    height: 20px;
  }
  .ws-chat-composer {
    padding: 12px;
  }
  .ws-chat-composer textarea {
    font-size: 16px;
  }
  .ws-chat-message > div {
    max-width: calc(100% - 40px);
    padding: 10px;
  }
  .ws-file-field--compact .ws-file-dropzone .ws-actions {
    flex-wrap: wrap;
  }
  .ws-chat-compose-footer > .ws-actions {
    margin-left: auto;
  }
}

.ws-file-field--compact .ws-file-list {
  display: flex;
  flex-wrap: wrap;
}
.ws-file-field--compact .ws-file-list[hidden] {
  display: none;
}
.ws-file-field--compact .ws-file-list > li {
  flex: 1 1 240px;
  max-width: 100%;
  padding: 8px 10px;
}
.ws-chat-log:focus-visible {
  outline: var(--ws-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Floating assistant: the page stays usable on desktop; the phone sheet is modal. */
.ws-floating-ai {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  z-index: 80;
}
.ws-floating-ai [hidden] {
  display: none !important;
}
.ws-floating-ai > [data-action="ai-launch"] {
  min-height: 52px;
  border-radius: 28px;
  padding: 12px 20px;
  box-shadow: var(--ws-shadow-overlay);
}
.ws-floating-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 48px));
  height: min(740px, calc(100dvh - 80px));
  border: 1px solid var(--ws-color-line);
  border-radius: 16px;
  background: var(--ws-color-surface);
  box-shadow: var(--ws-shadow-overlay);
  overflow: hidden;
  color: var(--ws-color-ink);
}
.ws-floating-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  flex: none;
  border-bottom: 1px solid var(--ws-color-line);
}
.ws-floating-header .ws-chat-brand {
  width: 36px;
  height: 36px;
}
.ws-floating-header .ws-chat-brand svg {
  width: 20px;
  height: 20px;
}
.ws-floating-header > div {
  flex: 1;
  min-width: 0;
}
.ws-floating-header h2 {
  font: var(--ws-type-heading);
  margin: 0;
}
.ws-floating-header p {
  margin: 2px 0 0;
  color: var(--ws-color-muted);
  font: var(--ws-type-small);
}
.ws-floating-context {
  border-bottom: 1px solid var(--ws-color-line);
  background: var(--ws-color-sunk);
  flex: none;
}
.ws-floating-context > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  min-height: 52px;
  font: var(--ws-type-label);
  list-style: none;
}
.ws-floating-context > summary::-webkit-details-marker {
  display: none;
}
.ws-floating-context > summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ws-color-muted);
}
.ws-floating-context > summary > span {
  flex: 1;
  min-width: 0;
}
.ws-floating-context small {
  display: block;
  color: var(--ws-color-muted);
  font: var(--ws-type-small);
}
.ws-floating-context strong {
  display: block;
  font: var(--ws-type-label);
  overflow-wrap: anywhere;
}
.ws-floating-context > div {
  padding: 0 16px 12px;
  max-height: 144px;
  overflow: auto;
  font: var(--ws-type-small);
}
.ws-floating-context p {
  margin: 0 0 8px;
}
.ws-floating-context dl {
  margin: 0;
  display: grid;
  gap: 6px;
}
.ws-floating-context dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ws-floating-context dt {
  color: var(--ws-color-muted);
}
.ws-floating-context dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ws-floating-context .ws-floating-context-note {
  margin: 10px 0 0;
  color: var(--ws-color-muted);
}
.ws-floating-sessions {
  flex: 1;
  min-height: 0;
  display: flex;
}
.ws-floating-session {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  padding: 12px;
}
.ws-floating-session .ws-ai-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.ws-floating-session .ws-chat-header {
  display: none;
}
.ws-floating-session .ws-chat-modes {
  margin: 0 0 4px;
  flex: none;
  gap: 6px;
}
.ws-floating-session .ws-chat-mode {
  min-height: 36px;
  padding: 6px 10px;
}
.ws-floating-session .ws-chat-mode-note {
  display: none;
}
.ws-floating-session .ws-chat-log {
  flex: 1 1 0%;
  min-height: 72px;
  max-height: none;
  padding: 12px 0;
  overscroll-behavior: contain;
  gap: 12px;
}
.ws-floating-session .ws-chat-message {
  gap: 6px;
}
.ws-floating-session .ws-chat-message > div {
  padding: 10px;
  max-width: calc(100% - 36px);
}
.ws-floating-session .ws-chat-suggestions {
  flex: none;
  gap: 6px;
  margin-bottom: 10px;
}
.ws-floating-session .ws-chat-suggestions .ws-button {
  min-height: 32px;
  padding: 5px 10px;
}
.ws-floating-session .ws-chat-composer {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 56%;
  overflow: auto;
  padding: 10px;
  border-color: var(--ws-color-line);
  overscroll-behavior: contain;
}
.ws-floating-session .ws-chat-composer textarea {
  min-height: 56px;
  height: 64px;
  max-height: 140px;
}
.ws-floating-session .ws-file-field--compact {
  margin-top: 4px;
}
.ws-floating-session .ws-file-dropzone {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 4px;
}
.ws-floating-session .ws-file-dropzone.is-dragging {
  background: var(--ws-color-mint);
  outline: 1px dashed var(--ws-color-action);
}
.ws-floating-session .ws-file-browse {
  padding: 6px 8px;
}
.ws-floating-session .ws-file-limits {
  max-width: none;
  font-size: 11px;
  line-height: 15px;
}
.ws-floating-session .ws-chat-compose-footer {
  padding-top: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}
.ws-floating-session .ws-chat-compose-footer > p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.ws-floating-session .ws-file-list > li {
  padding: 6px 8px;
}
.ws-floating-header button:focus-visible,
.ws-floating-context summary:focus-visible {
  outline: var(--ws-focus);
  outline-offset: -3px;
}
@media (max-width: 600px) {
  .ws-floating-panel {
    inset: 8px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 12px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ws-floating-session {
    padding: 10px;
  }
  .ws-floating-session .ws-chat-mode,
  .ws-floating-session .ws-chat-suggestions .ws-button {
    min-height: 44px;
  }
  .ws-floating-header {
    padding: 10px 12px;
  }
  .ws-floating-context > summary {
    padding: 8px 12px;
  }
}
@media print {
  .ws-floating-ai {
    display: none;
  }
}

.ws-floating-session .ws-chat-composer { display: flex; flex-direction: column; overflow: hidden; }
.ws-floating-session .ws-chat-compose-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 3px; overscroll-behavior: contain; }
.ws-floating-session .ws-chat-compose-footer { flex: none; }
.ws-floating-session .ws-chat-composer > .ws-field-error { flex: none; }
.ws-floating-session .ws-chat-mode { font-size: 12px; gap: 6px; padding-inline: 8px; }
.ws-floating-session .ws-chat-mode > span { font-size: 10px; padding-inline: 4px; }
.ws-floating-session .ws-chat-suggestions { flex-wrap: nowrap; overflow: auto; min-height: 32px; overscroll-behavior: contain; }
.ws-floating-session .ws-chat-suggestions .ws-button { flex: none; white-space: nowrap; }
@media (max-width:600px) {
  .ws-floating-session .ws-chat-suggestions { min-height: 44px; }
}
@media (max-width:600px) and (max-height:700px) {
  .ws-floating-context > div { max-height: 96px; }
}
.ws-chat-message-context { display: block; font: var(--ws-type-small); color: var(--ws-color-muted); margin-top: 3px; overflow-wrap: anywhere; }
@media (min-width:1100px) {
  /* Keep a customer's native form usable beside the floating companion. */
  dialog.ws-modal:has(> .ws-floating-ai .ws-floating-panel:not([hidden])) {
    width: min(640px,calc(100vw - 552px));
    max-width: calc(100vw - 552px);
    margin-left: 24px;
    margin-right: auto;
  }
}

/* Inside a phone dialog, keep the portaled launcher in the action flow so
   it cannot cover form fields. The open chat panel keeps its own overlay. */
@media (max-width: 760px) {
  dialog.ws-modal > .ws-floating-ai {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-block-start: var(--ws-space-4);
  }
  dialog.ws-modal:has(> .ws-floating-ai > [data-action="ai-launch"]:not([hidden])) {
    padding-bottom: calc(var(--ws-space-5) + env(safe-area-inset-bottom));
  }
}

/* The app navigation owns the bottom edge; dialog launchers retain modal spacing. */
@media(max-width:760px){body:has(.ws-mobile-nav)>.ws-floating-ai:has(>[data-action="ai-launch"]:not([hidden])){bottom:calc(76px + env(safe-area-inset-bottom));right:16px}}

/* Compact panel (2026-11-05): one-line header with the context chip, plain assistant
   text, user bubbles, an intro before the first message and a one-line composer. */
.ws-floating-header { gap: 8px; padding: 8px 8px 8px 16px; position: relative; }
.ws-floating-header .ws-chat-brand { width: auto; height: auto; background: transparent; color: var(--ws-color-action); }
.ws-floating-header .ws-chat-brand svg { width: 18px; height: 18px; }
.ws-floating-header h2 { flex: none; font: 700 16px/22px var(--ws-font-family); }
.ws-floating-context-slot { flex: 1 1 auto; min-width: 0; display: flex; }
.ws-floating-context { border: 0; background: transparent; min-width: 0; }
.ws-floating-context > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; max-width: 100%; padding: 0 8px 0 10px; border-radius: 999px; background: var(--ws-color-rail); font: var(--ws-type-label); color: var(--ws-color-ink); }
.ws-floating-context > summary:hover { background: var(--ws-color-line); }
.ws-floating-context > summary svg { width: 14px; height: 14px; }
.ws-floating-context-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-floating-context[open] > summary svg { transform: rotate(180deg); }
.ws-floating-context > div { position: absolute; z-index: 2; top: calc(100% + 4px); left: 12px; right: 12px; max-height: min(320px, 50dvh); padding: 12px 14px; border: 1px solid var(--ws-color-line); border-radius: 12px; background: var(--ws-color-surface); box-shadow: var(--ws-shadow-overlay); }
.ws-floating-context .ws-floating-context-note { margin: 0 0 8px; font: var(--ws-type-label); color: var(--ws-color-muted); }
.ws-floating-header .ws-button--icon { color: var(--ws-color-muted); }

.ws-floating-session { padding: 0; }
.ws-floating-session .ws-chat-log { padding: 20px 16px 12px; gap: 18px; }
.ws-chat-message { display: block; }
.ws-chat-message-author { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ws-chat-message-body > :first-child { margin-top: 0; }
.ws-chat-message-body :is(p, ul, ol) { margin: 8px 0 0; font: 400 15px/23px var(--ws-font-family); overflow-wrap: anywhere; white-space: normal; }
.ws-chat-message-body :is(ul, ol) { padding-left: 20px; display: grid; gap: 4px; }
.ws-chat-message-body strong { font-weight: 600; }
:is(.ws-floating-session, .ws-ai-chat) .ws-chat-message--assistant > div { max-width: 100%; padding: 0; background: transparent; border-radius: 0; }
:is(.ws-floating-session, .ws-ai-chat) .ws-chat-message--user > div { margin-left: auto; width: fit-content; max-width: 85%; padding: 10px 14px; background: var(--ws-color-mint); border-radius: 14px 14px 4px 14px; }
.ws-chat-message-context { margin: 0 0 4px; }

.ws-chat-intro { display: grid; gap: 6px; padding: 0 16px 16px; }
.ws-chat-intro h3 { margin: 0; font: 700 20px/26px var(--ws-font-family); color: var(--ws-color-ink); }
.ws-chat-intro p { margin: 0; font: var(--ws-type-body); color: var(--ws-color-muted); }
.ws-ai-chat:has(.ws-chat-log > li) .ws-chat-intro { display: none; }
.ws-floating-session .ws-ai-chat:not(:has(.ws-chat-log > li)) .ws-chat-log { padding: 0; min-height: 0; }
.ws-floating-session .ws-chat-suggestions { padding: 0 16px; margin-bottom: 8px; }
.ws-ai-chat:not(:has(.ws-chat-log > li)) .ws-chat-suggestions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow: visible; margin-bottom: 16px; }
.ws-ai-chat:not(:has(.ws-chat-log > li)) .ws-chat-suggestions .ws-button { justify-content: flex-start; min-height: 44px; border-radius: 10px; font: var(--ws-type-body); white-space: normal; text-align: left; }
.ws-floating-session .ws-chat-suggestions .ws-button { border-color: var(--ws-color-line); }

.ws-floating-session .ws-chat-composer { position: relative; margin: 0 12px; padding: 10px 8px 6px 14px; border: 1px solid var(--ws-color-control); border-radius: 14px; max-height: 50%; }
.ws-floating-session .ws-chat-composer:focus-within { border-color: var(--ws-color-action); box-shadow: 0 0 0 3px var(--ws-color-mint); }
.ws-floating-session .ws-chat-composer:has(textarea:focus-visible) { outline: none; }
.ws-floating-session .ws-chat-composer textarea { min-height: 24px; height: auto; max-height: 160px; padding: 2px 0; font: 400 15px/22px var(--ws-font-family); resize: none; overflow-y: auto; }
.ws-floating-session .ws-chat-compose-body { padding: 0; }
/* The attach control sits on the composer's bottom row; limits stay in its description. */
.ws-chat-composer .ws-file-field--compact { margin: 0; }
.ws-chat-composer .ws-file-field--compact .ws-file-dropzone { padding: 0; border: 0; background: transparent; }
.ws-chat-composer .ws-file-dropzone > .ws-actions { position: absolute; left: 4px; bottom: 6px; z-index: 1; }
.ws-chat-composer .ws-file-dropzone [data-action="file-paste"] { display: none; }
.ws-chat-composer .ws-file-browse { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0 !important; border: 0; border-radius: 8px; background: transparent; color: var(--ws-color-muted); cursor: pointer; }
.ws-chat-composer .ws-file-browse:hover { background: var(--ws-color-rail); color: var(--ws-color-ink); }
.ws-chat-composer .ws-file-browse > span, .ws-chat-composer .ws-file-limits { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ws-chat-composer .ws-file-browse:has(input:focus-visible) { outline: var(--ws-focus); outline-offset: 2px; }
.ws-floating-session .ws-chat-compose-footer { min-height: 40px; margin-top: 2px; padding: 0; border: 0; }
.ws-chat-compose-footer > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:is(.workspace, dialog, .ws-floating-ai) .ws-chat-compose-footer [data-action="chat-send"] { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border-radius: 999px; }
:is(.workspace, dialog, .ws-floating-ai) .ws-chat-compose-footer [data-action="chat-send"]:disabled { background: #b9d8cb; border-color: #b9d8cb; color: #fff; opacity: 1; }
.ws-floating-session .ws-chat-note { margin: 0; padding: 8px 16px 12px; text-align: center; font: var(--ws-type-small); color: var(--ws-color-muted); }
@media (max-width: 600px) {
  .ws-floating-header { padding: 6px 6px 6px 12px; }
  :is(.workspace, dialog, .ws-floating-ai) .ws-chat-compose-footer [data-action="chat-send"] { width: 44px; min-width: 44px; height: 44px; }
  .ws-chat-composer .ws-file-browse { width: 44px; height: 44px; }
}
.ws-chat-log { align-content: start; }
.ws-chat-message-body strong { font: inherit; font-weight: 600; }
.ws-chat-message-body ul { list-style: disc; }
.ws-chat-message-body ol { list-style: decimal; }
.ws-chat-message--assistant .ws-chat-message-context { display: none; }
.ws-chat-message--user .ws-chat-message-context { margin: 0 0 2px; font-size: 11px; line-height: 15px; }

/* Evidence links are validated native record navigation. */
.ws-chat-message-sources { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.ws-chat-message-sources a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ws-color-action); font: var(--ws-type-small); overflow-wrap: anywhere; text-underline-offset: 3px; }
.ws-chat-message-sources a:focus-visible { outline: 2px solid var(--ws-color-action); outline-offset: 3px; }
@media (pointer: coarse) { .ws-chat-message-sources a { min-block-size: 44px; align-items: center; } }
.ws-chat-setup{margin-block:var(--ws-space-3);padding:var(--ws-space-3);border:1px solid var(--ws-color-line);border-radius:var(--ws-card-radius);background:var(--ws-color-surface);min-width:0}
.ws-chat-setup .ws-chat-setup-state{color:var(--ws-color-muted);font-size:var(--ws-type-small-size,.875rem)}
.ws-chat-setup summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--ws-color-action)}
.ws-chat-setup ol{padding-inline-start:1.25rem}.ws-chat-setup li{padding-block:.5rem;overflow-wrap:anywhere}
.ws-chat-setup dl{margin:.5rem 0}.ws-chat-setup dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.5rem;padding-block:.125rem}.ws-chat-setup dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.ws-chat-setup .ws-actions{display:flex;flex-wrap:wrap;gap:.5rem}.ws-chat-setup a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
.ws-chat-setup:focus-visible{outline:2px solid var(--ws-color-action);outline-offset:3px}
