.hear-widget {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--sans, system-ui, sans-serif);
}

.hear-panel {
  width: 19rem;
  max-height: 28rem;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid var(--rule, #d2cbbd);
  background: var(--paper, #f4f0e7);
  color: var(--ink, #161410);
  box-shadow: 0 8px 24px rgba(22, 20, 16, 0.12);
}

.hear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.5rem;
}

.hear-name {
  margin: 0;
  color: var(--rust, #b44a28);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hear-min {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.55rem -0.45rem -0.55rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #161410);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.hear-thread {
  flex: 1;
  overflow-y: auto;
  min-height: 8rem;
  max-height: 16rem;
  margin: 0 0 0.55rem;
}

.hear-msg {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hear-msg-bot {
  font-family: var(--serif, Georgia, serif);
}

.hear-msg-you {
  color: var(--ink-soft, #3d3933);
}

.hear-widget textarea {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--rule, #d2cbbd);
  background: var(--card, #faf6ee);
  color: var(--ink, #161410);
  font: inherit;
  resize: vertical;
}

.hear-btn {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 0;
  background: var(--ink, #161410);
  color: var(--paper, #f4f0e7);
  font: inherit;
  cursor: pointer;
}

.hear-btn:hover,
.hear-btn:focus-visible {
  background: var(--rust, #b44a28);
}

.hear-bubble {
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #161410);
  color: var(--paper, #f4f0e7);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.hear-bubble:hover,
.hear-bubble:focus-visible,
.hear-bubble[aria-expanded="true"] {
  background: var(--rust, #b44a28);
}

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

.hear-msg a {
  color: var(--rust, #b44a28);
}

.hear-panel[hidden] {
  display: none !important;
}

@media (min-width: 840px) {
  .hear-widget {
    left: calc(var(--rail, 15.5rem) + 0.75rem);
  }
}
