:root {
  color-scheme: light;
  --ink: #17241f;
  --muted: #59655f;
  --paper: #f5f0e6;
  --surface: #fffdf8;
  --leaf: #173e31;
  --leaf-soft: #dfe9df;
  --gold: #b88a32;
  --gold-soft: #f0e2bd;
  --line: #d7d2c7;
  --focus: #6f4d00;
  --shadow: 0 1.25rem 3.5rem rgba(23, 36, 31, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 4%, rgba(184, 138, 50, 0.18), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--leaf);
  font-weight: 680;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover { color: #071d15; }

a:focus-visible,
summary:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.65rem 0.85rem;
  border-radius: 0.35rem;
  background: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
main {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
}

.project-name {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.format-link { font-size: 0.9rem; }

.independence-notice {
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 0.3rem solid var(--gold);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs {
  margin-block: 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.6rem;
  color: var(--gold);
  content: "/";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 1.25rem;
  background: var(--leaf);
  box-shadow: var(--shadow);
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

h3 { font-size: 1.25rem; }

.hero-summary {
  margin: 1.5rem 0 0;
  max-width: 48rem;
  color: #e7eee9;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.identity-card {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
}

.identity-card dl,
.facts {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.identity-card div,
.facts div { display: grid; gap: 0.1rem; }

dt {
  color: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd { margin: 0; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 3rem;
  margin-block: 4rem;
}

.content section { margin-bottom: 4rem; }

.lead { font-size: 1.16rem; }

.pyramid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pyramid article,
.card,
details {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.pyramid article { padding: 1.2rem; }

.pyramid h3 { margin-top: 0; }

.pyramid p { margin-bottom: 0; color: var(--muted); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 700;
}

.notice {
  padding: 1rem 1.2rem;
  border-left: 0.3rem solid var(--gold);
  background: var(--gold-soft);
}

.sidebar { align-self: start; }

.sidebar .card {
  position: sticky;
  top: 1rem;
  padding: 1.4rem;
}

.facts dt { color: var(--muted); }

.faq-list { display: grid; gap: 0.75rem; }

.faq-subtitle {
  margin: 2rem 0 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.45rem;
}

details { padding: 0.1rem 1rem; }

summary {
  padding-block: 0.9rem;
  cursor: pointer;
  font-weight: 750;
}

details p { margin-top: 0; }

.sources li { margin-bottom: 0.8rem; }

.meta-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.about-page { max-width: 56rem; }

.about-hero {
  margin-bottom: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.25rem;
  background: var(--leaf);
  color: #fffdf8;
}

.about-hero .lead { color: #e7eee9; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.catalog-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.catalog-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.55rem;
}

.catalog-card p { margin-bottom: 0.4rem; }

@media (max-width: 52rem) {
  .hero,
  .content-grid { grid-template-columns: 1fr; }
  .pyramid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .card { position: static; }
}

@media (max-width: 34rem) {
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  .skip-link,
  .format-link { display: none; }
  .hero { box-shadow: none; }
  .content-grid { display: block; }
  .sidebar { margin-bottom: 2rem; }
}

/* Consultora de Beleza */
.consultora-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(223, 233, 223, 0.9), transparent 25rem),
    radial-gradient(circle at 94% 22%, rgba(184, 138, 50, 0.18), transparent 25rem),
    var(--paper);
}

.consultora-shell { max-width: 72rem; }

.consultora-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 36rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 1.4rem;
  background: var(--leaf);
  box-shadow: var(--shadow);
  color: var(--surface);
}

.consultora-intro h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #e7eee9;
  font-size: 0.84rem;
}

.consultora-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  color: var(--ink);
}

.consultora-card form { display: grid; gap: 0.85rem; }

.consultora-card label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.consultora-card textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.consultora-card textarea:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.starter-grid button:focus-visible {
  outline: 0.2rem solid var(--gold);
  outline-offset: 0.18rem;
}

.field-meta {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.primary-button,
.secondary-button,
.starter-grid button {
  border: 0;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  min-height: 3.2rem;
  padding: 0.75rem 1.1rem;
  background: var(--gold);
  color: #171006;
}

.primary-button:hover { background: #c99b43; }

.primary-button:disabled,
.starter-grid button:disabled { cursor: wait; opacity: 0.68; }

.privacy-note,
.scope-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.consultora-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 0.25rem solid #a2382a;
  background: #fae8e3;
  color: #6f2118;
}

.question-starters {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  margin-block: clamp(3rem, 7vw, 5rem);
}

.question-starters h2 { margin-bottom: 0; }

.starter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.starter-grid button {
  min-height: 5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--leaf);
  text-align: left;
}

.starter-grid button:hover {
  border-color: var(--gold);
  transform: translateY(-0.1rem);
}

.question-starters .scope-note { grid-column: 2; }

.answer-card {
  margin: 0 0 5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 1rem;
}

.answer-header,
.answer-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.answer-status {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 750;
}

.answer-text {
  max-width: 52rem;
  margin: 1rem 0 2rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
  white-space: pre-line;
}

.answer-support,
.answer-sources {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.answer-support h3,
.answer-sources h3 { margin-top: 0; }

.answer-sources li { margin-bottom: 0.55rem; }

.answer-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.secondary-button {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  background: var(--leaf-soft);
  color: var(--leaf);
}

@media (max-width: 52rem) {
  .consultora-hero,
  .question-starters { grid-template-columns: 1fr; }
  .consultora-hero { min-height: auto; padding-inline: 1.25rem; }
  .question-starters .scope-note { grid-column: 1; }
}

@media (max-width: 34rem) {
  .starter-grid { grid-template-columns: 1fr; }
  .field-meta,
  .answer-header,
  .answer-footer { align-items: flex-start; flex-direction: column; }
  .secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .starter-grid button:hover { transform: none; }
}

/* Consultora de Beleza — experiência conversacional */
.consultora-page {
  min-height: 100svh;
  padding-bottom: 11rem;
  background: #f7f7f5;
  color: #20231f;
  line-height: 1.55;
}

.consultora-page .skip-link { z-index: 100; }

.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;
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem clamp(0.75rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgba(23, 36, 31, 0.1);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(18px);
}

.chat-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #20231f;
  text-decoration: none;
}

.chat-brand:hover { color: #20231f; }

.chat-exit-button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(32, 35, 31, 0.2);
  border-radius: 0.7rem;
  background: #fff;
  color: #20231f;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.chat-exit-button:hover {
  border-color: #245443;
  color: #245443;
}

.chat-exit-button:focus-visible {
  outline: 0.2rem solid #245443;
  outline-offset: 0.15rem;
}

.chat-brand-logo,
.assistant-logo {
  display: block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: contain;
}

.assistant-logo-large {
  width: 3.6rem;
  height: 3.6rem;
  margin-inline: auto;
}

.bel-portrait {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto clamp(0.85rem, 2svh, 1.2rem);
  border: 0.22rem solid #fffdf8;
  border-radius: 50%;
  outline: 1px solid #b88a32;
  box-shadow: 0 0.8rem 2.2rem rgba(23, 62, 49, 0.2);
  object-fit: cover;
  object-position: center 42%;
}

.bel-portrait-wrap{position:relative;display:inline-flex;flex-direction:column;align-items:center;gap:.65rem}
.bel-brand-badge{padding:.32rem .7rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--leaf);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

.assistant-logo.bel-avatar {
  border: 1px solid rgba(184, 138, 50, 0.72);
  box-shadow: 0 0.24rem 0.7rem rgba(23, 62, 49, 0.16);
  object-fit: cover;
  object-position: center 42%;
}

.chat-brand-mark,
.assistant-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #245443, #123428);
  box-shadow: 0 0.3rem 0.9rem rgba(23, 62, 49, 0.18);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-brand > span:last-child {
  display: grid;
  line-height: 1.15;
}

.chat-brand strong { font-size: 0.93rem; }

.chat-brand small {
  margin-top: 0.18rem;
  color: #6a716c;
  font-size: 0.7rem;
  font-weight: 550;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-about {
  padding: 0.6rem 0.75rem;
  color: #4f5752;
  font-size: 0.82rem;
  text-decoration: none;
}

.new-chat-button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid #d8dcd8;
  border-radius: 0.72rem;
  background: #fff;
  color: #29302c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 680;
  cursor: pointer;
}

.new-chat-button:hover { background: #f0f2ef; }
.new-chat-button:disabled { cursor: wait; opacity: 0.55; }

.consultora-page main.chat-main {
  width: 100%;
  min-height: calc(100svh - 15rem);
  margin: 0;
}

.chat-welcome {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding: clamp(1.75rem, 5svh, 3.5rem) clamp(0.75rem, 2.5vw, 1.5rem) clamp(1rem, 3svh, 2rem);
  text-align: center;
}

.chat-welcome[hidden],
.chat-thread[hidden] { display: none; }

.assistant-mark-large {
  width: 3.6rem;
  height: 3.6rem;
  margin-inline: auto;
  border-radius: 1rem;
  font-size: 1.7rem;
}

.chat-welcome h1 {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--leaf);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.chat-welcome h1 q {
  quotes: "“" "”";
  text-decoration: none;
}

.chat-welcome h1 q::before,
.chat-welcome h1 q::after {
  color: #b07824;
  font-size: 0.92em;
  font-style: normal;
  font-weight: 600;
}

.chat-welcome h1 q::before { margin-right: 0.08em; }
.chat-welcome h1 q::after { margin-left: 0.08em; }

.chat-intro {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.05rem);
}

.chat-starters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 3.5svh, 2.25rem);
  text-align: left;
}

.chat-starters button {
  display: grid;
  min-height: 6rem;
  align-content: center;
  gap: 0.28rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dfe2de;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0.35rem 1.2rem rgba(23, 36, 31, 0.025);
  color: #2f3632;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chat-starters button:hover {
  border-color: #aebbb4;
  box-shadow: 0 0.65rem 1.8rem rgba(23, 36, 31, 0.07);
  transform: translateY(-2px);
}

.chat-starters button:disabled { cursor: wait; opacity: 0.6; }

.chat-starters strong {
  font-size: 0.94rem;
  font-weight: 680;
}

.chat-starters span {
  color: #707772;
  font-size: 0.8rem;
}

.pilot-note {
  margin: 1.25rem 0 0;
  color: #858b87;
  font-size: 0.76rem;
}

.chat-thread {
  width: min(52rem, 100%);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 1rem;
}

.message-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.1rem;
  scroll-margin-bottom: 12rem;
}

.message-content { min-width: 0; }

.user-message {
  display: flex;
  justify-content: flex-end;
  margin-block: 0.25rem 2rem;
}

.user-message .message-content {
  width: fit-content;
  max-width: min(78%, 38rem);
  padding: 0.72rem 1rem;
  border-radius: 1.15rem 1.15rem 0.3rem 1.15rem;
  background: #e7e9e6;
  color: #252a27;
}

.message-text {
  margin: 0;
  white-space: pre-wrap;
}

.assistant-response-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  margin-bottom: 0.65rem;
}

.assistant-response-meta strong { font-size: 0.9rem; }

.consultora-page .answer-status {
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  background: #e7efe9;
  color: #315847;
  font-size: 0.68rem;
  font-weight: 720;
}

.assistant-answer {
  color: #282d2a;
  font-size: 1rem;
  line-height: 1.72;
}

.assistant-answer p { margin: 0 0 0.85rem; }
.assistant-answer p:last-child { margin-bottom: 0; }
.assistant-answer ul { margin: 0 0 0.9rem; padding-left: 1.35rem; }
.assistant-answer li + li { margin-top: 0.3rem; }

.clarification-question {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #4e7664;
  border-radius: 0 0.7rem 0.7rem 0;
  background: #edf2ee;
  color: #294438;
  font-weight: 650;
}

.message-sources {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e5e2;
}

.message-sources h3,
.evidence-details h3 {
  margin: 0 0 0.55rem;
  color: #5d655f;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.source-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  overflow: hidden;
  padding: 0.42rem 0.65rem;
  border: 1px solid #d9ded9;
  border-radius: 999px;
  background: #fff;
  color: #3d594c;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-chip::before {
  margin-right: 0.35rem;
  color: #638172;
  content: "↗";
}

.source-chip:hover { background: #f0f4f1; }

.evidence-details {
  margin-top: 0.9rem;
  border: 1px solid #e0e3e0;
  border-radius: 0.8rem;
  background: #fbfbfa;
}

.evidence-details summary {
  padding: 0.7rem 0.85rem;
  color: #535b56;
  font-size: 0.77rem;
  font-weight: 650;
  cursor: pointer;
}

.evidence-details-body {
  display: grid;
  gap: 0.9rem;
  padding: 0 0.9rem 0.85rem;
  border-top: 1px solid #e8eae8;
}

.evidence-details-body section { padding-top: 0.8rem; }

.evidence-details-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #555d58;
  font-size: 0.82rem;
}

.message-evidence-note {
  margin: 1rem 0 0;
  color: #8a908c;
  font-size: 0.69rem;
}

.message-actions {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.message-action {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: #666e69;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.message-action:hover {
  border-color: #d9ded9;
  background: #eef1ee;
  color: #254c3b;
}

.message-action:focus-visible {
  outline: 0.15rem solid #315847;
  outline-offset: 0.1rem;
}

.message-action.is-active,
.message-action.is-confirmed {
  border-color: #bdd0c4;
  background: #e3ede6;
  color: #245443;
}

.message-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.response-action-status {
  min-width: 0;
  margin-left: 0.25rem;
  color: #7a817d;
  font-size: 0.68rem;
}

.thinking-indicator {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.55rem;
  color: #69716c;
  font-size: 0.84rem;
}

.thinking-dots {
  display: inline-block;
  width: 1.5rem;
  overflow: hidden;
  color: #3d6755;
  letter-spacing: 0.12em;
  animation: thinking-pulse 1.2s ease-in-out infinite;
}

@keyframes thinking-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.composer-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 1.6rem 1rem max(0.45rem, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(247, 247, 245, 0), #f7f7f5 1.4rem, #f7f7f5 100%);
}

.chat-composer,
.composer-error,
.chat-disclaimer {
  width: min(50rem, 100%);
  margin-inline: auto;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.55rem 0.7rem;
  padding: 0.78rem 0.8rem 0.55rem 1rem;
  border: 1px solid #d7dbd7;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.85rem 2.8rem rgba(23, 36, 31, 0.13);
}

.chat-composer:focus-within {
  border-color: #a7b7af;
  box-shadow: 0 0 0 3px rgba(36, 84, 67, 0.08), 0 0.85rem 2.8rem rgba(23, 36, 31, 0.13);
}

.chat-composer textarea {
  width: 100%;
  max-height: 11rem;
  min-height: 2.1rem;
  resize: none;
  overflow-y: auto;
  padding: 0.3rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252a27;
  font: inherit;
  line-height: 1.5;
}

.chat-composer textarea::placeholder { color: #929994; }

.dictation-button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  background: transparent;
  color: #56635d;
  cursor: pointer;
}

.dictation-button[hidden] { display: none; }

.dictation-button svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dictation-button:hover:not(:disabled) {
  border-color: #d9ded9;
  background: #eef1ee;
  color: #214c3c;
}

.dictation-button:focus-visible {
  outline: 0.15rem solid #315847;
  outline-offset: 0.1rem;
}

.dictation-button.is-listening {
  border-color: #e2aaa2;
  background: #fff0ed;
  color: #a83b2d;
  animation: dictation-pulse 1.4s ease-in-out infinite;
}

.dictation-button:disabled {
  color: #aeb4b0;
  cursor: default;
}

@keyframes dictation-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 59, 45, 0); }
  50% { box-shadow: 0 0 0 0.28rem rgba(168, 59, 45, 0.12); }
}

.send-button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0.72rem;
  background: #214c3c;
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.send-button:hover:not(:disabled) { background: #14392c; }

.send-button:disabled {
  background: #d9ddda;
  color: #8c938e;
  cursor: default;
}

.button-progress {
  font-size: 0.75rem;
  letter-spacing: -0.12em;
  animation: thinking-pulse 1s ease-in-out infinite;
}

.composer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #929894;
  font-size: 0.64rem;
}

.composer-error {
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e5c6bf;
  border-radius: 0.75rem;
  background: #fff2ef;
  color: #7f3026;
  font-size: 0.8rem;
}

.chat-disclaimer {
  margin-top: 0.55rem;
  margin-bottom: 0;
  color: #898f8b;
  font-size: 0.64rem;
  text-align: center;
}

.chat-disclaimer a {
  color: inherit;
  font-weight: 650;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  margin: 0;
  padding: 1rem;
  border: 1px solid #e1c0b9;
  border-radius: 0.8rem;
  background: #fff2ef;
  color: #7f3026;
  text-align: center;
}

.chat-header a:focus-visible,
.new-chat-button:focus-visible,
.chat-starters button:focus-visible,
.send-button:focus-visible,
.chat-composer textarea:focus-visible {
  outline: 3px solid rgba(111, 77, 0, 0.5);
  outline-offset: 2px;
}

@media (max-width: 64rem) {
  .chat-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .consultora-page { padding-bottom: 10.25rem; }
  .chat-header { min-height: 3.65rem; padding: 0.4rem 0.6rem; }
  .chat-brand small,
  .chat-about { display: none; }
  .new-chat-button { padding-inline: 0.58rem; }
  .chat-welcome { padding: clamp(1.35rem, 4svh, 2rem) 0.6rem 1rem; }
  .bel-portrait { width: 5.6rem; height: 5.6rem; }
  .chat-welcome h1 { font-size: clamp(1.72rem, 7.5vw, 2.05rem); }
  .chat-intro { margin-top: 0.85rem; }
  .chat-starters { grid-template-columns: 1fr; gap: 0.55rem; margin-top: 1.35rem; }
  .chat-starters button { min-height: 4.35rem; padding: 0.8rem 0.95rem; }
  .chat-thread { padding: 1.25rem 0.6rem 0.5rem; }
  .message-row { grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.65rem; }
  .assistant-mark { width: 1.8rem; height: 1.8rem; border-radius: 0.55rem; font-size: 0.9rem; }
  .assistant-mark-large { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; }
  .user-message .message-content { max-width: 88%; }
  .composer-dock { padding: 1.15rem 0.4rem max(0.35rem, env(safe-area-inset-bottom)); }
  .chat-composer { padding-inline: 0.85rem 0.65rem; border-radius: 1.05rem; }
  .composer-meta span:first-child { display: none; }
  .composer-meta { justify-content: flex-end; }
}

@media (max-width: 23rem) {
  .chat-brand { gap: 0.45rem; }
  .chat-brand strong { font-size: 0.82rem; }
  .new-chat-button { font-size: 0.75rem; }
  .chat-exit-button { padding-inline: 0.65rem; }
  .chat-welcome { padding-inline: 0.45rem; }
}

@media (min-width: 40.01rem) and (max-height: 50rem) {
  .chat-welcome { padding-top: 1.5rem; }
  .bel-portrait { width: 5.75rem; height: 5.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-starters button,
  .thinking-dots,
  .button-progress { animation: none; transition: none; }
  .chat-starters button:hover { transform: none; }
}
