.chat-lab {
  max-width: 1060px;
}

.chat-lab .ai-case-progress {
  color: var(--lab-ink);
}

.chat-lab .ai-case-progress progress::-webkit-progress-bar {
  background: #f7dfd7;
}

.chat-lab .ai-options button {
  color: var(--lab-ink);
  border-color: #ebc9be;
  background: #fff8f4;
}

.chat-lab .ai-options button[aria-pressed="true"] {
  background: var(--lab-soft);
}

.chat-lab .ai-next {
  color: #fff;
  background: var(--lab-ink);
}

.chat-lab .ai-next:not(:disabled):hover {
  background: #862d20;
}

.chat-lab .ai-question h3, .chat-lab h2 {
  scroll-margin-top: calc(var(--hr-topbar-h) + 1rem);
}

.chat-lab [hidden] {
  display: none !important;
}

.chat-phone {
  overflow: hidden;
  border: 1px solid #e6c5ba;
  border-radius: 16px;
  background: #fcf5ef;
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .8rem;
  color: #713226;
  background: #ffe5d8;
}

.chat-contact strong, .chat-contact div > span {
  display: block;
}

.chat-contact div > span {
  font-size: .76rem;
  color: #724d44;
}

.chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: #a74432;
  font-size: .8rem;
  font-weight: 800;
}

.chat-thread {
  display: grid;
  gap: .6rem;
  padding: .8rem;
}

.chat-bubble {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .65rem .8rem;
  border: 2px solid #e8ded6;
  border-radius: 3px 14px 14px;
  color: var(--hr-ink);
  background: #fff;
  text-align: left;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.chat-bubble:not(:disabled):hover {
  border-color: var(--lab-accent);
}

.chat-bubble[aria-pressed="true"] {
  border-color: var(--lab-ink);
  color: #6c291c;
  background: #ffeadd;
  box-shadow: inset 4px 0 var(--lab-ink);
}

.chat-bubble:disabled {
  cursor: default;
}

.chat-art {
  --chat-x: 0%;
  --chat-y: 0%;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--hr-radius-sm);
  background: #f6e5d9;
}

.chat-art img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 300%;
  height: 200%;
  max-width: none;
  transform: translate(var(--chat-x), var(--chat-y));
}

.chat-art[data-scene="friend"] {
  --chat-x: -33.333333%;
}

.chat-art[data-scene="file"] {
  --chat-x: -66.666667%;
}

.chat-art[data-scene="alert"] {
  --chat-y: -50%;
}

.chat-art[data-scene="homework"] {
  --chat-x: -33.333333%;
  --chat-y: -50%;
}

.chat-art[data-scene="done"] {
  --chat-x: -66.666667%;
  --chat-y: -50%;
}

.chat-note {
  margin-top: .75rem;
  padding: .7rem .8rem;
  border-radius: var(--hr-radius-sm);
  color: #713226;
  background: var(--lab-soft);
}

.chat-note h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.chat-note p {
  margin: 0;
  font-size: .9rem;
}

.chat-lab .ai-takeaways {
  padding-left: 1.1rem;
}
