/* ReplayGuard recorded evidence inspector — shared fulfillment bench palette. */
:root {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182b35;
  background: #f4f7f9;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis: none;
  --ink: #182b35;
  --muted: #526570;
  --line: #d9e2e7;
  --forest: #176d50;
  --mint: #eaf5ef;
  --rust: #994220;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
::selection { color: var(--ink); background: #c9e8d7; }

header {
  min-height: 84px;
  padding: 18px max(32px, calc((100vw - 1344px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header > a:last-child { font-size: 16px; padding-block: 10px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.2;
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 32px; height: 32px; }
.wordmark span { color: var(--forest); margin-left: -9px; }

main { max-width: 1440px; padding: 48px 48px 0; margin: auto; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}
h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(36px, 4.25vw, 60px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -2px;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1px;
  text-wrap: balance;
}
.description { max-width: 68ch; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.verdict {
  display: inline-block;
  max-width: 100%;
  margin-top: 32px;
  border: 1px solid #bad8c9;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--mint);
  color: var(--forest);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.verdict.incomplete { border-color: #dcc8a4; background: #fbf3e5; color: #765417; }
.verdict.unresolved { border-color: #e5c6b8; background: #fff0e8; color: var(--rust); }
.verdict.unverified { border-color: #cbd7df; background: #edf2f5; color: #405663; }

.run-meta {
  display: grid;
  grid-template-columns: .7fr 1.4fr 1fr;
  gap: 24px;
  margin: 30px 0 32px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.run-meta > span { min-width: 0; }
.run-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 450;
  overflow-wrap: anywhere;
}

.columns { display: grid; grid-template-columns: .92fr 1.2fr; gap: 24px; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-head { padding: 28px 28px 22px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.panel-head > div { min-width: 0; }
.panel-head .eyebrow { margin-bottom: 10px; }
.counter { margin-top: 3px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 24px 8px;
  padding: 14px 16px;
  border: 1px solid #d4e7dd;
  border-radius: 6px;
  background: var(--mint);
  font-size: 14px;
  line-height: 1.4;
}
.flow span { min-width: 0; text-align: center; }
.flow b { color: var(--forest); font-weight: 500; }
.resource-list { padding: 0 28px; }
.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e6edf0;
}
.resource-row:last-child { border-bottom: 0; }
.resource-row > div { min-width: 0; }
.resource-name { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.resource-type { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.resource-status { color: var(--forest); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

.mode-tabs { display: flex; gap: 8px; padding: 0 28px 10px; }
.mode-tabs button {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f9;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.mode-tabs button:hover { border-color: #83ae9b; background: #eaf5ef; }
.mode-tabs button[aria-pressed=true] { color: #fff; border-color: var(--forest); background: var(--forest); }
.mode-tabs span { font-weight: 750; margin-left: 6px; }
.logs { padding: 0 28px; }
.log-row { padding: 18px 0; border-bottom: 1px solid #e6edf0; }
.log-row:last-child { border-bottom: 0; }
.log-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.stage { min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.stage.fault { color: var(--rust); }
.log-time { color: var(--muted); font-family: var(--mono); font-size: 14px; line-height: 1.45; }
.log-ids { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.log-ids strong { color: #405663; font-weight: 450; }
.footnote { margin: 20px 28px 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty { margin-block: 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }

footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 28px; margin-top: 32px; padding: 24px 0 32px; border-top: 1px solid var(--line); }
footer p { max-width: 90ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-size: 16px; line-height: 1.4; }

@media (max-width: 1150px) {
  main { padding-inline: 32px; }
  .intro { gap: 24px; }
  .columns { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 20px; }
  .panel-head { flex-wrap: wrap; }
  .counter { margin-top: 0; }
  .resource-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .mode-tabs { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .verdict { justify-self: start; margin-top: 0; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .panel-head { flex-wrap: nowrap; }
  .resource-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .flow { justify-content: center; gap: 24px; }
  footer { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 600px) {
  header { padding: 16px 20px; align-items: flex-start; flex-direction: column; gap: 8px; }
  header > a:last-child { font-size: 16px; padding-block: 7px; }
  .wordmark { font-size: 23px; }
  main { padding: 32px 20px 0; }
  h1 { font-size: clamp(36px, 9.5vw, 48px); letter-spacing: -1.3px; }
  h2 { font-size: 32px; }
  .run-meta { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block: 24px; padding-block: 18px; }
  .panel-head { padding: 22px 20px 20px; flex-wrap: wrap; gap: 12px; }
  .resource-list, .logs { padding-inline: 20px; }
  .resource-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .flow { margin-inline: 16px; padding: 12px 10px; gap: 8px; justify-content: space-between; }
  .mode-tabs { padding: 0 20px 8px; flex-direction: column; gap: 8px; }
  .mode-tabs button { width: 100%; }
  .log-heading { flex-direction: column; align-items: flex-start; }
  .footnote { margin: 18px 20px 22px; }
  footer { margin-top: 24px; padding-block: 22px 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .mode-tabs button { transition: background-color .15s ease, border-color .15s ease; }
}
