.avatar-entry-host {
  position: relative;
}

.avatar-entry-bubble {
  position: absolute;
  z-index: 8;
  top: 7px;
  left: 7px;
  width: 120px;
  min-height: 44px;
  padding: 5px 6px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #ffffdf;
  box-shadow: 1px 1px 0 #000;
  color: #111;
  font: 700 10px/15px Tahoma, "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
}

.avatar-entry-bubble::after {
  position: absolute;
  right: 13px;
  bottom: -8px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  background: #ffffdf;
  content: "";
  transform: skewY(35deg);
}

.avatar-entry-bubble:hover {
  background: #fff;
}

.avatar-entry-bubble:active {
  border-color: #404040 #fff #fff #404040;
  box-shadow: none;
  transform: translate(1px, 1px);
}

.avatar-entry-bubble:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

.avatar-chat-root {
  position: fixed;
  z-index: 30000;
  inset: 0;
  color: #111;
  font: 12px/1.45 Tahoma, "Microsoft YaHei", sans-serif;
  pointer-events: none;
}

.avatar-chat-root *,
.avatar-chat-root *::before,
.avatar-chat-root *::after {
  box-sizing: border-box;
}

.avatar-chat-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 48%);
  opacity: 0;
  transition: opacity 120ms linear;
}

.avatar-chat-window {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(860px, calc(100vw - 34px));
  height: min(700px, calc(100svh - 38px));
  min-height: 520px;
  flex-direction: column;
  padding: 3px;
  border: 2px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow: 2px 2px 0 #000;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px));
  transition:
    opacity 120ms linear,
    transform 120ms ease-out;
}

.avatar-chat-root[data-state="open"] {
  pointer-events: auto;
}

.avatar-chat-root[data-state="open"] .avatar-chat-overlay,
.avatar-chat-root[data-state="open"] .avatar-chat-window {
  opacity: 1;
}

.avatar-chat-root[data-state="open"] .avatar-chat-window {
  transform: translate(-50%, -50%);
}

.avatar-chat-root[data-window-size="maximized"] .avatar-chat-window {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  min-height: 0;
  box-shadow: none;
  transform: none;
  transition: opacity 120ms linear;
}

.avatar-chat-titlebar {
  display: flex;
  height: 29px;
  flex: 0 0 29px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 3px 5px;
  background: #000080;
  color: #fff;
  font-weight: 700;
}

.avatar-chat-titlebar-caption {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.avatar-chat-titlebar-caption img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.avatar-chat-titlebar-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-chat-window-controls {
  display: flex;
  gap: 3px;
}

.avatar-chat-window-controls button {
  display: grid;
  width: 22px;
  height: 21px;
  padding: 0;
  place-items: center;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  color: #000;
  font: 700 14px/1 Tahoma, sans-serif;
}

.avatar-chat-window-controls button:active {
  border-color: #404040 #fff #fff #404040;
}

.avatar-chat-window-controls [data-avatar-maximize-icon] {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.avatar-chat-subbar {
  display: flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  border-left: 1px solid #fff;
  background: #dfdfdf;
}

.avatar-chat-subbar strong {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #808080;
  background: #ffffdf;
  color: #5c4300;
  font-size: 10px;
  white-space: nowrap;
}

.avatar-chat-presence {
  width: 9px;
  height: 9px;
  border: 1px solid #004900;
  background: #00a000;
  box-shadow: inset 1px 1px #80ff80;
}

.avatar-chat-contextbar {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid #808080;
  background: #c0c0c0;
}

.avatar-chat-field-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.avatar-chat-field-inline select {
  height: 27px;
  min-width: 106px;
  padding: 2px 20px 2px 5px;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
}

.avatar-chat-link-button {
  margin-left: auto;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dotted #000080;
  background: transparent;
  color: #000080;
  font: inherit;
  cursor: pointer;
}

.avatar-chat-main {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid;
  border-color: #404040 #fff #fff #404040;
  background: #e8e6dc;
}

.avatar-chat-messages {
  min-height: 0;
  flex: 1 1 auto;
  padding: 16px 18px 20px;
  overflow: auto;
  background:
    linear-gradient(rgb(255 255 255 / 82%), rgb(255 255 255 / 82%)),
    repeating-linear-gradient(0deg, #d9e0e6 0 1px, transparent 1px 22px);
  scrollbar-color: #808080 #dfdfdf;
}

.avatar-chat-messages:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.avatar-chat-message {
  display: flex;
  max-width: 78%;
  margin: 0 0 15px;
  flex-direction: column;
  align-items: flex-start;
}

.avatar-chat-message-user {
  margin-left: auto;
  align-items: flex-end;
}

.avatar-chat-message-heading {
  margin: 0 4px 4px;
  color: #475466;
  font-size: 10px;
}

.avatar-chat-message-bubble {
  width: 100%;
  padding: 9px 10px;
  border: 2px solid;
  border-color: #fff #606060 #606060 #fff;
  background: #f5f3eb;
  box-shadow: 1px 1px 0 #9a9a9a;
}

.avatar-chat-message-user .avatar-chat-message-bubble {
  border-color: #395da8 #00194e #00194e #395da8;
  background: #0a3a8d;
  box-shadow: 1px 1px 0 #00133e;
  color: #fff;
}

.avatar-chat-message-content {
  min-height: 18px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.avatar-chat-message-content > :first-child {
  margin-top: 0;
}

.avatar-chat-message-content > :last-child {
  margin-bottom: 0;
}

.avatar-chat-message-content p,
.avatar-chat-message-content h1,
.avatar-chat-message-content h2,
.avatar-chat-message-content h3 {
  margin: 0 0 8px;
  font: inherit;
}

.avatar-chat-message-content h1,
.avatar-chat-message-content h2,
.avatar-chat-message-content h3,
.avatar-chat-message-content strong {
  font-weight: 700;
}

.avatar-chat-message-content ul,
.avatar-chat-message-content ol {
  margin: 0 0 8px;
  padding-left: 23px;
}

.avatar-chat-message-content li + li {
  margin-top: 3px;
}

.avatar-chat-message-content code {
  padding: 1px 3px;
  border: 1px solid #c6c2b7;
  background: #ebe8de;
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

.avatar-chat-message-loading {
  color: #59616d;
  animation: avatar-chat-blink 800ms steps(2, end) infinite;
}

.avatar-chat-message-error {
  color: #8a0000;
}

.avatar-chat-message-actions {
  display: flex;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px dotted #8b8b8b;
}

.avatar-chat-message-actions button,
.avatar-chat-feedback-choices button,
.avatar-chat-contact-actions button,
.avatar-chat-contact-actions a,
.avatar-chat-composer-footer button,
.avatar-chat-recovery button,
.avatar-chat-confirm button {
  min-height: 25px;
  padding: 3px 7px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  border-radius: 0;
  background: #c0c0c0;
  color: #111;
  font: 11px/1.2 Tahoma, "Microsoft YaHei", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.avatar-chat-message-actions button:active,
.avatar-chat-feedback-choices button:active,
.avatar-chat-contact-actions button:active,
.avatar-chat-contact-actions a:active,
.avatar-chat-composer-footer button:active,
.avatar-chat-recovery button:active,
.avatar-chat-confirm button:active {
  border-color: #404040 #fff #fff #404040;
}

.avatar-chat-message-actions button:disabled,
.avatar-chat-composer-footer button:disabled,
.avatar-chat-recovery button:disabled {
  color: #777;
  cursor: not-allowed;
  text-shadow: 1px 1px #fff;
}

.avatar-chat-stopped-label {
  padding: 2px 5px;
  background: #ffffdf;
  color: #634800;
  font-size: 10px;
}

.avatar-chat-quick-questions {
  display: flex;
  max-width: 90%;
  margin: -4px 0 17px;
  flex-wrap: wrap;
  gap: 6px;
}

.avatar-chat-quick-label {
  width: 100%;
  color: #59616d;
  font-size: 10px;
}

.avatar-chat-question-button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #000080;
  background: #fff;
  color: #000080;
  font: 11px/1.35 Tahoma, "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
}

.avatar-chat-question-button:hover {
  background: #000080;
  color: #fff;
}

.avatar-chat-sources,
.avatar-chat-feedback,
.avatar-chat-contact {
  margin-top: 9px;
  padding: 8px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #e7e7d8;
  color: #111;
}

.avatar-chat-sources ul {
  margin: 5px 0;
  padding-left: 20px;
}

.avatar-chat-sources small,
.avatar-chat-contact small {
  display: block;
  color: #5c5960;
  line-height: 1.45;
}

.avatar-chat-feedback-choices {
  display: flex;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 5px;
}

.avatar-chat-feedback-notice,
.avatar-chat-feedback-saved {
  margin: 8px 0 0;
  color: #694f00;
  font-size: 10px;
}

.avatar-chat-feedback-saved {
  color: #006300;
  font-weight: 700;
}

.avatar-chat-contact > strong {
  display: block;
  margin-bottom: 5px;
}

.avatar-chat-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dotted #858585;
}

.avatar-chat-contact-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.avatar-chat-contact-copy code {
  overflow: hidden;
  color: #000080;
  font: 11px/1.3 "Courier New", monospace;
  text-overflow: ellipsis;
}

.avatar-chat-contact-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.avatar-chat-composer {
  flex: 0 0 auto;
  padding: 8px;
  border-top: 1px solid #fff;
  background: #c0c0c0;
}

.avatar-chat-input-label {
  display: block;
  margin-bottom: 0;
  font-weight: 700;
  white-space: nowrap;
}

.avatar-chat-input-label-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.avatar-chat-mobile-voice-notice {
  display: none;
}

.avatar-chat-input-shell {
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.avatar-chat-input-shell textarea {
  width: 100%;
  min-height: 53px;
  max-height: 118px;
  flex: 1 1 auto;
  padding: 7px;
  resize: none;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 13px/1.45 Tahoma, "Microsoft YaHei", sans-serif;
}

.avatar-chat-mic-button {
  width: 43px;
  flex: 0 0 43px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  font-size: 17px;
  cursor: pointer;
}

.avatar-chat-mic-button[data-speech-state="requesting"],
.avatar-chat-mic-button[data-speech-state="processing"] {
  border-color: #404040 #fff #fff #404040;
  background: #fff4c2;
  color: #654600;
}

.avatar-chat-mic-button[data-speech-state="listening"] {
  border-color: #404040 #fff #fff #404040;
  background: #ffe0e0;
  color: #900;
}

.avatar-chat-mic-button[data-speech-state="error"] {
  background: #ffe8e8;
  color: #800;
}

.avatar-chat-mic-button[data-speech-state="unsupported"] {
  color: #666;
}

.avatar-chat-speech-diagnostics {
  margin-top: 6px;
  border: 1px solid #808080;
  background: #d4d0c8;
  font-size: 10px;
}

.avatar-chat-speech-diagnostics summary {
  padding: 4px 6px;
  color: #000080;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.avatar-chat-speech-diagnostics-body {
  display: grid;
  gap: 5px;
  padding: 0 6px 6px;
}

.avatar-chat-speech-diagnostics-body pre {
  max-height: 154px;
  margin: 0;
  overflow: auto;
  padding: 6px;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  background: #fff;
  color: #111;
  font: 10px/1.45 "Courier New", monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.avatar-chat-speech-diagnostics-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.avatar-chat-speech-diagnostics-actions button {
  min-height: 25px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  color: #111;
  font: 11px Tahoma, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.avatar-chat-speech-diagnostics-actions span {
  color: #006300;
}

.avatar-chat-speech-diagnostics-body small {
  color: #555;
}

.avatar-chat-composer-footer {
  display: flex;
  min-height: 31px;
  margin-top: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.avatar-chat-character-count {
  color: #555;
  font-size: 10px;
  white-space: nowrap;
}

.avatar-chat-generation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.avatar-chat-composer-footer .avatar-chat-send-button {
  min-width: 67px;
  border-color: #fff #000 #000 #fff;
  background: #000080;
  color: #fff;
  font-weight: 700;
  text-shadow: none;
}

.avatar-chat-statusbar {
  display: flex;
  min-height: 26px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 7px;
  border-top: 1px solid #fff;
  background: #c0c0c0;
  color: #3e4650;
  font-size: 10px;
}

.avatar-chat-statusbar [data-kind="success"] {
  color: #006300;
}

.avatar-chat-statusbar [data-kind="warning"],
.avatar-chat-statusbar [data-kind="error"] {
  color: #8a0000;
}

.avatar-chat-recovery {
  position: absolute;
  z-index: 4;
  inset: 66px 16px 38px auto;
  width: min(350px, calc(100% - 32px));
  border: 2px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 45%);
}

.avatar-chat-recovery > header {
  display: flex;
  height: 27px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 3px 7px;
  background: #000080;
  color: #fff;
}

.avatar-chat-recovery > header button {
  width: 20px;
  height: 19px;
  padding: 0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  color: #000;
}

.avatar-chat-recovery-body {
  padding: 13px;
}

.avatar-chat-recovery-body p {
  margin: 0 0 10px;
}

.avatar-chat-recovery-body > button {
  display: flex;
  width: 100%;
  margin: 0 0 8px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.avatar-chat-recovery-notice {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #b4993b;
  background: #ffffdf;
  color: #654e00;
}

.avatar-chat-confirm {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 34px));
  padding: 3px;
  border: 2px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 45%);
  transform: translate(-50%, -50%);
}

.avatar-chat-confirm > header {
  padding: 5px 7px;
  background: #000080;
  color: #fff;
  font-weight: 700;
}

.avatar-chat-confirm > p {
  margin: 0;
  padding: 16px 14px 11px;
}

.avatar-chat-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 14px 14px;
}

.avatar-chat-minimized {
  position: fixed;
  right: 13px;
  bottom: 56px;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 2px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow: 2px 2px 0 #000;
  color: #111;
  font: 11px/1.2 Tahoma, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
  cursor: pointer;
}

.avatar-chat-minimized img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.avatar-chat-minimized strong {
  padding-left: 7px;
  border-left: 1px solid #808080;
  color: #000080;
}

.avatar-chat-clipboard-helper {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

.avatar-chat-turnstile {
  position: fixed;
  z-index: 30020;
  right: 12px;
  bottom: 58px;
  max-width: calc(100vw - 24px);
}

.avatar-project-body {
  min-height: 100svh;
  margin: 0;
  background: #008080;
  color: #111;
  font: 13px/1.65 Tahoma, "Microsoft YaHei", sans-serif;
}

.avatar-project-body *,
.avatar-project-body *::before,
.avatar-project-body *::after {
  box-sizing: border-box;
}

.avatar-project-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 46px;
}

.avatar-project-window {
  padding: 3px;
  border: 2px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 55%);
}

.avatar-project-titlebar {
  display: flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  background: #000080;
  color: #fff;
  font-weight: 700;
}

.avatar-project-titlebar img {
  width: 19px;
  height: 19px;
  image-rendering: pixelated;
}

.avatar-project-content {
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid;
  border-color: #404040 #fff #fff #404040;
  background:
    linear-gradient(rgb(245 243 235 / 94%), rgb(245 243 235 / 94%)),
    repeating-linear-gradient(0deg, #aab6bf 0 1px, transparent 1px 24px);
}

.avatar-project-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 7px;
  border: 1px solid #808080;
  background: #ffffdf;
  color: #634800;
  font-size: 11px;
  font-weight: 700;
}

.avatar-project-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #000080;
  font-family: SimSun, "Microsoft YaHei", serif;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.avatar-project-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #33404e;
  font-size: 15px;
}

.avatar-project-actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 9px;
}

.avatar-project-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 13px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.avatar-project-action-primary {
  border-color: #668bd4 #00143c #00143c #668bd4;
  background: #000080;
  color: #fff;
}

.avatar-project-action:active {
  border-color: #404040 #fff #fff #404040;
}

.avatar-project-grid {
  display: grid;
  margin-top: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.avatar-project-panel {
  padding: 3px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
}

.avatar-project-panel h2 {
  margin: 0;
  padding: 6px 8px;
  background: #000080;
  color: #fff;
  font-size: 13px;
}

.avatar-project-panel-body {
  min-height: 100%;
  padding: 14px;
  border: 1px solid;
  border-color: #404040 #fff #fff #404040;
  background: #f5f3eb;
}

.avatar-project-panel-body ul {
  margin: 0;
  padding-left: 20px;
}

.avatar-project-panel-body li + li {
  margin-top: 6px;
}

.avatar-project-stage {
  display: grid;
  margin: 0;
  gap: 8px;
}

.avatar-project-stage div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.avatar-project-stage dt {
  font-weight: 700;
}

.avatar-project-stage dd {
  margin: 0;
}

.avatar-project-footer {
  display: flex;
  margin-top: 12px;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  background: #c0c0c0;
  color: #3e4650;
  font-size: 11px;
}

@keyframes avatar-chat-blink {
  50% {
    opacity: 0.55;
  }
}

@media (max-width: 700px) {
  .avatar-entry-bubble {
    top: 6px;
    left: 6px;
    width: 122px;
    min-height: 46px;
    font-size: 10px;
  }

  .avatar-chat-window {
    width: calc(100vw - 8px);
    height: calc(100svh - 8px);
    min-height: 0;
  }

  .avatar-chat-titlebar {
    height: 33px;
    flex-basis: 33px;
  }

  .avatar-chat-subbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 7px;
  }

  .avatar-chat-subbar strong {
    margin-left: 16px;
  }

  .avatar-chat-contextbar {
    min-height: 73px;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .avatar-chat-field-inline {
    width: calc(50% - 4px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 10px;
  }

  .avatar-chat-field-inline select {
    width: 100%;
    min-width: 0;
  }

  .avatar-chat-link-button {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }

  .avatar-chat-messages {
    padding: 12px 9px 16px;
  }

  .avatar-chat-message {
    max-width: 91%;
  }

  .avatar-chat-quick-questions {
    max-width: 100%;
  }

  .avatar-chat-question-button {
    width: 100%;
  }

  .avatar-chat-composer {
    padding: 7px;
  }

  .avatar-chat-mobile-voice-notice {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    color: #8b0000;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
  }

  .avatar-chat-composer-footer {
    align-items: flex-end;
  }

  .avatar-chat-generation-actions {
    gap: 4px;
  }

  .avatar-chat-composer-footer button {
    min-height: 29px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px;
  }

  .avatar-chat-statusbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .avatar-chat-contact-row {
    align-items: stretch;
    flex-direction: column;
  }

  .avatar-chat-contact-actions {
    justify-content: flex-end;
  }

  .avatar-chat-recovery {
    inset: 70px 8px auto;
    width: auto;
  }

  .avatar-chat-minimized {
    right: 8px;
    bottom: calc(51px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
  }

  .avatar-project-shell {
    width: calc(100% - 14px);
    padding-top: 8px;
  }

  .avatar-project-content {
    padding: 24px 16px;
  }

  .avatar-project-grid {
    grid-template-columns: 1fr;
  }

  .avatar-project-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-chat-overlay,
  .avatar-chat-window {
    transition: none;
  }

  .avatar-chat-message-loading {
    animation: none;
  }
}
