/* Document consistency reviewer — form and result.
   Redrawn on 26/09/2026 after the recette: labels on their fields, fields on
   the card title's line, one warning, one action line, the chosen level set
   apart in the hierarchy; the verdict first, contradictions side by side.
   Only the application's tokens (forge-bronze.css :root) — no palette of its own. */

.forge-shell .document-coherence-view { color: var(--tx); }

.forge-shell .document-coherence-page {
  display: grid;
  gap: 1.25rem;
}

/* --- form ----------------------------------------------------------------- */

.forge-shell .coherence-form-card,
.forge-shell .coherence-result-card { display: grid; }

/* Same horizontal padding as .section-header: every field starts on the
   card title's line. */
.forge-shell .coherence-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 20px 1.25rem;
}

.forge-shell .coherence-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.forge-shell .coherence-field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}

.forge-shell .coherence-field-label {
  color: var(--tx-2);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
}

.forge-shell .coherence-select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  font: inherit;
  font-size: 13.5px;
}
.forge-shell .coherence-select:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 1px;
  border-color: var(--accent);
}

.forge-shell .coherence-hierarchy {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.forge-shell .coherence-hierarchy-heading h3,
.forge-shell .coherence-hierarchy-heading p { margin: 0; }
.forge-shell .coherence-hierarchy-heading h3 { font-size: 13.5px; font-weight: 650; }
.forge-shell .coherence-hierarchy-heading p {
  margin-top: 0.25rem;
  color: var(--tx-3);
  font-size: 12.5px;
}

.forge-shell .coherence-hierarchy-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.forge-shell .coherence-hierarchy-item {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx-2);
  font-size: 13px;
  line-height: 1.25;
}
.forge-shell .coherence-hierarchy-index {
  display: inline-grid;
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--tx-2);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.forge-shell .coherence-hierarchy-label { display: grid; gap: 0.1rem; min-width: 0; }
.forge-shell .coherence-hierarchy-item.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--tx);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.forge-shell .coherence-hierarchy-item.is-current .coherence-hierarchy-index {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--card);
}
.forge-shell .coherence-hierarchy-item.is-current .coherence-hierarchy-label { font-weight: 700; }
.forge-shell .coherence-hierarchy-here {
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 650;
}
.forge-shell .coherence-hierarchy-note {
  margin: 0;
  color: var(--tx-3);
  font-size: 12.5px;
}

/* The application's drop zone (.upload-dropzone), with the input hidden
   behind its label: the zone is the control, keyboard focus included. */
.forge-shell .coherence-file-field { gap: 0.45rem; }
.forge-shell .coherence-dropzone {
  position: relative;
  cursor: pointer;
}
.forge-shell .coherence-dropzone-drop,
.forge-shell .coherence-dropzone-help { font-size: 11.5px; color: var(--tx-3); }
.forge-shell .coherence-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.forge-shell .coherence-dropzone[hidden],
.forge-shell .coherence-file-chosen[hidden] { display: none; }
.forge-shell .coherence-file-chosen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.forge-shell .coherence-file-name { overflow-wrap: anywhere; font-size: 13.5px; }
.forge-shell .coherence-file-size { color: var(--tx-3); font-size: 12px; white-space: nowrap; }
.forge-shell .coherence-file-remove { padding: 0.35rem 0.7rem; font-size: 12.5px; }
.forge-shell .coherence-file-chosen.is-refused { border-color: var(--err); background: var(--err-bg); }
.forge-shell .coherence-file-refusal {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.45rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--err);
  border-left-width: 4px;
  border-radius: var(--r-xs);
  background: var(--err-bg);
  color: var(--err);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.forge-shell .coherence-file-refusal::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--err); color: #fff; font-size: 12px; }
.forge-shell .coherence-file-refusal[hidden] { display: none; }

.forge-shell .coherence-boundary {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-xs);
  background: var(--paper);
  color: var(--tx-2);
  font-size: 13px;
  line-height: 1.55;
}

.forge-shell .coherence-status { margin: 0; }
.forge-shell .coherence-status:empty { display: none; }

.forge-shell .coherence-form-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.forge-shell .coherence-recap {
  margin: 0;
  min-width: 0;
  color: var(--tx-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.forge-shell .coherence-recap[data-coherence-recap="missing"] { color: var(--tx-3); }
.forge-shell .coherence-form-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
  align-items: center;
}
.forge-shell .coherence-form-actions .primary-action { min-width: 12rem; min-height: 2.6rem; }

/* --- result --------------------------------------------------------------- */

.forge-shell .coherence-result-card { scroll-margin-top: 1rem; }
.forge-shell .coherence-result-card:focus { outline: none; }
.forge-shell .coherence-result-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 20px 1.35rem;
}

.forge-shell .coherence-verdict {
  --verdict-ink: var(--idle);
  --verdict-bg: var(--idle-bg);
  --verdict-line: var(--idle-line);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border: 1px solid var(--verdict-line);
  border-left: 4px solid var(--verdict-ink);
  border-radius: var(--r-sm);
  background: var(--verdict-bg);
}
.forge-shell .coherence-verdict[data-coherence-verdict-tone="ok"] { --verdict-ink: var(--ok); --verdict-bg: var(--ok-bg); --verdict-line: var(--ok-line); }
.forge-shell .coherence-verdict[data-coherence-verdict-tone="warn"] { --verdict-ink: var(--warn); --verdict-bg: var(--warn-bg); --verdict-line: var(--warn-line); }
.forge-shell .coherence-verdict[data-coherence-verdict-tone="err"] { --verdict-ink: var(--err); --verdict-bg: var(--err-bg); --verdict-line: var(--err-line); }
.forge-shell .coherence-verdict-kicker {
  margin: 0 0 0.2rem;
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.forge-shell .coherence-verdict-value {
  margin: 0;
  color: var(--verdict-ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}
.forge-shell .coherence-validation-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--tx);
  font-size: 12.5px;
  font-weight: 650;
}

.forge-shell .coherence-result-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 13px;
}
.forge-shell .coherence-result-meta dt { font-weight: 650; }
.forge-shell .coherence-result-meta dd { margin: 0; overflow-wrap: anywhere; }

.forge-shell .coherence-section { display: grid; gap: 0.45rem; }
.forge-shell .coherence-section > h3 {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.forge-shell .coherence-section-body,
.forge-shell .coherence-contradiction-finding,
.forge-shell .coherence-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.forge-shell .coherence-section-body > :first-child,
.forge-shell .coherence-contradiction-finding > :first-child,
.forge-shell .coherence-excerpt > :first-child { margin-top: 0; }
.forge-shell .coherence-section-body > :last-child,
.forge-shell .coherence-contradiction-finding > :last-child,
.forge-shell .coherence-excerpt > :last-child { margin-bottom: 0; }
.forge-shell .coherence-section-body ul,
.forge-shell .coherence-contradiction-finding ul { padding-left: 1.2rem; }

.forge-shell .coherence-contradictions { display: grid; gap: 0.8rem; }
.forge-shell .coherence-contradiction {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
}
.forge-shell .coherence-contradiction-finding { font-weight: 600; }
.forge-shell .coherence-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.forge-shell .coherence-pair-side {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--paper);
}
.forge-shell .coherence-pair-side.is-candidate { border-top: 3px solid var(--err); }
.forge-shell .coherence-pair-side.is-reference { border-top: 3px solid var(--accent); }
.forge-shell .coherence-pair-side .source-read-button { justify-self: start; margin-top: 0.3rem; }
.forge-shell .coherence-pair-label {
  margin: 0;
  color: var(--tx-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.forge-shell .coherence-pair-meta { margin: 0; color: var(--tx-2); font-size: 12.5px; overflow-wrap: anywhere; }
.forge-shell .coherence-pair-quote {
  margin: 0.2rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--line-2);
  color: var(--tx);
  font-size: 13.5px;
  line-height: 1.5;
}

.forge-shell .coherence-sources { display: grid; gap: 0.6rem; }
.forge-shell .coherence-sources h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.forge-shell .coherence-source-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.forge-shell .coherence-source-item {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.forge-shell .coherence-source-item .source-read-button { justify-self: start; }
.forge-shell .coherence-source-title { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
.forge-shell .coherence-source-level {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--tx-2);
  font-size: 11.5px;
}
.forge-shell .coherence-excerpt { color: var(--tx-2); }
/* A heading inside a cited passage is part of the passage, not of the page. */
.forge-shell .coherence-excerpt :is(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 0.25rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 650;
}

/* --- narrow screens ------------------------------------------------------- */

@media (max-width: 1100px) {
  .forge-shell .coherence-hierarchy-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .forge-shell .coherence-fields,
  .forge-shell .coherence-pair { grid-template-columns: 1fr; }
  .forge-shell .coherence-form-footer,
  .forge-shell .coherence-verdict { flex-direction: column; align-items: stretch; }
}

@media (max-width: 620px) {
  .forge-shell .coherence-hierarchy-list { grid-template-columns: 1fr; }
  .forge-shell .coherence-form-actions,
  .forge-shell .coherence-form-actions .primary-action { width: 100%; }
  .forge-shell .coherence-result-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .forge-shell .document-coherence-view * { scroll-behavior: auto !important; }
}

/* 26/09/2026: the candidate's own copies in the base, left out of the
   comparison — said once, under the facts of the review. */
.forge-shell .coherence-duplicates {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}
.forge-shell .coherence-duplicates p { margin: 0; }
.forge-shell .coherence-duplicates-title { font-size: 12.5px; font-weight: 650; }
.forge-shell .coherence-duplicates-text { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

/* v8 (27/09/2026): a reference without a declared level — declare it from
   the result, then run the review again with the same file. */
.forge-shell .coherence-undeclared {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  color: var(--tx);
}
.forge-shell .coherence-undeclared h3 { margin: 0; font-size: 14px; font-weight: 650; }
.forge-shell .coherence-undeclared p { margin: 0; }
.forge-shell .coherence-undeclared-text,
.forge-shell .coherence-undeclared-who,
.forge-shell .coherence-undeclared-help { font-size: 13px; line-height: 1.5; color: var(--tx-2); }
.forge-shell .coherence-undeclared-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.forge-shell .coherence-undeclared-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.forge-shell .coherence-undeclared-name { font-weight: 650; overflow-wrap: anywhere; }
.forge-shell .coherence-undeclared-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forge-shell .coherence-undeclared-select { min-height: 36px; min-width: 12rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--tx); font: inherit; }
.forge-shell .coherence-undeclared-status { font-size: 12.5px; font-weight: 600; color: var(--ok); }
.forge-shell .coherence-undeclared-status.is-error { color: var(--err); }
.forge-shell .coherence-undeclared-rerun { justify-self: start; min-height: 2.6rem; }
.forge-shell .coherence-undeclared-declare { min-height: 36px; }

/* 27/09/2026: a reference base not designated as management system
   documentation — said before any run, with the way out. */
.forge-shell .coherence-designation {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  color: var(--tx);
}
.forge-shell .coherence-designation[hidden] { display: none; }
.forge-shell .coherence-designation p { margin: 0; }
.forge-shell .coherence-designation-title { font-weight: 650; font-size: 13.5px; }
.forge-shell .coherence-designation-text,
.forge-shell .coherence-designation-who { font-size: 13px; line-height: 1.5; color: var(--tx-2); }
.forge-shell .coherence-designation-error { font-size: 12.5px; color: var(--err); }
.forge-shell .coherence-designation-enable { justify-self: start; }

/* Lot H (28/09/2026): the server's two rubrics — the regulatory vigilance
   points (verified quotes, a fixed sentence) and what was compared. */
.forge-shell .coherence-vigilance {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  color: var(--tx);
}
.forge-shell .coherence-vigilance h3 { margin: 0; font-size: 14px; font-weight: 650; }
.forge-shell .coherence-vigilance p { margin: 0; }
.forge-shell .coherence-vigilance-note { font-size: 12.5px; color: var(--tx-2); }
.forge-shell .coherence-vigilance-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.forge-shell .coherence-vigilance-sentence { font-weight: 650; }
.forge-shell .coherence-vigilance-quotes { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: 4px 12px; margin: 0; font-size: 13px; line-height: 1.5; }
.forge-shell .coherence-vigilance-quotes dt { color: var(--tx-2); }
.forge-shell .coherence-vigilance-quotes dd { margin: 0; overflow-wrap: anywhere; }
.forge-shell .coherence-compared { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.forge-shell .coherence-compared h3 { margin: 0; font-size: 14px; font-weight: 650; }
.forge-shell .coherence-compared p,
.forge-shell .coherence-compared ul { margin: 0; font-size: 13px; line-height: 1.5; }
.forge-shell .coherence-compared ul { padding-left: 18px; }
.forge-shell .coherence-compared-rest { color: var(--tx-2); }
@media (max-width: 640px) {
  .forge-shell .coherence-vigilance-quotes { grid-template-columns: 1fr; }
}
.forge-shell .coherence-vigilance-link { color: var(--accent, inherit); font-weight: 600; overflow-wrap: anywhere; }

/* Lot K (recette J, D1 and D3): a partial reading said first; the review's
   details folded under one summary. */
.coherence-partial-reading { margin: .75rem 0; padding: .6rem .8rem; border-left: 3px solid var(--warn); background: var(--surface-muted, rgba(241, 137, 16, .08)); }
.coherence-more { margin-top: 1.25rem; border-top: 1px solid var(--border, rgba(0, 0, 0, .12)); padding-top: .75rem; }
.coherence-more-summary { cursor: pointer; font-weight: 600; }
.coherence-more-body { margin-top: .75rem; }

/* Lot N (30/09/2026, recette K+L KL-18, presentation c validated by
   Jean-Charles): the configuration on one line with discreet reminders; the
   result read at a glance — a banner, the contradictions as cards, the
   corrections as « before / after », the rest in tabs. Declared last. */
.forge-shell .coherence-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.5fr); align-items: end; gap: .75rem; }
.forge-shell .coherence-fields .coherence-file-field { gap: .3rem; }
.forge-shell .coherence-fields .coherence-dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; min-height: 0; padding: .45rem .7rem; }
.forge-shell .coherence-fields .coherence-dropzone svg { width: 18px; height: 18px; }
.forge-shell .coherence-fields .coherence-dropzone[hidden], .forge-shell .coherence-fields .coherence-file-chosen[hidden] { display: none; }
.forge-shell .coherence-fields .coherence-dropzone-help { display: none; }
.forge-shell .coherence-fields .coherence-file-chosen { padding: .45rem .7rem; }
.forge-shell .coherence-reminders { display: grid; gap: .35rem; margin-top: .25rem; }
.forge-shell .coherence-reminders .coherence-hierarchy { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: 0; border: 0; background: none; }
.forge-shell .coherence-reminders .coherence-hierarchy-heading h3 { font-size: 12.5px; font-weight: 500; color: var(--tx-3); }
.forge-shell .coherence-reminders .coherence-hierarchy-heading h3::after { content: " :"; }
.forge-shell .coherence-reminders .coherence-hierarchy-list { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; }
.forge-shell .coherence-reminders .coherence-hierarchy-item { display: inline-flex; align-items: center; gap: .3rem; min-height: 0; padding: .05rem .55rem; border: 1px solid transparent; border-radius: 999px; background: var(--card-2); box-shadow: none; font-size: 12px; color: var(--tx-3); }
.forge-shell .coherence-reminders .coherence-hierarchy-index { display: none; }
.forge-shell .coherence-reminders .coherence-hierarchy-label { display: inline; }
.forge-shell .coherence-reminders .coherence-hierarchy-item.is-current { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.forge-shell .coherence-reminders .coherence-hierarchy-here { display: none; }
.forge-shell .coherence-reminders .coherence-hierarchy-note { flex-basis: 100%; margin: 0; font-size: 12px; }
.forge-shell .coherence-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.forge-shell details.coherence-boundary { padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--tx-2); }
.forge-shell .coherence-boundary-summary { cursor: pointer; list-style: none; }
.forge-shell .coherence-boundary-summary::-webkit-details-marker { display: none; }
.forge-shell .coherence-boundary-summary::before { content: "\24D8\00A0"; color: var(--accent-text); }
.forge-shell .coherence-boundary-text { margin: .3rem 0 0 1.1rem; }

.forge-shell .coherence-verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 13px; }
.forge-shell .coherence-verdict-copy { display: grid; gap: .15rem; min-width: 0; }
.forge-shell .coherence-verdict-sub { margin: 0; font-size: 13px; color: var(--tx-2); }
.forge-shell .coherence-verdict-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.forge-shell .coherence-verdict-stat { display: grid; min-width: 92px; margin: 0; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.forge-shell .coherence-verdict-stat strong { font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.forge-shell .coherence-verdict-stat span { font-size: 12px; color: var(--tx-3); }
.forge-shell .coherence-verdict-stat.is-err strong { color: var(--err); }
.forge-shell .coherence-verdict-stat.is-warn strong { color: var(--warn); }
.forge-shell .coherence-verdict-stat.is-info strong { color: var(--mode-general); }
.forge-shell .coherence-section-note { font-size: 12.5px; font-weight: 500; color: var(--tx-3); }
.forge-shell .coherence-tab-empty { margin: 0; color: var(--tx-3); }
.forge-shell .coherence-fixes { display: grid; gap: .6rem; }
.forge-shell .coherence-fix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .8rem; align-items: start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.forge-shell .coherence-fix-priority { padding: .1rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.forge-shell .coherence-fix-priority.is-high { border-color: var(--err-line); background: var(--err-bg); color: var(--err); }
.forge-shell .coherence-fix-priority.is-medium { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.forge-shell .coherence-fix-priority.is-low { border-color: var(--idle-line); background: var(--idle-bg); color: var(--idle); }
.forge-shell .coherence-fix-copy { display: grid; gap: .25rem; min-width: 0; grid-column: 2; }
.forge-shell .coherence-fix > .coherence-fix-copy:first-child { grid-column: 1 / -1; }
.forge-shell .coherence-fix-before { margin: 0; color: var(--tx-3); text-decoration: line-through; }
.forge-shell .coherence-fix-after { margin: 0; color: var(--ok); font-weight: 500; }
.forge-shell .coherence-more.section-card { display: grid; gap: .75rem; }
.forge-shell .coherence-tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--line); }
.forge-shell .coherence-tab { padding: .5rem .8rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--tx-3); font: inherit; font-weight: 500; cursor: pointer; }
.forge-shell .coherence-tab.is-active { border-bottom-color: var(--accent); color: var(--tx); font-weight: 600; }
.forge-shell .coherence-tab-count { margin-left: .35rem; padding: 0 .4rem; border-radius: 99px; background: var(--card-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.forge-shell .coherence-tab-panel { display: grid; gap: .75rem; min-width: 0; padding: 0 .9rem .9rem; }
.forge-shell .coherence-tab-panel[hidden] { display: none; }
@media (max-width: 1100px) {
  .forge-shell .coherence-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .forge-shell .coherence-fields { grid-template-columns: minmax(0, 1fr); }
  .forge-shell .coherence-verdict { grid-template-columns: minmax(0, 1fr); }
}
