/* ============================================================
   packet.css · styles the RESULT surface built by proof-packet.js.

   proof-packet.js emits its sections with createElement + textContent and a
   set of bl-* / lr-* / gsp-* / proof-* / wt-* class names. aero.css carries
   the shared chassis (card, panel-head, pattern, callout, src-tag, thread-
   strip) and every Datum token; this file styles only the packet-specific
   classes that aero.css does not, all built on those same tokens so the
   theme toggle repaints both ways with zero edits.

   Color + legibility contract (mirrors aero.css):
   - instrument cyan (--accent) for links + active state.
   - gold (--gold) reserved for the deliverable framing only.
   - text always sits in its own panel, never over a busy plate.
   - WCAG-AA on the ground color in both themes (token values carry this).
   - no horizontal overflow at 1280px or 375px: every grid track is
     minmax(0,1fr), content columns set min-width:0, long source URLs wrap
     with overflow-wrap:anywhere, wide content scrolls inside a wrapper.
   ============================================================ */

/* the mounted packet is a vertical stack; nothing inside may force overflow */
#ti-packet { min-width: 0; }
#ti-packet > * { min-width: 0; max-width: 100%; }

/* ===== shared field row (key / value), value can be mono code ===== */
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.field-row:last-child { border-bottom: none; }
.fr-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-dimmer);
  min-width: 0;
  overflow-wrap: anywhere;
}
.fr-val { font-size: 13px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.fr-val.code { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); }

/* ===== 1. candidate status banner ===== */
.candidate-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 18px;
  min-width: 0;
}
.cb-flag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 4px 9px;
  white-space: nowrap;
}
.cb-text { font-size: 13px; color: var(--text-dim); line-height: 1.55; min-width: 0; }
.cb-text strong { color: var(--text); font-weight: 600; }

/* ===== first screen: the proof room ===== */
.proof-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}
.proof-room-main { min-width: 0; }
.proof-room-title { font-size: 30px; line-height: 1.14; margin-bottom: 10px; }
.proof-room-copy { font-size: 15px; color: var(--text-dim); max-width: 62ch; margin-bottom: 18px; }

/* the boundary band: allowed metadata above, blocked record bodies below */
.proof-boundary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.proof-boundary-band { border-radius: var(--radius-sm); padding: 13px 14px; min-width: 0; }
.proof-boundary-band.is-allowed { background: var(--accent-pale); border: 1px solid var(--border-accent); }
.proof-boundary-band.is-blocked { background: var(--warn-wash); border: 1px solid rgba(229, 120, 108, 0.3); }
.proof-boundary-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
.proof-boundary-band.is-allowed .proof-boundary-kicker { color: var(--accent-deep); }
.proof-boundary-band.is-blocked .proof-boundary-kicker { color: var(--warn); }

.proof-pointer-chain,
.proof-blocked-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.proof-pointer-node {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-deep);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.proof-pointer-arrow { color: var(--accent); font-size: 12px; }
.proof-blocked-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  background: var(--surface);
  border: 1px dashed rgba(229, 120, 108, 0.45);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: rgba(229, 120, 108, 0.6);
}
.proof-secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--text-dimmer);
  padding: 9px 0;
  position: relative;
}
.proof-secure-line::before,
.proof-secure-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
}

/* the five worked-thread lanes */
.proof-lane-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.proof-lane-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  min-width: 0;
}
.proof-lane-card h3 { font-size: 14px; margin-bottom: 6px; }
.proof-lane-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
.proof-lane-state {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ok);
}
.proof-lane-state.is-waiting { color: var(--gold-deep); }

/* the action packet aside: the only place gold frames a control here */
.proof-action-packet {
  background: linear-gradient(150deg, var(--surface-3), var(--surface));
  border: 1px solid var(--gold-soft);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 18px;
  min-width: 0;
}
.proof-action-top {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.proof-action-packet .src-tag { margin-bottom: 12px; display: inline-block; }
.proof-action-button {
  width: 100%;
  margin-top: 14px;
  background: var(--surface-2);
  color: var(--text-dimmer);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
}
.proof-action-button[disabled] { opacity: 0.85; }
.proof-action-note { font-size: 12px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }

/* the Export control in the action packet: a separator then a full-width
   control so it fits the narrow aside. The menu anchors to the button's right
   edge and rises above the sticky packet. */
.proof-action-export {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-soft);
}
.proof-action-export .ti-export { width: 100%; }
.proof-action-export .ti-export-btn { width: 100%; justify-content: center; }
.proof-action-export .ti-export-menu { z-index: 60; }

/* ===== 2. boundary panel (inside a .card) ===== */
.boundary-stage {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  padding: 14px;
  margin-top: 4px;
  min-width: 0;
}
.boundary-lane { padding: 11px 12px; border-radius: var(--radius-sm); min-width: 0; }
.boundary-lane.is-above { background: var(--accent-pale); border: 1px solid var(--border-accent); }
.boundary-lane.is-below { background: var(--warn-wash); border: 1px solid rgba(229, 120, 108, 0.28); }
.bl-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
.boundary-lane.is-above .bl-label { color: var(--accent-deep); }
.boundary-lane.is-below .bl-label { color: var(--warn); }
.bl-chiprow { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.bl-chip {
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.bl-chip.is-crossing { color: var(--accent-deep); background: var(--surface); border: 1px solid var(--border-accent); }
.bl-chip.is-locked { color: var(--warn); background: var(--surface); border: 1px dashed rgba(229, 120, 108, 0.45); }
.boundary-line {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
}
.boundary-line::before,
.boundary-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 10px;
}
.bl-mark {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* the locked controlled-class toggles (real disabled controls) */
.lock-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 8px;
  margin-top: 4px;
}
.lock-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: not-allowed;
  min-width: 0;
}
.lock-toggle input { accent-color: var(--subtle); cursor: not-allowed; flex-shrink: 0; }
.lt-lock { font-size: 12px; flex-shrink: 0; }
.lt-name { font-size: 13px; color: var(--text); min-width: 0; overflow-wrap: anywhere; flex: 1; }
.lt-state {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  white-space: nowrap;
  flex-shrink: 0;
}

/* the integration-model rows (from / how / to) */
.integ-model { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.im-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  min-width: 0;
}
.im-from, .im-how, .im-to { font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.im-from { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); font-weight: 600; }
.im-how { color: var(--text-dim); }
.im-to { color: var(--text); }
.im-arrow { color: var(--accent); font-size: 13px; flex-shrink: 0; }

/* the governance callout variant — a calmer wash than the cyan default rule */
.callout.is-gov::before { background: var(--text-dimmer); }

/* ===== 2b. "What this is NOT" panel ===== */
.not-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}
.not-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  min-width: 0;
}
.not-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.not-body { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* the honest-naming surface, in its own calm panel */
.naming-card {
  background: var(--surface-3);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 14px;
  min-width: 0;
}
.naming-head { font-size: 14px; font-weight: 600; color: var(--accent-deep); margin-bottom: 7px; }
.naming-body { font-size: 13px; color: var(--text); line-height: 1.6; }

/* ===== 3. source ledger ===== */
.ledger-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 11px;
  min-width: 0;
}
.ledger-row:last-child { margin-bottom: 0; }
/* the long source URL: cyan link, must wrap and never force overflow at 375px */
.lr-url {
  display: inline-block;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  word-break: break-all;
  overflow-wrap: anywhere;
  margin-bottom: 11px;
}
.lr-url:hover { border-bottom-color: var(--accent); }
.lr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.lr-col { min-width: 0; }
.lr-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 5px;
}
.lr-text { display: block; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; overflow-wrap: anywhere; }

/* ===== 4. role map ===== */
.role-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.role-row:last-child { border-bottom: none; }
.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}
.role-dot.is-safety { background: var(--warn); }
.role-dot.is-exec { background: var(--gold); }
.role-body { min-width: 0; }
.role-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.role-owns { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.role-views { font-family: var(--mono); font-size: 11px; color: var(--text-dimmer); margin-top: 5px; line-height: 1.5; overflow-wrap: anywhere; }

/* ===== 5. exception proof thread + Guided/Detailed toggle ===== */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.view-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 6px 16px;
  color: var(--text-dim);
  background: transparent;
}
.view-toggle button.is-on { background: var(--accent-bright); color: #06101f; }

.thread-simple-line {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

/* the toggle flips which view shows; both always live in the DOM. Default
   (no body class set yet) shows the detailed contract. */
.simple-only { display: none; }
.detail-only { display: block; }
body.is-view-simple .simple-only { display: block; }
body.is-view-simple .detail-only { display: none; }
body.is-view-detailed .simple-only { display: none; }
body.is-view-detailed .detail-only { display: block; }

/* the withheld list inside the red-team panel */
ul.withheld { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
ul.withheld li { min-width: 0; }
ul.withheld li code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  background: var(--warn-wash);
  border: 1px solid rgba(229, 120, 108, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  overflow-wrap: anywhere;
}

/* ===== 6. review gate (fails closed) ===== */
.gate-card {
  background: var(--surface);
  border: 1px solid rgba(229, 120, 108, 0.4);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.gate-card.is-pass { border-color: rgba(75, 191, 134, 0.4); border-left-color: var(--ok); }
.gate-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--warn);
  margin-bottom: 9px;
}
.gate-card.is-pass .gate-status { color: var(--ok); }
.gs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.gate-card.is-pass .gs-dot { background: var(--ok); }
.gate-reason { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-bottom: 14px; }
.gate-reason strong { color: var(--text); font-weight: 600; }
.gate-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.gate-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  min-width: 0;
}
.gate-checklist li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-weight: 700;
}
.gate-checklist li.is-ok { color: var(--text); }
.gate-checklist li.is-ok::before { content: "[ok]"; color: var(--ok); font-size: 10px; top: 2px; }
.gate-checklist li.is-fail::before { content: "x"; color: var(--warn); font-size: 13px; left: 4px; }
.gate-route {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* ===== 6b. the human-in-command gate spotlight (the live moment) ===== */
.gate-spotlight {
  background: linear-gradient(150deg, var(--surface-3), var(--surface));
  border: 1px solid var(--gold-soft);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.gsp-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.gsp-title { font-size: 22px; margin-bottom: 16px; }
.gsp-close-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gsp-close-btn {
  background: var(--surface-2);
  color: var(--text-dimmer);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
}
.gsp-close-btn[disabled] { opacity: 0.85; }
.gsp-block-reason {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--warn);
  background: var(--warn-wash);
  border: 1px solid rgba(229, 120, 108, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.gsp-route { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.gsp-node {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.gsp-node.is-authority { color: var(--accent-deep); border-color: var(--border-accent); background: var(--accent-pale); }
.gsp-node.is-role { color: var(--gold-deep); border-color: var(--gold-soft); background: var(--gold-pale); }
.gsp-arrow { color: var(--accent); font-size: 13px; flex-shrink: 0; }
.gsp-callout {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.gsp-strip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.gsp-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-width: 0;
}
.gsp-strip-key {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.gsp-strip-val { font-size: 13px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.gsp-caption { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.2px; }

/* ===== 7. post-action result ===== */
.result-card {
  background: linear-gradient(150deg, var(--surface-3), var(--surface));
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.result-card .label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.result-card .body { font-size: 15px; color: var(--text); line-height: 1.6; }
.result-card .meta { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; margin-top: 12px; }

/* ===== 7b. three worked threads ===== */
.wt-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  margin-bottom: 11px;
  min-width: 0;
}
.wt-row:last-child { margin-bottom: 0; }
.wt-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 9px; }
.wt-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}
.wt-scn { font-family: var(--mono); font-size: 11px; color: var(--text-dim); min-width: 0; overflow-wrap: anywhere; }
.wt-state {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  margin-left: auto;
}
.wt-state.is-blocked { color: var(--warn); background: var(--warn-wash); border: 1px solid rgba(229, 120, 108, 0.35); }
.wt-state.is-watching { color: var(--gold-deep); background: var(--gold-pale); border: 1px solid var(--gold-soft); }
.wt-line { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.wt-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.wt-owner, .wt-ev, .wt-rev {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.wt-result {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

/* ===== 8. red-team panel ===== */
.pattern.block { margin-bottom: 14px; }
.rt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.rt-row:last-child { margin-bottom: 0; }
.rt-attempt, .rt-resp {
  font-size: 13px;
  line-height: 1.55;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rt-attempt { color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); }
.rt-resp { color: var(--text); background: var(--surface-3); border: 1px solid var(--border-accent); }
.rt-tag {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rt-attempt .rt-tag { color: var(--text-dimmer); }
.rt-resp .rt-tag { color: var(--accent-deep); }

/* ============================================================
   Responsive — collapse the 2-up structures so nothing overflows at 375px.
   ============================================================ */
@media (max-width: 860px) {
  .proof-room { grid-template-columns: minmax(0, 1fr); }
  .proof-action-packet { position: static; }
  .rt-row { grid-template-columns: minmax(0, 1fr); }
  .im-row { grid-template-columns: minmax(0, 1fr); }
  .im-row .im-arrow { display: none; }
}
@media (max-width: 520px) {
  .proof-room-title { font-size: 25px; }
  .gsp-title { font-size: 19px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gsp-strip-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wt-state { margin-left: 0; }
}
