/* Откуда взят ответ помощника (30.09.2026). */
/* Ссылка на страницу в тексте ответа: строчная, область нажатия
   расширена невидимым слоем до удобной для пальца, строку не раздувает. */
.answer-page-link {
  position: relative;
  display: inline;
  min-width: 0;
  min-height: 0;
  margin: 0 1px;
  padding: 1px 7px;
  line-height: inherit;
  border: 1px solid rgba(116, 88, 255, .35);
  border-radius: 999px;
  background: rgba(116, 88, 255, .12);
  color: var(--accent, #9d8bff);
  font: inherit;
  font-size: .86em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.answer-page-link::after { content: ""; position: absolute; inset: -12px -4px; }
.answer-page-ref { color: var(--muted, #68758a); font-size: .9em; }
.answer-audit-link {
  display: block;
  margin: 2px 0 -8px;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #9d8bff);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.audit-summary {
  display: grid;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line, rgba(255, 255, 255, .08));
  border-radius: 16px;
  background: var(--panel, #131b2e);
}
.audit-summary small, .audit-loading, .audit-error { color: var(--muted, #68758a); }
.audit-segments { display: grid; gap: 10px; }
.audit-segment {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, .08));
  border-left: 3px solid rgba(116, 88, 255, .6);
  border-radius: 14px;
  background: var(--panel, #131b2e);
}
.audit-segment p { margin: 0; line-height: 1.45; }
.audit-segment.unsourced { border-left-color: rgba(255, 176, 32, .7); }
.audit-flag { color: #e0a030; font-size: 12px; }
.audit-structure { margin: 6px 2px 0; color: var(--muted, #68758a); font-weight: 600; }
.audit-excerpt { display: grid; gap: 6px; }
.audit-source {
  justify-self: start;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(116, 88, 255, .35);
  border-radius: 10px;
  background: rgba(116, 88, 255, .1);
  color: var(--text, #fff);
  font: inherit;
  font-size: 13px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.audit-source.unavailable { border-style: dashed; color: var(--muted, #68758a); cursor: default; }
.audit-excerpt blockquote {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(127, 127, 127, .08);
  color: var(--muted, #8b96a8);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Проверка ссылок (11.10.2026, аудит RAG №6): не проверенная ссылка — пунктиром, фраза без подтверждения — янтарной полосой. */
.answer-page-link.unverified {
  border-style: dashed;
  background: transparent;
  color: var(--muted, #8b96a8);
}
.answer-page-ref.unverified { text-decoration: underline dotted; text-underline-offset: 2px; }
.audit-segment.unconfirmed { border-left-color: rgba(255, 176, 32, .7); }
.audit-source.unverified { border-style: dashed; }
