.mentor-page .mentor-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: 2rem;
  align-items: start;
}
.mentor-page .mentor-panel {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid #ded2bd;
  border-radius: 1.25rem;
  background: #fffdf8;
}
.mentor-panel h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.mentor-panel label { display: block; margin-top: .95rem; font-weight: 700; }
.mentor-panel :is(input, textarea, select) {
  display: block;
  width: 100%;
  margin: .35rem 0 .9rem;
  padding: .73rem;
  border: 1px solid #c7b99e;
  border-radius: .6rem;
  background-color: #fff;
  color: #171510;
  font: inherit;
}
.mentor-panel textarea { resize: vertical; }
.mentor-panel .mentor-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.mentor-panel .secondary {
  padding: .58rem .75rem;
  border: 1px solid #c7b99e;
  border-radius: .6rem;
  background: #f7f0e2;
  color: #322617;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.mentor-panel button:disabled { cursor: wait; opacity: .62; }
.mentor-note, .mentor-status { line-height: 1.55; font-size: .88rem; color: #5c5040; }
.mentor-voice { margin-top: 1rem; }

.mentor-message { margin: 0 0 .65rem; border-radius: .75rem; padding: .8rem 1rem; background: #f4ebd9; overflow-wrap: anywhere; }
.mentor-message--user { background: #f5f3ed; }
.mentor-message-body { margin-top: .4rem; line-height: 1.65; }
.mentor-page :is(#mentor-setup, #mentor-conversation) { scroll-margin-top: 6rem; }
@media (max-width: 780px) {
  .mentor-page .mentor-layout { grid-template-columns: minmax(0, 1fr); }
}
.mentor-page .primary {
  display: inline-block;
  padding: .7rem 1rem;
  border: 1px solid #302417;
  border-radius: .65rem;
  background: #302417;
  color: #fff4de;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.mentor-page .workspace-hero .primary {
  background: #e8b96c;
  color: #20180f;
}
.mentor-page .mentor-panel a {
  color: #67420f;
  text-underline-offset: .16em;
}
.mentor-page .workspace-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.65rem;
  margin-top: 2rem;
}

.mentor-message-body:not(.goat-reply) { white-space: pre-wrap; }
