html[data-design="silver"] .center-chat {
  width: min(100%, 720px);
  padding-block: clamp(22px, 6svh, 62px) max(24px, env(safe-area-inset-bottom));
}

.center-chat-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3svh, 28px);
}

.center-chat-heading h1 {
  margin: 0 0 8px;
}

.center-chat-intro {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

#chat-reset {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.center-chat-panel {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: #111319f2;
}

.chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: clamp(12px, 3vw, 22px);
}

.chat-starters button,
.chat-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: #1a1d24;
  text-align: left;
  font-size: .84rem;
  line-height: 1.3;
}

.chat-starters button:hover:not(:disabled),
.chat-actions button:hover:not(:disabled) {
  background: #292d36;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: min(46svh, 430px);
  padding: clamp(12px, 3vw, 22px);
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
}

.chat-log:focus-visible {
  outline-offset: -4px;
}

.chat-log:empty {
  padding: 0;
}

.chat-message {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.chat-author {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 660;
}

.chat-message.user .chat-author {
  text-align: right;
}

.chat-message-text {
  max-width: 62ch;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: .94rem;
  line-height: 1.55;
}

.chat-message.user .chat-message-text {
  justify-self: end;
  max-width: min(80%, 54ch);
  padding: 8px 12px;
  border-radius: 10px;
  background: #262a34;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chat-status {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.chat-status:not(:empty) {
  padding: 0 clamp(12px, 3vw, 22px) 8px;
}

.chat-form {
  padding: clamp(12px, 3vw, 22px);
  border-top: 1px solid var(--hair);
}

.chat-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

#chat-input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  resize: vertical;
  overflow-wrap: anywhere;
  border: 1px solid var(--silver-control-line);
  border-radius: 8px;
  background: #080a0f;
  color: var(--ink);
  font: 1rem/1.45 var(--sans);
}

#chat-input::placeholder,
.chat-note {
  color: var(--muted);
}

#chat-send {
  min-width: 68px;
}

.chat-note {
  margin: 8px 0 0;
  font-size: .74rem;
}

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

@media (max-width: 480px) {
  .center-chat-heading {
    align-items: start;
  }

  .chat-starters button {
    flex: 1 0 100%;
  }
}
