.web-chat {
  --paper: #fff;
  --panel: #f3f6f4;
  --line: #dde7e0;
}

.web-chat .chat-header { background: var(--paper); }
.web-chat .chat-brand { margin-inline-end: auto; }
.web-chat .chat-layout { grid-template-columns: minmax(196px, 230px) minmax(0, 1fr); }
.web-chat .chat-sidebar { padding: 16px 13px; }
.web-chat .new-chat { color: var(--accent); background: #e8f1eb; border-color: #d5e6db; }
.web-sidebar-links { display: grid; gap: 5px; margin-top: auto; padding-inline: 6px; }
.web-sidebar-links a { color: var(--muted); font-size: .87rem; }
.web-sidebar-links a:hover, .web-sign-in a:hover { text-decoration: underline; }

.web-chat .chat-toolbar { justify-content: space-between; padding-inline: clamp(14px, 3vw, 27px); }
.web-chat .chat-scroll { grid-row: 2; }
.web-chat .chat-composer { grid-row: 3; }
.web-chat .chat-content, .web-chat .chat-composer { width: min(100% - 38px, 730px); }
.web-chat .chat-main.is-empty { grid-template-rows: minmax(0, .85fr) auto auto minmax(0, 1.15fr); }
.web-chat .is-empty .chat-content { padding-block: 0; }
.web-chat .is-empty .chat-welcome { margin: 0 auto clamp(13px, 3.1vh, 28px); }
.web-chat .chat-welcome img { width: 42px; height: 42px; }
.web-chat .chat-welcome h1 { margin-block: 9px 0; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.web-chat .chat-composer { padding-top: 0; }
.web-chat .chat-input-area {
  display: grid;
  gap: 4px;
  padding: 13px 13px 9px;
  background: #f7f9f8;
  border: 1px solid #dce6df;
  border-radius: 22px;
  box-shadow: 0 7px 18px #2040370a;
}
.web-chat .chat-input-area:focus-within { border-color: #9abaac; }
.web-chat .chat-input-area textarea { min-height: 52px; }
.web-composer-tools { display: flex; gap: 8px; align-items: center; }
.web-composer-tools #model-open {
  display: inline-flex;
  max-width: min(100%, 36ch);
  min-height: 36px;
  padding-inline: 12px;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: #eef4ef;
}
.web-composer-tools #model-open:hover { background: #e4efe8; }
.web-composer-tools #context-label { min-width: 0; }
.web-model-chevron {
  flex: none;
  width: 7px;
  height: 7px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.web-composer-tools #stop { margin-inline-start: auto; }
.web-composer-tools #send {
  display: grid;
  place-content: center;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  padding: 0;
  margin-inline-start: auto;
  font-size: 1.33rem;
  line-height: 1;
}
.web-chat #chat-status:empty, .web-sign-in #sign-in-status:empty { display: none; }
.web-sign-in #account-submit { min-height: 41px; margin-block: 4px; }
.web-sign-in a { width: fit-content; color: var(--accent); font-size: .86rem; }

@media (max-width: 700px) {
  .web-chat .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .web-chat .chat-header { gap: 8px; }
  .web-chat .chat-header #sidebar-toggle { margin-inline-end: 0; }
  .web-chat .chat-content, .web-chat .chat-composer { width: calc(100% - 26px); }
}

@media (max-height: 420px) {
  .web-chat .chat-main.is-empty { grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); }
  .web-chat .chat-welcome img { display: none; }
  .web-chat .is-empty .chat-welcome { margin-bottom: 10px; }
}
.web-chat .chat-guest-actions { flex-wrap: nowrap; }
.web-chat .chat-guest-actions button { min-height: 35px; }

@media (max-width: 420px) {
  .web-chat .chat-guest-actions { gap: 4px; }
  .web-chat .chat-guest-actions button { padding-inline: 6px; font-size: .79rem; }
  .web-chat .chat-header { gap: 4px; padding-inline: 9px; }
  .web-chat .chat-brand { gap: 4px; font-size: .91rem; }
  .web-chat .chat-brand img { width: 24px; height: 24px; }
  .web-chat .chat-header-actions { gap: 4px; }
}
