/* RESPONSIVE */
@media (max-width: 980px) {
  .gbtox-stage-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .gbtox-stage-nav button {
    flex: 0 0 auto;
    min-width: 104px;
    scroll-snap-align: start;
  }
}

@media (max-width: 800px) {
  .gbtox-shell {
    margin: 5px;
    padding: 12px;
    border-radius: 16px;
  }

  .gbtox-header,
  .gbtox-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gbtox-monitor__summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .gbtox-monitor__summary time { display: none; }

  .gbtox-run-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gbtox-run-summary div:nth-child(2n) { border-right: 0; }
  .gbtox-run-summary div:nth-child(n + 5) { border-bottom: 1px solid #73839a; }
  .gbtox-run-summary div:nth-child(n + 7) { border-bottom: 0; }

  .gbtox-stage {
    padding: 13px;
  }

  /* =========================================================
     PATCH 2026-08-27 22:34 | NARROW GOVERNED EVIDENCE ACCENTS

     Keeps the new verified-state styling compact and contained
     when Stage 1 collapses to its single-column mobile layout.
  ========================================================= */

  .gbtox-status {
    max-width: 100%;
  }

  .gbtox-input-evidence div {
    box-shadow: inset 3px 0 0 rgba(116, 103, 199, 0.12);
  }

  .gbtox-empty {
    align-items: flex-start;
  }

  .gbtox-input-evidence {
    grid-template-columns: 1fr;
  }
  .gbtox-signature-evidence { grid-template-columns: 1fr; }
  .gbtox-coverage-summary, .gbtox-coverage-evidence { grid-template-columns: 1fr; }
  .gbtox-component-table-wrap tbody { max-height: 170px; }
  .gbtox-component-coverage__heading { align-items:flex-start; flex-direction:column; }
  .gbtox-component-coverage__heading .gbtox-guidance-btn--compact { width:100%; justify-content:center; }
  .gbtox-stage-actions .gbtox-primary-action { width: 100%; }

  .gbtox-explorer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gbtox-explorer-toolbar { padding-right: 0; }

  .gbtox-skeleton { grid-template-columns: 1fr; }
  .gbtox-skeleton span:not(:first-child) { display: none; }

}
/* =========================================================
   PATCH 2026-08-27 22:XX | GB-TOX MOBILE CONSOLE REFLOW

   Stacks telemetry timestamps above operation text on narrow
   screens so the timestamp column does not collapse the
   scientific activity message into a few words per line.
========================================================= */

@media (max-width: 560px) {
  .gbtox-console {
    margin: 8px 8px 10px;
  }

  .gbtox-console header {
    padding: 8px 10px;
  }

  .gbtox-console ol {
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .gbtox-console li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    min-width: 0;
  }

  .gbtox-console li + li {
    margin-top: 8px;
  }

  .gbtox-console li time {
    display: block;
    min-width: 0;
  }

  .gbtox-console li span {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
}
@media (max-width: 480px) {
  .gbtox-run-summary { grid-template-columns: 1fr; }
  .gbtox-run-summary div { border-right: 0; border-bottom: 1px solid #73839a; }
  .gbtox-run-summary div:nth-child(n + 7) { border-bottom: 1px solid #73839a; }
  .gbtox-run-summary div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .module-gbtox * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
