:root {
  color-scheme: light;
  --paper: #f4f6f3;
  --paper-deep: #e9eeea;
  --surface: #ffffff;
  --ink: #1c2929;
  --ink-soft: #667170;
  --line: #dce2dd;
  --teal: #176c69;
  --teal-deep: #12514f;
  --error: #a43b32;
  --warn: #a76515;
  --info: #31617a;
  --shadow: 0 10px 28px rgb(29 48 45 / 8%);
  --radius: 10px;
  --content-max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #54a8a6;
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--teal-deep);
}

.skip-link:focus {
  top: 1rem;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 82px;
  padding: 1rem 1.5rem 0.9rem;
  color: white;
  background: var(--ink);
  border-bottom: 2px solid var(--teal);
}

.masthead h1 {
  margin: 0.12rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #82c8c5;
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--teal);
}

.masthead-status {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.35rem;
  color: #d7e3df;
  font-size: 0.74rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  background: #69b8a7;
  border: 2px solid #315b55;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(105 184 167 / 14%);
}

.source-notice {
  min-height: 36px;
  padding: 0.58rem 1.5rem;
  color: #405c58;
  background: #eaf3ef;
  border-bottom: 1px solid #ccdcd5;
  font-size: 0.75rem;
  font-weight: 500;
}

.producer-demo {
  max-width: var(--content-max);
  margin: 1.15rem auto;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.producer-intro,
.workflow-heading-row,
.producer-submit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.producer-intro h2,
.workflow-heading-row h3 {
  margin: 0.22rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.producer-intro h2 {
  font-size: 1.45rem;
}

.producer-intro p:not(.section-kicker) {
  max-width: 48rem;
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.boundary-chip {
  flex: none;
  padding: 0.32rem 0.52rem;
  color: var(--teal-deep);
  background: #dcece8;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boundary-chip.replay {
  color: #6a592d;
  background: #f6ecca;
}

.mobile-quick-actions,
.mobile-workspace-nav,
.mobile-pane-back,
.mobile-summary-line {
  display: none;
}

.responsive-disclosure > summary {
  list-style: none;
}

.responsive-disclosure > summary::-webkit-details-marker {
  display: none;
}

.judge-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.judge-path li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.68rem 0.72rem;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.judge-path li > span {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 700;
}

.judge-path strong,
.judge-path small {
  display: block;
}

.judge-path strong {
  font-size: 0.75rem;
}

.judge-path small {
  margin-top: 0.18rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.4;
}

.memory-receipt {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7faf8;
  border: 1px solid #cfe0d9;
  border-radius: 8px;
}

.memory-receipt-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.memory-receipt-heading::after {
  display: none;
  content: "+";
}

.memory-receipt h3 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.memory-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0;
  margin: 0.85rem 0 0;
  list-style: none;
}

.memory-path li {
  position: relative;
  min-width: 0;
  padding: 0.58rem 0.62rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.memory-path li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -0.47rem;
  color: var(--teal);
  content: "›";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.memory-path strong,
.memory-path span {
  display: block;
}

.memory-path strong {
  color: var(--teal-deep);
  font-size: 0.71rem;
  line-height: 1.3;
}

.memory-path span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.35;
}

.memory-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}

.memory-facts div {
  padding: 0.52rem 0.62rem;
  background: #edf4f0;
  border-radius: 6px;
}

.memory-facts dt {
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-facts dd {
  margin: 0.16rem 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 650;
}

.memory-models,
.memory-boundary {
  max-width: 63rem;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.5;
}

.memory-boundary {
  padding-top: 0.7rem;
  border-top: 1px solid #d7e4de;
}

.memory-models strong,
.memory-boundary strong {
  color: var(--ink);
}

.producer-form {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.producer-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #c7d8d0;
  border-radius: 8px;
  background: #f5faf7;
}

.completed-replay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  color: #4f4427;
  background: #fbf6e7;
  border: 1px solid #e4d7ad;
  border-radius: 8px;
}

.completed-replay h3 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.completed-replay p:not(.section-kicker) {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: #6a6046;
  font-size: 0.78rem;
  line-height: 1.5;
}

.completed-replay .primary-action {
  flex: none;
}

.producer-auth h3 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.producer-auth p:not(.section-kicker) {
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.producer-auth-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.producer-auth-actions .secondary-action {
  margin-top: 0;
}

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

.producer-input-details {
  margin-top: 0.8rem;
}

.producer-input-details > summary,
.workflow-details > summary {
  display: none;
}

.producer-secondary-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.summary-hint {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
}

.optional-label {
  color: var(--teal);
  font-size: 0.6rem;
  letter-spacing: 0.025em;
}

.producer-form label {
  display: grid;
  gap: 0.34rem;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.producer-form input,
.producer-form textarea {
  width: 100%;
  padding: 0.68rem 0.72rem;
  color: var(--ink);
  background: #f5f7f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.45;
  text-transform: none;
}

.producer-form textarea {
  resize: none;
  min-height: 15rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.producer-form input:not([readonly]) {
  background: #fff;
  border-color: #9ebbb5;
}

.producer-preview-label {
  margin-top: 0.75rem;
}

.producer-submit-row {
  align-items: center;
  margin-top: 0.85rem;
}

.producer-integrity,
.workflow-notice {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.5;
}

.primary-action,
.secondary-action {
  padding: 0.68rem 0.9rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.primary-action {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.secondary-action {
  margin-top: 0.9rem;
  color: var(--teal-deep);
  background: white;
  border: 1px solid var(--teal);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal-deep);
}

.primary-action:disabled {
  color: #eef5f2;
  background: #78928d;
  border-color: #78928d;
  cursor: wait;
}

.secondary-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.workflow-progress {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.workflow-heading-row h3 {
  font-size: 1.15rem;
}

.workflow-notice {
  max-width: 52rem;
  margin-top: 0.5rem;
}

.workflow-telemetry {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: white;
  border: 1px solid #c9d8d3;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(29 48 45 / 4%);
}

.telemetry-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.telemetry-primary > div {
  padding: 0.65rem 0.72rem;
  background: #eff6f3;
  border-left: 3px solid var(--teal);
  border-radius: 5px;
}

.telemetry-label {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.telemetry-primary strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
}

.telemetry-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0;
}

.telemetry-details div {
  min-width: 0;
}

.telemetry-details dt {
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.telemetry-details dd {
  overflow: hidden;
  margin: 0.18rem 0 0;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-boundary {
  margin: 0.72rem 0 0;
  padding-top: 0.62rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  line-height: 1.45;
}

.evidence-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f3f7f5;
  border: 1px solid #cfddd7;
  border-radius: 8px;
}

.evidence-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.42rem;
  min-width: 0;
}

.evidence-step-number {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  color: var(--teal-deep);
  background: #d5e8e1;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
}

.evidence-step-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.evidence-step strong {
  display: block;
  overflow: hidden;
  margin-top: 0.16rem;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.workflow-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.workflow-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  min-height: 74px;
  padding: 0.72rem;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-stage.running {
  color: var(--ink);
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.workflow-stage.complete {
  color: var(--ink);
  background: #f0f6f3;
}

.stage-marker {
  color: #94a09d;
  font-weight: 700;
}

.workflow-stage.running .stage-marker,
.workflow-stage.complete .stage-marker {
  color: var(--teal);
}

.stage-label {
  font-size: 0.78rem;
  font-weight: 650;
}

.workflow-stage p {
  margin: 0.24rem 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.4;
}

.report-context {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: calc(100% - 2rem);
  max-width: var(--content-max);
  margin: 0.9rem auto 0.75rem;
  padding: 0.68rem 0.82rem;
  color: #584a27;
  background: #fbf4dc;
  border: 1px solid #e7d8a7;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.report-context.current {
  color: var(--teal-deep);
  background: #e4f1ec;
  border-color: #bfd9cf;
}

.report-context.pending {
  color: #694321;
  background: #f9eadb;
  border-color: #e5c39f;
}

.report-context-label {
  flex: none;
  padding: 0.25rem 0.46rem;
  color: inherit;
  background: rgb(255 255 255 / 62%);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(350px, 1.08fr) minmax(410px, 1.34fr);
  width: calc(100% - 2rem);
  max-width: var(--content-max);
  min-height: calc(100vh - 118px);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.runs-panel,
.queue-panel,
.detail-panel {
  min-width: 0;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.runs-panel {
  background: rgb(233 238 234 / 72%);
}

.queue-panel {
  background: rgb(255 255 255 / 72%);
}

.detail-panel {
  overflow: auto;
  max-height: calc(100vh - 118px);
  background: var(--surface);
  border-right: 0;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.panel-heading h2,
.run-header h2,
.detail-panel h2 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.panel-heading h2,
.run-header h2 {
  font-size: 1.28rem;
}

.count-pill,
.status-badge,
.severity-label,
.trace-chip,
.run-role-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.count-pill {
  min-width: 2rem;
  justify-content: center;
  padding: 0.34rem 0.55rem;
  color: var(--teal-deep);
  background: #cde3df;
}

.runs-list,
.finding-list {
  display: grid;
  gap: 0.7rem;
}

.run-card,
.finding-card {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(29 48 45 / 3%);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.run-card:hover,
.finding-card:hover {
  border-color: #8faaa5;
  box-shadow: 0 7px 20px rgb(36 43 39 / 9%);
  transform: translateY(-1px);
}

.run-card[aria-current="true"],
.finding-card[aria-current="true"] {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal), var(--shadow);
}

.run-card-inner,
.finding-card-inner {
  padding: 0.86rem 0.9rem;
}

.card-topline,
.finding-meta,
.run-meta,
.trace-title-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.run-card h3,
.finding-card h3 {
  margin: 0.58rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.008em;
}

.run-card h3 {
  font-size: 1rem;
}

.run-reference {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  line-height: 1.35;
}

.run-card .run-reference {
  margin-bottom: 0.3rem;
}

.run-header .run-reference {
  margin-top: 0.35rem;
}

.run-card p,
.finding-card p,
.muted {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.5;
}

.status-badge,
.trace-chip {
  padding: 0.28rem 0.46rem;
  color: var(--teal-deep);
  background: #d5e8e4;
}

.trace-chip.partial {
  color: #725616;
  background: #f4e8c5;
}

.trace-chip.evidence-linked {
  color: var(--teal-deep);
  background: #d5e8e4;
}

.run-role-chip {
  padding: 0.28rem 0.46rem;
  color: var(--ink-soft);
  background: #edf1ee;
}

.run-role-chip.current {
  color: var(--teal-deep);
  background: #d5e8e4;
}

.trace-chip.detail-required {
  color: var(--ink-soft);
  background: var(--surface-muted);
}

.run-meta {
  margin-top: 0.75rem;
  justify-content: flex-start;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.run-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.run-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 1rem 0;
}

.filters label {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.filters select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.58rem 1.8rem 0.58rem 0.62rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.78rem;
  text-transform: none;
}

.check-legend {
  margin: -0.35rem 0 1rem;
  padding: 0.6rem 0.7rem;
  color: var(--ink-soft);
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.check-legend summary {
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.check-legend p {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.check-legend dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
  margin: 0.65rem 0 0;
}

.check-legend dl div {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.35rem;
  font-size: 0.69rem;
  line-height: 1.4;
}

.check-legend dt {
  color: var(--ink);
  font-weight: 700;
}

.check-legend dd {
  margin: 0;
}

.finding-card {
  position: relative;
  overflow: hidden;
}

.finding-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--info);
}

.finding-card.error::before {
  background: var(--error);
}

.finding-card.warn::before {
  background: var(--warn);
}

.severity-label {
  color: var(--info);
}

.severity-label.error {
  color: var(--error);
}

.severity-label.warn {
  color: var(--warn);
}

.finding-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.state-card,
.detail-empty,
.noscript {
  padding: 1rem;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 72%);
  border: 1px dashed #b9b09f;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.55;
}

.state-card:empty,
.runs-list:empty,
.finding-list:empty {
  display: none;
}

.detail-empty {
  margin-top: 0.2rem;
}

.detail-empty h2 {
  margin-bottom: 0.5rem;
}

.detail-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-title {
  margin: 0.45rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.detail-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.draft-quote,
.citation-quote {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  color: #293331;
  background: #f3f6f3;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.trace-section {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.trace-section h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.trace-section p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.citation-list,
.audit-list,
.limitation-list,
.config-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.citation-card,
.audit-card,
.unavailable-card {
  padding: 0.82rem;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.citation-label,
.audit-action {
  color: var(--teal-deep);
  font-size: 0.77rem;
  font-weight: 650;
}

.citation-meta,
.audit-meta {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.citation-quote {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.83rem;
}

.unavailable-card {
  color: #6a592d;
  background: #fcf6e8;
  border-color: #e8d7aa;
  font-size: 0.8rem;
  line-height: 1.5;
}

.config-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-list li {
  padding: 0.65rem;
  background: #f2f5f2;
  border-radius: 7px;
}

.config-key {
  display: block;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.config-value {
  display: block;
  margin-top: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.limitation-list {
  padding-left: 1.1rem;
  list-style: square;
}

.limitation-list li {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.trace-disclosure {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  color: var(--ink-soft);
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.trace-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.trace-disclosure > p {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.audit-boundary-list {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.05rem;
  margin: 0.75rem 0 0;
}

.audit-boundary-list li {
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .producer-demo {
    margin-inline: 1rem;
  }

  .producer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .evidence-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  }

  .runs-panel {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .runs-list {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
  }

  .run-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .queue-panel {
    border-right: 1px solid var(--line);
  }

  .detail-panel {
    grid-column: auto;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .masthead {
    align-items: center;
    min-height: auto;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .masthead h1 {
    font-size: 1.7rem;
  }

  .masthead-status {
    max-width: 11rem;
    margin-left: auto;
    padding-bottom: 0;
    font-size: 0.69rem;
    text-align: right;
  }

  .source-notice {
    padding: 0.55rem 1rem;
    font-size: 0.71rem;
  }

  .report-context {
    align-items: center;
    flex-direction: row;
    gap: 0.55rem;
    width: calc(100% - 1.5rem);
    margin: 0.75rem auto 0.6rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.7rem;
  }

  .producer-demo {
    margin: 0.75rem;
    padding: 0.9rem;
  }

  .producer-intro,
  .producer-auth,
  .completed-replay,
  .workflow-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .producer-intro {
    gap: 0.6rem;
  }

  .producer-intro h2 {
    font-size: 1.3rem;
  }

  .producer-intro p:not(.section-kicker) {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .producer-intro .boundary-chip {
    align-self: flex-start;
  }

  .judge-path {
    display: none;
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.9rem;
  }

  .mobile-quick-actions .primary-action,
  .mobile-quick-actions .secondary-action {
    width: 100%;
    min-height: 2.8rem;
    margin: 0;
  }

  .producer-auth-actions,
  .producer-auth-actions .primary-action,
  .producer-auth-actions .secondary-action,
  .completed-replay .primary-action {
    width: 100%;
  }

  .producer-fields,
  .producer-secondary-fields,
  .workflow-stages,
  .telemetry-primary,
  .memory-path {
    grid-template-columns: 1fr;
  }

  .memory-receipt-heading {
    align-items: center;
    cursor: pointer;
  }

  .memory-receipt-heading .boundary-chip {
    display: none;
  }

  .memory-receipt-heading::after {
    display: grid;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: var(--teal-deep);
    background: #e3efeb;
    border-radius: 50%;
    font-size: 1rem;
  }

  .memory-receipt[open] .memory-receipt-heading::after {
    content: "âˆ’";
  }

  .mobile-summary-line {
    display: block;
    margin-top: 0.25rem;
    color: var(--ink-soft);
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .memory-path li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.53rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .memory-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .producer-submit-row .primary-action,
  .secondary-action {
    width: 100%;
  }

  .producer-input-details,
  .workflow-details {
    margin-top: 0.8rem;
    padding: 0.72rem 0.78rem;
    background: #f5f8f6;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .producer-input-details > summary,
  .workflow-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--teal-deep);
    font-size: 0.76rem;
    font-weight: 650;
    cursor: pointer;
  }

  .producer-input-details[open] > summary,
  .workflow-details[open] > summary {
    margin-bottom: 0.75rem;
  }

  .producer-form textarea {
    min-height: 11rem;
    max-height: 45vh;
  }

  .producer-submit-row {
    position: sticky;
    z-index: 6;
    bottom: 0.5rem;
    display: grid;
    gap: 0.55rem;
    margin: 0.85rem -0.25rem -0.25rem;
    padding: 0.65rem;
    background: rgb(255 255 255 / 94%);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 8px 22px rgb(29 48 45 / 16%);
    backdrop-filter: blur(6px);
  }

  .producer-integrity {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.67rem;
  }

  .workspace {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-inline: 0;
  }

  .mobile-workspace-nav {
    position: sticky;
    z-index: 8;
    top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    background: rgb(244 246 243 / 96%);
    border-block: 1px solid var(--line);
    box-shadow: 0 4px 12px rgb(29 48 45 / 7%);
    backdrop-filter: blur(8px);
  }

  .mobile-workspace-nav button {
    min-height: 2.55rem;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 650;
    cursor: pointer;
  }

  .mobile-workspace-nav button[aria-current="page"] {
    color: white;
    background: var(--teal);
    border-color: var(--teal);
  }

  .mobile-pane-back {
    display: inline-flex;
    margin: 0 0 0.75rem;
    padding: 0.4rem 0;
    color: var(--teal-deep);
    background: transparent;
    border: 0;
    font-size: 0.75rem;
    font-weight: 650;
    cursor: pointer;
  }

  .runs-panel,
  .queue-panel,
  .detail-panel {
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace[data-mobile-pane="runs"] .queue-panel,
  .workspace[data-mobile-pane="runs"] .detail-panel,
  .workspace[data-mobile-pane="findings"] .runs-panel,
  .workspace[data-mobile-pane="findings"] .detail-panel,
  .workspace[data-mobile-pane="evidence"] .runs-panel,
  .workspace[data-mobile-pane="evidence"] .queue-panel {
    display: none;
  }

  .runs-list {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  .run-card {
    width: 100%;
  }

  .detail-panel {
    overflow: visible;
    max-height: none;
  }

  .filters,
  .config-list {
    grid-template-columns: 1fr;
  }

  .check-legend dl {
    grid-template-columns: 1fr;
  }

  .trace-title-row {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .masthead {
    align-items: center;
    flex-direction: row;
    padding: 0.72rem 0.8rem;
  }

  .masthead h1 {
    font-size: 1.45rem;
  }

  .eyebrow {
    font-size: 0.55rem;
  }

  .masthead-status {
    max-width: 8rem;
    margin-left: auto;
    font-size: 0.62rem;
    text-align: right;
  }

  .card-topline,
  .finding-meta {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
