.relatos {
  color-scheme: light;
  color: var(--ink);
  background: #f4e9d3;
}

.relatos .overline, .relatos h2 em { color: #8b2337; }
.relatos .section-heading > p:not(.overline) { color: #485246; }
.relatos :focus-visible { outline-color: #8b2337; }

.relato-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(.75rem, 2.75vw, 2rem);
  max-width: 54rem;
  padding: clamp(.8rem, 3vw, 1.65rem);
  border: 1px solid #b79a6c69;
  border-radius: 1rem;
  background: var(--paper);
}

.relato-print {
  padding: .7rem;
  border: 1px solid #687d5f5c;
  border-radius: .75rem;
  background: #e4ebdc;
}

.relato-captura {
  display: grid;
  justify-items: center;
  gap: .65rem;
  text-decoration: none;
}

.relato-captura img {
  width: auto;
  height: auto;
  max-height: 22rem;
  border-radius: .38rem;
  object-fit: contain;
}

.relato-texto {
  display: grid;
  justify-items: start;
  gap: .72rem;
  min-width: 0;
  padding: .5rem clamp(.25rem, 1.7vw, 1rem);
  overflow-wrap: anywhere;
}

.relato-rotulo {
  color: #386046;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.4;
}

.relato-texto blockquote {
  margin: 0;
  padding: 0 0 0 .8rem;
  border-inline-start: 2px solid #8d9f78;
  color: #233e2e;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.8vw, 1.48rem);
  line-height: 1.46;
  white-space: pre-line;
}

.relato-texto figcaption { color: #48564a; font-weight: 680; line-height: 1.4; }

.relato-controles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .85rem;
}

.relato-acao {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .74rem;
  border: 1px solid #8b23376b;
  border-radius: .44rem;
  color: #8b2337;
  background: #fff9ec;
  text-align: center;
  font-size: .875rem;
  font-weight: 720;
  cursor: pointer;
}

.relato-acao:hover, .relato-captura:hover .relato-acao { background: #f6e8d3; }
.relato-posicao { color: #48564a; font-size: .875rem; }

.relato-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(.85rem, 3vw, 1.4rem);
  border: 1px solid #b79a6c;
  border-radius: .85rem;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior: contain;
}

.relato-dialog::backdrop { background: #091c17b8; }
.relato-dialog:not([open]) { display: none; }
.relato-dialog-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: .75rem;
}

.relato-dialog-topo h3 { font: 700 1.38rem/1.1 var(--serif); }
.relato-dialog img { width: auto; margin-inline: auto; }

.relato-layout-demo {
  display: grid;
  align-content: center;
  gap: .58rem;
  min-height: 13rem;
  padding: .85rem;
  color: #386046;
  border: 1px solid #687d5f70;
  border-radius: .5rem;
  background: #f3f5eb;
}

.relato-balao {
  width: 83%;
  padding: .54rem .65rem;
  border: 1px solid #78927266;
  border-radius: .22rem .66rem .66rem .66rem;
  background: #fff9ec;
}
.relato-balao-resposta {
  width: 65%;
  justify-self: end;
  border-radius: .66rem .22rem .66rem .66rem;
  background: #dbe8d8;
}
.relato-balao > span {
  display: block;
  height: .42rem;
  border-radius: 2rem;
  background: #a0b496;
}
.relato-balao > span + span { width: 57%; margin-top: .32rem; }
.relato-preview-footer { padding: 1.2rem 0; background: var(--pine); color: var(--paper); }

@media (max-width: 600px) {
  .relato-card { grid-template-columns: minmax(0, 1fr); }
  .relato-captura img { max-height: 18rem; }
}

.conversas {
  color-scheme: light;
  color: var(--ink);
  background: #f8edda;
}

.conversas .overline, .conversas h2 em { color: #8b2337; }
.conversas .section-heading {
  max-width: 62rem;
  margin: 0 auto clamp(1.7rem, 4vw, 3.15rem);
  text-align: center;
}
.conversas .section-heading > p:not(.overline) {
  max-width: 34rem;
  margin-inline: auto;
  color: #465449;
}
.conversas :focus-visible { outline-color: #8b2337; }

.conversas-trilho {
  --espaco-conversas: clamp(.75rem, 2.5vw, 1.65rem);
  max-width: 66rem;
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--espaco-conversas)) / 2);
  gap: var(--espaco-conversas);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #87784d #eadebf;
  scrollbar-width: thin;
  padding-bottom: .5rem;
}

.conversa {
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #74613d88;
  border-radius: .85rem;
  color: var(--paper);
  background: #132a23;
}

.conversa-topo {
  padding: .9rem 1.14rem;
  border-bottom: 1px solid #ecd09a35;
  background: #102820;
}

.conversa-topo h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.25vw, 1.32rem);
  font-weight: 700;
  line-height: 1.12;
}

.conversa-mensagens {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: clamp(.85rem, 2vw, 1.15rem);
  margin: 0;
  list-style: none;
}

.conversa-balao {
  justify-self: start;
  max-width: 91%;
  padding: .6rem .7rem;
  border-radius: .6rem .6rem .6rem .16rem;
  color: #26382b;
  background: #ecede2;
  font-size: .94rem;
  line-height: 1.43;
  overflow-wrap: anywhere;
}

.conversa-balao-resposta {
  justify-self: end;
  color: #fff7e9;
  background: #315843;
  border-radius: .6rem .6rem .16rem .6rem;
}
.conversa-balao:not(.conversa-balao-resposta) + .conversa-balao:not(.conversa-balao-resposta),
.conversa-balao-resposta + .conversa-balao-resposta { margin-top: -.24rem; }

.conversas-controles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .56rem;
  margin-top: .75rem;
}

.conversas-controles button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .48rem .78rem;
  border: 1px solid #8b23376b;
  border-radius: .5rem;
  color: #8b2337;
  background: #fff8e9;
  font-size: .92rem;
  font-weight: 720;
  cursor: pointer;
}

.conversas-controles button:not(:disabled):hover { background: #f2e2c7; }
.conversas-controles button:disabled { opacity: .46; cursor: default; }
.conversas-controles [role="status"] {
  min-width: 5.75rem;
  color: #465449;
  font-size: .9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 610px) {
  .conversas-trilho { grid-auto-columns: 100%; }
}
