.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.agent-page {
  min-height: 100vh;
  color: #111827;
  background: #f4f7fb;
  font-family: "Noto Sans SC", var(--font-sans);
  line-height: 1.65;
}

.agent-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  height: 57px;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.agent-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #111827;
  text-decoration: none;
}

.agent-brand__mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #ea580c;
  background: #fff7ed;
}

.agent-brand__mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.agent-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 20px;
}

.agent-brand__copy strong {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.agent-brand__copy small {
  margin-top: 0;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  line-height: 12.5px;
  white-space: nowrap;
}

.agent-tabs {
  display: flex;
  min-width: 0;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
}

.agent-tab {
  display: inline-flex;
  width: 112px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.agent-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.agent-tab svg .video-nav-play {
  fill: currentColor;
  stroke: none;
}

.agent-tab:hover {
  color: #ea580c;
  background: #fff7ed;
}

.agent-tab--active {
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.24);
}

.agent-tab--active:hover {
  color: #fff;
  background: var(--button-gradient);
  filter: brightness(1.03);
}

.agent-account {
  display: flex;
  min-width: 0;
  height: 36px;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 227px;
  gap: 0;
  padding: 0 6px 0 4px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 9999px;
  color: #374151;
  background: #fff7ed;
  font-size: 12px;
  line-height: 16px;
}

.agent-account button,
.agent-account a {
  border: 0;
  background: transparent;
}

.agent-account__avatar {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent !important;
  cursor: pointer;
}

.agent-account__avatar::before {
  position: absolute;
  inset: 3px 0;
  border-radius: 50%;
  background: var(--button-gradient);
  content: "";
}

.agent-account__avatar svg {
  position: relative;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.agent-account__credits {
  display: inline-flex;
  width: 66px;
  height: 34px;
  align-items: center;
  padding: 0 8px !important;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.agent-account__credits span {
  margin-left: 3px;
}

.agent-account__dot {
  display: inline-flex;
  width: 12px;
  margin: 0 2px;
  justify-content: center;
  color: #9ca3af;
  font-size: 12px;
}

.agent-account__phone {
  display: inline-flex;
  height: 34px;
  align-items: center;
  max-width: 112px;
  width: 88px;
  overflow: hidden;
  padding: 0;
  color: #111827;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-account__chevron {
  width: 17px;
  margin-left: 0;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.agent-workspace {
  display: flex;
  width: 100%;
  height: calc(100vh - 57px);
  height: calc(100dvh - 57px);
  min-height: 480px;
  overflow: hidden;
}

.agent-sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  width: 288px;
  height: 100%;
  flex: 0 0 288px;
  flex-direction: column;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.agent-sidebar__header {
  display: flex;
  height: 53px;
  flex: 0 0 53px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.agent-sidebar__header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.agent-sidebar__new {
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.agent-sidebar__close {
  display: none;
}

.agent-sidebar__empty {
  flex: 1;
  padding: 25px 12px;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.agent-sidebar__error {
  flex: 0 0 auto;
  margin: 0 12px 8px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 16px;
}

.agent-sidebar__list {
  flex: 1;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.chat-history-loader {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.chat-history-loader:hover {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}

.chat-history-loader:disabled {
  cursor: wait;
  opacity: 0.6;
}

.chat-history-loader--sessions {
  flex: 0 0 auto;
  margin: 0 8px 8px;
}

.agent-session-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  border-radius: 8px;
}

.agent-session-item:hover {
  background: #f3f4f6;
}

.agent-session-item--active,
.agent-session-item--active:hover {
  background: #fff7ed;
}

.agent-session-item__main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 4px 9px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.agent-session-item__title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #374151;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-session-item--active .agent-session-item__title {
  color: #ea580c;
  font-weight: 600;
}

.agent-session-item__time {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 10px;
  line-height: 16px;
}

.agent-session-item__rename-button {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
}

.agent-session-item__rename-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.agent-session-item:hover .agent-session-item__rename-button,
.agent-session-item:focus-within .agent-session-item__rename-button {
  opacity: 1;
}

.agent-session-item__rename-button:hover {
  color: #374151;
  background: #fff;
}

.agent-session-item__rename {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 2px 4px;
  padding: 5px 8px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  outline: none;
}

.agent-session-item__rename:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.agent-session-item__delete {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: 0.55;
}

.agent-session-item:hover .agent-session-item__delete,
.agent-session-item:focus-within .agent-session-item__delete {
  opacity: 1;
}

.agent-session-item__delete:hover {
  color: #b91c1c;
  background: #fee2e2;
}

.chat-delete-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  border: 0;
  color: #111827;
  background: rgba(17, 24, 39, 0.42);
}

.chat-delete-dialog[hidden] {
  display: none;
}

.chat-delete-dialog__panel {
  width: min(400px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.22);
}

.chat-delete-dialog h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.chat-delete-dialog p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.chat-delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.chat-delete-dialog__actions button {
  min-width: 72px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.chat-delete-dialog__actions .chat-delete-dialog__confirm {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

.chat-delete-dialog__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.agent-sidebar__retention {
  height: 33.5px;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: #6b7280;
  font-size: 10px;
  line-height: 16.5px;
  text-align: center;
}

.agent-chat {
  position: relative;
  min-width: 0;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: #f4f7fb;
}

.agent-chat__sessions,
.agent-backdrop {
  display: none;
}

.agent-chat__messages {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 152px;
  overflow-y: auto;
}

.agent-chat__messages[hidden] {
  display: none;
}

.agent-chat__message-list {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
}

.chat-history-loader--messages {
  width: fit-content;
  flex: 0 0 auto;
  margin: 0 auto 18px;
}

.chat-message {
  display: flex;
  width: min(768px, 100%);
  margin: 0 auto 12px;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message--assistant {
  display: grid;
  grid-template-columns: fit-content(78%) minmax(0, 1fr);
  align-items: flex-start;
}

.chat-message__bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message--user .chat-message__bubble {
  border-bottom-right-radius: 4px;
  color: #fff;
  background: var(--button-gradient);
}

.chat-message--assistant .chat-message__bubble {
  grid-column: 1;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom-left-radius: 4px;
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.chat-message__bubble--markdown {
  white-space: normal;
}

.chat-message__bubble--markdown > :first-child {
  margin-top: 0;
}

.chat-message__bubble--markdown > :last-child {
  margin-bottom: 0;
}

.chat-message__bubble--markdown h1,
.chat-message__bubble--markdown h2,
.chat-message__bubble--markdown h3,
.chat-message__bubble--markdown h4,
.chat-message__bubble--markdown h5,
.chat-message__bubble--markdown h6 {
  margin: 1.15em 0 0.55em;
  color: #111827;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.chat-message__bubble--markdown h1 {
  font-size: 20px;
}

.chat-message__bubble--markdown h2 {
  font-size: 18px;
}

.chat-message__bubble--markdown h3 {
  font-size: 16px;
}

.chat-message__bubble--markdown h4,
.chat-message__bubble--markdown h5,
.chat-message__bubble--markdown h6 {
  font-size: 14px;
}

.chat-message__bubble--markdown p,
.chat-message__bubble--markdown ul,
.chat-message__bubble--markdown ol,
.chat-message__bubble--markdown blockquote,
.chat-message__bubble--markdown pre,
.chat-message__bubble--markdown table {
  margin: 0 0 0.85em;
}

.chat-message__bubble--markdown ul,
.chat-message__bubble--markdown ol {
  padding-left: 1.5em;
}

.chat-message__bubble--markdown li + li {
  margin-top: 0.25em;
}

.chat-message__bubble--markdown blockquote {
  padding: 2px 0 2px 12px;
  border-left: 3px solid #f59e0b;
  color: #4b5563;
}

.chat-message__bubble--markdown blockquote > :last-child {
  margin-bottom: 0;
}

.chat-message__bubble--markdown code {
  padding: 0.12em 0.35em;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #b45309;
  background: #f9fafb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.chat-message__bubble--markdown pre {
  max-width: 100%;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #111827;
  color: #f9fafb;
  line-height: 1.55;
  tab-size: 2;
}

.chat-message__bubble--markdown pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  white-space: pre;
}

.chat-message__bubble--markdown table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.chat-message__bubble--markdown th,
.chat-message__bubble--markdown td {
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.chat-message__bubble--markdown th {
  background: #f3f4f6;
  font-weight: 700;
}

.chat-message__bubble--markdown a {
  color: #c2410c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-message__bubble--markdown a:hover {
  color: #9a3412;
}

.chat-message__bubble--markdown hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.chat-message__actions {
  display: flex;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  margin-top: -1px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.chat-message__actions[hidden] {
  display: none;
}

.chat-message__action {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  color: #f59e0b;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.chat-message__action--copy {
  min-width: 72px;
}

.chat-message__action:hover {
  color: #ea580c;
  background: #fff7ed;
}

.chat-message__action:focus-visible {
  outline: 2px solid rgba(234, 88, 12, 0.45);
  outline-offset: 1px;
}

.chat-message__bubble--pending::after {
  display: inline-block;
  margin-left: 2px;
  color: #f59e0b;
  content: "▍";
  animation: chat-cursor-blink 0.9s steps(2, start) infinite;
}

.chat-message__bubble--thinking::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #f59e0b;
  content: "";
  vertical-align: middle;
}

.chat-message__bubble--thinking::after {
  display: none;
}

.chat-message__bubble--error,
.chat-message--assistant .chat-message__bubble--error {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

@keyframes chat-cursor-blink {
  to {
    visibility: hidden;
  }
}

.agent-empty-state {
  position: absolute;
  top: 42.5%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}

.agent-empty-state[hidden] {
  display: none;
}

.agent-empty-state p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
}

.agent-empty-state .agent-empty-state__error {
  max-width: min(360px, calc(100vw - 48px));
  margin-top: 10px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.agent-primary {
  min-width: 104px;
  height: 43px;
  margin-top: 16px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--button-gradient);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: filter 160ms ease, transform 160ms ease;
}

.agent-primary:hover,
.agent-sidebar__new:hover {
  filter: brightness(1.06);
}

.agent-primary:active,
.agent-sidebar__new:active {
  transform: translateY(1px);
}

.agent-composer {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: min(768px, calc(100% - 64px));
  transform: translateX(-50%);
}

.agent-composer__cost {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 10px;
  line-height: 16.5px;
  text-align: center;
}

.agent-composer__cost strong {
  margin-left: 3px;
  color: #f59e0b;
  font-weight: 600;
}

.agent-composer__field {
  display: flex;
  min-height: 62.5px;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.agent-composer textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 160px;
  flex: 1;
  resize: none;
  padding: 10px 0 10px 4px;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: 14px;
  line-height: 24.5px;
}

.agent-composer textarea::placeholder {
  color: #9ca3af;
}

.agent-composer__field:focus-within {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.12);
}

.agent-composer button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #f59e0b;
  cursor: pointer;
  margin-bottom: 2px;
}

.agent-composer button:disabled {
  color: #fff;
  background: #fed7aa;
  cursor: not-allowed;
}

.agent-composer button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.agent-composer__hint {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 10px;
  line-height: 16.5px;
  text-align: center;
}

@media (min-width: 901px) {
  .agent-workspace {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
  }
}

@media (max-width: 900px) {
  .agent-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    display: grid;
    gap: 0;
    padding: 0;
  }

  .agent-brand {
    padding-left: 12px;
  }

  .agent-brand__copy small,
  .agent-account__credits,
  .agent-account__dot,
  .agent-account__chevron {
    display: none;
  }

  .agent-account {
    width: auto;
    height: 34px;
    padding-right: 12px;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .agent-account__phone {
    display: none;
  }

  .agent-sidebar {
    position: fixed;
    top: 57px;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(288px, 86vw);
    height: auto;
    transform: translateX(-102%);
    transition: transform 200ms ease;
    box-shadow: 16px 0 36px rgba(17, 24, 39, 0.14);
  }

  .agent-sidebar--open {
    transform: translateX(0);
  }

  .agent-sidebar__close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #6b7280;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 22px;
  }

  .agent-sidebar__new {
    margin-left: auto;
    margin-right: 8px;
  }

  .agent-backdrop {
    position: fixed;
    inset: 57px 0 0;
    z-index: 40;
    width: 100%;
    height: auto;
    border: 0;
    background: rgba(17, 24, 39, 0.24);
  }

  .agent-page--sidebar-open .agent-backdrop {
    display: block;
  }

  .agent-chat__sessions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    background: #fff;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
    cursor: pointer;
    font-size: 12px;
  }

  .agent-chat__sessions svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .agent-composer {
    width: min(680px, calc(100% - 32px));
  }

  .agent-chat__messages {
    padding: 54px 16px 140px;
  }
}

@media (max-width: 640px) {
  .agent-header {
    height: 57px;
  }

  .agent-brand {
    gap: 0;
    padding-left: 8px;
  }

  .agent-brand__mark {
    width: 30px;
    height: 30px;
  }

  .agent-brand__mark svg {
    width: 19px;
    height: 19px;
  }

  .agent-brand__copy {
    display: none;
  }

  .agent-tabs {
    gap: 0;
  }

  .agent-tab {
    width: auto;
    height: 34px;
    gap: 3px;
    padding: 0 7px;
    font-size: 11px;
  }

  .agent-tab svg {
    width: 13px;
    height: 13px;
  }

  .agent-account {
    gap: 0;
    padding-right: 8px;
  }

  .agent-account__avatar {
    width: 30px;
    height: 30px;
  }

  .agent-empty-state {
    top: 42%;
  }

  .agent-composer {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }

  .agent-composer__field {
    min-height: 54px;
    padding: 5px 7px 5px 13px;
  }

  .agent-composer textarea {
    min-height: 42px;
    padding: 9px 2px;
  }

  .agent-composer__hint {
    display: none;
  }

  .agent-chat__messages {
    padding: 50px 12px 118px;
  }

  .chat-message__bubble {
    max-width: 88%;
  }

  .chat-message--assistant {
    grid-template-columns: fit-content(100%) minmax(0, 1fr);
  }

  .chat-message__actions {
    gap: 2px;
    padding: 6px 5px;
  }

  .chat-message__action {
    padding-inline: 3px;
    font-size: 11px;
  }

}
