/* WORKFLOW HEADING */
.gbtox-section-heading h3 {
  margin: 2px 0;
  font-size: 1rem;
}

.gbtox-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gbtox-heading-actions > span {
  color: #567199;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gbtox-heading-actions button {
  color: #496581;
  font-size: 0.7rem;
}

.gbtox-heading-actions button.is-active {
  color: var(--gbtox-accent-strong);
  border-color: var(--gbtox-accent-border);
  background: var(--gbtox-accent-soft);
}

.gbtox-preview-notice {
  margin: 8px 0;
  padding: 7px 10px;
  border: 1px solid #d7ad50;
  border-radius: 8px;
  color: #6f531b;
  background: #fff5d8;
  font-size: 0.75rem;
}

/* WORKFLOW NAVIGATION */
.gbtox-stage-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 11px 0;
}

.gbtox-stage-nav button {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 5px;
  border: 1px solid var(--gbtox-line);
  border-radius: 10px;
  color: #536681;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.gbtox-stage-nav button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--gbtox-accent-border); background: var(--gbtox-accent-soft); }

.gbtox-stage-nav button span {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: var(--gbtox-accent-strong);
    background: #cfd5fa;
    font-size: 0.72rem;
}

.gbtox-stage-nav button b {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gbtox-stage-nav button.is-active {
    color: var(--gbtox-accent-strong);
    border-color: var(--gbtox-accent);
    background: var(--gbtox-accent-soft);
}

.gbtox-stage-nav button.is-active span {
    color: #fff;
    background: #7467c7;
    box-shadow: 0 0 0 1px var(--gbtox-dark-surface);
}

.gbtox-stage-nav button.is-locked {
  opacity: 0.62;
}

.gbtox-stage-nav button.is-previewable {
  opacity: 1;
  border-style: dashed;
}

/* WORKFLOW STAGE */
.gbtox-stage {
  position: relative;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--gbtox-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.gbtox-stage-heading > span {
  color: #567199;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gbtox-stage-heading h3 {
  margin: 3px 0;
  font-size: 1rem;
}

.gbtox-stage-heading p,
.gbtox-empty p {
  margin: 3px 0;
  color: #65758e;
  font-size: 0.8rem;
}

.gbtox-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed #a9b8cd;
  border-radius: 11px;
  background: rgba(246, 249, 254, 0.75);
}

.gbtox-empty i {
  color: #5e7b9f;
  font-size: 1.15rem;
}

.gbtox-empty strong { font-size: 0.84rem; }

.gbtox-help {
  cursor: pointer;
  position: absolute;
  top: 13px;
  right: 13px;
  width: 29px;
  height: 29px;
  border: 1px solid var(--gbtox-line);
  border-radius: 50%;
  color: #496581;
  background: #fff;
  font-weight: 800;
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.gbtox-help:hover:not(:disabled) { transform: translateY(-1px); color: var(--gbtox-accent-strong); border-color: var(--gbtox-accent-border); background: var(--gbtox-accent-soft); }
.gbtox-stage--explorer { padding-top: 16px; }

.gbtox-input-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.gbtox-input-evidence[hidden] {
  display: none;
}

/* =========================================================
   PATCH 2026-08-27 22:34 | STAGE 1 GOVERNED EVIDENCE THEME

   Gives verified Stage 1 evidence a restrained GB-Tox/ZAR
   visual relationship while keeping the evidence surface light.
========================================================= */

.gbtox-input-evidence div {
  min-width: 0;
  padding: 10px 12px;

  border: 1px solid rgba(116, 103, 199, 0.18);
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(248, 248, 255, 0.94),
    rgba(244, 250, 249, 0.9)
  );

  box-shadow: inset 3px 0 0 rgba(116, 103, 199, 0.12);
}

.gbtox-input-evidence dt {
  color: #5b6592;

  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gbtox-input-evidence dd {
  overflow-wrap: anywhere;

  margin: 4px 0 0;

  color: #263954;
  font-size: 0.76rem;
}

.gbtox-evidence-help { display: inline-grid; width: 18px; height: 18px; margin-left: 4px; padding: 0; place-items: center; border: 1px solid var(--gbtox-accent-border); border-radius: 50%; color: var(--gbtox-accent-strong); background: #fff; cursor: pointer; font: inherit; line-height: 1; transition: transform 140ms ease, background-color 140ms ease; }
.gbtox-evidence-help:hover { transform: translateY(-1px); background: var(--gbtox-accent-soft); }
.gbtox-stage-actions { gap: 8px; display: flex; justify-content: flex-end; margin-top: 14px; }
.gbtox-primary-action { padding: 9px 15px; border: 1px solid var(--gbtox-accent-strong); border-radius: 10px; color: #fff; background: var(--gbtox-accent-strong); cursor: pointer; font-weight: 700; transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }
.gbtox-primary-action:hover:not(:disabled) { transform: translateY(-1px); background: #493b96; box-shadow: 0 6px 14px rgba(66, 52, 145, 0.18); }
.gbtox-primary-action:disabled { color: #8793a6; border-color: #c4ccda; background: #e7ebf2; cursor: not-allowed; box-shadow: none; }

/* =========================================================
   PATCH 2026-08-28 | STAGE 2+ ZAR GUIDANCE ACTION

   Reuses the EMC Stage 4 "ZAR AI · Suggest" visual language:
   an icon + one-word action button with an inline telemetry
   line below it. The tooltip is served by the shared NQC
   viewport-safe engine via data-tooltip, like every other
   GB-Tox help affordance.
========================================================= */
.gbtox-guidance { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 12px 0 0; }

.gbtox-guidance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--gbtox-accent-border);
  border-radius: 9px;
  color: var(--gbtox-accent-strong);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.gbtox-guidance-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--gbtox-accent); background: var(--gbtox-accent-soft); }
.gbtox-guidance-btn:active:not(:disabled) { transform: none; background: #e7e3fb; }
.gbtox-guidance-btn:disabled { cursor: progress; opacity: 0.6; }
.gbtox-guidance-btn:disabled:not([aria-busy="true"]) { cursor: not-allowed; }
.gbtox-guidance-btn:focus-visible { outline: 2px solid var(--gbtox-accent); outline-offset: 2px; }
/* Same canonical ZAR AI action mark and self-contained rotation animation used by
   the EMC Stage 4 "ZAR AI · Suggest" control (image/zar_ai_mark.svg). */
.gbtox-guidance-mark { display: block; width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; }
.gbtox-guidance-label { line-height: 1; white-space: nowrap; }

.gbtox-guidance-status { display: flex; align-items: center; gap: 6px; min-height: 1.05rem; color: #65758e; font-size: 0.72rem; }
.gbtox-guidance-status[data-state="idle"] { visibility: hidden; }
.gbtox-guidance-signal { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--gbtox-accent); }
.gbtox-guidance-status[data-state="working"] .gbtox-guidance-signal { animation: gbtox-guidance-pulse 1.35s ease-in-out infinite; }
.gbtox-guidance-status[data-state="ready"] { color: var(--gbtox-accent-strong); }
.gbtox-guidance-status[data-state="ready"] .gbtox-guidance-signal { background: var(--gbtox-accent-strong); }
.gbtox-guidance-status[data-state="error"] { color: #c0392f; }
.gbtox-guidance-status[data-state="error"] .gbtox-guidance-signal { background: #c0392f; }

@keyframes gbtox-guidance-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .gbtox-guidance-btn { transition: none; }
  .gbtox-guidance-status[data-state="working"] .gbtox-guidance-signal { animation: none; }
}

@media (max-width: 560px) {
  .gbtox-guidance { width: 100%; }
  .gbtox-guidance-btn { width: 100%; }
}

/* PATCH 2026-08-28 | STAGE 2 GOVERNED SIGNATURE SELECTION */
.gbtox-signature-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(116,103,199,.2); border-radius: 12px; background: rgba(248,249,255,.82); }
.gbtox-signature-panel label > span { display:block; margin-bottom:6px; color:#5b6592; font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-signature-panel select { width:100%; min-height:42px; padding:8px 11px; border:1px solid var(--gbtox-line); border-radius:9px; color:#263954; background:#fff; font:inherit; }
.gbtox-signature-message { margin:8px 0 0; color:#65758e; font-size:.76rem; }
.gbtox-signature-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0 0; }
.gbtox-signature-evidence[hidden] { display:none; }
.gbtox-signature-evidence div { min-width:0; padding:10px 12px; border:1px solid rgba(116,103,199,.18); border-radius:10px; background:#fff; }
.gbtox-signature-evidence dt { color:#5b6592; font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-signature-evidence dd { margin:4px 0 0; overflow-wrap:anywhere; color:#263954; font-size:.76rem; }

/* PATCH 2026-08-28 13:10 +03:00 | GB-TOX STAGE 3 GOVERNED COVERAGE */
.gbtox-coverage-panel { margin-top:14px; padding:14px; border:1px solid rgba(116,103,199,.2); border-radius:12px; background:rgba(248,249,255,.82); }
.gbtox-coverage-message { margin:0; color:#65758e; font-size:.78rem; }
.gbtox-coverage-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0 0; }
.gbtox-coverage-summary[hidden], .gbtox-component-coverage[hidden], .gbtox-coverage-evidence[hidden] { display:none; }
.gbtox-coverage-summary div { min-width:0; padding:10px 12px; border:1px solid rgba(116,103,199,.18); border-radius:10px; background:#fff; }
.gbtox-coverage-summary dt { color:#5b6592; font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-coverage-summary dd { margin:4px 0 0; overflow-wrap:anywhere; color:#263954; font-size:.76rem; }
.gbtox-component-coverage { margin-top:14px; }
.gbtox-component-coverage__heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gbtox-guidance-btn--compact { flex:0 0 auto; padding:6px 9px; font-size:.72rem; }
.gbtox-component-coverage h4 { margin:0; color:#263954; font-size:.88rem; }
.gbtox-component-coverage > p { margin:3px 0 8px; color:#65758e; font-size:.75rem; }
/* Compact fixed-height table (~GB-Tox activity console). The header is a fixed
   block; only <tbody> scrolls, so the scrollbar is contained to the rows and
   never runs beside the column headers. */
.gbtox-component-table-wrap {
  max-width:100%;
  overflow:hidden;
  border:1px solid var(--gbtox-line);
  border-radius:10px;
  background:#fff;
}
.gbtox-component-table-wrap table { width:100%; border-collapse:collapse; font-size:.75rem; }
.gbtox-component-table-wrap thead,
.gbtox-component-table-wrap tbody { display:block; }
.gbtox-component-table-wrap thead tr,
.gbtox-component-table-wrap tbody tr { display:table; width:100%; table-layout:fixed; }
.gbtox-component-table-wrap th, .gbtox-component-table-wrap td {
  padding:8px 10px; border-bottom:1px solid #e1e6ef; text-align:left;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.gbtox-component-table-wrap th:nth-child(1), .gbtox-component-table-wrap td:nth-child(1) { width:34%; }
.gbtox-component-table-wrap th:nth-child(2), .gbtox-component-table-wrap td:nth-child(2) { width:24%; }
.gbtox-component-table-wrap th:nth-child(3), .gbtox-component-table-wrap td:nth-child(3) { width:18%; }
.gbtox-component-table-wrap th:nth-child(4), .gbtox-component-table-wrap td:nth-child(4) { width:24%; }
.gbtox-component-table-wrap thead {
  padding-right:6px;                 /* match the reserved tbody scrollbar gutter so columns align */
}
.gbtox-component-table-wrap thead th {
  color:#5b6592; font-size:.65rem; letter-spacing:.06em; text-transform:uppercase;
  background:#fff; box-shadow:inset 0 -1px 0 #e1e6ef;
}
.gbtox-component-table-wrap tbody {
  max-height:204px;
  overflow-y:auto;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  /* thin, auto-hiding scrollbar — light-theme variant of the .gbtox-console pattern */
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
  transition:scrollbar-color 220ms ease;
}
.gbtox-component-table-wrap tbody:hover,
.gbtox-component-table-wrap tbody:focus-within,
.gbtox-component-table-wrap tbody.is-scrolling { scrollbar-color:#b7c0d6 transparent; }
.gbtox-component-table-wrap tbody::-webkit-scrollbar { width:6px; }
.gbtox-component-table-wrap tbody::-webkit-scrollbar-track { background:transparent; }
.gbtox-component-table-wrap tbody::-webkit-scrollbar-thumb { border-radius:999px; background:transparent; transition:background-color 220ms ease; }
.gbtox-component-table-wrap tbody:hover::-webkit-scrollbar-thumb,
.gbtox-component-table-wrap tbody:focus-within::-webkit-scrollbar-thumb,
.gbtox-component-table-wrap tbody.is-scrolling::-webkit-scrollbar-thumb { background:#b7c0d6; }
.gbtox-component-table-wrap tbody.is-scrolling::-webkit-scrollbar-thumb:hover { background:#9aa6c2; }
.gbtox-component-table-wrap tbody tr:last-child td { border-bottom:0; }

.gbtox-coverage-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; margin-top:12px; }
.gbtox-coverage-evidence details { min-width:0; padding:9px 11px; border:1px solid var(--gbtox-line); border-radius:9px; background:#fff; }
.gbtox-coverage-evidence summary {
  display:flex; align-items:center; gap:6px;
  list-style:none;
  color:#354b6a; cursor:pointer; font-size:.75rem; font-weight:700;
}
.gbtox-coverage-evidence summary::-webkit-details-marker { display:none; }
.gbtox-coverage-evidence summary::before {
  content:"";
  flex:0 0 auto;
  width:6px; height:6px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  transition:transform 180ms ease;
}
.gbtox-coverage-evidence details[open] > summary::before { transform:rotate(45deg); }
.gbtox-coverage-evidence details[open] > p { animation:gbtox-evidence-reveal 160ms ease; }
.gbtox-coverage-evidence p { max-height:130px; overflow:auto; margin:8px 0 0; color:#536681; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.69rem; overflow-wrap:anywhere; }

@keyframes gbtox-evidence-reveal { from { opacity:0; transform:translateY(-2px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) {
  .gbtox-component-table-wrap tbody,
  .gbtox-component-table-wrap tbody::-webkit-scrollbar-thumb,
  .gbtox-configuration-fingerprint,
  .gbtox-configuration-fingerprint::-webkit-scrollbar-thumb,
  .gbtox-coverage-evidence summary::before { transition:none; }
  .gbtox-coverage-evidence details[open] > p { animation:none; }
}

/* PATCH 2026-08-29 | GB-TOX STAGE 4 GOVERNED CONFIGURATION */
.gbtox-configuration-panel { margin-top:14px; padding:14px; border:1px solid rgba(116,103,199,.2); border-radius:12px; background:rgba(248,249,255,.82); }
.gbtox-configuration-panel__header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.gbtox-configuration-reset { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border:1px solid rgba(99,83,188,.3); border-radius:9px; color:#5e4bb8; background:#fff; cursor:pointer; }
.gbtox-configuration-reset svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.gbtox-configuration-reset:disabled { opacity:.38; cursor:not-allowed; }
.gbtox-configuration-panel[hidden] { display:none; }
.gbtox-configuration-panel h4 { margin:14px 0 8px; color:#354b6a; font-size:.82rem; }
.gbtox-configuration-panel h4:first-of-type { margin-top:10px; }
.gbtox-configuration-message,.gbtox-configuration-boundary { margin:0; color:#65758e; font-size:.76rem; }
.gbtox-configuration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.gbtox-configuration-grid div { min-width:0; padding:10px 12px; border:1px solid rgba(116,103,199,.18); border-radius:10px; background:#fff; }
.gbtox-configuration-grid dt,.gbtox-configuration-options span { color:#5b6592; font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-configuration-grid dd { margin:4px 0 0; overflow-wrap:anywhere; color:#263954; font-size:.76rem; }
.gbtox-configuration-fingerprint { max-width:100%; overflow-x:auto; overflow-y:hidden; white-space:nowrap; overflow-wrap:normal!important; padding-bottom:4px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; user-select:text; scrollbar-width:thin; scrollbar-color:transparent transparent; transition:scrollbar-color 220ms ease; }
.gbtox-configuration-fingerprint:hover,
.gbtox-configuration-fingerprint:focus,
.gbtox-configuration-fingerprint:focus-within,
.gbtox-configuration-fingerprint.is-scrolling { scrollbar-color:#b7c0d6 transparent; }
.gbtox-configuration-fingerprint::-webkit-scrollbar { height:6px; }
.gbtox-configuration-fingerprint::-webkit-scrollbar-track { background:transparent; }
.gbtox-configuration-fingerprint::-webkit-scrollbar-thumb { border-radius:999px; background:transparent; transition:background-color 220ms ease; }
.gbtox-configuration-fingerprint:hover::-webkit-scrollbar-thumb,
.gbtox-configuration-fingerprint:focus::-webkit-scrollbar-thumb,
.gbtox-configuration-fingerprint:focus-within::-webkit-scrollbar-thumb,
.gbtox-configuration-fingerprint.is-scrolling::-webkit-scrollbar-thumb { background:#b7c0d6; }
.gbtox-configuration-fingerprint.is-scrolling::-webkit-scrollbar-thumb:hover { background:#9aa6c2; }
.gbtox-configuration-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
.gbtox-configuration-options label { display:flex; min-width:0; max-width:100%; flex-direction:column; gap:6px; }
.gbtox-configuration-options label > span { min-width:0; white-space:normal; }
.gbtox-configuration-options select,.gbtox-configuration-options input { box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid var(--gbtox-line); border-radius:9px; color:#263954; background:#fff; font:inherit; }
.gbtox-configuration-options input:disabled { cursor:not-allowed; border-color:#cbd4e0; color:#64748b; background:#e9edf3; box-shadow:none; }
.gbtox-configuration-options label.is-inactive > span { color:#748196; }
@media (max-width:800px) { .gbtox-configuration-grid,.gbtox-configuration-options { grid-template-columns:1fr; } .gbtox-configuration-panel { min-width:0; max-width:100%; overflow:hidden; } }
@media (max-width:560px) { .gbtox-configuration-panel { padding:10px; } }

/* Stage 7 governed report builder */
.gbtox-review-status { margin:14px 0 0; padding:10px 12px; border:1px solid rgba(116,103,199,.2); border-radius:10px; color:#52647f; background:#f7f6ff; font-size:.78rem; }
.gbtox-review-tabs { display:flex; gap:8px; margin:14px 0; padding-bottom:12px; overflow-x:auto; border-bottom:1px solid var(--gbtox-line); }
.gbtox-review-tabs button,.gbtox-generated-report button,.gbtox-generated-report a { min-height:38px; padding:8px 12px; border:1px solid var(--gbtox-line); border-radius:9px; color:#465d7b; background:#fff; font:inherit; font-size:.76rem; font-weight:700; text-decoration:none; cursor:pointer; }
.gbtox-review-tabs button[aria-selected="true"] { border-color:#b9aaff; color:#5f48b8; background:#f1edff; }
.gbtox-review-panel { padding:16px; border:1px solid var(--gbtox-line); border-radius:12px; background:#fbfcff; }
.gbtox-review-panel[hidden] { display:none; }
.gbtox-review-panel h4 { margin:0 0 8px; color:#263954; }
.gbtox-review-panel > p { color:#65758e; font-size:.78rem; }
.gbtox-review-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.gbtox-review-evidence div { min-width:0; padding:10px 12px; border:1px solid #e0e6ef; border-radius:10px; background:#fff; }
.gbtox-review-evidence dt { color:#5b6592; font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-review-evidence dd { margin:4px 0 0; overflow-wrap:anywhere; color:#263954; font-size:.76rem; }
.gbtox-review-boundary { padding:10px 12px; border-radius:9px; background:#fff7dc; }
.gbtox-report-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:14px 0; }
.gbtox-report-options label { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 12px; border:1px solid #e0e6ef; border-radius:10px; color:#354b6a; background:#fff; font-size:.78rem; }
.gbtox-report-options label:has(select) { align-items:stretch; flex-direction:column; }
.gbtox-report-options select { min-height:38px; padding:7px 9px; border:1px solid var(--gbtox-line); border-radius:8px; background:#fff; font:inherit; }
.gbtox-approved-figure-list { display:grid; gap:8px; margin:14px 0; }
.gbtox-approved-figure-list > p { margin:0; color:#65758e; font-size:.78rem; }
.gbtox-approved-figure-list > button,.gbtox-approved-figure-item > button,.gbtox-approved-preview__heading button { min-height:36px; padding:7px 11px; border:1px solid var(--gbtox-line); border-radius:9px; color:#5946ad; background:#fff; font:inherit; font-size:.72rem; font-weight:750; cursor:pointer; }
.gbtox-approved-figure-item { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; padding:11px 12px; border:1px solid #e0e6ef; border-radius:10px; background:#fff; transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease; }
.gbtox-approved-figure-item.is-included { border-color:#cbbff8; background:#fcfbff; box-shadow:0 5px 18px rgba(82,66,150,.08); }
.gbtox-approved-figure-item > div { display:flex; min-width:0; flex-direction:column; gap:3px; }
.gbtox-approved-figure-item strong { overflow:hidden; color:#263954; font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.gbtox-approved-figure-item span,.gbtox-approved-figure-item code { overflow:hidden; color:#65758e; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.gbtox-approved-preview { margin:14px 0; overflow:hidden; border:1px solid rgba(116,103,199,.28); border-radius:12px; background:#fff; }
.gbtox-approved-preview[hidden] { display:none; }
.gbtox-approved-preview__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-bottom:1px solid var(--gbtox-line); }
.gbtox-approved-preview__heading > div { display:flex; min-width:0; flex-direction:column; gap:2px; }
.gbtox-approved-preview__heading span { overflow:hidden; color:#65758e; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.gbtox-approved-preview__plot { width:100%; min-height:480px; }
.gbtox-approved-inline-preview { grid-column:1/-1; max-height:0; opacity:0; overflow:hidden; border-top:1px solid transparent; transition:max-height .2s ease,opacity .18s ease,border-color .18s ease,padding-top .2s ease; }
.gbtox-approved-inline-preview.is-visible { max-height:820px; padding-top:10px; opacity:1; border-color:var(--gbtox-line); }
.gbtox-draft-report-preview { display:grid; gap:10px; margin:12px 0 16px; }
.gbtox-draft-report-preview section { max-height:0; padding:0 12px; opacity:0; overflow:hidden; border:1px solid transparent; border-radius:10px; background:#fff; transition:max-height .2s ease,opacity .18s ease,padding .2s ease,border-color .18s ease; }
.gbtox-draft-report-preview section.is-visible { max-height:420px; padding:12px; opacity:1; overflow:auto; border-color:#e0e6ef; }
.gbtox-draft-report-preview h5 { margin:0 0 9px; color:#354b6a; font-size:.78rem; }
.gbtox-draft-report-preview table { width:100%; border-collapse:collapse; font-size:.68rem; }
.gbtox-draft-report-preview th,.gbtox-draft-report-preview td { padding:6px 8px; border-top:1px solid #e7ebf2; text-align:left; }
.gbtox-approved-figure-note { padding:10px 12px; border-radius:9px; background:#f2efff; }
.gbtox-report-generate-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.gbtox-report-generate-control { display:inline-flex; border-radius:10px; }
.gbtox-report-manage-link { padding:7px 3px; border:0; color:#604db3; background:transparent; font:inherit; font-size:.74rem; font-weight:800; cursor:pointer; text-decoration:underline; text-decoration-color:rgba(96,77,179,.34); text-underline-offset:3px; }
.gbtox-report-manage-link:hover,.gbtox-report-manage-link:focus-visible { color:#493795; text-decoration-color:currentColor; }
.gbtox-report-preview-empty { padding:38px 20px; color:#65758e; text-align:center; }
.gbtox-review-panel iframe { width:100%; min-height:720px; border:1px solid var(--gbtox-line); border-radius:10px; background:#fff; }
.gbtox-generated-reports { display:grid; gap:8px; }
.gbtox-report-retention { margin:0 0 12px; overflow:hidden; border:1px solid var(--gbtox-line); border-radius:10px; background:#fff; }
.gbtox-report-retention summary { position:relative; padding:11px 38px 11px 13px; color:#465d7b; font-size:.76rem; font-weight:800; cursor:pointer; list-style:none; }
.gbtox-report-retention summary::-webkit-details-marker { display:none; }
.gbtox-report-retention summary::after { position:absolute; top:50%; right:14px; width:7px; height:7px; border-right:2px solid #64748b; border-bottom:2px solid #64748b; content:""; transform:translateY(-65%) rotate(45deg); transition:transform .18s ease; }
.gbtox-report-retention[open] summary::after { transform:translateY(-35%) rotate(225deg); }
.gbtox-report-retention > div { padding:0 13px 12px; color:#65758e; font-size:.72rem; animation:gbtox-report-disclose .18s ease; }
.gbtox-report-retention p { margin:0 0 7px; }.gbtox-report-retention ul { margin:0; padding-left:18px; }.gbtox-report-retention li + li { margin-top:4px; }
@keyframes gbtox-report-disclose { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.gbtox-generated-report { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid #e0e6ef; border-radius:10px; background:#fff; }
.gbtox-generated-report > div:first-child { display:flex; min-width:0; flex-direction:column; gap:3px; }
.gbtox-generated-report span { overflow:hidden; color:#65758e; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.gbtox-generated-report > div:last-child { display:flex; gap:6px; }
.gbtox-report-expiry.is-urgent { color:#a66c12; font-weight:750; }
.gbtox-generated-report .gbtox-report-delete { display:grid; width:38px; padding:8px; place-items:center; color:#b64d5c; border-color:#efc7cd; }
.gbtox-report-delete svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:700px) { .gbtox-review-evidence,.gbtox-report-options { grid-template-columns:1fr; } .gbtox-generated-report { align-items:stretch; flex-direction:column; } .gbtox-approved-figure-item { grid-template-columns:auto minmax(0,1fr); } .gbtox-approved-figure-item > button { grid-column:1/-1; } .gbtox-approved-preview__heading { align-items:stretch; flex-direction:column; } .gbtox-approved-preview__plot { min-height:360px; } }

/* PATCH 2026-08-30 | GB-TOX STAGE 5 GOVERNED EXECUTION REVIEW */
.gbtox-run-message { margin:12px 0 0; color:#65758e; font-size:.78rem; }
.gbtox-run-panel { margin-top:14px; padding:14px; border:1px solid rgba(116,103,199,.2); border-radius:12px; background:rgba(248,249,255,.82); }
.gbtox-run-panel[hidden] { display:none; }
.gbtox-run-panel h4 { margin:0 0 10px; color:#354b6a; font-size:.86rem; }
.gbtox-run-panel__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.gbtox-run-panel__heading h4 { margin:0; }
.gbtox-guidance--inline { align-items:flex-end; width:auto; margin:0; }
.gbtox-guidance--inline .gbtox-guidance-status { max-width:320px; text-align:right; }
.gbtox-run-panel > p { margin:10px 0 0; color:#65758e; font-size:.74rem; }
.gbtox-run-review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.gbtox-run-review-grid div { min-width:0; padding:10px 12px; border:1px solid rgba(116,103,199,.18); border-radius:10px; background:#fff; }
.gbtox-run-review-grid__wide { grid-column:1/-1; }

@media (max-width:560px) {
  .gbtox-run-panel__heading { align-items:stretch; flex-direction:column; }
  .gbtox-guidance--inline { align-items:stretch; width:100%; }
  .gbtox-guidance--inline .gbtox-guidance-status { max-width:none; text-align:left; }
}
.gbtox-run-review-grid dt { color:#5b6592; font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.gbtox-run-review-grid dd { margin:4px 0 0; overflow-wrap:anywhere; color:#263954; font-size:.76rem; }
.gbtox-run-review-grid__wide dd { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; user-select:text; }
.gbtox-run-result { border-color:rgba(73,190,158,.32); background:rgba(240,252,248,.78); }
@media (max-width:800px) { .gbtox-run-review-grid { grid-template-columns:1fr; } .gbtox-run-review-grid__wide { grid-column:auto; } }
