.assistant-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

body.assistant-open {
  overflow: hidden;
}

.assistant-launcher {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #39423d;
  border-radius: 50%;
  background: #171b19;
  box-shadow: 0 14px 34px rgba(18, 22, 20, 0.28);
  color: #f4f7f4;
  cursor: grab;
  outline: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.assistant-launcher::after {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #171b19;
  border-radius: 50%;
  background: #35b77c;
  content: "";
}

.assistant-launcher:hover {
  border-color: #6b7b72;
  box-shadow: 0 16px 38px rgba(18, 22, 20, 0.34);
  transform: translateY(-2px);
}

.assistant-launcher:focus-visible {
  outline: 3px solid rgba(22, 131, 90, 0.28);
  outline-offset: 3px;
}

.assistant-launcher.is-dragging {
  cursor: grabbing;
  transform: none;
  transition: none;
}

.assistant-launcher-glyph {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15.3px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.assistant-unread {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #f3f4f1;
  border-radius: 12px;
  background: #c83e43;
  color: #fff;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.assistant-layer {
  position: fixed;
  z-index: 95;
  inset: 0;
}

.assistant-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(17, 21, 19, 0.44);
  cursor: default;
}

.assistant-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(720px, calc(100vw - 48px));
  height: min(760px, calc(100dvh - 48px));
  min-width: min(380px, calc(100vw - 32px));
  min-height: min(440px, calc(100dvh - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border: 1px solid #303632;
  border-radius: 12px;
  background: rgba(243, 244, 241, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: 0 24px 70px rgba(16, 19, 17, 0.3);
  color: #171a18;
  outline: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #303632;
  background: #171b19;
  color: #f3f5f3;
  cursor: move;
  padding: 20px 18px 17px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.assistant-heading {
  min-width: 0;
}

.assistant-kicker {
  display: block;
  margin-bottom: 5px;
  color: #7bd0a6;
  font-size: 9.9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.assistant-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20.7px;
  line-height: 1.25;
}

.assistant-heading p {
  margin: 9px 0 0;
  color: #bac3bd;
  font-size: 10.8px;
  line-height: 1.65;
}

.assistant-safety-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 6px;
  border: 1px solid #3e7f60;
  border-radius: 12px;
  background: rgba(53, 183, 124, 0.12);
  color: #a9e2c5;
  padding: 1px 8px;
  font-size: 9.9px;
  font-weight: 800;
  white-space: nowrap;
}

.assistant-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.assistant-header-button,
.assistant-close {
  border: 1px solid #46504a;
  background: #232825;
  color: #dce3de;
}

.assistant-header-button {
  min-height: 32px;
  border-radius: 4px;
  padding: 0 9px;
  font-size: 10.8px;
  font-weight: 700;
}

.assistant-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 19.8px;
  line-height: 1;
}

.assistant-header-button:hover,
.assistant-close:hover {
  border-color: #6f7b74;
  background: #303632;
  color: #fff;
}

.assistant-conversation-history {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: rgba(243, 244, 241, 0.9);
}

.assistant-conversation-history[hidden] {
  display: none;
}

.assistant-conversation-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #303632;
  background: #171b19;
  color: #f3f5f3;
  padding: 18px 16px 16px;
}

.assistant-conversation-history-header span {
  display: block;
  margin-bottom: 4px;
  color: #7bd0a6;
  font-size: 9.9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.assistant-conversation-history-header h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 19.8px;
}

.assistant-conversation-history-header > div:last-child {
  display: flex;
  gap: 7px;
}

.assistant-conversation-history-header button,
.assistant-conversation-more {
  min-height: 34px;
  border: 1px solid #46504a;
  border-radius: 4px;
  background: #232825;
  color: #e8ede9;
  padding: 0 10px;
  font-size: 10.8px;
  font-weight: 750;
}

.assistant-conversation-history-header button:hover,
.assistant-conversation-history-header button:focus-visible {
  border-color: #7a8980;
  background: #303632;
  outline: 0;
}

.assistant-conversation-history-status {
  min-height: 42px;
  margin: 0;
  border-bottom: 1px solid #d9ded9;
  background: #f7f8f5;
  color: #566159;
  padding: 11px 16px;
  font-size: 10.8px;
  line-height: 1.55;
}

.assistant-conversation-history-status.is-error {
  background: #fff1f1;
  color: #9b3034;
}

.assistant-conversation-selection-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #d9ded9;
  background: #eef1ed;
  padding: 9px 12px;
}

.assistant-conversation-selection-tools[hidden] {
  display: none;
}

.assistant-conversation-selection-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #26312a;
  font-size: 10.8px;
  font-weight: 750;
}

.assistant-conversation-selection-tools button {
  min-height: 30px;
  border: 1px solid #b8c1ba;
  border-radius: 4px;
  background: #fff;
  color: #334039;
  padding: 0 9px;
  font-size: 9.9px;
  font-weight: 750;
}

.assistant-conversation-selection-tools .assistant-conversation-delete {
  margin-left: auto;
  border-color: #bd7779;
  color: #9b3034;
}

.assistant-conversation-selection-tools button:disabled {
  cursor: default;
  opacity: 0.45;
}

.assistant-conversation-selected-count {
  color: #566159;
  font-size: 9.9px;
  font-weight: 700;
  white-space: nowrap;
}

.assistant-conversation-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
}

.assistant-conversation-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}

.assistant-conversation-history.is-managing .assistant-conversation-row {
  grid-template-columns: 28px minmax(0, 1fr);
}

.assistant-conversation-selector {
  display: none;
  align-items: center;
  justify-content: center;
}

.assistant-conversation-history.is-managing .assistant-conversation-selector {
  display: flex;
}

.assistant-conversation-selector input {
  width: 17px;
  height: 17px;
  accent-color: #16835a;
}

.assistant-conversation-row.is-selected .assistant-conversation-item {
  border-color: #16835a;
  background: #f3faf6;
}

.assistant-conversation-item {
  display: grid;
  width: 100%;
  gap: 5px;
  margin: 0;
  border: 1px solid #d2d8d2;
  border-radius: 7px;
  background: #fff;
  color: #1c211e;
  padding: 11px 12px;
  text-align: left;
}

.assistant-conversation-item:hover,
.assistant-conversation-item:focus-visible {
  border-color: #16835a;
  box-shadow: 0 0 0 3px rgba(22, 131, 90, 0.1);
  outline: 0;
}

.assistant-conversation-item:disabled {
  cursor: wait;
  opacity: 0.62;
}

.assistant-conversation-item-title {
  overflow: hidden;
  font-size: 12.6px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-conversation-item-meta {
  color: #526058;
  font-size: 9.9px;
  font-weight: 700;
}

.assistant-conversation-item-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #606b64;
  font-size: 10.8px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.assistant-conversation-more {
  min-height: 42px;
  margin: 8px 10px max(10px, env(safe-area-inset-bottom));
  border-color: #c4ccc6;
  background: #fff;
  color: #26312a;
}

.assistant-conversation-more[hidden] {
  display: none;
}

.assistant-conversation-more:disabled {
  cursor: wait;
  opacity: 0.55;
}

.assistant-messages {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 24px;
  scroll-behavior: smooth;
}

.assistant-message {
  display: grid;
  margin-bottom: 15px;
}

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

.assistant-message.is-assistant {
  justify-items: start;
}

.assistant-message-label {
  margin: 0 4px 5px;
  color: #667069;
  font-size: 9.9px;
  font-weight: 750;
}

.assistant-message-copy {
  max-width: 92%;
  margin: 0;
  border: 1px solid #d4dad4;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  color: #202522;
  padding: 10px 12px;
  font-size: 12.6px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.assistant-message.is-user .assistant-message-copy {
  border-color: #2c3430;
  border-radius: 12px 12px 3px 12px;
  background: #232825;
  color: #f3f5f3;
}

.assistant-structured-card,
.assistant-action-card {
  width: min(100%, 390px);
  margin-top: 9px;
  border: 1px solid #cfd6cf;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(23, 26, 24, 0.06);
}

.assistant-structured-card > header,
.assistant-action-card > header {
  border-bottom: 1px solid #e2e6e2;
  padding: 10px 12px;
}

.assistant-structured-card h3,
.assistant-action-card h3 {
  margin: 0;
  font-size: 12.6px;
}

.assistant-structured-card header p,
.assistant-action-card header p {
  margin: 4px 0 0;
  color: #667069;
  font-size: 10.8px;
  line-height: 1.5;
}

.assistant-history-list {
  display: grid;
  max-height: 320px;
  overflow-y: auto;
}

.assistant-history-item {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #e7eae7;
  padding: 10px 12px;
}

.assistant-history-item:last-child {
  border-bottom: 0;
}

.assistant-history-item strong {
  font-size: 11.7px;
}

.assistant-history-item span,
.assistant-history-item small {
  color: #59635d;
  font-size: 10.8px;
  line-height: 1.5;
}

.assistant-history-more {
  margin: 0;
  border-top: 1px solid #e2e6e2;
  color: #667069;
  padding: 8px 12px;
  font-size: 9.9px;
}

.assistant-action-body {
  padding: 11px 12px;
}

.assistant-action-state {
  margin: 0 0 9px;
  color: #4a554e;
  font-size: 10.8px;
  line-height: 1.55;
}

.assistant-action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assistant-action-controls button {
  min-height: 34px;
  border: 1px solid #c5cdc7;
  border-radius: 4px;
  background: #f7f8f5;
  color: #29312c;
  padding: 0 10px;
  font-size: 10.8px;
  font-weight: 750;
}

.assistant-action-controls button[data-assistant-action-confirm] {
  border-color: #97363a;
  background: #c83e43;
  color: #fff;
}

.assistant-action-controls button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.assistant-action-card.is-failed {
  border-color: #dca6a8;
  background: #fff8f8;
}

.assistant-action-card.is-complete {
  border-color: #9bc8af;
  background: #f6fcf8;
}

.assistant-status {
  min-height: 38px;
  margin: 0;
  border-top: 1px solid #dfe3de;
  background: #f7f8f5;
  color: #59635d;
  padding: 10px 16px;
  font-size: 10.8px;
  line-height: 1.5;
}

.assistant-status.is-error {
  background: #fff1f1;
  color: #9b3034;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  border-top: 1px solid #cfd5cf;
  background: #fff;
  padding: 12px max(38px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.assistant-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 132px;
  resize: vertical;
  border: 1px solid #cbd1cb;
  border-radius: 6px;
  background: #fff;
  color: #171a18;
  padding: 10px 11px;
  font: inherit;
  font-size: 12.6px;
  line-height: 1.5;
}

.assistant-form textarea:focus {
  border-color: #16835a;
  box-shadow: 0 0 0 3px rgba(22, 131, 90, 0.1);
  outline: 0;
}

.assistant-form button {
  min-width: 66px;
  min-height: 48px;
  border: 0;
  border-radius: 5px;
  background: #171b19;
  color: #fff;
  padding: 0 14px;
  font-size: 11.7px;
  font-weight: 800;
}

.assistant-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.assistant-resize-handle {
  position: absolute;
  z-index: 4;
  right: 2px;
  bottom: 2px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 45%, #657069 46% 52%, transparent 53% 62%, #657069 63% 69%, transparent 70%);
  cursor: nwse-resize;
  opacity: 0.78;
  touch-action: none;
}

.assistant-resize-handle:hover {
  background-color: rgba(23, 27, 25, 0.08);
  opacity: 1;
}

.assistant-resize-handle:focus-visible {
  outline: 3px solid rgba(22, 131, 90, 0.28);
  outline-offset: 1px;
}

.assistant-panel.is-moving .assistant-header {
  cursor: grabbing;
}

.assistant-panel.is-resizing .assistant-resize-handle {
  cursor: nwse-resize;
}

.assistant-panel.is-moving,
.assistant-panel.is-resizing {
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px), (max-height: 520px) and (pointer: coarse) {
  .assistant-launcher {
    width: 54px;
    height: 54px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .assistant-panel {
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: none !important;
  }

  .assistant-header {
    cursor: default;
    padding: max(15px, env(safe-area-inset-top)) 14px 14px;
    touch-action: auto;
  }

  .assistant-heading h2 {
    font-size: 18.9px;
  }

  .assistant-heading p {
    font-size: 10.8px;
  }

  .assistant-messages {
    padding: 14px 11px 20px;
  }

  .assistant-message-copy {
    max-width: 94%;
  }

  .assistant-form {
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .assistant-resize-handle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-launcher,
  .assistant-messages {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Flat interface refresh: visual overrides only; interaction hooks stay intact. */
.assistant-root {
  --assistant-flat-bg: #f4f6f4;
  --assistant-flat-surface: #ffffff;
  --assistant-flat-muted: #eef1ee;
  --assistant-flat-ink: #1b211d;
  --assistant-flat-copy: #566159;
  --assistant-flat-line: #cfd5d0;
  --assistant-flat-green: #176b49;
}

.assistant-launcher {
  width: 50px;
  height: 50px;
  border-color: #313a34;
  background: #202722;
  box-shadow: 0 4px 12px rgba(18, 24, 20, 0.16);
}

.assistant-launcher::after {
  right: 1px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-color: #202722;
  background: #2f9467;
}

.assistant-launcher:hover {
  border-color: #536159;
  background: #2a332d;
  box-shadow: 0 5px 14px rgba(18, 24, 20, 0.18);
  transform: none;
}

.assistant-launcher-glyph {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.assistant-backdrop {
  background: rgba(20, 27, 23, 0.28);
}

.assistant-panel {
  border-color: #bfc7c1;
  border-radius: 4px;
  background: rgba(243, 245, 243, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: 0 12px 32px rgba(18, 24, 20, 0.16);
  color: var(--assistant-flat-ink);
}

.assistant-panel:focus-visible,
.assistant-header:focus-visible {
  outline: 2px solid #356f94;
  outline-offset: -3px;
}

.assistant-header,
.assistant-conversation-history-header {
  border-bottom-color: var(--assistant-flat-line);
  background: var(--assistant-flat-surface);
  color: var(--assistant-flat-ink);
}

.assistant-header {
  padding: 14px 16px 13px;
}

.assistant-kicker,
.assistant-conversation-history-header span {
  color: var(--assistant-flat-green);
  letter-spacing: 0;
}

.assistant-heading h2,
.assistant-conversation-history-header h3 {
  font-family: inherit;
  font-size: 18px;
}

.assistant-heading p {
  margin-top: 7px;
  color: var(--assistant-flat-copy);
  font-size: 11px;
  line-height: 1.55;
}

.assistant-safety-badge {
  min-height: 20px;
  border-color: #a9c8b7;
  border-radius: 4px;
  background: #edf7f1;
  color: #1c6747;
  padding: 1px 6px;
  font-size: 10px;
}

.assistant-header-button,
.assistant-close,
.assistant-conversation-history-header button,
.assistant-conversation-more {
  border-color: #bfc7c1;
  border-radius: 4px;
  background: var(--assistant-flat-surface);
  color: #303a34;
}

.assistant-header-button:hover,
.assistant-close:hover,
.assistant-conversation-history-header button:hover,
.assistant-conversation-history-header button:focus-visible,
.assistant-conversation-more:hover,
.assistant-conversation-more:focus-visible {
  border-color: #87938b;
  background: var(--assistant-flat-muted);
  color: var(--assistant-flat-ink);
}

.assistant-header-button:focus-visible,
.assistant-close:focus-visible,
.assistant-conversation-history-header button:focus-visible,
.assistant-conversation-more:focus-visible {
  outline: 2px solid #356f94;
  outline-offset: 2px;
}

.assistant-launcher:focus-visible,
.assistant-resize-handle:focus-visible {
  outline: 2px solid #356f94;
  outline-offset: 2px;
}

.assistant-conversation-history {
  background: rgba(243, 245, 243, 0.9);
}

.assistant-conversation-history-header {
  padding: 14px 16px 13px;
}

.assistant-conversation-history-status,
.assistant-conversation-selection-tools,
.assistant-status {
  border-color: var(--assistant-flat-line);
  background: var(--assistant-flat-muted);
  color: var(--assistant-flat-copy);
}

.assistant-conversation-selection-tools {
  background: #f7f8f7;
}

.assistant-conversation-selection-tools button,
.assistant-conversation-item,
.assistant-conversation-more {
  border-radius: 4px;
  box-shadow: none;
}

.assistant-conversation-row.is-selected .assistant-conversation-item {
  border-color: #7fac92;
  background: #f1f7f3;
}

.assistant-conversation-item:hover,
.assistant-conversation-item:focus-visible {
  border-color: #7f9186;
  box-shadow: 0 0 0 3px rgba(23, 107, 73, 0.1);
}

.assistant-messages {
  background: var(--assistant-flat-bg);
  padding: 16px 16px 22px;
}

.assistant-message {
  margin-bottom: 12px;
}

.assistant-message-label {
  color: #68736c;
}

.assistant-message-copy,
.assistant-message.is-user .assistant-message-copy {
  max-width: 90%;
  border-radius: 4px;
  box-shadow: none;
  color: var(--assistant-flat-ink);
  padding: 10px 12px;
}

.assistant-message-copy {
  border-color: var(--assistant-flat-line);
  background: var(--assistant-flat-surface);
}

.assistant-message.is-user .assistant-message-copy {
  border-color: #c2cec6;
  background: #e9eeea;
}

.assistant-structured-card,
.assistant-action-card {
  border-color: var(--assistant-flat-line);
  border-radius: 4px;
  box-shadow: none;
}

.assistant-structured-card > header,
.assistant-action-card > header,
.assistant-history-more {
  border-color: #dfe4e0;
}

.assistant-action-card.is-failed {
  border-color: #d9a8aa;
  background: #fff8f8;
}

.assistant-action-card.is-complete {
  border-color: #9fc5ae;
  background: #f5faf7;
}

.assistant-conversation-history-status.is-error,
.assistant-status.is-error {
  background: #fff1f1;
  color: #92383c;
}

.assistant-action-controls button,
.assistant-form textarea,
.assistant-form button {
  border-radius: 4px;
}

.assistant-form {
  border-top-color: var(--assistant-flat-line);
  background: var(--assistant-flat-surface);
  padding-top: 10px;
}

.assistant-form textarea {
  border-color: #bfc7c1;
  background: var(--assistant-flat-surface);
}

.assistant-form textarea:focus {
  border-color: var(--assistant-flat-green);
  box-shadow: 0 0 0 3px rgba(23, 107, 73, 0.1);
}

.assistant-form button {
  background: #202722;
}

.assistant-form button:hover:not(:disabled) {
  background: #303a34;
}

@media (max-width: 640px), (max-height: 520px) and (pointer: coarse) {
  .assistant-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .assistant-header {
    flex-wrap: wrap;
    padding: max(15px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
  }

  .assistant-heading {
    flex: 1 1 100%;
  }

  .assistant-header-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .assistant-conversation-history-header {
    flex-wrap: wrap;
    padding: max(15px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 13px max(14px, env(safe-area-inset-left));
  }

  .assistant-conversation-history-header > div:first-child {
    flex: 1 1 90px;
    min-width: 0;
  }

  .assistant-conversation-history-header > div:last-child {
    flex: 1 1 160px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .assistant-conversation-selection-tools {
    flex-wrap: wrap;
  }

  .assistant-header-button,
  .assistant-conversation-history-header button,
  .assistant-conversation-selection-tools button,
  .assistant-conversation-selection-tools label,
  .assistant-action-controls button,
  .assistant-conversation-more {
    min-height: 44px;
  }

  .assistant-close {
    width: 44px;
    height: 44px;
  }

  .assistant-form textarea {
    font-size: 16px;
  }

  .assistant-messages {
    padding: 14px 11px 20px;
  }

  .assistant-message-copy,
  .assistant-message.is-user .assistant-message-copy {
    max-width: 94%;
  }

}
